Projects
Kolab:3.4:Updates
php-Smarty
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
Smarty-3.1.13.tar.gz/COPYING.lib
Changed
(renamed from distribution/COPYING.lib)
View file
Smarty-3.1.13.tar.gz/README
Added
@@ -0,0 +1,574 @@ +Smarty 3.1.13 + +Author: Monte Ohrt <monte at ohrt dot com > +Author: Uwe Tews + +AN INTRODUCTION TO SMARTY 3 + +NOTICE FOR 3.1 release: + +Please see the SMARTY_3.1_NOTES.txt file that comes with the distribution. + +NOTICE for 3.0.5 release: + +Smarty now follows the PHP error_reporting level by default. If PHP does not mask E_NOTICE and you try to access an unset template variable, you will now get an E_NOTICE warning. To revert to the old behavior: + +$smarty->error_reporting = E_ALL & ~E_NOTICE; + +NOTICE for 3.0 release: + +IMPORTANT: Some API adjustments have been made between the RC4 and 3.0 release. +We felt it is better to make these now instead of after a 3.0 release, then have to +immediately deprecate APIs in 3.1. Online documentation has been updated +to reflect these changes. Specifically: + +---- API CHANGES RC4 -> 3.0 ---- + +$smarty->register->* +$smarty->unregister->* +$smarty->utility->* +$samrty->cache->* + +Have all been changed to local method calls such as: + +$smarty->clearAllCache() +$smarty->registerFoo() +$smarty->unregisterFoo() +$smarty->testInstall() +etc. + +Registration of function, block, compiler, and modifier plugins have been +consolidated under two API calls: + +$smarty->registerPlugin(...) +$smarty->unregisterPlugin(...) + +Registration of pre, post, output and variable filters have been +consolidated under two API calls: + +$smarty->registerFilter(...) +$smarty->unregisterFilter(...) + +Please refer to the online documentation for all specific changes: + +http://www.smarty.net/documentation + +---- + +The Smarty 3 API has been refactored to a syntax geared +for consistency and modularity. The Smarty 2 API syntax is still supported, but +will throw a deprecation notice. You can disable the notices, but it is highly +recommended to adjust your syntax to Smarty 3, as the Smarty 2 syntax must run +through an extra rerouting wrapper. + +Basically, all Smarty methods now follow the "fooBarBaz" camel case syntax. Also, +all Smarty properties now have getters and setters. So for example, the property +$smarty->cache_dir can be set with $smarty->setCacheDir('foo/') and can be +retrieved with $smarty->getCacheDir(). + +Some of the Smarty 3 APIs have been revoked such as the "is*" methods that were +just duplicate functions of the now available "get*" methods. + +Here is a rundown of the Smarty 3 API: + +$smarty->fetch($template, $cache_id = null, $compile_id = null, $parent = null) +$smarty->display($template, $cache_id = null, $compile_id = null, $parent = null) +$smarty->isCached($template, $cache_id = null, $compile_id = null) +$smarty->createData($parent = null) +$smarty->createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) +$smarty->enableSecurity() +$smarty->disableSecurity() +$smarty->setTemplateDir($template_dir) +$smarty->addTemplateDir($template_dir) +$smarty->templateExists($resource_name) +$smarty->loadPlugin($plugin_name, $check = true) +$smarty->loadFilter($type, $name) +$smarty->setExceptionHandler($handler) +$smarty->addPluginsDir($plugins_dir) +$smarty->getGlobal($varname = null) +$smarty->getRegisteredObject($name) +$smarty->getDebugTemplate() +$smarty->setDebugTemplate($tpl_name) +$smarty->assign($tpl_var, $value = null, $nocache = false) +$smarty->assignGlobal($varname, $value = null, $nocache = false) +$smarty->assignByRef($tpl_var, &$value, $nocache = false) +$smarty->append($tpl_var, $value = null, $merge = false, $nocache = false) +$smarty->appendByRef($tpl_var, &$value, $merge = false) +$smarty->clearAssign($tpl_var) +$smarty->clearAllAssign() +$smarty->configLoad($config_file, $sections = null) +$smarty->getVariable($variable, $_ptr = null, $search_parents = true, $error_enable = true) +$smarty->getConfigVariable($variable) +$smarty->getStreamVariable($variable) +$smarty->getConfigVars($varname = null) +$smarty->clearConfig($varname = null) +$smarty->getTemplateVars($varname = null, $_ptr = null, $search_parents = true) +$smarty->clearAllCache($exp_time = null, $type = null) +$smarty->clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null) + +$smarty->registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = array()) + +$smarty->registerObject($object_name, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) + +$smarty->registerFilter($type, $function_name) +$smarty->registerResource($resource_type, $function_names) +$smarty->registerDefaultPluginHandler($function_name) +$smarty->registerDefaultTemplateHandler($function_name) + +$smarty->unregisterPlugin($type, $tag) +$smarty->unregisterObject($object_name) +$smarty->unregisterFilter($type, $function_name) +$smarty->unregisterResource($resource_type) + +$smarty->compileAllTemplates($extention = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null) +$smarty->clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) +$smarty->testInstall() + +// then all the getters/setters, available for all properties. Here are a few: + +$caching = $smarty->getCaching(); // get $smarty->caching +$smarty->setCaching(true); // set $smarty->caching +$smarty->setDeprecationNotices(false); // set $smarty->deprecation_notices +$smarty->setCacheId($id); // set $smarty->cache_id +$debugging = $smarty->getDebugging(); // get $smarty->debugging + + +FILE STRUCTURE + +The Smarty 3 file structure is similar to Smarty 2: + +/libs/ + Smarty.class.php +/libs/sysplugins/ + internal.* +/libs/plugins/ + function.mailto.php + modifier.escape.php + ... + +A lot of Smarty 3 core functionality lies in the sysplugins directory; you do +not need to change any files here. The /libs/plugins/ folder is where Smarty +plugins are located. You can add your own here, or create a separate plugin +directory, just the same as Smarty 2. You will still need to create your own +/cache/, /templates/, /templates_c/, /configs/ folders. Be sure /cache/ and +/templates_c/ are writable. + +The typical way to use Smarty 3 should also look familiar: + +require('Smarty.class.php'); +$smarty = new Smarty; +$smarty->assign('foo','bar'); +$smarty->display('index.tpl'); + + +However, Smarty 3 works completely different on the inside. Smarty 3 is mostly +backward compatible with Smarty 2, except for the following items: + +*) Smarty 3 is PHP 5 only. It will not work with PHP 4. +*) The {php} tag is disabled by default. Enable with $smarty->allow_php_tag=true. +*) Delimiters surrounded by whitespace are no longer treated as Smarty tags. + Therefore, { foo } will not compile as a tag, you must use {foo}. This change + Makes Javascript/CSS easier to work with, eliminating the need for {literal}. + This can be disabled by setting $smarty->auto_literal = false; +*) The Smarty 3 API is a bit different. Many Smarty 2 API calls are deprecated + but still work. You will want to update your calls to Smarty 3 for maximum + efficiency. + + +There are many things that are new to Smarty 3. Here are the notable items: + +LEXER/PARSER +============ + +Smarty 3 now uses a lexing tokenizer for its parser/compiler. Basically, this +means Smarty has some syntax additions that make life easier such as in-template +math, shorter/intuitive function parameter options, infinite function recursion, +more accurate error handling, etc. + + +WHAT IS NEW IN SMARTY TEMPLATE SYNTAX +===================================== + +Smarty 3 allows expressions almost anywhere. Expressions can include PHP +functions as long as they are not disabled by the security policy, object +methods and properties, etc. The {math} plugin is no longer necessary but +is still supported for BC. + +Examples: +{$x+$y} will output the sum of x and y. +{$foo = strlen($bar)} function in assignment +{assign var=foo value= $x+$y} in attributes +{$foo = myfunct( ($x+$y)*3 )} as function parameter +{$foo[$x+3]} as array index + +Smarty tags can be used as values within other tags. +Example: {$foo={counter}+3} + +Smarty tags can also be used inside double quoted strings. +Example: {$foo="this is message {counter}"} + +You can define arrays within templates. +Examples: +{assign var=foo value=[1,2,3]} +{assign var=foo value=['y'=>'yellow','b'=>'blue']} +Arrays can be nested. +{assign var=foo value=[1,[9,8],3]} + +There is a new short syntax supported for assigning variables. +Example: {$foo=$bar+2} + +You can assign a value to a specific array element. If the variable exists but +is not an array, it is converted to an array before the new values are assigned. +Examples: +{$foo['bar']=1} +{$foo['bar']['blar']=1} + +You can append values to an array. If the variable exists but is not an array, +it is converted to an array before the new values are assigned. +Example: {$foo[]=1} + +You can use a PHP-like syntax for accessing array elements, as well as the +original "dot" notation. +Examples: +{$foo[1]} normal access +{$foo['bar']} +{$foo['bar'][1]} +{$foo[$x+$x]} index may contain any expression +{$foo[$bar[1]]} nested index +{$foo[section_name]} smarty section access, not array access! + +The original "dot" notation stays, and with improvements. +Examples: +{$foo.a.b.c} => $foo['a']['b']['c'] +{$foo.a.$b.c} => $foo['a'][$b]['c'] with variable index +{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] with expression as index +{$foo.a.{$b.c}} => $foo['a'][$b['c']] with nested index + +note that { and } are used to address ambiguties when nesting the dot syntax. + +Variable names themselves can be variable and contain expressions. +Examples: +$foo normal variable +$foo_{$bar} variable name containing other variable +$foo_{$x+$y} variable name containing expressions +$foo_{$bar}_buh_{$blar} variable name with multiple segments +{$foo_{$x}} will output the variable $foo_1 if $x has a value of 1. + +Object method chaining is implemented. +Example: {$object->method1($x)->method2($y)} + +{for} tag added for looping (replacement for {section} tag): +{for $x=0, $y=count($foo); $x<$y; $x++} .... {/for} +Any number of statements can be used separated by comma as the first +inital expression at {for}. + +{for $x = $start to $end step $step} ... {/for}is in the SVN now . +You can use also +{for $x = $start to $end} ... {/for} +In this case the step value will be automaticall 1 or -1 depending on the start and end values. +Instead of $start and $end you can use any valid expression. +Inside the loop the following special vars can be accessed: +$x@iteration = number of iteration +$x@total = total number of iterations +$x@first = true on first iteration +$x@last = true on last iteration + + +The Smarty 2 {section} syntax is still supported. + +New shorter {foreach} syntax to loop over an array. +Example: {foreach $myarray as $var}...{/foreach} + +Within the foreach loop, properties are access via: + +$var@key foreach $var array key +$var@iteration foreach current iteration count (1,2,3...) +$var@index foreach current index count (0,1,2...) +$var@total foreach $var array total +$var@first true on first iteration +$var@last true on last iteration + +The Smarty 2 {foreach} tag syntax is still supported. + +NOTE: {$bar[foo]} still indicates a variable inside of a {section} named foo. +If you want to access an array element with index foo, you must use quotes +such as {$bar['foo']}, or use the dot syntax {$bar.foo}. + +while block tag is now implemented: +{while $foo}...{/while} +{while $x lt 10}...{/while} + +Direct access to PHP functions: +Just as you can use PHP functions as modifiers directly, you can now access +PHP functions directly, provided they are permitted by security settings: +{time()} + +There is a new {function}...{/function} block tag to implement a template function. +This enables reuse of code sequences like a plugin function. It can call itself recursively. +Template function must be called with the new {call name=foo...} tag. + +Example: + +Template file: +{function name=menu level=0} + <ul class="level{$level}"> + {foreach $data as $entry} + {if is_array($entry)} + <li>{$entry@key}</li> + {call name=menu data=$entry level=$level+1} + {else} + <li>{$entry}</li> + {/if} + {/foreach} + </ul> +{/function} + +{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => + ['item3-3-1','item3-3-2']],'item4']} + +{call name=menu data=$menu} + + +Generated output: + * item1 + * item2 + * item3 + o item3-1 + o item3-2 + o item3-3 + + item3-3-1 + + item3-3-2 + * item4 + +The function tag itself must have the "name" attribute. This name is the tag +name when calling the function. The function tag may have any number of +additional attributes. These will be default settings for local variables. + +New {nocache} block function: +{nocache}...{/nocache} will declare a section of the template to be non-cached +when template caching is enabled. + +New nocache attribute: +You can declare variable/function output as non-cached with the nocache attribute. +Examples: + +{$foo nocache=true} +{$foo nocache} /* same */ + +{foo bar="baz" nocache=true} +{foo bar="baz" nocache} /* same */ + +{time() nocache=true} +{time() nocache} /* same */ + +Or you can also assign the variable in your script as nocache: +$smarty->assign('foo',$something,true); // third param is nocache setting +{$foo} /* non-cached */ + +$smarty.current_dir returns the directory name of the current template. + +You can use strings directly as templates with the "string" resource type. +Examples: +$smarty->display('string:This is my template, {$foo}!'); // php +{include file="string:This is my template, {$foo}!"} // template + + + +VARIABLE SCOPE / VARIABLE STORAGE +================================= + +In Smarty 2, all assigned variables were stored within the Smarty object. +Therefore, all variables assigned in PHP were accessible by all subsequent +fetch and display template calls. + +In Smarty 3, we have the choice to assign variables to the main Smarty object, +to user-created data objects, and to user-created template objects. +These objects can be chained. The object at the end of a chain can access all +variables belonging to that template and all variables within the parent objects. +The Smarty object can only be the root of a chain, but a chain can be isolated +from the Smarty object. + +All known Smarty assignment interfaces will work on the data and template objects. + +Besides the above mentioned objects, there is also a special storage area for +global variables. + +A Smarty data object can be created as follows: +$data = $smarty->createData(); // create root data object +$data->assign('foo','bar'); // assign variables as usual +$data->config_load('my.conf'); // load config file + +$data= $smarty->createData($smarty); // create data object having a parent link to +the Smarty object + +$data2= $smarty->createData($data); // create data object having a parent link to +the $data data object + +A template object can be created by using the createTemplate method. It has the +same parameter assignments as the fetch() or display() method. +Function definition: +function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) + +The first parameter can be a template name, a smarty object or a data object. + +Examples: +$tpl = $smarty->createTemplate('mytpl.tpl'); // create template object not linked to any parent +$tpl->assign('foo','bar'); // directly assign variables +$tpl->config_load('my.conf'); // load config file + +$tpl = $smarty->createTemplate('mytpl.tpl',$smarty); // create template having a parent link to the Smarty object +$tpl = $smarty->createTemplate('mytpl.tpl',$data); // create template having a parent link to the $data object + +The standard fetch() and display() methods will implicitly create a template object. +If the $parent parameter is not specified in these method calls, the template object +is will link back to the Smarty object as it's parent. + +If a template is called by an {include...} tag from another template, the +subtemplate links back to the calling template as it's parent. + +All variables assigned locally or from a parent template are accessible. If the +template creates or modifies a variable by using the {assign var=foo...} or +{$foo=...} tags, these new values are only known locally (local scope). When the +template exits, none of the new variables or modifications can be seen in the +parent template(s). This is same behavior as in Smarty 2. + +With Smarty 3, we can assign variables with a scope attribute which allows the +availablility of these new variables or modifications globally (ie in the parent +templates.) + +Possible scopes are local, parent, root and global. +Examples: +{assign var=foo value='bar'} // no scope is specified, the default 'local' +{$foo='bar'} // same, local scope +{assign var=foo value='bar' scope='local'} // same, local scope + +{assign var=foo value='bar' scope='parent'} // Values will be available to the parent object +{$foo='bar' scope='parent'} // (normally the calling template) + +{assign var=foo value='bar' scope='root'} // Values will be exported up to the root object, so they can +{$foo='bar' scope='root'} // be seen from all templates using the same root. + +{assign var=foo value='bar' scope='global'} // Values will be exported to global variable storage, +{$foo='bar' scope='global'} // they are available to any and all templates. + + +The scope attribute can also be attached to the {include...} tag. In this case, +the specified scope will be the default scope for all assignments within the +included template. + + +PLUGINS +======= + +Smarty3 are following the same coding rules as in Smarty2. +The only difference is that the template object is passed as additional third parameter. + +smarty_plugintype_name (array $params, object $smarty, object $template) + +The Smarty 2 plugins are still compatible as long as they do not make use of specific Smarty2 internals. + + +TEMPLATE INHERITANCE: +===================== + +With template inheritance you can define blocks, which are areas that can be +overriden by child templates, so your templates could look like this: + +parent.tpl: +<html> + <head> + <title>{block name='title'}My site name{/block}</title> + </head> + <body> + <h1>{block name='page-title'}Default page title{/block}</h1> + <div id="content"> + {block name='content'} + Default content + {/block} + </div> + </body> +</html> + +child.tpl: +{extends file='parent.tpl'} +{block name='title'} +Child title +{/block} + +grandchild.tpl: +{extends file='child.tpl'} +{block name='title'}Home - {$smarty.block.parent}{/block} +{block name='page-title'}My home{/block} +{block name='content'} + {foreach $images as $img} + <img src="{$img.url}" alt="{$img.description}" /> + {/foreach} +{/block} + +We redefined all the blocks here, however in the title block we used {$smarty.block.parent}, +which tells Smarty to insert the default content from the parent template in its place. +The content block was overriden to display the image files, and page-title has also be +overriden to display a completely different title. + +If we render grandchild.tpl we will get this: +<html> + <head> + <title>Home - Child title</title> + </head> + <body> + <h1>My home</h1> + <div id="content"> + <img src="/example.jpg" alt="image" /> + <img src="/example2.jpg" alt="image" /> + <img src="/example3.jpg" alt="image" /> + </div> + </body> +</html> + +NOTE: In the child templates everything outside the {extends} or {block} tag sections +is ignored. + +The inheritance tree can be as big as you want (meaning you can extend a file that +extends another one that extends another one and so on..), but be aware that all files +have to be checked for modifications at runtime so the more inheritance the more overhead you add. + +Instead of defining the parent/child relationships with the {extends} tag in the child template you +can use the resource as follow: + +$smarty->display('extends:parent.tpl|child.tpl|grandchild.tpl'); + +Child {block} tags may optionally have a append or prepend attribute. In this case the parent block content +is appended or prepended to the child block content. + +{block name='title' append} My title {/block} + + +PHP STREAMS: +============ + +(see online documentation) + +VARIBLE FILTERS: +================ + +(see online documentation) + + +STATIC CLASS ACCESS AND NAMESPACE SUPPORT +========================================= + +You can register a class with optional namespace for the use in the template like: + +$smarty->register->templateClass('foo','name\name2\myclass'); + +In the template you can use it like this: +{foo::method()} etc. + + +======================= + +Please look through it and send any questions/suggestions/etc to the forums. + +http://www.phpinsider.com/smarty-forum/viewtopic.php?t=14168 + +Monte and Uwe
View file
Smarty-3.1.13.tar.gz/SMARTY_2_BC_NOTES.txt
Changed
(renamed from distribution/SMARTY_2_BC_NOTES.txt)
View file
Smarty-3.1.13.tar.gz/SMARTY_3.0_BC_NOTES.txt
Changed
(renamed from distribution/SMARTY_3.0_BC_NOTES.txt)
View file
Smarty-3.1.13.tar.gz/SMARTY_3.1_NOTES.txt
Changed
(renamed from distribution/SMARTY_3.1_NOTES.txt)
View file
Smarty-3.1.13.tar.gz/change_log.txt
Added
@@ -0,0 +1,2153 @@ +===== Smarty-3.1.13 ===== +13.01.2013 +- enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130) + +09.01.2013 +- bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966) +- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127) +- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128) +- added abstract method declaration doCompile() in Smarty_Internal_TemplateCompilerBase (Forum Topic 23969) + +06.01.2013 +- Allow '://' URL syntax in template names of stream resources (Issue #129) + +27.11.2012 +- bugfix wrong variable usage in smarty_internal_utility.php (Issue #125) + +26.11.2012 +- bugfix global variable assigned within template function are not seen after template function exit (Forum Topic 23800) + +24.11.2012 +- made SmartyBC loadable via composer (Issue #124) + +20.11.2012 +- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771) + +13.11.2012 +- adding attribute "strict" to html_options, html_checkboxes, html_radios to only print disabled/readonly attributes if their values are true or "disabled"/"readonly" (Issue #120) + +01.11.2012 +- bugfix muteExcpetedErrors() would screw up for non-readable paths (Issue #118) + +===== Smarty-3.1.12 ===== +14.09.2012 +- bugfix template inheritance failed to compile with delimiters {/ and /} (Forum Topic 23008) + +11.09.2012 +- bugfix escape Smarty exception messages to avoid possible script execution + +10.09.2012 +- bugfix tag option flags and shorttag attributes did not work when rdel started with '=' (Forum Topic 22979) + +31.08.2012 +- bugfix resolving relative paths broke in some circumstances (Issue #114) + +22.08.2012 +- bugfix test MBString availability through mb_split, as it could've been compiled without regex support (--enable-mbregex). + Either we get MBstring's full package, or we pretend it's not there at all. + +21.08.2012 +- bugfix $auto_literal = false did not work with { block} tags in child templates + (problem was reintroduced after fix in 3.1.7)(Forum Topic 20581) + +17.08.2012 +- bugfix compiled code of nocache sections could contain wrong escaping (Forum Topic 22810) + +15.08.2012 +- bugfix template inheritance did produce wrong code if subtemplates with {block} was + included several times (from smarty-developers forum) + +14.08.2012 +- bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110) + +01.08.2012 +- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608) + +30.07.2012 +-bugfix {assign} in a nocache section should not overwrite existing variable values + during compilation (issue 109) + +28.07.2012 +- bugfix array access of config variables did not work (Forum Topic 22527) + +19.07.2012 +- bugfix the default plugin handler did create wrong compiled code for static class methods + from external script files (issue 108) + +===== Smarty-3.1.11 ===== +30.06.2012 +- bugfix {block.. hide} did not work as nested child (Forum Topic 22216) + +25.06.2012 +- bugfix the default plugin handler did not allow static class methods for modifier (issue 85) + +24.06.2012 +- bugfix escape modifier support for PHP < 5.2.3 (Forum Topic 21176) + +11.06.2012 +- bugfix the patch for Topic 21856 did break tabs between tag attributes (Forum Topic 22124) + +===== Smarty-3.1.10 ===== +09.06.2012 +- bugfix the compiler did ignore registered compiler plugins for closing tags (Forum Topic 22094) +- bugfix the patch for Topic 21856 did break multiline tags (Forum Topic 22124) + +===== Smarty-3.1.9 ===== +07.06.2012 +- bugfix fetch() and display() with relative paths (Issue 104) +- bugfix treat "0000-00-00" as 0 in modifier.date_format (Issue 103) + +24.05.2012 +- bugfix Smarty_Internal_Write_File::writeFile() could cause race-conditions on linux systems (Issue 101) +- bugfix attribute parameter names of plugins may now contain also "-" and ":" (Forum Topic 21856) +- bugfix add compile_id to cache key of of source (Issue 97) + +22.05.2012 +- bugfix recursive {include} within {section} did fail (Smarty developer group) + +12.05.2012 +- bugfix {html_options} did not properly escape values (Issue 98) + +03.05.2012 +- bugfix make HTTP protocall version variable (issue 96) + +02.05.2012 +- bugfix {nocache}{block}{plugin}... did produce wrong compiled code when caching is disabled (Forum Topic 21572, issue 95) + +12.04.2012 +- bugfix Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93) +- bugfix concurrent cache updates could create a warning (Forum Topic 21403) + +08.04.2012 +- bugfix "\\" was not escaped correctly when generating nocache code (Forum Topic 21364) + +30.03.2012 +- bugfix template inheritance did not throw exception when a parent template was deleted (issue 90) + +27.03.2012 +- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325) +- bugfix implement Smarty2's behaviour of variables assigned by reference in SmartyBC. {assign} will affect all references. + (issue 88) + +21.03.2012 +- bugfix compileAllTemplates() and compileAllConfig() did not return the number of compiled files (Forum Topic 21286) + +13.03.2012 +- correction of yesterdays bugfix (Forum Topic 21175 and 21182) + +12.03.2012 +- bugfix a double quoted string of "$foo" did not compile into PHP "$foo" (Forum Topic 21175) +- bugfix template inheritance did set $merge_compiled_includes globally true + +03.03.2012 +- optimization of compiling speed when same modifier was used several times + +02.03.2012 +- enhancement the default plugin handler can now also resolve undefined modifier (Smarty::PLUGIN_MODIFIER) + (Issue 85) + +===== Smarty-3.1.8 ===== +19.02.2012 +- bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags + (reported by mh and Issue 83) +- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289) + + +07.02.2012 +- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996) +- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000) + +06.02.2012 +- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980) +- bugfix fetch('extends:foo.tpl') always yielded $source->exists == true (Forum Topic 20980) +- added modifier unescape:"url", fix (Forum Topic 20980) +- improvement replaced some calls of preg_replace with str_replace (Issue 73) + +30.01.2012 +- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated + +27.01.2012 +- bugfix Smarty did not a template name of "0" (Forum Topic 20895) + +20.01.2012 +- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74) +- improvment remove unneeded assigments (Issue 75 and 76) +- fixed typo in template parser +- bugfix output filter must not run before writing cache when template does contain nocache code (Issue 71) + +02.01.2012 +- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753) + +29.12.2011 +- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724) +- bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) + +28.12.2011 +- bugfix Smarty's internal header code must be excluded from postfilters (issue 71) + +22.12.2011 +- bugfix the new lexer of 17.12.2011 did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680) +- bugfix template inheritace did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680) + +20.12.2011 +- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return + content after {$smarty.block.child} (Forum Topic 20564) + +===== Smarty-3.1.7 ===== +18.12.2011 +- bugfix strings ending with " in multiline strings of config files failed to compile (issue #67) +- added chaining to Smarty_Internal_Templatebase +- changed unloadFilter() to not return a boolean in favor of chaining and API conformity +- bugfix unregisterObject() raised notice when object to unregister did not exist +- changed internals to use Smarty::$_MBSTRING ($_CHARSET, $_DATE_FORMAT) for better unit testing +- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452) +- added Smarty_Security::isTrustedUri() and Smarty_Security::$trusted_uri to validate + remote resource calls through {fetch} and {html_image} (Forum Topic 20627) + +17.12.2011 +- improvement of compiling speed by new handling of plain text blocks in the lexer/parser (issue #68) + +16.12.2011 +- bugfix the source exits flag and timestamp was not setup when template was in php include path (issue #69) + +9.12.2011 +- bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549) +- bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581) +- bugfix template inheritance: do not include code of {include} in overloaded {block} into compiled + parent template (Issue #66} +- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return expected + result (Forum Topic 20564) + +===== Smarty-3.1.6 ===== +30.11.2011 +- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce + an exception (Forum Topic 20531) + +29.11.2011 +- bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512) + +25.11.2011 +- bugfix {html_select_date} and {html_slecet_time} did not default to current time if "time" was not specified + since r4432 (issue 60) + +24.11.2011 +- bugfix a subtemplate later used as main template did use old variable values + +21.11.2011 +- bugfix cache file could include unneeded modifier plugins under certain condition + +18.11.2011 +- bugfix declare all directory properties private to map direct access to getter/setter also on extended Smarty class + +16.11.2011 +- bugfix Smarty_Resource::load() did not always return a proper resource handler (Forum Topic 20414) +- added escape argument to html_checkboxes and html_radios (Forum Topic 20425) + +===== Smarty-3.1.5 ===== +14.11.2011 +- bugfix allow space between function name and open bracket (forum topic 20375) + +09.11.2011 +- bugfix different behaviour of uniqid() on cygwin. See https://bugs.php.net/bug.php?id=34908 + (forum topic 20343) + +01.11.2011 +- bugfix {if} and {while} tags without condition did not throw a SmartyCompilerException (Issue #57) +- bugfix multiline strings in config files could fail on longer strings (reopened Issue #55) + +22.10.2011 +- bugfix smarty_mb_from_unicode() would not decode unicode-points properly +- bugfix use catch Exception instead UnexpectedValueException in + clearCompiledTemplate to be PHP 5.2 compatible + +21.10.2011 +- bugfix apostrophe in plugins_dir path name failed (forum topic 20199) +- improvement sha1() for array keys longer than 150 characters +- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128) + +20.10.2011 +- @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it. +- bugfix Smarty::clearCompiledTemplate() threw an Exception if $cache_id was not present in $compile_dir when $use_sub_dirs = true. +- bugfix {html_select_date} and {html_select_time} did not properly handle empty time arguments (Forum Topic 20190) +- improvement removed unnecessary sha1() + +19.10.2011 +- revert PHP4 constructor message +- fixed PHP4 constructor message + +===== Smarty-3.1.4 ===== +19.10.2011 +- added exception when using PHP4 style constructor + +16.10.2011 +- bugfix testInstall() did not propery check cache_dir and compile_dir + +15.10.2011 +- bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264) + +14.10.2011 +- bugfix unique_resource did not properly apply to compiled resources (Forum Topic 20128) +- add locking to custom resources (Forum Post 75252) +- add Smarty_Internal_Template::clearCache() to accompany isCached() fetch() etc. + +13.10.2011 +- add caching for config files in Smarty_Resource +- bugfix disable of caching after isCached() call did not work (Forum Topic 20131) +- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 20128) +- bugfix multiline strings in config files could fail on longer strings (Issue #55) + +11.10.2011 +- add runtime checks for not matching {capture}/{/capture} calls (Forum Topic 20120) + +10.10.2011 +- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54) +- bugfix <?xml> tag did create wrong output when caching enabled and the tag was in included subtemplate +- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls + +===== Smarty-3.1.3 ===== +07.10.2011 +- improvement removed html comments from {mailto} (Forum Topic 20092) +- bugfix testInstall() would not show path to internal plugins_dir (Forum Post 74627) +- improvement testInstall() now showing resolved paths and checking the include_path if necessary +- bugfix html_options plugin did not handle object values properly (Issue #49, Forum Topic 20049) +- improvement html_checkboxes and html_radios to accept null- and object values, and label_ids attribute +- improvement removed some unnecessary count()s +- bugfix parent pointer was not set when fetch() for other template was called on template object + +06.10.2011 +- bugfix switch lexer internals depending on mbstring.func_overload +- bugfix start_year and end_year of {html_select_date} did not use current year as offset base (Issue #53) + +05.10.2011 +- bugfix of problem introduced with r4342 by replacing strlen() with isset() +- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45) +- bugfix nofilter tag option did not disable default modifier +- bugfix html_options plugin did not handle null- and object values properly (Issue #49, Forum Topic 20049) + +04.10.2011 +- bugfix assign() in plugins called in subtemplates did change value also in parent template +- bugfix of problem introduced with r4342 on math plugin +- bugfix output filter should not run on individually cached subtemplates +- add unloadFilter() method +- bugfix has_nocache_code flag was not reset before compilation + +===== Smarty-3.1.2 ===== +03.10.2011 +- improvement add internal $joined_template_dir property instead computing it on the fly several times + +01.10.2011 +- improvement replaced most in_array() calls by more efficient isset() on array_flip()ed haystacks +- improvement replaced some strlen($foo) > 3 calls by isset($foo[3]) +- improvement Smarty_Internal_Utility::clearCompiledTemplate() removed redundant strlen()s + +29.09.2011 +- improvement of Smarty_Internal_Config::loadConfigVars() dropped the in_array for index look up + +28.09.2011 +- bugfix on template functions called nocache calling other template functions + +27.09.2011 +- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34) +- added chaining to Smarty_Internal_Data so $smarty->assign('a',1)->assign('b',2); is possible now +- bugfix remove race condition when a custom resource did change timestamp during compilation +- bugfix variable property did not work on objects variable in template +- bugfix smarty_make_timestamp() failed to process DateTime objects properly +- bugfix wrong resource could be used on compile check of custom resource + +26.09.2011 +- bugfix repeated calls to same subtemplate did not make use of cached template object + +24.09.2011 +- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application +- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable +- added compile_dir and cache_dir to list of muted directories +- improvment better error message for undefined templates at {include} + +23.09.2011 +- remove unused properties +- optimization use real function instead anonymous function for preg_replace_callback +- bugfix a relative {include} in child template blocks failed +- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an + extended Smarty class created problems +- bugfix error muting was not implemented for cache locking + +===== Smarty 3.1.1 ===== +22.09.2011 +- bugfix {foreachelse} does fail if {section} was nested inside {foreach} +- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true + +21.09.2011 +- bugfix look for mixed case plugin file names as in 3.0 if not found try all lowercase +- added $error_muting to suppress error messages even for badly implemented error_handlers +- optimized autoloader +- reverted ./ and ../ handling in fetch() and display() - they're allowed again + +20.09.2011 +- bugfix removed debug echo output while compiling template inheritance +- bugfix relative paths in $template_dir broke relative path resolving in {include "../foo.tpl"} +- bugfix {include} did not work inside nested {block} tags +- bugfix {assign} with scope root and global did not work in all cases + +19.09.2011 +- bugfix regression in Smarty_CacheReource_KeyValueStore introduced by r4261 +- bugfix output filter shall not run on included subtemplates + +18.09.2011 +- bugfix template caching did not care about file.tpl in different template_dir +- bugfix {include $file} was broken when merge_compiled_incluges = true +- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template + was used in different main templates in one compilation run +- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} +- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true + +17.09.2011 +- bugfix lock_id for file resource would create invalid filepath +- bugfix resource caching did not care about file.tpl in different template_dir + +===== Smarty 3.1.0 ===== +15/09/2011 +- optimization of {foreach}; call internal _count() method only when "total" or "last" {foreach} properties are used + +11/09/2011 +- added unregisterObject() method + +06/09/2011 +- bugfix isset() did not work in templates on config variables + +03/09/2011 +- bugfix createTemplate() must default to cache_id and compile_id of Smarty object +- bugfix Smarty_CacheResource_KeyValueStore must include $source->uid in cache filepath to keep templates with same + name but different folders seperated +- added cacheresource.apc.php example in demo folder + +02/09/2011 +- bugfix cache lock file must use absolute filepath + +01/09/2011 +- update of cache locking + +30/08/2011 +- added locking mechanism to CacheResource API (implemented with File and KeyValueStores) + +28/08/2011 +- bugfix clearCompileTemplate() did not work for specific template subfolder or resource + +27/08/2011 +- bugfix {$foo|bar+1} did create syntax error + +26/08/2011 +- bugfix when generating nocache code which contains double \ +- bugfix handle race condition if cache file was deleted between filemtime and include + +17/08/2011 +- bugfix CacheResource_Custom bad internal fetch() call + +15/08/2011 +- bugfix CacheResource would load content twice for KeyValueStore and Custom handlers + +06/08/2011 +- bugfix {include} with scope attribute could execute in wrong scope +- optimization of compile_check processing + +03/08/2011 +- allow comment tags to comment {block} tags out in child templates + +26/07/2011 +- bugfix experimental getTags() method did not work + +24/07/2011 +- sure opened output buffers are closed on exception +- bugfix {foreach} did not work on IteratorAggregate + +22/07/2011 +- clear internal caches on clearAllCache(), clearCache(), clearCompiledTemplate() + +21/07/2011 +- bugfix value changes of variable values assigned to Smarty object could not be seen on repeated $smarty->fetch() calls + +17/07/2011 +- bugfix {$smarty.block.child} did drop a notice at undefined child + +15/07/2011 +- bugfix individual cache_lifetime of {include} did not work correctly inside {block} tags +- added caches for Smarty_Template_Source and Smarty_Template_Compiled to reduce I/O for multiple cache_id rendering + +14/07/2011 +- made Smarty::loadPlugin() respect the include_path if required + +13/07/2011 +- optimized internal file write functionality +- bugfix PHP did eat line break on nocache sections +- fixed typo of Smarty_Security properties $allowed_modifiers and $disabled_modifiers + +06/07/2011 +- bugfix variable modifier must run befor gereral filtering/escaping + +04/07/2011 +- bugfix use (?P<name>) syntax at preg_match as some pcre libraries failed on (?<name>) +- some performance improvement when using generic getter/setter on template objects + +30/06/2011 +- bugfix generic getter/setter of Smarty properties used on template objects did throw exception +- removed is_dir and is_readable checks from directory setters for better performance + +28/06/2011 +- added back support of php template resource as undocumented feature +- bugfix automatic recompilation on version change could drop undefined index notice on old 3.0 cache and compiled files +- update of README_3_1_DEV.txt and moved into the distribution folder +- improvement show first characters of eval and string templates instead sha1 Uid in debug window + +===== Smarty 3.1-RC1 ===== +25/06/2011 +- revert change of 17/06/2011. $_smarty varibale removed. call loadPlugin() from inside plugin code if required +- code cleanup, remove no longer used properties and methods +- update of PHPdoc comments + +23/06/2011 +- bugfix {html_select_date} would not respect current time zone + +19/06/2011 +- added $errors argument to testInstall() functions to suppress output. +- added plugin-file checks to testInstall() + +18/06/2011 +- bugfix mixed use of same subtemplate inline and not inline in same script could cause a warning during compilation + +17/06/2011 +- bugfix/change use $_smarty->loadPlugin() when loading nested depending plugins via loadPlugin +- bugfix {include ... inline} within {block}...{/block} did fail + +16/06/2011 +- bugfix do not overwrite '$smarty' template variable when {include ... scope=parent} is called +- bugfix complete empty inline subtemplates did fail + +15/06/2011 +- bugfix template variables where not accessable within inline subtemplates + +12/06/2011 +- bugfix removed unneeded merging of template variable when fetching includled subtemplates + +10/06/2011 +- made protected properties $template_dir, $plugins_dir, $cache_dir, $compile_dir, $config_dir accessible via magic methods + +09/06/2011 +- fix smarty security_policy issue in plugins {html_image} and {fetch} + +05/06/2011 +- update of SMARTY_VERSION +- bugfix made getTags() working again + +04/06/2011 +- allow extends resource in file attribute of {extends} tag + +03/06/2011 +- added {setfilter} tag to set filters for variable output +- added escape_html property to control autoescaping of variable output + +27/05/2011 +- added allowed/disabled tags and modifiers in security for sandboxing + +23/05/2011 +- added base64: and urlencode: arguments to eval and string resource types + +22/05/2011 +- made time-attribute of {html_select_date} and {html_select_time} accept arrays as defined by attributes prefix and field_array + +13/05/2011 +- remove setOption / getOption calls from SamrtyBC class + +02/05/2011 +- removed experimental setOption() getOption() methods +- output returned content also on opening tag calls of block plugins +- rewrite of default plugin handler +- compile code of variable filters for better performance + +20/04/2011 +- allow {php} {include_php} tags and PHP_ALLOW handling only with the SmartyBC class +- removed support of php template resource + +20/04/2011 +- added extendsall resource example +- optimization of template variable access +- optimization of subtemplate handling {include} +- optimization of template class + +01/04/2011 +- bugfix quote handling in capitalize modifier + +28/03/2011 +- bugfix stripslashes() requried when using PCRE e-modifier + +04/03/2011 +- upgrade to new PHP_LexerGenerator version 0.4.0 for better performance + +27/02/2011 +- ignore .svn folders when clearing cache and compiled files +- string resources do not need a modify check + +26/02/2011 +- replaced smarty_internal_wrapper by SmartyBC class +- load utility functions as static methods instead through __call() +- bugfix in extends resource when subresources are used +- optimization of modify checks + +25/02/2011 +- use $smarty->error_unassigned to control NOTICE handling on unassigned variables + +21/02/2011 +- added new new compile_check mode COMPILECHECK_CACHEMISS +- corrected new cloning behaviour of createTemplate() +- do no longer store the compiler object as property in the compile_tag classes to avoid possible memory leaks + during compilation + +19/02/2011 +- optimizations on merge_compiled_includes handling +- a couple of optimizations and bugfixes related to new resource structure + +17/02/2011 +- changed ./ and ../ behaviour + +14/02/2011 +- added {block ... hide} option to supress block if no child is defined + +13/02/2011 +- update handling of recursive subtemplate calls +- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php + +12/02/2011 +- new class Smarty_Internal_TemplateBase with shared methods of Smarty and Template objects +- optimizations of template processing +- made register... methods permanet +- code for default_plugin_handler +- add automatic recompilation at version change + +04/02/2011 +- change in Smarty_CacheResource_Custom +- bugfix cache_lifetime did not compile correctly at {include} after last update +- moved isCached processing into CacheResource class +- bugfix new CacheResource API did not work with disabled compile_check + +03/02/2011 +- handle template content as function to improve speed on multiple calls of same subtemplate and isCached()/display() calls +- bugfixes and improvents in the new resource API +- optimizations of template class code + +25/01/2011 +- optimized function html_select_time + +22/01/2011 +- added Smarty::$use_include_path configuration directive for Resource API + +21/01/2011 +- optimized function html_select_date + +19/01/2011 +- optimized outputfilter trimwhitespace + +18/01/2011 +- bugfix Config to use Smarty_Resource to fetch sources +- optimized Smarty_Security's isTrustedDir() and isTrustedPHPDir() + +17/01/2011 +- bugfix HTTP headers for CGI SAPIs + +16/01/2011 +- optimized internals of Smarty_Resource and Smarty_CacheResource + +14/01/2011 +- added modifiercompiler escape to improve performance of escaping html, htmlall, url, urlpathinfo, quotes, javascript +- added support to choose template_dir to load from: [index]filename.tpl + +12/01/2011 +- added unencode modifier to revert results of encode modifier +- added to_charset and from_charset modifier for character encoding + +11/01/2011 +- added SMARTY_MBSTRING to generalize MBString detection +- added argument $lc_rest to modifier.capitalize to lower-case anything but the first character of a word +- changed strip modifier to consider unicode white-space, too +- changed wordwrap modifier to accept UTF-8 strings +- changed count_sentences modifier to consider unicode characters and treat sequences delimited by ? and ! as sentences, too +- added argument $double_encode to modifier.escape (applies to html and htmlall only) +- changed escape modifier to be UTF-8 compliant +- changed textformat block to be UTF-8 compliant +- optimized performance of mailto function +- fixed spacify modifier so characters are not prepended and appended, made it unicode compatible +- fixed truncate modifier to properly use mb_string if possible +- removed UTF-8 frenzy from count_characters modifier +- fixed count_words modifier to treat "hello-world" as a single word like str_count_words() does +- removed UTF-8 frenzy from upper modifier +- removed UTF-8 frenzy from lower modifier + +01/01/2011 +- optimize smarty_modified_escape for hex, hexentity, decentity. + +28/12/2010 +- changed $tpl_vars, $config_vars and $parent to belong to Smarty_Internal_Data +- added Smarty::registerCacheResource() for dynamic cache resource object registration + +27/12/2010 +- added Smarty_CacheResource API and refactored existing cache resources accordingly +- added Smarty_CacheResource_Custom and Smarty_CacheResource_Mysql + +26/12/2010 +- added Smarty_Resource API and refactored existing resources accordingly +- added Smarty_Resource_Custom and Smarty_Resource_Mysql +- bugfix Smarty::createTemplate() to return properly cloned template instances + +24/12/2010 +- optimize smarty_function_escape_special_chars() for PHP >= 5.2.3 + +===== SVN 3.0 trunk ===== +14/05/2011 +- bugfix error handling at stream resources + +13/05/2011 +- bugfix condition starting with "-" did fail at {if} and {while} tags + +22/04/2011 +- bugfix allow only fixed string as file attribute at {extends} tag + +01/04/2011 +- bugfix do not run filters and default modifier when displaying the debug template +- bugfix of embedded double quotes within multi line strings (""") + +29/03/2011 +- bugfix on error message in smarty_internal_compile_block.php +- bugfix mb handling in strip modifier +- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar} + +17/03/2011 +- bugfix on default {function} parameters when {function} was used in nocache sections +- bugfix on compiler object destruction. compiler_object property was by mistake unset. + +09/03/2011 +-bugfix a variable filter should run before modifers on an output tag (see change of 23/07/2010) + +08/03/2011 +- bugfix loading config file without section should load only defaults + +03/03/2011 +- bugfix "smarty" template variable was not recreated when cached templated had expired +- bugfix internal rendered_content must be cleared after subtemplate was included + +01/03/2011 +- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support +- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of + child name when it needed to compile + +25/02/2011 +- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} + +24/02/2011 +- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object + +18/02/2011 +- bugfix removed possible race condition when isCached() was called for an individually cached subtemplate +- bugfix force default debug.tpl to be loaded by the file resource + +17/02/2011 +-improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache() + +16/02/2011 +-fixed typo in exception message of Smarty_Internal_Template +-improvement allow leading spaces on } tag closing if auto_literal is enabled + +13/02/2011 +- bufix replace $smarty->triggerError() by exception +- removed obsolete {popup_init..} plugin from demo templates +- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php + +===== Smarty 3.0.7 ===== +09/02/2011 +- patched vulnerability when using {$smarty.template} + +01/02/2011 +- removed assert() from config and template parser + +31/01/2011 +- bugfix the lexer/parser did fail on special characters like VT + +16/01/2011 +-bugfix of ArrayAccess object handling in internal _count() method +-bugfix of Iterator object handling in internal _count() method + +14/01/2011 +-bugfix removed memory leak while processing compileAllTemplates + +12/01/2011 +- bugfix in {if} and {while} tag compiler when using assignments as condition and nocache mode + +10/01/2011 +- bugfix when using {$smarty.block.child} and name of {block} was in double quoted string +- bugfix updateParentVariables() was called twice when leaving {include} processing + +- bugfix mb_str_replace in replace and escape modifiers work with utf8 + +31/12/2010 +- bugfix dynamic configuration of $debugging_crtl did not work +- bugfix default value of $config_read_hidden changed to false +- bugfix format of attribute array on compiler plugins +- bugfix getTemplateVars() could return value from wrong scope + +28/12/2010 +- bugfix multiple {append} tags failed to compile. + +22/12/2010 +- update do not clone the Smarty object an internal createTemplate() calls to increase performance + +21/12/2010 +- update html_options to support class and id attrs + +17/12/2010 +- bugfix added missing support of $cache_attrs for registered plugins + +15/12/2010 +- bugfix assignment as condition in {while} did drop an E_NOTICE + +14/12/2010 +- bugfix when passing an array as default parameter at {function} tag + +13/12/2010 +- bugfix {$smarty.template} in child template did not return right content +- bugfix Smarty3 did not search the PHP include_path for template files + +===== Smarty 3.0.6 ===== + +12/12/2010 +- bugfix fixed typo regarding yesterdays change to allow streamWrapper + +11/12/2010 +- bugfix nested block tags in template inheritance child templates did not work correctly +- bugfix {$smarty.current_dir} in child template did not point to dir of child template +- bugfix changed code when writing temporary compiled files to allow stream_wrapper + +06/12/2010 +- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable + +05/12/2010 +- bugfix missing declaration of $smarty in Smarty class +- bugfix empty($foo) in {if} did drop a notice when $foo was not assigned + +01/12/2010 +- improvement of {debug} tag output + +27/11/2010 +-change run output filter before cache file is written. (same as in Smarty2) + +24/11/2011 +-bugfix on parser at !$foo|modifier +-change parser logic when assignments used as condition in {if] and {while} to allow assign to array element + +23/11/2011 +-bugfix allow integer as attribute name in plugin calls +-change trimm whitespace from error message, removed long list of expected tokens + +22/11/2010 +- bugfix on template inheritance when an {extends} tag was inserted by a prefilter +- added error message for illegal variable file attributes at {extends...} tags + +===== Smarty 3.0.5 ===== + + +19/11/2010 +- bugfix on block plugins with modifiers + +18/11/2010 +- change on handling of unassigned template variable -- default will drop E_NOTICE +- bugfix on Smarty2 wrapper load_filter() did not work + +17/11/2010 +- bugfix on {call} with variable function name +- bugfix on {block} if name did contain '-' +- bugfix in function.fetch.php , referece to undefined $smarty + +16/11/2010 +- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php +- bugfix {$smarty.now} did compile incorrectly +- bugfix on reset(),end(),next(),prev(),current() within templates +- bugfix on default parameter for {function} + +15/11/2010 +- bugfix when using {$smarty.session} as object +- bugfix scoping problem on $smarty object passed to filters +- bugfix captured content could not be accessed globally +- bugfix Smarty2 wrapper functions could not be call from within plugins + +===== Smarty 3.0.4 ===== + +14/11/2010 +- bugfix isset() did not allow multiple parameter +- improvment of some error messages +- bugfix html_image did use removed property $request_use_auto_globals +- small performace patch in Smarty class + +13/11/2010 +- bugfix overloading problem when $smarty->fetch()/display() have been used in plugins + (introduced with 3.0.2) +- code cleanup + +===== Smarty 3.0.3 ===== + +13/11/2010 +- bugfix on {debug} +- reverted location of loadPlugin() to Smarty class +- fixed comments in plugins +- fixed internal_config (removed unwanted code line) +- improvement remove last linebreak from {function} definition + +===== Smarty 3.0.2 ===== + +12/11/2010 +- reactivated $error_reporting property handling +- fixed typo in compile_continue +- fixed security in {fetch} plugin +- changed back plugin parameters to two. second is template object + with transparent access to Smarty object +- fixed {config_load} scoping form compile time to run time + +===== Smarty 3.0.0 ===== + + + +11/11/2010 +- major update including some API changes + +10/11/2010 +- observe compile_id also for config files + +09/11/2010 +-bugfix on complex expressions as start value for {for} tag +request_use_auto_globals +04/11/2010 +- bugfix do not allow access of dynamic and private object members of assigned objects when + security is enabled. + +01/11/2010 +- bugfix related to E_NOTICE change. {if empty($foo)} did fail when $foo contained a string + +28/10/2010 +- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}} + +27/10/2010 +- bugfix default parameter values did not work for template functions included with {include} + +25/10/2010 +- bugfix for E_NOTICE change, array elements did not work as modifier parameter + +20/10/2010 +- bugfix for the E_NOTICE change + +19/10/2010 +- change Smarty does no longer mask out E_NOTICE by default during template processing + +13/10/2010 +- bugfix removed ambiguity between ternary and stream variable in template syntax +- bugfix use caching properties of template instead of smarty object when compiling child {block} +- bugfix {*block}...{/block*} did throw an exception in template inheritance +- bugfix on template inheritance using nested eval or string resource in {extends} tags +- bugfix on output buffer handling in isCached() method + +===== RC4 ===== + +01/10/2010 +- added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops +- change of 'string' resource. It's no longer evaluated and compiled files are now stored +- new 'eval' resource which evaluates a template without saving the compiled file +- change in isCached() method to allow multiple calls for the same template + +25/09/2010 +- bugfix on some compiling modifiers + +24/09/2010 +- bugfix merge_compiled_includes flag was not restored correctly in {block} tag + +22/09/2010 +- bugfix on default modifier + +18/09/2010 +- bugfix untility compileAllConfig() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS +- bugfix on templateExists() for extends resource + +17/09/2010 +- bugfix {$smarty.template} and {$smarty.current_dir} did not compile correctly within {block} tags +- bugfix corrected error message on missing template files in extends resource +- bugfix untility compileAllTemplates() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS + +16/09/2010 +- bugfix when a doublequoted modifier parameter did contain Smarty tags and ':' + +15/09/2010 +- bugfix resolving conflict between '<%'/'%>' as custom Smarty delimiter and ASP tags +- use ucfirst for resource name on internal resource class names + +12/09/2010 +- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) + +10/09/2010 +- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) + +08/09/2010 +- allow multiple template inheritance branches starting in subtemplates + +07/09/2010 +- bugfix {counter} and {cycle} plugin assigned result to smarty variable not in local(template) scope +- bugfix templates containing just {strip} {/strip} tags did produce an error + + +23/08/2010 +- fixed E_STRICT errors for uninitialized variables + +22/08/2010 +- added attribute cache_id to {include} tag + +13/08/2010 +- remove exception_handler property from Smarty class +- added Smarty's own exceptions SmartyException and SmartyCompilerException + +09/08/2010 +- bugfix on modifier with doublequoted strings as parameter containing embedded tags + +06/08/2010 +- bugfix when cascading some modifier like |strip|strip_tags modifier + +05/08/2010 +- added plugin type modifiercompiler to produce compiled modifier code +- changed standard modifier plugins to the compiling versions whenever possible +- bugfix in nocache sections {include} must not cache the subtemplate + +02/08/2010 +- bugfix strip did not work correctly in conjunction with comment lines + +31/07/2010 +- bugfix on nocache attribute at {assign} and {append} + +30/07/2010 +- bugfix passing scope attributes in doublequoted strings did not work at {include} {assign} and {append} + +25/07/2010 +- another bugfix of change from 23/07/2010 when compiling modifer + +24/07/2010 +- bugfix of change from 23/07/2010 when compiling modifer + +23/07/2010 +- changed execution order. A variable filter does now run before modifiers on output of variables +- bugfix use always { and } as delimiter for debug.tpl + + +22/07/2010 +- bugfix in templateExists() method + +20/07/2010 +- fixed handling of { strip } tag with whitespaces + +15/07/2010 +- bufix {$smarty.template} does include now the relative path, not just filename + +===== RC3 ===== + + + + +15/07/2010 +- make the date_format modifier work also on objects of the DateTime class +- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output + +08/07/2010 +- bugfix on assigning multidimensional arrays within templates +- corrected bugfix for truncate modifier + +07/07/2010 +- bugfix the truncate modifier needs to check if the string is utf-8 encoded or not +- bugfix support of script files relative to trusted_dir + +06/07/2010 +- create exception on recursive {extends} calls +- fixed reported line number at "unexpected closing tag " exception +- bugfix on escape:'mail' modifier +- drop exception if 'item' variable is equal 'from' variable in {foreach} tag + +01/07/2010 +- removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins + +25/06/2010 +- bugfix escaping " when block tags are used within doublequoted strings + +24/06/2010 +- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility +- added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace + + +22/06/2010 +- allow spaces between typecast and value in template syntax +- bugfix get correct count of traversables in {foreach} tag + +21/06/2010 +- removed use of PHP shortags SMARTY_PHP_PASSTHRU mode +- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true + +20/06/2010 +- replace internal get_time() calls with standard PHP5 microtime(true) calls +- closed security hole when php.ini asp_tags = on + +18/06/2010 +- added __toString method to the Smarty_Variable class + + +14/06/2010 +- make handling of Smarty comments followed by newline BC to Smarty2 + + +===== RC2 ===== + + + +13/06/2010 +- bugfix Smarty3 did not handle hexadecimals like 0x0F as numerical value +- bugifx Smarty3 did not accept numerical constants like .1 or 2. (without a leading or trailing digit) + +11/06/2010 +- bugfix the lexer did fail on larger {literal} ... {/literal} sections + +03/06/2010 +- bugfix on calling template functions like Smarty tags + +01/06/2010 +- bugfix on template functions used with template inheritance +- removed /* vim: set expandtab: */ comments +- bugfix of auto literal problem introduce with fix of 31/05/2010 + +31/05/2010 +- bugfix the parser did not allow some smarty variables with special name like $for, $if, $else and others. + +27/05/2010 +- bugfix on object chaining using variable properties +- make scope of {counter} and {cycle} tags again global as in Smarty2 + +26/05/2010 +- bugfix removed decrepated register_resource call in smarty_internal_template.php + +25/05/2010 +- rewrite of template function handling to improve speed +- bugfix on file dependency when merge_compiled_includes = true + + +16/05/2010 +- bugfix when passing parameter with numeric name like {foo 1='bar' 2='blar'} + +14/05/2010 +- bugfix compile new config files if compile_check and force_compile = false +- added variable static classes names to template syntax + +11/05/2010 +- bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally +- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag. + +10/05/2010 +- bugfix on {foreach} and {for} optimizations of 27/04/2010 + +09/05/2010 +- update of template and config file parser because of minor parser generator bugs + +07/05/2010 +- bugfix on {insert} + +06/05/2010 +- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag + +05/05/2010 +- bugfix on {insert} to cache parameter +- implementation of $smarty->default_modifiers as in Smarty2 +- bugfix on getTemplateVars method + +01/05/2010 +- bugfix on handling of variable method names at object chaning + +30/04/2010 +- bugfix when comparing timestamps in sysplugins/smarty_internal_config.php +- work around of a substr_compare bug in older PHP5 versions +- bugfix on template inheritance for tag names starting with "block" +- bugfix on {function} tag with name attribute in doublequoted strings +- fix to make calling of template functions unambiguously by madatory usage of the {call} tag + +===== RC1 ===== + +27/04/2010 +- change default of $debugging_ctrl to 'NONE' +- optimization of compiled code of {foreach} and {for} loops +- change of compiler for config variables + +27/04/2010 +- bugfix in $smarty->cache->clear() method. (do not cache template object) + + +17/04/2010 +- security fix in {math} plugin + + +12/04/2010 +- bugfix in smarty_internal_templatecompilerbase (overloaded property) +- removed parser restrictions in using true,false and null as ID + +07/04/2010 +- bugfix typo in smarty_internal_templatecompilerbase + +31/03/2010 +- compile locking by touching old compiled files to avoid concurrent compilations + +29/03/2010 +- bugfix allow array definitions as modifier parameter +- bugfix observe compile_check property when loading config files +- added the template object as third filter parameter + +25/03/2010 +- change of utility->compileAllTemplates() log messages +- bugfix on nocache code in {function} tags +- new method utility->compileAllConfig() to compile all config files + +24/03/2010 +- bugfix on register->modifier() error messages + +23/03/2010 +- bugfix on template inheritance when calling multiple child/parent relations +- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0 + +22/03/2010 +- bugfix make directory separator operating system independend in compileAllTemplates() + +21/03/2010 +- removed unused code in compileAllTemplates() + +19/03/2010 +- bugfix for multiple {/block} tags on same line + +17/03/2010 +- bugfix make $smarty->cache->clear() function independent from caching status + +16/03/2010 +- bugfix on assign attribute at registered template objects +- make handling of modifiers on expression BC to Smarty2 + +15/03/2010 +- bugfix on block plugin calls + +11/03/2010 +- changed parsing of <?php and ?> back to Smarty2 behaviour + +08/03/2010 +- bugfix on uninitialized properties in smarty_internal_template +- bugfix on $smarty->disableSecurity() + +04/03/2010 +- bugfix allow uppercase chars in registered resource names +- bugfix on accessing chained objects of static classes + +01/03/2010 +- bugfix on nocache code in {block} tags if child template was included by {include} + +27/02/2010 +- allow block tags inside double quoted string + +26/02/2010 +- cache modified check implemented +- support of access to a class constant from an object (since PHP 5.3) + +24/02/2010 +- bugfix on expressions in doublequoted string enclosed in backticks +- added security property $static_classes for static class security + +18/02/2010 +- bugfix on parsing Smarty tags inside <?xml ... ?> +- bugfix on truncate modifier + +17/02/2010 +- removed restriction that modifiers did require surrounding parenthesis in some cases +- added {$smarty.block.child} special variable for template inheritance + +16/02/2010 +- bugfix on <?xml ... ?> tags for all php_handling modes +- bugfix on parameter of variablefilter.htmlspecialchars.php plugin + +14/02/2010 +- added missing _plugins property in smarty.class.php +- bugfix $smarty.const... inside doublequoted strings and backticks was compiled into wrong PHP code + +12/02/2010 +- bugfix on nested {block} tags +- changed Smarty special variable $smarty.parent to $smarty.block.parent +- added support of nested {bock} tags + +10/02/2010 +- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....) +- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode +- bugfix at new "for" syntax like {for $x=1 to 10 step 2} + +09/02/2010 +- added $smarty->_tag_stack for tracing block tag hierarchy + +08/02/2010 +- bugfix use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....) +- bugfix of cache filename on extended templates when force_compile=true + +07/02/2010 +- bugfix on changes of 05/02/2010 +- preserve line endings type form template source +- API changes (see README file) + +05/02/2010 +- bugfix on modifier and block plugins with same name + +02/02/2010 +- retaining newlines at registered functions and function plugins + +01/25/2010 +- bugfix cache resource was not loaded when caching was globally off but enabled at a template object +- added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php + +01/22/2010 +- new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below) +- bugfix config_load() method now works also on a data object +- bugfix get_config_vars() method now works also on a data and template objects +- bugfix clear_config() method now works also on a data and template objects + +01/19/2010 +- bugfix on plugins if same plugin was called from a nocache section first and later from a cached section + + +###beta 7### + + +01/17/2010 +- bugfix on $smarty.const... in double quoted strings + +01/16/2010 +- internal change of config file lexer/parser on handling of section names +- bugfix on registered objects (format parameter of register_object was not handled correctly) + +01/14/2010 +- bugfix on backslash within single quoted strings +- bugfix allow absolute filepath for config files +- bugfix on special Smarty variable $smarty.cookies +- revert handling of newline on no output tags like {if...} +- allow special characters in config file section names for Smarty2 BC + +01/13/2010 +- bugfix on {if} tags + +01/12/2010 +- changed back modifer handling in parser. Some restrictions still apply: + if modifiers are used in side {if...} expression or in mathematical expressions + parentheses must be used. +- bugfix the {function..} tag did not accept the name attribute in double quotes +- closed possible security hole at <?php ... ?> tags +- bugfix of config file parser on large config files + + +###beta 6#### + +01/11/2010 +- added \n to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source +- added missing support of insert plugins +- added optional nocache attribute to {block} tags in parent template +- updated <?php...?> handling supporting now heredocs and newdocs. (thanks to Thue Jnaus Kristensen) + +01/09/2010 +- bugfix on nocache {block} tags in parent templates + +01/08/2010 +- bugfix on variable filters. filter/nofilter attributes did not work on output statements + +01/07/2010 +- bugfix on file dependency at template inheritance +- bugfix on nocache code at template inheritance + +01/06/2010 +- fixed typo in smarty_internal_resource_registered +- bugfix for custom delimiter at extends resource and {extends} tag + +01/05/2010 +- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling + + +01/03/2010 +- internal change on building cache files + +01/02/2010 +- update cached_timestamp at the template object after cache file is written to avoid possible side effects +- use internally always SMARTY_CACHING_LIFETIME_* constants + +01/01/2010 +- bugfix for obtaining plugins which must be included (related to change of 12/30/2009) +- bugfix for {php} tag (trow an exception if allow_php_tag = false) + +12/31/2009 +- optimization of generated code for doublequoted strings containing variables +- rewrite of {function} tag handling + - can now be declared in an external subtemplate + - can contain nocache sections (nocache_hash handling) + - can be called in noccache sections (nocache_hash handling) + - new {call..} tag to call template functions with a variable name {call name=$foo} +- fixed nocache_hash handling in merged compiled templates + +12/30/2009 +- bugfix for plugins defined in the script as smarty_function_foo + +12/29/2009 +- use sha1() for filepath encoding +- updates on nocache_hash handling +- internal change on merging some data +- fixed cache filename for custom resources + +12/28/2009 +- update for security fixes +- make modifier plugins always trusted +- fixed bug loading modifiers in child template at template inheritance + +12/27/2009 +--- this is a major update with a couple of internal changes --- +- new config file lexer/parser (thanks to Thue Jnaus Kristensen) +- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen) +- fix on registered plugins with different type but same name +- rewrite of plugin handling (optimized execution speed) +- closed a security hole regarding PHP code injection into cache files +- fixed bug in clear cache handling +- Renamed a couple of internal classes +- code cleanup for merging compiled templates +- couple of runtime optimizations (still not all done) +- update of getCachedTimestamp() +- fixed bug on modifier plugins at nocache output + +12/19/2009 +- bugfix on comment lines in config files + +12/17/2009 +- bugfix of parent/global variable update at included/merged subtemplates +- encode final template filepath into filename of compiled and cached files +- fixed {strip} handling in auto literals + +12/16/2009 +- update of changelog +- added {include file='foo.tpl' inline} inline option to merge compiled code of subtemplate into the calling template + +12/14/2009 +- fixed sideefect of last modification (objects in array index did not work anymore) + +12/13/2009 +- allow boolean negation ("!") as operator on variables outside {if} tag + +12/12/2009 +- bugfix on single quotes inside {function} tag +- fix short append/prepend attributes in {block} tags + +12/11/2009 +- bugfix on clear_compiled_tpl (avoid possible warning) + +12/10/2009 +- bugfix on {function} tags and template inheritance + +12/05/2009 +- fixed problem when a cached file was fetched several times +- removed unneeded lexer code + +12/04/2009 +- added max attribute to for loop +- added security mode allow_super_globals + +12/03/2009 +- template inheritance: child templates can now call functions defined by the {function} tag in the parent template +- added {for $foo = 1 to 5 step 2} syntax +- bugfix for {$foo.$x.$y.$z} + +12/01/2009 +- fixed parsing of names of special formated tags like if,elseif,while,for,foreach +- removed direct access to constants in templates because of some syntax problems +- removed cache resource plugin for mysql from the distribution +- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins +- use $template_class property for template class name when compiling {include},{eval} and {extends} tags + +11/30/2009 +- map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter +- allow {function} tags within {block} tags + +11/28/2009 +- ignore compile_id at debug template +- added direct access to constants in templates +- some lexer/parser optimizations + +11/27/2009 +- added cache resource MYSQL plugin + +11/26/2009 +- bugfix on nested doublequoted strings +- correct line number on unknown tag error message +- changed {include} compiled code +- fix on checking dynamic varibales with error_unassigned = true + +11/25/2009 +- allow the following writing for boolean: true, TRUE, True, false, FALSE, False +- {strip} tag functionality rewritten + +11/24/2009 +- bugfix for $smarty->config_overwrite = false + +11/23/2009 +- suppress warnings on unlink caused by race conditions +- correct line number on unknown tag error message + +------- beta 5 +11/23/2009 +- fixed configfile parser for text starting with a numeric char +- the default_template_handler_func may now return a filepath to a template source + +11/20/2009 +- bugfix for empty config files +- convert timestamps of registered resources to integer + +11/19/2009 +- compiled templates are no longer touched with the filemtime of template source + +11/18/2009 +- allow integer as attribute name in plugin calls + +------- beta 4 +11/18/2009 +- observe umask settings when setting file permissions +- avoide unneeded cache file creation for subtemplates which did occur in some situations +- make $smarty->_current_file available during compilation for Smarty2 BC + +11/17/2009 +- sanitize compile_id and cache_id (replace illegal chars with _) +- use _dir_perms and _file_perms properties at file creation +- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format +- added {foreach $array as $key=>$value} syntax +- renamed extend tag and resource to extends: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl); +- bugfix cycle plugin + +11/15/2009 +- lexer/parser optimizations on quoted strings + +11/14/2009 +- bugfix on merging compiled templates when source files got removed or renamed. +- bugfix modifiers on registered object tags +- fixed locaion where outputfilters are running +- fixed config file definitions at EOF +- fix on merging compiled templates with nocache sections in nocache includes +- parser could run into a PHP error on wrong file attribute + +11/12/2009 +- fixed variable filenames in {include_php} and {insert} +- added scope to Smarty variables in the {block} tag compiler +- fix on nocache code in child {block} tags + +11/11/2009 +- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables +- removed checking for reserved variables +- changed debugging handling + +11/10/2009 +- fixed preg_qoute on delimiters + +11/09/2009 +- lexer/parser bugfix +- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option +- bugfix for {function} block tags in included templates + +11/08/2009 +- fixed alphanumeric array index +- bugfix on complex double quoted strings + +11/05/2009 +- config_load method can now be called on data and template objects + +11/04/2009 +- added typecasting support for template variables +- bugfix on complex indexed special Smarty variables + +11/03/2009 +- fixed parser error on objects with special smarty vars +- fixed file dependency for {incude} inside {block} tag +- fixed not compiling on non existing compiled templates when compile_check = false +- renamed function names of autoloaded Smarty methods to Smarty_Method_.... +- new security_class property (default is Smarty_Security) + +11/02/2009 +- added neq,lte,gte,mod as aliases to if conditions +- throw exception on illegal Smarty() constructor calls + +10/31/2009 +- change of filenames in sysplugins folder for internal spl_autoload function +- lexer/parser changed for increased compilation speed + +10/27/2009 +- fixed missing quotes in include_php.php + +10/27/2009 +- fixed typo in method.register_resource +- pass {} through as literal + +10/26/2009 +- merge only compiled subtemplates into the compiled code of the main template + +10/24/2009 +- fixed nocache vars at internal block tags +- fixed merging of recursive includes + +10/23/2009 +- fixed nocache var problem + +10/22/2009 +- fix trimwhitespace outputfilter parameter + +10/21/2009 +- added {$foo++}{$foo--} syntax +- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags +- autoload Smarty internal classes +- fixed file dependency for config files +- some code optimizations +- fixed function definitions on some autoloaded methods +- fixed nocache variable inside if condition of {if} tag + +10/20/2009 +- check at compile time for variable filter to improve rendering speed if no filter is used +- fixed bug at combination of {elseif} tag and {...} in double quoted strings of static class parameter + +10/19/2009 +- fixed compiled template merging on variable double quoted strings as name +- fixed bug in caching mode 2 and cache_lifetime -1 +- fixed modifier support on block tags + +10/17/2009 +- remove ?>\n<?php and ?><?php sequences from compiled template + +10/15/2009 +- buxfix on assigning array elements inside templates +- parser bugfix on array access + +10/15/2009 +- allow bit operator '&' inside {if} tag +- implementation of ternary operator + +10/13/2009 +- do not recompile evaluated templates if reused just with other data +- recompile config files when config properties did change +- some lexer/parser otimizations + +10/11/2009 +- allow {block} tags inside included templates +- bugfix for resource plugins in Smarty2 format +- some optimizations of internal.template.php + +10/11/2009 +- fixed bug when template with same name is used with different data objects +- fixed bug with double quoted name attribute at {insert} tag +- reenabled assign_by_ref and append_by_ref methods + +10/07/2009 +- removed block nesting checks for {capture} + +10/05/2009 +- added support of "isinstance" to {if} tag + +10/03/2009 +- internal changes to improve performance +- fix registering of filters for classes + +10/01/2009 +- removed default timezone setting +- reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable +- {PHP} tag can be enabled by allow_php_tag = true + +09/30/2009 +- fixed handling template_exits method for all resource types +- bugfix for other cache resources than file +- the methods assign_by_ref is now wrapped to assign, append_by_ref to append +- allow arrays of variables pass in display, fetch and createTemplate calls + $data = array('foo'=>'bar','foo2'=>'blar'); + $smarty->display('my.tpl',$data); + +09/29/2009 +- changed {php} tag handling +- removed support of Smarty::instance() +- removed support of PHP resource type +- improved execution speed of {foreach} tags +- fixed bug in {section} tag + +09/23/2009 +- improvements and bugfix on {include} tag handling +NOTICE: existing compiled template and cache files must be deleted + +09/19/2009 +- replace internal "eval()" calls by "include" during rendering process +- speed improvment for templates which have included subtemplates + the compiled code of included templates is merged into the compiled code of the parent template +- added logical operator "xor" for {if} tag +- changed parameter ordering for Smarty2 BC + fetch($template, $cache_id = null, $compile_id = null, $parent = null) + display($template, $cache_id = null, $compile_id = null, $parent = null) + createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) +- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET +- fixed handling of classes in registered blocks +- speed improvement of lexer on text sections + +09/01/2009 +- dropped nl2br as plugin +- added '<>' as comparission operator in {if} tags +- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2. + {include} optional attribute is also now cache_lifetime +- fixed trigger_error method (moved into Smarty class) +- version is now Beta!!! + + +08/30/2009 +- some speed optimizations on loading internal plugins + + +08/29/2009 +- implemented caching of registered Resources +- new property 'auto_literal'. if true(default) '{ ' and ' }' interpreted as literal, not as Smarty delimiter + + +08/28/2009 +- Fix on line breaks inside {if} tags + +08/26/2009 +- implemented registered resources as in Smarty2. NOTE: caching does not work yet +- new property 'force_cache'. if true it forces the creation of a new cache file +- fixed modifiers on arrays +- some speed optimization on loading internal classes + + +08/24/2009 +- fixed typo in lexer definition for '!==' operator +- bugfix - the ouput of plugins was not cached +- added global variable SCRIPT_NAME + +08/21/2009 +- fixed problems whitespace in conjuction with custom delimiters +- Smarty tags can now be used as value anywhere + +08/18/2009 +- definition of template class name moded in internal.templatebase.php +- whitespace parser changes + +08/12/2009 +- fixed parser problems + +08/11/2009 +- fixed parser problems with custom delimiter + +08/10/2009 +- update of mb support in plugins + + +08/09/2009 +- fixed problems with doublequoted strings at name attribute of {block} tag +- bugfix at scope attribute of {append} tag + +08/08/2009 +- removed all internal calls of Smarty::instance() +- fixed code in double quoted strings + +08/05/2009 +- bugfix mb_string support +- bugfix of \n.\t etc in double quoted strings + +07/29/2009 +- added syntax for variable config vars like #$foo# + +07/28/2009 +- fixed parsing of $smarty.session vars containing objects + +07/22/2009 +- fix of "$" handling in double quoted strings + +07/21/2009 +- fix that {$smarty.current_dir} return correct value within {block} tags. + +07/20/2009 +- drop error message on unmatched {block} {/block} pairs + +07/01/2009 +- fixed smarty_function_html_options call in plugin function.html_select_date.php (missing ,) + +06/24/2009 +- fixed smarty_function_html_options call in plugin function.html_select_date.php + +06/22/2009 +- fix on \n and spaces inside smarty tags +- removed request_use_auto_globals propert as it is no longer needed because Smarty 3 will always run under PHP 5 + + +06/18/2009 +- fixed compilation of block plugins when caching enabled +- added $smarty.current_dir which returns the current working directory + +06/14/2009 +- fixed array access on super globals +- allow smarty tags within xml tags + +06/13/2009 +- bugfix at extend resource: create unique files for compiled template and cache for each combination of template files +- update extend resource to handle appen and prepend block attributes +- instantiate classes of plugins instead of calling them static + +06/03/2009 +- fixed repeat at block plugins + +05/25/2009 +- fixed problem with caching of compiler plugins + +05/14/2009 +- fixed directory separator handling + +05/09/2009 +- syntax change for stream variables +- fixed bug when using absolute template filepath and caching + +05/08/2009 +- fixed bug of {nocache} tag in included templates + +05/06/2009 +- allow that plugins_dir folder names can end without directory separator + +05/05/2009 +- fixed E_STRICT incompabilities +- {function} tag bug fix +- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder +- added allow_super_global configuration to security + +04/30/2009 +- functions defined with the {function} tag now always have global scope + +04/29/2009 +- fixed problem with directory setter methods +- allow that cache_dir can end without directory separator + +04/28/2009 +- the {function} tag can no longer overwrite standard smarty tags +- inherit functions defined by the {fuction} tag into subtemplates +- added {while <statement>} sytax to while tag + +04/26/2009 +- added trusted stream checking to security +- internal changes at file dependency check for caching + +04/24/2009 +- changed name of {template} tag to {function} +- added new {template} tag + +04/23/2009 +- fixed access of special smarty variables from included template + +04/22/2009 +- unified template stream syntax with standard Smarty resource syntax $smarty->display('mystream:mytemplate') + +04/21/2009 +- change of new style syntax for forach. Now: {foreach $array as $var} like in PHP + +04/20/2009 +- fixed "$foo.bar ..." variable replacement in double quoted strings +- fixed error in {include} tag with variable file attribute + +04/18/2009 +- added stream resources ($smarty->display('mystream://mytemplate')) +- added stream variables {$mystream:myvar} + +04/14/2009 +- fixed compile_id handling on {include} tags +- fixed append/prepend attributes in {block} tag +- added {if 'expression' is in 'array'} syntax +- use crc32 as hash for compiled config files. + +04/13/2009 +- fixed scope problem with parent variables when appending variables within templates. +- fixed code for {block} without childs (possible sources for notice errors removed) + +04/12/2009 +- added append and prepend attribute to {block} tag + +04/11/2009 +- fixed variables in 'file' attribute of {extend} tag +- fixed problems in modifiers (if mb string functions not present) + +04/10/2009 +- check if mb string functions available otherwise fallback to normal string functions +- added global variable scope SMARTY_GLOBAL_SCOPE +- enable 'variable' filter by default +- fixed {$smarty.block.parent.foo} +- implementation of a 'variable' filter as replacement for default modifier + +04/09/2009 +- fixed execution of filters defined by classes +- compile the always the content of {block} tags to make shure that the filters are running over it +- syntax corrections on variable object property +- syntax corrections on array access in dot syntax + +04/08/2009 +- allow variable object property + +04/07/2009 +- changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants +- Smarty variable global attribute replaced with scope attribute + +04/06/2009 +- variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE +- more getter/setter methods + +04/05/2009 +- replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion +- added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'} + +04/04/2009 +- make output of template default handlers cachable and save compiled source +- some fixes on yesterdays update + +04/03/2006 +- added registerDefaultTemplateHandler method and functionallity +- added registerDefaultPluginHandler method and functionallity +- added {append} tag to extend Smarty array variabled + +04/02/2009 +- added setter/getter methods +- added $foo@first and $foo@last properties at {for} tag +- added $set_timezone (true/false) property to setup optionally the default time zone + +03/31/2009 +- bugfix smarty.class and internal.security_handler +- added compile_check configuration +- added setter/getter methods + +03/30/2009 +- added all major setter/getter methods + +03/28/2009 +- {block} tags can be nested now +- md5 hash function replace with crc32 for speed optimization +- file order for exted resource inverted +- clear_compiled_tpl and clear_cache_all will not touch .svn folder any longer + +03/27/2009 +- added extend resource + +03/26/2009 +- fixed parser not to create error on `word` in double quoted strings +- allow PHP array(...) +- implemented $smarty.block.name.parent to access parent block content +- fixed smarty.class + + +03/23/2009 +- fixed {foreachelse} and {forelse} tags + +03/22/2009 +- fixed possible sources for notice errors +- rearrange SVN into distribution and development folders + +03/21/2009 +- fixed exceptions in function plugins +- fixed notice error in Smarty.class.php +- allow chained objects to span multiple lines +- fixed error in modifers + +03/20/2009 +- moved /plugins folder into /libs folder +- added noprint modifier +- autoappend a directory separator if the xxxxx_dir definition have no trailing one + +03/19/2009 +- allow array definition as modifer parameter +- changed modifier to use multi byte string funktions. + +03/17/2009 +- bugfix + +03/15/2009 +- added {include_php} tag for BC +- removed @ error suppression +- bugfix fetch did always repeat output of first call when calling same template several times +- PHPunit tests extended + +03/13/2009 +- changed block syntax to be Smarty like {block:titel} -> {block name=titel} +- compiling of {block} and {extend} tags rewriten for better performance +- added special Smarty variable block ($smarty.block.foo} returns the parent definition of block foo +- optimization of {block} tag compiled code. +- fixed problem with escaped double quotes in double quoted strings + +03/12/2009 +- added support of template inheritance by {extend } and {block } tags. +- bugfix comments within literals +- added scope attribuie to {include} tag + +03/10/2009 +- couple of bugfixes and improvements +- PHPunit tests extended + +03/09/2009 +- added support for global template vars. {assign_global...} $smarty->assign_global(...) +- added direct_access_security +- PHPunit tests extended +- added missing {if} tag conditions like "is div by" etc. + +03/08/2009 +- splitted up the Compiler class to make it easier to use a coustom compiler +- made default plugins_dir relative to Smarty root and not current working directory +- some changes to make the lexer parser better configurable +- implemented {section} tag for Smarty2 BC + +03/07/2009 +- fixed problem with comment tags +- fixed problem with #xxxx in double quoted string +- new {while} tag implemented +- made lexer and paser class configurable as $smarty property +- Smarty method get_template_vars implemented +- Smarty method get_registered_object implemented +- Smarty method trigger_error implemented +- PHPunit tests extended + +03/06/2009 +- final changes on config variable handling +- parser change - unquoted strings will by be converted into single quoted strings +- PHPunit tests extended +- some code cleanup +- fixed problem on catenate strings with expression +- update of count_words modifier +- bugfix on comment tags + + +03/05/2009 +- bugfix on <?xml...> tag with caching enabled +- changes on exception handling (by Monte) + +03/04/2009 +- added support for config variables +- bugfix on <?xml...> tag + +03/02/2009 +- fixed unqouted strings within modifier parameter +- bugfix parsing of mofifier parameter + +03/01/2009 +- modifier chaining works now as in Smarty2 + +02/28/2009 +- changed handling of unqouted strings + +02/26/2009 +- bugfix +- changed $smarty.capture.foo to be global for Smarty2 BC. + +02/24/2009 +- bugfix {php} {/php} tags for backward compatibility +- bugfix for expressions on arrays +- fixed usage of "null" value +- added $smarty.foreach.foo.first and $smarty.foreach.foo.last + +02/06/2009 +- bugfix for request variables without index for example $smarty.get +- experimental solution for variable functions in static class + +02/05/2009 +- update of popup plugin +- added config variables to template parser (load config functions still missing) +- parser bugfix for empty quoted strings + +02/03/2009 +- allow array of objects as static class variabales. +- use htmlentities at source output at template errors. + +02/02/2009 +- changed search order on modifiers to look at plugins folder first +- parser bug fix for modifier on array elements $foo.bar|modifier +- parser bug fix on single quoted srings +- internal: splitted up compiler plugin files + +02/01/2009 +- allow method chaining on static classes +- special Smarty variables $smarty.... implemented +- added {PHP} {/PHP} tags for backward compatibility + +01/31/2009 +- added {math} plugin for Smarty2 BC +- added template_exists method +- changed Smarty3 method enable_security() to enableSecurity() to follow camelCase standards + +01/30/2009 +- bugfix in single quoted strings +- changed syntax for variable property access from $foo:property to $foo@property because of ambiguous syntax at modifiers + +01/29/2009 +- syntax for array definition changed from (1,2,3) to [1,2,3] to remove ambiguous syntax +- allow {for $foo in [1,2,3]} syntax +- bugfix in double quoted strings +- allow <?xml...?> tags in template even if short_tags are enabled + +01/28/2009 +- fixed '!==' if condition. + +01/28/2009 +- added support of {strip} {/strip} tag. + +01/27/2009 +- bug fix on backticks in double quoted strings at objects + +01/25/2009 +- Smarty2 modfiers added to SVN + +01/25/2009 +- bugfix allow arrays at object properties in Smarty syntax +- the template object is now passed as additional parameter at plugin calls +- clear_compiled_tpl method completed + +01/20/2009 +- access to class constants implemented ( class::CONSTANT ) +- access to static class variables implemented ( class::$variable ) +- call of static class methods implemented ( class::method() ) + +01/16/2009 +- reallow leading _ in variable names {$_var} +- allow array of objects {$array.index->method()} syntax +- finished work on clear_cache and clear_cache_all methods + +01/11/2009 +- added support of {literal} tag +- added support of {ldelim} and {rdelim} tags +- make code compatible to run with E_STRICT error setting + +01/08/2009 +- moved clear_assign and clear_all_assign to internal.templatebase.php +- added assign_by_ref, append and append_by_ref methods + +01/02/2009 +- added load_filter method +- fished work on filter handling +- optimization of plugin loading + +12/30/2008 +- added compiler support of registered object +- added backtick support in doubled quoted strings for backward compatibility +- some minor bug fixes and improvments + +12/23/2008 +- fixed problem of not working "not" operator in if-expressions +- added handling of compiler function plugins +- finished work on (un)register_compiler_function method +- finished work on (un)register_modifier method +- plugin handling from plugins folder changed for modifier plugins + deleted - internal.modifier.php +- added modifier chaining to parser + +12/17/2008 +- finished (un)register_function method +- finished (un)register_block method +- added security checking for PHP functions in PHP templates +- plugin handling from plugins folder rewritten + new - internal.plugin_handler.php + deleted - internal.block.php + deleted - internal.function.php +- removed plugin checking from security handler + +12/16/2008 + +- new start of this change_log file
View file
Smarty-3.1.13.tar.gz/composer.json
Deleted
@@ -1,37 +0,0 @@ -{ - "name": "smarty/smarty", - "type": "library", - "description": "Smarty - the compiling PHP template engine", - "keywords": ["templating"], - "homepage": "http://www.smarty.net", - "license": "LGPL-3.0", - "authors": [ - { - "name": "Monte Ohrt", - "email": "monte@ohrt.com" - }, - { - "name": "Uwe Tews", - "email": "uwe.tews@googlemail.com" - }, - { - "name": "Rodney Rehm", - "email": "rodney.rehm@medialize.de" - } - ], - "support": { - "irc": "irc://irc.freenode.org/smarty", - "issues": "http://code.google.com/p/smarty-php/issues/list", - "forum": "http://www.smarty.net/forums/", - "source": "http://code.google.com/p/smarty-php/source/browse/" - }, - "require": { - "php": ">=5.2" - }, - "autoload": { - "classmap": [ - "distribution/libs/Smarty.class.php", - "distribution/libs/SmartyBC.class.php" - ] - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/demo
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/demo/cache
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/demo/configs
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/demo/configs/test.conf
Changed
(renamed from distribution/demo/configs/test.conf)
View file
Smarty-3.1.13.tar.gz/demo/index.php
Changed
(renamed from distribution/demo/index.php)
View file
Smarty-3.1.13.tar.gz/demo/plugins
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/demo/plugins/cacheresource.apc.php
Changed
(renamed from distribution/demo/plugins/cacheresource.apc.php)
View file
Smarty-3.1.13.tar.gz/demo/plugins/cacheresource.memcache.php
Changed
(renamed from distribution/demo/plugins/cacheresource.memcache.php)
View file
Smarty-3.1.13.tar.gz/demo/plugins/cacheresource.mysql.php
Changed
(renamed from distribution/demo/plugins/cacheresource.mysql.php)
View file
Smarty-3.1.13.tar.gz/demo/plugins/resource.extendsall.php
Changed
(renamed from distribution/demo/plugins/resource.extendsall.php)
View file
Smarty-3.1.13.tar.gz/demo/plugins/resource.mysql.php
Changed
(renamed from distribution/demo/plugins/resource.mysql.php)
View file
Smarty-3.1.13.tar.gz/demo/plugins/resource.mysqls.php
Changed
(renamed from distribution/demo/plugins/resource.mysqls.php)
View file
Smarty-3.1.13.tar.gz/demo/templates
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/demo/templates/footer.tpl
Changed
(renamed from distribution/demo/templates/footer.tpl)
View file
Smarty-3.1.13.tar.gz/demo/templates/header.tpl
Changed
(renamed from distribution/demo/templates/header.tpl)
View file
Smarty-3.1.13.tar.gz/demo/templates/index.tpl
Changed
(renamed from distribution/demo/templates/index.tpl)
View file
Smarty-3.1.13.tar.gz/demo/templates_c
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/development
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Makefile
Deleted
@@ -1,10 +0,0 @@ -all: config-compiler template-compiler unit-test - -config-compiler: - cd lexer; php Create_Config_Parser.php - -template-compiler: - cd lexer; php Create_Template_Parser.php - -unit-test: - cd PHPunit; phpunit smartytests.php
View file
Smarty-3.1.13.tar.gz/development/PHPunit
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AppendByRefTests.php
Deleted
@@ -1,83 +0,0 @@ -<?php -/** -* Smarty PHPunit tests appendByRef methode -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for appendByRef tests -*/ -class AppendByRefTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test appendByRef - */ - public function testAppendByRef() - { - $bar = 'bar'; - $bar2 = 'bar2'; - $this->smarty->appendByRef('foo', $bar); - $this->smarty->appendByRef('foo', $bar2); - $bar = 'newbar'; - $bar2 = 'newbar2'; - $this->assertEquals('newbar newbar2', $this->smarty->fetch('eval:{$foo[0]} {$foo[1]}')); - } - public function testSmarty2AppendByRef() - { - $bar = 'bar'; - $bar2 = 'bar2'; - $this->smartyBC->append_by_ref('foo', $bar); - $this->smartyBC->append_by_ref('foo', $bar2); - $bar = 'newbar'; - $bar2 = 'newbar2'; - $this->assertEquals('newbar newbar2', $this->smartyBC->fetch('eval:{$foo[0]} {$foo[1]}')); - } - /** - * test appendByRef to unassigned variable - */ - public function testAppendByRefUnassigned() - { - $bar2 = 'bar2'; - $this->smarty->appendByRef('foo', $bar2); - $bar2 = 'newbar2'; - $this->assertEquals('newbar2', $this->smarty->fetch('eval:{$foo[0]}')); - } - public function testSmarty2AppendByRefUnassigned() - { - $bar2 = 'bar2'; - $this->smartyBC->append_by_ref('foo', $bar2); - $bar2 = 'newbar2'; - $this->assertEquals('newbar2', $this->smartyBC->fetch('eval:{$foo[0]}')); - } - /** - * test appendByRef merge - * - * @todo fix testAppendByRefMerge - */ - public function testAppendByRefMerge() - { - $foo = array('a' => 'a', 'b' => 'b', 'c' => 'c'); - $bar = array('b' => 'd'); - $this->smarty->assignByRef('foo', $foo); - $this->smarty->appendByRef('foo', $bar, true); - $this->assertEquals('a d c', $this->smarty->fetch('eval:{$foo["a"]} {$foo["b"]} {$foo["c"]}')); - $bar = array('b' => 'newd'); - $this->smarty->appendByRef('foo', $bar, true); - $this->assertEquals('a newd c', $this->smarty->fetch('eval:{$foo["a"]} {$foo["b"]} {$foo["c"]}')); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AppendTests.php
Deleted
@@ -1,80 +0,0 @@ -<?php -/** -* Smarty PHPunit tests append methode -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for append tests -*/ -class AppendTests extends PHPUnit_Framework_TestCase { - - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test append - */ - public function testAppend() - { - $this->smarty->assign('foo','bar'); - $this->smarty->append('foo','bar2'); - $this->assertEquals('bar bar2', $this->smarty->fetch('eval:{$foo[0]} {$foo[1]}')); - } - /** - * test append to unassigned variable - */ - public function testAppendUnassigned() - { - $this->smarty->append('foo','bar'); - $this->assertEquals('bar', $this->smarty->fetch('eval:{$foo[0]}')); - } - /** - * test append merge - */ - public function testAppendMerge() - { - $this->smarty->assign('foo',array('a'=>'a','b'=>'b','c'=>'c')); - $this->smarty->append('foo',array('b'=>'d'),true); - $this->assertEquals('a d c', $this->smarty->fetch('eval:{$foo["a"]} {$foo["b"]} {$foo["c"]}')); - } - /** - * test append array merge - */ - public function testAppendArrayMerge() - { - $this->smarty->assign('foo',array('b'=>'d')); - $this->smarty->append('foo',array('a'=>'a','b'=>'b','c'=>'c'),true); - $this->assertEquals('a b c', $this->smarty->fetch('eval:{$foo["a"]} {$foo["b"]} {$foo["c"]}')); - } - /** - * test array append - */ - public function testArrayAppend() - { - $this->smarty->assign('foo','foo'); - $this->smarty->append(array('bar'=>'bar2','foo'=>'foo2')); - $this->assertEquals('foo foo2 bar2', $this->smarty->fetch('eval:{$foo[0]} {$foo[1]} {$bar[0]}')); - } - /** - * test array append array merge - */ - public function testArrayAppendArrayMerge() - { - $this->smarty->assign('foo',array('b'=>'d')); - $this->smarty->append(array('bar'=>'bar','foo'=>array('a'=>'a','b'=>'b','c'=>'c')),null,true); - $this->assertEquals('a b c bar', $this->smarty->fetch('eval:{$foo["a"]} {$foo["b"]} {$foo["c"]} {$bar[0]}')); - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ArrayTests.php
Deleted
@@ -1,119 +0,0 @@ -<?php -/** -* Smarty PHPunit tests array definitions and access -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for array tests -*/ -class ArrayTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple array definition - */ - public function testSimpleArrayDefinition() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,3,4,5]}{foreach $foo as $bar}{$bar}{/foreach}'); - $this->assertEquals('12345', $this->smarty->fetch($tpl)); - } - /** - * test smarty2 array access - */ - public function testSmarty2ArrayAccess() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,3,4,5]}{$foo.0}{$foo.1}{$foo.2}'); - $this->assertEquals('123', $this->smarty->fetch($tpl)); - } - /** - * test smarty3 array access - */ - public function testSmarty3ArrayAccess() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,3,4,5]}{$foo[0]}{$foo[1]}{$foo[2]}'); - $this->assertEquals('123', $this->smarty->fetch($tpl)); - } - /** - * test indexed array definition - */ - public function testIndexedArrayDefinition() - { - $tpl = $this->smarty->createTemplate('eval:{$x=\'d\'}{$foo=[a=>1,\'b\'=>2,"c"=>3,$x=>4]}{$foo[\'a\']}{$foo[\'b\']}{$foo[\'c\']}{$foo[\'d\']}'); - $this->assertEquals('1234', $this->smarty->fetch($tpl)); - } - /** - * test nested array - */ - public function testNestedArray() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[a,b,c],4,5]}{$foo[2][1]}'); - $this->assertEquals('b', $this->smarty->fetch($tpl)); - } - /** - * test array math - */ - public function testArrayMath1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$foo[2][1]+1}'); - $this->assertEquals('9', $this->smarty->fetch($tpl)); - } - public function testArrayMath2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$foo.2.1+1}'); - $this->assertEquals('9', $this->smarty->fetch($tpl)); - } - public function testArrayMath3() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{2+$foo[2][1]}'); - $this->assertEquals('10', $this->smarty->fetch($tpl)); - } - public function testArrayMath4() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{2+$foo.2.1}'); - $this->assertEquals('10', $this->smarty->fetch($tpl)); - } - public function testArrayMath5() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$foo[2][0]+$foo[2][1]}'); - $this->assertEquals('15', $this->smarty->fetch($tpl)); - } - public function testArrayMath6() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$foo.2.0+$foo.2.1}'); - $this->assertEquals('15', $this->smarty->fetch($tpl)); - } - public function testArrayVariableIndex1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$x=2}{$y=0}{$foo.$x.$y}'); - $this->assertEquals('7', $this->smarty->fetch($tpl)); - } - public function testArrayVariableIndex2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$x=2}{$foo.$x.0}'); - $this->assertEquals('7', $this->smarty->fetch($tpl)); - } - public function testArrayVariableIndex3() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$x=0}{$foo.2.$x}'); - $this->assertEquals('7', $this->smarty->fetch($tpl)); - } - public function testArrayVariableIndex4() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=[1,2,[7,8,9],4,5]}{$x=[1,0]}{$foo.2.{$x.1}}'); - $this->assertEquals('7', $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AssignByRefTests.php
Deleted
@@ -1,57 +0,0 @@ -<?php -/** -* Smarty PHPunit tests assignByRef methode -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for assignByRef tests -*/ -class AssignByRefTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple assignByRef - */ - public function testSimpleAssignByRef() - { - $bar = 'bar'; - $this->smarty->assignByRef('foo', $bar); - $bar = 'newbar'; - $this->assertEquals('newbar', $this->smarty->fetch('eval:{$foo}')); - } - /** - * test Smarty2 assign_By_Ref - */ - public function testSmarty2AssignByRef() - { - $bar = 'bar'; - $this->smartyBC->assign_by_ref('foo', $bar); - $bar = 'newbar'; - $this->assertEquals('newbar', $this->smartyBC->fetch('eval:{$foo}')); - } - /** - * test Smarty2's behaviour of assign_By_Ref (Issue 88) - */ - public function testSmarty2AssignByRef2() - { - $bar = 'bar'; - $this->smartyBC->assign_by_ref('foo', $bar); - $this->smartyBC->fetch('eval:{$foo = "newbar"}'); - $this->assertEquals('newbar', $bar); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AssignGlobalTests.php
Deleted
@@ -1,66 +0,0 @@ -<?php -/** -* Smarty PHPunit tests assignGlobal methode and {assignGlobal} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for assignGlobal methode and {assignGlobal} tag tests -*/ -class AssignGlobalTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test assignGlobal and getGlobal - */ - public function testAssignGlobalGetGlobal() - { - $this->smarty->assignGlobal('foo', 'bar'); - $this->assertEquals('bar', $this->smarty->getGlobal('foo')); - } - /** - * test assignGlobal and getGlobal on arrays - */ - public function testAssignGlobalGetGlobalArray() - { - $this->smarty->assignGlobal('foo', array('foo' => 'bar', 'foo2' => 'bar2')); - $a1 = array('foo' => array('foo' => 'bar', 'foo2' => 'bar2')); - $a2 = $this->smarty->getGlobal(); - $diff = array_diff($a1, $a2); - $cmp = empty($diff); - $this->assertTrue($cmp); - } - /** - * test assignGlobal tag - */ - public function testAssignGlobalTag() - { - $this->smarty->assignGlobal('foo', 'bar'); - $this->assertEquals('bar', $this->smarty->fetch('eval:{$foo}')); - $this->assertEquals('buh', $this->smarty->fetch('eval:{assign var=foo value=buh scope=global}{$foo}')); - $this->assertEquals('buh', $this->smarty->fetch('eval:{$foo}')); - $this->assertEquals('buh', $this->smarty->getGlobal('foo')); - } - /** - * test global var array element tag - */ - public function testGlobalVarArrayTag() - { - $this->smarty->assignGlobal('foo', array('foo' => 'bar', 'foo2' => 'bar2')); - $this->assertEquals('bar2', $this->smarty->fetch('eval:{$foo.foo2}')); - $this->assertEquals('bar', $this->smarty->fetch('eval:{$foo.foo}')); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AssignTests.php
Deleted
@@ -1,42 +0,0 @@ -<?php -/** -* Smarty PHPunit tests assign methode -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for assign tests -*/ -class AssignTests extends PHPUnit_Framework_TestCase { - - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple assign - */ - public function testSimpleAssign() - { - $this->smarty->assign('foo','bar'); - $this->assertEquals('bar', $this->smarty->fetch('eval:{$foo}')); - } - /** - * test assign array of variables - */ - public function testArrayAssign() - { - $this->smarty->assign(array('foo'=>'bar','foo2'=>'bar2')); - $this->assertEquals('bar bar2', $this->smarty->fetch('eval:{$foo} {$foo2}')); - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AttributeTests.php
Deleted
@@ -1,83 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for tag attributes -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for tag attribute tests -*/ -class AttributeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test required attribute - */ - public function testRequiredAttributeVar() - { - try { - $this->smarty->fetch('string:{assign value=1}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('missing "var" attribute'), $e->getMessage()); - return; - } - $this->fail('Exception for required attribute "var" has not been raised.'); - } - /** - * test unexspected attribute - */ - public function testUnexpectedAttribute() - { - try { - $this->smarty->fetch('string:{assign var=foo value=1 bar=2}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('unexpected "bar" attribute'), $e->getMessage()); - return; - } - $this->fail('Exception for unexpected attribute "bar" has not been raised.'); - } - /** - * test illegal option value - */ - public function testIllegalOptionValue() - { - try { - $this->smarty->fetch('string:{assign var=foo value=1 nocache=buh}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('illegal value of option flag'), $e->getMessage()); - return; - } - $this->fail('Exception for illegal value of option flag has not been raised.'); - } - /** - * test too many shorthands - */ - public function testTooManyShorthands() - { - try { - $this->smarty->fetch('string:{assign foo 1 2}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('too many shorthand attributes'), $e->getMessage()); - return; - } - $this->fail('Exception for too many shorthand attributes has not been raised.'); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/AutoEscapeTests.php
Deleted
@@ -1,35 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for escape_html property -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for escape_html property tests -*/ -class AutoEscapeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->escape_html = true; - } - - public static function isRunnable() - { - return true; - } - - /** - * test escape_html property - */ - public function testAutoEscape() - { - $tpl = $this->smarty->createTemplate('eval:{$foo}'); - $tpl->assign('foo','<a@b.c>'); - $this->assertEquals("<a@b.c>", $this->smarty->fetch($tpl)); - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CacheResourceCustomApcTests.php
Deleted
@@ -1,29 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for cache resource file -* -* @package PHPunit -* @author Uwe Tews -*/ - -require_once( dirname(__FILE__) . "/CacheResourceCustomMemcacheTests.php" ); - -/** -* class for cache resource file tests -*/ -class CacheResourceCustomApcTests extends CacheResourceCustomMemcacheTests { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->caching_type = 'apctest'; - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - } - - public static function isRunnable() - { - return function_exists('apc_cache_info') && ini_get('apc.enable_cli'); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CacheResourceCustomMemcacheTests.php
Deleted
@@ -1,76 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for cache resource file -* -* @package PHPunit -* @author Uwe Tews -*/ - -require_once( dirname(__FILE__) . "/CacheResourceCustomMysqlTests.php" ); - -/** -* class for cache resource file tests -*/ -class CacheResourceCustomMemcacheTests extends CacheResourceCustomMysqlTests { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->caching_type = 'memcachetest'; - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - } - - public static function isRunnable() - { - return class_exists('Memcache'); - } - - protected function doClearCacheAssertion($a, $b) - { - $this->assertEquals(-1, $b); - } - - public function testGetCachedFilepathSubDirs() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $sha1 = $tpl->source->uid . '#helloworld_tpl##'; - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test getCachedFilepath with cache_id - */ - public function testGetCachedFilepathCacheId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar'); - $sha1 = $tpl->source->uid . '#helloworld_tpl#foo|bar#'; - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test getCachedFilepath with compile_id - */ - public function testGetCachedFilepathCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', null, 'blar'); - $sha1 = $tpl->source->uid . '#helloworld_tpl##blar'; - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test getCachedFilepath with cache_id and compile_id - */ - public function testGetCachedFilepathCacheIdCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $sha1 = $tpl->source->uid . '#helloworld_tpl#foo|bar#blar'; - $this->assertEquals($sha1, $tpl->cached->filepath); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CacheResourceCustomMysqlTests.php
Deleted
@@ -1,365 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for cache resource file -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for cache resource file tests -*/ -class CacheResourceCustomMysqlTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->caching_type = 'mysqltest'; - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - } - - public static function isRunnable() - { - return true; - } - - protected function doClearCacheAssertion($a, $b) - { - $this->assertEquals($a, $b); - } - - /** - * test getCachedFilepath with use_sub_dirs enabled - */ - public function testGetCachedFilepathSubDirs() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $sha1 = sha1($tpl->source->filepath); - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test getCachedFilepath with cache_id - */ - public function testGetCachedFilepathCacheId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar'); - $sha1 = sha1($tpl->source->filepath . 'foo|bar' . null); - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test getCachedFilepath with compile_id - */ - public function testGetCachedFilepathCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', null, 'blar'); - $sha1 = sha1($tpl->source->filepath . null . 'blar'); - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test getCachedFilepath with cache_id and compile_id - */ - public function testGetCachedFilepathCacheIdCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $sha1 = sha1($tpl->source->filepath . 'foo|bar' . 'blar'); - $this->assertEquals($sha1, $tpl->cached->filepath); - } - /** - * test cache->clear_all with cache_id and compile_id - */ - public function testClearCacheAllCacheIdCompileId() - { - $this->smarty->clearAllCache(); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - // Custom CacheResources may return -1 if they can't tell the number of deleted elements - $this->assertEquals(-1, $this->smarty->clearAllCache()); - } - /** - * test cache->clear with cache_id and compile_id - */ - public function testClearCacheCacheIdCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world 1'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world 2'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world 3'); - // test cached content - $this->assertEquals('hello world 1', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world 2', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world 3', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(2, $this->smarty->clearCache(null, 'foo|bar')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world 2', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl3)); - } - - public function testClearCacheCacheIdCompileId2() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(2, $this->smarty->clearCache('helloworld.tpl')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - } - - public function testClearCacheCacheIdCompileId2Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(2, $this->smarty->clearCache('helloworld.tpl')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheIdCompileId3() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - // test that caches are deleted properly - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheIdCompileId3Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - // test that caches are deleted properly - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheIdCompileId4() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - // test that caches are deleted properly - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheIdCompileId4Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - // test that caches are deleted properly - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheIdCompileId5() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(2, $this->smarty->clearCache(null, null, 'blar')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheIdCompileId5Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - // test number of deleted caches - $this->doClearCacheAssertion(2, $this->smarty->clearCache(null, null, 'blar')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl3)); - } - public function testClearCacheCacheFile() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl',null,'bar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld.tpl','buh|blar'); - $tpl3->writeCachedContent('hello world'); - $tpl4 = $this->smarty->createTemplate('helloworld2.tpl'); - $tpl4->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl4)); - // test number of deleted caches - $this->doClearCacheAssertion(3, $this->smarty->clearCache('helloworld.tpl')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl3)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl4)); - } - public function testClearCacheCacheFileSub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - // create and cache templates - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl',null,'bar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld.tpl','buh|blar'); - $tpl3->writeCachedContent('hello world'); - $tpl4 = $this->smarty->createTemplate('helloworld2.tpl'); - $tpl4->writeCachedContent('hello world'); - // test cached content - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl2)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl3)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl4)); - // test number of deleted caches - $this->doClearCacheAssertion(3, $this->smarty->clearCache('helloworld.tpl')); - // test that caches are deleted properly - $this->assertNull($tpl->cached->handler->getCachedContent($tpl)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl2)); - $this->assertNull($tpl->cached->handler->getCachedContent($tpl3)); - $this->assertEquals('hello world', $tpl->cached->handler->getCachedContent($tpl4)); - } - /** - * final cleanup - */ - public function testFinalCleanup2() - { - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CacheResourceCustomRegisteredTests.php
Deleted
@@ -1,28 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for cache resource file -* -* @package PHPunit -* @author Uwe Tews -*/ - -require_once( dirname(__FILE__) . "/CacheResourceCustomMysqlTests.php" ); - -/** -* class for cache resource file tests -*/ -class CacheResourceCustomRegisteredTests extends CacheResourceCustomMysqlTests { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - - if (!class_exists('Smarty_CacheResource_Mysqltest', false)) { - require_once( dirname(__FILE__) . "/PHPunitplugins/CacheResource.Mysqltest.php" ); - } - $this->smarty->caching_type = 'foobar'; - $this->smarty->registerCacheResource('foobar', new Smarty_CacheResource_Mysqltest()); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CacheResourceFileTests.php
Deleted
@@ -1,450 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for cache resource file -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for cache resource file tests -*/ -class CacheResourceFileTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - // reset cache for unit test - Smarty_CacheResource::$resources = array(); - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - protected function relative($path) - { - $path = str_replace( dirname(__FILE__), '.', $path ); - if (DS == "\\") { - $path = str_replace( "\\", "/", $path ); - } - return $path; - } - - /** - * test getCachedFilepath with use_sub_dirs enabled - */ - public function testGetCachedFilepathSubDirs() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $sha1 = sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl'); - $expected = sprintf('./cache/%s/%s/%s/%s.helloworld.tpl.php', - substr($sha1, 0, 2), - substr($sha1, 2, 2), - substr($sha1, 4, 2), - $sha1 - ); - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - /** - * test getCachedFilepath with cache_id - */ - public function testGetCachedFilepathCacheId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar'); - $sha1 = sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl'); - $expected = sprintf('./cache/foo/bar/%s/%s/%s/%s.helloworld.tpl.php', - substr($sha1, 0, 2), - substr($sha1, 2, 2), - substr($sha1, 4, 2), - $sha1 - ); - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - /** - * test getCachedFilepath with compile_id - */ - public function testGetCachedFilepathCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl', null, 'blar'); - $sha1 = sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl'); - $expected = sprintf('./cache/blar/%s/%s/%s/%s.helloworld.tpl.php', - substr($sha1, 0, 2), - substr($sha1, 2, 2), - substr($sha1, 4, 2), - $sha1 - ); - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - /** - * test getCachedFilepath with cache_id and compile_id - */ - public function testGetCachedFilepathCacheIdCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $sha1 = sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl'); - $expected = sprintf('./cache/foo/bar/blar/%s/%s/%s/%s.helloworld.tpl.php', - substr($sha1, 0, 2), - substr($sha1, 2, 2), - substr($sha1, 4, 2), - $sha1 - ); - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - /** - * test cache->clear_all with cache_id and compile_id - */ - public function testClearCacheAllCacheIdCompileId() - { - $this->smarty->clearAllCache(); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertEquals(1, $this->smarty->clearAllCache()); - } - /** - * test cache->clear with cache_id and compile_id - */ - public function testClearCacheCacheIdCompileId() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $this->smarty->use_sub_dirs = false; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(2, $this->smarty->clearCache(null, 'foo|bar')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - } - public function testSmarty2ClearCacheCacheIdCompileId() - { - $this->smartyBC->caching = true; - $this->smartyBC->cache_lifetime = 1000; - $this->smartyBC->clearAllCache(); - $this->smartyBC->use_sub_dirs = false; - $tpl = $this->smartyBC->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smartyBC->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smartyBC->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->smartyBC->clear_cache(null, 'foo|bar'); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - } - - public function testSmarty2ClearCacheCacheIdCompileIdSub() - { - $this->smartyBC->caching = true; - $this->smartyBC->cache_lifetime = 1000; - $this->smartyBC->clearAllCache(); - $this->smartyBC->use_sub_dirs = true; - $tpl = $this->smartyBC->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smartyBC->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smartyBC->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->smartyBC->clear_cache(null, 'foo|bar'); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - } - - public function testClearCacheCacheIdCompileId2() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = false; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(2, $this->smarty->clearCache('helloworld.tpl')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - public function testSmarty2ClearCacheCacheIdCompileId2() - { - $this->smartyBC->caching = true; - $this->smartyBC->cache_lifetime = 1000; - $this->smartyBC->use_sub_dirs = false; - $this->smartyBC->clearAllCache(); - $tpl = $this->smartyBC->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smartyBC->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smartyBC->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->smartyBC->clear_cache('helloworld.tpl'); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - - public function testClearCacheCacheIdCompileId2Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar2', 'blar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(2, $this->smarty->clearCache('helloworld.tpl')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheIdCompileId3() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $this->smarty->use_sub_dirs = false; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheIdCompileId3Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $this->smarty->use_sub_dirs = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheIdCompileId4() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = false; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheIdCompileId4Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(1, $this->smarty->clearCache('helloworld.tpl', null, 'blar2')); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheIdCompileId5() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = false; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(2, $this->smarty->clearCache(null, null, 'blar')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheIdCompileId5Sub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl', 'foo|bar', 'blar2'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld2.tpl', 'foo|bar', 'blar'); - $tpl3->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertEquals(2, $this->smarty->clearCache(null, null, 'blar')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - } - public function testClearCacheCacheFile() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = false; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl',null,'bar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld.tpl','buh|blar'); - $tpl3->writeCachedContent('hello world'); - $tpl4 = $this->smarty->createTemplate('helloworld2.tpl'); - $tpl4->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertTrue(file_exists($tpl4->cached->filepath)); - $this->assertEquals(3, $this->smarty->clearCache('helloworld.tpl')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - $this->assertTrue(file_exists($tpl4->cached->filepath)); - } - public function testClearCacheCacheFileSub() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->use_sub_dirs = true; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->writeCachedContent('hello world'); - $tpl2 = $this->smarty->createTemplate('helloworld.tpl',null,'bar'); - $tpl2->writeCachedContent('hello world'); - $tpl3 = $this->smarty->createTemplate('helloworld.tpl','buh|blar'); - $tpl3->writeCachedContent('hello world'); - $tpl4 = $this->smarty->createTemplate('helloworld2.tpl'); - $tpl4->writeCachedContent('hello world'); - $this->assertTrue(file_exists($tpl->cached->filepath)); - $this->assertTrue(file_exists($tpl2->cached->filepath)); - $this->assertTrue(file_exists($tpl3->cached->filepath)); - $this->assertTrue(file_exists($tpl4->cached->filepath)); - $this->assertEquals(3, $this->smarty->clearCache('helloworld.tpl')); - $this->assertFalse(file_exists($tpl->cached->filepath)); - $this->assertFalse(file_exists($tpl2->cached->filepath)); - $this->assertFalse(file_exists($tpl3->cached->filepath)); - $this->assertTrue(file_exists($tpl4->cached->filepath)); - } - - public function testSharing() - { - $smarty = new Smarty(); - $smarty->caching = true; - $_smarty = clone $smarty; - $smarty->fetch('string:foo'); - $_smarty->fetch('string:foo'); - - $this->assertTrue($smarty->_cacheresource_handlers['file'] === $_smarty->_cacheresource_handlers['file']); - } - - public function testExplicit() - { - $smarty = new Smarty(); - $smarty->caching = true; - $_smarty = clone $smarty; - $smarty->fetch('string:foo'); - $_smarty->registerCacheResource('file', new Smarty_Internal_CacheResource_File()); - $_smarty->fetch('string:foo'); - - $this->assertFalse($smarty->_cacheresource_handlers['file'] === $_smarty->_cacheresource_handlers['file']); - } - - /** - * final cleanup - */ - public function testFinalCleanup2() - { - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ClearAllAssignTests.php
Deleted
@@ -1,87 +0,0 @@ -<?php -/** -* Smarty PHPunit tests clearing all assigned variables -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for clearing all assigned variables tests -*/ -class ClearAllAssignTests extends PHPUnit_Framework_TestCase { - - protected $_data = null; - protected $_tpl = null; - protected $_dataBC = null; - protected $_tplBC = null; - - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - - - $this->smarty->assign('foo','foo'); - $this->_data = new Smarty_Data($this->smarty); - $this->_data->assign('bar','bar'); - $this->_tpl = $this->smarty->createTemplate('eval:{$foo}{$bar}{$blar}', null, null, $this->_data); - $this->_tpl->assign('blar','blar'); - - $this->smartyBC->assign('foo','foo'); - $this->_dataBC = new Smarty_Data($this->smartyBC); - $this->_dataBC->assign('bar','bar'); - $this->_tplBC = $this->smartyBC->createTemplate('eval:{$foo}{$bar}{$blar}', null, null, $this->_dataBC); - $this->_tplBC->assign('blar','blar'); - } - - public static function isRunnable() - { - return true; - } - - /** - * test all variables accessable - */ - public function testAllVariablesAccessable() - { - $this->assertEquals('foobarblar', $this->smarty->fetch($this->_tpl)); - } - - /** - * test clear all assign in template - */ - public function testClearAllAssignInTemplate() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->_tpl->clearAllAssign(); - $this->assertEquals('foobar', $this->smarty->fetch($this->_tpl)); - } - /** - * test clear all assign in data - */ - public function testClearAllAssignInData() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->_data->clearAllAssign(); - $this->assertEquals('fooblar', $this->smarty->fetch($this->_tpl)); - } - /** - * test clear all assign in Smarty object - */ - public function testClearAllAssignInSmarty() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smarty->clearAllAssign(); - $this->assertEquals('barblar', $this->smarty->fetch($this->_tpl)); - } - public function testSmarty2ClearAllAssignInSmarty() - { - $this->smartyBC->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smartyBC->clear_all_assign(); - $this->assertEquals('barblar', $this->smartyBC->fetch($this->_tplBC)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ClearAssignTests.php
Deleted
@@ -1,73 +0,0 @@ -<?php -/** -* Smarty PHPunit tests clearing assigned variables -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for clearing assigned variables tests -*/ -class ClearAssignTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - - $this->smarty->assign('foo','foo'); - $this->smarty->assign('bar','bar'); - $this->smarty->assign('blar','blar'); - - $this->smartyBC->assign('foo','foo'); - $this->smartyBC->assign('bar','bar'); - $this->smartyBC->assign('blar','blar'); - } - - public static function isRunnable() - { - return true; - } - - - /** - * test all variables accessable - */ - public function testAllVariablesAccessable() - { - $this->assertEquals('foobarblar', $this->smarty->fetch('eval:{$foo}{$bar}{$blar}')); - } - - /** - * test simple clear assign - */ - public function testClearAssign() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smarty->clearAssign('blar'); - $this->assertEquals('foobar', $this->smarty->fetch('eval:{$foo}{$bar}{$blar}')); - } - public function testSmarty2ClearAssign() - { - $this->smartyBC->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smartyBC->clear_assign('blar'); - $this->assertEquals('foobar', $this->smartyBC->fetch('eval:{$foo}{$bar}{$blar}')); - } - /** - * test clear assign array of variables - */ - public function testArrayClearAssign() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smarty->clearAssign(array('blar','foo')); - $this->assertEquals('bar', $this->smarty->fetch('eval:{$foo}{$bar}{$blar}')); - } - public function testSmarty2ArrayClearAssign() - { - $this->smartyBC->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smartyBC->clear_assign(array('blar','foo')); - $this->assertEquals('bar', $this->smartyBC->fetch('eval:{$foo}{$bar}{$blar}')); - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ClearCacheTests.php
Deleted
@@ -1,69 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for clearing the cache -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for clearing the cache tests -*/ -class ClearCacheTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test cache->clear_all method - */ - public function testClearCacheAll() - { - $this->smarty->clearAllCache(); - file_put_contents($this->smarty->getCacheDir() . 'dummy.php', 'test'); - $this->assertEquals(1, $this->smarty->clearAllCache()); - } - /** - * test cache->clear_all method not expired - */ - public function testClearCacheAllNotExpired() - { - file_put_contents($this->smarty->getCacheDir() . 'dummy.php', 'test'); - touch($this->smarty->getCacheDir() . 'dummy.php', time()-1000); - $this->assertEquals(0, $this->smarty->clearAllCache(2000)); - } - public function testSmarty2ClearCacheAllNotExpired() - { - file_put_contents($this->smartyBC->getCacheDir() . 'dummy.php', 'test'); - touch($this->smartyBC->getCacheDir() . 'dummy.php', time()-1000); - $this->smartyBC->clear_all_cache(2000); - $this->assertEquals(1, $this->smartyBC->clearAllCache()); - } - /** - * test cache->clear_all method expired - */ - public function testClearCacheAllExpired() - { - file_put_contents($this->smarty->getCacheDir() . 'dummy.php', 'test'); - touch($this->smarty->getCacheDir() . 'dummy.php', time()-1000); - $this->assertEquals(1, $this->smarty->clearAllCache(500)); - } - public function testSmarty2ClearCacheAllExpired() - { - file_put_contents($this->smartyBC->getCacheDir() . 'dummy.php', 'test'); - touch($this->smartyBC->getCacheDir() . 'dummy.php', time()-1000); - $this->smartyBC->clear_all_cache(500); - $this->assertEquals(0, $this->smartyBC->clearAllCache()); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ClearCompiledTests.php
Deleted
@@ -1,438 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for deleting compiled templates -* -* @package PHPunit -* @author Uwe Tews -* @author Rodney Rehm -*/ - - -/** -* class for delete compiled template tests -*/ -class ClearCompiledTests extends PHPUnit_Framework_TestCase { - - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->addTemplateDir('./templates_2/'); - } - - public static function isRunnable() - { - return true; - } - - // helpers - /** - * clear $smarty->compile_dir - * - * @return void - */ - protected function clearFiles() - { - $directory = realpath($this->smarty->getCompileDir()); - if (!$directory) { - return; - } - - $di = new RecursiveDirectoryIterator($directory); - // $it = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST | FilesystemIterator::SKIP_DOTS); - $it = new RecursiveIteratorIterator($di, RecursiveIteratorIterator::CHILD_FIRST); - foreach ($it as $file) { - $_file = $file->__toString(); - - if (preg_match("#[\\\\/]\.#", $_file)) { - continue; - } - - if ($file->isDir()) { - rmdir($_file); - } else { - unlink($_file); - } - - } - } - /** - * list of compiled files - * @var array - */ - protected $_files = array(); - /** - * generate compiled files - * @uses $_files to store references - * @return array list of files array( id => path ) - */ - protected function makeFiles() - { - $this->_files = array(); - $directory_length = strlen($this->smarty->getCompileDir()); - $templates = array( - 'helloworld.tpl' => array(null, 'compile1', 'compile2'), - 'helloworld2.tpl' => array(null, 'compile1', 'compile2'), - 'ambiguous/case1/foobar.tpl' => array(null, 'compile1', 'compile2'), - '[1]ambiguous/case1/foobar.tpl' => array(null, 'compile1', 'compile2'), - ); - - foreach ($templates as $template => $compile_ids) { - foreach ($compile_ids as $compile_id) { - $tpl = $this->smarty->createTemplate($template, null, $compile_id); - $tpl->fetch(); - $this->_files[$template . '#' . $compile_id] = substr($tpl->compiled->filepath, $directory_length - 1); - } - } - - Smarty_Resource::$sources = array(); - $this->smarty->template_objects = array(); - - return $this->_files; - } - /** - * Transform $id to $path - * - * @param array $keys IDs like "template#compile_id" - * @return array list of (sorted) compiled file paths - */ - protected function expectFiles($keys) - { - $files = array(); - foreach ($keys as $key) { - if (isset($this->_files[$key])) { - $files[] = $this->_files[$key]; - } - } - sort($files); - return $files; - } - /** - * update mtime of compiled files - * - * @param array $keys IDs like "template#compile_id" - * @param string $offset time offset added to time() - * @return void - */ - protected function touchFiles($keys, $offset=0) - { - $base = rtrim($this->smarty->getCompileDir(), "\\/"); - $time = time(); - foreach ($keys as $key) { - if (isset($this->_files[$key])) { - touch($base . $this->_files[$key], $time + $offset); - } - } - } - /** - * find all compiled files - * - * @return array list of (sorted) compiled file paths - */ - protected function getFiles() - { - $directory = realpath($this->smarty->getCompileDir()); - if (!$directory) { - return array(); - } - - $directory_length = strlen($directory); - $files = array(); - - $di = new RecursiveDirectoryIterator($directory); - $it = new RecursiveIteratorIterator($di); - foreach ($it as $file) { - $_file = $file->__toString(); - // skip anything with a /. in it. - if (preg_match("#[\\\\/]\.#", $_file) || !$file->isFile()) { - continue; - } - - $files[] = substr($file->__toString(), $directory_length); - } - sort($files); - return $files; - } - - - // Smarty::clearCompiledTemplate(null, null, null) - public function testClearAll() - { - $this->runClearAll(false); - } - public function testSubsClearAll() - { - $this->runClearAll(true); - } - public function runClearAll($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array(); - $this->assertEquals(12, $this->smarty->clearCompiledTemplate()); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate($template, null, null) - public function testClearTemplate() - { - $this->runClearTemplate(false); - } - public function testSubsClearTemplate() - { - $this->runClearTemplate(true); - } - public function testClearOtherTemplate() - { - $this->runClearOtherTemplate(false); - } - public function testSubsClearOtherTemplate() - { - $this->runClearOtherTemplate(true); - } - public function runClearTemplate($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array( - 'helloworld2.tpl#', 'helloworld2.tpl#compile1', 'helloworld2.tpl#compile2', - 'ambiguous/case1/foobar.tpl#', 'ambiguous/case1/foobar.tpl#compile1', 'ambiguous/case1/foobar.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile1', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->assertEquals(3, $this->smarty->clearCompiledTemplate('helloworld.tpl')); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - public function runClearOtherTemplate($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array_keys($this->_files); - $this->assertEquals(0, $this->smarty->clearCompiledTemplate('foobar.tpl')); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate(null, $cache_id, null) - public function testClearCompileid() - { - $this->runClearCompileid(false); - } - public function testSubsClearCompileid() - { - $this->runClearCompileid(true); - } - public function testClearOtherCompileid() - { - $this->runClearOtherCompileid(false); - } - public function testSubsClearOtherCompileid() - { - $this->runClearOtherCompileid(true); - } - public function runClearCompileid($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array( - 'helloworld.tpl#', 'helloworld.tpl#compile2', - 'helloworld2.tpl#', 'helloworld2.tpl#compile2', - 'ambiguous/case1/foobar.tpl#', 'ambiguous/case1/foobar.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->assertEquals(4, $this->smarty->clearCompiledTemplate(null, 'compile1')); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - - } - public function runClearOtherCompileid($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array_keys($this->_files); - $this->assertEquals(0, $this->smarty->clearCompiledTemplate(null, 'other')); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate(null, null, $expired) - public function testClearExpired() - { - $this->runClearExpired(false); - } - public function testSubsClearExpired() - { - $this->runClearExpired(true); - } - public function runClearExpired($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array('helloworld.tpl#', 'helloworld2.tpl#'); - $this->touchFiles(array_diff(array_keys($this->_files), $expected), -1000); - $this->assertEquals(10, $this->smarty->clearCompiledTemplate(null, null, 500)); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate($template, null, $expired) - public function testClearTemplateExpired() - { - $this->runClearTemplateExpired(false); - } - public function testSubsClearTemplateExpired() - { - $this->runClearTemplateExpired(true); - } - public function runClearTemplateExpired($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array( - 'helloworld.tpl#', 'helloworld.tpl#compile2', - 'helloworld2.tpl#', 'helloworld2.tpl#compile1', 'helloworld2.tpl#compile2', - 'ambiguous/case1/foobar.tpl#', 'ambiguous/case1/foobar.tpl#compile1', 'ambiguous/case1/foobar.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile1', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->touchFiles(array('helloworld.tpl#compile1'), -1000); - $this->assertEquals(1, $this->smarty->clearCompiledTemplate("helloworld.tpl", null, 500)); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate($template, $cache_id, $expired) - public function testClearTemplateCacheidExpired() - { - $this->runClearTemplateCacheidExpired(false); - } - public function testSubsClearTemplateCacheidExpired() - { - $this->runClearTemplateCacheidExpired(true); - } - public function runClearTemplateCacheidExpired($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array( - 'helloworld.tpl#', 'helloworld.tpl#compile2', - 'helloworld2.tpl#', 'helloworld2.tpl#compile1', 'helloworld2.tpl#compile2', - 'ambiguous/case1/foobar.tpl#', 'ambiguous/case1/foobar.tpl#compile1', 'ambiguous/case1/foobar.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile1', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->touchFiles(array('helloworld.tpl#compile1', 'helloworld.tpl#compile2'), -1000); - $this->assertEquals(1, $this->smarty->clearCompiledTemplate("helloworld.tpl", "compile1", 500)); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate(null, $cache_id, $expired) - public function testClearCacheidExpired() - { - $this->runClearCacheidExpired(false); - } - public function testSubsClearCacheidExpired() - { - $this->runClearCacheidExpired(true); - } - public function runClearCacheidExpired($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array( - 'helloworld.tpl#', 'helloworld.tpl#compile2', - 'helloworld2.tpl#', 'helloworld2.tpl#compile1', 'helloworld2.tpl#compile2', - 'ambiguous/case1/foobar.tpl#', 'ambiguous/case1/foobar.tpl#compile1', 'ambiguous/case1/foobar.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile1', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->touchFiles(array('helloworld.tpl#compile1'), -1000); - $this->assertEquals(1, $this->smarty->clearCompiledTemplate(null, "compile1", 500)); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - // Smarty::clearCompiledTemplate($template, $cache_id, null) - public function testClearTemplateCacheid() - { - $this->runClearTemplateCacheid(false); - } - public function testSubsClearTemplateCacheid() - { - $this->runClearTemplateCacheid(true); - } - public function runClearTemplateCacheid($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - $expected = array( - 'helloworld.tpl#', 'helloworld.tpl#compile2', - 'helloworld2.tpl#', 'helloworld2.tpl#compile1', 'helloworld2.tpl#compile2', - 'ambiguous/case1/foobar.tpl#', 'ambiguous/case1/foobar.tpl#compile1', 'ambiguous/case1/foobar.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile1', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->assertEquals(1, $this->smarty->clearCompiledTemplate("helloworld.tpl", "compile1")); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - - public function testClearAmbiguousTemplate() - { - $this->runClearAmbiguousTemplate(false); - } - public function testSubsAmbiguousTemplate() - { - $this->runClearAmbiguousTemplate(true); - } - public function runClearAmbiguousTemplate($use_sub_dirs) - { - $this->smarty->use_sub_dirs = $use_sub_dirs; - $this->clearFiles(); - $this->makeFiles(); - - // TODO: uwe.tews - shouldn't clearCompiledTemplate("foo.tpl") remove "{$template_dir[0]}/foo.tpl" AND "{$template_dir[1]}/foo.tpl"? - // currently it kills only the first one found (through regular template file identification methods) - - $expected = array( - 'helloworld.tpl#', 'helloworld.tpl#compile1', 'helloworld.tpl#compile2', - 'helloworld2.tpl#', 'helloworld2.tpl#compile1', 'helloworld2.tpl#compile2', - '[1]ambiguous/case1/foobar.tpl#', '[1]ambiguous/case1/foobar.tpl#compile1', '[1]ambiguous/case1/foobar.tpl#compile2', - ); - $this->assertEquals(3, $this->smarty->clearCompiledTemplate("ambiguous/case1/foobar.tpl")); - - $this->assertEquals($this->expectFiles($expected), $this->getFiles()); - $this->clearFiles(); - } - -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CommentsTests.php
Deleted
@@ -1,77 +0,0 @@ -<?php -/** - * Smarty PHPunit tests comments in templates - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for security test - */ -class CommentsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple comments - */ - public function testSimpleComment1() - { - $tpl = $this->smarty->createTemplate("eval:{* this is a comment *}"); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } - public function testSimpleComment2() - { - $tpl = $this->smarty->createTemplate("eval:{* another \$foo comment *}"); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } - public function testSimpleComment3() - { - $tpl = $this->smarty->createTemplate("eval:{* another comment *}some in between{* another comment *}"); - $this->assertEquals("some in between", $this->smarty->fetch($tpl)); - } - public function testSimpleComment4() - { - $tpl = $this->smarty->createTemplate("eval:{* multi line \n comment *}"); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } - public function testSimpleComment5() - { - $tpl = $this->smarty->createTemplate("eval:{* /* foo * / *}"); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } - /** - * test comment text combinations - */ - public function testTextComment1() - { - $tpl = $this->smarty->createTemplate("eval:A{* comment *}B\nC"); - $this->assertEquals("AB\nC", $this->smarty->fetch($tpl)); - } - public function testTextComment2() - { - $tpl = $this->smarty->createTemplate("eval:D{* comment *}\n{* comment *}E\nF"); - $this->assertEquals("D\nE\nF", $this->smarty->fetch($tpl)); - } - public function testTextComment3() - { - $tpl = $this->smarty->createTemplate("eval:G{* multi \nline *}H"); - $this->assertEquals("GH", $this->smarty->fetch($tpl)); - } - public function testTextComment4() - { - $tpl = $this->smarty->createTemplate("eval:I{* multi \nline *}\nJ"); - $this->assertEquals("I\nJ", $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileAppendTests.php
Deleted
@@ -1,38 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of append tags -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for append tags tests -*/ -class CompileAppendTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test aappand tag - */ - public function testAppend1() - { - $this->assertEquals("12", $this->smarty->fetch('eval:{$foo=1}{append var=foo value=2}{foreach $foo as $bar}{$bar}{/foreach}')); - } - public function testAppend2() - { - $this->smarty->assign('foo',1); - $this->assertEquals("12", $this->smarty->fetch('eval:{append var=foo value=2}{foreach $foo as $bar}{$bar}{/foreach}')); - } -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileAssignTests.php
Deleted
@@ -1,156 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of assign tags -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for assign tags tests -*/ -class CompileAssignTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test old style of assign tag - */ - public function testAssignOld1() - { - $this->assertEquals("1", $this->smarty->fetch('eval:{assign var=foo value=1}{$foo}')); - $this->assertEquals("1", $this->smarty->fetch('eval:{assign var = foo value= 1}{$foo}')); - } - public function testAssignOld2() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=\'foo\' value=1}{$foo}'); - $this->assertEquals("1", $this->smarty->fetch($tpl)); - } - public function testAssignOld3() - { - $tpl = $this->smarty->createTemplate('eval:{assign var="foo" value=1}{$foo}'); - $this->assertEquals("1", $this->smarty->fetch($tpl)); - } - public function testAssignOld4() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=bar}{$foo}'); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testAssignOld5() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=1+2}{$foo}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - } - public function testAssignOld6() - { - $this->smarty->security_policy->php_functions = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=strlen(\'bar\')}{$foo}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - } - public function testAssignOld7() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=\'bar\'|strlen}{$foo}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - } - public function testAssignOld8() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[9,8,7,6]}{foreach $foo as $x}{$x}{/foreach}'); - $this->assertEquals("9876", $this->smarty->fetch($tpl)); - } - public function testAssignOld9() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[\'a\'=>9,\'b\'=>8,\'c\'=>7,\'d\'=>6]}{foreach $foo as $x}{$x@key}{$x}{/foreach}'); - $this->assertEquals("a9b8c7d6", $this->smarty->fetch($tpl)); - } - /** - * test assign tag shorthands - */ - public function testAssignShort1() - { - $this->assertEquals("1", $this->smarty->fetch('string:{assign foo value=1}{$foo}')); - } - public function testAssignShort2() - { - $this->assertEquals("1", $this->smarty->fetch('string:{assign foo 1}{$foo}')); - } - /** - * test new style of assign tag - */ - public function testAssignNew1() - { - $this->assertEquals("1", $this->smarty->fetch('eval:{$foo=1}{$foo}')); - $this->assertEquals("1", $this->smarty->fetch('eval:{$foo =1}{$foo}')); - $this->assertEquals("1", $this->smarty->fetch('eval:{$foo = 1}{$foo}')); - } - public function testAssignNew2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=bar}{$foo}'); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testAssignNew3() - { - $this->assertEquals("3", $this->smarty->fetch('eval:{$foo=1+2}{$foo}')); - $this->assertEquals("3", $this->smarty->fetch('eval:{$foo = 1+2}{$foo}')); - $this->assertEquals("3", $this->smarty->fetch('eval:{$foo = 1 + 2}{$foo}')); - } - public function testAssignNew4() - { - $this->smarty->security_policy->php_functions = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{$foo=strlen(\'bar\')}{$foo}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - } - public function testAssignNew5() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate("eval:{\$foo='bar'|strlen}{\$foo}"); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - } - public function testAssignNew6() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=[9,8,7,6]}{foreach \$foo as \$x}{\$x}{/foreach}"); - $this->assertEquals("9876", $this->smarty->fetch($tpl)); - } - public function testAssignNew7() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=['a'=>9,'b'=>8,'c'=>7,'d'=>6]}{foreach \$foo as \$x}{\$x@key}{\$x}{/foreach}"); - $this->assertEquals("a9b8c7d6", $this->smarty->fetch($tpl)); - } - public function testAssignArrayAppend() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo =1}{\$foo[] = 2}{foreach \$foo as \$x}{\$x@key}{\$x}{/foreach}"); - $this->assertEquals("0112", $this->smarty->fetch($tpl)); - } - public function testAssignArrayAppend2() - { - $this->smarty->assign('foo',1); - $tpl = $this->smarty->createTemplate("eval:{\$foo[]=2}{foreach \$foo as \$x}{\$x@key}{\$x}{/foreach}", null, null, $this->smarty); - $this->assertEquals("0112", $this->smarty->fetch($tpl)); - $tpl2 = $this->smarty->createTemplate("eval:{\$foo}", null, null, $this->smarty); - $this->assertEquals("1", $this->smarty->fetch($tpl2)); - } - public function testAssignArrayAppend3() - { - $this->smarty->assign('foo',1); - $tpl = $this->smarty->createTemplate("eval:{\$foo[]=2 scope=root}{foreach \$foo as \$x}{\$x@key}{\$x}{/foreach}", null, null, $this->smarty); - $this->assertEquals("0112", $this->smarty->fetch($tpl)); - $tpl2 = $this->smarty->createTemplate("eval:{foreach \$foo as \$x}{\$x@key}{\$x}{/foreach}", null, null, $this->smarty); - $this->assertEquals("0112", $this->smarty->fetch($tpl2)); - } - public function testAssignNestedArray() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo['a'][4]=1}{\$foo['a'][4]}"); - $this->assertEquals("1", $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileBlockExtendsTests.php
Deleted
@@ -1,352 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for Block Extends -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for block extends compiler tests -*/ -class CompileBlockExtendsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * clear folders - */ - public function clear() - { - $this->smarty->clearAllCache(); - $this->smarty->clearCompiledTemplate(); - } - /** - * test block default outout - */ - public function testBlockDefault1() - { - $result = $this->smarty->fetch('eval:{block name=test}-- block default --{/block}'); - $this->assertEquals('-- block default --', $result); - } - - public function testBlockDefault2() - { - $this->smarty->assign ('foo', 'another'); - $result = $this->smarty->fetch('eval:{block name=test}-- {$foo} block default --{/block}'); - $this->assertEquals('-- another block default --', $result); - } - /** - * test just call of parent template, no blocks predefined - */ - public function testCompileBlockParent() - { - $result = $this->smarty->fetch('test_block_parent.tpl'); - $this->assertContains('Default Title', $result); - } - /** - * test child/parent template chain - */ - public function testCompileBlockChild() - { - $result = $this->smarty->fetch('test_block_child.tpl'); - $this->assertContains('Page Title', $result); - } - /** - * test child/parent template chain with prepend - */ - public function testCompileBlockChildPrepend() - { - $result = $this->smarty->fetch('test_block_child_prepend.tpl'); - $this->assertContains("prepend - Default Title", $result); - } - /** - * test child/parent template chain with apppend - */ - public function testCompileBlockChildAppend() - { - $result = $this->smarty->fetch('test_block_child_append.tpl'); - $this->assertContains("Default Title - append", $result); - } - /** - * test child/parent template chain with apppend and shorttags - */ - public function testCompileBlockChildAppendShortag() - { - $result = $this->smarty->fetch('test_block_child_append_shorttag.tpl'); - $this->assertContains("Default Title - append", $result); - } - /** - * test child/parent template chain with {$smarty.block.child) - */ - public function testCompileBlockChildSmartyChild() - { - $result = $this->smarty->fetch('test_block_child_smartychild.tpl'); - $this->assertContains('here is child text included', $result); - } - /** - * test child/parent template chain with {$smarty.block.parent) - */ - public function testCompileBlockChildSmartyParent() - { - $result = $this->smarty->fetch('test_block_child_smartyparent.tpl'); - $this->assertContains('parent block Default Title is here', $result); - } - /** - * test child/parent template chain loading plugin - */ - public function testCompileBlockChildPlugin() - { - $result = $this->smarty->fetch('test_block_child_plugin.tpl'); - $this->assertContains('escaped <text>', $result); - } - /** - * test parent template with nested blocks - */ - public function testCompileBlockParentNested() - { - $result = $this->smarty->fetch('test_block_parent_nested.tpl'); - $this->assertContains('Title with -default- here', $result); - } - /** - * test child/parent template chain with nested block - */ - public function testCompileBlockChildNested() - { - $result = $this->smarty->fetch('test_block_child_nested.tpl'); - $this->assertContains('Title with -content from child- here', $result); - } - /** - * test child/parent template chain with nested block and include - */ - public function testCompileBlockChildNestedInclude() - { - $result = $this->smarty->fetch('test_block_grandchild_nested_include.tpl'); - $this->assertContains('hello world', $result); - } - /** - * test grandchild/child/parent template chain - */ - public function testCompileBlockGrandChild() - { - $result = $this->smarty->fetch('test_block_grandchild.tpl'); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent template chain prepend - */ - public function testCompileBlockGrandChildPrepend() - { - $result = $this->smarty->fetch('test_block_grandchild_prepend.tpl'); - $this->assertContains('grandchild prepend - Page Title', $result); - } - /** - * test grandchild/child/parent template chain with {$smarty.block.child} - */ - public function testCompileBlockGrandChildSmartyChild() - { - $result = $this->smarty->fetch('test_block_grandchild_smartychild.tpl'); - $this->assertContains('child title with - grandchild content - here', $result); - } - /** - * test grandchild/child/parent template chain append - */ - public function testCompileBlockGrandChildAppend() - { - $result = $this->smarty->fetch('test_block_grandchild_append.tpl'); - $this->assertContains('Page Title - grandchild append', $result); - } - /** - * test grandchild/child/parent template chain with nested block - */ - public function testCompileBlockGrandChildNested() - { - $result = $this->smarty->fetch('test_block_grandchild_nested.tpl'); - $this->assertContains('child title with -grandchild content- here', $result); - } - /** - * test grandchild/child/parent template chain with nested {$smarty.block.child} - */ - public function testCompileBlockGrandChildNested3() - { - $result = $this->smarty->fetch('test_block_grandchild_nested3.tpl'); - $this->assertContains('child pre -grandchild content- child post', $result); - } - /** - * test nested child block with hide - */ - public function testCompileBlockChildNestedHide() - { - $result = $this->smarty->fetch('test_block_child_nested_hide.tpl'); - $this->assertContains('nested block', $result); - $this->assertNotContains('should be hidden', $result); - } - /** - * test nested child block with hide and auto_literal = false - */ - public function testCompileBlockChildNestedHideAutoLiteralFalse() - { - $this->smarty->auto_literal = false; - $result = $this->smarty->fetch('test_block_child_nested_hide_space.tpl'); - $this->assertContains('nested block', $result); - $this->assertNotContains('should be hidden', $result); - } - /** - * test child/parent template chain starting in subtempates - */ - public function testCompileBlockStartSubTemplates() - { - $result = $this->smarty->fetch('test_block_include_root.tpl'); - $this->assertContains('page 1', $result); - $this->assertContains('page 2', $result); - $this->assertContains('page 3', $result); - $this->assertContains('block 1', $result); - $this->assertContains('block 2', $result); - $this->assertContains('block 3', $result); - } - /** - * test grandchild/child/parent dependency test1 - */ - public function testCompileBlockGrandChildMustCompile1() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent dependency test2 - */ - public function testCompileBlockGrandChildMustCompile2() - { - touch($this->smarty->getTemplateDir(0) . 'test_block_grandchild.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent dependency test3 - */ - public function testCompileBlockGrandChildMustCompile3() - { - touch($this->smarty->getTemplateDir(0) . 'test_block_child.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent dependency test4 - */ - public function testCompileBlockGrandChildMustCompile4() - { - touch($this->smarty->getTemplateDir(0) . 'test_block_parent.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('test_block_grandchild.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - public function testCompileBlockSection() - { - $result = $this->smarty->fetch('test_block_section.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section false--', $result); - $this->assertContains('--block root false--', $result); - $this->assertContains('--block assigned false--', $result); - $this->assertContains('--section--', $result); - $this->assertContains('--base--', $result); - $this->assertContains('--block include false--', $result); - } - public function testCompileBlockRoot() - { - $this->smarty->assign('foo', 'hallo'); - $result = $this->smarty->fetch('test_block.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section ok--', $result); - $this->assertContains('--block root ok--', $result); - $this->assertContains('--assigned hallo--', $result); - $this->assertContains('--parent from --section-- block--', $result); - $this->assertContains('--parent from --base-- block--', $result); - $this->assertContains('--block include ok--', $result); - } - public function testCompileBlockRoot2() - { - $this->smarty->assign('foo', 'hallo'); - $result = $this->smarty->fetch('test_block.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section ok--', $result); - $this->assertContains('--block root ok--', $result); - $this->assertContains('--assigned hallo--', $result); - $this->assertContains('--parent from --section-- block--', $result); - $this->assertContains('--parent from --base-- block--', $result); - $this->assertContains('--block include ok--', $result); - } - public function testCompileBlockNocacheMain1() - { - $this->smarty->assign('foo', 1); - $this->smarty->caching = 1; - $this->assertContains('foo 1', $this->smarty->fetch('test_block_nocache_child.tpl')); - } - public function testCompileBlockNocacheMain2() - { - $this->smarty->assign('foo', 2); - $this->smarty->caching = 1; - $this->assertTrue($this->smarty->isCached('test_block_nocache_child.tpl')); - $this->assertContains('foo 2', $this->smarty->fetch('test_block_nocache_child.tpl')); - } - public function testCompileBlockNocacheChild1() - { - $this->smarty->assign('foo', 1); - $this->smarty->caching = 1; - $this->assertContains('foo 1', $this->smarty->fetch('extends:test_block_nocache_parent.tpl|test_block_nocache_child.tpl')); - } - public function testCompileBlockNocacheChild2() - { - $this->smarty->assign('foo', 2); - $this->smarty->caching = 1; - $this->assertTrue($this->smarty->isCached('extends:test_block_nocache_parent.tpl|test_block_nocache_child.tpl')); - $this->assertContains('foo 2', $this->smarty->fetch('extends:test_block_nocache_parent.tpl|test_block_nocache_child.tpl')); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileBlockPluginTests.php
Deleted
@@ -1,107 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of block plugins -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for block plugin tests -*/ -class CompileBlockPluginTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - $this->smarty->disableSecurity(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test block plugin tag - */ - public function testBlockPluginNoAssign() - { - $tpl = $this->smarty->createTemplate("eval:{textformat}hello world{/textformat}"); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * test block plugin tag with assign attribute - */ - public function testBlockPluginAssign() - { - $tpl = $this->smarty->createTemplate("eval:{textformat assign=foo}hello world{/textformat}{\$foo}"); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * test block plugin tag in template file - */ - public function testBlockPluginFromTemplateFile() - { - $tpl = $this->smarty->createTemplate('blockplugintest.tpl'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - } - /** - * test block plugin tag in compiled template file - */ - public function testBlockPluginFromCompiledTemplateFile() - { - $this->smarty->force_compile = false; - $tpl = $this->smarty->createTemplate('blockplugintest.tpl'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - } - /** - * test block plugin tag in template file - */ - public function testBlockPluginFromTemplateFileCache() - { - $this->smarty->force_compile = false; - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $tpl = $this->smarty->createTemplate('blockplugintest.tpl'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - } - /** - * test block plugin function definition in script - */ - public function testBlockPluginRegisteredFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'blockplugintest', 'myblockplugintest'); - $tpl = $this->smarty->createTemplate('eval:{blockplugintest}hello world{/blockplugintest}'); - $this->assertEquals('block test', $this->smarty->fetch($tpl)); - } - /** - * test block plugin repeat function - */ - public function testBlockPluginRepeat() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('12345', $this->smarty->fetch('eval:{testblock}{/testblock}')); - } - public function testBlockPluginRepeatModidier1() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('11111', $this->smarty->fetch('eval:{testblock}{/testblock|strlen}')); - } - public function testBlockPluginRepeatModidier2() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('11111', $this->smarty->fetch('eval:{testblock}{/testblock|strlen|default:""}')); - } -} -function myblockplugintest($params, $content, &$smarty_tpl, &$repeat) -{ - if (!$repeat) { - $output = str_replace('hello world', 'block test', $content); - return $output; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileCaptureTests.php
Deleted
@@ -1,85 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of capture tags -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for capture tags tests -*/ -class CompileCaptureTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test capture tag - */ - public function testCapture1() - { - $tpl = $this->smarty->createTemplate('eval:{capture assign=foo}hello world{/capture}'); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } - public function testCapture2() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=bar}{capture assign=foo}hello world{/capture}{$foo}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testCapture3() - { - $tpl = $this->smarty->createTemplate('eval:{capture name=foo}hello world{/capture}{$smarty.capture.foo}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testCapture4() - { - $tpl = $this->smarty->createTemplate('eval:{capture name=foo assign=bar}hello world{/capture}{$smarty.capture.foo} {$bar}'); - $this->assertEquals("hello world hello world", $this->smarty->fetch($tpl)); - } - public function testCapture5() - { - $tpl = $this->smarty->createTemplate('eval:{capture}hello world{/capture}{$smarty.capture.default}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testCapture6() - { - $tpl = $this->smarty->createTemplate('eval:{capture short}hello shorttag{/capture}{$smarty.capture.short}'); - $this->assertEquals("hello shorttag", $this->smarty->fetch($tpl)); - } - public function testCapture7() - { - $tpl = $this->smarty->createTemplate('eval:{capture append=foo}hello{/capture}bar{capture append=foo}world{/capture}{foreach $foo item} {$item@key} {$item}{/foreach}'); - $this->assertEquals("bar 0 hello 1 world", $this->smarty->fetch($tpl)); - } - /* - * The following test has been disabled. It fails only in PHPunit - */ - public function testCapture8() - { - $tpl = $this->smarty->createTemplate('eval:{capture assign=foo}hello {capture assign=bar}this is my {/capture}world{/capture}{$foo} {$bar}'); - $this->assertEquals("hello world this is my ", $this->smarty->fetch($tpl),'This failure pops up only during PHPunit test ?????'); - } - public function testCompileCaptureNocache1() - { - $this->smarty->assign('foo', 1); - $this->smarty->caching = 1; - $this->assertContains('foo 1', $this->smarty->fetch('test_capture_nocache.tpl')); - } - public function testCompileCaptureNocache2() - { - $this->smarty->assign('foo', 2); - $this->smarty->caching = 1; - $this->assertTrue($this->smarty->isCached('test_capture_nocache.tpl')); - $this->assertContains('foo 2', $this->smarty->fetch('test_capture_nocache.tpl')); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileCompilerPluginTests.php
Deleted
@@ -1,50 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of compiler plugins -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for compiler plugin tests -*/ -class CompileCompilerPluginTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - } - - public static function isRunnable() - { - return true; - } - - /** - * test compiler plugin tag in template file - */ - public function testCompilerPluginFromTemplateFile() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'compilerplugin', 'mycompilerplugin'); - $tpl = $this->smarty->createTemplate('compilerplugintest.tpl'); - $this->assertEquals("Hello World", $this->smarty->fetch($tpl)); - } - /** - * test compiler plugin tag in compiled template file - */ - public function testCompilerPluginFromCompiledTemplateFile() - { - $this->smarty->force_compile = false; - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'compilerplugin', 'mycompilerplugin'); - $tpl = $this->smarty->createTemplate('compilerplugintest.tpl'); - $this->assertEquals("Hello World", $this->smarty->fetch($tpl)); - } -} -function mycompilerplugin($params, $compiler) -{ - return '<?php echo \'Hello World\';?>'; -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileDebugTests.php
Deleted
@@ -1,49 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {debug} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -require_once SMARTY_DIR . 'Smarty.class.php'; - -/** -* class for {debug} tag tests -*/ -class CompileDebugTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test debug tag - */ - public function testDebugTag() - { - $tpl = $this->smarty->createTemplate("eval:{debug}"); - $_contents = $this->smarty->fetch($tpl); - $this->assertContains("Smarty Debug Console", $_contents); - } - /** - * test debug property - */ - public function testDebugProperty() - { - $this->smarty->debugging = true; - $tpl = $this->smarty->createTemplate("eval:hello world"); - ob_start(); - $this->smarty->display($tpl); - $_contents = ob_get_clean(); - $this->assertContains("Smarty Debug Console", $_contents); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileDelimiterTests.php
Deleted
@@ -1,39 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of delimiter tags -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for delimiter tags tests -*/ -class CompileDelimiterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test delimiter tag test - */ - public function testLeftDelimiter() - { - $tpl = $this->smarty->createTemplate('eval:x{ldelim}x'); - $this->assertEquals('x{x', $this->smarty->fetch($tpl)); - } - public function testRightDelimiter() - { - $tpl = $this->smarty->createTemplate('eval:x{rdelim}x'); - $this->assertEquals('x}x', $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileErrorTests.php
Deleted
@@ -1,92 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compiler errors -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for compiler tests -*/ -class CompileErrorTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test none existing template file error - */ - public function testNoneExistingTemplateError() - { - try { - $this->smarty->fetch('eval:{include file=\'no.tpl\'}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Unable to load template'), $e->getMessage()); - return; - } - $this->fail('Exception for none existing template has not been raised.'); - } - /** - * test unkown tag error - */ - public function testUnknownTagError() - { - try { - $this->smarty->fetch('eval:{unknown}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('unknown tag "unknown"'), $e->getMessage()); - return; - } - $this->fail('Exception for unknown Smarty tag has not been raised.'); - } - /** - * test unclosed tag error - */ - public function testUnclosedTagError() - { - try { - $this->smarty->fetch('eval:{if true}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('unclosed {if} tag'), $e->getMessage()); - return; - } - $this->fail('Exception for unclosed Smarty tags has not been raised.'); - } - /** - * test syntax error - */ - public function testSyntaxError() - { - try { - $this->smarty->fetch('eval:{assign var=}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Syntax Error in template "599a9cf0e3623a3206bd02a0f5c151d5f5f3f69e"'), $e->getMessage()); - $this->assertContains(htmlentities('Unexpected "}"'), $e->getMessage()); - return; - } - $this->fail('Exception for syntax error has not been raised.'); - } - /** - * test empty templates - */ - public function testEmptyTemplate() - { - $tpl = $this->smarty->createTemplate('eval:'); - $this->assertEquals('', $this->smarty->fetch($tpl)); - } - -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileEvalTests.php
Deleted
@@ -1,45 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {eval} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for {eval} tag tests -*/ -class CompileEvalTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test eval tag - */ - public function testEval1() - { - $tpl = $this->smarty->createTemplate("eval:{eval var='hello world'}"); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testEval2() - { - $tpl = $this->smarty->createTemplate("eval:{eval var='hello world' assign=foo}{\$foo}"); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testEval3() - { - $tpl = $this->smarty->createTemplate("eval:{eval var='hello world' assign=foo}"); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileForTests.php
Deleted
@@ -1,150 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {for} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {for} tag tests -*/ -class CompileForTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test {for $x=0;$x<10;$x++} tag - */ - public function testFor1() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0;$x<10;$x++}{$x}{/for}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testFor2() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0; $x<10; $x++}{$x}{forelse}else{/for}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testFor3() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=10;$x<10;$x++}{$x}{forelse}else{/for}'); - $this->assertEquals("else", $this->smarty->fetch($tpl)); - } - public function testFor4() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=9;$x>=0;$x--}{$x}{forelse}else{/for}'); - $this->assertEquals("9876543210", $this->smarty->fetch($tpl)); - } - public function testFor5() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=-1;$x>=0;$x--}{$x}{forelse}else{/for}'); - $this->assertEquals("else", $this->smarty->fetch($tpl)); - } - public function testFor6() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0,$y=10;$x<$y;$x++}{$x}{forelse}else{/for}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testFor7() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0;$x<10;$x=$x+2}{$x}{/for}'); - $this->assertEquals("02468", $this->smarty->fetch($tpl)); - } - public function testFor8() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0 to 8}{$x}{/for}'); - $this->assertEquals("012345678", $this->smarty->fetch($tpl)); - } - public function testFor9() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0 to 8 step=2}{$x}{/for}'); - $this->assertEquals("02468", $this->smarty->fetch($tpl)); - } - public function testFor10() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0 to 8 step=2}{if $x@first}{$x} {$x@total}{/if}{/for}'); - $this->assertEquals("0 5", $this->smarty->fetch($tpl)); - } - public function testFor11() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=0 to 8 step=2}{if $x@last}{$x} {$x@iteration}{/if}{/for}'); - $this->assertEquals("8 5", $this->smarty->fetch($tpl)); - } - public function testFor12() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=8 to 0 step=-2}{$x}{/for}'); - $this->assertEquals("86420", $this->smarty->fetch($tpl)); - } - public function testFor13() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=8 to 0 step=2}{$x}{forelse}step error{/for}'); - $this->assertEquals("step error", $this->smarty->fetch($tpl)); - } - public function testFor14() - { - $tpl = $this->smarty->createTemplate('eval:{for $x=8 to 0 step -1 max=3}{$x}{/for}'); - $this->assertEquals("876", $this->smarty->fetch($tpl)); - } - /* - * test for and nocache - */ - public function testForNocacheVar1() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{for $x=$foo to 5}{$x} {/for}'); - $tpl->assign('foo',1,true); - $this->assertFalse($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 3 4 5 ", $this->smarty->fetch($tpl)); - } - public function testForNocacheVar2() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{for $x=$foo to 5}{$x} {/for}'); - $tpl->assign('foo',4,true); - $this->assertTrue($this->smarty->isCached($tpl)); - $this->assertEquals("4 5 ", $this->smarty->fetch($tpl)); - } - public function testForNocacheTag1() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{for $x=$foo to 5 nocache}{$x} {/for}'); - $tpl->assign('foo',1); - $this->assertFalse($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 3 4 5 ", $this->smarty->fetch($tpl)); - } - public function testForNocacheTag2() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{for $x=$foo to 5 nocache}{$x} {/for}'); - $tpl->assign('foo',4); - $this->assertTrue($this->smarty->isCached($tpl)); - $this->assertEquals("4 5 ", $this->smarty->fetch($tpl)); - } - public function testForCache1() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{for $x=$foo to 2}{$x} {/for}'); - $tpl->assign('foo',1); - $this->assertFalse($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 ", $this->smarty->fetch($tpl)); - } - public function testForCache2() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{for $x=$foo to 2}{$x} {/for}'); - $tpl->assign('foo',6); - $this->assertTrue($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 ", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileForeachTests.php
Deleted
@@ -1,200 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {foreach} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {foreach} tag tests -*/ -class CompileForeachTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test {foreach} tag - */ - public function testForeach() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{foreach item=x from=$foo}{$x}{/foreach}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testForeachBreak() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{foreach item=x from=$foo}{if $x == 2}{break}{/if}{$x}{/foreach}'); - $this->assertEquals("01", $this->smarty->fetch($tpl)); - } - public function testForeachContinue() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{foreach item=x from=$foo}{if $x == 2}{continue}{/if}{$x}{/foreach}'); - $this->assertEquals("013456789", $this->smarty->fetch($tpl)); - } - public function testForeachNotElse() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{foreach item=x from=$foo}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testForeachElse() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $tpl = $this->smarty->createTemplate('eval:{foreach item=x from=$foo}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("else", $this->smarty->fetch($tpl)); - } - public function testForeachKey() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x key=y from=[9,8,7,6,5,4,3,2,1,0]}{$y}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("09182736455463728190", $this->smarty->fetch($tpl)); - } - public function testForeachKeyProperty() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x from=[9,8,7,6,5,4,3,2,1,0]}{$x@key}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("09182736455463728190", $this->smarty->fetch($tpl)); - } - public function testForeachTotal() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[0,1,2,3,4,5,6,7,8,9]}{$x}{foreachelse}else{/foreach}total{$smarty.foreach.foo.total}'); - $this->assertEquals("0123456789total10", $this->smarty->fetch($tpl)); - } - public function testForeachTotalProperty() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x from=[0,1,2,3,4,5,6,7,8,9]}{$x}{foreachelse}else{/foreach}total{$x@total}'); - $this->assertEquals("0123456789total10", $this->smarty->fetch($tpl)); - } - public function testForeachIndexIteration() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[0,1,2,3,4,5,6,7,8,9]}{$smarty.foreach.foo.index}{$smarty.foreach.foo.iteration}{foreachelse}else{/foreach}'); - $this->assertEquals("011223344556677889910", $this->smarty->fetch($tpl)); - } - public function testForeachIndexIterationProperty() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x from=[0,1,2,3,4,5,6,7,8,9]}{$x@index}{$x@iteration}{foreachelse}else{/foreach}'); - $this->assertEquals("011223344556677889910", $this->smarty->fetch($tpl)); - } - public function testForeachFirstLast() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[0,1,2,3,4,5,6,7,8,9]}{if $smarty.foreach.foo.first}first{/if}{if $smarty.foreach.foo.last}last{/if}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("first012345678last9", $this->smarty->fetch($tpl)); - } - public function testForeachFirstLastProperty() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[0,1,2,3,4,5,6,7,8,9]}{if $x@first}first{/if}{if $x@last}last{/if}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("first012345678last9", $this->smarty->fetch($tpl)); - } - public function testForeachShowTrue() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[0,1]}{$x}{foreachelse}else{/foreach}{if $smarty.foreach.foo.show}show{else}noshow{/if}'); - $this->assertEquals("01show", $this->smarty->fetch($tpl)); - } - public function testForeachShowTrueProperty() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[0,1]}{$x}{foreachelse}else{/foreach}{if $x@show}show{else}noshow{/if}'); - $this->assertEquals("01show", $this->smarty->fetch($tpl)); - } - public function testForeachShowFalse() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[]}{$x}{foreachelse}else{/foreach}{if $smarty.foreach.foo.show}show{else} noshow{/if}'); - $this->assertEquals("else noshow", $this->smarty->fetch($tpl)); - } - public function testForeachShowFalseProperty() - { - $tpl = $this->smarty->createTemplate('eval:{foreach item=x name=foo from=[]}{$x}{foreachelse}else{/foreach}{if $x@show}show{else} noshow{/if}'); - $this->assertEquals("else noshow", $this->smarty->fetch($tpl)); - } - public function testForeachShorttags() - { - $tpl = $this->smarty->createTemplate('eval:{foreach [9,8,7,6,5,4,3,2,1,0] x y foo}{$y}{$x}{foreachelse}else{/foreach}total{$smarty.foreach.foo.total}'); - $this->assertEquals("09182736455463728190total10", $this->smarty->fetch($tpl)); - } - /** - * test {foreach $foo as $x} tag - */ - public function testNewForeach() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{foreach $foo as $x}{$x}{/foreach}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testNewForeachNotElse() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{foreach $foo as $x}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testNewForeachElse() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $tpl = $this->smarty->createTemplate('eval:{foreach $foo as $x}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("else", $this->smarty->fetch($tpl)); - } - public function testNewForeachKey() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[9,8,7,6,5,4,3,2,1,0]}{foreach $foo as $y=>$x}{$y}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("09182736455463728190", $this->smarty->fetch($tpl)); - } - public function testNewForeachKeyProperty() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[9,8,7,6,5,4,3,2,1,0]}{foreach $foo as $x}{$x@key}{$x}{foreachelse}else{/foreach}'); - $this->assertEquals("09182736455463728190", $this->smarty->fetch($tpl)); - } - /* - * test foreach and nocache - */ - public function testForeachNocacheVar1() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{foreach $foo as $x}{$x} {/foreach}'); - $tpl->assign('foo',array(1,2),true); - $this->assertFalse($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 ", $this->smarty->fetch($tpl)); - } - public function testForeachNocacheVar2() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{foreach $foo as $x}{$x} {/foreach}'); - $tpl->assign('foo',array(9,8),true); - $this->assertTrue($this->smarty->isCached($tpl)); - $this->assertEquals("9 8 ", $this->smarty->fetch($tpl)); - } - public function testForeachNocacheTag1() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{foreach $foo as $x nocache}{$x} {/foreach}'); - $tpl->assign('foo',array(1,2)); - $this->assertFalse($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 ", $this->smarty->fetch($tpl)); - } - public function testForeachNocacheTag2() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{foreach $foo as $x nocache}{$x} {/foreach}'); - $tpl->assign('foo',array(9,8)); - $this->assertTrue($this->smarty->isCached($tpl)); - $this->assertEquals("9 8 ", $this->smarty->fetch($tpl)); - } - public function testForeachCache1() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{foreach $foo as $x name=bar}{$x} {/foreach}'); - $tpl->assign('foo',array(1,2)); - $this->assertFalse($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 ", $this->smarty->fetch($tpl)); - } - public function testForeachCache2() - { - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('string:{foreach $foo as $x name=bar}{$x} {/foreach}'); - $tpl->assign('foo',array(9,8)); - $this->assertTrue($this->smarty->isCached($tpl)); - $this->assertEquals("1 2 ", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileFunctionPluginTests.php
Deleted
@@ -1,63 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of function plugins -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for function plugin tests -*/ -class CompileFunctionPluginTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test function plugin tag in template file - */ - public function testFunctionPluginFromTemplateFile() - { - $tpl = $this->smarty->createTemplate('functionplugintest.tpl', $this->smarty->tpl_vars); - $this->assertEquals("10", $this->smarty->fetch($tpl)); - } - /** - * test function plugin tag in compiled template file - */ - public function testFunctionPluginFromCompiledTemplateFile() - { - $this->smarty->force_compile = false; - $tpl = $this->smarty->createTemplate('functionplugintest.tpl', $this->smarty->tpl_vars); - $this->assertEquals("10", $this->smarty->fetch($tpl)); - } - /** - * test function plugin function definition in script - */ - public function testFunctionPluginRegisteredFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'plugintest', 'myplugintest'); - $tpl = $this->smarty->createTemplate('eval:{plugintest foo=bar}', $this->smarty->tpl_vars); - $this->assertEquals("plugin test called bar", $this->smarty->fetch($tpl)); - } - - /** - * test muiltiline tags - */ - public function testMultiLineTags() - { - $this->assertEquals("10", $this->smarty->fetch("eval:{counter\n\tstart=10}")); - } -} - function myplugintest($params, &$smarty) - { - return "plugin test called $params[foo]"; - } -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileFunctionTests.php
Deleted
@@ -1,131 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {function} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {function} tag tests -*/ -class CompileFunctionTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple function call tag - */ - public function testSimpleFunction() - { - $tpl = $this->smarty->createTemplate('test_template_function_tag1.tpl'); - $this->assertEquals("default param", $this->smarty->fetch($tpl)); - } - /** - * test simple function call tag 2 - */ - public function testSimpleFunction2() - { - $tpl = $this->smarty->createTemplate('test_template_function_tag2.tpl'); - $this->assertEquals("default param default param2", $this->smarty->fetch($tpl)); - } - /** - * test overwrite default function call tag - */ - public function testOverwriteDefaultFunction() - { - $tpl = $this->smarty->createTemplate('test_template_function_tag3.tpl'); - $this->assertEquals("overwrite param default param2", $this->smarty->fetch($tpl)); - } - /** - * test recursive function call tag - */ - public function testRecursiveFunction() - { - $tpl = $this->smarty->createTemplate('test_template_function_tag4.tpl'); - $this->assertEquals("012345", $this->smarty->fetch($tpl)); - } - /** - * test inherited function call tag - */ - public function testInheritedFunction() - { - $tpl = $this->smarty->createTemplate('test_template_function_tag5.tpl'); - $this->assertEquals("012345", $this->smarty->fetch($tpl)); - } - /** - * test function definition in include - */ - public function testDefineFunctionInclude() - { - $tpl = $this->smarty->createTemplate('test_template_function_tag6.tpl'); - $this->assertEquals("012345", $this->smarty->fetch($tpl)); - } - /** - * test external function definition - */ - public function testExternalDefinedFunction() - { - $tpl = $this->smarty->createTemplate('eval:{include file=\'template_function_lib.tpl\'}{call name=template_func1}'); - $tpl->assign('foo', 'foo'); - $this->assertContains('foo foo', $this->smarty->fetch($tpl)); - } - /** - * test external function definition cached - */ - public function testExternalDefinedFunctionCached1() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('test_template_function.tpl'); - $tpl->assign('foo', 'foo'); - $this->assertContains('foo foo', $this->smarty->fetch($tpl)); - } - /** - * test external function definition cached 2 - */ - public function testExternalDefinedFunctionCached2() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('test_template_function.tpl'); - $this->assertTrue($this->smarty->isCached($tpl)); - $tpl->assign('foo', 'bar'); - $this->assertContains('foo bar', $this->smarty->fetch($tpl)); - } - /** - * test external function definition nocache call - */ - public function testExternalDefinedFunctionNocachedCall1() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('test_template_function_nocache_call.tpl'); - $tpl->assign('foo', 'foo'); - $this->assertContains('foo foo', $this->smarty->fetch($tpl)); - } - /** - * test external function definition nocache call 2 - */ - public function testExternalDefinedFunctionNocachedCall2() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('test_template_function_nocache_call.tpl'); - $this->assertTrue($this->smarty->isCached($tpl)); - $tpl->assign('foo', 'bar'); - $this->assertContains('bar bar', $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileIfTests.php
Deleted
@@ -1,369 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {if} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for {if} tag tests -*/ -class CompileIfTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test {if} tag - */ - public function testIf1() - { - $tpl = $this->smarty->createTemplate('eval:{if 0<1}yes{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testElseif1() - { - $tpl = $this->smarty->createTemplate('eval:{if false}false{elseif 0<1}yes{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIf2() - { - $tpl = $this->smarty->createTemplate('eval:{if 2<1}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIf3() - { - $tpl = $this->smarty->createTemplate('eval:{if 2<1}yes{elseif 4<5}yes1{else}no{/if}'); - $this->assertEquals("yes1", $this->smarty->fetch($tpl)); - } - public function testIf4() - { - $tpl = $this->smarty->createTemplate('eval:{if 2<1}yes{elseif 6<5}yes1{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfTrue() - { - $tpl = $this->smarty->createTemplate('eval:{if true}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfFalse() - { - $tpl = $this->smarty->createTemplate('eval:{if false}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfNot1() - { - $tpl = $this->smarty->createTemplate('eval:{if !(1<2)}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfNot2() - { - $tpl = $this->smarty->createTemplate('eval:{if not (true)}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfEQ1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 == 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfEQ2() - { - $tpl = $this->smarty->createTemplate('eval:{if 1==1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfEQ3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 EQ 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfEQ4() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 eq 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIdentity1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=true}{if $foo===true}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIdentity2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=true}{if $foo === true}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfNotIdentity1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=true}{if $foo!==true}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfNotIdentity2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=true}{if $foo !== true}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfGT1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfGT2() - { - $tpl = $this->smarty->createTemplate('eval:{if 0>1}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfGT3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 GT 0}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfGT4() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 gt 1}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfGE1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 >= 0}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfGE2() - { - $tpl = $this->smarty->createTemplate('eval:{if 1>=1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfGE3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 GE 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfGE4() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 ge 1}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfLT1() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 < 0}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfLT2() - { - $tpl = $this->smarty->createTemplate('eval:{if 0<1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfLT3() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 LT 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfLT4() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 lt 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfLE1() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 <= 0}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfLE2() - { - $tpl = $this->smarty->createTemplate('eval:{if 0<=1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfLE3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 LE 0}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfLE4() - { - $tpl = $this->smarty->createTemplate('eval:{if 0 le 1}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfNE1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 != 1}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfNE2() - { - $tpl = $this->smarty->createTemplate('eval:{if 1!=2}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfNE3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 NE 1}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfNE4() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 ne 2}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIdent1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 === "1"}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfIdent2() - { - $tpl = $this->smarty->createTemplate('eval:{if "1" === "1"}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfAnd1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0 && 5 < 6}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfAnd2() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0&&5 < 6}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfAnd3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0 AND 5 > 6}}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfAnd4() - { - $tpl = $this->smarty->createTemplate('eval:{if (1 > 0) and (5 < 6)}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfOr1() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0 || 7 < 6}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfOr2() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0||5 < 6}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfOr3() - { - $tpl = $this->smarty->createTemplate('eval:{if 1 > 0 OR 5 > 6}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfOr4() - { - $tpl = $this->smarty->createTemplate('eval:{if (0 > 0) or (9 < 6)}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfAndOR4() - { - $tpl = $this->smarty->createTemplate('eval:{if ((7>8)||(1 > 0)) and (5 < 6)}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIsDivBy() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is div by 3}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIsNotDivBy() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is not div by 3}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfIsEven() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is even}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIsNotEven() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is not even}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfIsOdd() - { - $tpl = $this->smarty->createTemplate('eval:{if 3 is odd}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIsNotOdd() - { - $tpl = $this->smarty->createTemplate('eval:{if 3 is not odd}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfIsOddBy() - { - $tpl = $this->smarty->createTemplate('eval:{if 3 is odd by 3}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIsNotOddBy() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is odd by 3}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfIsEvenBy() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is even by 3}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfIsNotEvenBy() - { - $tpl = $this->smarty->createTemplate('eval:{if 6 is not even by 3}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfFunc1() - { - $this->smarty->security_policy->php_functions = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{if strlen("hello world") == 11}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfFunc2() - { - $this->smarty->security_policy->php_functions = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{if 3 ge strlen("foo")}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfFunc3() - { - $this->smarty->security_policy->php_functions = array('isset'); - $tpl = $this->smarty->createTemplate('eval:{if isset($foo)}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfFunc4() - { - $this->smarty->security_policy->php_functions = array('isset'); - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=1}{if isset($foo)}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfStatement1() - { - $tpl = $this->smarty->createTemplate('eval:{if $x=true}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfStatement2() - { - $tpl = $this->smarty->createTemplate('eval:{if $x=false}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfVariable1() - { - $tpl = $this->smarty->createTemplate('eval:{$x=1}{if $x}yes{else}no{/if}'); - $this->assertEquals("yes", $this->smarty->fetch($tpl)); - } - public function testIfVariable2() - { - $tpl = $this->smarty->createTemplate('eval:{$x=0}{if $x}yes{else}no{/if}'); - $this->assertEquals("no", $this->smarty->fetch($tpl)); - } - public function testIfVariableInc1() - { - $tpl = $this->smarty->createTemplate('eval:{$x=0}{if $x++}yes{else}no{/if} {$x}'); - $this->assertEquals("no 1", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileIncludePhpTests.php
Deleted
@@ -1,55 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of the {include_php} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {include_php} tests -*/ -class CompileIncludePHPTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - $this->smartyBC->force_compile = true; - } - - public static function isRunnable() - { - return true; - } - - /** - * test include_php string file_name function - */ - public function testIncludePhpStringFileName() - { - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:start {include_php file='scripts/test_include_php.php'} end"); - $result= $this->smartyBC->fetch($tpl); - $this->assertContains("test include php", $result); - } - /** - * test include_php string file_name function - */ - public function testIncludePhpVariableFileName() - { - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate('eval:start {include_php file=$filename once=false} end'); - $tpl->assign('filename','scripts/test_include_php.php'); - $result= $this->smartyBC->fetch($tpl); - $this->assertContains("test include php", $result); - } - public function testIncludePhpVariableFileNameShortag() - { - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate('eval:start {include_php $filename once=false} end'); - $tpl->assign('filename','scripts/test_include_php.php'); - $result= $this->smartyBC->fetch($tpl); - $this->assertContains("test include php", $result); - } -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileIncludeTests.php
Deleted
@@ -1,133 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of the {include} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for {include} tests -*/ -class CompileIncludeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - } - - public static function isRunnable() - { - return true; - } - - /** - * test standard output - */ - public function testIncludeStandard() - { - $tpl = $this->smarty->createTemplate('eval:{include file="helloworld.tpl"}'); - $content = $this->smarty->fetch($tpl); - $this->assertEquals("hello world", $content); - } - /** - * Test that assign attribute does not create standard output - */ - public function testIncludeAssign1() - { - $tpl = $this->smarty->createTemplate('eval:{include file="helloworld.tpl" assign=foo}'); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } - /** - * Test that assign attribute does load variable - */ - public function testIncludeAssign2() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=bar}{include file="helloworld.tpl" assign=foo}{$foo}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * Test passing local vars - */ - public function testIncludePassVars() - { - $tpl = $this->smarty->createTemplate("eval:{include file='eval:{\$myvar1}{\$myvar2}' myvar1=1 myvar2=2}"); - $this->assertEquals("12", $this->smarty->fetch($tpl)); - } - /** - * Test local scope - */ - public function testIncludeLocalScope() - { - $this->smarty->assign('foo',1); - $tpl = $this->smarty->createTemplate('eval: befor include {$foo} {include file=\'eval:{$foo=2} in include {$foo}\'} after include {$foo}', null, null, $this->smarty); - $content = $this->smarty->fetch($tpl); - $this->assertContains('befor include 1', $content); - $this->assertContains('in include 2', $content); - $this->assertContains('after include 1', $content); - } - /** - * Test parent scope - */ - public function testIncludeParentScope() - { - $this->smarty->assign('foo',1); - $tpl = $this->smarty->createTemplate('eval: befor include {$foo} {include file=\'eval:{$foo=2} in include {$foo}\' scope = parent} after include {$foo}', null, null, $this->smarty); - $content = $this->smarty->fetch($tpl); - $content2 = $this->smarty->fetch('eval: root value {$foo}' ); - $this->assertContains('befor include 1', $content); - $this->assertContains('in include 2', $content); - $this->assertContains('after include 2', $content); - $this->assertContains('root value 1', $content2); - } - /** - * Test root scope - */ - public function testIncludeRootScope() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smarty->assign('foo',1); - $tpl = $this->smarty->createTemplate('eval: befor include {$foo} {include file=\'eval:{$foo=2} in include {$foo}\' scope = root} after include {$foo}'); - $content = $this->smarty->fetch($tpl); - $content2 = $this->smarty->fetch('eval: smarty value {$foo}' ); - $this->assertNotContains('befor include 1', $content); - $this->assertContains('in include 2', $content); - $this->assertContains('after include 2', $content); - $this->assertContains('smarty value 1', $content2); - } - /** - * Test root scope - */ - public function testIncludeRootScope2() - { - $this->smarty->assign('foo',1); - $tpl = $this->smarty->createTemplate('eval: befor include {$foo} {include file=\'eval:{$foo=2} in include {$foo}\' scope = root} after include {$foo}', null, null, $this->smarty); - $content = $this->smarty->fetch($tpl); - $content2 = $this->smarty->fetch('eval: smarty value {$foo}' ); - $this->assertContains('befor include 1', $content); - $this->assertContains('in include 2', $content); - $this->assertContains('after include 1', $content); - $this->assertContains('smarty value 2', $content2); - } - /** - * Test recursive includes - */ - public function testRecursiveIncludes1() - { - $this->smarty->assign('foo',1); - $this->smarty->assign('bar','bar'); - $content = $this->smarty->fetch('test_recursive_includes.tpl'); - $this->assertContains("before 1 bar<br>\nbefore 2 bar<br>\nbefore 3 bar<br>\nafter 3 bar<br>\nafter 2 bar<br>\nafter 1 bar<br>", $content); - } - public function testRecursiveIncludes2() - { - $this->smarty->assign('foo',1); - $this->smarty->assign('bar','bar'); - $content = $this->smarty->fetch('test_recursive_includes2.tpl'); - $this->assertContains("before 1 bar<br>\nbefore 3 bar<br>\nbefore 5 bar<br>\nafter 5 bar<br>\nafter 3 bar<br>\nafter 1 bar<br>", $content); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileInsertTests.php
Deleted
@@ -1,165 +0,0 @@ -<?php -/** - * Smarty PHPunit tests compilation of the {insert} tag - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for {insert} tests - */ -class CompileInsertTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - } - - public static function isRunnable() - { - return true; - } - - /** - * test inserted function - */ - public function testInsertFunctionSingle() - { - $tpl = $this->smarty->createTemplate("eval:start {insert name='test' foo='bar'} end"); - $this->assertEquals("start insert function parameter value bar end", $this->smarty->fetch($tpl)); - } - public function testInsertFunctionDouble() - { - $tpl = $this->smarty->createTemplate("eval:start {insert name=\"test\" foo='bar'} end"); - $this->assertEquals("start insert function parameter value bar end", $this->smarty->fetch($tpl)); - } - public function testInsertFunctionVariableName() - { - $tpl = $this->smarty->createTemplate("eval:start {insert name=\$variable foo='bar'} end"); - $tpl->assign('variable', 'test'); - $this->assertEquals("start insert function parameter value bar end", $this->smarty->fetch($tpl)); - } - /** - * test insert plugin - */ - public function testInsertPlugin() - { - global $insertglobal; - $insertglobal = 'global'; - $tpl = $this->smarty->createTemplate('insertplugintest.tpl'); - $tpl->assign('foo', 'bar'); - $this->assertEquals('param foo bar globalvar global', $this->smarty->fetch($tpl)); - } - /** - * test insert plugin caching - */ - public function testInsertPluginCaching1() - { - global $insertglobal; - $insertglobal = 'global'; - $this->smarty->caching = true; - $tpl = $this->smarty->createTemplate('insertplugintest.tpl'); - $tpl->assign('foo', 'bar'); - $this->assertEquals('param foo bar globalvar global', $this->smarty->fetch($tpl)); - } - public function testInsertPluginCaching2() - { - global $insertglobal; - $insertglobal = 'changed global 2'; - $this->smarty->caching = 1; - $tpl = $this->smarty->createTemplate('insertplugintest.tpl'); - $tpl->assign('foo', 'buh'); - $this->assertTrue($tpl->isCached()); - $this->assertEquals('param foo bar globalvar changed global 2', $this->smarty->fetch($tpl)); - } - public function testInsertPluginCaching3() - { - global $insertglobal; - $insertglobal = 'changed global'; - $this->smarty->caching = 1; - $this->smarty->force_compile = true; - $this->smarty->assign('foo', 'bar',true); - $this->assertEquals('param foo bar globalvar changed global', $this->smarty->fetch('insertplugintest.tpl')); - } - public function testInsertPluginCaching4() - { - global $insertglobal; - if (false) { //disabled - $insertglobal = 'changed global 4'; - $this->smarty->caching = 1; - $this->smarty->assign('foo', 'buh',true); - $this->assertTrue($this->smarty->isCached('insertplugintest.tpl')); - $this->assertEquals('param foo buh globalvar changed global 4', $this->smarty->fetch('insertplugintest.tpl')); - } - } - /** - * test inserted function with assign - */ - public function testInsertFunctionAssign() - { - $tpl = $this->smarty->createTemplate("eval:start {insert name='test' foo='bar' assign=blar} end {\$blar}"); - $this->assertEquals("start end insert function parameter value bar", $this->smarty->fetch($tpl)); - } - /** - * test insertfunction with assign no output - */ - public function testInsertFunctionAssignNoOutput() - { - $tpl = $this->smarty->createTemplate("eval:start {insert name='test' foo='bar' assign=blar} end"); - $this->assertEquals("start end", $this->smarty->fetch($tpl)); - } - /** - * test insert plugin with assign - */ - public function testInsertPluginAssign() - { - global $insertglobal; - $insertglobal = 'global'; - $tpl = $this->smarty->createTemplate("eval:start {insert name='insertplugintest' foo='bar' assign=blar} end {\$blar}"); - $tpl->assign('foo', 'bar'); - $this->assertEquals('start end param foo bar globalvar global', $this->smarty->fetch($tpl)); - } - - /** - * test inserted function none existing function - */ - public function testInsertFunctionNoneExistingFunction() - { - $tpl = $this->smarty->createTemplate("eval:start {insert name='mustfail' foo='bar' assign=blar} end {\$blar}"); - try { - $this->smarty->fetch($tpl); - } - catch (Exception $e) { - $this->assertContains(htmlentities("{insert} no function or plugin found for 'mustfail'"), $e->getMessage()); - return; - } - $this->fail('Exception for "function is not callable" has not been raised.'); - } - /** - * test inserted function none existing script - */ - public function testInsertFunctionNoneExistingScript() - { - $tpl = $this->smarty->createTemplate("eval:{insert name='mustfail' foo='bar' script='nofile.php'}"); - try { - $this->smarty->fetch($tpl); - } - catch (Exception $e) { - $this->assertContains(htmlentities('missing script file'), $e->getMessage()); - return; - } - $this->fail('Exception for "missing file" has not been raised.'); - } -} - -/** - * test function - */ -function insert_test($params) -{ - return "insert function parameter value $params[foo]"; -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileNocacheTests.php
Deleted
@@ -1,67 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {nocache} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {nocache} tag tests -*/ -class CompileNocacheTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test nocache tag caching disabled - */ - public function testNocacheCachingNo() - { - $this->smarty->caching = 0; - $this->smarty->assign('foo', 0); - $this->smarty->assign('bar', 'A'); - $content = $this->smarty->fetch('test_nocache_tag.tpl'); - $this->assertContains("root 2A", $content); - $this->assertContains("include 4A", $content); - $this->smarty->assign('foo', 2); - $this->smarty->assign('bar', 'B'); - $content = $this->smarty->fetch('test_nocache_tag.tpl'); - $this->assertContains("root 4B", $content); - $this->assertContains("include 6B", $content); - } - /** - * test nocache tag caching enabled - */ - public function testNocacheCachingYes1() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 5; - $this->smarty->assign('foo', 0); - $this->smarty->assign('bar', 'A'); - $content = $this->smarty->fetch('test_nocache_tag.tpl'); - $this->assertContains("root 2A", $content); - $this->assertContains("include 4A", $content); - } - public function testNocacheCachingYes2() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 5; - - $this->smarty->assign('foo', 2); - $this->smarty->assign('bar', 'B'); - $content = $this->smarty->fetch('test_nocache_tag.tpl'); - $this->assertContains("root 4A", $content); - $this->assertContains("include 6A", $content); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompilePhpTests.php
Deleted
@@ -1,423 +0,0 @@ -<?php -/** - * Smarty PHPunit tests compilation of {php} and <?php...?> tag - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for {php} and <?php...?> tag tests - */ -class CompilePhpTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - $this->smartyBC->disableSecurity(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test <?php...\> tag - * default is PASSTHRU - */ - public function testPhpTag() - { - $tpl = $this->smartyBC->createTemplate("eval:<?php echo 'hello world'; ?>"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("<?php echo 'hello world'; ?>", $content); - } - // ALLOW - public function testPhpTagAllow() - { - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:<?php echo 'hello world'; ?>"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals('hello world', $content); - } - /** - * test <?=...\> shorttag - * default is PASSTHRU - */ - public function testShortTag() - { - $this->smartyBC->assign('foo', 'bar'); - $content = $this->smartyBC->fetch('eval:<?=$foo?>'); - $this->assertEquals('<?=$foo?>', $content); - } - - public function testEndTagInStrings1() - { - $str = <<< STR -<?php -\$a = Array("?>" => 3 ); -\$b = Array("?>" => "?>"); -\$c = Array("a" => Array("b" => 7)); -class d_class { - public \$d_attr = 8; -} -\$d = new d_class(); -\$e = Array("f" => \$d); - -// '" -# '" - -echo '{\$a["?>"]}'; -echo "{\$a['?>']}"; -echo '{\$a["{\$b["?>"]}"]}'; -echo "{\$c['a']['b']}"; -echo "a{\$e['f']->d_attr}a" -?> -STR; - - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals('{$a["?>"]}3{$a["{$b["?>"]}"]}7a8a', $content); - } - - public function testEndTagInStrings2() - { - $str = <<< STR -<?php -\$a = Array("?>" => 3 ); -\$b = Array("?>" => "?>"); - -echo "{\$a["?>"]}"; -echo "{\$a["{\$b["?>"]}"]}"; -?> -STR; - - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals('33', $content); - } - - public function testEndTagInStrings3() - { - $str = <<< STR -<?php -echo 'a?>a'; -echo '?>\\\\'; -echo '\\\\\\'?>a'; -echo '/*'; // */ -echo 1+1; -?> -STR; - - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals('a?>a?>\\\\\'?>a/*2', $content); - } - - public function testEndTagInStrings4() - { - $str = <<< STR -<?php -echo "a?>a"; -echo "?>\\\\"; -echo "\\"?>"; -echo "\\\\\\"?>a"; -echo "/*"; -echo 1+1; -?> -STR; - - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals('a?>a?>\\"?>\\"?>a/*2', $content); - } - - public function testEndTagInHEREDOC() - { - $str = <<< STR -<?php -echo <<< LALA - LALA - ?> - - "! ?> /* - LALA -LALA ; -LALA;1+1; -LALA; -echo <<<LALA2 -LALA2;1+1; -LALA2 -; -?> -STR; - // " Fix emacs highlighting which chokes on preceding open quote - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(" LALA\n ?>\n\n \"! ?> /*\n LALA\nLALA ;\nLALA;1+1;LALA2;1+1;", str_replace("\r", '', $content)); - } - - public function testEmbeddingsInHEREDOC1() - { - $str = <<< STR -<?php -\$a = Array("EOT?>'" => 1); - -echo <<< EOT -{\$a["EOT?>'"]} -EOT; -?> -STR; - // ' Fix emacs highlighting which chokes on preceding open quote - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("1", $content); - } - - public function testEmbeddingsInHEREDOC2() - { - $str = <<< STR -<?php -\$a = Array("\nEOT\n?>'" => 1); - -echo <<< EOT -{\$a[<<<EOT2 - -EOT -?>' -EOT2 -]} -EOT -; -?> -STR; - // ' Fix emacs highlighting which chokes on preceding open quote - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - /* Disabled due to bug in PHP easiest illustrated by: - http://bugs.php.net/bug.php?id=50654 - -<?php -$a = Array("b" => 1); - -echo <<<ZZ -{$a[<<<B -b -B -]} -ZZ; -?> - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->security = false; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("11", $content); -*/ - } - - public function testEmbeddedHEREDOC() - { - $str = <<< STR -<?php -\$a = Array("4\"" => 3); -\$b = Array("aa\"?>" => 4); - -echo "{\$a[<<<EOT -{\$b["aa\"?>"]}" -EOT - ]}"; -?> -STR; - // " Fix emacs highlighting which chokes on preceding open quote - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("3", $content); - } - - public function testEmbeddedNOWDOC() - { - $str = <<< STR -<?php -\$a = Array("aa\"?>" => 3); - -echo "{\$a[<<<'EOT' -aa"?> -EOT - ]}"; -?> -STR; - // " Fix emacs highlighting which chokes on preceding open quote - $this->smartyBC->left_delimiter = '{{'; - $this->smartyBC->right_delimiter = '}}'; - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - if (version_compare(PHP_VERSION, '5.3.0') < 0) { - return; - } - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("3", $content); - } - - public function testEndTagInNOWDOC() - { - $str = <<< STR -<?php -echo <<< 'LALA' -aa ?> bb -LALA; -echo <<<'LALA2' -LALA2;1+1;?> -LALA2 -; -?> -STR; - - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - if (version_compare(PHP_VERSION, '5.3.0') < 0) { - return; - } - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("aa ?> bbLALA2;1+1;?>", $content); - } - - public function testNewlineHEREDOC() - { - $sprintf_str = "<?php echo <<<STR%sa%1\$sSTR;%1\$s?>"; - foreach (Array("\n", "\r\n") as $newline_chars) { - $str = sprintf($sprintf_str, $newline_chars); - - $this->smartyBC->php_handling = Smarty::PHP_PASSTHRU; - $this->smartyBC->enableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - // For some reason $content doesn't preserve newline format. Not a big problem, I think. - $this->assertEquals(preg_replace("/\r\n/", "\n", $str), - preg_replace("/\r\n/", "\n", $content) - ); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("a", $content); - } - } - - public function testNewlineNOWDOC() - { - $sprintf_str = "<?php echo <<<'STR'%sa%1\$sSTR;%1\$s?>"; - foreach (Array("\n", "\r\n") as $newline_chars) { - $str = sprintf($sprintf_str, $newline_chars); - - $this->smartyBC->php_handling = Smarty::PHP_PASSTHRU; - $this->smartyBC->enableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - // For some reason $content doesn't preserve newline format. Not a big problem, I think. - $this->assertEquals(preg_replace("/\r\n/", "\n", $str), - preg_replace("/\r\n/", "\n", $content) - ); - - if (version_compare(PHP_VERSION, '5.3.0') >= 0) { - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals("a", $content); - } - } - } - - public function testEndTagInComment() - { - $str = <<< STR -<?php - -/* -d?>dd "' <<< EOT -*/ -echo 1+1; -?> -STR; - - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals(str_replace("\r", '', $str), str_replace("\r", '', $content)); - - $this->smartyBC->php_handling = Smarty::PHP_ALLOW; - $this->smartyBC->disableSecurity(); - $tpl = $this->smartyBC->createTemplate("eval:$str"); - $content = $this->smartyBC->fetch($tpl); - $this->assertEquals('2', $content); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileRegisteredObjectFunctionTests.php
Deleted
@@ -1,79 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of registered object functions -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for registered object function tests -*/ -class CompileRegisteredObjectFunctionTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - $this->smarty->disableSecurity(); - $this->object = new RegObject; - $this->smarty->registerObject('objecttest', $this->object, 'myhello', true, 'myblock'); - } - - public static function isRunnable() - { - return true; - } - - /** - * test resgistered object as function - */ - public function testRegisteredObjectFunction() - { - $tpl = $this->smarty->createTemplate('eval:{objecttest->myhello}'); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } - /** - * test resgistered object as function with modifier - */ - public function testRegisteredObjectFunctionModifier() - { - $tpl = $this->smarty->createTemplate('eval:{objecttest->myhello|truncate:6}'); - $this->assertEquals('hel...', $this->smarty->fetch($tpl)); - } - - /** - * test resgistered object as block function - */ - public function testRegisteredObjectBlockFunction() - { - $tpl = $this->smarty->createTemplate('eval:{objecttest->myblock}hello world{/objecttest->myblock}'); - $this->assertEquals('block test', $this->smarty->fetch($tpl)); - } - public function testRegisteredObjectBlockFunctionModifier1() - { - $tpl = $this->smarty->createTemplate('eval:{objecttest->myblock}hello world{/objecttest->myblock|strtoupper}'); - $this->assertEquals(strtoupper('block test'), $this->smarty->fetch($tpl)); - } - public function testRegisteredObjectBlockFunctionModifier2() - { - $tpl = $this->smarty->createTemplate('eval:{objecttest->myblock}hello world{/objecttest->myblock|default:""|strtoupper}'); - $this->assertEquals(strtoupper('block test'), $this->smarty->fetch($tpl)); - } -} - -Class RegObject { - function myhello($params) - { - return 'hello world'; - } - function myblock($params, $content, &$smarty_tpl, &$repeat) - { - if (isset($content)) { - $output = str_replace('hello world', 'block test', $content); - return $output; - } - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileSectionTests.php
Deleted
@@ -1,61 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {section} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for {section} tag tests -*/ -class CompileSectionTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test {section} tag - */ - public function testSection1() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{section name=bar loop=$foo}{$foo[bar]}{/section}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testSection2() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{section name=bar loop=$foo}{$foo[bar]}{sectionelse}else{/section}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testSection3() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $tpl = $this->smarty->createTemplate('eval:{section name=bar loop=$foo}{$foo[bar]}{sectionelse}else{/section}'); - $this->assertEquals("else", $this->smarty->fetch($tpl)); - } - public function testSection4() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{section name=bar loop=$foo}{$foo[bar]}{sectionelse}else{/section}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - public function testSection6() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{section name=bar loop=$foo}{$foo[bar]}{sectionelse}else{/section}total{$smarty.section.bar.total}'); - $this->assertEquals("0123456789total10", $this->smarty->fetch($tpl)); - } - public function testSection7() - { - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value=[0,1,2,3,4,5,6,7,8,9]}{section name=bar loop=$foo}{$smarty.section.bar.index}{$smarty.section.bar.iteration}{sectionelse}else{/section}'); - $this->assertEquals("011223344556677889910", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileSetfilterTests.php
Deleted
@@ -1,34 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {setfilter} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {setfilter} tag tests -*/ -class CompileSetfilterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test nested setfilter - */ - public function testNestedSetfilter() - { - $tpl = $this->smarty->createTemplate('eval:{$foo}{setfilter htmlspecialchars} {$foo}{setfilter escape:"mail"} {$foo}{/setfilter} {$foo}{/setfilter} {$foo}'); - $tpl->assign('foo','<a@b.c>'); - $this->assertEquals("<a@b.c> <a@b.c> <a [AT] b [DOT] c> <a@b.c> <a@b.c>", $this->smarty->fetch($tpl)); - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileStripTests.php
Deleted
@@ -1,34 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of strip tags -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for strip tags tests -*/ -class CompileStripTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test strip tag - */ - public function testStrip() - { - $tpl = $this->smarty->createTemplate("eval:{strip}<table>\n </table>{/strip}"); - $this->assertEquals('<table></table>', $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompileWhileTests.php
Deleted
@@ -1,43 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compilation of {while} tag -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for {while} tag tests -*/ -class CompileWhileTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test {while 'condition'} tag - */ - public function testWhileCondition() - { - $tpl = $this->smarty->createTemplate('eval:{$x=0}{while $x<10}{$x}{$x=$x+1}{/while}'); - $this->assertEquals("0123456789", $this->smarty->fetch($tpl)); - } - - /** - * test {while 'statement'} tag - */ - public function testWhileStatement() - { - $tpl = $this->smarty->createTemplate('eval:{$y=5}{while $y=$y-1}{$y}{/while}'); - $this->assertEquals("4321", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CompilerPluginTests.php
Deleted
@@ -1,35 +0,0 @@ -<?php -/** -* Smarty PHPunit tests compiler plugin -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for compiler plugin tests -*/ -class CompilerPluginTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - - /** - * test compiler plugin - */ - public function testCompilerPlugin() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('test output', $this->smarty->fetch('eval:{test data="test output"}{/test}')); - } - -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ConfigVarTests.php
Deleted
@@ -1,373 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of config variables -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for config variable tests -*/ -class ConfigVarTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test config varibales loading all sections - */ - public function testConfigNumber() - { - $this->smarty->configLoad('test.conf'); - $this->assertEquals("123.4", $this->smarty->fetch('eval:{#Number#}')); - } - public function testConfigText() - { - $this->smarty->configLoad('test.conf'); - $this->assertEquals("123bvc", $this->smarty->fetch('eval:{#text#}')); - } - public function testConfigLine() - { - $this->smarty->configLoad('test.conf'); - $this->assertEquals("123 This is a line", $this->smarty->fetch('eval:{#line#}')); - } - public function testConfigVariableGlobalSections() - { - $this->smarty->configLoad('test.conf'); - $this->assertEquals("Welcome to Smarty! Global Section1 Global Section2", $this->smarty->fetch('eval:{#title#} {#sec1#} {#sec2#}')); - } - /** - * test config variables loading section2 - */ - public function testConfigVariableSection2() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smarty->configLoad('test.conf', 'section2'); - $this->assertEquals("Welcome to Smarty! Global Section1 Hello Section2", $this->smarty->fetch('eval:{#title#} {#sec1#} {#sec2#}')); - } - /** - * test config variables loading section special char - */ - public function testConfigVariableSectionSpecialChar() - { - $this->smarty->configLoad('test.conf', '/'); - $this->assertEquals("Welcome to Smarty! special char", $this->smarty->fetch('eval:{#title#} {#sec#}')); - } - /** - * test config variables loading section foo/bar - */ - public function testConfigVariableSectionFooBar() - { - $this->smarty->configLoad('test.conf', 'foo/bar'); - $this->assertEquals("Welcome to Smarty! section foo/bar", $this->smarty->fetch('eval:{#title#} {#sec#}')); - } - /** - * test config variables loading indifferent scopes - */ - public function testConfigVariableScope() - { - $this->smarty->configLoad('test.conf', 'section2'); - $tpl = $this->smarty->createTemplate('eval:{#title#} {#sec1#} {#sec2#}'); - $tpl->configLoad('test.conf', 'section1'); - $this->assertEquals("Welcome to Smarty! Global Section1 Hello Section2", $this->smarty->fetch('eval:{#title#} {#sec1#} {#sec2#}')); - $this->assertEquals("Welcome to Smarty! Hello Section1 Global Section2", $this->smarty->fetch($tpl)); - } - /** - * test config variables loading section2 from template - */ - public function testConfigVariableSection2Template() - { - $this->assertEquals("Welcome to Smarty! Global Section1 Hello Section2", $this->smarty->fetch('eval:{config_load file=\'test.conf\' section=\'section2\'}{#title#} {#sec1#} {#sec2#}')); - } - public function testConfigVariableSection2TemplateShorttags() - { - $this->assertEquals("Welcome to Smarty! Global Section1 Hello Section2", $this->smarty->fetch('eval:{config_load \'test.conf\' \'section2\'}{#title#} {#sec1#} {#sec2#}')); - } - /** - * test config varibales loading local - */ - public function testConfigVariableLocal() - { - $this->assertEquals("Welcome to Smarty!", $this->smarty->fetch('eval:{config_load file=\'test.conf\' scope=\'local\'}{#title#}')); - // global must be empty - $this->assertEquals("", $this->smarty->getConfigVars('title')); - } - /** - * test config varibales loading parent - */ - public function testConfigVariableParent() - { - $this->assertEquals("Welcome to Smarty!", $this->smarty->fetch('eval:{config_load file=\'test.conf\' scope=\'parent\'}{#title#}')); - // global is parent must not be empty - $this->assertEquals("Welcome to Smarty!", $this->smarty->getConfigVars('title')); - } - /** - * test config varibales loading global - */ - public function testConfigVariableGlobal() - { - $this->assertEquals("Welcome to Smarty!", $this->smarty->fetch('eval:{config_load file=\'test.conf\' scope=\'global\'}{#title#}')); - // global is parent must not be empty - $this->assertEquals("Welcome to Smarty!", $this->smarty->getConfigVars('title')); - } - /** - * test config variables of hidden sections - * shall display variables from hidden section - */ - public function testConfigVariableHidden() - { - $this->smarty->config_read_hidden = true; - $this->smarty->configLoad('test.conf','hidden'); - $this->assertEquals("Welcome to Smarty!Hidden Section", $this->smarty->fetch('eval:{#title#}{#hiddentext#}')); - } - /** - * test config variables of disabled hidden sections - * shall display not variables from hidden section - */ - public function testConfigVariableHiddenDisable() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $this->smarty->config_read_hidden = false; - $this->smarty->configLoad('test.conf','hidden'); - $this->assertEquals("Welcome to Smarty!", $this->smarty->fetch('eval:{#title#}{#hiddentext#}')); - } - /** - * test config varibales loading all sections from template - */ - public function testConfigVariableAllSectionsTemplate() - { - $this->smarty->config_overwrite = true; - $this->assertEquals("Welcome to Smarty! Global Section1 Global Section2", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{#title#} {#sec1#} {#sec2#}')); - } - /** - * test config varibales overwrite - */ - public function testConfigVariableOverwrite() - { - $this->assertEquals("Overwrite2", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{#overwrite#}')); - } - public function testConfigVariableOverwrite2() - { - $this->assertEquals("Overwrite3", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{config_load file=\'test2.conf\'}{#overwrite#}')); - } - /** - * test config varibales overwrite false - */ - public function testConfigVariableOverwriteFalse() - { - $this->smarty->config_overwrite = false; - $this->assertEquals("Overwrite1Overwrite2Overwrite3Welcome to Smarty! Global Section1 Global Section2", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{config_load file=\'test2.conf\'}{foreach #overwrite# as $over}{$over}{/foreach}{#title#} {#sec1#} {#sec2#}')); - } - /** - * test config varibales array - */ - public function testConfigVariableArray1() - { - $this->smarty->config_overwrite = false; - $this->smarty->assign('foo',1); - $this->assertEquals("Overwrite2", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{config_load file=\'test2.conf\'}{$smarty.config.overwrite[$foo]}')); - } - public function testConfigVariableArray2() - { - $this->smarty->config_overwrite = false; - $this->smarty->assign('foo',2); - $this->assertEquals("Overwrite3", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{config_load file=\'test2.conf\'}{#overwrite#.$foo}')); - } - /** - * test config varibales booleanize on - */ - public function testConfigVariableBooleanizeOn() - { - $this->smarty->config_booleanize = true; - $this->assertEquals("passed", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{if #booleanon# === true}passed{/if}')); - } - /** - * test config varibales booleanize off - */ - public function testConfigVariableBooleanizeOff() - { - $this->smarty->config_booleanize = false; - $this->assertEquals("passed", $this->smarty->fetch('eval:{config_load file=\'test.conf\'}{if #booleanon# == \'on\'}passed{/if}')); - } - /** - * test config file syntax error - */ - public function testConfigSyntaxError() - { - try { - $this->smarty->fetch('eval:{config_load file=\'test_error.conf\'}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Syntax error in config file'), $e->getMessage()); - return; - } - $this->fail('Exception for syntax errors in config files has not been raised.'); - } - /** - * test getConfigVars - */ - public function testConfigGetSingleConfigVar() - { - $this->smarty->configLoad('test.conf'); - $this->assertEquals("Welcome to Smarty!", $this->smarty->getConfigVars('title')); - } - /** - * test getConfigVars return all variables - */ - public function testConfigGetAllConfigVars() - { - $this->smarty->configLoad('test.conf'); - $vars = $this->smarty->getConfigVars(); - $this->assertTrue(is_array($vars)); - $this->assertEquals("Welcome to Smarty!", $vars['title']); - $this->assertEquals("Global Section1", $vars['sec1']); - } - /** - * test clearConfig for single variable - */ - public function testConfigClearSingleConfigVar() - { - $this->smarty->configLoad('test.conf'); - $this->smarty->clearConfig('title'); - $this->assertEquals("", $this->smarty->getConfigVars('title')); - } - /** - * test clearConfig for all variables - */ - public function testConfigClearConfigAll() - { - $this->smarty->configLoad('test.conf'); - $this->smarty->clearConfig(); - $vars = $this->smarty->getConfigVars(); - $this->assertTrue(is_array($vars)); - $this->assertTrue(empty($vars)); - } - /** - * test config vars on data object - */ - public function testConfigTextData() - { - $data = $this->smarty->createData(); - $data->configLoad('test.conf'); - $this->assertEquals("123bvc", $this->smarty->fetch('eval:{#text#}', $data)); - } - /** - * test getConfigVars on data object - */ - public function testConfigGetSingleConfigVarData() - { - $data = $this->smarty->createData(); - $data->configLoad('test.conf'); - $this->assertEquals("Welcome to Smarty!", $data->getConfigVars('title')); - } - /** - * test getConfigVars return all variables on data object - */ - public function testConfigGetAllConfigVarsData() - { - $data = $this->smarty->createData(); - $data->configLoad('test.conf'); - $vars = $data->getConfigVars(); - $this->assertTrue(is_array($vars)); - $this->assertEquals("Welcome to Smarty!", $vars['title']); - $this->assertEquals("Global Section1", $vars['sec1']); - } - /** - * test clearConfig for single variable on data object - */ - public function testConfigClearSingleConfigVarData() - { - $data = $this->smarty->createData(); - $data->configLoad('test.conf'); - $data->clearConfig('title'); - $this->assertEquals("", $data->getConfigVars('title')); - $this->assertEquals("Global Section1", $data->getConfigVars('sec1')); - } - /** - * test clearConfig for all variables on data object - */ - public function testConfigClearConfigAllData() - { - $data = $this->smarty->createData(); - $data->configLoad('test.conf'); - $data->clearConfig(); - $vars = $data->getConfigVars(); - $this->assertTrue(is_array($vars)); - $this->assertTrue(empty($vars)); - } - /** - * test config vars on template object - */ - public function testConfigTextTemplate() - { - $tpl = $this->smarty->createTemplate('eval:{#text#}'); - $tpl->configLoad('test.conf'); - $this->assertEquals("123bvc", $this->smarty->fetch($tpl)); - } - /** - * test getConfigVars on template object - */ - public function testConfigGetSingleConfigVarTemplate() - { - $tpl = $this->smarty->createTemplate('eval:{#text#}'); - $tpl->configLoad('test.conf'); - $this->assertEquals("Welcome to Smarty!", $tpl->getConfigVars('title')); - } - /** - * test getConfigVars return all variables on template object - */ - public function testConfigGetAllConfigVarsTemplate() - { - $tpl = $this->smarty->createTemplate('eval:{#text#}'); - $tpl->configLoad('test.conf'); - $vars = $tpl->getConfigVars(); - $this->assertTrue(is_array($vars)); - $this->assertEquals("Welcome to Smarty!", $vars['title']); - $this->assertEquals("Global Section1", $vars['sec1']); - } - /** - * test clearConfig for single variable on template object - */ - public function testConfigClearSingleConfigVarTemplate() - { - $tpl = $this->smarty->createTemplate('eval:{#text#}'); - $tpl->configLoad('test.conf'); - $tpl->clearConfig('title'); - $this->assertEquals("", $tpl->getConfigVars('title')); - $this->assertEquals("Global Section1", $tpl->getConfigVars('sec1')); - } - /** - * test clearConfig for all variables on template object - */ - public function testConfigClearConfigAllTemplate() - { - $tpl = $this->smarty->createTemplate('eval:{#text#}'); - $tpl->configLoad('test.conf'); - $tpl->clearConfig(); - $vars = $tpl->getConfigVars(); - $this->assertTrue(is_array($vars)); - $this->assertTrue(empty($vars)); - } - - /** - * test config varibales loading from absolute file path - */ - public function testConfigAbsolutePath() - { - $file = realpath($this->smarty->getConfigDir(0) . 'test.conf'); - $this->smarty->configLoad($file); - $this->assertEquals("123.4", $this->smarty->fetch('eval:{#Number#}')); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ConstantsTests.php
Deleted
@@ -1,48 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of constants -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for constants tests -*/ -class ConstantsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test constants - */ - public function testConstants() - { - define('MYCONSTANTS','hello world'); - $tpl = $this->smarty->createTemplate('eval:{$smarty.const.MYCONSTANTS}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } -/** - public function testConstants2() - { - $tpl = $this->smarty->createTemplate('eval:{MYCONSTANTS}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testConstants3() - { - $tpl = $this->smarty->createTemplate('eval:{$x=MYCONSTANTS}{$x}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } -*/ -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CoreTests.php
Deleted
@@ -1,56 +0,0 @@ -<?php -/** -* Smarty PHPunit basic core function tests -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class core function tests -*/ -class CoreTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - - /** - * loadPlugin test unkown plugin - */ - public function testLoadPluginErrorReturn() - { - $this->assertFalse($this->smarty->loadPlugin('Smarty_Not_Known')); - } - /** - * loadPlugin test Smarty_Internal_Debug exists - */ - public function testLoadPluginSmartyInternalDebug() - { - $this->assertTrue($this->smarty->loadPlugin('Smarty_Internal_Debug') == true); - } - /** - * loadPlugin test $template_class exists - */ - public function testLoadPluginSmartyTemplateClass() - { - $this->assertTrue($this->smarty->loadPlugin($this->smarty->template_class) == true); - } - /** - * loadPlugin test loaging from plugins_dir - */ - public function testLoadPluginSmartyPluginCounter() - { - $this->assertTrue($this->smarty->loadPlugin('Smarty_Function_Counter') == true); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/CustomResourceAmbiguousTests.php
Deleted
@@ -1,112 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for File resources -* -* @package PHPunit -* @author Uwe Tews -*/ - -require_once dirname(__FILE__) . '/PHPunitplugins/resource.ambiguous.php'; - -/** -* class for file resource tests -*/ -class CustomResourceAmbiguousTests extends PHPUnit_Framework_TestCase { - public $_resource = null; - - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - - // empty the template dir - $this->smarty->setTemplateDir(array()); - - // kill cache for unit test - Smarty_Resource::$resources = array(); - $this->smarty->_resource_handlers = array(); - } - - public static function isRunnable() - { - return true; - } - - protected function relative($path) - { - $path = str_replace( dirname(__FILE__), '.', $path ); - if (DS == "\\") { - $path = str_replace( "\\", "/", $path ); - } - return $path; - } - - public function testNone() - { - $resource_handler = new Smarty_Resource_Ambiguous(dirname(__FILE__) . '/templates/ambiguous/'); - $this->smarty->registerResource('ambiguous', $resource_handler); - $this->smarty->default_resource_type = 'ambiguous'; - $this->smarty->allow_ambiguous_resources = true; - - $tpl = $this->smarty->createTemplate('foobar.tpl'); - $this->assertFalse($tpl->source->exists); - } - - public function testCase1() - { - $resource_handler = new Smarty_Resource_Ambiguous(dirname(__FILE__) . '/templates/ambiguous/'); - $this->smarty->registerResource('ambiguous', $resource_handler); - $this->smarty->default_resource_type = 'ambiguous'; - $this->smarty->allow_ambiguous_resources = true; - - $resource_handler->setSegment('case1'); - - $tpl = $this->smarty->createTemplate('foobar.tpl'); - $this->assertTrue($tpl->source->exists); - $this->assertEquals('case1', $tpl->source->content); - } - - public function testCase2() - { - $resource_handler = new Smarty_Resource_Ambiguous(dirname(__FILE__) . '/templates/ambiguous/'); - $this->smarty->registerResource('ambiguous', $resource_handler); - $this->smarty->default_resource_type = 'ambiguous'; - $this->smarty->allow_ambiguous_resources = true; - - $resource_handler->setSegment('case2'); - - $tpl = $this->smarty->createTemplate('foobar.tpl'); - $this->assertTrue($tpl->source->exists); - $this->assertEquals('case2', $tpl->source->content); - } - - public function testCaseSwitching() - { - $resource_handler = new Smarty_Resource_Ambiguous(dirname(__FILE__) . '/templates/ambiguous/'); - $this->smarty->registerResource('ambiguous', $resource_handler); - $this->smarty->default_resource_type = 'ambiguous'; - $this->smarty->allow_ambiguous_resources = true; - - $resource_handler->setSegment('case1'); - $tpl = $this->smarty->createTemplate('foobar.tpl'); - $this->assertTrue($tpl->source->exists); - $this->assertEquals('case1', $tpl->source->content); - - $resource_handler->setSegment('case2'); - $tpl = $this->smarty->createTemplate('foobar.tpl'); - $this->assertTrue($tpl->source->exists); - $this->assertEquals('case2', $tpl->source->content); - } - - /** - * final cleanup - */ - public function testFinalCleanup() - { - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - $this->smarty->allow_ambiguous_resources = false; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/DefaultConfigHandlerTests.php
Deleted
@@ -1,107 +0,0 @@ -<?php -/** -* Smarty PHPunit tests deault template handler -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for block plugin tests -*/ -class DefaultConfigHandlerTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - $this->smarty->disableSecurity(); - } - - public static function isRunnable() - { - return true; - } - - - public function testUnknownConfig() - { - try { - $this->smarty->configLoad('foo.conf'); - $this->assertEquals("123.4", $this->smarty->fetch('eval:{#Number#}')); - } - catch (Exception $e) { - $this->assertContains('Unable to read config file', $e->getMessage()); - return; - } - $this->fail('Exception for none existing config has not been raised.'); - } - - public function testRegisterNoneExistentHandlerFunction() - { - try { - $this->smarty->registerDefaultConfigHandler('foo'); - } - catch (Exception $e) { - $this->assertContains("Default config handler 'foo' not callable", $e->getMessage()); - return; - } - $this->fail('Exception for non-callable function has not been raised.'); - } - - public function testDefaultConfigHandlerReplacement() - { - $this->smarty->registerDefaultConfigHandler('my_config_handler'); - $this->smarty->configLoad('foo.conf'); - $this->assertEquals("bar", $this->smarty->fetch('eval:{#foo#}')); - } - - public function testDefaultConfigHandlerReplacementByConfigFile() - { - $this->smarty->registerDefaultConfigHandler('my_config_handler_file'); - $this->smarty->configLoad('foo.conf'); - $this->assertEquals("123.4", $this->smarty->fetch('eval:{#Number#}')); - } - - - public function testDefaultConfigHandlerReturningFalse() - { - $this->smarty->registerDefaultConfigHandler('my_config_false'); - try { - $this->smarty->configLoad('foo.conf'); - $this->assertEquals("123.4", $this->smarty->fetch('eval:{#Number#}')); - } - catch (Exception $e) { - $this->assertContains('Unable to read config file', $e->getMessage()); - return; - } - $this->fail('Exception for none existing template has not been raised.'); - } - - public function testConfigResourceDb4() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->smarty->configLoad('db4:foo.conf'); - $this->assertEquals("bar", $this->smarty->fetch('eval:{#foo#}')); - } - -} - -function my_config_handler ($resource_type, $resource_name, &$config_source, &$config_timestamp, Smarty $smarty) -{ - $output = "foo = 'bar'\n"; - $config_source = $output; - $config_timestamp = time(); - return true; -} -function my_config_handler_file ($resource_type, $resource_name, &$config_source, &$config_timestamp, Smarty $smarty) -{ - return $smarty->getConfigDir(0) . 'test.conf'; -} -function my_config_false ($resource_type, $resource_name, &$config_source, &$config_timestamp, Smarty $smarty) -{ - return false; -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/DefaultPluginHandlerTests.php
Deleted
@@ -1,146 +0,0 @@ -<?php -/** -* Smarty PHPunit tests deault plugin handler -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for plugin handler tests -*/ -class DefaultPluginHandlerTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - $this->smarty->disableSecurity(); - $this->smarty->registerDefaultPluginHandler('my_plugin_handler'); - } - - public static function isRunnable() - { - return true; - } - - public function testDefaultFunctionScript() - { - $this->assertEquals("scriptfunction foo bar", $this->smarty->fetch('test_default_function_script.tpl')); - } - public function testDefaultFunctionScriptNotCachable1() - { - $this->smarty->assign('foo','foo'); - $this->smarty->caching = 1; - $this->assertEquals("scriptfunction foo", $this->smarty->fetch('test_default_function_script_notcachable.tpl')); - } - public function testDefaultFunctionScriptNotCachable2() - { - $this->smarty->assign('foo','bar'); - $this->smarty->caching = 1; - $this->assertEquals("scriptfunction bar", $this->smarty->fetch('test_default_function_script_notcachable.tpl')); - } - - public function testDefaultFunctionLocal() - { - $this->assertEquals("localfunction foo bar", $this->smarty->fetch('test_default_function_local.tpl')); - } - public function testDefaultCompilerFunctionScript() - { - $this->assertEquals("scriptcompilerfunction foo bar", $this->smarty->fetch('test_default_compiler_function_script.tpl')); - } - public function testDefaultBlockScript() - { - $this->assertEquals("scriptblock foo bar", $this->smarty->fetch('test_default_block_script.tpl')); - } - public function testDefaultModifierScript() - { - $this->smarty->assign('foo','bar'); - $this->assertEquals("scriptmodifier default bar", $this->smarty->fetch('test_default_modifier_script.tpl')); - } - public function testDefaultModifier() - { - $this->smarty->assign('foo','bar'); - $this->assertEquals("localmodifier bar", $this->smarty->fetch('test_default_modifier.tpl')); - } - public function testDefaultModifierStaticClassMethodCaching1() - { - $this->smarty->assign('foo','bar'); - $this->smarty->caching = 1; - $this->assertEquals("staticmodifier bar", $this->smarty->fetch('test_default_static_modifier.tpl')); - } - public function testDefaultModifierStaticClassMethodCaching2() - { - $this->smarty->assign('foo','bar'); - $this->smarty->caching = 1; - $this->assertEquals("staticmodifier bar", $this->smarty->fetch('test_default_static_modifier.tpl')); - } - -} - -function my_plugin_handler ($tag, $type, $template, &$callback, &$script, &$cachable) -{ - switch ($type) { - case Smarty::PLUGIN_FUNCTION: - switch ($tag) { - case 'scriptfunction': - $script = './scripts/script_function_tag.php'; - $callback = 'default_script_function_tag'; - return true; - case 'scriptfunctionnotcachable': - $script = './scripts/script_function_tag.php'; - $callback = 'default_script_function_tag'; - $cachable = false; - return true; - case 'localfunction': - $callback = 'default_local_function_tag'; - return true; - default: - return false; - } - case Smarty::PLUGIN_COMPILER: - switch ($tag) { - case 'scriptcompilerfunction': - $script = './scripts/script_compiler_function_tag.php'; - $callback = 'default_script_compiler_function_tag'; - return true; - default: - return false; - } - case Smarty::PLUGIN_BLOCK: - switch ($tag) { - case 'scriptblock': - $script = './scripts/script_block_tag.php'; - $callback = 'default_script_block_tag'; - return true; - default: - return false; - } - case Smarty::PLUGIN_MODIFIER: - switch ($tag) { - case 'scriptmodifier': - $script = './scripts/script_modifier.php'; - $callback = 'default_script_modifier'; - return true; - case 'mydefaultmodifier': - $callback = 'default_local_modifier'; - return true; - case 'mydefaultstaticmodifier': - $script = './scripts/script_default_static_modifier.php'; - $callback = array('DefModifier','default_static_modifier'); - return true; - default: - return false; - } - default: - return false; - } - } -function default_local_function_tag ($params, $template) { - return 'localfunction '.$params['value']; -} -function default_local_modifier ($input) { - return 'localmodifier '.$input; -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/DefaultTemplateHandlerTests.php
Deleted
@@ -1,104 +0,0 @@ -<?php -/** -* Smarty PHPunit tests deault template handler -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for block plugin tests -*/ -class DefaultTemplateHandlerTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - $this->smarty->disableSecurity(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test error on unknow template - */ - public function testUnknownTemplate() - { - try { - $this->smarty->fetch('foo.tpl'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Unable to load template'), $e->getMessage()); - return; - } - $this->fail('Exception for none existing template has not been raised.'); - } - /** - * test error on registration on none existent handler function. - */ - public function testRegisterNoneExistentHandlerFunction() - { - try { - $this->smarty->registerDefaultTemplateHandler('foo'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("Default template handler 'foo' not callable"), $e->getMessage()); - return; - } - $this->fail('Exception for none callable function has not been raised.'); - } - /** - * test replacement by default template handler - */ -/** - public function testDefaultTemplateHandlerReplacement() - { - $this->smarty->register->defaultTemplateHandler('my_template_handler'); - $this->assertEquals("Recsource foo.tpl of type file not found", $this->smarty->fetch('foo.tpl')); - } -*/ - public function testDefaultTemplateHandlerReplacementByTemplateFile() - { - $this->smarty->registerDefaultTemplateHandler('my_template_handler_file'); - $this->assertEquals("hello world", $this->smarty->fetch('foo.tpl')); - } - /** - * test default template handler returning fals - */ - public function testDefaultTemplateHandlerReturningFalse() - { - $this->smarty->registerDefaultTemplateHandler('my_false'); - try { - $this->smarty->fetch('foo.tpl'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Unable to load template'), $e->getMessage()); - return; - } - $this->fail('Exception for none existing template has not been raised.'); - } - -} - -function my_template_handler ($resource_type, $resource_name, &$template_source, &$template_timestamp, Smarty $smarty) -{ - $output = "Recsource $resource_name of type $resource_type not found"; - $template_source = $output; - $template_timestamp = time(); - return true; -} -function my_template_handler_file ($resource_type, $resource_name, &$template_source, &$template_timestamp, Smarty $smarty) -{ - return $smarty->getTemplateDir(0) . 'helloworld.tpl'; -} -function my_false ($resource_type, $resource_name, &$template_source, &$template_timestamp, Smarty $smarty) -{ - return false; -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/DelimiterTests.php
Deleted
@@ -1,77 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of delimiter -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for delimiter tests -*/ -class DelimiterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test <{ }> delimiter - */ - public function testDelimiter1() - { - $this->smarty->left_delimiter = '<{'; - $this->smarty->right_delimiter = '}>'; - $tpl = $this->smarty->createTemplate('eval:<{* comment *}><{if true}><{"hello world"}><{/if}>'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * test <-{ }-> delimiter - */ - public function testDelimiter2() - { - $this->smarty->left_delimiter = '<-{'; - $this->smarty->right_delimiter = '}->'; - $tpl = $this->smarty->createTemplate('eval:<-{* comment *}-><-{if true}-><-{"hello world"}-><-{/if}->'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * test <--{ }--> delimiter - */ - public function testDelimiter3() - { - $this->smarty->left_delimiter = '<--{'; - $this->smarty->right_delimiter = '}-->'; - $tpl = $this->smarty->createTemplate('eval:<--{* comment *}--><--{if true}--><--{"hello world"}--><--{/if}-->'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * test {{ }} delimiter - */ - public function testDelimiter4() - { - $this->smarty->left_delimiter = '{{'; - $this->smarty->right_delimiter = '}}'; - $tpl = $this->smarty->createTemplate('eval:{{* comment *}}{{if true}}{{"hello world"}}{{/if}}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - /** - * test {= =} delimiter for conficts with option flags - */ - public function testDelimiter5() - { - $this->smarty->left_delimiter = '{='; - $this->smarty->right_delimiter = '=}'; - $tpl = $this->smarty->createTemplate('eval:{=assign var=foo value="hello world" nocache=}{=$foo=}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/DoubleQuotedStringTests.php
Deleted
@@ -1,161 +0,0 @@ -<?php -/** - * Smarty PHPunit tests double quoted strings - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for double quoted string tests - */ -class DoubleQuotedStringTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple double quoted string - */ - public function testSimpleDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello World', $this->smarty->fetch($tpl)); - } - /** - * test expression tags in double quoted strings - */ - public function testTagsInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello {1+2} World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello 3 World', $this->smarty->fetch($tpl)); - } - /** - * test vars in double quoted strings - */ - public function testVarsInDoubleQuotedString1() - { - $tpl = $this->smarty->createTemplate('eval:{$bar=\'blah\'}{$foo="Hello $bar World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blah World', $this->smarty->fetch($tpl)); - } - public function testVarsInDoubleQuotedString2() - { - $tpl = $this->smarty->createTemplate('eval:{$bar=\'blah\'}{$buh=\'buh\'}{$foo="Hello $bar$buh World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blahbuh World', $this->smarty->fetch($tpl)); - } - /** - * test vars with backtick in double quoted strings - */ - public function testVarsBacktickInDoubleQuotedString1() - { - $tpl = $this->smarty->createTemplate('eval:{$bar=\'blah\'}{$foo="Hello `$bar`.test World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blah.test World', $this->smarty->fetch($tpl)); - } - public function testVarsBacktickInDoubleQuotedString2() - { - $tpl = $this->smarty->createTemplate('eval:{$bar=\'blah\'}{$buh=\'buh\'}{$foo="Hello `$bar``$buh`.test World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blahbuh.test World', $this->smarty->fetch($tpl)); - } - /** - * test variable vars with backtick in double quoted strings - */ - public function testVariableVarsBacktickInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$barbuh=\'blah\'}{$buh=\'buh\'}{$foo="Hello `$bar{$buh}`.test World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blah.test World', $this->smarty->fetch($tpl)); - } - /** - * test array vars with backtick in double quoted strings - */ - public function testArrayVarsBacktickInDoubleQuotedString1() - { - $tpl = $this->smarty->createTemplate('eval:{$bar[1][2]=\'blah\'}{$foo="Hello `$bar.1.2`.test World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blah.test World', $this->smarty->fetch($tpl)); - } - public function testArrayVarsBacktickInDoubleQuotedString2() - { - $tpl = $this->smarty->createTemplate('eval:{$bar[1][2]=\'blah\'}{$foo="Hello `$bar[1][2]`.test World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blah.test World', $this->smarty->fetch($tpl)); - } - /** - * test expression in backtick in double quoted strings - */ - public function testExpressionBacktickInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$a=1}{"`$a+1`"}', null, null, $this->smarty); - $this->assertEquals('2', $this->smarty->fetch($tpl)); - } - /** - * test smartytag in double quoted strings - */ - public function testSmartytagInDoubleQuotedString1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello {counter start=1} World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello 1 World', $this->smarty->fetch($tpl)); - } - public function testSmartytagInDoubleQuotedString2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello {counter start=1}{counter} World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello 12 World', $this->smarty->fetch($tpl)); - } - /** - * test block smartytag in double quoted strings - */ - public function testSmartyBlockTagInDoubleQuotedString1() - { - $this->smarty->assign('x', 1); - $this->smarty->assign('y', 1); - $this->smarty->assign('z', true); - $this->assertEquals('Hello 1 World', $this->smarty->fetch('eval:{"Hello{if $z} {$x} {else}{$y}{/if}World"}')); - } - /** - * test vars in delimiter in double quoted strings - */ - public function testVarsDelimiterInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$bar=\'blah\'}{$foo="Hello {$bar}.test World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello blah.test World', $this->smarty->fetch($tpl)); - } - /** - * test escaped quotes in double quoted strings - */ - public function testEscapedQuotesInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello \" World"}{$foo}', null, null, $this->smarty); - $this->assertEquals('Hello " World', $this->smarty->fetch($tpl)); - } - - /** - * test single quotes in double quoted strings - */ - public function testSingleQuotesInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello \'World\'"}{$foo}', null, null, $this->smarty); - $this->assertEquals("Hello 'World'", $this->smarty->fetch($tpl)); - } - /** - * test single quote tags in double quoted strings - */ - public function testSingleQuoteTagsInDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo="Hello {\'World\'} Test"}{$foo}', null, null, $this->smarty); - $this->assertEquals("Hello World Test", $this->smarty->fetch($tpl)); - } - /** - * test empty double quoted strings - */ - public function testEmptyDoubleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=""}{$foo}', null, null, $this->smarty); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/EvalResourceTests.php
Deleted
@@ -1,164 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for eval resources -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for eval resource tests -*/ -class EvalResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test template eval exits - */ - public function testTemplateEvalExists1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo}'); - $this->assertTrue($tpl->source->exists); - } - public function testTemplateEvalExists2() - { - $this->assertTrue($this->smarty->templateExists('eval:{$foo}')); - } - /** - * test getTemplateFilepath - */ - public function testGetTemplateFilepath() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertEquals('2aae6c35c94fcfb415dbe95f408b9ce91ee846ed', $tpl->source->filepath); - } - /** - * test getTemplateTimestamp - */ - public function testGetTemplateTimestamp() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertFalse($tpl->source->timestamp); - } - /** - * test getTemplateSource - */ - public function testGetTemplateSource() - { - $tpl = $this->smarty->createTemplate('eval:hello world{$foo}'); - $this->assertEquals('hello world{$foo}', $tpl->source->content); - } - /** - * test usesCompiler - */ - public function testUsesCompiler() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertFalse($tpl->source->uncompiled); - } - /** - * test isEvaluated - */ - public function testIsEvaluated() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertTrue($tpl->source->recompiled); - } - /** - * test mustCompile - */ - public function testMustCompile() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertTrue($tpl->mustCompile()); - } - /** - * test getCompiledFilepath - */ - public function testGetCompiledFilepath() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertFalse($tpl->compiled->filepath); - } - /** - * test getCompiledTimestamp - */ - public function testGetCompiledTimestamp() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertFalse($tpl->compiled->timestamp); - } - /** - * test writeCachedContent - */ - public function testWriteCachedContent() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertFalse($tpl->writeCachedContent('dummy')); - } - /** - * test isCached - */ - public function testIsCached() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertFalse($tpl->isCached()); - } - /** - * test getRenderedTemplate - */ - public function testGetRenderedTemplate() - { - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertEquals('hello world', $tpl->fetch()); - } - /** - * test that no complied template and cache file was produced - */ - public function testNoFiles() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - $this->assertEquals(0, $this->smarty->clearAllCache()); - $this->assertEquals(0, $this->smarty->clearCompiledTemplate()); - } - /** - * test $smarty->is_cached - */ - public function testSmartyIsCached() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - $tpl = $this->smarty->createTemplate('eval:hello world'); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - $this->assertFalse($this->smarty->isCached($tpl)); - } - - public function testUrlencodeTemplate() - { - $tpl = $this->smarty->createTemplate('eval:urlencode:%7B%22foobar%22%7Cescape%7D'); - $this->assertEquals('foobar', $tpl->fetch()); - } - - public function testBase64Template() - { - $tpl = $this->smarty->createTemplate('eval:base64:eyJmb29iYXIifGVzY2FwZX0='); - $this->assertEquals('foobar', $tpl->fetch()); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ExtendsResourceTests.php
Deleted
@@ -1,218 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for Extendsresource -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for extends resource tests -*/ -class ExtendsResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * clear folders - */ - public function clear() - { - $this->smarty->clearAllCache(); - $this->smarty->clearCompiledTemplate(); - } - /* Test compilation */ - public function testExtendsResourceBlockBase() - { - $this->smarty->force_compile=true; - $result = $this->smarty->fetch('extends:test_block_base.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section false--', $result); - $this->assertContains('--block passed by section false--', $result); - $this->assertContains('--block root false--', $result); - $this->assertContains('--block assigned false--', $result); - $this->assertContains('--parent from section false--', $result); - $this->assertContains('--base--', $result); - $this->assertContains('--block include false--', $result); - } - public function testExtendResourceBlockSection() - { - $this->smarty->force_compile=true; - $result = $this->smarty->fetch('extends:test_block_base.tpl|test_block_section.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section false--', $result); - $this->assertContains('--block root false--', $result); - $this->assertContains('--block assigned false--', $result); - $this->assertContains('--section--', $result); - $this->assertContains('--base--', $result); - $this->assertContains('--block include false--', $result); - } - public function testExtendResourceBlockRoot() - { - $this->smarty->force_compile=true; - $this->smarty->assign('foo', 'hallo'); - $result = $this->smarty->fetch('extends:test_block_base.tpl|test_block_section.tpl|test_block.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section ok--', $result); - $this->assertContains('--block root ok--', $result); - $this->assertContains('--assigned hallo--', $result); - $this->assertContains('--parent from --section-- block--', $result); - $this->assertContains('--parent from --base-- block--', $result); - $this->assertContains('--block include ok--', $result); - } - public function testExtendsTagWithExtendsResource() - { - $this->smarty->force_compile=true; - $this->smarty->assign('foo', 'hallo'); - $result = $this->smarty->fetch('test_block_extends.tpl'); - $this->assertContains('--block base from extends--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section ok--', $result); - $this->assertContains('--block root ok--', $result); - $this->assertContains('--assigned hallo--', $result); - $this->assertContains('--parent from --section-- block--', $result); - $this->assertContains('--parent from --base-- block--', $result); - $this->assertContains('--block include ok--', $result); - } - /** - * test grandchild/child/parent dependency test1 - */ - public function testCompileBlockGrandChildMustCompile1() - { - // FIXME: this tests fails when run with smartytestssingle.php - // $this->smarty->clearCache('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent dependency test2 - */ - public function testCompileBlockGrandChildMustCompile2() - { - touch($this->smarty->getTemplateDir(0) . 'test_block_grandchild_resource.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent dependency test3 - */ - public function testCompileBlockGrandChildMustCompile3() - { - touch($this->smarty->getTemplateDir(0) . 'test_block_child_resource.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test grandchild/child/parent dependency test4 - */ - public function testCompileBlockGrandChildMustCompile4() - { - touch($this->smarty->getTemplateDir(0) . 'test_block_parent.tpl'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertFalse($tpl->isCached()); - $result = $this->smarty->fetch($tpl); - $this->assertContains('Grandchild Page Title', $result); - $this->smarty->template_objects = null; - $tpl2 = $this->smarty->createTemplate('extends:test_block_parent.tpl|test_block_child_resource.tpl|test_block_grandchild_resource.tpl'); - $this->assertTrue($tpl2->isCached()); - $result = $this->smarty->fetch($tpl2); - $this->assertContains('Grandchild Page Title', $result); - } - /** - * test nested child block with hide and auto_literal = false - */ - public function testCompileBlockChildNestedHideAutoLiteralFalseResource() - { - $this->smarty->auto_literal = false; - $result = $this->smarty->fetch('extends:test_block_parent_nested2_space.tpl|test_block_child_nested_hide_space.tpl'); - $this->assertContains('nested block', $result); - $this->assertNotContains('should be hidden', $result); - } - - /* Test create cache file */ - public function testExtendResource1() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->assign('foo', 'hallo'); - $result = $this->smarty->fetch('extends:test_block_base.tpl|test_block_section.tpl|test_block.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section ok--', $result); - $this->assertContains('--block root ok--', $result); - $this->assertContains('--assigned hallo--', $result); - $this->assertContains('--parent from --section-- block--', $result); - $this->assertContains('--parent from --base-- block--', $result); - $this->assertContains('--block include ok--', $result); - } - /* Test access cache file */ - public function testExtendResource2() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->assign('foo', 'world'); - $tpl = $this->smarty->createTemplate('extends:test_block_base.tpl|test_block_section.tpl|test_block.tpl'); - $this->assertTrue($this->smarty->isCached($tpl)); - $result = $this->smarty->fetch('extends:test_block_base.tpl|test_block_section.tpl|test_block.tpl'); - $this->assertContains('--block base ok--', $result); - $this->assertContains('--block section ok--', $result); - $this->assertContains('--block passed by section ok--', $result); - $this->assertContains('--block root ok--', $result); - $this->assertContains('--assigned hallo--', $result); - $this->assertContains('--parent from --section-- block--', $result); - $this->assertContains('--parent from --base-- block--', $result); - $this->assertContains('--block include ok--', $result); - } - - public function testExtendExists() - { - $this->smarty->caching = false; - $tpl = $this->smarty->createTemplate('extends:test_block_base.tpl'); - $this->assertTrue($tpl->source->exists); - - $tpl = $this->smarty->createTemplate('extends:does-not-exists.tpl|this-neither.tpl'); - $this->assertFalse($tpl->source->exists); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/FileResourceTests.php
Deleted
@@ -1,572 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for File resources -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for file resource tests -*/ -class FileResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - protected function relative($path) - { - $path = str_replace( dirname(__FILE__), '.', $path ); - if (DS == "\\") { - $path = str_replace( "\\", "/", $path ); - } - return $path; - } - - public function testGetTemplateFilepath() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertEquals('./templates/helloworld.tpl', str_replace('\\','/',$tpl->source->filepath)); - } - - public function testTemplateFileExists1() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue($tpl->source->exists); - } - public function testTemplateFileExists2() - { - $this->assertTrue($this->smarty->templateExists('helloworld.tpl')); - } - - public function testTemplateFileNotExists1() - { - $tpl = $this->smarty->createTemplate('notthere.tpl'); - $this->assertFalse($tpl->source->exists); - } - public function testTemplateFileNotExists2() - { - $this->assertFalse($this->smarty->templateExists('notthere.tpl')); - } - public function testTemplateFileNotExists3() - { - try { - $result = $this->smarty->fetch('notthere.tpl'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Unable to load template file \'notthere.tpl\''), $e->getMessage()); - return; - } - $this->fail('Exception for not existing template is missing'); - } - - public function testGetTemplateTimestamp() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue(is_integer($tpl->source->timestamp)); - $this->assertEquals(10, strlen($tpl->source->timestamp)); - } - - public function testGetTemplateSource() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertEquals('hello world', $tpl->source->content); - } - - public function testUsesCompiler() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->source->uncompiled); - } - - public function testIsEvaluated() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->source->recompiled); - } - - public function testGetCompiledFilepath() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $expected = './templates_c/'.sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl').'.file.helloworld.tpl.php'; - $this->assertEquals($expected, $this->relative($tpl->compiled->filepath)); - } - - public function testGetCompiledTimestampPrepare() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - // create dummy compiled file - file_put_contents($tpl->compiled->filepath, '<?php ?>'); - touch($tpl->compiled->filepath, $tpl->source->timestamp); - } - public function testGetCompiledTimestamp() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue(is_integer($tpl->compiled->timestamp)); - $this->assertEquals(10, strlen($tpl->compiled->timestamp)); - $this->assertEquals($tpl->compiled->timestamp, $tpl->source->timestamp); - } - - public function testMustCompileExisting() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->mustCompile()); - } - - public function testMustCompileAtForceCompile() - { - $this->smarty->force_compile = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue($tpl->mustCompile()); - } - - public function testMustCompileTouchedSource() - { - $this->smarty->force_compile = false; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - touch($tpl->source->filepath); - // reset cache for this test to work - unset($tpl->source->timestamp); - $this->assertTrue($tpl->mustCompile()); - // clean up for next tests - $this->smarty->clearCompiledTemplate(); - } - - public function testCompileTemplateFile() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->compileTemplateSource(); - } - - public function testCompiledTemplateFileExits() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue(file_exists($tpl->compiled->filepath)); - } - - public function testGetCachedFilepath() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $expected = './cache/'.sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl').'.helloworld.tpl.php'; - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - - public function testGetCachedTimestamp() - { - // create dummy cache file for the following test - file_put_contents('./cache/'.sha1($this->smarty->getTemplateDir(0) . 'helloworld.tpl').'.helloworld.tpl.php', '<?php ?>'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue(is_integer($tpl->cached->timestamp)); - $this->assertEquals(10, strlen($tpl->cached->timestamp)); - } - - public function testIsCachedPrepare() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - // clean up for next tests - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - // compile and cache - $this->smarty->fetch($tpl); - } - - public function testIsCached() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue($tpl->isCached()); - } - - public function testForceCache() - { - $this->smarty->caching = true; - $this->smarty->force_cache = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->isCached()); - } - - public function testIsCachedTouchedSourcePrepare() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - sleep(1); - touch ($tpl->source->filepath); - } - public function testIsCachedTouchedSource() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->isCached()); - } - - public function testIsCachedCachingDisabled() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->isCached()); - } - - public function testIsCachedForceCompile() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->force_compile = true; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($tpl->isCached()); - } - - public function testWriteCachedContent() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->smarty->fetch($tpl); - $this->assertTrue(file_exists($tpl->cached->filepath)); - } - - public function testGetRenderedTemplate() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertEquals('hello world', $tpl->fetch()); - } - - public function testSmartyIsCachedPrepare() - { - // prepare files for next test - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - // clean up for next tests - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->smarty->fetch($tpl); - } - public function testSmartyIsCached() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertTrue($this->smarty->isCached($tpl)); - } - - public function testSmartyIsCachedCachingDisabled() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $this->assertFalse($this->smarty->isCached($tpl)); - } - - public function testRelativeInclude() - { - $result = $this->smarty->fetch('relative.tpl'); - $this->assertContains('hello world', $result); - } - - public function testRelativeIncludeSub() - { - $result = $this->smarty->fetch('sub/relative.tpl'); - $this->assertContains('hello world', $result); - } - - public function testRelativeIncludeFail() - { - try { - $this->smarty->fetch('relative_sub.tpl'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("Unable to load template"), $e->getMessage()); - return; - } - $this->fail('Exception for unknown relative filepath has not been raised.'); - } - - public function testRelativeIncludeFailOtherDir() - { - $this->smarty->addTemplateDir('./templates_2'); - try { - $this->smarty->fetch('relative_notexist.tpl'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("Unable to load template"), $e->getMessage()); - return; - } - $this->fail('Exception for unknown relative filepath has not been raised.'); - } - - public function testRelativeFetch() - { - $this->smarty->setTemplateDir(array( - dirname(__FILE__) . '/does-not-exist/', - dirname(__FILE__) . '/templates/sub/', - )); - $this->smarty->security_policy = null; - $this->assertEquals('hello world', $this->smarty->fetch('./relative.tpl')); - $this->assertEquals('hello world', $this->smarty->fetch('../helloworld.tpl')); - } - - public function testRelativeFetchCwd() - { - $cwd = getcwd(); - chdir(dirname(__FILE__) . '/templates/sub/'); - $this->smarty->setTemplateDir(array( - dirname(__FILE__) . '/does-not-exist/', - )); - $this->smarty->security_policy = null; - $this->assertEquals('hello world', $this->smarty->fetch('./relative.tpl')); - $this->assertEquals('hello world', $this->smarty->fetch('../helloworld.tpl')); - chdir($cwd); - } - - protected function _relativeMap($map, $cwd=null) { - foreach ($map as $file => $result) { - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - - if ($result === null) { - try { - $this->smarty->fetch($file); - if ($cwd !== null) { - chdir($cwd); - } - - $this->fail('Exception expected for ' . $file); - return; - } catch (SmartyException $e) { - // this was expected to fail - } - } else { - try { - $_res = $this->smarty->fetch($file); - $this->assertEquals($result, $_res, $file); - } catch (Exception $e) { - if ($cwd !== null) { - chdir($cwd); - } - - throw $e; - } - } - } - - if ($cwd !== null) { - chdir($cwd); - } - } - public function testRelativity() - { - $this->smarty->security_policy = null; - - $cwd = getcwd(); - $dn = dirname(__FILE__); - - $this->smarty->setCompileDir($dn . '/templates_c/'); - $this->smarty->setTemplateDir(array( - $dn . '/templates/relativity/theory/', - )); - - $map = array( - 'foo.tpl' => 'theory', - './foo.tpl' => 'theory', - '././foo.tpl' => 'theory', - '../foo.tpl' => 'relativity', - '.././foo.tpl' => 'relativity', - './../foo.tpl' => 'relativity', - 'einstein/foo.tpl' => 'einstein', - './einstein/foo.tpl' => 'einstein', - '../theory/einstein/foo.tpl' => 'einstein', - 'templates/relativity/relativity.tpl' => 'relativity', - './templates/relativity/relativity.tpl' => 'relativity', - ); - - $this->_relativeMap($map); - - $this->smarty->setTemplateDir(array( - 'templates/relativity/theory/', - )); - - $map = array( - 'foo.tpl' => 'theory', - './foo.tpl' => 'theory', - '././foo.tpl' => 'theory', - '../foo.tpl' => 'relativity', - '.././foo.tpl' => 'relativity', - './../foo.tpl' => 'relativity', - 'einstein/foo.tpl' => 'einstein', - './einstein/foo.tpl' => 'einstein', - '../theory/einstein/foo.tpl' => 'einstein', - 'templates/relativity/relativity.tpl' => 'relativity', - './templates/relativity/relativity.tpl' => 'relativity', - ); - - $this->_relativeMap($map); - } - public function testRelativityCwd() - { - $this->smarty->security_policy = null; - - $cwd = getcwd(); - $dn = dirname(__FILE__); - - $this->smarty->setCompileDir($dn . '/templates_c/'); - $this->smarty->setTemplateDir(array( - $dn . '/templates/', - )); - chdir($dn . '/templates/relativity/theory/'); - - $map = array( - 'foo.tpl' => 'theory', - './foo.tpl' => 'theory', - '././foo.tpl' => 'theory', - '../foo.tpl' => 'relativity', - '.././foo.tpl' => 'relativity', - './../foo.tpl' => 'relativity', - 'einstein/foo.tpl' => 'einstein', - './einstein/foo.tpl' => 'einstein', - '../theory/einstein/foo.tpl' => 'einstein', - ); - - $this->_relativeMap($map, $cwd); - } - public function testRelativityPrecedence() - { - $this->smarty->security_policy = null; - - $cwd = getcwd(); - $dn = dirname(__FILE__); - - $this->smarty->setCompileDir($dn . '/templates_c/'); - $this->smarty->setTemplateDir(array( - $dn . '/templates/relativity/theory/einstein/', - )); - - $map = array( - 'foo.tpl' => 'einstein', - './foo.tpl' => 'einstein', - '././foo.tpl' => 'einstein', - '../foo.tpl' => 'theory', - '.././foo.tpl' => 'theory', - './../foo.tpl' => 'theory', - '../../foo.tpl' => 'relativity', - ); - - chdir($dn . '/templates/relativity/theory/'); - $this->_relativeMap($map, $cwd); - - $map = array( - '../theory.tpl' => 'theory', - './theory.tpl' => 'theory', - '../../relativity.tpl' => 'relativity', - '../relativity.tpl' => 'relativity', - './einstein.tpl' => 'einstein', - 'einstein/einstein.tpl' => 'einstein', - './einstein/einstein.tpl' => 'einstein', - ); - - chdir($dn . '/templates/relativity/theory/'); - $this->_relativeMap($map, $cwd); - } - public function testRelativityRelRel() - { - $this->smarty->security_policy = null; - - $cwd = getcwd(); - $dn = dirname(__FILE__); - - $this->smarty->setCompileDir($dn . '/templates_c/'); - $this->smarty->setTemplateDir(array( - '../..', - )); - - $map = array( - 'foo.tpl' => 'relativity', - './foo.tpl' => 'relativity', - '././foo.tpl' => 'relativity', - ); - - chdir($dn . '/templates/relativity/theory/einstein'); - $this->_relativeMap($map, $cwd); - - $map = array( - 'relativity.tpl' => 'relativity', - './relativity.tpl' => 'relativity', - 'theory/theory.tpl' => 'theory', - './theory/theory.tpl' => 'theory', - ); - - chdir($dn . '/templates/relativity/theory/einstein/'); - $this->_relativeMap($map, $cwd); - - $map = array( - 'foo.tpl' => 'theory', - './foo.tpl' => 'theory', - 'theory.tpl' => 'theory', - './theory.tpl' => 'theory', - 'einstein/einstein.tpl' => 'einstein', - './einstein/einstein.tpl' => 'einstein', - '../theory/einstein/einstein.tpl' => 'einstein', - '../relativity.tpl' => 'relativity', - './../relativity.tpl' => 'relativity', - '.././relativity.tpl' => 'relativity', - ); - - $this->smarty->setTemplateDir(array( - '..', - )); - chdir($dn . '/templates/relativity/theory/einstein/'); - $this->_relativeMap($map, $cwd); - } - public function testRelativityRelRel1() - { - $this->smarty->security_policy = null; - - $cwd = getcwd(); - $dn = dirname(__FILE__); - - $this->smarty->setCompileDir($dn . '/templates_c/'); - $this->smarty->setTemplateDir(array( - '..', - )); - - $map = array( - 'foo.tpl' => 'theory', - './foo.tpl' => 'theory', - 'theory.tpl' => 'theory', - './theory.tpl' => 'theory', - 'einstein/einstein.tpl' => 'einstein', - './einstein/einstein.tpl' => 'einstein', - '../theory/einstein/einstein.tpl' => 'einstein', - '../relativity.tpl' => 'relativity', - './../relativity.tpl' => 'relativity', - '.././relativity.tpl' => 'relativity', - ); - - chdir($dn . '/templates/relativity/theory/einstein/'); - $this->_relativeMap($map, $cwd); - } - - /** - * final cleanup - */ - public function testFinalCleanup() - { - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/FilterTests.php
Deleted
@@ -1,149 +0,0 @@ -<?php -/** - * Smarty PHPunit tests of filter - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for filter tests - */ -class FilterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test autoload output filter - */ - public function testAutoloadOutputFilter() - { - $this->smarty->autoload_filters['output'] = 'trimwhitespace'; - $tpl = $this->smarty->createTemplate('eval:{" <br>hello world"}'); - $this->assertEquals("<br>hello world", $this->smarty->fetch($tpl)); - } - /** - * test autoload variable filter - */ - public function testAutoloadVariableFilter() - { - $this->smarty->autoload_filters['variable'] = 'htmlspecialchars'; - $tpl = $this->smarty->createTemplate('eval:{"<test>"}'); - $this->assertEquals("<test>", $this->smarty->fetch($tpl)); - } - /** - * test loaded filter - */ - public function testLoadedOutputFilter() - { - $this->smarty->loadFilter(Smarty::FILTER_OUTPUT, 'trimwhitespace'); - $tpl = $this->smarty->createTemplate('eval:{" <br>hello world"}'); - $this->assertEquals("<br>hello world", $this->smarty->fetch($tpl)); - } - public function testLoadedOutputFilterWrapper() - { - $this->smartyBC->load_filter(Smarty::FILTER_OUTPUT, 'trimwhitespace'); - $tpl = $this->smartyBC->createTemplate('eval:{" <br>hello world"}'); - $this->assertEquals("<br>hello world", $this->smartyBC->fetch($tpl)); - } - /** - * test registered output filter - */ - public function testRegisteredOutputFilter() - { - $this->smarty->registerFilter(Smarty::FILTER_OUTPUT,'myoutputfilter'); - $tpl = $this->smarty->createTemplate('eval:{"hello world"}'); - $this->assertEquals("hello world", $this->smarty->fetch($tpl)); - } - public function testRegisteredOutputFilterWrapper() - { - $this->smartyBC->register_outputfilter('myoutputfilter'); - $tpl = $this->smartyBC->createTemplate('eval:{"hello world"}'); - $this->assertEquals("hello world", $this->smartyBC->fetch($tpl)); - } - /** - * test registered pre filter - */ - public function testRegisteredPreFilter() - { - function myprefilter($input) - { - return '{$foo}' . $input; - } - $this->smarty->registerFilter(Smarty::FILTER_PRE,'myprefilter'); - $tpl = $this->smarty->createTemplate('eval:{" hello world"}'); - $tpl->assign('foo', 'bar'); - $this->assertEquals("bar hello world", $this->smarty->fetch($tpl)); - } - /** - * test registered pre filter class - */ - public function testRegisteredPreFilterClass() - { - $this->smarty->registerFilter(Smarty::FILTER_PRE,array('myprefilterclass', 'myprefilter')); - $tpl = $this->smarty->createTemplate('eval:{" hello world"}'); - $tpl->assign('foo', 'bar'); - $this->assertEquals("bar hello world", $this->smarty->fetch($tpl)); - } - /** - * test registered post filter - */ - public function testRegisteredPostFilter() - { - function mypostfilter($input) - { - return '{$foo}' . $input; - } - $this->smarty->registerFilter(Smarty::FILTER_POST,'mypostfilter'); - $tpl = $this->smarty->createTemplate('eval:{" hello world"}'); - $tpl->assign('foo', 'bar'); - $this->assertEquals('{$foo} hello world', $this->smarty->fetch($tpl)); - } - /** - * test variable filter - */ - public function testLoadedVariableFilter() - { - $this->smarty->loadFilter("variable", "htmlspecialchars"); - $tpl = $this->smarty->createTemplate('eval:{$foo}'); - $tpl->assign('foo', '<?php ?>'); - $this->assertEquals('<?php ?>', $this->smarty->fetch($tpl)); - } - /** - * test registered post filter - */ - public function testRegisteredVariableFilter() - { - function myvariablefilter($input, $smarty) - { - return 'var{$foo}' . $input; - } - $this->smarty->registerFilter(Smarty::FILTER_VARIABLE,'myvariablefilter'); - $tpl = $this->smarty->createTemplate('eval:{$foo}'); - $tpl->assign('foo', 'bar'); - $this->assertEquals('var{$foo}bar', $this->smarty->fetch($tpl)); - } -} - -function myoutputfilter($input) -{ - return str_replace(' ', ' ', $input); -} - - class myprefilterclass { - static function myprefilter($input) - { - return '{$foo}' . $input; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/FunctionTests.php
Deleted
@@ -1,42 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of function calls -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for function tests -*/ -class FunctionTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test unknown function error - */ - public function testUnknownFunction() - { - $this->smarty->enableSecurity(); - try { - $this->smarty->fetch('eval:{unknown()}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("PHP function 'unknown' not allowed by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for unknown function has not been raised.'); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/GetTemplateVarsTests.php
Deleted
@@ -1,107 +0,0 @@ -<?php -/** -* Smarty PHPunit tests getTemplateVars method -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for getTemplateVars method test -*/ -class GetTemplateVarsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test root getTemplateVars single value - */ - public function testGetSingleTemplateVarScopeRoot() - { - $this->smarty->assign('foo', 'bar'); - $this->smarty->assign('blar', 'buh'); - $this->assertEquals("bar", $this->smarty->getTemplateVars('foo')); - } - /** - * test root getTemplateVars all values - */ - public function testGetAllTemplateVarsScopeRoot() - { - $this->smarty->assign('foo', 'bar'); - $this->smarty->assign('blar', 'buh'); - $vars = $this->smarty->getTemplateVars(); - $this->assertTrue(is_array($vars)); - $this->assertEquals("bar", $vars['foo']); - $this->assertEquals("buh", $vars['blar']); - } - - /** - * test single variable with data object chain - */ - public function testGetSingleTemplateVarScopeAll() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $this->smarty->assign('foo', 'bar'); - $this->smarty->assign('blar', 'buh'); - $this->assertEquals("bar", $this->smarty->getTemplateVars('foo', $data2)); - } - /** - * test get all variables with data object chain - */ - public function testGetAllTemplateVarsScopeAll() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $this->smarty->assign('foo', 'bar'); - $data1->assign('blar', 'buh'); - $data2->assign('foo2', 'bar2'); - $vars = $this->smarty->getTemplateVars(null, $data2); - $this->assertTrue(is_array($vars)); - $this->assertEquals("bar", $vars['foo']); - $this->assertEquals("bar2", $vars['foo2']); - $this->assertEquals("buh", $vars['blar']); - } - /** - * test get all variables with data object chain search parents disabled - */ - public function testGetAllTemplateVarsScopeAllNoParents() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $this->smarty->assign('foo', 'bar'); - $data1->assign('blar', 'buh'); - $data2->assign('foo2', 'bar2'); - $vars = $this->smarty->getTemplateVars(null, $data2, false); - $this->assertTrue(is_array($vars)); - $this->assertFalse(isset($vars['foo'])); - $this->assertEquals("bar2", $vars['foo2']); - $this->assertFalse(isset($vars['blar'])); - } - /** - * test get single variables with data object chain search parents disabled - */ - public function testGetSingleTemplateVarsScopeAllNoParents() - { - error_reporting(error_reporting() & ~(E_NOTICE|E_USER_NOTICE)); - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $this->smarty->assign('foo', 'bar'); - $data1->assign('blar', 'buh'); - $data2->assign('foo2', 'bar2'); - $this->assertEquals("", $this->smarty->getTemplateVars('foo', $data2, false)); - $this->assertEquals("bar2", $this->smarty->getTemplateVars('foo2', $data2, false)); - $this->assertEquals("", $this->smarty->getTemplateVars('blar', $data2, false)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/GetterSetterTests.php
Deleted
@@ -1,71 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of generic getter/setter -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for generic getter/setter tests -*/ -class GetterSetterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test setter on Smarty object - */ - public function testSmartySetter() - { - $this->smarty->setLeftDelimiter('<{'); - $this->smarty->setRightDelimiter('}>'); - $this->assertEquals('<{', $this->smarty->left_delimiter); - $this->assertEquals('}>', $this->smarty->right_delimiter); - } - /** - * test getter on Smarty object - */ - public function testSmartyGetter() - { - $this->smarty->setLeftDelimiter('<{'); - $this->smarty->setRightDelimiter('}>'); - $this->assertEquals('<{', $this->smarty->getLeftDelimiter()); - $this->assertEquals('}>', $this->smarty->getRightDelimiter()); - } - /** - * test setter on Template object - */ - public function testTemplateSetter() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->setLeftDelimiter('<{'); - $tpl->setRightDelimiter('}>'); - $this->assertEquals('<{', $tpl->smarty->left_delimiter); - $this->assertEquals('}>', $tpl->smarty->right_delimiter); - $this->assertEquals('{', $this->smarty->left_delimiter); - $this->assertEquals('}', $this->smarty->right_delimiter); - } - /** - * test getter on Template object - */ - public function testTemplateGetter() - { - $tpl = $this->smarty->createTemplate('helloworld.tpl'); - $tpl->setLeftDelimiter('<{'); - $tpl->setRightDelimiter('}>'); - $this->assertEquals('<{', $tpl->getLeftDelimiter()); - $this->assertEquals('}>', $tpl->getRightDelimiter()); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/HttpModifiedSinceTests.php
Deleted
@@ -1,108 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for cache resource file -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for cache resource file tests -*/ -class HttpModifiedSinceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDisabled() - { - $_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS'] = true; - $_SERVER['SMARTY_PHPUNIT_HEADERS'] = array(); - - $this->smarty->cache_modified_check = false; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - ob_start(); - $this->smarty->display('helloworld.tpl'); - $output = ob_get_contents(); - ob_end_clean(); - $this->assertEquals('hello world', $output); - $this->assertEquals('', join( "\r\n",$_SERVER['SMARTY_PHPUNIT_HEADERS'])); - - unset($_SERVER['HTTP_IF_MODIFIED_SINCE']); - unset($_SERVER['SMARTY_PHPUNIT_HEADERS']); - unset($_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS']); - } - - public function testEnabledUncached() - { - $_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS'] = true; - $_SERVER['SMARTY_PHPUNIT_HEADERS'] = array(); - - $this->smarty->cache_modified_check = true; - $this->smarty->caching = false; - $this->smarty->cache_lifetime = 20; - ob_start(); - $this->smarty->display('helloworld.tpl'); - $output = ob_get_contents(); - ob_end_clean(); - $this->assertEquals('hello world', $output); - $this->assertEquals('', join( "\r\n",$_SERVER['SMARTY_PHPUNIT_HEADERS'])); - - unset($_SERVER['HTTP_IF_MODIFIED_SINCE']); - unset($_SERVER['SMARTY_PHPUNIT_HEADERS']); - unset($_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS']); - } - - public function testEnabledCached() - { - $_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS'] = true; - $_SERVER['SMARTY_PHPUNIT_HEADERS'] = array(); - - $this->smarty->cache_modified_check = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - - ob_start(); - $this->smarty->display('helloworld.tpl'); - $output = ob_get_contents(); - ob_end_clean(); - $this->assertEquals('hello world', $output); - $header = 'Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'; - $this->assertEquals($header, join( "\r\n",$_SERVER['SMARTY_PHPUNIT_HEADERS'])); - - $_SERVER['SMARTY_PHPUNIT_HEADERS'] = array(); - $_SERVER['HTTP_IF_MODIFIED_SINCE'] = gmdate('D, d M Y H:i:s', time() - 3600) . ' GMT'; - ob_start(); - $this->smarty->display('helloworld.tpl'); - $output = ob_get_contents(); - ob_end_clean(); - $this->assertEquals('hello world', $output); - $this->assertEquals($header, join( "\r\n",$_SERVER['SMARTY_PHPUNIT_HEADERS'])); - - $_SERVER['SMARTY_PHPUNIT_HEADERS'] = array(); - $_SERVER['HTTP_IF_MODIFIED_SINCE'] = gmdate('D, d M Y H:i:s', time() + 10) . ' GMT'; - ob_start(); - $this->smarty->display('helloworld.tpl'); - $output = ob_get_contents(); - ob_end_clean(); - $this->assertEquals('', $output); - $this->assertEquals('304 Not Modified', join( "\r\n",$_SERVER['SMARTY_PHPUNIT_HEADERS'])); - - unset($_SERVER['HTTP_IF_MODIFIED_SINCE']); - unset($_SERVER['SMARTY_PHPUNIT_HEADERS']); - unset($_SERVER['SMARTY_PHPUNIT_DISABLE_HEADERS']); - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/IndexedFileResourceTests.php
Deleted
@@ -1,103 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for File resources -* -* @package PHPunit -* @author Rodney Rehm -*/ - - -class IndexedFileResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->addTemplateDir(dirname(__FILE__) .'/templates_2'); - // note that 10 is a string! - $this->smarty->addTemplateDir(dirname(__FILE__) .'/templates_3', '10'); - $this->smarty->addTemplateDir(dirname(__FILE__) .'/templates_4', 'foo'); - } - - public static function isRunnable() - { - return true; - } - - protected function relative($path) - { - $path = str_replace( dirname(__FILE__), '.', $path ); - if (DS == "\\") { - $path = str_replace( "\\", "/", $path ); - } - return $path; - } - - public function testGetTemplateFilepath() - { - $tpl = $this->smarty->createTemplate('dirname.tpl'); - $this->assertEquals('./templates/dirname.tpl', $this->relative($tpl->source->filepath)); - } - public function testGetTemplateFilepathNumber() - { - $tpl = $this->smarty->createTemplate('[1]dirname.tpl'); - $this->assertEquals('./templates_2/dirname.tpl', $this->relative($tpl->source->filepath)); - } - public function testGetTemplateFilepathNumeric() - { - $tpl = $this->smarty->createTemplate('[10]dirname.tpl'); - $this->assertEquals('./templates_3/dirname.tpl', $this->relative($tpl->source->filepath)); - } - public function testGetTemplateFilepathName() - { - $tpl = $this->smarty->createTemplate('[foo]dirname.tpl'); - $this->assertEquals('./templates_4/dirname.tpl', $this->relative($tpl->source->filepath)); - } - - - public function testFetch() - { - $tpl = $this->smarty->createTemplate('dirname.tpl'); - $this->assertEquals('templates', $this->smarty->fetch($tpl)); - } - public function testFetchNumber() - { - $tpl = $this->smarty->createTemplate('[1]dirname.tpl'); - $this->assertEquals('templates_2', $this->smarty->fetch($tpl)); - } - public function testFetchNumeric() - { - $tpl = $this->smarty->createTemplate('[10]dirname.tpl'); - $this->assertEquals('templates_3', $this->smarty->fetch($tpl)); - } - public function testFetchName() - { - $tpl = $this->smarty->createTemplate('[foo]dirname.tpl'); - $this->assertEquals('templates_4', $this->smarty->fetch($tpl)); - } - - - public function testGetCompiledFilepath() - { - $tpl = $this->smarty->createTemplate('[foo]dirname.tpl'); - $expected = './templates_c/'.sha1($this->smarty->getTemplateDir('foo').'dirname.tpl').'.file.dirname.tpl.php'; - $this->assertEquals($expected, $this->relative($tpl->compiled->filepath)); - } - - - public function testGetCachedFilepath() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('[foo]dirname.tpl'); - $expected = './cache/'.sha1($this->smarty->getTemplateDir('foo').'dirname.tpl').'.dirname.tpl.php'; - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - - public function testFinalCleanup() - { - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/LoadFilterTests.php
Deleted
@@ -1,34 +0,0 @@ -<?php -/** -* Smarty PHPunit tests loadFilter method -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for loadFilter method tests -*/ -class LoadFilterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test loadFilter method - */ - public function testLoadFilter() - { - $this->smarty->loadFilter('output', 'trimwhitespace'); - $this->assertTrue(is_callable($this->smarty->registered_filters['output']['smarty_outputfilter_trimwhitespace'])); - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/MathTests.php
Deleted
@@ -1,108 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class MathTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test PHP function as modifier - */ - public function testSyntax() - { - $this->smarty->disableSecurity(); - $expected = "20 -- 4"; - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$y = 5}{$x * $y} -- {20 / 5}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testFunction() - { - $this->smarty->disableSecurity(); - $expected = "20 -- 4"; - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$y = 5}{math equation="x * y" x=$x y=$y} -- {math equation="20 / 5"}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testSyntaxSin() - { - $this->smarty->disableSecurity(); - $expected = sin(4) . ' -- ' . sin(4); - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$x|sin} -- {$y = sin($x)}{$y}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testFunctionSin() - { - $this->smarty->disableSecurity(); - $expected = sin(4) . ' -- ' . sin(4); - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{math equation="sin(x)" x=$x} -- {math equation="sin(x)" x=$x assign="y"}{$y}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testSyntaxFloat() - { - $this->smarty->disableSecurity(); - $expected = "22 -- 4.1"; - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$y = 5.5}{$x * $y} -- {20.5 / 5}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testFunctionFloat() - { - $this->smarty->disableSecurity(); - $expected = "22 -- 4.1"; - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$y = 5.5}{math equation="x * y" x=$x y=$y} -- {math equation="20.5 / 5"}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testSyntaxFormat() - { - $this->smarty->disableSecurity(); - $expected = "22.00 -- 4.10"; - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$y = 5.5}{$z = $x * $y}{"%0.2f"|sprintf:$z} -- {$x = 20.5}{$y = 5}{$z = $x / $y}{"%0.2f"|sprintf:$z}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testFunctionFormat() - { - $this->smarty->disableSecurity(); - $expected = "22.00 -- 4.10"; - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$y = 5.5}{math equation="x * y" x=$x y=$y format="%0.2f"} -- {math equation="20.5 / 5" format="%0.2f"}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testSyntaxString() - { - $this->smarty->disableSecurity(); - $expected = "22.00 -- 4.10"; - $tpl = $this->smarty->createTemplate('eval:{$x = "4"}{$y = "5.5"}{$z = $x * $y}{"%0.2f"|sprintf:$z} -- {$x = "20.5"}{$y = "5"}{$z = $x / $y}{"%0.2f"|sprintf:$z}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - - public function testFunctionString() - { - $this->smarty->disableSecurity(); - $expected = "22.00 -- 4.10"; - $tpl = $this->smarty->createTemplate('eval:{$x = "4"}{$y = "5.5"}{math equation="x * y" x=$x y=$y format="%0.2f"} -- {math equation="20.5 / 5" format="%0.2f"}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ModifierTests.php
Deleted
@@ -1,190 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for modifier tests -*/ -class ModifierTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test PHP function as modifier - */ - public function testPHPFunctionModifier() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{"hello world"|strlen}'); - $this->assertEquals("11", $this->smarty->fetch($tpl)); - } - public function testPHPFunctionModifier2() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{assign var=foo value="hello world"}{$foo|strlen}'); - $this->assertEquals("11", $this->smarty->fetch($tpl)); - } - /** - * test plugin as modifier - */ - public function testPluginModifier() - { - $tpl = $this->smarty->createTemplate('eval:{"hello world"|truncate:6}'); - $this->assertEquals("hel...", $this->smarty->fetch($tpl)); - } - /** - * test plugin as modifier with variable - */ - public function testPluginModifierVar() - { - $tpl = $this->smarty->createTemplate('eval:{"hello world"|truncate:$foo}'); - $tpl->assign('foo', 6); - $this->assertEquals("hel...", $this->smarty->fetch($tpl)); - } - public function testPluginModifierVar2() - { - $tpl = $this->smarty->createTemplate('eval:{"hello world"|truncate:$foo:" "}'); - $tpl->assign('foo', 6); - $this->assertEquals("hel ", $this->smarty->fetch($tpl)); - } - public function testPluginModifierVar3() - { - $tpl = $this->smarty->createTemplate('eval:{"hello world"|truncate:$foo:$bar}'); - $tpl->assign('foo', 6); - $tpl->assign('bar', ' '); - $this->assertEquals("hel ", $this->smarty->fetch($tpl)); - } - /** - * test modifier chaining - */ - public function testModifierChaining() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{"hello world"|truncate:6|strlen}'); - $this->assertEquals("6", $this->smarty->fetch($tpl)); - } - /** - * test modifier in {if} - */ - public function testModifierInsideIf() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{if "hello world"|truncate:6|strlen == 6}okay{/if}'); - $this->assertEquals("okay", $this->smarty->fetch($tpl)); - } - /** - * test modifier in expressions - */ - public function testModifierInsideExpression() - { - $this->smarty->security_policy->php_modifiers = array('strlen'); - $tpl = $this->smarty->createTemplate('eval:{"hello world"|truncate:6|strlen + ("hello world"|truncate:8|strlen)}'); - $this->assertEquals("14", $this->smarty->fetch($tpl)); - } - public function testModifierInsideExpression2() - { - $this->smarty->security_policy->php_modifiers = array('round'); - $tpl = $this->smarty->createTemplate('eval:{1.1*7.1|round}'); - $this->assertEquals("7.7", $this->smarty->fetch($tpl)); - } - /** - * test modifier at plugin result - */ - public function testModifierAtPluginResult() - { - $tpl = $this->smarty->createTemplate('eval:{counter|truncate:5 start=100000}'); - $this->assertEquals("10...", $this->smarty->fetch($tpl)); - } - /** - * test unqouted string as modifier parameter - */ - public function testModifierUnqoutedString() - { - $tpl = $this->smarty->createTemplate('eval:{"hello world"|replace:hello:xxxxx}'); - $this->assertEquals("xxxxx world", $this->smarty->fetch($tpl)); - } - /** - * test registered modifier function - */ - public function testModifierRegisteredFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier','testmodifier'); - $tpl = $this->smarty->createTemplate('eval:{$foo|testmodifier}'); - $tpl->assign('foo',2); - $this->assertEquals("mymodifier function 2", $this->smarty->fetch($tpl)); - } - /** - * test registered modifier static class - */ - public function testModifierRegisteredStaticClass() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier',array('testmodifierclass','staticcall')); - $tpl = $this->smarty->createTemplate('eval:{$foo|testmodifier}'); - $tpl->assign('foo',1); - $this->assertEquals("mymodifier static 1", $this->smarty->fetch($tpl)); - } - /** - * test registered modifier methode call - */ - public function testModifierRegisteredMethodCall() - { - $obj= new testmodifierclass(); - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier',array($obj,'method')); - $tpl = $this->smarty->createTemplate('eval:{$foo|testmodifier}'); - $tpl->assign('foo',3); - $this->assertEquals("mymodifier method 3", $this->smarty->fetch($tpl)); - } - /** - * test unknown modifier error - */ - public function testUnknownModifier() - { - try { - $this->smarty->fetch('eval:{"hello world"|unknown}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('unknown modifier "unknown"'), $e->getMessage()); - return; - } - $this->fail('Exception for unknown modifier has not been raised.'); - } - /** - * test default modifier - */ - public function testDefaultModifier() - { - $this->smarty->default_modifiers = array('escape'); - $tpl = $this->smarty->createTemplate('eval:{$foo}{$foo nofilter}'); - $tpl->assign('foo','<bar>'); - $this->assertEquals('<bar><bar>', $this->smarty->fetch($tpl)); - } - -} -function testmodifier($value) -{ - return "mymodifier function $value"; -} -class testmodifierclass { - static function staticcall($value) - { - return "mymodifier static $value"; - } - public function method($value) - { - return "mymodifier method $value"; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/MuteExpectedErrorsTests.php
Deleted
@@ -1,108 +0,0 @@ -<?php -/** - * Smarty PHPunit tests of filter - * - * @package PHPunit - * @author Rodney Rehm - */ - -/** - * class for filter tests - */ -class MuteExpectedErrorsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - protected $_errors = array(); - public function error_handler($errno, $errstr, $errfile, $errline, $errcontext) - { - $this->_errors[] = $errfile .' line ' . $errline; - } - - public function testMuted() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - Smarty::muteExpectedErrors(); - - $this->smarty->clearCache('default.tpl'); - $this->smarty->clearCompiledTemplate('default.tpl'); - $this->smarty->fetch('default.tpl'); - - $this->assertEquals($this->_errors, array()); - - @filemtime('ckxladanwijicajscaslyxck'); - $error = array( __FILE__ . ' line ' . (__LINE__ -1)); - $this->assertEquals($this->_errors, $error); - - Smarty::unmuteExpectedErrors(); - restore_error_handler(); - } - - public function testUnmuted() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - - $this->smarty->clearCache('default.tpl'); - $this->smarty->clearCompiledTemplate('default.tpl'); - $this->smarty->fetch('default.tpl'); - - $this->assertEquals(Smarty::$_IS_WINDOWS ? 5 : 4, count($this->_errors)); - - @filemtime('ckxladanwijicajscaslyxck'); - $error = array( __FILE__ . ' line ' . (__LINE__ -1)); - $this->assertEquals(Smarty::$_IS_WINDOWS ? 6 : 5, count($this->_errors)); - - restore_error_handler(); - } - - public function testMutedCaching() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - Smarty::muteExpectedErrors(); - - $this->smarty->caching = true; - $this->smarty->clearCache('default.tpl'); - $this->smarty->clearCompiledTemplate('default.tpl'); - $this->smarty->fetch('default.tpl'); - - $this->assertEquals($this->_errors, array()); - - @filemtime('ckxladanwijicajscaslyxck'); - $error = array( __FILE__ . ' line ' . (__LINE__ -1)); - $this->assertEquals($error,$this->_errors); - - Smarty::unmuteExpectedErrors(); - restore_error_handler(); - } - - public function testUnmutedCaching() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - - $this->smarty->caching = true; - $this->smarty->clearCache('default.tpl'); - $this->smarty->clearCompiledTemplate('default.tpl'); - $this->smarty->fetch('default.tpl'); - - $this->assertEquals(Smarty::$_IS_WINDOWS ? 7 : 5, count($this->_errors)); - - @filemtime('ckxladanwijicajscaslyxck'); - $error = array( __FILE__ . ' line ' . (__LINE__ -1)); - $this->assertEquals(Smarty::$_IS_WINDOWS ? 8 : 6, count($this->_errors)); - - restore_error_handler(); - } -}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ObjectVariableTests.php
Deleted
@@ -1,98 +0,0 @@ -<?php -/** -* Smarty PHPunit tests object variables -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for object variable tests -*/ -class ObjectVariableTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple object variable - */ - public function testObjectVariableOutput() - { - $object = new VariableObject; - $tpl = $this->smarty->createTemplate('string:{$object->hello}'); - $tpl->assign('object', $object); - $this->assertEquals('hello_world', $this->smarty->fetch($tpl)); - } - /** - * test simple object variable with variable property - */ - public function testObjectVariableOutputVariableProperty() - { - $object = new VariableObject; - $this->smarty->disableSecurity(); - $tpl = $this->smarty->createTemplate('string:{$p=\'hello\'}{$object->$p}'); - $tpl->assign('object', $object); - $this->assertEquals('hello_world', $this->smarty->fetch($tpl)); - } - /** - * test simple object variable with method - */ - public function testObjectVariableOutputMethod() - { - $object = new VariableObject; - $tpl = $this->smarty->createTemplate('string:{$object->myhello()}'); - $tpl->assign('object', $object); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } - /** - * test simple object variable with method - */ - public function testObjectVariableOutputVariableMethod() - { - $object = new VariableObject; - $this->smarty->disableSecurity(); - $tpl = $this->smarty->createTemplate('string:{$p=\'myhello\'}{$object->$p()}'); - $tpl->assign('object', $object); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } - /** - * test object variable in double quoted string - */ - public function testObjectVariableOutputDoubleQuotes() - { - $object = new VariableObject; - $tpl = $this->smarty->createTemplate('string:{"double quoted `$object->hello` okay"}'); - $tpl->assign('object', $object); - $this->assertEquals('double quoted hello_world okay', $this->smarty->fetch($tpl)); - } - /** - * test object variable in double quoted string as include name - */ - public function testObjectVariableOutputDoubleQuotesInclude() - { - $object = new VariableObject; - $tpl = $this->smarty->createTemplate('string:{include file="`$object->hello`_test.tpl"}'); - $tpl->assign('object', $object); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } -} - -Class VariableObject { - public $hello = 'hello_world'; - - function myhello() - { - return 'hello world'; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/OutputFilterTrimWhitespaceTests.php
Deleted
@@ -1,53 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for PHP resources -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for PHP resource tests -*/ -class OutputFilterTrimWhitespaceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->clearAllCache(); - $this->smarty->clearCompiledTemplate(); - $this->smarty->loadFilter('output', 'trimwhitespace'); - } - - public static function isRunnable() - { - return true; - } - - public function testWhitespace() - { - $expected = <<<EOT -<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <meta charset="utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>whitespace</title> <meta name="title" content="" /> <meta name="description" content="" /> <link rel="stylesheet" type="text/css" href="screen.css" /> </head> <body> <!--[if lte IE 6]>internet explorer conditional comment<![endif]--> <!--[if lte IE 7]>internet explorer conditional comment<![endif]--> <div class=" asdasd " id='not' data-one = " " style=" " title=' ' ></div> <img src="foo" alt="" /> <script type="text/javascript"> - foobar - </script> <script> - foobar - </script> <pre id="foobar"> - foobar - </pre> <pre> - foobar - </pre> <p> <textarea name="foobar"> - foobar - </textarea> </p> </body> </html> -EOT; - - $this->assertEquals($expected, $this->smarty->fetch('whitespace.tpl')); - } - - public function teardown() - { - $this->smarty->clearAllCache(); - $this->smarty->clearCompiledTemplate(); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/block.testblock.php
Deleted
@@ -1,35 +0,0 @@ -<?php -/** -* Smarty plugin for testing block plugins -* -* @package Smarty -* @subpackage PHPunitPlugin -*/ - -/** -* Smarty {testblock}{/testblock} block plugin -* -* @param string $content contents of the block -* @param object $smarty Smarty object -* @param boolean $ &$repeat repeat flag -* @param object $template template object -* @return string content re-formatted -*/ -function smarty_block_testblock($params, $content, $template, &$repeat) -{ - static $loop = 0; - if (isset($content)) { - $loop++; - if ($loop < 5) { - $repeat = true; - } else { - $repeat = false; - } - - return $loop; - } else { - $loop = 0; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/cacheresource.apctest.php
Deleted
@@ -1,23 +0,0 @@ -<?php - -require_once SMARTY_DIR . '../demo/plugins/cacheresource.apc.php'; - -class Smarty_CacheResource_Apctest extends Smarty_CacheResource_Apc { - public function get(Smarty_Internal_Template $_template) - { - $this->contents = array(); - $this->timestamps = array(); - $t = $this->getContent($_template); - return $t ? $t : null; - } - - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/cacheresource.memcachetest.php
Deleted
@@ -1,23 +0,0 @@ -<?php - -require_once SMARTY_DIR . '../demo/plugins/cacheresource.memcache.php'; - -class Smarty_CacheResource_Memcachetest extends Smarty_CacheResource_Memcache { - public function get(Smarty_Internal_Template $_template) - { - $this->contents = array(); - $this->timestamps = array(); - $t = $this->getContent($_template); - return $t ? $t : null; - } - - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/cacheresource.mysqltest.php
Deleted
@@ -1,15 +0,0 @@ -<?php - -require_once SMARTY_DIR . '../demo/plugins/cacheresource.mysql.php'; - -class Smarty_CacheResource_Mysqltest extends Smarty_CacheResource_Mysql { - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/compiler.test.php
Deleted
@@ -1,31 +0,0 @@ -<?php -// compiler.test.php -class smarty_compiler_test extends Smarty_Internal_CompileBase -{ - public function compile($args, $compiler) - { - $this->required_attributes = array('data'); - - $_attr = $this->getAttributes($compiler, $args); - - $this->openTag($compiler, 'test'); - - return "<?php echo 'test output'; ?>"; - } - -} - -// compiler.testclose.php -class smarty_compiler_testclose extends Smarty_Internal_CompileBase -{ - public function compile($args, $compiler) - { - - $this->closeTag($compiler, 'test'); - - return ''; - } - -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/compiler.testclose.php
Deleted
@@ -1,15 +0,0 @@ -<?php -// compiler.testclose.php -class smarty_compiler_testclose extends Smarty_Internal_CompileBase -{ - public function execute($args, $compiler) - { - - $this->closeTag($compiler, 'test'); - - return ''; - } - -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/function.chain1.php
Deleted
@@ -1,6 +0,0 @@ -<?php -function smarty_function_chain1($params,$tpl){ - $tpl->smarty->loadPlugin('smarty_function_chain2'); - return smarty_function_chain2($params,$tpl); -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/function.chain2.php
Deleted
@@ -1,6 +0,0 @@ -<?php -function smarty_function_chain2($params,$tpl){ - $tpl->smarty->loadPlugin('smarty_function_chain3'); - return smarty_function_chain3($params,$tpl); -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/function.chain3.php
Deleted
@@ -1,5 +0,0 @@ -<?php -function smarty_function_chain3($params,$tpl){ - return 'from chain3'; -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/insert.insertplugintest.php
Deleted
@@ -1,6 +0,0 @@ -<?php -function smarty_insert_insertplugintest($params,$template){ - global $insertglobal; - return 'param foo '.$params['foo'].' globalvar '.$insertglobal; -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.ambiguous.php
Deleted
@@ -1,56 +0,0 @@ -<?php - -/** - * Ambiguous Filename Custom Resource Example - * - * @package Resource-examples - * @author Rodney Rehm - */ -class Smarty_Resource_Ambiguous extends Smarty_Internal_Resource_File { - - protected $directory; - protected $segment; - - public function __construct($directory) - { - $this->directory = rtrim($directory, "/\\") . DS; - } - - public function setSegment($segment) - { - $this->segment = $segment; - } - - /** - * modify resource_name according to resource handlers specifications - * - * @param Smarty $smarty Smarty instance - * @param string $resource_name resource_name to make unique - * @return string unique resource name - */ - protected function buildUniqueResourceName(Smarty $smarty, $resource_name) - { - return get_class($this) . '#' . $this->segment . '#' . $resource_name; - } - - /** - * populate Source Object with meta data from Resource - * - * @param Smarty_Template_Source $source source object - * @param Smarty_Internal_Template $_template template object - */ - public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null) - { - $segment = ''; - if ($this->segment) { - $segment = rtrim($this->segment, "/\\") . DS; - } - - $source->filepath = $this->directory . $segment . $source->name; - $source->uid = sha1($source->filepath); - if ($source->smarty->compile_check && !isset($source->timestamp)) { - $source->timestamp = @filemtime($source->filepath); - $source->exists = !!$source->timestamp; - } - } -}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.db.php
Deleted
@@ -1,36 +0,0 @@ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, $smarty) -{ - // do database call here to fetch your template, - // populating $tpl_source - $tpl_source = '{$x="hello world"}{$x}'; - return true; -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, $smarty) -{ - // $tpl_timestamp. - $tpl_timestamp = (int)floor(time()/100)*100; - return true; -} - -function smarty_resource_db_secure($tpl_name, $smarty) -{ - // assume all templates are secure - return true; -} - -function smarty_resource_db_trusted($tpl_name, $smarty) -{ - // not used for templates -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.db2.php
Deleted
@@ -1,26 +0,0 @@ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db2.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -class Smarty_Resource_Db2 extends Smarty_Resource_Recompiled { - public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null) - { - $source->filepath = 'db2:'; - $source->uid = sha1($source->resource); - $source->timestamp = 0; - $source->exists = true; - } - - public function getContent(Smarty_Template_Source $source) - { - return '{$x="hello world"}{$x}'; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.db3.php
Deleted
@@ -1,31 +0,0 @@ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db3.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -class Smarty_Resource_Db3 extends Smarty_Resource { - public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null) - { - $source->filepath = 'db3:'; - $source->uid = sha1($source->resource); - $source->timestamp = 0; - $source->exists = true; - } - - public function getContent(Smarty_Template_Source $source) - { - return '{$x="hello world"}{$x}'; - } - - public function getCompiledFilepath(Smarty_Internal_Template $_template) - { - return false; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.db4.php
Deleted
@@ -1,29 +0,0 @@ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db3.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -class Smarty_Resource_Db4 extends Smarty_Resource { - public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null) - { - $source->filepath = 'db4:'; - $source->uid = sha1($source->resource); - $source->timestamp = 0; - $source->exists = true; - } - - public function getContent(Smarty_Template_Source $source) - { - if ($source instanceof Smarty_Config_Source) { - return "foo = 'bar'\n"; - } - return '{$x="hello world"}{$x}'; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.mysqlstest.php
Deleted
@@ -1,15 +0,0 @@ -<?php - -require_once SMARTY_DIR . '../demo/plugins/resource.mysqls.php'; - -class Smarty_Resource_Mysqlstest extends Smarty_Resource_Mysqls { - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PHPunitplugins/resource.mysqltest.php
Deleted
@@ -1,15 +0,0 @@ -<?php - -require_once SMARTY_DIR . '../demo/plugins/resource.mysql.php'; - -class Smarty_Resource_Mysqltest extends Smarty_Resource_Mysql { - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PhpResourceTests.php
Deleted
@@ -1,252 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for PHP resources -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for PHP resource tests -*/ -class PhpResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - protected function relative($path) - { - $path = str_replace( dirname(__FILE__), '.', $path ); - if (DS == "\\") { - $path = str_replace( "\\", "/", $path ); - } - return $path; - } - - /** - * test getTemplateFilepath - */ - public function testGetTemplateFilepath() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertEquals('./templates/phphelloworld.php', str_replace('\\', '/', $tpl->source->filepath)); - } - /** - * test getTemplateTimestamp - */ - public function testGetTemplateTimestamp() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertTrue(is_integer($tpl->source->timestamp)); - $this->assertEquals(10, strlen($tpl->source->timestamp)); - } - /** - * test getTemplateSource - *-/ - public function testGetTemplateSource() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertContains('php hello world', $tpl->source->content); - } - /** - * test usesCompiler - */ - public function testUsesCompiler() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertTrue($tpl->source->uncompiled); - } - /** - * test isEvaluated - */ - public function testIsEvaluated() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($tpl->source->recompiled); - } - /** - * test getCompiledFilepath - */ - public function testGetCompiledFilepath() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($tpl->compiled->filepath); - } - /** - * test getCompiledTimestamp - */ - public function testGetCompiledTimestamp() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($tpl->compiled->timestamp); - } - /** - * test mustCompile - */ - public function testMustCompile() - { - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($tpl->mustCompile()); - } - /** - * test getCachedFilepath - */ - public function testGetCachedFilepath() - { - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $expected = './cache/'.sha1($this->smarty->getTemplateDir(0) . 'phphelloworld.php').'.phphelloworld.php.php'; - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - /** - * test create cache file used by the following tests - */ - public function testCreateCacheFile() - { - // create dummy cache file - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertContains('php hello world', $this->smarty->fetch($tpl)); - } - /** - * test getCachedTimestamp caching enabled - */ - public function testGetCachedTimestamp() - { - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertTrue(is_integer($tpl->cached->timestamp)); - $this->assertEquals(10, strlen($tpl->cached->timestamp)); - } - /** - * test isCached - */ - public function testIsCached() - { - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertTrue($tpl->isCached()); - } - /** - * test isCached caching disabled - */ - public function testIsCachedCachingDisabled() - { - $this->smarty->allow_php_templates = true; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($tpl->isCached()); - } - /** - * test isCached on touched source - */ - public function testIsCachedTouchedSourcePrepare() - { - $this->smarty->allow_php_templates = true; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - sleep(1); - touch ($tpl->source->filepath); - } - public function testIsCachedTouchedSource() - { - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($tpl->isCached()); - } - /** - * test is cache file is written - */ - public function testWriteCachedContent() - { - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->smarty->fetch($tpl); - $this->assertTrue(file_exists($tpl->cached->filepath)); - } - /** - * test getRenderedTemplate - */ - public function testGetRenderedTemplate() - { - $this->smarty->allow_php_templates = true; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertContains('php hello world', $tpl->fetch()); - } - /** - * test $smarty->is_cached - */ - public function testSmartyIsCachedPrepare() - { - $this->smarty->allow_php_templates = true; - // prepare files for next test - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - // clean up for next tests - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->smarty->fetch($tpl); - } - public function testSmartyIsCached() - { - $this->smarty->allow_php_templates = true; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertTrue($this->smarty->isCached($tpl)); - } - /** - * test $smarty->is_cached caching disabled - */ - public function testSmartyIsCachedCachingDisabled() - { - $this->smarty->allow_php_templates = true; - $tpl = $this->smarty->createTemplate('php:phphelloworld.php'); - $this->assertFalse($this->smarty->isCached($tpl)); - } - - public function testGetTemplateFilepathName() - { - $this->smarty->addTemplateDir('./templates_2', 'foo'); - $tpl = $this->smarty->createTemplate('php:[foo]helloworld.php'); - $this->assertEquals('./templates_2/helloworld.php', $this->relative($tpl->source->filepath)); - } - - public function testGetCachedFilepathName() - { - $this->smarty->addTemplateDir('./templates_2', 'foo'); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $tpl = $this->smarty->createTemplate('php:[foo]helloworld.php'); - $expected = './cache/'.sha1($this->smarty->getTemplateDir('foo') .'helloworld.php').'.helloworld.php.php'; - $this->assertEquals($expected, $this->relative($tpl->cached->filepath)); - } - - /** - * final cleanup - */ - public function testFinalCleanup() - { - $this->smarty->clearAllCache(); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginBlockTextformatTests.php
Deleted
@@ -1,145 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginBlockTextformatTests extends PHPUnit_Framework_TestCase { - protected $string = "\n\nThis is foo.\nThis is foo.\nThis is foo.\nThis is foo.\nThis is foo.\nThis is foo.\n\nThis is bar.\n\nbar foo bar foo foo.\nbar foo bar foo foo.\nbar foo bar foo foo.\nbar foo bar foo foo.\nbar foo bar foo foo.\nbar foo bar foo foo.\nbar foo bar foo foo.\n\n"; - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = "\n\nThis is foo. This is foo. This is foo.\nThis is foo. This is foo. This is foo.\n\nThis is bar.\n\nbar foo bar foo foo. bar foo bar foo\nfoo. bar foo bar foo foo. bar foo bar\nfoo foo. bar foo bar foo foo. bar foo\nbar foo foo. bar foo bar foo foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "\n\nThis is foo. This is foo. This is foo.\nThis is foo. This is foo. This is foo.\n\nThis is bar.\n\nbar foo bar foo foo. bar foo bar foo\nfoo. bar foo bar foo foo. bar foo bar\nfoo foo. bar foo bar foo foo. bar foo\nbar foo foo. bar foo bar foo foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testIndent() - { - $result = "\n\n This is foo. This is foo. This is\n foo. This is foo. This is foo. This\n is foo.\n\n This is bar.\n\n bar foo bar foo foo. bar foo bar foo\n foo. bar foo bar foo foo. bar foo\n bar foo foo. bar foo bar foo foo.\n bar foo bar foo foo. bar foo bar foo\n foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testIndentWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "\n\n This is foo. This is foo. This is\n foo. This is foo. This is foo. This\n is foo.\n\n This is bar.\n\n bar foo bar foo foo. bar foo bar foo\n foo. bar foo bar foo foo. bar foo\n bar foo foo. bar foo bar foo foo.\n bar foo bar foo foo. bar foo bar foo\n foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testIndentFirst() - { - $result = "\n\n This is foo. This is foo. This\n is foo. This is foo. This is foo.\n This is foo.\n\n This is bar.\n\n bar foo bar foo foo. bar foo bar\n foo foo. bar foo bar foo foo. bar\n foo bar foo foo. bar foo bar foo\n foo. bar foo bar foo foo. bar foo\n bar foo foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 indent_first=4}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testIndentFirstWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "\n\n This is foo. This is foo. This\n is foo. This is foo. This is foo.\n This is foo.\n\n This is bar.\n\n bar foo bar foo foo. bar foo bar\n foo foo. bar foo bar foo foo. bar\n foo bar foo foo. bar foo bar foo\n foo. bar foo bar foo foo. bar foo\n bar foo foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 indent_first=4}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testIndentchar() - { - $result = "\n\n####This is foo. This is foo. This is\n####foo. This is foo. This is foo. This\n####is foo.\n\n####This is bar.\n\n####bar foo bar foo foo. bar foo bar foo\n####foo. bar foo bar foo foo. bar foo\n####bar foo foo. bar foo bar foo foo.\n####bar foo bar foo foo. bar foo bar foo\n####foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 indent_char="#"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testIndentcharWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "\n\n####This is foo. This is foo. This is\n####foo. This is foo. This is foo. This\n####is foo.\n\n####This is bar.\n\n####bar foo bar foo foo. bar foo bar foo\n####foo. bar foo bar foo foo. bar foo\n####bar foo foo. bar foo bar foo foo.\n####bar foo bar foo foo. bar foo bar foo\n####foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 indent_char="#"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testIndentcharFirst() - { - $result = "\n\n########This is foo. This is foo. This\n####is foo. This is foo. This is foo.\n####This is foo.\n\n########This is bar.\n\n########bar foo bar foo foo. bar foo bar\n####foo foo. bar foo bar foo foo. bar\n####foo bar foo foo. bar foo bar foo\n####foo. bar foo bar foo foo. bar foo\n####bar foo foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 indent_first=4 indent_char="#"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testIndentcharFirstWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "\n\n########This is foo. This is foo. This\n####is foo. This is foo. This is foo.\n####This is foo.\n\n########This is bar.\n\n########bar foo bar foo foo. bar foo bar\n####foo foo. bar foo bar foo foo. bar\n####foo bar foo foo. bar foo bar foo\n####foo. bar foo bar foo foo. bar foo\n####bar foo foo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 indent_first=4 indent_char="#"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testWrapchar() - { - $result = "## This is foo. This is foo. This is#foo. This is foo. This is foo. This#is foo.## This is bar.## bar foo bar foo foo. bar foo bar foo#foo. bar foo bar foo foo. bar foo#bar foo foo. bar foo bar foo foo.#bar foo bar foo foo. bar foo bar foo#foo.##"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 wrap_char="#"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testWrapcharWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "## This is foo. This is foo. This is#foo. This is foo. This is foo. This#is foo.## This is bar.## bar foo bar foo foo. bar foo bar foo#foo. bar foo bar foo foo. bar foo#bar foo foo. bar foo bar foo foo.#bar foo bar foo foo. bar foo bar foo#foo.##"; - $tpl = $this->smarty->createTemplate('eval:{textformat wrap=40 indent=4 wrap_char="#"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testStyleEmail() - { - $result = "\n\nThis is foo. This is foo. This is foo. This is foo. This is foo. This is\nfoo.\n\nThis is bar.\n\nbar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo\nbar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo\nfoo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat style="email"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testStyleEmailWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "\n\nThis is foo. This is foo. This is foo. This is foo. This is foo. This is\nfoo.\n\nThis is bar.\n\nbar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo\nbar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo\nfoo.\n\n"; - $tpl = $this->smarty->createTemplate('eval:{textformat style="email"}' . $this->string . '{/textformat}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginChainedLoadTests.php
Deleted
@@ -1,33 +0,0 @@ -<?php -/** -* Smarty PHPunit tests chained loading of dependend pluglind -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginChainedLoadTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testPluginChainedLoad() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertContains('from chain3', $this->smarty->fetch('test_plugin_chained_load.tpl')); - } - - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionFetchTests.php
Deleted
@@ -1,30 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginFunctionFetchTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testTodo() - { - // TODO: UnitTests for {fetch} - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionHtmlCheckboxesTests.php
Deleted
@@ -1,415 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -require_once(dirname(__FILE__) . '/helpers/_object_tostring.php'); - -/** -* class for modifier tests -*/ -class PluginFunctionHtmlCheckboxesTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - - public function testAssociativeArray() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testSeparateArrays() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" values=$cust_ids output=$cust_names selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_ids', array(1000,1001,1002,1003)); - $tpl->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testIterator() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" values=$cust_ids output=$cust_names selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_ids', array(1000,1001,1002,1003)); - $tpl->assign('cust_names', new ArrayIterator(array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown', - ))); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNoLabels() - { - $n = "\n"; - $expected = '<input type="checkbox" name="id[]" value="1000" />Joe Schmoe<br />' - . $n . '<input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith<br />' - . $n . '<input type="checkbox" name="id[]" value="1002" />Jane Johnson<br />' - . $n . '<input type="checkbox" name="id[]" value="1003" />Charlie Brown<br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios labels=false selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testWithId() - { - $n = "\n"; - $expected = '<label for="id_1000"><input type="checkbox" name="id[]" value="1000" id="id_1000" />Joe Schmoe</label><br />' - . $n . '<label for="id_1001"><input type="checkbox" name="id[]" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label for="id_1002"><input type="checkbox" name="id[]" value="1002" id="id_1002" />Jane Johnson</label><br />' - . $n . '<label for="id_work_s_ä"><input type="checkbox" name="id[]" value="work s ä" id="id_work_s_ä" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id label_ids=true separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 'work s ä' => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNullString() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="null" checked="checked" />null</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="" />empty string</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="0" />zero</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1" />one</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', "null"); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNullValue() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="null" />null</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="" checked="checked" />empty string</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="0" />zero</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1" />one</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', null); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testZeroValue() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="null" />null</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="" />empty string</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="0" checked="checked" />zero</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1" />one</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', 0); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testZeroStringValue() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="null" />null</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="" />empty string</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="0" checked="checked" />zero</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1" />one</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', "0"); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testEmptyStringValue() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="null" />null</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="" checked="checked" />empty string</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="0" />zero</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1" />one</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', ""); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testObject() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testObjectList() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => new _object_toString('Joe Schmoe'), - 1001 => new _object_toString('Jack Smith'), - 1002 => new _object_toString('Jane Johnson'), - 1003 => new _object_toString('Charlie Brown'), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - - protected $_errors = array(); - public function error_handler($errno, $errstr, $errfile, $errline, $errcontext) - { - $this->_errors[] = $errstr; - } - - public function testObjectNoString() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', new _object_noString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $tpl->fetch(); - $this->assertEquals(1, count($this->_errors)); - $this->assertStringEndsWith("without __toString() method", $this->_errors[0]); - - restore_error_handler(); - } - - public function testObjectListNoString() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => new _object_toString('Joe Schmoe'), - 1001 => new _object_noString('Jack Smith'), - 1002 => new _object_toString('Jane Johnson'), - 1003 => new _object_toString('Charlie Brown'), - )); - - $tpl->fetch(); - $this->assertEquals(1, count($this->_errors)); - $this->assertStringEndsWith("without __toString() method", $this->_errors[0]); - - restore_error_handler(); - } - - public function testDisabled() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" disabled="1" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" disabled="1" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" disabled="1" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" disabled="1" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled="1"}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testDisabledStrict() - { - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" disabled="disabled" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" disabled="disabled" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" disabled="disabled" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" disabled="disabled" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled=true strict=true}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled=1 strict=true}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - - $n = "\n"; - $expected = '<label><input type="checkbox" name="id[]" value="1000" disabled="disabled" />Joe Schmoe</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1001" checked="checked" disabled="disabled" />Jack Smith</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1002" disabled="disabled" />Jane Johnson</label><br />' - . $n . '<label><input type="checkbox" name="id[]" value="1003" disabled="disabled" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_checkboxes name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled="disabled" strict=true}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionHtmlImageTests.php
Deleted
@@ -1,30 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginFunctionHtmlImageTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testFoo() - { - // TODO: UnitTests for {html_image} - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionHtmlOptionsTests.php
Deleted
@@ -1,505 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -require_once(dirname(__FILE__) . '/helpers/_object_tostring.php'); - -/** -* class for modifier tests -*/ -class PluginFunctionHtmlOptionsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - - public function testAssociativeArray() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect}'); - $tpl->assign('mySelect', 9904); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testSeparateArrays() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="56">Joe Schmoe</option>' - . $n . '<option value="92" selected="selected">Jane Johnson</option>' - . $n . '<option value="13">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" values=$cust_ids output=$cust_names selected=$customer_id}'); - $tpl->assign('customer_id', 92); - $tpl->assign('cust_ids', array(56,92,13)); - $tpl->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testIterator() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect}'); - $tpl->assign('mySelect', 9904); - $tpl->assign('myOptions', new ArrayIterator(array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - ))); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testOptgroup() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<optgroup label="Sport">' - . $n . '<option value="6">Golf</option>' - . $n . '<option value="9">Cricket</option>' - . $n . '<option value="7" selected="selected">Swim</option>' - . $n . '</optgroup>' - . $n . '<optgroup label="Rest">' - . $n . '<option value="3">Sauna</option>' - . $n . '<option value="1">Massage</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$lookups selected=$fav}'); - $tpl->assign('fav', 7); - $tpl->assign('lookups', array( - 'Sport' => array( - 6 => 'Golf', - 9 => 'Cricket', - 7 => 'Swim' - ), - 'Rest' => array( - 3 => 'Sauna', - 1 => 'Massage' - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNullString() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="null" selected="selected">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '<optgroup label="optgroup">' - . $n . '<option value="null" selected="selected">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$array selected=$selected}'); - $tpl->assign('selected', "null"); - $tpl->assign('array', array( - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - 'optgroup' => array( - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNullValue() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="" selected="selected">empty string</option>' - . $n . '<option value="null">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '<optgroup label="optgroup">' - . $n . '<option value="" selected="selected">empty string</option>' - . $n . '<option value="null">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$array selected=$selected}'); - $tpl->assign('selected', null); - $tpl->assign('array', array( - '' => 'empty string', - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - 'optgroup' => array( - '' => 'empty string', - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - - public function testZeroValue() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="null">null</option>' - . $n . '<option value="0" selected="selected">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '<optgroup label="optgroup">' - . $n . '<option value="null">null</option>' - . $n . '<option value="0" selected="selected">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$array selected=$selected}'); - $tpl->assign('selected', 0); - $tpl->assign('array', array( - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - 'optgroup' => array( - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - public function testZeroStringValue() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="null">null</option>' - . $n . '<option value="0" selected="selected">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '<optgroup label="optgroup">' - . $n . '<option value="null">null</option>' - . $n . '<option value="0" selected="selected">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$array selected=$selected}'); - $tpl->assign('selected', "0"); - $tpl->assign('array', array( - 'null' => "null", - 0 => 'zero', - 1 => 'one', - 2 => 'two', - 'optgroup' => array( - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testEmptyStringValue() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="null">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '<optgroup label="optgroup">' - . $n . '<option value="null">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$array selected=$selected}'); - $tpl->assign('selected', ""); - $tpl->assign('array', array( - 'null' => 'null', - '0' => 'zero', - '1' => 'one', - '2' => 'two', - 'optgroup' => array( - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testEmptyStringValues() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="" selected="selected">empty string</option>' - . $n . '<option value="null">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '<optgroup label="optgroup">' - . $n . '<option value="" selected="selected">empty string</option>' - . $n . '<option value="null">null</option>' - . $n . '<option value="0">zero</option>' - . $n . '<option value="1">one</option>' - . $n . '<option value="2">two</option>' - . $n . '</optgroup>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name=foo options=$array selected=$selected}'); - $tpl->assign('selected', ""); - $tpl->assign('array', array( - '' => 'empty string', - 'null' => 'null', - '0' => 'zero', - '1' => 'one', - '2' => 'two', - 'optgroup' => array( - '' => 'empty string', - 'null' => 'null', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - ), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testObject() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testObjectList() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => new _object_toString('Joe Schmoe'), - 9904 => new _object_toString('Jack Smith'), - 2003 => new _object_toString('Charlie Brown'), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - protected $_errors = array(); - public function error_handler($errno, $errstr, $errfile, $errline, $errcontext) - { - $this->_errors[] = $errstr; - } - - public function testObjectNoString() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect}'); - $tpl->assign('mySelect', new _object_noString(9904)); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $tpl->fetch(); - $this->assertEquals(1, count($this->_errors)); - $this->assertStringEndsWith("without __toString() method", $this->_errors[0]); - - restore_error_handler(); - } - - public function testObjectListNoString() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => new _object_toString('Joe Schmoe'), - 9904 => new _object_noString('Jack Smith'), - 2003 => new _object_toString('Charlie Brown'), - )); - - $tpl->fetch(); - $this->assertEquals(1, count($this->_errors)); - $this->assertStringEndsWith("without __toString() method", $this->_errors[0]); - - restore_error_handler(); - } - - public function testDisabled() - { - $n = "\n"; - $expected = '<select name="foo" disabled="1">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect disabled=1}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testDisabledStrict() - { - $n = "\n"; - $expected = '<select name="foo">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect disabled=1 strict=true}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - - $n = "\n"; - $expected = '<select name="foo" disabled="disabled">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect disabled=true strict=true}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - - $n = "\n"; - $expected = '<select name="foo" disabled="disabled">' - . $n . '<option value="1800">Joe Schmoe</option>' - . $n . '<option value="9904" selected="selected">Jack Smith</option>' - . $n . '<option value="2003">Charlie Brown</option>' - . $n . '</select>' . $n; - - $tpl = $this->smarty->createTemplate('eval:{html_options name="foo" options=$myOptions selected=$mySelect disabled="disabled" strict=true}'); - $tpl->assign('mySelect', new _object_toString(9904)); - $tpl->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionHtmlRadiosTests.php
Deleted
@@ -1,415 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -require_once(dirname(__FILE__) . '/helpers/_object_tostring.php'); - -/** -* class for modifier tests -*/ -class PluginFunctionHtmlRadiosTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - - public function testAssociativeArray() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testSeparateArrays() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" values=$cust_ids output=$cust_names selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_ids', array(1000,1001,1002,1003)); - $tpl->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testIterator() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" values=$cust_ids output=$cust_names selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_ids', array(1000,1001,1002,1003)); - $tpl->assign('cust_names', new ArrayIterator(array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown', - ))); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNoLabels() - { - $n = "\n"; - $expected = '<input type="radio" name="id" value="1000" />Joe Schmoe<br />' - . $n . '<input type="radio" name="id" value="1001" checked="checked" />Jack Smith<br />' - . $n . '<input type="radio" name="id" value="1002" />Jane Johnson<br />' - . $n . '<input type="radio" name="id" value="1003" />Charlie Brown<br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios labels=false selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testWithId() - { - $n = "\n"; - $expected = '<label for="id_1000"><input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br />' - . $n . '<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br />' - . $n . '<label for="id_work_s_ä"><input type="radio" name="id" value="work s ä" id="id_work_s_ä" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id label_ids=true separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 'work s ä' => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNullString() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="null" checked="checked" />null</label><br />' - . $n . '<label><input type="radio" name="id" value="" />empty string</label><br />' - . $n . '<label><input type="radio" name="id" value="0" />zero</label><br />' - . $n . '<label><input type="radio" name="id" value="1" />one</label><br />' - . $n . '<label><input type="radio" name="id" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', "null"); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testNullValue() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="null" />null</label><br />' - . $n . '<label><input type="radio" name="id" value="" checked="checked" />empty string</label><br />' - . $n . '<label><input type="radio" name="id" value="0" />zero</label><br />' - . $n . '<label><input type="radio" name="id" value="1" />one</label><br />' - . $n . '<label><input type="radio" name="id" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', null); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testZeroValue() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="null" />null</label><br />' - . $n . '<label><input type="radio" name="id" value="" />empty string</label><br />' - . $n . '<label><input type="radio" name="id" value="0" checked="checked" />zero</label><br />' - . $n . '<label><input type="radio" name="id" value="1" />one</label><br />' - . $n . '<label><input type="radio" name="id" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', 0); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testZeroStringValue() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="null" />null</label><br />' - . $n . '<label><input type="radio" name="id" value="" />empty string</label><br />' - . $n . '<label><input type="radio" name="id" value="0" checked="checked" />zero</label><br />' - . $n . '<label><input type="radio" name="id" value="1" />one</label><br />' - . $n . '<label><input type="radio" name="id" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', "0"); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testEmptyStringValue() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="null" />null</label><br />' - . $n . '<label><input type="radio" name="id" value="" checked="checked" />empty string</label><br />' - . $n . '<label><input type="radio" name="id" value="0" />zero</label><br />' - . $n . '<label><input type="radio" name="id" value="1" />one</label><br />' - . $n . '<label><input type="radio" name="id" value="2" />two</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$options selected=$selected separator="<br />"}'); - $tpl->assign('selected', ""); - $tpl->assign('options', array( - "null" => 'null', - '' => 'empty string', - 0 => 'zero', - 1 => 'one', - 2 => 'two', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testObject() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testObjectList() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => new _object_toString('Joe Schmoe'), - 1001 => new _object_toString('Jack Smith'), - 1002 => new _object_toString('Jane Johnson'), - 1003 => new _object_toString('Charlie Brown'), - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - - protected $_errors = array(); - public function error_handler($errno, $errstr, $errfile, $errline, $errcontext) - { - $this->_errors[] = $errstr; - } - - public function testObjectNoString() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', new _object_noString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $tpl->fetch(); - $this->assertEquals(1, count($this->_errors)); - $this->assertStringEndsWith("without __toString() method", $this->_errors[0]); - - restore_error_handler(); - } - - public function testObjectListNoString() - { - $this->_errors = array(); - set_error_handler(array($this, 'error_handler')); - - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"}'); - $tpl->assign('customer_id', 1001); - $tpl->assign('cust_radios', array( - 1000 => new _object_toString('Joe Schmoe'), - 1001 => new _object_noString('Jack Smith'), - 1002 => new _object_toString('Jane Johnson'), - 1003 => new _object_toString('Charlie Brown'), - )); - - $tpl->fetch(); - $this->assertEquals(1, count($this->_errors)); - $this->assertStringEndsWith("without __toString() method", $this->_errors[0]); - - restore_error_handler(); - } - - public function testDisabled() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" disabled="1" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" disabled="1" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" disabled="1" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" disabled="1" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled=1}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } - - public function testDisabledStrict() - { - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" disabled="disabled" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" disabled="disabled" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" disabled="disabled" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" disabled="disabled" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled=true strict=true}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled=1 strict=true}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - - $n = "\n"; - $expected = '<label><input type="radio" name="id" value="1000" disabled="disabled" />Joe Schmoe</label><br />' - . $n . '<label><input type="radio" name="id" value="1001" checked="checked" disabled="disabled" />Jack Smith</label><br />' - . $n . '<label><input type="radio" name="id" value="1002" disabled="disabled" />Jane Johnson</label><br />' - . $n . '<label><input type="radio" name="id" value="1003" disabled="disabled" />Charlie Brown</label><br />'; - - $tpl = $this->smarty->createTemplate('eval:{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />" disabled="disabled" strict=true}'); - $tpl->assign('customer_id', new _object_toString(1001)); - $tpl->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown', - )); - - $this->assertEquals($expected, $tpl->fetch()); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionHtmlSelectDateTests.php
Deleted
@@ -1,635 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginFunctionHtmlSelectDateTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - - $this->now = mktime( 15, 0, 0, 2, 20, 2013 ); - } - - public static function isRunnable() - { - return true; - } - - - protected $now = null; - protected $years = array( - 'start_2005' => '<option value="2005">2005</option> -<option value="2006">2006</option> -<option value="2007">2007</option> -<option value="2008">2008</option> -<option value="2009">2009</option> -<option value="2010">2010</option> -<option value="2011">2011</option> -<option value="2012">2012</option> -<option value="2013" selected="selected">2013</option>', - 'start_+5' => '<option value="2013" selected="selected">2013</option> -<option value="2014">2014</option> -<option value="2015">2015</option> -<option value="2016">2016</option> -<option value="2017">2017</option> -<option value="2018">2018</option>', - 'start_-5' => '<option value="2008">2008</option> -<option value="2009">2009</option> -<option value="2010">2010</option> -<option value="2011">2011</option> -<option value="2012">2012</option> -<option value="2013" selected="selected">2013</option>', - 'end_2005' => '<option value="2005">2005</option> -<option value="2006">2006</option> -<option value="2007">2007</option> -<option value="2008">2008</option> -<option value="2009">2009</option> -<option value="2010">2010</option> -<option value="2011">2011</option> -<option value="2012">2012</option> -<option value="2013" selected="selected">2013</option>', - 'end_+5' => '<option value="2013" selected="selected">2013</option> -<option value="2014">2014</option> -<option value="2015">2015</option> -<option value="2016">2016</option> -<option value="2017">2017</option> -<option value="2018">2018</option>', - 'end_-5' => '<option value="2008">2008</option> -<option value="2009">2009</option> -<option value="2010">2010</option> -<option value="2011">2011</option> -<option value="2012">2012</option> -<option value="2013" selected="selected">2013</option>', - 'default' => '<option value="2013" selected="selected">2013</option>', - 'none' => '<option value="2013">2013</option>', - ); - - protected $months = array( - 'none' => '<option value="01">January</option> -<option value="02">February</option> -<option value="03">March</option> -<option value="04">April</option> -<option value="05">May</option> -<option value="06">June</option> -<option value="07">July</option> -<option value="08">August</option> -<option value="09">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12">December</option>', - 'default' => '<option value="01">January</option> -<option value="02" selected="selected">February</option> -<option value="03">March</option> -<option value="04">April</option> -<option value="05">May</option> -<option value="06">June</option> -<option value="07">July</option> -<option value="08">August</option> -<option value="09">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12">December</option>', - 'format_%b' => '<option value="01">Jan</option> -<option value="02" selected="selected">Feb</option> -<option value="03">Mar</option> -<option value="04">Apr</option> -<option value="05">May</option> -<option value="06">Jun</option> -<option value="07">Jul</option> -<option value="08">Aug</option> -<option value="09">Sep</option> -<option value="10">Oct</option> -<option value="11">Nov</option> -<option value="12">Dec</option>', - 'format_value_%b' => '<option value="Jan">January</option> -<option value="Feb" selected="selected">February</option> -<option value="Mar">March</option> -<option value="Apr">April</option> -<option value="May">May</option> -<option value="Jun">June</option> -<option value="Jul">July</option> -<option value="Aug">August</option> -<option value="Sep">September</option> -<option value="Oct">October</option> -<option value="Nov">November</option> -<option value="Dec">December</option>', - 'names' => '<option value="01">alpha</option> -<option value="02" selected="selected">bravo</option> -<option value="03">charlie</option> -<option value="04">delta</option> -<option value="05">echo</option> -<option value="06">foxtrot</option> -<option value="07">golf</option> -<option value="08">hotel</option> -<option value="09">india</option> -<option value="10">juliet</option> -<option value="11">kilo</option> -<option value="12">lima</option>', - ); - - protected $days = array( - 'none' => '<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> -<option value="4">04</option> -<option value="5">05</option> -<option value="6">06</option> -<option value="7">07</option> -<option value="8">08</option> -<option value="9">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option>', - 'default' => '<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> -<option value="4">04</option> -<option value="5">05</option> -<option value="6">06</option> -<option value="7">07</option> -<option value="8">08</option> -<option value="9">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20" selected="selected">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option>', - 'format_%03d' => '<option value="1">001</option> -<option value="2">002</option> -<option value="3">003</option> -<option value="4">004</option> -<option value="5">005</option> -<option value="6">006</option> -<option value="7">007</option> -<option value="8">008</option> -<option value="9">009</option> -<option value="10">010</option> -<option value="11">011</option> -<option value="12">012</option> -<option value="13">013</option> -<option value="14">014</option> -<option value="15">015</option> -<option value="16">016</option> -<option value="17">017</option> -<option value="18">018</option> -<option value="19">019</option> -<option value="20" selected="selected">020</option> -<option value="21">021</option> -<option value="22">022</option> -<option value="23">023</option> -<option value="24">024</option> -<option value="25">025</option> -<option value="26">026</option> -<option value="27">027</option> -<option value="28">028</option> -<option value="29">029</option> -<option value="30">030</option> -<option value="31">031</option>', - 'format_value_%03d' => '<option value="001">01</option> -<option value="002">02</option> -<option value="003">03</option> -<option value="004">04</option> -<option value="005">05</option> -<option value="006">06</option> -<option value="007">07</option> -<option value="008">08</option> -<option value="009">09</option> -<option value="010">10</option> -<option value="011">11</option> -<option value="012">12</option> -<option value="013">13</option> -<option value="014">14</option> -<option value="015">15</option> -<option value="016">16</option> -<option value="017">17</option> -<option value="018">18</option> -<option value="019">19</option> -<option value="020" selected="selected">20</option> -<option value="021">21</option> -<option value="022">22</option> -<option value="023">23</option> -<option value="024">24</option> -<option value="025">25</option> -<option value="026">26</option> -<option value="027">27</option> -<option value="028">28</option> -<option value="029">29</option> -<option value="030">30</option> -<option value="031">31</option>', - ); - - protected function reverse($string) - { - $t = explode( "\n", $string ); - $t = array_reverse($t); - return join("\n", $t); - } - - - - public function testDefault() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .'}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testPrefix() - { - $n = "\n"; - $result = '<select name="foobar_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="foobar_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="foobar_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' prefix="foobar_"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testFieldArray() - { - $n = "\n"; - $result = '<select name="namorized[Date_Month]">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="namorized[Date_Day]">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="namorized[Date_Year]">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' field_array="namorized"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="namorized[foobar_Month]">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Day]">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Year]">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' field_array="namorized" prefix="foobar_"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testExtra() - { - $n = "\n"; - $result = '<select name="Date_Month" data-foo="xy">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day" data-foo="xy">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year" data-foo="xy">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' all_extra="data-foo=\"xy\""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month" data-foo="month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day" data-foo="day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year" data-foo="year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' day_extra="data-foo=\"day\"" month_extra="data-foo=\"month\"" year_extra="data-foo=\"year\""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month" data_foo="foo">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day" data_foo="foo">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year" data_foo="foo">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' data_foo="foo"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testFieldOrder() - { - $n = "\n"; - $result = '<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' field_order="DMY"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>' - .$n.'<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' field_order="YMD"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - } - - public function testFieldSeparator() - { - $n = "\n"; - $result = '<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .' - <select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .' - <select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' field_order="DMY" field_separator=" - "}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>' - .' / <select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .' / <select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' field_order="YMD" field_separator=" / "}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEmpty() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n.'<option value=""></option>'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n.'<option value=""></option>'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value=""></option>'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' all_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n.'<option value="">all</option>'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n.'<option value="">all</option>'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value="">all</option>'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' all_empty="all"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value=""></option>'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' year_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n.'<option value="">month</option>'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n.'<option value="">day</option>'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value="">year</option>'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' year_empty="year" month_empty="month" day_empty="day"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEmptyUnset() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n.'<option value=""></option>'.$n. $this->months['none'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n.'<option value=""></option>'.$n. $this->days['none'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value=""></option>'.$n. $this->years['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time=null all_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n.'<option value="">all</option>'.$n. $this->months['none'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n.'<option value="">all</option>'.$n. $this->days['none'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value="">all</option>'.$n. $this->years['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time=null all_empty="all"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n. $this->months['none'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['none'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value=""></option>'.$n. $this->years['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time=null year_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n.'<option value="">month</option>'.$n. $this->months['none'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n.'<option value="">day</option>'.$n. $this->days['none'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n.'<option value="">year</option>'.$n. $this->years['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time=null year_empty="year" month_empty="month" day_empty="day"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testId() - { - $n = "\n"; - $result = '<select name="Date_Month" id="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day" id="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year" id="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' all_id=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month" id="all-Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day" id="all-Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year" id="all-Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' all_id="all-"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month" id="month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day" id="day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year" id="year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' year_id="year" month_id="month" day_id="day"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - - public function testStartYearAbsolute() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['start_2005'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' start_year=2005}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testStartYearRelative() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['start_+5'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' start_year="+5"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testStartYearRelativeNegative() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['start_-5'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' start_year="-5"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - public function testEndYearAbsolute() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['end_2005'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' end_year=2005}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEndYearRelative() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['end_+5'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' end_year="+5"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEndYearRelativeNegative() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['end_-5'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' end_year="-5"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - public function testDisplayDaysMonthYear() - { - $n = "\n"; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' display_days=false}'); - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' display_months=false}'); - $result = '<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' display_years=false}'); - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>'; - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testYearsReversed() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->reverse($this->years['start_2005']) .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' start_year=2005 reverse_years=true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->reverse($this->years['start_+5']) .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' start_year="+5" reverse_years=true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testYearText() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<input type="text" name="Date_Year" value="2013" size="4" maxlength="4" />'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' year_as_text=true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="foo_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="foo_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<input type="text" name="foo_Year" value="2013" size="4" maxlength="4" />'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' year_as_text=true prefix="foo_"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - public function testMonthFormat() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['format_%b'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' month_format="%b"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testMonthFormatValue() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['format_value_%b'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' month_value_format="%b"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testMonthNames() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['names'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{$names = [1 => "alpha","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliet","kilo","lima"]}{html_select_date time='. $this->now .' month_names=$names}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - public function testDayFormat() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['format_%03d'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' day_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDayFormatValue() - { - $n = "\n"; - $result = '<select name="Date_Month">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="Date_Day">'.$n. $this->days['format_value_%03d'] .$n.'</select>' - .$n.'<select name="Date_Year">'.$n. $this->years['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_date time='. $this->now .' day_value_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testTimeArray() - { - $n = "\n"; - $result = '<select name="namorized[foobar_Month]">'.$n. $this->months['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Day]">'.$n. $this->days['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Year]">'.$n. $this->years['default'] .$n.'</select>'; - - $date_array = array( - 'namorized' => array( - 'foobar_Month' => '02', - 'foobar_Day' => '20', - 'foobar_Year' => '2013', - ), - ); - - $tpl = $this->smarty->createTemplate('eval:{html_select_date time=$date_array.namorized field_array="namorized" prefix="foobar_"}'); - $tpl->assign('date_array', $date_array); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{html_select_date time=$date_array field_array="namorized" prefix="foobar_"}'); - $tpl->assign('date_array', $date_array); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionHtmlSelectTimeTests.php
Deleted
@@ -1,1088 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginFunctionHtmlSelectTimeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - - $this->now = mktime( 16, 15, 11, 2, 20, 2011 ); - } - - public static function isRunnable() - { - return true; - } - - protected $now = null; - protected $hours = array( - 'none' => '<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option>', - 'default' => '<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16" selected="selected">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option>', - '12h' => '<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04" selected="selected">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option>', - 'format_%03d' => '<option value="00">000</option> -<option value="01">001</option> -<option value="02">002</option> -<option value="03">003</option> -<option value="04">004</option> -<option value="05">005</option> -<option value="06">006</option> -<option value="07">007</option> -<option value="08">008</option> -<option value="09">009</option> -<option value="10">010</option> -<option value="11">011</option> -<option value="12">012</option> -<option value="13">013</option> -<option value="14">014</option> -<option value="15">015</option> -<option value="16" selected="selected">016</option> -<option value="17">017</option> -<option value="18">018</option> -<option value="19">019</option> -<option value="20">020</option> -<option value="21">021</option> -<option value="22">022</option> -<option value="23">023</option>', - 'format_value_%03d' => '<option value="000">00</option> -<option value="001">01</option> -<option value="002">02</option> -<option value="003">03</option> -<option value="004">04</option> -<option value="005">05</option> -<option value="006">06</option> -<option value="007">07</option> -<option value="008">08</option> -<option value="009">09</option> -<option value="010">10</option> -<option value="011">11</option> -<option value="012">12</option> -<option value="013">13</option> -<option value="014">14</option> -<option value="015">15</option> -<option value="016" selected="selected">16</option> -<option value="017">17</option> -<option value="018">18</option> -<option value="019">19</option> -<option value="020">20</option> -<option value="021">21</option> -<option value="022">22</option> -<option value="023">23</option>', - ); - protected $minutes = array( - 'none' => '<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option>', - 'default' => '<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15" selected="selected">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option>', - '30' => '<option value="00" selected="selected">00</option> -<option value="30">30</option>', - '15' => '<option value="00">00</option> -<option value="15" selected="selected">15</option> -<option value="30">30</option> -<option value="45">45</option>', - '10' => '<option value="00">00</option> -<option value="10" selected="selected">10</option> -<option value="20">20</option> -<option value="30">30</option> -<option value="40">40</option> -<option value="50">50</option>', - '5' => '<option value="00">00</option> -<option value="05">05</option> -<option value="10">10</option> -<option value="15" selected="selected">15</option> -<option value="20">20</option> -<option value="25">25</option> -<option value="30">30</option> -<option value="35">35</option> -<option value="40">40</option> -<option value="45">45</option> -<option value="50">50</option> -<option value="55">55</option>', - 'format_%03d' => '<option value="00">000</option> -<option value="01">001</option> -<option value="02">002</option> -<option value="03">003</option> -<option value="04">004</option> -<option value="05">005</option> -<option value="06">006</option> -<option value="07">007</option> -<option value="08">008</option> -<option value="09">009</option> -<option value="10">010</option> -<option value="11">011</option> -<option value="12">012</option> -<option value="13">013</option> -<option value="14">014</option> -<option value="15" selected="selected">015</option> -<option value="16">016</option> -<option value="17">017</option> -<option value="18">018</option> -<option value="19">019</option> -<option value="20">020</option> -<option value="21">021</option> -<option value="22">022</option> -<option value="23">023</option> -<option value="24">024</option> -<option value="25">025</option> -<option value="26">026</option> -<option value="27">027</option> -<option value="28">028</option> -<option value="29">029</option> -<option value="30">030</option> -<option value="31">031</option> -<option value="32">032</option> -<option value="33">033</option> -<option value="34">034</option> -<option value="35">035</option> -<option value="36">036</option> -<option value="37">037</option> -<option value="38">038</option> -<option value="39">039</option> -<option value="40">040</option> -<option value="41">041</option> -<option value="42">042</option> -<option value="43">043</option> -<option value="44">044</option> -<option value="45">045</option> -<option value="46">046</option> -<option value="47">047</option> -<option value="48">048</option> -<option value="49">049</option> -<option value="50">050</option> -<option value="51">051</option> -<option value="52">052</option> -<option value="53">053</option> -<option value="54">054</option> -<option value="55">055</option> -<option value="56">056</option> -<option value="57">057</option> -<option value="58">058</option> -<option value="59">059</option>', - 'format_value_%03d' => '<option value="000">00</option> -<option value="001">01</option> -<option value="002">02</option> -<option value="003">03</option> -<option value="004">04</option> -<option value="005">05</option> -<option value="006">06</option> -<option value="007">07</option> -<option value="008">08</option> -<option value="009">09</option> -<option value="010">10</option> -<option value="011">11</option> -<option value="012">12</option> -<option value="013">13</option> -<option value="014">14</option> -<option value="015" selected="selected">15</option> -<option value="016">16</option> -<option value="017">17</option> -<option value="018">18</option> -<option value="019">19</option> -<option value="020">20</option> -<option value="021">21</option> -<option value="022">22</option> -<option value="023">23</option> -<option value="024">24</option> -<option value="025">25</option> -<option value="026">26</option> -<option value="027">27</option> -<option value="028">28</option> -<option value="029">29</option> -<option value="030">30</option> -<option value="031">31</option> -<option value="032">32</option> -<option value="033">33</option> -<option value="034">34</option> -<option value="035">35</option> -<option value="036">36</option> -<option value="037">37</option> -<option value="038">38</option> -<option value="039">39</option> -<option value="040">40</option> -<option value="041">41</option> -<option value="042">42</option> -<option value="043">43</option> -<option value="044">44</option> -<option value="045">45</option> -<option value="046">46</option> -<option value="047">47</option> -<option value="048">48</option> -<option value="049">49</option> -<option value="050">50</option> -<option value="051">51</option> -<option value="052">52</option> -<option value="053">53</option> -<option value="054">54</option> -<option value="055">55</option> -<option value="056">56</option> -<option value="057">57</option> -<option value="058">58</option> -<option value="059">59</option>', - ); - protected $seconds = array( - 'none' => '<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option>', - 'default' => '<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11" selected="selected">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option>', - '30' => '<option value="00" selected="selected">00</option> -<option value="30">30</option>', - '15' => '<option value="00" selected="selected">00</option> -<option value="15">15</option> -<option value="30">30</option> -<option value="45">45</option>', - '10' => '<option value="00">00</option> -<option value="10" selected="selected">10</option> -<option value="20">20</option> -<option value="30">30</option> -<option value="40">40</option> -<option value="50">50</option>', - '5' => '<option value="00">00</option> -<option value="05">05</option> -<option value="10" selected="selected">10</option> -<option value="15">15</option> -<option value="20">20</option> -<option value="25">25</option> -<option value="30">30</option> -<option value="35">35</option> -<option value="40">40</option> -<option value="45">45</option> -<option value="50">50</option> -<option value="55">55</option>', - 'format_%03d' => '<option value="00">000</option> -<option value="01">001</option> -<option value="02">002</option> -<option value="03">003</option> -<option value="04">004</option> -<option value="05">005</option> -<option value="06">006</option> -<option value="07">007</option> -<option value="08">008</option> -<option value="09">009</option> -<option value="10">010</option> -<option value="11" selected="selected">011</option> -<option value="12">012</option> -<option value="13">013</option> -<option value="14">014</option> -<option value="15">015</option> -<option value="16">016</option> -<option value="17">017</option> -<option value="18">018</option> -<option value="19">019</option> -<option value="20">020</option> -<option value="21">021</option> -<option value="22">022</option> -<option value="23">023</option> -<option value="24">024</option> -<option value="25">025</option> -<option value="26">026</option> -<option value="27">027</option> -<option value="28">028</option> -<option value="29">029</option> -<option value="30">030</option> -<option value="31">031</option> -<option value="32">032</option> -<option value="33">033</option> -<option value="34">034</option> -<option value="35">035</option> -<option value="36">036</option> -<option value="37">037</option> -<option value="38">038</option> -<option value="39">039</option> -<option value="40">040</option> -<option value="41">041</option> -<option value="42">042</option> -<option value="43">043</option> -<option value="44">044</option> -<option value="45">045</option> -<option value="46">046</option> -<option value="47">047</option> -<option value="48">048</option> -<option value="49">049</option> -<option value="50">050</option> -<option value="51">051</option> -<option value="52">052</option> -<option value="53">053</option> -<option value="54">054</option> -<option value="55">055</option> -<option value="56">056</option> -<option value="57">057</option> -<option value="58">058</option> -<option value="59">059</option>', - 'format_value_%03d' => '<option value="000">00</option> -<option value="001">01</option> -<option value="002">02</option> -<option value="003">03</option> -<option value="004">04</option> -<option value="005">05</option> -<option value="006">06</option> -<option value="007">07</option> -<option value="008">08</option> -<option value="009">09</option> -<option value="010">10</option> -<option value="011" selected="selected">11</option> -<option value="012">12</option> -<option value="013">13</option> -<option value="014">14</option> -<option value="015">15</option> -<option value="016">16</option> -<option value="017">17</option> -<option value="018">18</option> -<option value="019">19</option> -<option value="020">20</option> -<option value="021">21</option> -<option value="022">22</option> -<option value="023">23</option> -<option value="024">24</option> -<option value="025">25</option> -<option value="026">26</option> -<option value="027">27</option> -<option value="028">28</option> -<option value="029">29</option> -<option value="030">30</option> -<option value="031">31</option> -<option value="032">32</option> -<option value="033">33</option> -<option value="034">34</option> -<option value="035">35</option> -<option value="036">36</option> -<option value="037">37</option> -<option value="038">38</option> -<option value="039">39</option> -<option value="040">40</option> -<option value="041">41</option> -<option value="042">42</option> -<option value="043">43</option> -<option value="044">44</option> -<option value="045">45</option> -<option value="046">46</option> -<option value="047">47</option> -<option value="048">48</option> -<option value="049">49</option> -<option value="050">50</option> -<option value="051">51</option> -<option value="052">52</option> -<option value="053">53</option> -<option value="054">54</option> -<option value="055">55</option> -<option value="056">56</option> -<option value="057">57</option> -<option value="058">58</option> -<option value="059">59</option>', - ); - protected $meridians = array( - 'default' => '<option value="am">AM</option> -<option value="pm" selected="selected">PM</option>', - ); - - - public function testDefault() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .'}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testPrefix() - { - $n = "\n"; - $result = '<select name="foobar_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="foobar_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="foobar_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' prefix="foobar_"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testFieldArray() - { - $n = "\n"; - $result = '<select name="namorized[Time_Hour]">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="namorized[Time_Minute]">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="namorized[Time_Second]">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' field_array="namorized"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="namorized[foobar_Hour]">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Minute]">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Second]">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' field_array="namorized" prefix="foobar_"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testExtra() - { - $n = "\n"; - $result = '<select name="Time_Hour" data-foo="xy">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute" data-foo="xy">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second" data-foo="xy">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' all_extra="data-foo=\"xy\""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour" data-foo="hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute" data-foo="minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second" data-foo="second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' hour_extra="data-foo=\"hour\"" minute_extra="data-foo=\"minute\"" second_extra="data-foo=\"second\""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour" data_foo="foo">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute" data_foo="foo">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second" data_foo="foo">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' data_foo="foo"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testFieldSeparator() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .' - <select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .' - <select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' field_separator=" - "}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEmpty() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n.'<option value=""></option>'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n.'<option value=""></option>'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value=""></option>'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' all_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n.'<option value="">all</option>'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n.'<option value="">all</option>'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value="">all</option>'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' all_empty="all"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value=""></option>'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n.'<option value="">hour</option>'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n.'<option value="">minute</option>'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value="">second</option>'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' hour_empty="hour" minute_empty="minute" second_empty="second"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEmptyUnset() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n.'<option value=""></option>'.$n. $this->hours['none'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n.'<option value=""></option>'.$n. $this->minutes['none'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value=""></option>'.$n. $this->seconds['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=null all_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n.'<option value="">all</option>'.$n. $this->hours['none'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n.'<option value="">all</option>'.$n. $this->minutes['none'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value="">all</option>'.$n. $this->seconds['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=null all_empty="all"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['none'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['none'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value=""></option>'.$n. $this->seconds['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=null second_empty=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n.'<option value="">hour</option>'.$n. $this->hours['none'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n.'<option value="">minute</option>'.$n. $this->minutes['none'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n.'<option value="">second</option>'.$n. $this->seconds['none'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=null hour_empty="hour" minute_empty="minute" second_empty="second"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testId() - { - $n = "\n"; - $result = '<select name="Time_Hour" id="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute" id="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second" id="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' all_id=""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour" id="all-Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute" id="all-Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second" id="all-Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' all_id="all-"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour" id="hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute" id="minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second" id="second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' hour_id="hour" minute_id="minute" second_id="second"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDisplay() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' display_minutes=false display_seconds=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' display_hours=false display_seconds=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' display_hours=false display_minutes=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testMeridian() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['12h'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>' - .$n.'<select name="Time_Meridian">'.$n. $this->meridians['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' use_24_hours=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['12h'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' use_24_hours=false display_meridian=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $time = mktime( 0, 15, 11, 2, 20, 2011 ); - $result = '<select name="Time_Hour">'.$n. '<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12" selected="selected">12</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected="selected">AM</option> -<option value="pm">PM</option> -</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $time .' use_24_hours=false display_minutes=false display_seconds=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $time = mktime( 4, 15, 11, 2, 20, 2011 ); - $result = '<select name="Time_Hour">'.$n. '<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04" selected="selected">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected="selected">AM</option> -<option value="pm">PM</option> -</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $time .' use_24_hours=false display_minutes=false display_seconds=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $time = mktime( 12, 15, 11, 2, 20, 2011 ); - $result = '<select name="Time_Hour">'.$n. '<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12" selected="selected">12</option> -</select> -<select name="Time_Meridian"> -<option value="am">AM</option> -<option value="pm" selected="selected">PM</option> -</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $time .' use_24_hours=false display_minutes=false display_seconds=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $time = mktime( 16, 15, 11, 2, 20, 2011 ); - $result = '<select name="Time_Hour">'.$n. '<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04" selected="selected">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -</select> -<select name="Time_Meridian"> -<option value="am">AM</option> -<option value="pm" selected="selected">PM</option> -</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $time .' use_24_hours=false display_minutes=false display_seconds=false}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - public function testMinuteInterval() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['30'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' minute_interval=30}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['15'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' minute_interval=15}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['10'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' minute_interval=10}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['5'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' minute_interval=5}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testSecondInterval() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['30'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_interval=30}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['15'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_interval=15}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['10'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_interval=10}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['5'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_interval=5}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - - public function testFormat() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['format_%03d'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' hour_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['format_%03d'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' minute_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['format_%03d'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testValueFormat() - { - $n = "\n"; - $result = '<select name="Time_Hour">'.$n. $this->hours['format_value_%03d'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' hour_value_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['format_value_%03d'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['default'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' minute_value_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $result = '<select name="Time_Hour">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="Time_Minute">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="Time_Second">'.$n. $this->seconds['format_value_%03d'] .$n.'</select>'; - $tpl = $this->smarty->createTemplate('eval:{html_select_time time='. $this->now .' second_value_format="%03d"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testTimeArray() - { - $n = "\n"; - $result = '<select name="namorized[foobar_Hour]">'.$n. $this->hours['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Minute]">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Second]">'.$n. $this->seconds['default'] .$n.'</select>'; - - $time_array = array( - 'namorized' => array( - 'foobar_Hour' => '16', - 'foobar_Minute' => '15', - 'foobar_Second' => '11', - ), - ); - - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=$time_array.namorized field_array="namorized" prefix="foobar_"}'); - $tpl->assign('time_array', $time_array); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=$time_array field_array="namorized" prefix="foobar_"}'); - $tpl->assign('time_array', $time_array); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testTimeArrayMerdidian() - { - $n = "\n"; - $result = '<select name="namorized[foobar_Hour]">'.$n. $this->hours['12h'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Minute]">'.$n. $this->minutes['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Second]">'.$n. $this->seconds['default'] .$n.'</select>' - .$n.'<select name="namorized[foobar_Meridian]">'.$n. $this->meridians['default'] .$n.'</select>'; - - $time_array = array( - 'namorized' => array( - 'foobar_Hour' => '04', - 'foobar_Minute' => '15', - 'foobar_Second' => '11', - 'foobar_Meridian' => 'pm', - ), - ); - - $tpl = $this->smarty->createTemplate('eval:{html_select_time time=$time_array use_24_hours=false field_array="namorized" prefix="foobar_"}'); - $tpl->assign('time_array', $time_array); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginFunctionMailtoTests.php
Deleted
@@ -1,177 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginFunctionMailtoTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = '<a href="mailto:me@example.com" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:me@example.com" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testText() - { - $result = '<a href="mailto:me@example.com" >send me some mail</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" text="send me some mail"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testTextWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:me@example.com" >send me some mail</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" text="send me some mail"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testEncodeJavascript() - { - $result = '<script type="text/javascript">eval(unescape(\'%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%65%78%61%6d%70%6c%65%2e%63%6f%6d%22%20%3e%6d%65%40%65%78%61%6d%70%6c%65%2e%63%6f%6d%3c%2f%61%3e%27%29%3b\'))</script>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" encode="javascript"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEncodeJavascriptWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<script type="text/javascript">eval(unescape(\'%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%65%78%61%6d%70%6c%65%2e%63%6f%6d%22%20%3e%6d%65%40%65%78%61%6d%70%6c%65%2e%63%6f%6d%3c%2f%61%3e%27%29%3b\'))</script>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" encode="javascript"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testEncodeJavascriptCharcode() - { - $result = "<script type=\"text/javascript\" language=\"javascript\">\n{document.write(String.fromCharCode(60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,109,101,64,101,120,97,109,112,108,101,46,99,111,109,34,32,62,109,101,64,101,120,97,109,112,108,101,46,99,111,109,60,47,97,62))}\n</script>\n"; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" encode="javascript_charcode"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEncodeJavascriptCharcodeWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "<script type=\"text/javascript\" language=\"javascript\">\n{document.write(String.fromCharCode(60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,109,101,64,101,120,97,109,112,108,101,46,99,111,109,34,32,62,109,101,64,101,120,97,109,112,108,101,46,99,111,109,60,47,97,62))}\n</script>\n"; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" encode="javascript_charcode"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testEncodeHex() - { - $result = '<a href="mailto:%6d%65@%65%78%61%6d%70%6c%65.%63%6f%6d" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" encode="hex"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEncodeHexWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:%6d%65@%65%78%61%6d%70%6c%65.%63%6f%6d" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" encode="hex"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testSubject() - { - $result = '<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" subject="Hello to you!"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testSubjectWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" subject="Hello to you!"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testCc() - { - $result = '<a href="mailto:me@example.com?cc=you@example.com,they@example.com" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" cc="you@example.com,they@example.com"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testCcWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:me@example.com?cc=you@example.com,they@example.com" >me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" cc="you@example.com,they@example.com"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testExtra() - { - $result = '<a href="mailto:me@example.com" class="email">me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" extra=\'class="email"\'}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testExtraWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:me@example.com" class="email">me@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me@example.com" extra=\'class="email"\'}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testUmlauts() - { - $result = '<a href="mailto:me+smtpext@example.com?cc=you@example.com,they@example.com&subject=h%C3%A4llo%20w%C3%B6rld" >me+smtpext@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me+smtpext@example.com" cc="you@example.com,they@example.com" subject="hällo wörld"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testUmlautsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = '<a href="mailto:me+smtpext@example.com?cc=you@example.com,they@example.com&subject=h%C3%A4llo%20w%C3%B6rld" >me+smtpext@example.com</a>'; - $tpl = $this->smarty->createTemplate('eval:{mailto address="me+smtpext@example.com" cc="you@example.com,they@example.com" subject="hällo wörld"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierCapitalizeTests.php
Deleted
@@ -1,141 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierCapitalizeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, delayed. ümlauts äre cööl."|capitalize}'); - $this->assertEquals("Next X-Men FiLm, x3, Delayed. Ümlauts Äre Cööl.", $this->smarty->fetch($tpl)); - } - - public function testDigits() - { - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, delayed. ümlauts äre cööl."|capitalize:true}'); - $this->assertEquals("Next X-Men FiLm, X3, Delayed. Ümlauts Äre Cööl.", $this->smarty->fetch($tpl)); - } - - public function testTrueCaptials() - { - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, delayed. ümlauts äre cööl."|capitalize:true:true}'); - $this->assertEquals("Next X-Men Film, X3, Delayed. Ümlauts Äre Cööl.", $this->smarty->fetch($tpl)); - } - - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, delayed."|capitalize}'); - $this->assertEquals("Next X-Men FiLm, x3, Delayed.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testDigitsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, delayed."|capitalize:true}'); - $this->assertEquals("Next X-Men FiLm, X3, Delayed.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testTrueCaptialsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, delayed."|capitalize:true:true}'); - $this->assertEquals("Next X-Men Film, X3, Delayed.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testQuotes() - { - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \"delayed. umlauts\" foo."|capitalize}'); - $this->assertEquals("Next X-Men FiLm, x3, \"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \'delayed. umlauts\' foo."|capitalize}'); - $this->assertEquals("Next X-Men FiLm, x3, 'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - } - - public function testQuotesWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \"delayed. umlauts\" foo."|capitalize}'); - $this->assertEquals("Next X-Men FiLm, x3, \"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \'delayed. umlauts\' foo."|capitalize}'); - $this->assertEquals("Next X-Men FiLm, x3, 'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testQuotesDigits() - { - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \"delayed. umlauts\" foo."|capitalize:true}'); - $this->assertEquals("Next X-Men FiLm, X3, \"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \'delayed. umlauts\' foo."|capitalize:true}'); - $this->assertEquals("Next X-Men FiLm, X3, 'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - } - - public function testQuotesDigitsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \"delayed. umlauts\" foo."|capitalize:true}'); - $this->assertEquals("Next X-Men FiLm, X3, \"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \'delayed. umlauts\' foo."|capitalize:true}'); - $this->assertEquals("Next X-Men FiLm, X3, 'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testQuotesTrueCapitals() - { - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \"delayed. umlauts\" foo."|capitalize:true:true}'); - $this->assertEquals("Next X-Men Film, X3, \"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \'delayed. umlauts\' foo."|capitalize:true:true}'); - $this->assertEquals("Next X-Men Film, X3, 'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - } - - public function testQuotesTrueCapitalsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \"delayed. umlauts\" foo."|capitalize:true:true}'); - $this->assertEquals("Next X-Men Film, X3, \"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"next x-men fiLm, x3, \'delayed. umlauts\' foo."|capitalize:true:true}'); - $this->assertEquals("Next X-Men Film, X3, 'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testQuotesBeginning() - { - $tpl = $this->smarty->createTemplate('eval:{"\"delayed. umlauts\" foo."|capitalize}'); - $this->assertEquals("\"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"\'delayed. umlauts\' foo."|capitalize}'); - $this->assertEquals("'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - } - - public function testQuotesBeginningWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"\"delayed. umlauts\" foo."|capitalize}'); - $this->assertEquals("\"Delayed. Umlauts\" Foo.", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"\'delayed. umlauts\' foo."|capitalize}'); - $this->assertEquals("'Delayed. Umlauts' Foo.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierCharsetTests.php
Deleted
@@ -1,99 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierCharsetTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testToLatin1() - { - $encoded = "hällö wörld 1"; - $result = utf8_decode($encoded); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|to_charset}'); - $this->assertEquals($result, $tpl->fetch()); - } - - public function testToLatin1WithoutMbstring() - { - Smarty::$_MBSTRING = false; - $encoded = "hällö wörld 2"; - $result = utf8_decode($encoded); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|to_charset}'); - $this->assertEquals($encoded, $tpl->fetch()); - Smarty::$_MBSTRING = true; - } - - public function testFromLatin1() - { - $result = "hällö wörld 3"; - $encoded = utf8_decode($result); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|from_charset}'); - $this->assertEquals($result, $tpl->fetch()); - } - - public function testFromLatin1WithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "hällö wörld 4"; - $encoded = utf8_decode($result); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|from_charset}'); - $this->assertEquals($encoded, $tpl->fetch()); - Smarty::$_MBSTRING = true; - } - - - public function testFromUtf32le() - { - $result = "hällö wörld 5"; - $encoded = mb_convert_encoding($result, "UTF-32LE", "UTF-8"); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|from_charset:"UTF-32LE"}'); - $this->assertEquals($result, $tpl->fetch()); - } - - public function testFromUtf32leWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "hällö wörld 6"; - $encoded = mb_convert_encoding($result, "UTF-32LE", "UTF-8"); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|from_charset:"UTF-32LE"}'); - $this->assertEquals($encoded, $tpl->fetch()); - Smarty::$_MBSTRING = true; - } - - - public function testToUtf32le() - { - $encoded = "hällö wörld 7"; - $result = mb_convert_encoding($encoded, "UTF-32LE", "UTF-8"); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|to_charset:"UTF-32LE"}'); - $this->assertEquals($result, $tpl->fetch()); - } - - public function testToUtf32leWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $encoded = "hällö wörld 8"; - $result = mb_convert_encoding($encoded, "UTF-32LE", "UTF-8"); - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|to_charset:"UTF-32LE"}'); - $this->assertEquals($encoded, $tpl->fetch()); - Smarty::$_MBSTRING = true; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierCountCharactersTests.php
Deleted
@@ -1,92 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierCountCharactersTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = "29"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wave Linked to Temperatures."|count_characters}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "29"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wave Linked to Temperatures."|count_characters}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testSpaces() - { - $result = "33"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wave Linked to Temperatures."|count_characters:true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testSpacesWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "33"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wave Linked to Temperatures."|count_characters:true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUmlauts() - { - $result = "29"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wäve Linked tö Temperatures."|count_characters}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testUmlautsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "29"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wäve Linked tö Temperatures."|count_characters}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUmlautsSpaces() - { - $result = "33"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wäve Linked tö Temperatures."|count_characters:true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testUmlautsSpacesWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "33"; - $tpl = $this->smarty->createTemplate('eval:{"Cold Wäve Linked tö Temperatures."|count_characters:true}'); - $this->assertNotEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierCountSentencesTests.php
Deleted
@@ -1,61 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierCountSentencesTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $tpl = $this->smarty->createTemplate('eval:{"hello world."|count_sentences}'); - $this->assertEquals("1", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello world. I\'m another? Sentence!"|count_sentences}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello world.wrong"|count_sentences}'); - $this->assertEquals("0", $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"hello world."|count_sentences}'); - $this->assertEquals("1", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello world. I\'m another? Sentence!"|count_sentences}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello world.wrong"|count_sentences}'); - $this->assertEquals("0", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testUmlauts() - { - $tpl = $this->smarty->createTemplate('eval:{"hello worldä."|count_sentences}'); - $this->assertEquals("1", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello worldü. ä\'m another? Sentence!"|count_sentences}'); - $this->assertEquals("3", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello worlä.ärong"|count_sentences}'); - $this->assertEquals("0", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello worlä.wrong"|count_sentences}'); - $this->assertEquals("0", $this->smarty->fetch($tpl)); - $tpl = $this->smarty->createTemplate('eval:{"hello world.ärong"|count_sentences}'); - $this->assertEquals("0", $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierCountWordsTests.php
Deleted
@@ -1,76 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierCountWordsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = "7"; - $tpl = $this->smarty->createTemplate('eval:{"Dealers Will Hear Car Talk at Noon."|count_words}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "7"; - $tpl = $this->smarty->createTemplate('eval:{"Dealers Will Hear Car Talk at Noon."|count_words}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testDashes() - { - $result = "7"; - $tpl = $this->smarty->createTemplate('eval:{"Smalltime-Dealers Will Hear Car Talk at Noon."|count_words}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDashesWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "7"; - $tpl = $this->smarty->createTemplate('eval:{"Smalltime-Dealers Will Hear Car Talk at Noon."|count_words}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUmlauts() - { - $result = "7"; - $tpl = $this->smarty->createTemplate('eval:{"Dealers Will Hear Cär Talk at Nöön."|count_words}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testUmlautsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "7"; - $tpl = $this->smarty->createTemplate('eval:{"Dealers Will Hear Cär Talk at Nöön."|count_words}'); - $this->assertNotEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierEscapeTests.php
Deleted
@@ -1,223 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierEscapeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testHtml() - { - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"html"}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or &copy;", $this->smarty->fetch($tpl)); - } - - public function testHtmlWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"html"}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or &copy;", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testHtmlDouble() - { - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"html":null:false}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or ©", $this->smarty->fetch($tpl)); - } - - public function testHtmlDoubleWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"html":null:false}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or ©", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testHtmlall() - { - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"htmlall"}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or &copy;", $this->smarty->fetch($tpl)); - } - - public function testHtmlallWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"htmlall"}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or &copy;", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testHtmlallDouble() - { - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"htmlall":null:false}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or ©", $this->smarty->fetch($tpl)); - } - - public function testHtmlallDoubleWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"I\'m some <html> to ä be \"escaped\" or ©"|escape:"htmlall":null:false}'); - $this->assertEquals("I'm some <html> to ä be "escaped" or ©", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUrl() - { - $tpl = $this->smarty->createTemplate('eval:{"http://some.encoded.com/url?parts#foo"|escape:"url"}'); - $this->assertEquals("http%3A%2F%2Fsome.encoded.com%2Furl%3Fparts%23foo", $this->smarty->fetch($tpl)); - } - - public function testUrlWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"http://some.encoded.com/url?parts#foo"|escape:"url"}'); - $this->assertEquals("http%3A%2F%2Fsome.encoded.com%2Furl%3Fparts%23foo", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUrlpathinfo() - { - $tpl = $this->smarty->createTemplate('eval:{"http://some.encoded.com/url?parts#foo"|escape:"urlpathinfo"}'); - $this->assertEquals("http%3A//some.encoded.com/url%3Fparts%23foo", $this->smarty->fetch($tpl)); - } - - public function testUrlpathinfoWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"http://some.encoded.com/url?parts#foo"|escape:"urlpathinfo"}'); - $this->assertEquals("http%3A//some.encoded.com/url%3Fparts%23foo", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testHex() - { - $tpl = $this->smarty->createTemplate('eval:{"a/cäa"|escape:"hex"}'); - $this->assertEquals("%61%2f%63%c3%a4%61", $this->smarty->fetch($tpl)); - } - - public function testHexWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"a/cäa"|escape:"hex"}'); - $this->assertEquals("%61%2f%63%c3%a4%61", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testHexentity() - { - $q = "aäЗдравсствуйте"; - $r = html_entity_decode($q, ENT_NOQUOTES, 'UTF-8'); - $tpl = $this->smarty->createTemplate('eval:{"' . $r . '"|escape:"hexentity"}'); - $this->assertEquals("aäЗдравсствуйте", $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{"abc"|escape:"hexentity"}'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - } - - public function testHexentityWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $q = "aäЗдравсствуйте"; - $r = html_entity_decode($q, ENT_NOQUOTES, 'UTF-8'); - $tpl = $this->smarty->createTemplate('eval:{"' . $r . '"|escape:"hexentity"}'); - $this->assertNotEquals("aäЗдравсствуйте", $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{"abc"|escape:"hexentity"}'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testDecentity() - { - $q = "aäЗдравсствуйте"; - $r = html_entity_decode($q, ENT_NOQUOTES, 'UTF-8'); - $tpl = $this->smarty->createTemplate('eval:{"' . $r . '"|escape:"decentity"}'); - $this->assertEquals("aäЗдравсствуйте", $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{"abc"|escape:"decentity"}'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - } - - public function testDecentityWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $q = "aäЗдравсствуйте"; - $r = html_entity_decode($q, ENT_NOQUOTES, 'UTF-8'); - $tpl = $this->smarty->createTemplate('eval:{"' . $r . '"|escape:"decentity"}'); - $this->assertNotEquals("aäЗдравсствуйте", $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{"abc"|escape:"decentity"}'); - $this->assertEquals("abc", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testJavascript() - { - $tpl = $this->smarty->createTemplate('eval:{"var x = { foo : \"bar\n\" };"|escape:"javascript"}'); - $this->assertEquals("var x = { foo : \\\"bar\\n\\\" };", $this->smarty->fetch($tpl)); - } - - public function testJavascriptWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"var x = { foo : \"bar\n\" };"|escape:"javascript"}'); - $this->assertEquals("var x = { foo : \\\"bar\\n\\\" };", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testMail() - { - $tpl = $this->smarty->createTemplate('eval:{"smarty@example.com"|escape:"mail"}'); - $this->assertEquals("smarty [AT] example [DOT] com", $this->smarty->fetch($tpl)); - } - - public function testMailWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"smarty@example.com"|escape:"mail"}'); - $this->assertEquals("smarty [AT] example [DOT] com", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testNonstd() - { - $tpl = $this->smarty->createTemplate('eval:{"sma\'rty|»example«.com"|escape:"nonstd"}'); - $this->assertEquals("sma'rty|»example«.com", $this->smarty->fetch($tpl)); - } - - public function testNonstdWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"' . utf8_decode('sma\'rty@»example«.com') . '"|escape:"nonstd"}'); - $this->assertEquals("sma'rty@»example«.com", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierLowerTests.php
Deleted
@@ -1,59 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierLowerTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = "two convicts evade noose, jury hung."; - $tpl = $this->smarty->createTemplate('eval:{"Two Convicts Evade Noose, Jury Hung."|lower}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "two convicts evade noose, jury hung."; - $tpl = $this->smarty->createTemplate('eval:{"Two Convicts Evade Noose, Jury Hung."|lower}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUmlauts() - { - $result = "two convicts eväde nööse, jury hung."; - $tpl = $this->smarty->createTemplate('eval:{"Two Convicts Eväde NöÖse, Jury Hung."|lower}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testUmlautsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "two convicts eväde nööse, jury hung."; - $tpl = $this->smarty->createTemplate('eval:{"Two Convicts Eväde NöÖse, Jury Hung."|lower}'); - $this->assertNotEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierRegexReplaceTests.php
Deleted
@@ -1,48 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierRegexReplaceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $tpl = $this->smarty->createTemplate('eval:{"Infertility unlikely to\nbe passed on, experts say."|regex_replace:"/[\r\t\n]/":" "}'); - $this->assertEquals("Infertility unlikely to be passed on, experts say.", $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Infertility unlikely to\nbe passed on, experts say."|regex_replace:"/[\r\t\n]/":" "}'); - $this->assertEquals("Infertility unlikely to be passed on, experts say.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testUmlauts() - { - $tpl = $this->smarty->createTemplate('eval:{"Infertility unlikely tö\näe passed on, experts say."|regex_replace:"/[\r\t\n]/u":" "}'); - $this->assertEquals("Infertility unlikely tö äe passed on, experts say.", $this->smarty->fetch($tpl)); - - $tpl = $this->smarty->createTemplate('eval:{"Infertility unlikely tä be passed on, experts say."|regex_replace:"/[ä]/ue":"ae"}'); - $this->assertEquals("Infertility unlikely tae be passed on, experts say.", $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierSpacifyTests.php
Deleted
@@ -1,40 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierSpacifyTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = 'h e l l o w ö r l d'; - $tpl = $this->smarty->createTemplate('eval:{"hello wörld"|spacify}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testCharacter() - { - $result = 'h##e##l##l##o## ##w##ö##r##l##d'; - $tpl = $this->smarty->createTemplate('eval:{"hello wörld"|spacify:"##"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierStripTests.php
Deleted
@@ -1,47 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierStripTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $tpl = $this->smarty->createTemplate('eval:{" hello spaced words "|strip}'); - $this->assertEquals(" hello spaced words ", $this->smarty->fetch($tpl)); - } - - public function testUnicodeSpaces() - { - // Some Unicode Spaces - $string = " hello spaced       words "; - $string = mb_convert_encoding($string, 'UTF-8', "HTML-ENTITIES"); - $tpl = $this->smarty->createTemplate('eval:{"' . $string . '"|strip}'); - $this->assertEquals(" hello spaced words ", $this->smarty->fetch($tpl)); - } - - public function testLinebreak() - { - $tpl = $this->smarty->createTemplate('eval:{" hello - spaced words "|strip}'); - $this->assertEquals(" hello spaced words ", $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierTruncateTests.php
Deleted
@@ -1,144 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierTruncateTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testLength() - { - $result = 'Two Sisters Reunite after...'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testLengthWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Reunite after...'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testEtc() - { - $result = 'Two Sisters Reunite after'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEtcWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Reunite after'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:""}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testEtc2() - { - $result = 'Two Sisters Reunite after---'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"---"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testEtc2WithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Reunite after---'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"---"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testBreak() - { - $result = 'Two Sisters Reunite after Eigh'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"":true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testBreakWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Reunite after Eigh'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"":true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testBreak2() - { - $result = 'Two Sisters Reunite after E...'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"...":true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testBreak2WithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Reunite after E...'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"...":true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testMiddle() - { - $result = 'Two Sisters Re..ckout Counter.'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"..":true:true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testMiddleWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = 'Two Sisters Re..ckout Counter.'; - $tpl = $this->smarty->createTemplate('eval:{"Two Sisters Reunite after Eighteen Years at Checkout Counter."|truncate:30:"..":true:true}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierUnescapeTests.php
Deleted
@@ -1,70 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierUnescapeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testHtml() - { - $encoded = "aäЗдра><&amp;ääвсствуйте"; - $result = "aäЗдра><&ääвсствуйте"; - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|unescape:"html"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testHtmlWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $encoded = "aäЗдра><&amp;ääвсствуйте"; - $result = "aäЗдра><&ääвсствуйте"; - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|unescape:"html"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testHtmlall() - { - $encoded = "aäЗдра><&amp;ääвсствуйте"; - $result = "aäЗдра><&ääвсствуйте"; - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|unescape:"htmlall"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testHtmlallWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $encoded = "aäЗдра><&amp;ääвсствуйте"; - $result = "aäЗдра><&ääвсствуйте"; - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|unescape:"htmlall"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testUrl() - { - $encoded = "a%C3%A4%D0%97%D0%B4%D1%80%D0%B0%3E%3C%26amp%3B%C3%A4%C3%A4%D0%B2%D1%81%D1%81%D1%82%D0%B2%3F%3D%2B%D1%83%D0%B9%D1%82%D0%B5"; - $result = "aäЗдра><&ääвсств?=+уйте"; - $tpl = $this->smarty->createTemplate('eval:{"' . $encoded . '"|unescape:"url"}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierUpperTests.php
Deleted
@@ -1,59 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierUpperTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $result = "IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE."; - $tpl = $this->smarty->createTemplate('eval:{"If Strike isn\'t Settled Quickly it may Last a While."|upper}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE."; - $tpl = $this->smarty->createTemplate('eval:{"If Strike isn\'t Settled Quickly it may Last a While."|upper}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - public function testUmlauts() - { - $result = "IF STRIKE ISN'T SÄTTLED ÜQUICKLY IT MAY LAST A WHILE."; - $tpl = $this->smarty->createTemplate('eval:{"If Strike isn\'t Sättled ÜQuickly it may Last a While."|upper}'); - $this->assertEquals($result, $this->smarty->fetch($tpl)); - } - - public function testUmlautsWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $result = "IF STRIKE ISN'T SÄTTLED ÜQUICKLY IT MAY LAST A WHILE."; - $tpl = $this->smarty->createTemplate('eval:{"If Strike isn\'t Sättled ÜQuickly it may Last a While."|upper}'); - $this->assertNotEquals($result, $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PluginModifierWordwrapTests.php
Deleted
@@ -1,163 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of modifier -* -* @package PHPunit -* @author Rodney Rehm -*/ - -/** -* class for modifier tests -*/ -class PluginModifierWordwrapTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - public function testDefault() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman gets new kidney from dad she hasn\'t seen in years."|wordwrap}'); - $this->assertEquals("Blind woman gets new kidney from dad she hasn't seen in years.", $this->smarty->fetch($tpl)); - } - - public function testDefaultWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman gets new kidney from dad she hasn\'t seen in years."|wordwrap}'); - $this->assertEquals("Blind woman gets new kidney from dad she hasn't seen in years.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testDefaultUmlauts() - { - $tpl = $this->smarty->createTemplate('eval:{"äöüßñ woman ñsä new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("äöüßñ woman ñsä new kidney\nfrom dad she hasn't seen in\nyears.", $this->smarty->fetch($tpl)); - } - - public function testLength() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman gets new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("Blind woman gets new kidney\nfrom dad she hasn't seen in\nyears.", $this->smarty->fetch($tpl)); - } - - public function testLengthWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman gets new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("Blind woman gets new kidney\nfrom dad she hasn't seen in\nyears.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testBreak() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman gets new kidney from dad she hasn\'t seen in years."|wordwrap:30:"<br />\n"}'); - $this->assertEquals("Blind woman gets new kidney<br />\nfrom dad she hasn't seen in<br />\nyears.", $this->smarty->fetch($tpl)); - } - - public function testBreakWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman gets new kidney from dad she hasn\'t seen in years."|wordwrap:30:"<br />\n"}'); - $this->assertEquals("Blind woman gets new kidney<br />\nfrom dad she hasn't seen in<br />\nyears.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testLong() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman withaverylongandunpronoucablenameorso gets new kidney from dad she hasn\'t seen in years."|wordwrap:26:"\n"}'); - $this->assertEquals("Blind woman\nwithaverylongandunpronoucablenameorso\ngets new kidney from dad\nshe hasn't seen in years.", $this->smarty->fetch($tpl)); - } - - public function testLongWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman withaverylongandunpronoucablenameorso gets new kidney from dad she hasn\'t seen in years."|wordwrap:26:"\n"}'); - $this->assertEquals("Blind woman\nwithaverylongandunpronoucablenameorso\ngets new kidney from dad\nshe hasn't seen in years.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testLongUmlauts() - { - $tpl = $this->smarty->createTemplate('eval:{"äöüßñ woman ñsääöüßñameorsoäöüßñäöüßñäöüßñäöüßñßñ gets new kidney from dad she hasn\'t seen in years."|wordwrap:26}'); - $this->assertEquals("äöüßñ woman\nñsääöüßñameorsoäöüßñäöüßñäöüßñäöüßñßñ\ngets new kidney from dad\nshe hasn't seen in years.", $this->smarty->fetch($tpl)); - } - - public function testLongCut() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman withaverylongandunpronoucablenameorso gets new kidney from dad she hasn\'t seen in years."|wordwrap:26:"\n":true}'); - $this->assertEquals("Blind woman\nwithaverylongandunpronouca\nblenameorso gets new\nkidney from dad she hasn't\nseen in years.", $this->smarty->fetch($tpl)); - } - - public function testLongCutWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman withaverylongandunpronoucablenameorso gets new kidney from dad she hasn\'t seen in years."|wordwrap:26:"\n":true}'); - $this->assertEquals("Blind woman\nwithaverylongandunpronouca\nblenameorso gets new\nkidney from dad she hasn't\nseen in years.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testLongCutUmlauts() - { - $tpl = $this->smarty->createTemplate('eval:{"äöüßñ woman ñsääöüßñameorsoäöüßñäöüßñäöüßñäöüßñßñ gets new kidney from dad she hasn\'t seen in years."|wordwrap:26:"\n":true}'); - $this->assertEquals("äöüßñ woman\nñsääöüßñameorsoäöüßñäöüßñä\nöüßñäöüßñßñ gets new\nkidney from dad she hasn't\nseen in years.", $this->smarty->fetch($tpl)); - } - - public function testLinebreaks() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman\ngets new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("Blind woman\ngets new kidney from dad she\nhasn't seen in years.", $this->smarty->fetch($tpl)); - } - - public function testLinebreaksWithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman\ngets new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("Blind woman\ngets new kidney from dad she\nhasn't seen in years.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - public function testLinebreaks2() - { - $tpl = $this->smarty->createTemplate('eval:{"Blind woman - gets - new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("Blind woman - gets - new kidney from\ndad she hasn't seen in years.", $this->smarty->fetch($tpl)); - } - - public function testLinebreaks2WithoutMbstring() - { - Smarty::$_MBSTRING = false; - $tpl = $this->smarty->createTemplate('eval:{"Blind woman - gets - new kidney from dad she hasn\'t seen in years."|wordwrap:30}'); - $this->assertEquals("Blind woman - gets - new kidney from\ndad she hasn't seen in years.", $this->smarty->fetch($tpl)); - Smarty::$_MBSTRING = true; - } - - - - - /* - public function testUnicodeSpaces() - { - // Some Unicode Spaces - $string = " hello spaced       words "; - $string = mb_convert_encoding($string, 'UTF-8', "HTML-ENTITIES"); - $tpl = $this->smarty->createTemplate('eval:{"' . $string . '"|strip}'); - $this->assertEquals(" hello spaced words ", $this->smarty->fetch($tpl)); - } - */ -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/PrintNocacheTests.php
Deleted
@@ -1,64 +0,0 @@ -<?php -/** -* Smarty PHPunit tests variable output with nocache attribute -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for variable output with nocache attribute tag tests -*/ -class PrintNocacheTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test print nocache caching disabled - */ - public function testPrintNocacheCachingNo1() - { - $this->smarty->caching = 0; - $this->smarty->assign('foo', 0); - $this->smarty->assign('bar', 'A'); - $this->assertEquals("0A", $this->smarty->fetch('test_print_nocache.tpl')); - } - public function testPrintNocacheCachingNo2() - { - $this->smarty->caching = 0; - $this->smarty->assign('foo', 2); - $this->smarty->assign('bar', 'B'); - $this->assertEquals("2B", $this->smarty->fetch('test_print_nocache.tpl')); - } - /** - * test print nocache caching enabled - */ - public function testPrintNocacheCachingYes1() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 5; - $this->smarty->assign('foo', 0); - $this->smarty->assign('bar', 'A'); - $this->assertEquals("0A", $this->smarty->fetch('test_print_nocache.tpl')); - } - public function testPrintNocacheCachingYes2() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 5; - - $this->smarty->assign('foo', 2); - $this->smarty->assign('bar', 'B'); - $this->assertEquals("2A", $this->smarty->fetch('test_print_nocache.tpl')); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/RegisterBlockTests.php
Deleted
@@ -1,249 +0,0 @@ -<?php -/** - * Smarty PHPunit tests register->block / unregister->block methods - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for register->block / unregister->block methods tests - */ -class RegisterBlockTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - - $this->smarty->disableSecurity(); - $this->smartyBC->disableSecurity(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test registerPlugin method for block function - */ - public function testRegisterBlockFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblock'); - $this->smarty->assign('value', 1); - $this->assertEquals('function hello world 1 1 function hello world 1 2 function hello world 1 3 ', $this->smarty->fetch('eval:{testblock}hello world {$value}{/testblock}')); - } - public function testRegisterBlockFunctionModifier1() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblock'); - $this->smarty->assign('value', 1); - $this->assertEquals(strtoupper('function hello world 1 1 function hello world 1 2 function hello world 1 3 '), $this->smarty->fetch('eval:{testblock}hello world {$value}{/testblock|strtoupper}')); - } - public function testRegisterBlockFunctionModifier2() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblock'); - $this->smarty->assign('value', 1); - $this->assertEquals(strtoupper('function hello world 1 1 function hello world 1 2 function hello world 1 3 '), $this->smarty->fetch('eval:{testblock}hello world {$value}{/testblock|default:""|strtoupper}')); - } - public function testRegisterBlockFunctionWrapper() - { - $this->smartyBC->register_block('testblock', 'myblock'); - $this->smartyBC->assign('value', 1); - $this->assertEquals('function hello world 1 1 function hello world 1 2 function hello world 1 3 ', $this->smartyBC->fetch('eval:{testblock}hello world {$value}{/testblock}')); - } - /** - * test registerPlugin method for block class - */ - public function testRegisterBlockClass() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', array('myblockclass', 'static_method')); - $this->smarty->assign('value', 2); - $this->assertEquals('static hello world 2 1 static hello world 2 2 static hello world 2 3 ', $this->smarty->fetch('eval:{testblock}hello world {$value}{/testblock}')); - } - public function testRegisterBlockClassWrapper() - { - $this->smartyBC->register_block('testblock', array('myblockclass', 'static_method')); - $this->smartyBC->assign('value', 2); - $this->assertEquals('static hello world 2 1 static hello world 2 2 static hello world 2 3 ', $this->smartyBC->fetch('eval:{testblock}hello world {$value}{/testblock}')); - } - /** - * test registerPlugin method for block object - */ - public function testRegisterBlockObject() - { - $myblock_object = new myblockclass; - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', array($myblock_object, 'object_method')); - $this->smarty->assign('value', 3); - $this->assertEquals('object hello world 3 1 object hello world 3 2 object hello world 3 3 ', $this->smarty->fetch('eval:{testblock}hello world {$value}{/testblock}')); - } - public function testRegisterBlockObjectWrapper() - { - $myblock_object = new myblockclass; - $this->smartyBC->register_block('testblock', array($myblock_object, 'object_method')); - $this->smartyBC->assign('value', 3); - $this->assertEquals('object hello world 3 1 object hello world 3 2 object hello world 3 3 ', $this->smartyBC->fetch('eval:{testblock}hello world {$value}{/testblock}')); - } - - /** - * test registerPlugin method for block with caching - */ - public function testRegisterBlockCaching1() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->force_compile = true; - $this->smarty->assign('x', 1); - $this->smarty->assign('y', 10); - $this->smarty->assign('z', 100); - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblockcache'); - $this->assertEquals('1 10 100', $this->smarty->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching2() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->assign('x', 2); - $this->smarty->assign('y', 20); - $this->smarty->assign('z', 200); - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblockcache'); - $this->assertEquals('1 10 100', $this->smarty->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching3() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->force_compile = true; - $this->smarty->assign('x', 3); - $this->smarty->assign('y', 30); - $this->smarty->assign('z', 300); - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblockcache', false); - $this->assertEquals('3 30 300', $this->smarty->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching4() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->assign('x', 4); - $this->smarty->assign('y', 40); - $this->smarty->assign('z', 400); - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblockcache', false); - $this->assertEquals('3 40 300', $this->smarty->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching1Wrapper() - { - $this->smartyBC->caching = 1; - $this->smartyBC->cache_lifetime = 10; - $this->smartyBC->force_compile = true; - $this->smartyBC->assign('x', 1); - $this->smartyBC->assign('y', 10); - $this->smartyBC->assign('z', 100); - $this->smartyBC->register_block('testblock', 'myblockcache'); - $this->assertEquals('1 10 100', $this->smartyBC->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching2Wrapper() - { - $this->smartyBC->caching = 1; - $this->smartyBC->cache_lifetime = 10; - $this->smartyBC->assign('x', 2); - $this->smartyBC->assign('y', 20); - $this->smartyBC->assign('z', 200); - $this->smartyBC->register_block('testblock', 'myblockcache'); - $this->assertEquals('1 10 100', $this->smartyBC->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching3Wrapper() - { - $this->smartyBC->caching = 1; - $this->smartyBC->cache_lifetime = 10; - $this->smartyBC->force_compile = true; - $this->smartyBC->assign('x', 3); - $this->smartyBC->assign('y', 30); - $this->smartyBC->assign('z', 300); - $this->smartyBC->register_block('testblock', 'myblockcache', false); - $this->assertEquals('3 30 300', $this->smartyBC->fetch('test_register_block.tpl')); - } - public function testRegisterBlockCaching4Wrapper() - { - $this->smartyBC->caching = 1; - $this->smartyBC->cache_lifetime = 10; - $this->smartyBC->assign('x', 4); - $this->smartyBC->assign('y', 40); - $this->smartyBC->assign('z', 400); - $this->smartyBC->register_block('testblock', 'myblockcache', false); - $this->assertEquals('3 40 300', $this->smartyBC->fetch('test_register_block.tpl')); - } - /** - * test unregister->block method - */ - public function testUnregisterBlock() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testblock', 'myblock'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_BLOCK,'testblock'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_BLOCK]['testblock'])); - } - public function testUnregisterBlockWrapper() - { - $this->smartyBC->register_block('testblock', 'myblock'); - $this->smartyBC->unregister_block('testblock'); - $this->assertFalse(isset($this->smartyBC->registered_plugins[Smarty::PLUGIN_BLOCK]['testblock'])); - } - /** - * test unregister->block method not registered - */ - public function testUnregisterBlockNotRegistered() - { - $this->smarty->unregisterPlugin(Smarty::PLUGIN_BLOCK,'testblock'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_BLOCK]['testblock'])); - } -} -function myblock($params, $content, &$smarty_tpl, &$repeat) -{ - static $loop = 0; - - if ($content == null) { - $loop = 0; - return; - } - $loop ++; - if ($loop < 3) { - $repeat = true; - } - return "function $content $loop "; -} -function myblockcache($params, $content, &$smarty_tpl, &$repeat) -{ - return $content; -} - -class myblockclass { - static function static_method($params, $content, &$smarty_tpl, &$repeat) - { - static $loop = 0; - - if ($content == null) { - $loop = 0; - return; - } - $loop ++; - if ($loop < 3) { - $repeat = true; - } - return "static $content $loop "; - } - function object_method($params, $content, &$smarty_tpl, &$repeat) - { - static $loop = 0; - - if ($content == null) { - $loop = 0; - return; - } - $loop ++; - if ($loop < 3) { - $repeat = true; - } - return "object $content $loop "; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/RegisterCompilerFunctionTests.php
Deleted
@@ -1,111 +0,0 @@ -<?php -/** - * Smarty PHPunit tests register->compilerFunction / unregister->compilerFunction methods - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for register->compilerFunction / unregister->compilerFunction methods tests - */ -class RegisterCompilerFunctionTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test register->compilerFunction method for function - */ - public function testRegisterCompilerFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction', 'mycompilerfunction'); - $this->assertEquals('mycompilerfunction', $this->smarty->registered_plugins['compiler']['testcompilerfunction'][0]); - $this->assertEquals('hello world 1', $this->smarty->fetch('eval:{testcompilerfunction var=1}')); - } - - /** - * test register->compilerFunction method for blocks - */ - public function testRegisterCompilerFunctionBlock() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'foo', 'mycompilerfunctionopen'); - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'fooclose', 'mycompilerfunctionclose'); - $result = $this->smarty->fetch('eval:{foo} hallo {/foo}'); - $this->assertEquals('open tag hallo close tag', $result); - } - /** - * test register->compilerFunction method for static class - */ - public function testRegisterCompilerFunctionClass() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction', array('mycompilerfunctionclass', 'execute')); - $this->assertEquals('hello world 2', $this->smarty->fetch('eval:{testcompilerfunction var1=2}')); - } - /** - * test register->compilerFunction method for objects - */ - public function testRegisterCompilerFunctionObject() - { - $obj = new mycompilerfunctionclass; - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction', array($obj, 'compile')); - $this->assertEquals('hello world 3', $this->smarty->fetch('eval:{testcompilerfunction var2=3}')); - } - /** - * test unregister->compilerFunction method - */ - public function testUnregisterCompilerFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction', 'mycompilerfunction'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_COMPILER]['testcompilerfunction'])); - } - /** - * test unregister->compilerFunction method not registered - */ - public function testUnregisterCompilerFunctionNotRegistered() - { - $this->smarty->unregisterPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_COMPILER]['testcompilerfunction'])); - } - /** - * test unregister->compilerFunction method other registered - */ - public function testUnregisterCompilerFunctionOtherRegistered() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testcompilerfunction', 'mycompilerfunction'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_COMPILER,'testcompilerfunction'); - $this->assertTrue(isset($this->smarty->registered_plugins[Smarty::PLUGIN_BLOCK]['testcompilerfunction'])); - } -} -function mycompilerfunction($params, $smarty) -{ - return "<?php echo 'hello world {$params['var']}'?>"; -} -function mycompilerfunctionopen($params, $smarty) -{ - return "<?php echo 'open tag'?>"; -} -function mycompilerfunctionclose($params, $smarty) -{ - return "<?php echo 'close tag'?>"; -} -class mycompilerfunctionclass { - static function execute($params, $smarty) - { - return "<?php echo 'hello world {$params['var1']}'?>"; - } - function compile($params, $smarty) - { - return "<?php echo 'hello world {$params['var2']}'?>"; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/RegisterFilterTests.php
Deleted
@@ -1,147 +0,0 @@ -<?php -/** -* Smarty PHPunit tests register_filter / unregister_filter methods -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for register_filter / unregister_filter methods tests -*/ -class RegisterFilterTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test register->preFilter method for function - */ - public function testRegisterPrefilterFunction() - { - $this->smarty->registerFilter(Smarty::FILTER_PRE,'myfilter'); - $this->assertTrue(is_callable($this->smarty->registered_filters['pre']['myfilter'])); - } - /** - * test register->preFilter method for class methode - */ - public function testRegisterPrefilterMethode() - { - $this->smarty->registerFilter(Smarty::FILTER_PRE,array('myfilterclass','execute')); - $this->assertTrue(is_callable($this->smarty->registered_filters['pre']['myfilterclass_execute'])); - } - /** - * test register->preFilter method for class object - */ - public function testRegisterPrefilterObject() - { - $this->smarty->registerFilter(Smarty::FILTER_PRE,array(new myfilterclass,'execute')); - $this->assertTrue(is_callable($this->smarty->registered_filters['pre']['myfilterclass_execute'])); - } - /** - * test unregister->preFilter method for function - */ - public function testUnegisterPrefilterFunction() - { - $this->smarty->registerFilter(Smarty::FILTER_PRE,'myfilter'); - $this->smarty->unregisterFilter(Smarty::FILTER_PRE,'myfilter'); - $this->assertFalse(isset($this->smarty->registered_filters['pre']['myfilter'])); - } - /** - * test unregister->preFilter method for class methode - */ - public function testUnregisterPrefilterMethode() - { - $this->smarty->registerFilter(Smarty::FILTER_PRE,array('myfilterclass','execute')); - $this->smarty->unregisterFilter(Smarty::FILTER_PRE,array('myfilterclass','execute')); - $this->assertFalse(isset($this->smarty->registered_filters['pre']['myfilterclass_execute'])); - } - /** - * test register->postFilter method for function - */ - public function testRegisterPostfilterFunction() - { - $this->smarty->registerFilter(Smarty::FILTER_POST,'myfilter'); - $this->assertTrue(is_callable($this->smarty->registered_filters['post']['myfilter'])); - } - /** - * test register->postFilter method for class methode - */ - public function testRegisterPostfilterMethode() - { - $this->smarty->registerFilter(Smarty::FILTER_POST,array('myfilterclass','execute')); - $this->assertTrue(is_callable($this->smarty->registered_filters['post']['myfilterclass_execute'])); - } - /** - * test unregister->postFilter method for function - */ - public function testUnegisterPostfilterFunction() - { - $this->smarty->registerFilter(Smarty::FILTER_POST,'myfilter'); - $this->smarty->unregisterFilter(Smarty::FILTER_POST,'myfilter'); - $this->assertFalse(isset($this->smarty->registered_filters['post']['myfilter'])); - } - /** - * test unregister->postFilter method for class methode - */ - public function testUnregisterPostfilterMethode() - { - $this->smarty->registerFilter(Smarty::FILTER_POST,array('myfilterclass','execute')); - $this->smarty->unregisterFilter(Smarty::FILTER_POST,array('myfilterclass','execute')); - $this->assertFalse(isset($this->smarty->registered_filters['post']['myfilterclass_execute'])); - } - /** - * test register->outputFilter method for function - */ - public function testRegisterOutputfilterFunction() - { - $this->smarty->registerFilter(Smarty::FILTER_OUTPUT,'myfilter'); - $this->assertTrue(is_callable($this->smarty->registered_filters['output']['myfilter'])); - } - /** - * test register->outputFilter method for class methode - */ - public function testRegisterOutputfilterMethode() - { - $this->smarty->registerFilter(Smarty::FILTER_OUTPUT,array('myfilterclass','execute')); - $this->assertTrue(is_callable($this->smarty->registered_filters['output']['myfilterclass_execute'])); - } - /** - * test unregister->outputFilter method for function - */ - public function testUnegisterOutputfilterFunction() - { - $this->smarty->registerFilter(Smarty::FILTER_OUTPUT,'myfilter'); - $this->smarty->unregisterFilter(Smarty::FILTER_OUTPUT,'myfilter'); - $this->assertFalse(isset($this->smarty->registered_filters['output']['myfilter'])); - } - /** - * test unregister->outputFilter method for class methode - */ - public function testUnregisterOutputfilterMethode() - { - $this->smarty->registerFilter(Smarty::FILTER_OUTPUT,array('myfilterclass','execute')); - $this->smarty->unregisterFilter(Smarty::FILTER_OUTPUT,array('myfilterclass','execute')); - $this->assertFalse(isset($this->smarty->registered_filters['output']['myfilterclass_execute'])); - } -} -function myfilter($input) -{ - return $input; -} -class myfilterclass { - static function execute($input) - { - return $input; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/RegisterFunctionTests.php
Deleted
@@ -1,135 +0,0 @@ -<?php -/** - * Smarty PHPunit tests register->templateFunction / unregister->templateFunction methods - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for register->templateFunction / unregister->templateFunction methods tests - */ -class RegisterFunctionTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test register->templateFunction method for function - */ - public function testRegisterFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction'); - $this->assertEquals('myfunction', $this->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['testfunction'][0]); - $this->assertEquals('hello world 1', $this->smarty->fetch('eval:{testfunction value=1}')); - } - /** - * test wrapper rfor egister_function method for function - */ - public function testRegisterFunctionWrapper() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction'); - $this->assertEquals('myfunction', $this->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['testfunction'][0]); - $this->assertEquals('hello world 1', $this->smarty->fetch('eval:{testfunction value=1}')); - } - /** - * test register->templateFunction method for class - */ - public function testRegisterFunctionClass() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', array('myfunctionclass', 'execute')); - $this->assertEquals('hello world 2', $this->smarty->fetch('eval:{testfunction value=2}')); - } - /** - * test register->templateFunction method for object - */ - public function testRegisterFunctionObject() - { - $myfunction_object = new myfunctionclass; - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', array($myfunction_object, 'execute')); - $this->assertEquals('hello world 3', $this->smarty->fetch('eval:{testfunction value=3}')); - } - public function testRegisterFunctionCaching1() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->force_compile = true; - $this->smarty->assign('x', 0); - $this->smarty->assign('y', 10); - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction'); - $this->assertEquals('hello world 0 10', $this->smarty->fetch('test_register_function.tpl')); - } - public function testRegisterFunctionCaching2() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->assign('x', 1); - $this->smarty->assign('y', 20); - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction'); - $this->assertEquals('hello world 0 10', $this->smarty->fetch('test_register_function.tpl')); - } - public function testRegisterFunctionCaching3() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->force_compile = true; - $this->smarty->assign('x', 2); - $this->smarty->assign('y', 30); - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction', false); - $this->assertEquals('hello world 2 30', $this->smarty->fetch('test_register_function.tpl')); - } - public function testRegisterFunctionCaching4() - { - $this->smarty->caching = 1; - $this->smarty->cache_lifetime = 10; - $this->smarty->assign('x', 3); - $this->smarty->assign('y', 40); - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction', false); - $this->assertEquals('hello world 3 30', $this->smarty->fetch('test_register_function.tpl')); - } - /** - * test unregister->templateFunction method - */ - public function testUnregisterFunction() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_FUNCTION,'testfunction', 'myfunction'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_FUNCTION,'testfunction'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['testfunction'])); - } - /** - * test unregister->templateFunction method not registered - */ - public function testUnregisterFunctionNotRegistered() - { - $this->smarty->unregisterPlugin(Smarty::PLUGIN_FUNCTION,'testfunction'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['testfunction'])); - } - /** - * test unregister->templateFunction method other registered - */ - public function testUnregisterFunctionOtherRegistered() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testfunction', 'myfunction'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_FUNCTION,'testfunction'); - $this->assertTrue(isset($this->smarty->registered_plugins[Smarty::PLUGIN_BLOCK]['testfunction'])); - } -} -function myfunction($params, &$smarty) -{ - return "hello world $params[value]"; -} -class myfunctionclass { - static function execute($params, &$smarty) - { - return "hello world $params[value]"; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/RegisterModifierTests.php
Deleted
@@ -1,98 +0,0 @@ -<?php -/** - * Smarty PHPunit tests register->modifier / unregister->modifier methods - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for register->modifier / unregister->modifier methods tests - */ -class RegisterModifierTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test register->modifier method for function - */ - public function testRegisterModifier() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier', 'mymodifier'); - $this->assertEquals('mymodifier', $this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['testmodifier'][0]); - $this->smarty->assign('foo', 'foo'); - $this->smarty->assign('bar', 'bar'); - $this->assertEquals('foo function blar bar', $this->smarty->fetch('eval:{$foo|testmodifier:blar:$bar}')); - } - /** - * test register->modifier method for classes - */ - public function testRegisterModifierClass() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier', array('mymodifierclass', 'static_method')); - $this->smarty->assign('foo', 'foo'); - $this->smarty->assign('bar', 'bar'); - $this->assertEquals('foo static blar bar', $this->smarty->fetch('eval:{$foo|testmodifier:blar:$bar}')); - } - /** - * test register->modifier method for objects - */ - public function testRegisterModifierObject() - { - $obj = new mymodifierclass; - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier', array($obj, 'object_method')); - $this->smarty->assign('foo', 'foo'); - $this->smarty->assign('bar', 'bar'); - $this->assertEquals('foo object blar bar', $this->smarty->fetch('eval:{$foo|testmodifier:blar:$bar}')); - } - /** - * test unregister->modifier method - */ - public function testUnregisterModifier() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier', 'mymodifier'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['testmodifier'])); - } - /** - * test unregister->modifier method not registered - */ - public function testUnregisterModifierNotRegistered() - { - $this->smarty->unregisterPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier'); - $this->assertFalse(isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['testmodifier'])); - } - /** - * test unregister->modifier method other registered - */ - public function testUnregisterModifierOtherRegistered() - { - $this->smarty->registerPlugin(Smarty::PLUGIN_BLOCK,'testmodifier', 'mymodifier'); - $this->smarty->unregisterPlugin(Smarty::PLUGIN_MODIFIER,'testmodifier'); - $this->assertTrue(isset($this->smarty->registered_plugins[Smarty::PLUGIN_BLOCK]['testmodifier'])); - } -} -function mymodifier($a, $b, $c) -{ - return "$a function $b $c"; -} -class mymodifierclass { - static function static_method($a, $b, $c) - { - return "$a static $b $c"; - } - function object_method($a, $b, $c) - { - return "$a object $b $c"; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/RegisteredResourceTests.php
Deleted
@@ -1,118 +0,0 @@ -<?php -/** - * Smarty PHPunit tests register->resource - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for register->resource tests - */ -class RegisteredResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->registerResource("rr", array("rr_get_template", - "rr_get_timestamp", - "rr_get_secure", - "rr_get_trusted")); - } - - public static function isRunnable() - { - return true; - } - - /** - * test resource plugin rendering - */ - public function testResourcePlugin() - { - $this->assertEquals('hello world', $this->smarty->fetch('rr:test')); - } - public function testClearCompiledResourcePlugin() - { - $this->assertEquals(1, $this->smarty->clearCompiledTemplate('rr:test')); - } - /** - * test resource plugin timesatmp - */ - public function testResourcePluginTimestamp() - { - $tpl = $this->smarty->createTemplate('rr:test'); - $this->assertTrue(is_integer($tpl->source->timestamp)); - $this->assertEquals(10, strlen($tpl->source->timestamp)); - } - /** - * test compile_id change - */ - public function testResourceCompileIdChange() - { - $this->smarty->registerResource('myresource', array('getSource','getTimestamp','getSecure','getTrusted')); - $this->smarty->compile_id = 'a'; - $this->assertEquals('this is template 1', $this->smarty->fetch('myresource:some')); - $this->assertEquals('this is template 1', $this->smarty->fetch('myresource:some')); - $this->smarty->compile_id = 'b'; - $this->assertEquals('this is template 2', $this->smarty->fetch('myresource:some')); - $this->assertEquals('this is template 2', $this->smarty->fetch('myresource:some')); - - } -} - -/** - * resource functions - */ -function rr_get_template ($tpl_name, &$tpl_source, $smarty_obj) -{ - // populating $tpl_source - $tpl_source = '{$x="hello world"}{$x}'; - return true; -} - -function rr_get_timestamp($tpl_name, &$tpl_timestamp, $smarty_obj) -{ - // $tpl_timestamp. - $tpl_timestamp = (int)floor(time() / 100) * 100; - return true; -} - -function rr_get_secure($tpl_name, $smarty_obj) -{ - // assume all templates are secure - return true; -} - -function rr_get_trusted($tpl_name, $smarty_obj) -{ - // not used for templates -} - -// resource functions for compile_id change test - -function getSecure($name, $smarty) -{ - return true; -} -function getTrusted($name, $smarty) -{ -} -function getSource($name, &$source, $smarty) -{ - // we update a counter, so that we return a new source for every call - static $counter = 0; - $counter++; - - // construct a new source - $source = "this is template $counter"; - return true; -} -function getTimestamp($name, &$timestamp, $smarty) -{ - // always pretend the template is brand new - $timestamp = time(); - return true; -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/ResourcePluginTests.php
Deleted
@@ -1,191 +0,0 @@ -<?php -/** - * Smarty PHPunit tests resource plugins - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for resource plugins tests - */ -class ResourcePluginTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - // reset cache for unit test - Smarty_Resource::$resources = array(); - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - /** - * test resource plugin rendering - */ - public function testResourcePlugin() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('hello world', $this->smarty->fetch('db:test')); - } - /** - * test resource plugin rendering - */ - public function testResourcePluginObject() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('hello world', $this->smarty->fetch('db2:test')); - } - /** - * test resource plugin rendering of a registered object - */ - public function testResourcePluginRegisteredInstance() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->smarty->loadPlugin('Smarty_Resource_Db2'); - $this->smarty->registerResource( 'db2a', new Smarty_Resource_Db2() ); - $this->assertEquals('hello world', $this->smarty->fetch('db2a:test')); - } - /** - * test resource plugin rendering of a recompiling resource - */ - public function testResourcePluginRecompiled() - { - return; - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - try { - $this->assertEquals('hello world', $this->smarty->fetch('db3:test')); - } catch (Exception $e) { - $this->assertContains(htmlentities('not return a destination'), $e->getMessage()); - return; - } - $this->fail('Exception for empty filepath has not been thrown.'); - } - /** - * test resource plugin non-existent compiled cache of a recompiling resource - */ - public function testResourcePluginRecompiledCompiledFilepath() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $tpl = $this->smarty->createTemplate('db2:test.tpl'); - $expected = realpath('./templates_c/'.sha1('db2:test.tpl').'.db2.test.tpl.php'); - $this->assertFalse(!!$expected); - $this->assertFalse($tpl->compiled->filepath); - } - /** - * test resource plugin rendering of a custom resource - */ - public function testResourcePluginMysql() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->assertEquals('hello world', $this->smarty->fetch('mysqltest:test.tpl')); - } - /** - * test resource plugin timestamp of a custom resource - */ - public function testResourcePluginMysqlTimestamp() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $tpl = $this->smarty->createTemplate('mysqltest:test.tpl'); - $this->assertEquals(strtotime("2010-12-25 22:00:00"), $tpl->source->timestamp); - } - /** - * test resource plugin timestamp of a custom resource with only fetch() implemented - */ - public function testResourcePluginMysqlTimestampWithoutFetchTimestamp() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $tpl = $this->smarty->createTemplate('mysqlstest:test.tpl'); - $this->assertEquals(strtotime("2010-12-25 22:00:00"), $tpl->source->timestamp); - } - /** - * test resource plugin compiledFilepath of a custom resource - */ - public function testResourcePluginMysqlCompiledFilepath() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $tpl = $this->smarty->createTemplate('mysqltest:test.tpl'); - $expected = realpath('./templates_c/'.sha1('mysqltest:test.tpl').'.mysqltest.test.tpl.php'); - $this->assertTrue(!!$expected); - $this->assertEquals($expected, realpath($tpl->compiled->filepath)); - } - public function testResourcePluginMysqlCompiledFilepathCache() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $this->smarty->force_compile = true; - $this->smarty->fetch('mysqltest:test.tpl'); - $tpl = $this->smarty->createTemplate('mysqltest:test.tpl'); - $expected = realpath('./templates_c/'.sha1('mysqltest:test.tpl').'.mysqltest.test.tpl.cache.php'); - $this->assertTrue(!!$expected); - $this->assertEquals($expected, realpath($tpl->compiled->filepath)); - $this->smarty->caching = false; - } - /** - * test resource plugin timesatmp - */ - public function testResourcePluginTimestamp() - { - $this->smarty->addPluginsDir(dirname(__FILE__)."/PHPunitplugins/"); - $tpl = $this->smarty->createTemplate('db:test'); - $this->assertTrue(is_integer($tpl->source->timestamp)); - $this->assertEquals(10, strlen($tpl->source->timestamp)); - } - - - public function testResourcePluginExtendsall() - { - $this->smarty->addPluginsDir( dirname(__FILE__)."/../../distribution/demo/plugins/"); - $this->smarty->setTemplateDir( array( - 'root' => './templates', - './templates_2', - './templates_3', - './templates_4', - )); - - $expected = "templates\n\ntemplates_3\ntemplates\n\ntemplates_4"; - $this->assertEquals($expected, $this->smarty->fetch('extendsall:extendsall.tpl')); - } - - public function testResourcePluginExtendsallOne() - { - $this->smarty->addPluginsDir( dirname(__FILE__)."/../../distribution/demo/plugins/"); - $this->smarty->setTemplateDir( array( - 'root' => './templates', - './templates_2', - './templates_3', - './templates_4', - )); - - $expected = "templates\ntemplates"; - $this->assertEquals($expected, $this->smarty->fetch('extendsall:extendsall2.tpl')); - } - - public function testSharing() - { - $smarty = new Smarty(); - $smarty->_resource_handlers = array(); - $_smarty = clone $smarty; - $smarty->fetch('eval:foo'); - $_smarty->fetch('eval:foo'); - - $this->assertTrue($smarty->_resource_handlers['eval'] === $_smarty->_resource_handlers['eval']); - } - - public function testExplicit() - { - $smarty = new Smarty(); - $smarty->_resource_handlers = array(); - $_smarty = clone $smarty; - $smarty->fetch('eval:foo'); - $_smarty->registerResource('eval', new Smarty_Internal_Resource_Eval()); - $_smarty->fetch('eval:foo'); - - $this->assertFalse($smarty->_resource_handlers['eval'] === $_smarty->_resource_handlers['eval']); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/SecurityTests.php
Deleted
@@ -1,364 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for security -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for security test -*/ -class SecurityTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smartyBC = SmartyTests::$smartyBC; - SmartyTests::init(); - $this->smarty->force_compile = true; - $this->smartyBC->force_compile = true; - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test that security is loaded - */ - public function testSecurityLoaded() - { - $this->assertTrue(is_object($this->smarty->security_policy)); - } - - - /** - * test trusted PHP function - */ - public function testTrustedPHPFunction() - { - $this->assertEquals("5", $this->smarty->fetch('eval:{assign var=foo value=[1,2,3,4,5]}{count($foo)}')); - } - - /** - * test not trusted PHP function - */ - public function testNotTrustedPHPFunction() - { - $this->smarty->security_policy->php_functions = array('null'); - try { - $this->smarty->fetch('eval:{assign var=foo value=[1,2,3,4,5]}{count($foo)}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("PHP function 'count' not allowed by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for not trusted modifier has not been raised.'); - } - - /** - * test not trusted PHP function at disabled security - */ - public function testDisabledTrustedPHPFunction() - { - $this->smarty->security_policy->php_functions = array('null'); - $this->smarty->disableSecurity(); - $this->assertEquals("5", $this->smarty->fetch('eval:{assign var=foo value=[1,2,3,4,5]}{count($foo)}')); - } - - /** - * test trusted modifer - */ - public function testTrustedModifier() - { - $this->assertEquals("5", $this->smarty->fetch('eval:{assign var=foo value=[1,2,3,4,5]}{$foo|@count}')); - } - - /** - * test not trusted modifier - */ - public function testNotTrustedModifer() - { - $this->smarty->security_policy->php_modifiers = array('null'); - try { - $this->smarty->fetch('eval:{assign var=foo value=[1,2,3,4,5]}{$foo|@count}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("modifier 'count' not allowed by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for not trusted modifier has not been raised.'); - } - - /** - * test not trusted modifer at disabled security - */ - public function testDisabledTrustedMofifer() - { - $this->smarty->security_policy->php_modifiers = array('null'); - $this->smarty->disableSecurity(); - $this->assertEquals("5", $this->smarty->fetch('eval:{assign var=foo value=[1,2,3,4,5]}{$foo|@count}')); - } - - /** - * test allowed tags - */ - public function testAllowedTags1() - { - $this->smarty->security_policy->allowed_tags = array('counter'); - $this->assertEquals("1", $this->smarty->fetch('eval:{counter start=1}')); - } - - /** - * test not allowed tag - */ - public function testNotAllowedTags2() - { - $this->smarty->security_policy->allowed_tags = array('counter'); - try { - $this->smarty->fetch('eval:{counter}{cycle values="1,2"}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("tag 'cycle' not allowed by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for not allowed tag has not been raised.'); - } - - /** - * test disabled tag - */ - public function testDisabledTags() - { - $this->smarty->security_policy->disabled_tags = array('cycle'); - try { - $this->smarty->fetch('eval:{counter}{cycle values="1,2"}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("tag 'cycle' disabled by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for disabled tag has not been raised.'); - } - - /** - * test allowed modifier - */ - public function testAllowedModifier1() - { - $this->smarty->security_policy->allowed_modifiers = array('capitalize'); - $this->assertEquals("Hello World", $this->smarty->fetch('eval:{"hello world"|capitalize}')); - } - public function testAllowedModifier2() - { - $this->smarty->security_policy->allowed_modifiers = array('upper'); - $this->assertEquals("HELLO WORLD", $this->smarty->fetch('eval:{"hello world"|upper}')); - } - - /** - * test not allowed modifier - */ - public function testNotAllowedModifier() - { - $this->smarty->security_policy->allowed_modifiers = array('upper'); - try { - $this->smarty->fetch('eval:{"hello"|upper}{"world"|lower}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("modifier 'lower' not allowed by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for not allowed tag has not been raised.'); - } - - /** - * test disabled modifier - */ - public function testDisabledModifier() - { - $this->smarty->security_policy->disabled_modifiers = array('lower'); - try { - $this->smarty->fetch('eval:{"hello"|upper}{"world"|lower}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("modifier 'lower' disabled by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for disabled tag has not been raised.'); - } - - /** - * test Smarty::PHP_QUOTE - */ - public function testSmartyPhpQuote() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_QUOTE; - $this->assertEquals('<?php echo "hello world"; ?>', $this->smarty->fetch('eval:<?php echo "hello world"; ?>')); - } - public function testSmartyPhpQuoteAsp() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_QUOTE; - $this->assertEquals('<% echo "hello world"; %>', $this->smarty->fetch('eval:<% echo "hello world"; %>')); - } - - /** - * test Smarty::PHP_REMOVE - */ - public function testSmartyPhpRemove() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE; - $this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:<?php echo "hello world"; ?>')); - } - public function testSmartyPhpRemoveAsp() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE; - $this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:<% echo "hello world"; %>')); - } - - /** - * test Smarty::PHP_ALLOW - */ - public function testSmartyPhpAllow() - { - $this->smartyBC->security_policy->php_handling = Smarty::PHP_ALLOW; - $this->assertEquals('hello world', $this->smartyBC->fetch('eval:<?php echo "hello world"; ?>')); - } - public function testSmartyPhpAllowAsp() - { - // NOTE: asp_tags cannot be changed by ini_set() - if (!ini_get('asp_tags')) { - $this->fail( 'asp_tags are disabled' ); - } - $this->smartyBC->security_policy->php_handling = Smarty::PHP_ALLOW; - $this->assertEquals('hello world', $this->smartyBC->fetch('eval:<% echo "hello world"; %>')); - } - - /** - * test standard directory - */ - public function testStandardDirectory() - { - $content = $this->smarty->fetch('eval:{include file="helloworld.tpl"}'); - $this->assertEquals("hello world", $content); - } - - /** - * test trusted directory - */ - public function testTrustedDirectory() - { - $this->smarty->security_policy->secure_dir = array('.' . DIRECTORY_SEPARATOR . 'templates_2' . DIRECTORY_SEPARATOR); - $this->assertEquals("hello world", $this->smarty->fetch('eval:{include file="templates_2/hello.tpl"}')); - } - - /** - * test not trusted directory - */ - public function testNotTrustedDirectory() - { - $this->smarty->security_policy->secure_dir = array('.' . DIRECTORY_SEPARATOR . 'templates_3' . DIRECTORY_SEPARATOR); - try { - $this->smarty->fetch('eval:{include file="templates_2/hello.tpl"}'); - } - catch (Exception $e) { - $this->assertContains("/PHPunit/templates_2/hello.tpl' not allowed by security setting", str_replace('\\','/',$e->getMessage())); - return; - } - $this->fail('Exception for not trusted directory has not been raised.'); - } - - /** - * test disabled security for not trusted dir - */ - public function testDisabledTrustedDirectory() - { - $this->smarty->disableSecurity(); - $this->assertEquals("hello world", $this->smarty->fetch('eval:{include file="templates_2/hello.tpl"}')); - } - - /** - * test trusted static class - */ - public function testTrustedStaticClass() - { - $this->smarty->security_policy->static_classes = array('mysecuritystaticclass'); - $tpl = $this->smarty->createTemplate('eval:{mysecuritystaticclass::square(5)}'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } - - /** - * test not trusted PHP function - */ - public function testNotTrustedStaticClass() - { - $this->smarty->security_policy->static_classes = array('null'); - try { - $this->smarty->fetch('eval:{mysecuritystaticclass::square(5)}'); - } - catch (Exception $e) { - $this->assertContains(htmlentities("access to static class 'mysecuritystaticclass' not allowed by security setting"), $e->getMessage()); - return; - } - $this->fail('Exception for not trusted static class has not been raised.'); - } - - - - public function testChangedTrustedDirectory() - { - $this->smarty->security_policy->secure_dir = array( - '.' . DS . 'templates_2' . DS, - ); - $this->assertEquals("hello world", $this->smarty->fetch('eval:{include file="templates_2/hello.tpl"}')); - - $this->smarty->security_policy->secure_dir = array( - '.' . DS . 'templates_2' . DS, - '.' . DS . 'templates_3' . DS, - ); - $this->assertEquals("templates_3", $this->smarty->fetch('eval:{include file="templates_3/dirname.tpl"}')); - } - - public function testTrustedUri() - { - $this->smarty->security_policy->trusted_uri = array( - '#^http://.+smarty\.net$#i' - ); - - try { - $this->smarty->fetch('eval:{fetch file="http://www.smarty.net/foo.bar"}'); - } catch (SmartyException $e) { - $this->assertNotContains(htmlentities("not allowed by security setting"), $e->getMessage()); - } - - try { - $this->smarty->fetch('eval:{fetch file="https://www.smarty.net/foo.bar"}'); - $this->fail("Exception for unknown resource not thrown (protocol)"); - } catch (SmartyException $e) { - $this->assertContains(htmlentities("not allowed by security setting"), $e->getMessage()); - } - - try { - $this->smarty->fetch('eval:{fetch file="http://www.smarty.com/foo.bar"}'); - $this->fail("Exception for unknown resource not thrown (domain)"); - } catch (SmartyException $e) { - $this->assertContains(htmlentities("not allowed by security setting"), $e->getMessage()); - } - } - -} - -class mysecuritystaticclass { - const STATIC_CONSTANT_VALUE = 3; - public static $static_var = 5; - - static function square($i) - { - return $i*$i; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/SharedFunctionsTests.php
Deleted
@@ -1,37 +0,0 @@ -<?php -/** -* Smarty PHPunit tests of shared plugin functions -* -* @package PHPunit -* @author Rodney Rehm -*/ - - -/** -* class for function tests -*/ -class SharedFunctionsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test smarty_function_escape_special_chars() - */ - public function testEscapeSpecialChars() - { - require_once SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'; - - $this->assertEquals('hello<world ©', smarty_function_escape_special_chars('hello<world ©')); - $this->assertEquals('ö€', smarty_function_escape_special_chars('ö€')); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/SingleQuotedStringTests.php
Deleted
@@ -1,75 +0,0 @@ -<?php -/** -* Smarty PHPunit tests single quoted strings -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for single quoted string tests -*/ -class SingleQuotedStringTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test simple single quoted string - */ - public function testSimpleSingleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'Hello World\'}{$foo}'); - $this->assertEquals('Hello World', $this->smarty->fetch($tpl)); - } - /** - * test that tags not interpreted in single quoted strings - */ - public function testTagsInSingleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'Hello {1+2} World\'}{$foo}'); - $this->assertEquals('Hello {1+2} World', $this->smarty->fetch($tpl)); - } - /** - * test that vars not interpreted in single quoted strings - */ - public function testVarsInSingleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'Hello $bar World\'}{$foo}'); - $this->assertEquals('Hello $bar World', $this->smarty->fetch($tpl)); - } - /** - * test double quotes in single quoted strings - */ - public function testDoubleQuotesInSingleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'Hello "World"\'}{$foo}'); - $this->assertEquals('Hello "World"', $this->smarty->fetch($tpl)); - } - /** - * test escaped single quotes in single quoted strings - */ - public function testEscapedSingleQuotesInSingleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'Hello \\\'World\'}{$foo}'); - $this->assertEquals("Hello 'World", $this->smarty->fetch($tpl)); - } - /** - * test empty single quoted strings - */ - public function testEmptySingleQuotedString() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'\'}{$foo}'); - $this->assertEquals("", $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/SmartyBcTests.php
Deleted
@@ -1,34 +0,0 @@ -<?php -/** -* Smarty PHPunit tests SmartyBC code -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class SmartyBC class tests -*/ -class SmartyBcTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - SmartyTests::init(); - $this->smartyBC = SmartyTests::$smartyBC; - } - - public static function isRunnable() - { - return true; - } - - /** - * test {php} tag - */ - public function testSmartyPhpTag() - { - $this->assertEquals('hello world', $this->smartyBC->fetch('eval:{php} echo "hello world"; {/php}')); - } - -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/SpacingTests.php
Deleted
@@ -1,100 +0,0 @@ -<?php -/** -* Smarty PHPunit tests spacing in template output -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for spacing test -*/ -class SpacingTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->assign('foo','bar'); - } - - public static function isRunnable() - { - return true; - } - - /** - * test variable output - */ - public function testVariableSpacing1() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo}", null, null, $this->smarty); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testVariableSpacing2() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo}{\$foo}", null, null, $this->smarty); - $this->assertEquals("barbar", $this->smarty->fetch($tpl)); - } - public function testVariableSpacing3() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo} {\$foo}", null, null, $this->smarty); - $this->assertEquals("bar bar", $this->smarty->fetch($tpl)); - } - - /** - * test variable text combinations - */ - public function testVariableText1() - { - $tpl = $this->smarty->createTemplate("eval:A{\$foo}B", null, null, $this->smarty); - $this->assertEquals("AbarB", $this->smarty->fetch($tpl)); - } - public function testVariableText2() - { - $tpl = $this->smarty->createTemplate("eval:A {\$foo}B", null, null, $this->smarty); - $this->assertEquals("A barB", $this->smarty->fetch($tpl)); - } - public function testVariableText3() - { - $tpl = $this->smarty->createTemplate("eval:A{\$foo} B", null, null, $this->smarty); - $this->assertEquals("Abar B", $this->smarty->fetch($tpl)); - } - public function testVariableText4() - { - $tpl = $this->smarty->createTemplate("eval:A{\$foo}\nB", null, null, $this->smarty); - $this->assertEquals("Abar\nB", $this->smarty->fetch($tpl)); - } - public function testVariableText5() - { - $tpl = $this->smarty->createTemplate("eval:A{\$foo}B\nC", null, null, $this->smarty); - $this->assertEquals("AbarB\nC", $this->smarty->fetch($tpl)); - } - - /** - * test tag text combinations - */ - public function testTagText1() - { - $tpl = $this->smarty->createTemplate("eval:A{assign var=zoo value='blah'}B"); - $this->assertEquals("AB", $this->smarty->fetch($tpl)); - } - public function testTagText2() - { - $tpl = $this->smarty->createTemplate("eval:A\n{assign var=zoo value='blah'}\nB"); - $this->assertEquals("A\nB", $this->smarty->fetch($tpl)); - } - public function testTagText3() - { - $tpl = $this->smarty->createTemplate("eval:E{assign var=zoo value='blah'}\nF"); - $this->assertEquals("EF", $this->smarty->fetch($tpl)); - } - public function testTagText4() - { - $tpl = $this->smarty->createTemplate("eval:G\n{assign var=zoo value='blah'}H"); - $this->assertEquals("G\nH", $this->smarty->fetch($tpl)); - } - -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/StaticClassAccessTests.php
Deleted
@@ -1,125 +0,0 @@ -<?php -/** -* Smarty PHPunit tests static class access to constants, variables and methodes -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for static class access to constants, variables and methodes tests -*/ -class StaticClassAccessTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->disableSecurity(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test static class variable - */ - public function testStaticClassVariable() - { - $tpl = $this->smarty->createTemplate('eval:{mystaticclass::$static_var}'); - $this->assertEquals('5', $this->smarty->fetch($tpl)); - } - /** - * test registered static class variable - */ - public function testStaticRegisteredClassVariable() - { - $this->smarty->registerClass('registeredclass','mystaticclass'); - $tpl = $this->smarty->createTemplate('eval:{registeredclass::$static_var}'); - $this->assertEquals('5', $this->smarty->fetch($tpl)); - } - /** - * test static class constant - */ - public function testStaticClassConstant() - { - $tpl = $this->smarty->createTemplate('eval:{mystaticclass::STATIC_CONSTANT_VALUE}'); - $this->assertEquals('3', $this->smarty->fetch($tpl)); - } - /** - * test static class constant - */ - public function testRegisteredStaticClassConstant() - { - $this->smarty->registerClass('registeredclass','mystaticclass'); - $tpl = $this->smarty->createTemplate('eval:{registeredclass::STATIC_CONSTANT_VALUE}'); - $this->assertEquals('3', $this->smarty->fetch($tpl)); - } - /** - * test static class methode - */ - public function testStaticClassMethode() - { - $tpl = $this->smarty->createTemplate('eval:{mystaticclass::square(5)}'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } - /** - * test static class methode - */ - public function testRegisteredStaticClassMethode() - { - $this->smarty->registerClass('registeredclass','mystaticclass'); - $tpl = $this->smarty->createTemplate('eval:{registeredclass::square(5)}'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } - /** - * test static class variable methode - */ - public function testStaticClassVariableMethode() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'square\'}{mystaticclass::$foo(5)}'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } - /** - * test registered static class variable methode - */ - public function testRegisteredStaticClassVariableMethode() - { - $this->smarty->registerClass('registeredclass','mystaticclass'); - $tpl = $this->smarty->createTemplate('eval:{$foo=\'square\'}{registeredclass::$foo(5)}'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } - /** - * test static class variable methode - */ - public function testStaticClassVariableMethode2() - { - $tpl = $this->smarty->createTemplate('eval:{mystaticclass::$foo(5)}'); - $tpl->assign('foo','square'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } - /** - * test registered static class variable methode - */ - public function testRegisteredStaticClassVariableMethode2() - { - $this->smarty->registerClass('registeredclass','mystaticclass'); - $tpl = $this->smarty->createTemplate('eval:{registeredclass::$foo(5)}'); - $tpl->assign('foo','square'); - $this->assertEquals('25', $this->smarty->fetch($tpl)); - } -} - -class mystaticclass { - const STATIC_CONSTANT_VALUE = 3; - public static $static_var = 5; - - static function square($i) - { - return $i*$i; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/StreamResourceTests.php
Deleted
@@ -1,242 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for stream resources -* -* @package PHPunit -* @author Uwe Tews -*/ - -/** -* class for stream resource tests -*/ -class StreamResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->security_policy->streams = array('global'); - $this->smarty->assign('foo', 'bar'); - stream_wrapper_register("global", "ResourceStream") - or die("Failed to register protocol"); - $fp = fopen("global://mytest", "r+"); - fwrite($fp, 'hello world {$foo}'); - fclose($fp); - } - - public function tearDown() - { - stream_wrapper_unregister("global"); - } - - public static function isRunnable() - { - return true; - } - - /** - * test getTemplateFilepath - */ - public function testGetTemplateFilepath() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertEquals('global://mytest', $tpl->source->filepath); - } - /** - * test getTemplateTimestamp - */ - public function testGetTemplateTimestamp() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertFalse($tpl->source->timestamp); - } - /** - * test getTemplateSource - */ - public function testGetTemplateSource() - { - $tpl = $this->smarty->createTemplate('global:mytest', null, null, $this->smarty); - $this->assertEquals('hello world {$foo}', $tpl->source->content); - } - /** - * test usesCompiler - */ - public function testUsesCompiler() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertFalse($tpl->source->uncompiled); - } - /** - * test isEvaluated - */ - public function testIsEvaluated() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertTrue($tpl->source->recompiled); - } - /** - * test mustCompile - */ - public function testMustCompile() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertTrue($tpl->mustCompile()); - } - /** - * test getCompiledFilepath - */ - public function testGetCompiledFilepath() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertFalse($tpl->compiled->filepath); - } - /** - * test getCompiledTimestamp - */ - public function testGetCompiledTimestamp() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertFalse($tpl->compiled->timestamp); - } - /** - * test template file exits - */ - public function testTemplateStreamExists1() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertTrue($tpl->source->exists); - } - public function testTemplateStreamExists2() - { - $this->assertTrue($this->smarty->templateExists('global:mytest')); - } - /** - * test template is not existing - */ - public function testTemplateStreamNotExists1() - { - $tpl = $this->smarty->createTemplate('global:notthere'); - $this->assertFalse($tpl->source->exists); - } - public function testTemplateStramNotExists2() - { - $this->assertFalse($this->smarty->templateExists('global:notthere')); - } - public function testTemplateStramNotExists3() - { - try { - $result = $this->smarty->fetch('global:notthere'); - } - catch (Exception $e) { - $this->assertContains(htmlentities('Unable to load template global \'notthere\''), $e->getMessage()); - return; - } - $this->fail('Exception for not existing template is missing'); - } - /** - * test writeCachedContent - */ - public function testWriteCachedContent() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertFalse($tpl->writeCachedContent('dummy')); - } - /** - * test isCached - */ - public function testIsCached() - { - $tpl = $this->smarty->createTemplate('global:mytest'); - $this->assertFalse($tpl->isCached()); - } - /** - * test getRenderedTemplate - */ - public function testGetRenderedTemplate() - { - $tpl = $this->smarty->createTemplate('global:mytest' , null, null, $this->smarty); - $this->assertEquals('hello world bar', $tpl->fetch()); - } - /** - * test that no complied template and cache file was produced - */ - public function testNoFiles() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - $this->smarty->clearCompiledTemplate(); - $this->smarty->clearAllCache(); - $tpl = $this->smarty->createTemplate('global:mytest', null, null, $this->smarty); - $this->assertEquals('hello world bar', $this->smarty->fetch($tpl)); - $this->assertEquals(0, $this->smarty->clearAllCache()); - $this->assertEquals(0, $this->smarty->clearCompiledTemplate()); - } - - /** - * test $smarty->is_cached - */ - public function testSmartyIsCached() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - $tpl = $this->smarty->createTemplate('global:mytest', null, null, $this->smarty); - $this->assertEquals('hello world bar', $this->smarty->fetch($tpl)); - $this->assertFalse($this->smarty->isCached($tpl)); - } -} - -class ResourceStream { - private $position; - private $varname; - public function stream_open($path, $mode, $options, &$opened_path) - { - $url = parse_url($path); - $this->varname = $url["host"]; - $this->position = 0; - return true; - } - public function stream_read($count) - { - $p = &$this->position; - $ret = substr($GLOBALS[$this->varname], $p, $count); - $p += strlen($ret); - return $ret; - } - public function stream_write($data) - { - $v = &$GLOBALS[$this->varname]; - $l = strlen($data); - $p = &$this->position; - $v = substr($v, 0, $p) . $data . substr($v, $p += $l); - return $l; - } - public function stream_tell() - { - return $this->position; - } - public function stream_eof() - { - if (!isset($GLOBALS[$this->varname])) { - return true; - } - return $this->position >= strlen($GLOBALS[$this->varname]); - } - public function stream_seek($offset, $whence) - { - $l = strlen($GLOBALS[$this->varname]); - $p = &$this->position; - switch ($whence) { - case SEEK_SET: $newPos = $offset; - break; - case SEEK_CUR: $newPos = $p + $offset; - break; - case SEEK_END: $newPos = $l + $offset; - break; - default: return false; - } - $ret = ($newPos >= 0 && $newPos <= $l); - if ($ret) $p = $newPos; - return $ret; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/StreamVariableTests.php
Deleted
@@ -1,117 +0,0 @@ -<?php -/** -* Smarty PHPunit tests stream variables -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for stream variables tests -*/ -class StreamVariableTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - stream_wrapper_register("var", "VariableStream") - or die("Failed to register protocol"); - $fp = fopen("var://foo", "r+"); - fwrite($fp, 'hello world'); - fclose($fp); - } - - public function tearDown() - { - stream_wrapper_unregister("var"); - } - - public static function isRunnable() - { - return true; - } - - /** - * test stream variable - */ - public function testStreamVariable1() - { - $tpl = $this->smarty->createTemplate('eval:{$var:foo}', null, null, $this->smarty); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } -/* - public function testStreamVariable2() - { - $tpl = $this->smarty->createTemplate('eval:{var:\'foo\'}', null, null, $this->smarty); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } - - public function testStreamVariable3() - { - $tpl = $this->smarty->createTemplate('eval:{var:"foo"}', null, null, $this->smarty); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - } -*/ - /** - * test no existant stream variable - */ -// public function testStreamVariable2() -// { -// $tpl = $this->smarty->createTemplate('eval:{$var:bar}', null, null, $this->smarty); -// $this->assertEquals('', $this->smarty->fetch($tpl)); -// } -} -class VariableStream { - private $position; - private $varname; - public function stream_open($path, $mode, $options, &$opened_path) - { - $url = parse_url($path); - $this->varname = $url["host"]; - $this->position = 0; - return true; - } - public function stream_read($count) - { - $p = &$this->position; - $ret = substr($GLOBALS[$this->varname], $p, $count); - $p += strlen($ret); - return $ret; - } - public function stream_write($data) - { - $v = &$GLOBALS[$this->varname]; - $l = strlen($data); - $p = &$this->position; - $v = substr($v, 0, $p) . $data . substr($v, $p += $l); - return $l; - } - public function stream_tell() - { - return $this->position; - } - public function stream_eof() - { - return $this->position >= strlen($GLOBALS[$this->varname]); - } - public function stream_seek($offset, $whence) - { - $l = strlen($GLOBALS[$this->varname]); - $p = &$this->position; - switch ($whence) { - case SEEK_SET: $newPos = $offset; - break; - case SEEK_CUR: $newPos = $p + $offset; - break; - case SEEK_END: $newPos = $l + $offset; - break; - default: return false; - } - $ret = ($newPos >= 0 && $newPos <= $l); - if ($ret) $p = $newPos; - return $ret; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/StringResourceTests.php
Deleted
@@ -1,169 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for string resources -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for string resource tests -*/ -class StringResourceTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - $this->smarty->clearAllCache(); - $this->smarty->clearCompiledTemplate(); - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - protected function relative($path) - { - $path = str_replace( dirname(__FILE__), '.', $path ); - if (DS == "\\") { - $path = str_replace( "\\", "/", $path ); - } - return $path; - } - - /** - * test template string exits - */ - public function testTemplateStringExists1() - { - $tpl = $this->smarty->createTemplate('string:{$foo}'); - $this->assertTrue($tpl->source->exists); - } - public function testTemplateStringExists2() - { - $this->assertTrue($this->smarty->templateExists('string:{$foo}')); - } - /** - * test getTemplateFilepath - */ - public function testGetTemplateFilepath() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertEquals('2aae6c35c94fcfb415dbe95f408b9ce91ee846ed', $tpl->source->filepath); - } - /** - * test getTemplateTimestamp - */ - public function testGetTemplateTimestamp() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertEquals(0,$tpl->source->timestamp); - } - /** - * test getTemplateSource - */ - public function testGetTemplateSource() - { - $tpl = $this->smarty->createTemplate('string:hello world{$foo}'); - $this->assertEquals('hello world{$foo}', $tpl->source->content); - } - /** - * test usesCompiler - */ - public function testUsesCompiler() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertFalse($tpl->source->uncompiled); - } - /** - * test isEvaluated - */ - public function testIsEvaluated() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertFalse($tpl->source->recompiled); - } - /** - * test mustCompile - */ - public function testMustCompile() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertTrue($tpl->mustCompile()); - } - /** - * test getCompiledFilepath - */ - public function testGetCompiledFilepath() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertEquals('./templates_c/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed.string.php', $this->relative($tpl->compiled->filepath)); - } - /** - * test getCompiledTimestamp - */ - public function testGetCompiledTimestamp() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertFalse($tpl->compiled->timestamp); - } - /** - * test getCachedTimestamp - */ - public function testGetCachedTimestamp() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertFalse($tpl->cached->timestamp); - } - /** - * test writeCachedContent - */ - public function testWriteCachedContent() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertFalse($tpl->writeCachedContent('dummy')); - } - /** - * test isCached - */ - public function testIsCached() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertFalse($tpl->isCached()); - } - /** - * test getRenderedTemplate - */ - public function testGetRenderedTemplate() - { - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertEquals('hello world', $tpl->fetch()); - } - /** - * test $smarty->is_cached - */ - public function testSmartyIsCached() - { - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 20; - $tpl = $this->smarty->createTemplate('string:hello world'); - $this->assertEquals('hello world', $this->smarty->fetch($tpl)); - $this->assertTrue($this->smarty->isCached($tpl)); - } - - public function testUrlencodeTemplate() - { - $tpl = $this->smarty->createTemplate('string:urlencode:%7B%22foobar%22%7Cescape%7D'); - $this->assertEquals('foobar', $tpl->fetch()); - } - - public function testBase64Template() - { - $tpl = $this->smarty->createTemplate('string:base64:eyJmb29iYXIifGVzY2FwZX0='); - $this->assertEquals('foobar', $tpl->fetch()); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/TemplateExistsTests.php
Deleted
@@ -1,41 +0,0 @@ -<?php -/** -* Smarty PHPunit tests for templateExists methode -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for templateExists tests -*/ -class TemplateExistsTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test $smarty->templateExists true - */ - public function testSmartyTemplateExists() - { - $this->assertTrue($this->smarty->templateExists('helloworld.tpl')); - } - /** - * test $smarty->templateExists false - */ - public function testSmartyTemplateNotExists() - { - $this->assertFalse($this->smarty->templateExists('notthere.tpl')); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/TernaryTests.php
Deleted
@@ -1,162 +0,0 @@ -<?php -/** -* Smarty PHPunit tests ternary operator -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for ternary operator tests -*/ -class TernaryTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test output on boolean constant - */ - public function testTernaryOutputBoolean1() - { - $tpl = $this->smarty->createTemplate("eval:{(true) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputBoolean2() - { - $tpl = $this->smarty->createTemplate("eval:{(false) ? 'yes' : 'no'}"); - $this->assertEquals('no', $this->smarty->fetch($tpl)); - } - /** - * test result expressions - */ - public function testTernaryExpression1() - { - $tpl = $this->smarty->createTemplate("eval:{\$x=1}{(true) ? \$x : 'no'}"); - $this->assertEquals(1, $this->smarty->fetch($tpl)); - } - public function testTernaryExpression2() - { - $tpl = $this->smarty->createTemplate("eval:{\$x=1}{(false) ? 'no' : \$x}"); - $this->assertEquals(1, $this->smarty->fetch($tpl)); - } - public function testTernaryExpression3() - { - $tpl = $this->smarty->createTemplate("eval:{\$x=1}{(true) ? \$x+1 : 'no'}"); - $this->assertEquals(2, $this->smarty->fetch($tpl)); - } - public function testTernaryExpression4() - { - $tpl = $this->smarty->createTemplate("eval:{\$x=1}{(false) ? 'no' : \$x+1}"); - $this->assertEquals(2, $this->smarty->fetch($tpl)); - } - /** - * test output on variable - */ - public function testTernaryOutputVariable1() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=true}{(\$foo) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputVariable2() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=false}{(\$foo) ? 'yes' : 'no'}"); - $this->assertEquals('no', $this->smarty->fetch($tpl)); - } - /** - * test output on array element - */ - public function testTernaryOutputArray1() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo[1][2]=true}{(\$foo.1.2) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputArray2() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo[1][2]=true}{(\$foo[1][2]) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputArray3() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo[1][2]=false}{(\$foo.1.2) ? 'yes' : 'no'}"); - $this->assertEquals('no', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputArray4() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo[1][2]=false}{(\$foo[1][2]) ? 'yes' : 'no'}"); - $this->assertEquals('no', $this->smarty->fetch($tpl)); - } - /** - * test output on condition - */ - public function testTernaryOutputCondition1() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=true}{(\$foo === true) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputCondition2() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=true}{(\$foo === false) ? 'yes' : 'no'}"); - $this->assertEquals('no', $this->smarty->fetch($tpl)); - } - /** - * test output on function - */ - public function testTernaryOutputFunction1() - { - $tpl = $this->smarty->createTemplate("eval:{(time()) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - /** - * test output on template function - */ - public function testTernaryOutputTemplateFunction1() - { - $tpl = $this->smarty->createTemplate("eval:{({counter start=1} == 1) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - /** - * test output on expression - */ - public function testTernaryOutputExpression1() - { - $tpl = $this->smarty->createTemplate("eval:{(1 + 2 === 3) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryOutputExpression2() - { - $tpl = $this->smarty->createTemplate("eval:{((1 + 2) === 3) ? 'yes' : 'no'}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - /** - * test assignment on boolean constant - */ - public function testTernaryAssignBoolean1() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo=(true) ? 'yes' : 'no'}{\$foo}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - public function testTernaryAssignBoolean2() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo[1][2]=(true) ? 'yes' : 'no'}{\$foo[1][2]}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } - /** - * test attribute on boolean constant - */ - public function testTernaryAttributeBoolean1() - { - $tpl = $this->smarty->createTemplate("eval:{assign var=foo value=(true) ? 'yes' : 'no'}{\$foo}"); - $this->assertEquals('yes', $this->smarty->fetch($tpl)); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/VariableScopeTests.php
Deleted
@@ -1,184 +0,0 @@ -<?php -/** -* Smarty PHPunit tests variable scope -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for variable scope test -*/ -class VariableScopeTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->assign('foo', 'bar'); - } - - public static function isRunnable() - { - return true; - } - - /** - * test root variable - */ - public function testVariableScope1() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo}", null, null, $this->smarty); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testVariableScope12() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo}", $this->smarty); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testVariableScope13() - { - $tpl = $this->smarty->createTemplate("eval:{\$foo}", $this->smarty); - $this->assertEquals("bar", $tpl->fetch()); - } - - /** - * test root variable with data object chain - */ - public function testVariableScope2() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $tpl = $this->smarty->createTemplate("eval:{\$foo}", null, null, $data2); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testVariableScope22() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $tpl = $this->smarty->createTemplate("eval:{\$foo}", $data2); - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - public function testVariableScope23() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $tpl = $this->smarty->createTemplate("eval:{\$foo}", $data2); - $this->assertEquals("bar", $tpl->fetch()); - } - - /** - * test overwrite variable with data object chain - */ - public function testVariableScope3() - { - $data1 = new Smarty_Data($this->smarty); - $data1->assign('foo','newvalue'); - $data2 = new Smarty_Data($data1); - $tpl = $this->smarty->createTemplate("eval:{\$foo}", null, null, $data2); - // must see the new value - $this->assertEquals("newvalue", $this->smarty->fetch($tpl)); - } - public function testVariableScope32() - { - $data1 = new Smarty_Data($this->smarty); - $data2 = new Smarty_Data($data1); - $tpl = $this->smarty->createTemplate("eval:{\$foo}", $data2); - // must see the old value at root - $this->assertEquals("bar", $this->smarty->fetch($tpl)); - } - - /** - * test local variable not seen global - */ - public function testVariableScope4() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $tpl = $this->smarty->createTemplate("eval:{\$foo2='localvar'}{\$foo2}", null, null, $this->smarty); - // must see local value - $this->assertEquals("localvar", $this->smarty->fetch($tpl)); - // must see $foo2 - $tpl2 = $this->smarty->createTemplate("eval:{\$foo2}", null, null, $this->smarty); - $this->assertEquals("", $this->smarty->fetch($tpl2)); - } - public function testVariableScope42() - { - $this->smarty->error_reporting = error_reporting() & ~(E_NOTICE|E_USER_NOTICE); - $tpl = $this->smarty->createTemplate("eval:{\$foo2='localvar'}{\$foo2}", null, null, $this->smarty); - // must see local value - $this->assertEquals("localvar", $this->smarty->fetch($tpl)); - // must see $foo2 - $tpl2 = $this->smarty->createTemplate("eval:{\$foo2}", $this->smarty); - $this->assertEquals("", $this->smarty->fetch($tpl2)); - } - - /** - * test overwriting by global variable - */ - public function testVariableScope5() - { - // create variable $foo2 - $this->smarty->assign('foo2','oldvalue'); - $tpl = $this->smarty->createTemplate("eval:{assign var=foo2 value='newvalue' scope=parent}{\$foo2}", null, null, $this->smarty); - // must see the new value - $this->assertEquals("newvalue", $this->smarty->fetch($tpl)); - $tpl2 = $this->smarty->createTemplate("eval:{\$foo2}", null, null, $this->smarty); - // must see the new value at root - $this->assertEquals("newvalue", $this->smarty->fetch($tpl2)); - } - public function testVariableScope52() - { - // create variable $foo2 - $this->smarty->assign('foo2','oldvalue'); - $tpl = $this->smarty->createTemplate("eval:{assign var=foo2 value='newvalue' scope=parent}{\$foo2}", null, null, $this->smarty); - // must see the new value - $this->assertEquals("newvalue", $this->smarty->fetch($tpl)); - $tpl2 = $this->smarty->createTemplate("eval:{\$foo2}", $this->smarty); - // must see the new value at root - $this->assertEquals("newvalue", $this->smarty->fetch($tpl2)); - } - - /** - * test creation of global variable in outerscope - */ - public function testVariableScope6() - { - // create global variable $foo2 in template - $tpl = $this->smarty->createTemplate("eval:{assign var=foo2 value='newvalue' scope=parent}{\$foo2}", null, null, $this->smarty); - // must see the new value - $this->assertEquals("newvalue", $this->smarty->fetch($tpl)); - $tpl2 = $this->smarty->createTemplate("eval:{\$foo2}", null, null, $this->smarty); - // must see the new value at root - $this->assertEquals("newvalue", $this->smarty->fetch($tpl2)); - } - public function testVariableScope62() - { - // create global variable $foo2 in template - $tpl = $this->smarty->createTemplate("eval:{assign var=foo2 value='newvalue' scope=parent}{\$foo2}", null, null, $this->smarty); - // must see the new value - $this->assertEquals("newvalue", $this->smarty->fetch($tpl)); - $tpl2 = $this->smarty->createTemplate("eval:{\$foo2}", $this->smarty); - // must see the new value at root - $this->assertEquals("newvalue", $this->smarty->fetch($tpl2)); - } - public function testDataArray() - { - // create global variable $foo2 in template - $tpl = $this->smarty->createTemplate("eval:{\$foo} {\$foo2}",array('foo'=>'bar','foo2'=>'bar2')); - $this->assertEquals("bar bar2", $this->smarty->fetch($tpl)); - } - public function testDataArray2() - { - // create global variable $foo2 in template - $this->assertEquals("bar bar2", $this->smarty->fetch("eval:{\$foo} {\$foo2}",array('foo'=>'bar','foo2'=>'bar2'))); - } - - public function testAssigns() - { - $expected = " local local local parent root global parent root global parent root global"; - $result = $this->smarty->fetch('assign.tpl'); - $this->assertEquals($expected, $result); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/VariableVariableTests.php
Deleted
@@ -1,59 +0,0 @@ -<?php -/** -* Smarty PHPunit tests variable variables -* -* @package PHPunit -* @author Uwe Tews -*/ - - -/** -* class for variable variables tests -*/ -class VariableVariableTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - } - - public static function isRunnable() - { - return true; - } - - /** - * test variable name in variable - */ - public function testVariableVariable1() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'bar\'}{$bar=123}{${$foo}}'); - $this->assertEquals('123', $this->smarty->fetch($tpl)); - } - /** - * test part of variable name in variable - */ - public function testVariableVariable2() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'a\'}{$bar=123}{$b{$foo}r}'); - $this->assertEquals('123', $this->smarty->fetch($tpl)); - } - /** - * test several parts of variable name in variable - */ - public function testVariableVariable3() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'a\'}{$foo2=\'r\'}{$bar=123}{$b{$foo}{$foo2}}'); - $this->assertEquals('123', $this->smarty->fetch($tpl)); - } - /** - * test nesed parts of variable name in variable - */ - public function testVariableVariable4() - { - $tpl = $this->smarty->createTemplate('eval:{$foo=\'ar\'}{$foo2=\'oo\'}{$bar=123}{$b{$f{$foo2}}}'); - $this->assertEquals('123', $this->smarty->fetch($tpl)); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/XmlTests.php
Deleted
@@ -1,87 +0,0 @@ -<?php -/** - * Smarty PHPunit tests of the <?xml...> tag handling - * - * @package PHPunit - * @author Uwe Tews - */ - -/** - * class for <?xml...> tests - */ -class XmlTests extends PHPUnit_Framework_TestCase { - public function setUp() - { - $this->smarty = SmartyTests::$smarty; - SmartyTests::init(); - $this->smarty->force_compile = true; - } - - public static function isRunnable() - { - return true; - } - - /** - * test standard xml - */ - public function testXml() - { - $tpl = $this->smarty->createTemplate('xml.tpl'); - $this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $this->smarty->fetch($tpl)); - } - /** - * test standard xml Smarty::PHP_QUOTE - */ - public function testXmlPhpQuote() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_QUOTE; - $tpl = $this->smarty->createTemplate('xml.tpl'); - $this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $this->smarty->fetch($tpl)); - } - /** - * test standard xml Smarty::PHP_ALLOW - */ - public function testXmlPhpAllow() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_ALLOW; - $tpl = $this->smarty->createTemplate('xml.tpl'); - $this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $this->smarty->fetch($tpl)); - } - /** - * test standard xml - */ - public function testXmlCaching() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_PASSTHRU; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $content = $this->smarty->fetch('xml.tpl'); - $this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $content); - } - /* - * test standard xml - */ - public function testXmlCachingPhpQuote() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_QUOTE; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $content = $this->smarty->fetch('xml.tpl'); - $this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $content); - } - - /* - * test standard xml - */ - public function testXmlCachingPhpAllow() - { - $this->smarty->security_policy->php_handling = Smarty::PHP_ALLOW; - $this->smarty->caching = true; - $this->smarty->cache_lifetime = 1000; - $content = $this->smarty->fetch('xml.tpl'); - $this->assertEquals('<?xml version="1.0" encoding="UTF-8"?>', $content); - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/cache
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/configs
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/configs/test.conf
Deleted
@@ -1,49 +0,0 @@ -title = Welcome to Smarty! - -overwrite = Overwrite1 -overwrite = Overwrite2 - -booleanon = on - -Intro = """This is a value that spans more - than one line. you must enclose - it in triple quotes.""" - -Number = 123.4 - -text = 123bvc - -line = 123 This is a line - -sec1 = Global Section1 - -sec2 = Global Section2 - -sec = Global char -[/] -sec = special char - -[foo/bar] -sec = section foo/bar - -[section1] -sec1 = Hello Section1 - -[section2] -sec2 = 'Hello Section2' - -[.hidden] -hiddentext = Hidden Section - -#Comment -# Comment with a space first line first - #Comment line starting with space - # Space before and after # -#The line below only contains a # -# -# -# title = This is not the correct title - -#[section1] -#sec1 = Wrong text -
View file
Smarty-3.1.13.tar.gz/development/PHPunit/configs/test2.conf
Deleted
@@ -1,2 +0,0 @@ - -overwrite = Overwrite3
View file
Smarty-3.1.13.tar.gz/development/PHPunit/configs/test_error.conf
Deleted
@@ -1,15 +0,0 @@ -title = Welcome to Smarty! - -overwrite = Overwrite1 -overwrite = Overwrite2 - -[section1=]] -# Here is an error -sec1 = "Hello Section1" - -[section2] -sec2 = 'Hello Section2' - -[.hidden] -hiddentext = Hidden Section -
View file
Smarty-3.1.13.tar.gz/development/PHPunit/coverage
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/helpers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/helpers/_object_tostring.php
Deleted
@@ -1,24 +0,0 @@ -<?php - -class _object_toString -{ - protected $string = null; - public function __construct($string) - { - $this->string = (string) $string; - } - - public function __toString() - { - return $this->string; - } -} - -class _object_noString -{ - protected $string = null; - public function __construct($string) - { - $this->string = (string) $string; - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/phpunit-tests-coverage.bat
Deleted
@@ -1,40 +0,0 @@ -@echo off -REM PHPUnit -REM -REM Copyright (c) 2002-2008, Sebastian Bergmann <sb@sebastian-bergmann.de>. -REM All rights reserved. -REM -REM Redistribution and use in source and binary forms, with or without -REM modification, are permitted provided that the following conditions -REM are met: -REM -REM * Redistributions of source code must retain the above copyright -REM notice, this list of conditions and the following disclaimer. -REM -REM * Redistributions in binary form must reproduce the above copyright -REM notice, this list of conditions and the following disclaimer in -REM the documentation and/or other materials provided with the -REM distribution. -REM -REM * Neither the name of Sebastian Bergmann nor the names of his -REM contributors may be used to endorse or promote products derived -REM from this software without specific prior written permission. -REM -REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -REM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -REM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -REM FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -REM LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -REM CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC -REM LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -REM POSSIBILITY OF SUCH DAMAGE. -REM -REM $Id: pear-phpunit.bat 2798 2008-04-14 16:48:33Z sb $ -REM - -set PHPBIN="C:\wamp\bin\php\php5.2.9-1\.\php.exe" -"C:\wamp\bin\php\php5.2.9-1\.\php.exe">test_results.txt "C:\wamp\bin\php\php5.2.9-1\phpunit" --coverage-html coverage SmartyTests.php
View file
Smarty-3.1.13.tar.gz/development/PHPunit/phpunit-tests-coverage.sh
Deleted
@@ -1,2 +0,0 @@ -#!/bin/sh -php -d asp_tags=On /usr/local/bin/phpunit --coverage-html coverage SmartyTests.php > test_results.txt
View file
Smarty-3.1.13.tar.gz/development/PHPunit/phpunit-tests-single.bat
Deleted
@@ -1,120 +0,0 @@ -@echo off -REM PHPUnit -REM -REM Copyright (c) 2002-2008, Sebastian Bergmann <sb@sebastian-bergmann.de>. -REM All rights reserved. -REM -REM Redistribution and use in source and binary forms, with or without -REM modification, are permitted provided that the following conditions -REM are met: -REM -REM * Redistributions of source code must retain the above copyright -REM notice, this list of conditions and the following disclaimer. -REM -REM * Redistributions in binary form must reproduce the above copyright -REM notice, this list of conditions and the following disclaimer in -REM the documentation and/or other materials provided with the -REM distribution. -REM -REM * Neither the name of Sebastian Bergmann nor the names of his -REM contributors may be used to endorse or promote products derived -REM from this software without specific prior written permission. -REM -REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -REM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -REM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -REM FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -REM LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -REM CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC -REM LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -REM POSSIBILITY OF SUCH DAMAGE. -REM -REM $Id: pear-phpunit.bat 2798 2008-04-14 16:48:33Z sb $ -REM - -set PHPBIN="C:\wamp\bin\php\php5.2.9-1\.\php.exe" -"C:\wamp\bin\php\php5.2.9-1\.\php.exe">test_results.txt "C:\wamp\bin\php\php5.2.9-1\phpunit" --verbose SmartyTestssingle.php -@echo off -REM PHPUnit -REM -REM Copyright (c) 2002-2008, Sebastian Bergmann <sb@sebastian-bergmann.de>. -REM All rights reserved. -REM -REM Redistribution and use in source and binary forms, with or without -REM modification, are permitted provided that the following conditions -REM are met: -REM -REM * Redistributions of source code must retain the above copyright -REM notice, this list of conditions and the following disclaimer. -REM -REM * Redistributions in binary form must reproduce the above copyright -REM notice, this list of conditions and the following disclaimer in -REM the documentation and/or other materials provided with the -REM distribution. -REM -REM * Neither the name of Sebastian Bergmann nor the names of his -REM contributors may be used to endorse or promote products derived -REM from this software without specific prior written permission. -REM -REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -REM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -REM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -REM FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -REM LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -REM CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC -REM LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -REM POSSIBILITY OF SUCH DAMAGE. -REM -REM $Id: pear-phpunit.bat 2798 2008-04-14 16:48:33Z sb $ -REM - -set PHPBIN="C:\wamp\bin\php\php5.2.9-1\.\php.exe" -"C:\wamp\bin\php\php5.2.9-1\.\php.exe">test_results.txt "C:\wamp\bin\php\php5.2.9-1\phpunit" --verbose SmartyTestssingle.php -@echo off -REM PHPUnit -REM -REM Copyright (c) 2002-2008, Sebastian Bergmann <sb@sebastian-bergmann.de>. -REM All rights reserved. -REM -REM Redistribution and use in source and binary forms, with or without -REM modification, are permitted provided that the following conditions -REM are met: -REM -REM * Redistributions of source code must retain the above copyright -REM notice, this list of conditions and the following disclaimer. -REM -REM * Redistributions in binary form must reproduce the above copyright -REM notice, this list of conditions and the following disclaimer in -REM the documentation and/or other materials provided with the -REM distribution. -REM -REM * Neither the name of Sebastian Bergmann nor the names of his -REM contributors may be used to endorse or promote products derived -REM from this software without specific prior written permission. -REM -REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -REM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -REM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -REM FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -REM LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -REM CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC -REM LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -REM POSSIBILITY OF SUCH DAMAGE. -REM -REM $Id: pear-phpunit.bat 2798 2008-04-14 16:48:33Z sb $ -REM - -set PHPBIN="C:\wamp\bin\php\php5.2.9-1\.\php.exe" -"C:\wamp\bin\php\php5.2.9-1\.\php.exe">test_results.txt "C:\wamp\bin\php\php5.2.9-1\phpunit" --verbose SmartyTestssingle.php
View file
Smarty-3.1.13.tar.gz/development/PHPunit/phpunit-tests-single.sh
Deleted
@@ -1,2 +0,0 @@ -#!/bin/sh -php -d asp_tags=On /usr/local/bin/phpunit --verbose SmartyTestssingle.php \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/phpunit-tests.bat
Deleted
@@ -1,40 +0,0 @@ -@echo off -REM PHPUnit -REM -REM Copyright (c) 2002-2008, Sebastian Bergmann <sb@sebastian-bergmann.de>. -REM All rights reserved. -REM -REM Redistribution and use in source and binary forms, with or without -REM modification, are permitted provided that the following conditions -REM are met: -REM -REM * Redistributions of source code must retain the above copyright -REM notice, this list of conditions and the following disclaimer. -REM -REM * Redistributions in binary form must reproduce the above copyright -REM notice, this list of conditions and the following disclaimer in -REM the documentation and/or other materials provided with the -REM distribution. -REM -REM * Neither the name of Sebastian Bergmann nor the names of his -REM contributors may be used to endorse or promote products derived -REM from this software without specific prior written permission. -REM -REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -REM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -REM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -REM FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -REM LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -REM CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC -REM LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -REM POSSIBILITY OF SUCH DAMAGE. -REM -REM $Id: pear-phpunit.bat 2798 2008-04-14 16:48:33Z sb $ -REM - -set PHPBIN="C:\wamp\bin\php\php5.2.9-1\.\php.exe" -"C:\wamp\bin\php\php5.2.9-1\.\php.exe">test_results.txt "C:\wamp\bin\php\php5.2.9-1\phpunit" --verbose SmartyTests.php
View file
Smarty-3.1.13.tar.gz/development/PHPunit/phpunit-tests.sh
Deleted
@@ -1,2 +0,0 @@ -#!/bin/sh -php -d asp_tags=On /usr/local/bin/phpunit --verbose SmartyTests.php > test_results.txt
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts/script_block_tag.php
Deleted
@@ -1,7 +0,0 @@ -<?php -function default_script_block_tag ($params, $content, $template, &$repeat) { - if (isset($content)) { - return 'scriptblock '.$content; - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts/script_compiler_function_tag.php
Deleted
@@ -1,5 +0,0 @@ -<?php -function default_script_compiler_function_tag ($params, $template) { - return "<?php echo 'scriptcompilerfunction '.".$params['value'].";?>"; -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts/script_default_static_modifier.php
Deleted
@@ -1,9 +0,0 @@ -<?php -if (!class_exists('DefModifier')) { -Class DefModifier { - static function default_static_modifier ($input) { - return 'staticmodifier '.$input; - } -} -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts/script_function_tag.php
Deleted
@@ -1,5 +0,0 @@ -<?php -function default_script_function_tag ($params, $template) { - return 'scriptfunction '.$params['value']; -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts/script_modifier.php
Deleted
@@ -1,5 +0,0 @@ -<?php -function default_script_modifier ($input, $text = null) { - return $text.$input; -} -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/scripts/test_include_php.php
Deleted
@@ -1,3 +0,0 @@ -<?php -echo 'test include php'; -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/smartytests.php
Deleted
@@ -1,125 +0,0 @@ -<?php -/** - * Smarty PHPunit test suite - * - * @package PHPunit - * @author Uwe Tews - */ - -define ('SMARTY_DIR', '../../distribution/libs/'); - -require_once SMARTY_DIR . 'SmartyBC.class.php'; - -/** - * class for running test suite - */ -class SmartyTests extends PHPUnit_Framework_TestSuite { - static $smarty = null ; - static $smartyBC = null ; - - public function __construct() - { - SmartyTests::$smarty = new Smarty(); - SmartyTests::$smartyBC = new SmartyBC(); - } - - protected static function _init($smarty) - { - $smarty->setTemplateDir('.' . DS . 'templates' . DS); - $smarty->setCompileDir('.' . DS . 'templates_c' . DS); - $smarty->setPluginsDir(SMARTY_PLUGINS_DIR); - $smarty->setCacheDir('.' . DS . 'cache' . DS); - $smarty->setConfigDir('.' . DS . 'configs' . DS); - $smarty->template_objects = array(); - $smarty->config_vars = array(); - Smarty::$global_tpl_vars = array(); - $smarty->template_functions = array(); - $smarty->tpl_vars = array(); - $smarty->force_compile = false; - $smarty->force_cache = false; - $smarty->auto_literal = true; - $smarty->caching = false; - $smarty->debugging = false; - Smarty::$_smarty_vars = array(); - $smarty->registered_plugins = array(); - $smarty->default_plugin_handler_func = null; - $smarty->registered_objects = array(); - $smarty->default_modifiers = array(); - $smarty->registered_filters = array(); - $smarty->autoload_filters = array(); - $smarty->escape_html = false; - $smarty->use_sub_dirs = false; - $smarty->config_overwrite = true; - $smarty->config_booleanize = true; - $smarty->config_read_hidden = true; - $smarty->security_policy = null; - $smarty->left_delimiter = '{'; - $smarty->right_delimiter = '}'; - $smarty->php_handling = Smarty::PHP_PASSTHRU; - $smarty->enableSecurity(); - $smarty->error_reporting = null; - $smarty->error_unassigned = true; - $smarty->caching_type = 'file'; - $smarty->cache_locking = false; - $smarty->cache_id = null; - $smarty->compile_id = null; - $smarty->default_resource_type = 'file'; - } - - public static function init() - { - error_reporting(E_ALL | E_STRICT); - self::_init(SmartyTests::$smarty); - self::_init(SmartyTests::$smartyBC); - Smarty_Resource::$sources = array(); - Smarty_Resource::$compileds = array(); -// Smarty_Resource::$resources = array(); - SmartyTests::$smartyBC->registerPlugin('block','php','smarty_php_tag'); - } - /** - * look for test units and run them - */ - public static function suite() - { - $testorder = array('CoreTests', 'ClearCompiledTests', 'ClearCacheTests', 'StringResourceTests', 'FileResourceTests' ,'DoubleQuotedStringTests', 'CompileAssignTests', 'AttributeTests'); - $smarty_libs_dir = dirname(__FILE__) . '/../../distribution/libs'; - if (method_exists('PHPUnit_Util_Filter', $smarty_libs_dir)) { - // Older versions of PHPUnit did not have this function, - // which is used when determining which PHP files are - // included in the PHPUnit code coverage result. - PHPUnit_Util_Filter::addDirectoryToWhitelist($smarty_libs_dir); - PHPUnit_Util_Filter::removeDirectoryFromWhitelist('./'); - // PHPUnit_Util_Filter::addDirectoryToWhitelist('../libs/plugins'); - } - $suite = new self('Smarty 3 - Unit Tests Report'); - // load test which should run in specific order - foreach ($testorder as $class) { - require_once $class . '.php'; - $suite->addTestSuite($class); - } - - $_classes = array(); - foreach (new DirectoryIterator(dirname(__FILE__)) as $file) { - if (!$file->isDot() && !$file->isDir() && (string) $file !== 'smartytests.php' && (string) $file !== 'smartytestssingle.php' && (string) $file !== 'smartytestsfile.php' && substr((string) $file, -4) === '.php') { - $class = basename($file, '.php'); - if (!in_array($class, $testorder)) { - require_once $file->getPathname(); - // to have an optional test suite, it should implement a public static function isRunnable - // that returns true only if all the conditions are met to run it successfully, for example - // it can check that an external library is present - if (!method_exists($class, 'isRunnable') || call_user_func(array($class, 'isRunnable'))) { - $_classes[] = $class; - } - } - } - } - sort($_classes); - foreach ($_classes as $class) { - $suite->addTestSuite($class); - } - - return $suite; - } -} - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/smartytestssingle.php
Deleted
@@ -1,125 +0,0 @@ -<?php -/** - * Smarty PHPunit test suite - * - * @package PHPunit - * @author Uwe Tews - */ - -define ('SMARTY_DIR', '../../distribution/libs/'); - -require_once SMARTY_DIR . 'SmartyBC.class.php'; - -/** - * class for running test suite - */ -class SmartyTests extends PHPUnit_Framework_TestSuite { - static $smarty = null ; - static $smartyBC = null ; - - public function __construct() - { - SmartyTests::$smarty = new Smarty(); - SmartyTests::$smartyBC = new SmartyBC(); - } - - protected static function _init($smarty) - { - $smarty->template_dir = array('.' . DS . 'templates' . DS); - $smarty->compile_dir = '.' . DS . 'templates_c' . DS; - $smarty->plugins_dir = array(SMARTY_PLUGINS_DIR); - $smarty->cache_dir = '.' . DS . 'cache' . DS; - $smarty->config_dir = array('.' . DS . 'configs' . DS); - $smarty->template_objects = array(); - $smarty->config_vars = array(); - Smarty::$global_tpl_vars = array(); - $smarty->template_functions = array(); - $smarty->tpl_vars = array(); - $smarty->force_compile = false; - $smarty->force_cache = false; - $smarty->auto_literal = true; - $smarty->caching = false; - $smarty->debugging = false; - Smarty::$_smarty_vars = array(); - $smarty->registered_plugins = array(); - $smarty->default_plugin_handler_func = null; - $smarty->registered_objects = array(); - $smarty->default_modifiers = array(); - $smarty->registered_filters = array(); - $smarty->autoload_filters = array(); - $smarty->escape_html = false; - $smarty->use_sub_dirs = false; - $smarty->config_overwrite = true; - $smarty->config_booleanize = true; - $smarty->config_read_hidden = true; - $smarty->security_policy = null; - $smarty->left_delimiter = '{'; - $smarty->right_delimiter = '}'; - $smarty->php_handling = Smarty::PHP_PASSTHRU; - $smarty->enableSecurity(); - $smarty->error_reporting = null; - $smarty->error_unassigned = true; - $smarty->caching_type = 'file'; - $smarty->cache_locking = false; - $smarty->cache_id = null; - $smarty->compile_id = null; - $smarty->default_resource_type = 'file'; - } - - public static function init() - { - error_reporting(E_ALL | E_STRICT); - self::_init(SmartyTests::$smarty); - self::_init(SmartyTests::$smartyBC); - SmartyTests::$smartyBC->registerPlugin('block','php','smarty_php_tag'); - Smarty_Resource::$sources = array(); - Smarty_Resource::$compileds = array(); -// Smarty_Resource::$resources = array(); - } - /** - * look for test units and run them - */ - public static function suite() - { - $testorder = array( - 'FileResourceTests', - // 'PluginFunctionHtmlImageTests', - // 'PluginFunctionFetchTests', - ); - $smarty_libs_dir = dirname(__FILE__) . '/../../distribution/libs'; - if (method_exists('PHPUnit_Util_Filter', $smarty_libs_dir)) { - // Older versions of PHPUnit did not have this function, - // which is used when determining which PHP files are - // included in the PHPUnit code coverage result. - PHPUnit_Util_Filter::addDirectoryToWhitelist($smarty_libs_dir); - // PHPUnit_Util_Filt<er::removeDirectoryFromWhitelist('../'); - // PHPUnit_Util_Filter::addDirectoryToWhitelist('../libs/plugins'); - } - $suite = new self('Smarty 3 - Unit Tests Report'); - // load test which should run in specific order - foreach ($testorder as $class) { - require_once $class . '.php'; - $suite->addTestSuite($class); - } - - if (false) { - foreach (new DirectoryIterator(dirname(__FILE__)) as $file) { - if (!$file->isDot() && !$file->isDir() && (string) $file !== 'smartytests.php' && (string) $file !== 'smartysingletests.php' && substr((string) $file, -4) === '.php') { - $class = basename($file, '.php'); - if (!in_array($class, $testorder)) { - require_once $file->getPathname(); - // to have an optional test suite, it should implement a public static function isRunnable - // that returns true only if all the conditions are met to run it successfully, for example - // it can check that an external library is present - if (!method_exists($class, 'isRunnable') || call_user_func(array($class, 'isRunnable'))) { - $suite->addTestSuite($class); - } - } - } - } - } - return $suite; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/ambiguous
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/ambiguous/case1
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/ambiguous/case1/foobar.tpl
Deleted
@@ -1,1 +0,0 @@ -case1 \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/ambiguous/case2
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/ambiguous/case2/foobar.tpl
Deleted
@@ -1,1 +0,0 @@ -case2 \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/assign.global.tpl
Deleted
@@ -1,1 +0,0 @@ -{assign var="global" value="global" scope="global"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/assign.parent.tpl
Deleted
@@ -1,1 +0,0 @@ -{assign var="parent" value="parent" scope="parent"} {$local|default:"no-local"} {include "assign.root.tpl"} {$parent|default:"no-parent"} {$root|default:"no-root"} {$global|default:"no-global"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/assign.root.tpl
Deleted
@@ -1,1 +0,0 @@ -{assign var="root" value="root" scope="root"} {$local|default:"no-local"} {include "assign.global.tpl"} {$parent|default:"no-parent"} {$root|default:"no-root"} {$global|default:"no-global"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/assign.tpl
Deleted
@@ -1,1 +0,0 @@ -{assign var="local" value="local"} {$local|default:"no-local"} {include "assign.parent.tpl"} {$parent|default:"no-parent"} {$root|default:"no-root"} {$global|default:"no-global"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/blockplugintest.tpl
Deleted
@@ -1,1 +0,0 @@ -{textformat}abc{/textformat} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/compilerplugintest.tpl
Deleted
@@ -1,1 +0,0 @@ -{compilerplugin}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/default.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo|default:""} /* should compile something with @silence error suppression */ \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/dirname.tpl
Deleted
@@ -1,1 +0,0 @@ -templates \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/displayfoo.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/displayfoonocache.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo nocache} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/displayfoonocachenofilter.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo nocache nofilter} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/displayfoonofilter.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo nofilter} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/extendsall.tpl
Deleted
@@ -1,2 +0,0 @@ -{block name="alpha"}templates{/block} -{block name="bravo_2"}templates{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/extendsall2.tpl
Deleted
@@ -1,2 +0,0 @@ -{block name="alpha"}templates{/block} -{block name="bravo_2"}templates{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/functionplugintest.tpl
Deleted
@@ -1,1 +0,0 @@ -{counter start=10 name=tpl} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/hello_world_test.tpl
Deleted
@@ -1,1 +0,0 @@ -hello world \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/helloworld.tpl
Deleted
@@ -1,1 +0,0 @@ -hello world \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/helloworld2.tpl
Deleted
@@ -1,1 +0,0 @@ -hello world \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/insertplugintest.tpl
Deleted
@@ -1,1 +0,0 @@ -{insert name='insertplugintest' foo=$foo} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/phphelloworld.php
Deleted
@@ -1,1 +0,0 @@ -php hello world
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relative.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file="./helloworld.tpl"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relative_notexist.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file="./hello.tpl"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relative_sub.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file="../helloworld.tpl"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/foo.tpl
Deleted
@@ -1,1 +0,0 @@ -relativity \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/relativity.tpl
Deleted
@@ -1,1 +0,0 @@ -relativity \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/theory
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/theory/einstein
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/theory/einstein/einstein.tpl
Deleted
@@ -1,1 +0,0 @@ -einstein \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/theory/einstein/foo.tpl
Deleted
@@ -1,1 +0,0 @@ -einstein \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/theory/foo.tpl
Deleted
@@ -1,1 +0,0 @@ -theory \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/relativity/theory/theory.tpl
Deleted
@@ -1,1 +0,0 @@ -theory \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/sub
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/sub/relative.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file="../helloworld.tpl"} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/template_function_lib.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=template_func1}{$foo|escape} {nocache}{$foo|escape}{/nocache}{/function}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block.tpl
Deleted
@@ -1,7 +0,0 @@ -{extends file='test_block_section.tpl'} -{block name=blockpassedbysection}--block passed by section ok--{/block}<br> -{block name=blockroot}--block root ok--{/block}<br> -{block name="blockassigned"}--assigned {$foo}--{/block}<br> -{block name='parentbase'}--parent from {$smarty.block.parent} block--{/block}<br> -{block name='parentsection'}--parent from {$smarty.block.parent} block--{/block}<br> -{block name='blockinclude'}--block include ok--{/block}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_base.tpl
Deleted
@@ -1,8 +0,0 @@ -{block name='blockbase'}--block base ok--{/block}<br> -{block name=blocksection}--block section false--{/block}<br> -{block name=blockpassedbysection}--block passed by section false--{/block}<br> -{block name=blockroot}--block root false--{/block}<br> -{block name=blockassigned}--block assigned false--{/block}<br> -{block name='parentbase'}--base--{/block}<br> -{block name='parentsection'}--parent from section false--{/block}<br> -{block name='include_dummy'}{include file='test_block_include.tpl'}{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title'}Page Title{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_append.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title' append} - append{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_append_shorttag.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent_shorttag.tpl'} -{block 'title' append} - append{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_nested.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent_nested.tpl'} -{block name='title_content'}-content from child-{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_nested2.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title'}child title with {block name='title_content'}-default-{/block} here{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_nested3.tpl
Deleted
@@ -1,6 +0,0 @@ -{extends file='test_block_parent3.tpl'} -{block name='content1'} - {block name='content2'} - child pre {$smarty.block.child} child post - {/block} -{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_nested_hide.tpl
Deleted
@@ -1,12 +0,0 @@ -{extends file="test_block_parent_nested2.tpl"} - -{block name="index"} - {block name="test2"} - nested block. - {$smarty.block.child} - {/block} - {block name="test" hide} - I should be hidden. - {$smarty.block.child} - {/block} -{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_nested_hide_space.tpl
Deleted
@@ -1,12 +0,0 @@ -{ extends file="test_block_parent_nested2_space.tpl" } - -{ block name="index" } - { block name="test2" } - nested block. - { $smarty.block.child } - { /block } - { block name="test" hide } - I should be hidden. - { $smarty.block.child } - { /block } -{ /block } \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_nested_include.tpl
Deleted
@@ -1,4 +0,0 @@ -{extends file='test_block_parent_nested_include.tpl'} -{block name='body'} -{block name='title_content'}{block name='nested'}{include file='helloworld.tpl'}{/block}{/block} -{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_plugin.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title'}{'escaped <text>'|escape}{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_prepend.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title' prepend}prepend - {/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_resource.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='title'}Page Title{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_smartychild.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent_smartychild.tpl'} -{block name='title'}child text{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_smartychild2.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title'}child title with - {$smarty.block.child} - here{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_child_smartyparent.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_parent.tpl'} -{block name='title'}parent block {$smarty.block.parent} is here{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_extends.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='extends:test_block_base.tpl|test_block_section.tpl|test_block.tpl'} -{block name='blockbase'}--block base from extends--{/block}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child.tpl'} -{block name='title'}Grandchild Page Title{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_append.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child.tpl'} -{block name='title' append} - grandchild append{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_nested.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child_nested2.tpl'} -{block name='title_content'}-grandchild content-{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_nested3.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child_nested3.tpl'} -{block name='content2'}-grandchild content-{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_nested_include.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child_nested_include.tpl'} -{block name='title_content' append} some content {/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_prepend.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child.tpl'} -{block name='title' prepend}grandchild prepend - {/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_resource.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='title'}Grandchild Page Title{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_grandchild_smartychild.tpl
Deleted
@@ -1,2 +0,0 @@ -{extends file='test_block_child_smartychild2.tpl'} -{block name='title'}grandchild content{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='blockinclude'}--block include false--{/block}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include_parent.tpl
Deleted
@@ -1,4 +0,0 @@ -{block name="p"} {/block} -{block name='dummy'} -{include file='test_block_include_subtemplate.tpl'} -{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include_root.tpl
Deleted
@@ -1,4 +0,0 @@ -{include file='test_block_include_start1.tpl'} -{include file='test_block_include_start2.tpl'} -{include file='test_block_include_start3.tpl'} -
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include_start1.tpl
Deleted
@@ -1,5 +0,0 @@ -{extends file='test_block_include_parent.tpl'} - -{block name="p"}page 1<br>{/block} - -{block name="b"}block 1<br>{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include_start2.tpl
Deleted
@@ -1,5 +0,0 @@ -{extends file='test_block_include_parent.tpl'} - -{block name="p"}page 2<br>{/block} - -{block name="b"}block 2<br>{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include_start3.tpl
Deleted
@@ -1,5 +0,0 @@ -{extends file='test_block_include_parent.tpl'} - -{block name="p"}page 3<br>{/block} - -{block name="b"}block 3<br>{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_include_subtemplate.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name="b"}-dummy-{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_nocache_child.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name=test nocache}foo {$foo}{/block}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_nocache_parent.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name=test nocache}default{/block}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent.tpl
Deleted
@@ -1,5 +0,0 @@ -<html> - <head> - <h1>{block name='title'}Default Title{/block}</h1> - </head> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent3.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='content1'}Default content{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent_nested.tpl
Deleted
@@ -1,5 +0,0 @@ -<html> - <head> - <h1>{block name='title'}Title with {block name='title_content'}-default-{/block} here{/block}</h1> - </head> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent_nested2.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='index'}{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent_nested2_space.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='index'}{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent_nested_include.tpl
Deleted
@@ -1,1 +0,0 @@ -{block name='body'}-default-{/block}
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent_shorttag.tpl
Deleted
@@ -1,5 +0,0 @@ -<html> - <head> - <h1>{block 'title'}Default Title{/block}</h1> - </head> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_parent_smartychild.tpl
Deleted
@@ -1,5 +0,0 @@ -<html> - <head> - <h1>{block name='title'}here is {$smarty.block.child} included{/block}</h1> - </head> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_block_section.tpl
Deleted
@@ -1,6 +0,0 @@ -{extends file='test_block_base.tpl'} -This template should not output anything, ignore all Smarty tags but <block>. -{block name=blocksection}--block section ok--{/block}<br> -{'Hello World'} -{block name=blockpassedbysection}--block passed by section false--{/block}<br> -{block name='parentsection'}--section--{/block}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_capture_nocache.tpl
Deleted
@@ -1,2 +0,0 @@ -{capture assign=bar nocache}foo {$foo}{/capture} -{$bar nocache} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_block_script.tpl
Deleted
@@ -1,1 +0,0 @@ -{scriptblock}foo bar{/scriptblock} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_compiler_function_script.tpl
Deleted
@@ -1,1 +0,0 @@ -{scriptcompilerfunction value='foo bar'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_function_local.tpl
Deleted
@@ -1,1 +0,0 @@ -{localfunction value='foo bar'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_function_script.tpl
Deleted
@@ -1,1 +0,0 @@ -{scriptfunction value='foo bar'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_function_script_notcachable.tpl
Deleted
@@ -1,1 +0,0 @@ -{scriptfunctionnotcachable value=$foo} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_modifier.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo|mydefaultmodifier} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_modifier_script.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo|scriptmodifier:'scriptmodifier default '} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_default_static_modifier.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo|mydefaultstaticmodifier nocache} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_define_function_tag.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=functest6i loop=0}{$loop}{if $loop < 5}{call name=functest6i loop=$loop+1}{/if}{/function} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_inherit_function_tag.tpl
Deleted
@@ -1,1 +0,0 @@ -{call name=functest4} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_inherit_function_tag6.tpl
Deleted
@@ -1,1 +0,0 @@ -{call name=functest6i} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_nocache_tag.tpl
Deleted
@@ -1,2 +0,0 @@ -<br>root {nocache}{$foo + 2}{/nocache}{$bar} -{include file='test_nocache_tag_include.tpl'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_nocache_tag_include.tpl
Deleted
@@ -1,1 +0,0 @@ -<br>include {nocache}{$foo + 4}{/nocache}{$bar} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_plugin_chained_load.tpl
Deleted
@@ -1,1 +0,0 @@ -{chain1} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_print_nocache.tpl
Deleted
@@ -1,1 +0,0 @@ -{$foo nocache=true}{$bar} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_recursive_includes.tpl
Deleted
@@ -1,3 +0,0 @@ -before {$foo} {$bar}<br> -{if $foo < 3}{include 'test_recursive_includes.tpl' foo=$foo+1}{/if} -after {$foo} {$bar}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_recursive_includes2.tpl
Deleted
@@ -1,3 +0,0 @@ -before {$foo} {$bar}<br> -{if $foo < 4}{include 'test_recursive_includes_pass.tpl' foo=$foo+1}{/if} -after {$foo} {$bar}<br>
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_recursive_includes_pass.tpl
Deleted
@@ -1,1 +0,0 @@ -{include 'test_recursive_includes2.tpl' foo=$foo+1} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_register_block.tpl
Deleted
@@ -1,1 +0,0 @@ -{$x} {testblock}{$y}{/testblock} {$z} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_register_function.tpl
Deleted
@@ -1,1 +0,0 @@ -{testfunction value=$x} {$y} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file='template_function_lib.tpl'}{call name=template_func1} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_nocache_call.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file='template_function_lib.tpl'}{call 'template_func1' nocache} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag1.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=functest default='default'}{$default} {$param}{/function}{call name=functest param='param'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag2.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=functest2 default='default'}{$default} {$param}{/function}{call name=functest2 param='param'} {call name=functest2 param='param2'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag3.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=functest3 default='default'}{$default} {$param}{/function}{call name=functest3 param='param' default='overwrite'} {call name=functest3 param='param2'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag4.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=functest4 loop=0}{$loop}{if $loop < 5}{call name=functest4 loop=$loop+1}{/if}{/function}{call name=functest4} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag5.tpl
Deleted
@@ -1,1 +0,0 @@ -{function name=functest4 loop=0}{$loop}{if $loop < 5}{call name=functest4 loop=$loop+1}{/if}{/function}{include file='test_inherit_function_tag.tpl'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag6.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file='test_define_function_tag.tpl'}{include file='test_inherit_function_tag6.tpl'} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/test_template_function_tag7.tpl
Deleted
@@ -1,1 +0,0 @@ -{include file='template_function_lib.tpl'}{call name=template_func1} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/whitespace.tpl
Deleted
@@ -1,46 +0,0 @@ - - <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> -<head> - <meta charset="utf-8" /> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <title>whitespace</title> - <meta name="title" content="" /> - <meta name="description" content="" /> - - <link rel="stylesheet" type="text/css" href="screen.css" /> -</head> -<body> - <!--[if lte IE 6]>internet explorer conditional comment<![endif]--> - <!--[if lte IE 7]>internet explorer conditional comment<![endif]--> - <div class=" asdasd " id='not' data-one = " " - style=" " title=' ' ></div> - <!-- html comment --> - <!-- - html - multiline - comment - --> - <img - src="foo" alt="" /> - - <script type="text/javascript"> - foobar - </script> - <script> - foobar - </script> - <pre id="foobar"> - foobar - </pre> - <pre> - foobar - </pre> - <p> - <textarea name="foobar"> - foobar - </textarea> - </p> - -</body> - </html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates/xml.tpl
Deleted
@@ -1,1 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2/ambiguous
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2/ambiguous/case1
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2/ambiguous/case1/foobar.tpl
Deleted
@@ -1,1 +0,0 @@ -templates_2 \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2/dirname.tpl
Deleted
@@ -1,1 +0,0 @@ -templates_2 \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2/hello.tpl
Deleted
@@ -1,1 +0,0 @@ -hello world \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_2/helloworld.php
Deleted
@@ -1,1 +0,0 @@ -php hello world \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_3
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_3/dirname.tpl
Deleted
@@ -1,1 +0,0 @@ -templates_3 \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_3/extendsall.tpl
Deleted
@@ -1,5 +0,0 @@ -{block name="alpha"}templates_3{/block} -{block name="bravo"} -{block name="bravo_1"}templates_3{/block} -{block name="bravo_2"}templates_3{/block} -{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_4
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_4/dirname.tpl
Deleted
@@ -1,1 +0,0 @@ -templates_4 \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_4/extendsall.tpl
Deleted
@@ -1,3 +0,0 @@ -{block name="alpha"}templates_4{/block} -{block name="bravo"}templates_4{/block} -{block name="charlie"}templates_4{/block} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/PHPunit/templates_c
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples/Smarty_CacheResource_Apc.html
Deleted
@@ -1,356 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_CacheResource_Apc</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_CacheResource_Apc</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">APC CacheResource</p> -<p class="description"><p>CacheResource Implementation based on the KeyValueStore API to use memcache as the storage resource for Smarty's output caching. *</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_demo---plugins---cacheresource.apc.php.html">/demo/plugins/cacheresource.apc.php</a> (line <span class="field">12</span>) - </p> - - - <pre><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - | - --<a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> - | - --Smarty_CacheResource_Apc</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_CacheResource_Apc</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#delete" title="details" class="method-name">delete</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#purge" title="details" class="method-name">purge</a> - () - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#read" title="details" class="method-name">read</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#write" title="details" class="method-name">write</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>, [<span class="var-type">int</span> <span class="var-name">$expire</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$contents">Smarty_CacheResource_KeyValueStore::$contents</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$timestamps">Smarty_CacheResource_KeyValueStore::$timestamps</a></span><br> - </span> - </blockquote> - <p>Inherited from <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">14</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_CacheResource_Apc</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - </div> -<a name="methoddelete" id="delete"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">delete</span> (line <span class="line-number">60</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Remove values from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - delete - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of keys to delete</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a></dt> - <dd>Remove values from cache</dd> - </dl> - - </div> -<a name="methodpurge" id="purge"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">purge</span> (line <span class="line-number">73</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Remove *all* values from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - purge - </span> - () - </div> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a></dt> - <dd>Remove *all* values from cache</dd> - </dl> - - </div> -<a name="methodread" id="read"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">read</span> (line <span class="line-number">29</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read values for a set of keys from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> list of values with the given keys used as indexes</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - read - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of keys to fetch</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodread">Smarty_CacheResource_KeyValueStore::read()</a></dt> - <dd>Read values for a set of keys from cache</dd> - </dl> - - </div> -<a name="methodwrite" id="write"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">write</span> (line <span class="line-number">46</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Save values for a set of keys to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - write - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>, [<span class="var-type">int</span> <span class="var-name">$expire</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of values to save</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$expire</span><span class="var-description">: expiration time</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwrite">Smarty_CacheResource_KeyValueStore::write()</a></dt> - <dd>Save values for a set of keys to cache</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodacquireLock">Smarty_CacheResource_KeyValueStore::acquireLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodaddMetaTimestamp">Smarty_CacheResource_KeyValueStore::addMetaTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodfetch">Smarty_CacheResource_KeyValueStore::fetch()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetLatestInvalidationTimestamp">Smarty_CacheResource_KeyValueStore::getLatestInvalidationTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetMetaTimestamp">Smarty_CacheResource_KeyValueStore::getMetaTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetTemplateUid">Smarty_CacheResource_KeyValueStore::getTemplateUid()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodhasLock">Smarty_CacheResource_KeyValueStore::hasLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodinvalidate">Smarty_CacheResource_KeyValueStore::invalidate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodlistInvalidationKeys">Smarty_CacheResource_KeyValueStore::listInvalidationKeys()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulate">Smarty_CacheResource_KeyValueStore::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulateTimestamp">Smarty_CacheResource_KeyValueStore::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodprocess">Smarty_CacheResource_KeyValueStore::process()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodread">Smarty_CacheResource_KeyValueStore::read()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodreleaseLock">Smarty_CacheResource_KeyValueStore::releaseLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodsanitize">Smarty_CacheResource_KeyValueStore::sanitize()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwrite">Smarty_CacheResource_KeyValueStore::write()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwriteCachedContent">Smarty_CacheResource_KeyValueStore::writeCachedContent()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:05 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples/Smarty_CacheResource_Memcache.html
Deleted
@@ -1,397 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_CacheResource_Memcache</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_CacheResource_Memcache</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Memcache CacheResource</p> -<p class="description"><p>CacheResource Implementation based on the KeyValueStore API to use memcache as the storage resource for Smarty's output caching.</p><p>Note that memcache has a limitation of 256 characters per cache-key. To avoid complications all cache-keys are translated to a sha1 hash.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_demo---plugins---cacheresource.memcache.php.html">/demo/plugins/cacheresource.memcache.php</a> (line <span class="field">15</span>) - </p> - - - <pre><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - | - --<a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> - | - --Smarty_CacheResource_Memcache</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">Memcache</span> - <a href="#$memcache" title="details" class="var-name">$memcache</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_CacheResource_Memcache</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#delete" title="details" class="method-name">delete</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#purge" title="details" class="method-name">purge</a> - () - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#read" title="details" class="method-name">read</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#write" title="details" class="method-name">write</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>, [<span class="var-type">int</span> <span class="var-name">$expire</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$memcache" id="$memcache"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">Memcache</span> - <span class="var-name">$memcache</span> - = <span class="var-default"> null</span> (line <span class="line-number">20</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">memcache instance</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$contents">Smarty_CacheResource_KeyValueStore::$contents</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$timestamps">Smarty_CacheResource_KeyValueStore::$timestamps</a></span><br> - </span> - </blockquote> - <p>Inherited from <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_CacheResource_Memcache</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - </div> -<a name="methoddelete" id="delete"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">delete</span> (line <span class="line-number">73</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Remove values from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - delete - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of keys to delete</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a></dt> - <dd>Remove values from cache</dd> - </dl> - - </div> -<a name="methodpurge" id="purge"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">purge</span> (line <span class="line-number">87</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Remove *all* values from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - purge - </span> - () - </div> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a></dt> - <dd>Remove *all* values from cache</dd> - </dl> - - </div> -<a name="methodread" id="read"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">read</span> (line <span class="line-number">35</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read values for a set of keys from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> list of values with the given keys used as indexes</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - read - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of keys to fetch</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodread">Smarty_CacheResource_KeyValueStore::read()</a></dt> - <dd>Read values for a set of keys from cache</dd> - </dl> - - </div> -<a name="methodwrite" id="write"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">write</span> (line <span class="line-number">58</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Save values for a set of keys to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - write - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>, [<span class="var-type">int</span> <span class="var-name">$expire</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of values to save</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$expire</span><span class="var-description">: expiration time</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwrite">Smarty_CacheResource_KeyValueStore::write()</a></dt> - <dd>Save values for a set of keys to cache</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodacquireLock">Smarty_CacheResource_KeyValueStore::acquireLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodaddMetaTimestamp">Smarty_CacheResource_KeyValueStore::addMetaTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodfetch">Smarty_CacheResource_KeyValueStore::fetch()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetLatestInvalidationTimestamp">Smarty_CacheResource_KeyValueStore::getLatestInvalidationTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetMetaTimestamp">Smarty_CacheResource_KeyValueStore::getMetaTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetTemplateUid">Smarty_CacheResource_KeyValueStore::getTemplateUid()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodhasLock">Smarty_CacheResource_KeyValueStore::hasLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodinvalidate">Smarty_CacheResource_KeyValueStore::invalidate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodlistInvalidationKeys">Smarty_CacheResource_KeyValueStore::listInvalidationKeys()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulate">Smarty_CacheResource_KeyValueStore::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulateTimestamp">Smarty_CacheResource_KeyValueStore::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodprocess">Smarty_CacheResource_KeyValueStore::process()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodread">Smarty_CacheResource_KeyValueStore::read()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodreleaseLock">Smarty_CacheResource_KeyValueStore::releaseLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodsanitize">Smarty_CacheResource_KeyValueStore::sanitize()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwrite">Smarty_CacheResource_KeyValueStore::write()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwriteCachedContent">Smarty_CacheResource_KeyValueStore::writeCachedContent()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:07 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples/Smarty_CacheResource_Mysql.html
Deleted
@@ -1,518 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_CacheResource_Mysql</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_CacheResource_Mysql</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">MySQL CacheResource</p> -<p class="description"><p>CacheResource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's output caching.</p><p>Table definition: <pre>CREATE TABLE IF NOT EXISTS `output_cache` ( - `id` CHAR(40) NOT NULL COMMENT 'sha1 hash', - `name` VARCHAR(250) NOT NULL, - `cache_id` VARCHAR(250) NULL DEFAULT NULL, - `compile_id` VARCHAR(250) NULL DEFAULT NULL, - `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - `content` LONGTEXT NOT NULL, - PRIMARY KEY (`id`), - INDEX(`name`), - INDEX(`cache_id`), - INDEX(`compile_id`), - INDEX(`modified`) - ) ENGINE = InnoDB;</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_demo---plugins---cacheresource.mysql.php.html">/demo/plugins/cacheresource.mysql.php</a> (line <span class="field">27</span>) - </p> - - - <pre><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - | - --<a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a> - | - --Smarty_CacheResource_Mysql</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$db" title="details" class="var-name">$db</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$fetch" title="details" class="var-name">$fetch</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$fetchTimestamp" title="details" class="var-name">$fetchTimestamp</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$save" title="details" class="var-name">$save</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_CacheResource_Mysql</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#delete" title="details" class="method-name">delete</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type"></span> <span class="var-name">&$content</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer|boolean</span> - <a href="#fetchTimestamp" title="details" class="method-name">fetchTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#save" title="details" class="method-name">save</a> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$db" id="$db"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$db</span> - (line <span class="line-number">29</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$fetch" id="$fetch"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$fetch</span> - (line <span class="line-number">30</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$fetchTimestamp" id="$fetchTimestamp"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$fetchTimestamp</span> - (line <span class="line-number">31</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$save" id="$save"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$save</span> - (line <span class="line-number">32</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">34</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_CacheResource_Mysql</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - </div> -<a name="methoddelete" id="delete"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">delete</span> (line <span class="line-number">121</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Delete content from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> number of deleted caches</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - delete - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer|null</span> - <span class="var-name">$exp_time</span><span class="var-description">: seconds till expiration or null</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methoddelete">Smarty_CacheResource_Custom::delete()</a></dt> - <dd>Delete content from cache</dd> - </dl> - - </div> -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">57</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">fetch cached content and its modification time from data source</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - fetch - </span> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type"></span> <span class="var-name">&$content</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$id</span><span class="var-description">: unique cache content identifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: cached content</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$mtime</span><span class="var-description">: cache modification timestamp (epoch)</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$content</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$mtime</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetch">Smarty_CacheResource_Custom::fetch()</a></dt> - <dd>fetch cached content and its modification time from data source</dd> - </dl> - - </div> -<a name="methodfetchTimestamp" id="fetchTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">fetchTimestamp</span> (line <span class="line-number">81</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch cached content's modification timestamp from data source</p> - <ul class="tags"> - <li><span class="field">return:</span> timestamp (epoch) the template was modified, or false if not found</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer|boolean</span> - <span class="method-name"> - fetchTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$id</span><span class="var-description">: unique cache content identifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetchTimestamp">Smarty_CacheResource_Custom::fetchTimestamp()</a></dt> - <dd>Fetch cached content's modification timestamp from data source</dd> - </dl> - - </div> -<a name="methodsave" id="save"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">save</span> (line <span class="line-number">100</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Save content to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - save - </span> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$id</span><span class="var-description">: unique cache content identifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer|null</span> - <span class="var-name">$exp_time</span><span class="var-description">: seconds till expiration time in seconds or null</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodsave">Smarty_CacheResource_Custom::save()</a></dt> - <dd>Save content to cache</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclear">Smarty_CacheResource_Custom::clear()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclearAll">Smarty_CacheResource_Custom::clearAll()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methoddelete">Smarty_CacheResource_Custom::delete()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetch">Smarty_CacheResource_Custom::fetch()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetchTimestamp">Smarty_CacheResource_Custom::fetchTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulate">Smarty_CacheResource_Custom::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulateTimestamp">Smarty_CacheResource_Custom::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodprocess">Smarty_CacheResource_Custom::process()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodsave">Smarty_CacheResource_Custom::save()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodwriteCachedContent">Smarty_CacheResource_Custom::writeCachedContent()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></span><br> - <span class="method-name"><a href="../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:10 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples/_demo---plugins---cacheresource.apc.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page cacheresource.apc.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/plugins/cacheresource.apc.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../CacheResource-examples/Smarty_CacheResource_Apc.html">Smarty_CacheResource_Apc</a> - </td> - <td> - APC CacheResource - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:05 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples/_demo---plugins---cacheresource.memcache.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page cacheresource.memcache.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/plugins/cacheresource.memcache.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../CacheResource-examples/Smarty_CacheResource_Memcache.html">Smarty_CacheResource_Memcache</a> - </td> - <td> - Memcache CacheResource - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:07 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/CacheResource-examples/_demo---plugins---cacheresource.mysql.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page cacheresource.mysql.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/plugins/cacheresource.mysql.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../CacheResource-examples/Smarty_CacheResource_Mysql.html">Smarty_CacheResource_Mysql</a> - </td> - <td> - MySQL CacheResource - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:10 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Example-application
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Example-application/_demo---index.php.html
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page index.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/index.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-includes">Includes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Example Application</p> - - </div> -</div> - - - <a name="sec-includes"></a> - <div class="info-box"> - <div class="info-box-title">Includes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Includes</span> - </div> - <div class="info-box-body"> - <a name="___/libs/Smarty_class_php"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="include-title"> - <span class="include-type">require</span> - (<span class="include-name"><a href="../Smarty/_libs---Smarty.class.php.html">'../libs/Smarty.class.php'</a></span>) - (line <span class="line-number">8</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> - </div> - </div> - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples/Smarty_Resource_Extendsall.html
Deleted
@@ -1,195 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource_Extendsall</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource_Extendsall</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Extends All Resource</p> -<p class="description"><p>Resource Implementation modifying the extends-Resource to walk through the template_dirs and inherit all templates of the same name</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_demo---plugins---resource.extendsall.php.html">/demo/plugins/resource.extendsall.php</a> (line <span class="field">12</span>) - </p> - - - <pre><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --<a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a> - | - --Smarty_Resource_Extendsall</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"></span> <span class="var-name">$source</span>, [<span class="var-type"></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"></span> <span class="var-name">$source</span>, [<span class="var-type"></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulate">Smarty_Internal_Resource_Extends::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetBasename">Smarty_Internal_Resource_Extends::getBasename()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetContent">Smarty_Internal_Resource_Extends::getContent()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulate">Smarty_Internal_Resource_Extends::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulateTimestamp">Smarty_Internal_Resource_Extends::populateTimestamp()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples/Smarty_Resource_Mysql.html
Deleted
@@ -1,369 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource_Mysql</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource_Mysql</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">MySQL Resource</p> -<p class="description"><p>Resource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's templates and configs.</p><p>Table definition: <pre>CREATE TABLE IF NOT EXISTS `templates` ( - `name` varchar(100) NOT NULL, - `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `source` text, - PRIMARY KEY (`name`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre></p><p>Demo data: <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_demo---plugins---resource.mysql.php.html">/demo/plugins/resource.mysql.php</a> (line <span class="field">23</span>) - </p> - - - <pre><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --<a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> - | - --Smarty_Resource_Mysql</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$db" title="details" class="var-name">$db</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$fetch" title="details" class="var-name">$fetch</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$mtime" title="details" class="var-name">$mtime</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Resource_Mysql</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">&$source</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$source</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#fetchTimestamp" title="details" class="method-name">fetchTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$db" id="$db"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$db</span> - (line <span class="line-number">25</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$fetch" id="$fetch"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$fetch</span> - (line <span class="line-number">27</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$mtime" id="$mtime"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$mtime</span> - (line <span class="line-number">29</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">31</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Resource_Mysql</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - </div> -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch a template and its modification time from database</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - fetch - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">&$source</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$source</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$source</span><span class="var-description">: template source</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$mtime</span><span class="var-description">: template modification timestamp (epoch)</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$source</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$mtime</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetch">Smarty_Resource_Custom::fetch()</a></dt> - <dd>fetch template and its modification time from data source</dd> - </dl> - - </div> -<a name="methodfetchTimestamp" id="fetchTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">fetchTimestamp</span> (line <span class="line-number">70</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch a template's modification time from database</p> - <ul class="tags"> - <li><span class="field">return:</span> timestamp (epoch) the template was modified</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - fetchTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetchTimestamp">Smarty_Resource_Custom::fetchTimestamp()</a></dt> - <dd>Fetch template's modification timestamp from data source</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetch">Smarty_Resource_Custom::fetch()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetchTimestamp">Smarty_Resource_Custom::fetchTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetBasename">Smarty_Resource_Custom::getBasename()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetContent">Smarty_Resource_Custom::getContent()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodpopulate">Smarty_Resource_Custom::populate()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:17 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples/Smarty_Resource_Mysqls.html
Deleted
@@ -1,303 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource_Mysqls</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource_Mysqls</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">MySQL Resource</p> -<p class="description"><p>Resource Implementation based on the Custom API to use MySQL as the storage resource for Smarty's templates and configs.</p><p>Note that this MySQL implementation fetches the source and timestamps in a single database query, instead of two seperate like resource.mysql.php does.</p><p>Table definition: <pre>CREATE TABLE IF NOT EXISTS `templates` ( - `name` varchar(100) NOT NULL, - `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `source` text, - PRIMARY KEY (`name`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre></p><p>Demo data: <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_demo---plugins---resource.mysqls.php.html">/demo/plugins/resource.mysqls.php</a> (line <span class="field">26</span>) - </p> - - - <pre><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --<a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> - | - --Smarty_Resource_Mysqls</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$db" title="details" class="var-name">$db</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$fetch" title="details" class="var-name">$fetch</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Resource_Mysqls</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">&$source</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$source</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$db" id="$db"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$db</span> - (line <span class="line-number">28</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$fetch" id="$fetch"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$fetch</span> - (line <span class="line-number">30</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">32</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Resource_Mysqls</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - </div> -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch a template and its modification time from database</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - fetch - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">&$source</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$source</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$source</span><span class="var-description">: template source</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$mtime</span><span class="var-description">: template modification timestamp (epoch)</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$source</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$mtime</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetch">Smarty_Resource_Custom::fetch()</a></dt> - <dd>fetch template and its modification time from data source</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetch">Smarty_Resource_Custom::fetch()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetchTimestamp">Smarty_Resource_Custom::fetchTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetBasename">Smarty_Resource_Custom::getBasename()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetContent">Smarty_Resource_Custom::getContent()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodpopulate">Smarty_Resource_Custom::populate()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:18 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples/_demo---plugins---resource.extendsall.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page resource.extendsall.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/plugins/resource.extendsall.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Resource-examples/Smarty_Resource_Extendsall.html">Smarty_Resource_Extendsall</a> - </td> - <td> - Extends All Resource - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples/_demo---plugins---resource.mysql.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page resource.mysql.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/plugins/resource.mysql.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Resource-examples/Smarty_Resource_Mysql.html">Smarty_Resource_Mysql</a> - </td> - <td> - MySQL Resource - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:17 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Resource-examples/_demo---plugins---resource.mysqls.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page resource.mysqls.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/demo/plugins/resource.mysqls.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Resource-examples/Smarty_Resource_Mysqls.html">Smarty_Resource_Mysqls</a> - </td> - <td> - MySQL Resource - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:18 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/Smarty_CacheResource.html
Deleted
@@ -1,835 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_CacheResource</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_CacheResource</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Cache Handler API</p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_cacheresource.php.html">/libs/sysplugins/smarty_cacheresource.php</a> (line <span class="field">16</span>) - </p> - - - <pre></pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a></td> - <td> - Cache Handler API - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a></td> - <td> - Smarty Cache Handler Base for Key/Value Storage Implementations - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html">Smarty_Internal_CacheResource_File</a></td> - <td> - This class does contain all necessary methods for the HTML cache on file system - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$resources" title="details" class="var-name">$resources</a> - </div> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$sysplugins" title="details" class="var-name">$sysplugins</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#invalidLoadedCache" title="details" class="method-name">invalidLoadedCache</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - static <span class="method-result"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> - <a href="#load" title="details" class="method-name">load</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#acquireLock" title="details" class="method-name">acquireLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clear" title="details" class="method-name">clear</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearAll" title="details" class="method-name">clearAll</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#getCachedContent" title="details" class="method-name">getCachedContent</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#hasLock" title="details" class="method-name">hasLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#locked" title="details" class="method-name">locked</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">booelan</span> - <a href="#process" title="details" class="method-name">process</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#releaseLock" title="details" class="method-name">releaseLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#writeCachedContent" title="details" class="method-name">writeCachedContent</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$resources" id="$resources"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$resources</span> - = <span class="var-default">array()</span> (line <span class="line-number">21</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache for Smarty_CacheResource instances</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$sysplugins" id="$sysplugins"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$sysplugins</span> - = <span class="var-default">array(<br /> 'file' => true,<br /> )</span> (line <span class="line-number">27</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">resource types provided by the core</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodinvalidLoadedCache" id="invalidLoadedCache"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method invalidLoadedCache</span> (line <span class="line-number">179</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Invalid Loaded Cache Files</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - invalidLoadedCache - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - </ul> - - - </div> -<a name="methodload" id="load"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method load</span> (line <span class="line-number">146</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load Cache Resource Handler</p> - <ul class="tags"> - <li><span class="field">return:</span> Cache Resource Handler</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> - <span class="method-name"> - load - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of the cache resource</span> </li> - </ul> - - - </div> - -<a name="methodacquireLock" id="acquireLock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">acquireLock</span> (line <span class="line-number">126</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - acquireLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodacquireLock">Smarty_CacheResource_KeyValueStore::acquireLock()</a> - : Lock cache for this template - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodacquireLock">Smarty_Internal_CacheResource_File::acquireLock()</a> - : Lock cache for this template - </li> - </ul> - </div> -<a name="methodclear" id="clear"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clear</span> (line <span class="line-number">101</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache for a specific template</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clear - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time (number of seconds, not timestamp)</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclear">Smarty_CacheResource_Custom::clear()</a> - : Empty cache for a specific template - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a> - : Empty cache for a specific template - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodclear">Smarty_Internal_CacheResource_File::clear()</a> - : Empty cache for a specific template - </li> - </ul> - </div> -<a name="methodclearAll" id="clearAll"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clearAll</span> (line <span class="line-number">89</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearAll - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time (number of seconds, not timestamp)</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclearAll">Smarty_CacheResource_Custom::clearAll()</a> - : Empty cache - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a> - : Empty cache - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodclearAll">Smarty_Internal_CacheResource_File::clearAll()</a> - : Empty cache - </li> - </ul> - </div> -<a name="methodgetCachedContent" id="getCachedContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getCachedContent</span> (line <span class="line-number">72</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Return cached content</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - getCachedContent - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content of cache</span> </li> - </ul> - - - </div> -<a name="methodhasLock" id="hasLock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">hasLock</span> (line <span class="line-number">120</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - hasLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodhasLock">Smarty_CacheResource_KeyValueStore::hasLock()</a> - : Check is cache is locked for this template - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodhasLock">Smarty_Internal_CacheResource_File::hasLock()</a> - : Check is cache is locked for this template - </li> - </ul> - </div> -<a name="methodlocked" id="locked"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">locked</span> (line <span class="line-number">104</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - locked - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span> </li> - </ul> - - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">38</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulate">Smarty_CacheResource_Custom::populate()</a> - : populate Cached Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulate">Smarty_CacheResource_KeyValueStore::populate()</a> - : populate Cached Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodpopulate">Smarty_Internal_CacheResource_File::populate()</a> - : populate Cached Object with meta data from Resource - </li> - </ul> - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">46</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$source</span><span class="var-description">: cached object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulateTimestamp">Smarty_CacheResource_Custom::populateTimestamp()</a> - : populate Cached Object with timestamp and exists from Resource - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulateTimestamp">Smarty_CacheResource_KeyValueStore::populateTimestamp()</a> - : populate Cached Object with timestamp and exists from Resource - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodpopulateTimestamp">Smarty_Internal_CacheResource_File::populateTimestamp()</a> - : populate Cached Object with timestamp and exists from Resource - </li> - </ul> - </div> -<a name="methodprocess" id="process"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">process</span> (line <span class="line-number">55</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read the cached template and process header</p> - <ul class="tags"> - <li><span class="field">return:</span> true or false if the cached content does not exist</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">booelan</span> - <span class="method-name"> - process - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodprocess">Smarty_CacheResource_Custom::process()</a> - : Read the cached template and process the header - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodprocess">Smarty_CacheResource_KeyValueStore::process()</a> - : Read the cached template and process the header - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodprocess">Smarty_Internal_CacheResource_File::process()</a> - : Read the cached template and process its header - </li> - </ul> - </div> -<a name="methodreleaseLock" id="releaseLock"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">releaseLock</span> (line <span class="line-number">132</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - releaseLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodreleaseLock">Smarty_CacheResource_KeyValueStore::releaseLock()</a> - : Unlock cache for this template - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodreleaseLock">Smarty_Internal_CacheResource_File::releaseLock()</a> - : Unlock cache for this template - </li> - </ul> - </div> -<a name="methodwriteCachedContent" id="writeCachedContent"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">writeCachedContent</span> (line <span class="line-number">64</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Write the rendered template output to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - writeCachedContent - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html#methodwriteCachedContent">Smarty_CacheResource_Custom::writeCachedContent()</a> - : Write the rendered template output to cache - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwriteCachedContent">Smarty_CacheResource_KeyValueStore::writeCachedContent()</a> - : Write the rendered template output to cache - </li> - <li> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodwriteCachedContent">Smarty_Internal_CacheResource_File::writeCachedContent()</a> - : Write the rendered template output to cache - </li> - </ul> - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:31 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/Smarty_CacheResource_Custom.html
Deleted
@@ -1,659 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_CacheResource_Custom</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_CacheResource_Custom</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Cache Handler API</p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_cacheresource_custom.php.html">/libs/sysplugins/smarty_cacheresource_custom.php</a> (line <span class="field">16</span>) - </p> - - - <pre><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - | - --Smarty_CacheResource_Custom</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../CacheResource-examples/Smarty_CacheResource_Mysql.html">Smarty_CacheResource_Mysql</a></td> - <td> - MySQL CacheResource - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clear" title="details" class="method-name">clear</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearAll" title="details" class="method-name">clearAll</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#delete" title="details" class="method-name">delete</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type"></span> <span class="var-name">&$content</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer|boolean</span> - <a href="#fetchTimestamp" title="details" class="method-name">fetchTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">booelan</span> - <a href="#process" title="details" class="method-name">process</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#save" title="details" class="method-name">save</a> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#writeCachedContent" title="details" class="method-name">writeCachedContent</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodclear" id="clear"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clear</span> (line <span class="line-number">182</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache for a specific template</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clear - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time (number of seconds, not timestamp)</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></dt> - <dd>Empty cache for a specific template</dd> - </dl> - - </div> -<a name="methodclearAll" id="clearAll"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clearAll</span> (line <span class="line-number">166</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearAll - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time (number of seconds, not timestamp)</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></dt> - <dd>Empty cache</dd> - </dl> - - </div> -<a name="methoddelete" id="delete"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">delete</span> (line <span class="line-number">70</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Delete content from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> number of deleted caches</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - delete - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer|null</span> - <span class="var-name">$exp_time</span><span class="var-description">: seconds till expiration time in seconds or null</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Mysql.html#methoddelete">Smarty_CacheResource_Mysql::delete()</a> - : Delete content from cache - </li> - </ul> - </div> -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">29</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">fetch cached content and its modification time from data source</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - fetch - </span> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type"></span> <span class="var-name">&$content</span>, <span class="var-type"></span> <span class="var-name">&$mtime</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">integer</span> <span class="var-name">$mtime</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$id</span><span class="var-description">: unique cache content identifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: cached content</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$mtime</span><span class="var-description">: cache modification timestamp (epoch)</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$content</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$mtime</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Mysql.html#methodfetch">Smarty_CacheResource_Mysql::fetch()</a> - : fetch cached content and its modification time from data source - </li> - </ul> - </div> -<a name="methodfetchTimestamp" id="fetchTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">fetchTimestamp</span> (line <span class="line-number">43</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch cached content's modification timestamp from data source</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> timestamp (epoch) the template was modified, or false if not found</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer|boolean</span> - <span class="method-name"> - fetchTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$id</span><span class="var-description">: unique cache content identifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Mysql.html#methodfetchTimestamp">Smarty_CacheResource_Mysql::fetchTimestamp()</a> - : Fetch cached content's modification timestamp from data source - </li> - </ul> - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">79</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></dt> - <dd>populate Cached Object with meta data from Resource</dd> - </dl> - - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">94</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$source</span><span class="var-description">: cached object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></dt> - <dd>populate Cached Object with timestamp and exists from Resource</dd> - </dl> - - </div> -<a name="methodprocess" id="process"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">process</span> (line <span class="line-number">115</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read the cached template and process the header</p> - <ul class="tags"> - <li><span class="field">return:</span> true or false if the cached content does not exist</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">booelan</span> - <span class="method-name"> - process - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></dt> - <dd>Read the cached template and process header</dd> - </dl> - - </div> -<a name="methodsave" id="save"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">save</span> (line <span class="line-number">59</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Save content to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - save - </span> - (<span class="var-type">string</span> <span class="var-name">$id</span>, <span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer|null</span> <span class="var-name">$exp_time</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$id</span><span class="var-description">: unique cache content identifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer|null</span> - <span class="var-name">$exp_time</span><span class="var-description">: seconds till expiration or null</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Mysql.html#methodsave">Smarty_CacheResource_Mysql::save()</a> - : Save content to cache - </li> - </ul> - </div> -<a name="methodwriteCachedContent" id="writeCachedContent"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">writeCachedContent</span> (line <span class="line-number">147</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Write the rendered template output to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - writeCachedContent - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></dt> - <dd>Write the rendered template output to cache</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:33 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html
Deleted
@@ -1,1176 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_CacheResource_KeyValueStore</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_CacheResource_KeyValueStore</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Cache Handler Base for Key/Value Storage Implementations</p> -<p class="description"><p>This class implements the functionality required to use simple key/value stores for hierarchical cache groups. key/value stores like memcache or APC do not support wildcards in keys, therefore a cache group cannot be cleared like "a|*" - which is no problem to filesystem and RDBMS implementations.</p><p>This implementation is based on the concept of invalidation. While one specific cache can be identified and cleared, any range of caches cannot be identified. For this reason each level of the cache group hierarchy can have its own value in the store. These values are nothing but microtimes, telling us when a particular cache group was cleared for the last time. These keys are evaluated for every cache read to determine if the cache has been invalidated since it was created and should hence be treated as inexistent.</p><p>Although deep hierarchies are possible, they are not recommended. Try to keep your cache groups as shallow as possible. Anything up 3-5 parents should be ok. So »a|b|c« is a good depth where »a|b|c|d|e|f|g|h|i|j|k« isn't. Try to join correlating cache groups: if your cache groups look somewhat like »a|b|$page|$items|$whatever« consider using »a|b|c|$page-$items-$whatever« instead.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_cacheresource_keyvaluestore.php.html">/libs/sysplugins/smarty_cacheresource_keyvaluestore.php</a> (line <span class="field">34</span>) - </p> - - - <pre><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - | - --Smarty_CacheResource_KeyValueStore</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../CacheResource-examples/Smarty_CacheResource_Apc.html">Smarty_CacheResource_Apc</a></td> - <td> - APC CacheResource - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../CacheResource-examples/Smarty_CacheResource_Memcache.html">Smarty_CacheResource_Memcache</a></td> - <td> - Memcache CacheResource - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$contents" title="details" class="var-name">$contents</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$timestamps" title="details" class="var-name">$timestamps</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#acquireLock" title="details" class="method-name">acquireLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#addMetaTimestamp" title="details" class="method-name">addMetaTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">&$content</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clear" title="details" class="method-name">clear</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearAll" title="details" class="method-name">clearAll</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#delete" title="details" class="method-name">delete</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - (<span class="var-type">string</span> <span class="var-name">$cid</span>, [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type"></span> <span class="var-name">&$content</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span> <span class="var-name">&$timestamp</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>], <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - <div class="method-definition"> - <span class="method-result">float</span> - <a href="#getLatestInvalidationTimestamp" title="details" class="method-name">getLatestInvalidationTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">$cid</span>, [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">float</span> - <a href="#getMetaTimestamp" title="details" class="method-name">getMetaTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">&$content</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getTemplateUid" title="details" class="method-name">getTemplateUid</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>) - </div> - <div class="method-definition"> - <span class="method-result">booelan</span> - <a href="#hasLock" title="details" class="method-name">hasLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#invalidate" title="details" class="method-name">invalidate</a> - ([<span class="var-type">string</span> <span class="var-name">$cid</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#listInvalidationKeys" title="details" class="method-name">listInvalidationKeys</a> - (<span class="var-type">string</span> <span class="var-name">$cid</span>, [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">booelan</span> - <a href="#process" title="details" class="method-name">process</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#purge" title="details" class="method-name">purge</a> - () - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#read" title="details" class="method-name">read</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#releaseLock" title="details" class="method-name">releaseLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#sanitize" title="details" class="method-name">sanitize</a> - (<span class="var-type">string</span> <span class="var-name">$string</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#write" title="details" class="method-name">write</a> - (<span class="var-type"></span> <span class="var-name">$keys</span>, [<span class="var-type">int</span> <span class="var-name">$expire</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#writeCachedContent" title="details" class="method-name">writeCachedContent</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$contents" id="$contents"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$contents</span> - = <span class="var-default">array()</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache for contents</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$timestamps" id="$timestamps"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$timestamps</span> - = <span class="var-default">array()</span> (line <span class="line-number">45</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache for timestamps</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodacquireLock" id="acquireLock"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">acquireLock</span> (line <span class="line-number">397</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Lock cache for this template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - acquireLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></dt> - </dl> - - </div> -<a name="methodaddMetaTimestamp" id="addMetaTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">addMetaTimestamp</span> (line <span class="line-number">237</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Add current microtime to the beginning of $cache_content</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - addMetaTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">&$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">&$content</span><span class="var-description">: the content to be cached</span> </li> - </ul> - - - </div> -<a name="methodclear" id="clear"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clear</span> (line <span class="line-number">154</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache for a specific template</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted [always -1]</li> - <li><span class="field">access:</span> public</li> - <li><span class="field">uses:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodinvalidate">Smarty_CacheResource_KeyValueStore::invalidate()</a> - to mark CacheIDs parent chain as outdated</li> - <li><span class="field">uses:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a> - to remove CacheID from cache</li> - <li><span class="field">uses:</span> buildCachedFilepath() - to generate the CacheID</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clear - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time [being ignored]</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></dt> - <dd>Empty cache for a specific template</dd> - </dl> - - </div> -<a name="methodclearAll" id="clearAll"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clearAll</span> (line <span class="line-number">131</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted [always -1]</li> - <li><span class="field">access:</span> public</li> - <li><span class="field">uses:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a> - to clear the whole store</li> - <li><span class="field">uses:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodinvalidate">Smarty_CacheResource_KeyValueStore::invalidate()</a> - to mark everything outdated if purge() is inapplicable</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearAll - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time [being ignored]</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></dt> - <dd>Empty cache</dd> - </dl> - - </div> -<a name="methoddelete" id="delete"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">delete</span> (line <span class="line-number">440</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Remove values from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - <li><span class="field">usedby:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a> - to remove CacheID from cache</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - delete - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of keys to delete</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Apc.html#methoddelete">Smarty_CacheResource_Apc::delete()</a> - : Remove values from cache - </li> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Memcache.html#methoddelete">Smarty_CacheResource_Memcache::delete()</a> - : Remove values from cache - </li> - </ul> - </div> -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">213</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch and prepare a cache object.</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - fetch - </span> - (<span class="var-type">string</span> <span class="var-name">$cid</span>, [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type"></span> <span class="var-name">&$content</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span> <span class="var-name">&$timestamp</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>], <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$cid</span><span class="var-description">: CacheID to fetch</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: cached content</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">&$timestamp</span><span class="var-description">: cached timestamp (epoch)</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_uid</span><span class="var-description">: resource's uid</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$content</span> </li> - </ul> - - - </div> -<a name="methodgetLatestInvalidationTimestamp" id="getLatestInvalidationTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getLatestInvalidationTimestamp</span> (line <span class="line-number">305</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine the latest timestamp known to the invalidation chain</p> - <ul class="tags"> - <li><span class="field">return:</span> the microtime the CacheID was invalidated</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">float</span> - <span class="method-name"> - getLatestInvalidationTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">$cid</span>, [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$cid</span><span class="var-description">: CacheID to determine latest invalidation timestamp of</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_uid</span><span class="var-description">: source's filepath</span> </li> - </ul> - - - </div> -<a name="methodgetMetaTimestamp" id="getMetaTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getMetaTimestamp</span> (line <span class="line-number">250</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Extract the timestamp the $content was cached</p> - <ul class="tags"> - <li><span class="field">return:</span> the microtime the content was cached</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">float</span> - <span class="method-name"> - getMetaTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">&$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">&$content</span><span class="var-description">: the cached content</span> </li> - </ul> - - - </div> -<a name="methodgetTemplateUid" id="getTemplateUid"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getTemplateUid</span> (line <span class="line-number">171</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get template's unique ID</p> - <ul class="tags"> - <li><span class="field">return:</span> filepath of cache file</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getTemplateUid - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - </ul> - - - </div> -<a name="methodhasLock" id="hasLock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">hasLock</span> (line <span class="line-number">384</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check is cache is locked for this template</p> - <ul class="tags"> - <li><span class="field">return:</span> true or false if cache is locked</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">booelan</span> - <span class="method-name"> - hasLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></dt> - </dl> - - </div> -<a name="methodinvalidate" id="invalidate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">invalidate</span> (line <span class="line-number">268</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Invalidate CacheID</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - <li><span class="field">usedby:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a> - to mark CacheIDs parent chain as outdated</li> - <li><span class="field">usedby:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a> - to mark everything outdated if purge() is inapplicable</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - invalidate - </span> - ([<span class="var-type">string</span> <span class="var-name">$cid</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$cid</span><span class="var-description">: CacheID</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_uid</span><span class="var-description">: source's uid</span> </li> - </ul> - - - </div> -<a name="methodlistInvalidationKeys" id="listInvalidationKeys"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">listInvalidationKeys</span> (line <span class="line-number">338</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Translate a CacheID into the list of applicable InvalidationKeys.</p> -<p class="description"><p>Splits "some|chain|into|an|array" into array( '#clearAll#', 'some', 'some|chain', 'some|chain|into', ... )</p></p> - <ul class="tags"> - <li><span class="field">return:</span> list of InvalidationKeys</li> - <li><span class="field">access:</span> protected</li> - <li><span class="field">uses:</span> $invalidationKeyPrefix - to prepend to each InvalidationKey</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - listInvalidationKeys - </span> - (<span class="var-type">string</span> <span class="var-name">$cid</span>, [<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$resource_uid</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$cid</span><span class="var-description">: CacheID to translate</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_uid</span><span class="var-description">: source's filepath</span> </li> - </ul> - - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">54</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></dt> - <dd>populate Cached Object with meta data from Resource</dd> - </dl> - - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">70</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></dt> - <dd>populate Cached Object with timestamp and exists from Resource</dd> - </dl> - - </div> -<a name="methodprocess" id="process"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">process</span> (line <span class="line-number">87</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read the cached template and process the header</p> - <ul class="tags"> - <li><span class="field">return:</span> true or false if the cached content does not exist</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">booelan</span> - <span class="method-name"> - process - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></dt> - <dd>Read the cached template and process header</dd> - </dl> - - </div> -<a name="methodpurge" id="purge"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">purge</span> (line <span class="line-number">447</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Remove *all* values from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">access:</span> protected</li> - <li><span class="field">usedby:</span> <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a> - to clear the whole store</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - purge - </span> - () - </div> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Apc.html#methodpurge">Smarty_CacheResource_Apc::purge()</a> - : Remove *all* values from cache - </li> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Memcache.html#methodpurge">Smarty_CacheResource_Memcache::purge()</a> - : Remove *all* values from cache - </li> - </ul> - </div> -<a name="methodread" id="read"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">read</span> (line <span class="line-number">423</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read values for a set of keys from cache</p> - <ul class="tags"> - <li><span class="field">return:</span> list of values with the given keys used as indexes</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - read - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of keys to fetch</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Apc.html#methodread">Smarty_CacheResource_Apc::read()</a> - : Read values for a set of keys from cache - </li> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Memcache.html#methodread">Smarty_CacheResource_Memcache::read()</a> - : Read values for a set of keys from cache - </li> - </ul> - </div> -<a name="methodreleaseLock" id="releaseLock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">releaseLock</span> (line <span class="line-number">410</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unlock cache for this template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - releaseLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></dt> - </dl> - - </div> -<a name="methodsanitize" id="sanitize"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">sanitize</span> (line <span class="line-number">191</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Sanitize CacheID components</p> - <ul class="tags"> - <li><span class="field">return:</span> sanitized CacheID component</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - sanitize - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: CacheID component to sanitize</span> </li> - </ul> - - - </div> -<a name="methodwrite" id="write"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">write</span> (line <span class="line-number">432</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Save values for a set of keys to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> true on success, false on failure</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - write - </span> - (<span class="var-type"></span> <span class="var-name">$keys</span>, [<span class="var-type">int</span> <span class="var-name">$expire</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$keys</span><span class="var-description">: list of values to save</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$expire</span><span class="var-description">: expiration time</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Apc.html#methodwrite">Smarty_CacheResource_Apc::write()</a> - : Save values for a set of keys to cache - </li> - <li> - <a href="../../CacheResource-examples/Smarty_CacheResource_Memcache.html#methodwrite">Smarty_CacheResource_Memcache::write()</a> - : Save values for a set of keys to cache - </li> - </ul> - </div> -<a name="methodwriteCachedContent" id="writeCachedContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">writeCachedContent</span> (line <span class="line-number">114</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Write the rendered template output to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - writeCachedContent - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></dt> - <dd>Write the rendered template output to cache</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:34 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/Smarty_Internal_CacheResource_File.html
Deleted
@@ -1,531 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_CacheResource_File</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_CacheResource_File</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This class does contain all necessary methods for the HTML cache on file system</p> -<p class="description"><p>Implements the file system as resource for the HTML cache Version ussing nocache inserts.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_cacheresource_file.php.html">/libs/sysplugins/smarty_internal_cacheresource_file.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - | - --Smarty_Internal_CacheResource_File</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#acquireLock" title="details" class="method-name">acquireLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clear" title="details" class="method-name">clear</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearAll" title="details" class="method-name">clearAll</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>], <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">booelan</span> - <a href="#hasLock" title="details" class="method-name">hasLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">booelan</span> - <a href="#process" title="details" class="method-name">process</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#releaseLock" title="details" class="method-name">releaseLock</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#writeCachedContent" title="details" class="method-name">writeCachedContent</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodacquireLock" id="acquireLock"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">acquireLock</span> (line <span class="line-number">236</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Lock cache for this template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - acquireLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></dt> - </dl> - - </div> -<a name="methodclear" id="clear"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clear</span> (line <span class="line-number">132</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache for a specific template</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clear - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$cache_id</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time (number of seconds, not timestamp)</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></dt> - <dd>Empty cache for a specific template</dd> - </dl> - - </div> -<a name="methodclearAll" id="clearAll"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clearAll</span> (line <span class="line-number">117</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearAll - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>], <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time (number of seconds, not timestamp)</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></dt> - <dd>Empty cache</dd> - </dl> - - </div> -<a name="methodhasLock" id="hasLock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">hasLock</span> (line <span class="line-number">219</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check is cache is locked for this template</p> - <ul class="tags"> - <li><span class="field">return:</span> true or false if cache is locked</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">booelan</span> - <span class="method-name"> - hasLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></dt> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></dt> - <dd>populate Cached Object with meta data from Resource</dd> - </dl> - - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">74</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Cached Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></dt> - <dd>populate Cached Object with timestamp and exists from Resource</dd> - </dl> - - </div> -<a name="methodprocess" id="process"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">process</span> (line <span class="line-number">87</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Read the cached template and process its header</p> - <ul class="tags"> - <li><span class="field">return:</span> true or false if the cached content does not exist</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">booelan</span> - <span class="method-name"> - process - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, [<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></dt> - <dd>Read the cached template and process header</dd> - </dl> - - </div> -<a name="methodreleaseLock" id="releaseLock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">releaseLock</span> (line <span class="line-number">248</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unlock cache for this template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - releaseLock - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> <span class="var-name">$cached</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></span> - <span class="var-name">$cached</span><span class="var-description">: cached object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></dt> - </dl> - - </div> -<a name="methodwriteCachedContent" id="writeCachedContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">writeCachedContent</span> (line <span class="line-number">100</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Write the rendered template output to cache</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - writeCachedContent - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></dt> - <dd>Write the rendered template output to cache</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a></span><br> - <span class="method-name"><a href="../../Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:36 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_custom.php.html
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_cacheresource_custom.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_cacheresource_custom.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin</p> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a> - </td> - <td> - Cache Handler API - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:33 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_keyvaluestore.php.html
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_cacheresource_keyvaluestore.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_cacheresource_keyvaluestore.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin</p> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> - </td> - <td> - Smarty Cache Handler Base for Key/Value Storage Implementations - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:34 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Cacher/_libs---sysplugins---smarty_internal_cacheresource_file.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_cacheresource_file.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_cacheresource_file.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin CacheResource File</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Cacher/Smarty_Internal_CacheResource_File.html">Smarty_Internal_CacheResource_File</a> - </td> - <td> - This class does contain all necessary methods for the HTML cache on file system - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:35 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_CompileBase.html
Deleted
@@ -1,849 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_CompileBase</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_CompileBase</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This class does extend all internal compile plugins</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compilebase.php.html">/libs/sysplugins/smarty_internal_compilebase.php</a> (line <span class="field">16</span>) - </p> - - - <pre></pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a></td> - <td> - Smarty Internal Plugin Compile Assign Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Block.html">Smarty_Internal_Compile_Block</a></td> - <td> - Smarty Internal Plugin Compile Block Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html">Smarty_Internal_Compile_Blockclose</a></td> - <td> - Smarty Internal Plugin Compile BlockClose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Break.html">Smarty_Internal_Compile_Break</a></td> - <td> - Smarty Internal Plugin Compile Break Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Call.html">Smarty_Internal_Compile_Call</a></td> - <td> - Smarty Internal Plugin Compile Function_Call Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Capture.html">Smarty_Internal_Compile_Capture</a></td> - <td> - Smarty Internal Plugin Compile Capture Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html">Smarty_Internal_Compile_CaptureClose</a></td> - <td> - Smarty Internal Plugin Compile Captureclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html">Smarty_Internal_Compile_Config_Load</a></td> - <td> - Smarty Internal Plugin Compile Config Load Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Continue.html">Smarty_Internal_Compile_Continue</a></td> - <td> - Smarty Internal Plugin Compile Continue Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Debug.html">Smarty_Internal_Compile_Debug</a></td> - <td> - Smarty Internal Plugin Compile Debug Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Eval.html">Smarty_Internal_Compile_Eval</a></td> - <td> - Smarty Internal Plugin Compile Eval Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Extends.html">Smarty_Internal_Compile_Extends</a></td> - <td> - Smarty Internal Plugin Compile extend Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_For.html">Smarty_Internal_Compile_For</a></td> - <td> - Smarty Internal Plugin Compile For Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Forelse.html">Smarty_Internal_Compile_Forelse</a></td> - <td> - Smarty Internal Plugin Compile Forelse Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Forclose.html">Smarty_Internal_Compile_Forclose</a></td> - <td> - Smarty Internal Plugin Compile Forclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreach.html">Smarty_Internal_Compile_Foreach</a></td> - <td> - Smarty Internal Plugin Compile Foreach Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html">Smarty_Internal_Compile_Foreachelse</a></td> - <td> - Smarty Internal Plugin Compile Foreachelse Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html">Smarty_Internal_Compile_Foreachclose</a></td> - <td> - Smarty Internal Plugin Compile Foreachclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Function.html">Smarty_Internal_Compile_Function</a></td> - <td> - Smarty Internal Plugin Compile Function Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html">Smarty_Internal_Compile_Functionclose</a></td> - <td> - Smarty Internal Plugin Compile Functionclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_If.html">Smarty_Internal_Compile_If</a></td> - <td> - Smarty Internal Plugin Compile If Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Else.html">Smarty_Internal_Compile_Else</a></td> - <td> - Smarty Internal Plugin Compile Else Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Elseif.html">Smarty_Internal_Compile_Elseif</a></td> - <td> - Smarty Internal Plugin Compile ElseIf Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html">Smarty_Internal_Compile_Ifclose</a></td> - <td> - Smarty Internal Plugin Compile Ifclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include.html">Smarty_Internal_Compile_Include</a></td> - <td> - Smarty Internal Plugin Compile Include Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html">Smarty_Internal_Compile_Include_Php</a></td> - <td> - Smarty Internal Plugin Compile Insert Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Insert.html">Smarty_Internal_Compile_Insert</a></td> - <td> - Smarty Internal Plugin Compile Insert Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html">Smarty_Internal_Compile_Ldelim</a></td> - <td> - Smarty Internal Plugin Compile Ldelim Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Nocache.html">Smarty_Internal_Compile_Nocache</a></td> - <td> - Smarty Internal Plugin Compile Nocache Classv - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html">Smarty_Internal_Compile_Nocacheclose</a></td> - <td> - Smarty Internal Plugin Compile Nocacheclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html">Smarty_Internal_Compile_Private_Block_Plugin</a></td> - <td> - Smarty Internal Plugin Compile Block Plugin Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html">Smarty_Internal_Compile_Private_Function_Plugin</a></td> - <td> - Smarty Internal Plugin Compile Function Plugin Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html">Smarty_Internal_Compile_Private_Modifier</a></td> - <td> - Smarty Internal Plugin Compile Modifier Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html">Smarty_Internal_Compile_Private_Object_Block_Function</a></td> - <td> - Smarty Internal Plugin Compile Object Block Function Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html">Smarty_Internal_Compile_Private_Object_Function</a></td> - <td> - Smarty Internal Plugin Compile Object Function Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html">Smarty_Internal_Compile_Private_Print_Expression</a></td> - <td> - Smarty Internal Plugin Compile Print Expression Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html">Smarty_Internal_Compile_Private_Registered_Block</a></td> - <td> - Smarty Internal Plugin Compile Registered Block Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html">Smarty_Internal_Compile_Private_Registered_Function</a></td> - <td> - Smarty Internal Plugin Compile Registered Function Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html">Smarty_Internal_Compile_Private_Special_Variable</a></td> - <td> - Smarty Internal Plugin Compile special Smarty Variable Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html">Smarty_Internal_Compile_Rdelim</a></td> - <td> - Smarty Internal Plugin Compile Rdelim Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Section.html">Smarty_Internal_Compile_Section</a></td> - <td> - Smarty Internal Plugin Compile Section Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html">Smarty_Internal_Compile_Sectionelse</a></td> - <td> - Smarty Internal Plugin Compile Sectionelse Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html">Smarty_Internal_Compile_Sectionclose</a></td> - <td> - Smarty Internal Plugin Compile Sectionclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html">Smarty_Internal_Compile_Setfilter</a></td> - <td> - Smarty Internal Plugin Compile Setfilter Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html">Smarty_Internal_Compile_Setfilterclose</a></td> - <td> - Smarty Internal Plugin Compile Setfilterclose Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_While.html">Smarty_Internal_Compile_While</a></td> - <td> - Smarty Internal Plugin Compile While Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html">Smarty_Internal_Compile_Whileclose</a></td> - <td> - Smarty Internal Plugin Compile Whileclose Class - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$option_flags" title="details" class="var-name">$option_flags</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">mixed</span> - <a href="#closeTag" title="details" class="method-name">closeTag</a> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array|string</span> <span class="var-name">$expectedTag</span>) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#getAttributes" title="details" class="method-name">getAttributes</a> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$attributes</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#openTag" title="details" class="method-name">openTag</a> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">string</span> <span class="var-name">$openTag</span>, [<span class="var-type">mixed</span> <span class="var-name">$data</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array()</span> (line <span class="line-number">30</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$optional_attributes">Smarty_Internal_Compile_Block::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Break.html#var$optional_attributes">Smarty_Internal_Compile_Break::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$optional_attributes">Smarty_Internal_Compile_Call::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Capture.html#var$optional_attributes">Smarty_Internal_Compile_Capture::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$optional_attributes">Smarty_Internal_Compile_Config_Load::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Continue.html#var$optional_attributes">Smarty_Internal_Compile_Continue::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$optional_attributes">Smarty_Internal_Compile_Eval::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$optional_attributes">Smarty_Internal_Compile_Foreach::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$optional_attributes">Smarty_Internal_Compile_Function::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$optional_attributes">Smarty_Internal_Compile_Include::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$optional_attributes">Smarty_Internal_Compile_Include_Php::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$optional_attributes">Smarty_Internal_Compile_Insert::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html#var$optional_attributes">Smarty_Internal_Compile_Private_Block_Plugin::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#var$optional_attributes">Smarty_Internal_Compile_Private_Function_Plugin::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Object_Block_Function::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Object_Function::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#var$optional_attributes">Smarty_Internal_Compile_Private_Print_Expression::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html#var$optional_attributes">Smarty_Internal_Compile_Private_Registered_Block::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Registered_Function::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$optional_attributes">Smarty_Internal_Compile_Section::$optional_attributes</a> - : Attribute definition: Overwrites base class. - </li> - </ul> - - -</div> -<a name="var$option_flags" id="$option_flags"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$option_flags</span> - = <span class="var-default">array('nocache')</span> (line <span class="line-number">42</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Array of names of valid option flags</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$option_flags">Smarty_Internal_Compile_Include::$option_flags</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#var$option_flags">Smarty_Internal_Compile_Private_Print_Expression::$option_flags</a> - : Attribute definition: Overwrites base class. - </li> - </ul> - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array()</span> (line <span class="line-number">23</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Array of names of required attribute required by tag</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$required_attributes">Smarty_Internal_Compile_Block::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$required_attributes">Smarty_Internal_Compile_Call::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$required_attributes">Smarty_Internal_Compile_Config_Load::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$required_attributes">Smarty_Internal_Compile_Eval::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Extends.html#var$required_attributes">Smarty_Internal_Compile_Extends::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$required_attributes">Smarty_Internal_Compile_Foreach::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$required_attributes">Smarty_Internal_Compile_Function::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$required_attributes">Smarty_Internal_Compile_Include::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$required_attributes">Smarty_Internal_Compile_Include_Php::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$required_attributes">Smarty_Internal_Compile_Insert::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#var$required_attributes">Smarty_Internal_Compile_Private_Function_Plugin::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$required_attributes">Smarty_Internal_Compile_Section::$required_attributes</a> - : Attribute definition: Overwrites base class. - </li> - </ul> - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array()</span> (line <span class="line-number">36</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Shorttag attribute order defined by its names</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$shorttag_order">Smarty_Internal_Compile_Block::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Break.html#var$shorttag_order">Smarty_Internal_Compile_Break::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$shorttag_order">Smarty_Internal_Compile_Call::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Capture.html#var$shorttag_order">Smarty_Internal_Compile_Capture::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$shorttag_order">Smarty_Internal_Compile_Config_Load::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Continue.html#var$shorttag_order">Smarty_Internal_Compile_Continue::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$shorttag_order">Smarty_Internal_Compile_Eval::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Extends.html#var$shorttag_order">Smarty_Internal_Compile_Extends::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$shorttag_order">Smarty_Internal_Compile_Foreach::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$shorttag_order">Smarty_Internal_Compile_Function::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$shorttag_order">Smarty_Internal_Compile_Include::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$shorttag_order">Smarty_Internal_Compile_Include_Php::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$shorttag_order">Smarty_Internal_Compile_Insert::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$shorttag_order">Smarty_Internal_Compile_Section::$shorttag_order</a> - : Attribute definition: Overwrites base class. - </li> - </ul> - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcloseTag" id="closeTag"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">closeTag</span> (line <span class="line-number">150</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Pop closing tag</p> -<p class="description"><p>Raise an error if this stack-top doesn't match with expected opening tags</p></p> - <ul class="tags"> - <li><span class="field">return:</span> any type the opening tag's name or saved data</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - closeTag - </span> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array|string</span> <span class="var-name">$expectedTag</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array|string</span> - <span class="var-name">$expectedTag</span><span class="var-description">: the expected opening tag names</span> </li> - </ul> - - - </div> -<a name="methodgetAttributes" id="getAttributes"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getAttributes</span> (line <span class="line-number">56</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This function checks if the attributes passed are valid</p> -<p class="description"><p>The attributes passed for the tag to compile are checked against the list of required and optional attributes. Required attributes must be present. Optional attributes are check against the corresponding list. The keyword '_any' specifies that any attribute will be accepted as valid</p></p> - <ul class="tags"> - <li><span class="field">return:</span> of mapped attributes for further processing</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - getAttributes - </span> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$attributes</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$attributes</span><span class="var-description">: attributes applied to the tag</span> </li> - </ul> - - - </div> -<a name="methodopenTag" id="openTag"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">openTag</span> (line <span class="line-number">136</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Push opening tag name on stack</p> -<p class="description"><p>Optionally additional data can be saved on stack</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - openTag - </span> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">string</span> <span class="var-name">$openTag</span>, [<span class="var-type">mixed</span> <span class="var-name">$data</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$openTag</span><span class="var-description">: the opening tag's name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$data</span><span class="var-description">: optional data saved</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:37 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Append.html
Deleted
@@ -1,176 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Append</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Append</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Append Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_append.php.html">/libs/sysplugins/smarty_internal_compile_append.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --<a href="../../Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a> - | - --Smarty_Internal_Compile_Append</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {append} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Assign.html#methodcompile">Smarty_Internal_Compile_Assign::compile()</a></dt> - <dd>Compiles code for the {assign} tag</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Assign.html#methodcompile">Smarty_Internal_Compile_Assign::compile()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:38 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Assign.html
Deleted
@@ -1,200 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Assign</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Assign</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Assign Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_assign.php.html">/libs/sysplugins/smarty_internal_compile_assign.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Assign</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_Compile_Append.html">Smarty_Internal_Compile_Append</a></td> - <td> - Smarty Internal Plugin Compile Append Class - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {assign} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Append.html#methodcompile">Smarty_Internal_Compile_Append::compile()</a> - : Compiles code for the {append} tag - </li> - </ul> - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:39 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Block.html
Deleted
@@ -1,348 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Block</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Block</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Block Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_block.php.html">/libs/sysplugins/smarty_internal_compile_block.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Block</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">string</span> - <a href="#compileChildBlock" title="details" class="method-name">compileChildBlock</a> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, [<span class="var-type">string</span> <span class="var-name">$_name</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#saveBlockData" title="details" class="method-name">saveBlockData</a> - (<span class="var-type">string</span> <span class="var-name">$block_content</span>, <span class="var-type">string</span> <span class="var-name">$block_tag</span>, <span class="var-type">object</span> <span class="var-name">$template</span>, <span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('hide')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('name', 'hide')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodcompileChildBlock" id="compileChildBlock"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method compileChildBlock</span> (line <span class="line-number">128</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compile saved child block source</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code of schild block</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">string</span> - <span class="method-name"> - compileChildBlock - </span> - (<span class="var-type">object</span> <span class="var-name">$compiler</span>, [<span class="var-type">string</span> <span class="var-name">$_name</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$_name</span><span class="var-description">: optional name of child block</span> </li> - </ul> - - - </div> -<a name="methodsaveBlockData" id="saveBlockData"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method saveBlockData</span> (line <span class="line-number">76</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Save or replace child block source by block name during parsing</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - saveBlockData - </span> - (<span class="var-type">string</span> <span class="var-name">$block_content</span>, <span class="var-type">string</span> <span class="var-name">$block_tag</span>, <span class="var-type">object</span> <span class="var-name">$template</span>, <span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$block_content</span><span class="var-description">: block source content</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$block_tag</span><span class="var-description">: opening block tag</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$filepath</span><span class="var-description">: filepath of template source</span> </li> - </ul> - - - </div> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {block} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> true</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:39 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Blockclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Blockclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile BlockClose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_block.php.html">/libs/sysplugins/smarty_internal_compile_block.php</a> (line <span class="field">199</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Blockclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">208</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/block} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:39 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Break.html
Deleted
@@ -1,238 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Break</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Break</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Break Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_break.php.html">/libs/sysplugins/smarty_internal_compile_break.php</a> (line <span class="field">17</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Break</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('levels')</span> (line <span class="line-number">25</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('levels')</span> (line <span class="line-number">32</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">42</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {break} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Call.html
Deleted
@@ -1,268 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Call</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Call</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Function_Call Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_call.php.html">/libs/sysplugins/smarty_internal_compile_call.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Call</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">50</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles the calls of user defined tags defined by {function}</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Capture.html
Deleted
@@ -1,235 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Capture</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Capture</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Capture Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_capture.php.html">/libs/sysplugins/smarty_internal_compile_capture.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Capture</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('name', 'assign', 'append')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">42</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {capture} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_CaptureClose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_CaptureClose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Captureclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_capture.php.html">/libs/sysplugins/smarty_internal_compile_capture.php</a> (line <span class="field">67</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_CaptureClose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">76</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/capture} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Config_Load</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Config_Load</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Config Load Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_config_load.php.html">/libs/sysplugins/smarty_internal_compile_config_load.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Config_Load</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('section', 'scope')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('file','section')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {config_load} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Continue.html
Deleted
@@ -1,238 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Continue</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Continue</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Continue Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_continue.php.html">/libs/sysplugins/smarty_internal_compile_continue.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Continue</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('levels')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('levels')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">43</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {continue} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Debug.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Debug</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Debug</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Debug Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_debug.php.html">/libs/sysplugins/smarty_internal_compile_debug.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Debug</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {debug} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Else.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Else</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Else</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Else Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_if.php.html">/libs/sysplugins/smarty_internal_compile_if.php</a> (line <span class="field">68</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Else</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">78</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {else} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Elseif.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Elseif</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Elseif</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile ElseIf Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_if.php.html">/libs/sysplugins/smarty_internal_compile_if.php</a> (line <span class="field">94</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Elseif</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">104</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {elseif} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:44 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Eval.html
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Eval</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Eval</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Eval Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_eval.php.html">/libs/sysplugins/smarty_internal_compile_eval.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Eval</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('assign')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('var')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('var','assign')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {eval} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Extends.html
Deleted
@@ -1,235 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Extends</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Extends</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile extend Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_extends.php.html">/libs/sysplugins/smarty_internal_compile_extends.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Extends</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">27</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">34</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">43</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {extends} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_For.html
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_For</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_For</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile For Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_for.php.html">/libs/sysplugins/smarty_internal_compile_for.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_For</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">39</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {for} tag</p> -<p class="description"><p>Smarty 3 does implement two different sytaxes:</p><p><ul><li>{for $var in $array}</li></ul> For looping over arrays or iterators</p><p><ul><li>{for $x=0; $x<$y; $x++}</li></ul> For general loops</p><p>The parser is gereration different sets of attribute by which this compiler can determin which syntax is used.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Forclose.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Forclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Forclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Forclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_for.php.html">/libs/sysplugins/smarty_internal_compile_for.php</a> (line <span class="field">121</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Forclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">131</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/for} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Foreach.html
Deleted
@@ -1,268 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Foreach</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Foreach</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Foreach Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_foreach.php.html">/libs/sysplugins/smarty_internal_compile_foreach.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Foreach</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('name', 'key')</span> (line <span class="line-number">32</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('from', 'item')</span> (line <span class="line-number">25</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('from','item','key','name')</span> (line <span class="line-number">39</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {foreach} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Foreachclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Foreachclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Foreachclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_foreach.php.html">/libs/sysplugins/smarty_internal_compile_foreach.php</a> (line <span class="field">205</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Foreachclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">215</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/foreach} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Foreachelse</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Foreachelse</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Foreachelse Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_foreach.php.html">/libs/sysplugins/smarty_internal_compile_foreach.php</a> (line <span class="field">176</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Foreachelse</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">186</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {foreachelse} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Forelse.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Forelse</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Forelse</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Forelse Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_for.php.html">/libs/sysplugins/smarty_internal_compile_for.php</a> (line <span class="field">93</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Forelse</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">103</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {forelse} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Function.html
Deleted
@@ -1,268 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Function</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Function</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Function Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_function.php.html">/libs/sysplugins/smarty_internal_compile_function.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Function</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">50</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {function} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> true</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Functionclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Functionclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Functionclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_function.php.html">/libs/sysplugins/smarty_internal_compile_function.php</a> (line <span class="field">98</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Functionclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">108</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/function} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> true</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_If.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_If</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_If</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile If Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_if.php.html">/libs/sysplugins/smarty_internal_compile_if.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_If</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {if} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:44 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Ifclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Ifclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Ifclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_if.php.html">/libs/sysplugins/smarty_internal_compile_if.php</a> (line <span class="field">172</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Ifclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">182</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/if} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:44 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Include.html
Deleted
@@ -1,360 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Include</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Include</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Include Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_include.php.html">/libs/sysplugins/smarty_internal_compile_include.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Include</pre> - - </div> -</div> - - - <a name="sec-const-summary"></a> - <div class="info-box"> - <div class="info-box-title">Class Constant Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>) - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="const-summary"> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#CACHING_NOCACHE_CODE" title="details" class="const-name">CACHING_NOCACHE_CODE</a> = <span class="var-type"> 9999</span> - - </div> - </div> - </div> - </div> - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$option_flags" title="details" class="var-name">$option_flags</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">51</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$option_flags" id="$option_flags"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$option_flags</span> - = <span class="var-default">array('nocache', 'inline', 'caching')</span> (line <span class="line-number">44</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></dt> - <dd>Array of names of valid option flags</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">30</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">37</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">61</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {include} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="constCACHING_NOCACHE_CODE" id="CACHING_NOCACHE_CODE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">CACHING_NOCACHE_CODE</span> - = <span class="const-default"> 9999</span> - (line <span class="line-number">23</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">caching mode to create nocache code but no cache file</p> - - -</div> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:44 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Include_Php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Include_Php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Insert Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_include_php.php.html">/libs/sysplugins/smarty_internal_compile_include_php.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Include_Php</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('once', 'assign')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {include_php} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Insert.html
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Insert</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Insert</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Insert Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_insert.php.html">/libs/sysplugins/smarty_internal_compile_insert.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Insert</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">41</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">27</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('name')</span> (line <span class="line-number">34</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">50</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {insert} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html
Deleted
@@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Ldelim</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Ldelim</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Ldelim Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_ldelim.php.html">/libs/sysplugins/smarty_internal_compile_ldelim.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Ldelim</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {ldelim} tag</p> -<p class="description"><p>This tag does output the left delimiter</p></p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Nocache.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Nocache</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Nocache</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Nocache Classv</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_nocache.php.html">/libs/sysplugins/smarty_internal_compile_nocache.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Nocache</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">29</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {nocache} tag</p> -<p class="description"><p>This tag does not generate compiled output. It only sets a compiler flag.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Nocacheclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Nocacheclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Nocacheclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_nocache.php.html">/libs/sysplugins/smarty_internal_compile_nocache.php</a> (line <span class="field">50</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Nocacheclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">61</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/nocache} tag</p> -<p class="description"><p>This tag does not generate compiled output. It only sets a compiler flag.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html
Deleted
@@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Block_Plugin</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Block_Plugin</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Block Plugin Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_block_plugin.php.html">/libs/sysplugins/smarty_internal_compile_private_block_plugin.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Block_Plugin</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">38</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the execution of block plugin</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of block plugin</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$function</span><span class="var-description">: PHP function name</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html
Deleted
@@ -1,244 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Function_Plugin</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Function_Plugin</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Function Plugin Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_function_plugin.php.html">/libs/sysplugins/smarty_internal_compile_private_function_plugin.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Function_Plugin</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array()</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">45</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the execution of function plugin</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of function plugin</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$function</span><span class="var-description">: PHP function name</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Modifier</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Modifier</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Modifier Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_modifier.php.html">/libs/sysplugins/smarty_internal_compile_private_modifier.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Modifier</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">29</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for modifier execution</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html
Deleted
@@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Object_Block_Function</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Object_Block_Function</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Object Block Function Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_object_block_function.php.html">/libs/sysplugins/smarty_internal_compile_private_object_block_function.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Object_Block_Function</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$method</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">38</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the execution of block plugin</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$method</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of block object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$method</span><span class="var-description">: name of method to call</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html
Deleted
@@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Object_Function</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Object_Function</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Object Function Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_object_function.php.html">/libs/sysplugins/smarty_internal_compile_private_object_function.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Object_Function</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$method</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">38</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the execution of function plugin</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$method</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of function</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$method</span><span class="var-description">: name of method to call</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html
Deleted
@@ -1,238 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Print_Expression</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Print_Expression</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Print Expression Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_print_expression.php.html">/libs/sysplugins/smarty_internal_compile_private_print_expression.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Print_Expression</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$option_flags" title="details" class="var-name">$option_flags</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('assign')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$option_flags" id="$option_flags"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$option_flags</span> - = <span class="var-default">array('nocache', 'nofilter')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></dt> - <dd>Array of names of valid option flags</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">43</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for gererting output from any expression</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html
Deleted
@@ -1,211 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Registered_Block</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Registered_Block</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Registered Block Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_registered_block.php.html">/libs/sysplugins/smarty_internal_compile_private_registered_block.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Registered_Block</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">37</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the execution of a block function</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of block function</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html
Deleted
@@ -1,211 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Registered_Function</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Registered_Function</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Registered Function Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_registered_function.php.html">/libs/sysplugins/smarty_internal_compile_private_registered_function.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Registered_Function</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('_any')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">37</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the execution of a registered function</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of function</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Private_Special_Variable</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Private_Special_Variable</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile special Smarty Variable Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_private_special_variable.php.html">/libs/sysplugins/smarty_internal_compile_private_special_variable.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Private_Special_Variable</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type"></span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the speical $smarty variables</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type"></span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html
Deleted
@@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Rdelim</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Rdelim</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Rdelim Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_rdelim.php.html">/libs/sysplugins/smarty_internal_compile_rdelim.php</a> (line <span class="field">17</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Rdelim</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {rdelim} tag</p> -<p class="description"><p>This tag does output the right delimiter.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Section.html
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Section</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Section</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Section Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_section.php.html">/libs/sysplugins/smarty_internal_compile_section.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Section</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$optional_attributes" title="details" class="var-name">$optional_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_attributes" title="details" class="var-name">$required_attributes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$shorttag_order" title="details" class="var-name">$shorttag_order</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$optional_attributes" id="$optional_attributes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$optional_attributes</span> - = <span class="var-default">array('start', 'step', 'max', 'show')</span> (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></dt> - <dd>Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</dd> - </dl> - - - -</div> -<a name="var$required_attributes" id="$required_attributes"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_attributes</span> - = <span class="var-default">array('name', 'loop')</span> (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></dt> - <dd>Array of names of required attribute required by tag</dd> - </dl> - - - -</div> -<a name="var$shorttag_order" id="$shorttag_order"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$shorttag_order</span> - = <span class="var-default">array('name', 'loop')</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Attribute definition: Overwrites base class.</p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></dt> - <dd>Shorttag attribute order defined by its names</dd> - </dl> - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {section} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Sectionclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Sectionclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Sectionclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_section.php.html">/libs/sysplugins/smarty_internal_compile_section.php</a> (line <span class="field">173</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Sectionclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">182</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/section} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Sectionelse</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Sectionelse</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Sectionelse Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_section.php.html">/libs/sysplugins/smarty_internal_compile_section.php</a> (line <span class="field">145</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Sectionelse</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">154</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {sectionelse} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Setfilter</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Setfilter</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Setfilter Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_setfilter.php.html">/libs/sysplugins/smarty_internal_compile_setfilter.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Setfilter</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for setfilter tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html
Deleted
@@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Setfilterclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Setfilterclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Setfilterclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_setfilter.php.html">/libs/sysplugins/smarty_internal_compile_setfilter.php</a> (line <span class="field">45</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Setfilterclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">56</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/setfilter} tag</p> -<p class="description"><p>This tag does not generate compiled output. It resets variable filter.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_While.html
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_While</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_While</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile While Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_while.php.html">/libs/sysplugins/smarty_internal_compile_while.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_While</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {while} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>, <span class="var-type">array</span> <span class="var-name">$parameter</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Compile_Whileclose</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Compile_Whileclose</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Whileclose Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_compile_while.php.html">/libs/sysplugins/smarty_internal_compile_while.php</a> (line <span class="field">69</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - | - --Smarty_Internal_Compile_Whileclose</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcompile" id="compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compile</span> (line <span class="line-number">78</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {/while} tag</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">array</span> <span class="var-name">$args</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with attributes from parser</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Configfileparser.html
Deleted
@@ -1,2154 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Configfileparser</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Configfileparser</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_configfileparser.php.html">/libs/sysplugins/smarty_internal_configfileparser.php</a> (line <span class="field">87</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - <a name="sec-const-summary"></a> - <div class="info-box"> - <div class="info-box-title">Class Constant Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>) - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="const-summary"> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_BOOL" title="details" class="const-name">TPC_BOOL</a> = <span class="var-type"> 9</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_CLOSEB" title="details" class="const-name">TPC_CLOSEB</a> = <span class="var-type"> 3</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_COMMENTSTART" title="details" class="const-name">TPC_COMMENTSTART</a> = <span class="var-type"> 15</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_DOT" title="details" class="const-name">TPC_DOT</a> = <span class="var-type"> 4</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_DOUBLE_QUOTED_STRING" title="details" class="const-name">TPC_DOUBLE_QUOTED_STRING</a> = <span class="var-type"> 11</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_EQUAL" title="details" class="const-name">TPC_EQUAL</a> = <span class="var-type"> 6</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_FLOAT" title="details" class="const-name">TPC_FLOAT</a> = <span class="var-type"> 7</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_ID" title="details" class="const-name">TPC_ID</a> = <span class="var-type"> 5</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_INT" title="details" class="const-name">TPC_INT</a> = <span class="var-type"> 8</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_NAKED_STRING" title="details" class="const-name">TPC_NAKED_STRING</a> = <span class="var-type"> 13</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_NEWLINE" title="details" class="const-name">TPC_NEWLINE</a> = <span class="var-type"> 14</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_OPENB" title="details" class="const-name">TPC_OPENB</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_SECTION" title="details" class="const-name">TPC_SECTION</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_SINGLE_QUOTED_STRING" title="details" class="const-name">TPC_SINGLE_QUOTED_STRING</a> = <span class="var-type"> 10</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TPC_TRIPPLE_DOUBLE_QUOTED_STRING" title="details" class="const-name">TPC_TRIPPLE_DOUBLE_QUOTED_STRING</a> = <span class="var-type"> 12</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYERRORSYMBOL" title="details" class="const-name">YYERRORSYMBOL</a> = <span class="var-type"> 16</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYERRSYMDT" title="details" class="const-name">YYERRSYMDT</a> = <span class="var-type"> 'yy0'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYFALLBACK" title="details" class="const-name">YYFALLBACK</a> = <span class="var-type"> 0</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYNOCODE" title="details" class="const-name">YYNOCODE</a> = <span class="var-type"> 26</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYNRULE" title="details" class="const-name">YYNRULE</a> = <span class="var-type"> 20</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYNSTATE" title="details" class="const-name">YYNSTATE</a> = <span class="var-type"> 32</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYSTACKDEPTH" title="details" class="const-name">YYSTACKDEPTH</a> = <span class="var-type"> 100</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_ACCEPT_ACTION" title="details" class="const-name">YY_ACCEPT_ACTION</a> = <span class="var-type"> 53</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_ERROR_ACTION" title="details" class="const-name">YY_ERROR_ACTION</a> = <span class="var-type"> 52</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_NO_ACTION" title="details" class="const-name">YY_NO_ACTION</a> = <span class="var-type"> 54</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_REDUCE_MAX" title="details" class="const-name">YY_REDUCE_MAX</a> = <span class="var-type"> 10</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_REDUCE_USE_DFLT" title="details" class="const-name">YY_REDUCE_USE_DFLT</a> = <span class="var-type"> -10</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_SHIFT_MAX" title="details" class="const-name">YY_SHIFT_MAX</a> = <span class="var-type"> 17</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_SHIFT_USE_DFLT" title="details" class="const-name">YY_SHIFT_USE_DFLT</a> = <span class="var-type"> -8</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_SZ_ACTTAB" title="details" class="const-name">YY_SZ_ACTTAB</a> = <span class="var-type"> 35</span> - - </div> - </div> - </div> - </div> - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyExpectedTokens" title="details" class="var-name">$yyExpectedTokens</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyFallback" title="details" class="var-name">$yyFallback</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyReduceMap" title="details" class="var-name">$yyReduceMap</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyRuleInfo" title="details" class="var-name">$yyRuleInfo</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyRuleName" title="details" class="var-name">$yyRuleName</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyTraceFILE" title="details" class="var-name">$yyTraceFILE</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyTracePrompt" title="details" class="var-name">$yyTracePrompt</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_action" title="details" class="var-name">$yy_action</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_default" title="details" class="var-name">$yy_default</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_lookahead" title="details" class="var-name">$yy_lookahead</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_reduce_ofst" title="details" class="var-name">$yy_reduce_ofst</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_shift_ofst" title="details" class="var-name">$yy_shift_ofst</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$retvalue" title="details" class="var-name">$retvalue</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$successful" title="details" class="var-name">$successful</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yyerrcnt" title="details" class="var-name">$yyerrcnt</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yyidx" title="details" class="var-name">$yyidx</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yystack" title="details" class="var-name">$yystack</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yyTokenName" title="details" class="var-name">$yyTokenName</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#instance" title="details" class="method-name">&instance</a> - ([<span class="var-type"></span> <span class="var-name">$new_instance</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#PrintTrace" title="details" class="method-name">PrintTrace</a> - () - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#Trace" title="details" class="method-name">Trace</a> - (<span class="var-type"></span> <span class="var-name">$TraceFILE</span>, <span class="var-type"></span> <span class="var-name">$zTracePrompt</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#yy_destructor" title="details" class="method-name">yy_destructor</a> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yypminor</span>) - </div> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Configfileparser</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"></span> <span class="var-name">$lex</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__destruct" title="details" class="method-name">__destruct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#doParse" title="details" class="method-name">doParse</a> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yytokenvalue</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#tokenName" title="details" class="method-name">tokenName</a> - (<span class="var-type"></span> <span class="var-name">$tokenType</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_accept" title="details" class="method-name">yy_accept</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_find_reduce_action" title="details" class="method-name">yy_find_reduce_action</a> - (<span class="var-type"></span> <span class="var-name">$stateno</span>, <span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_find_shift_action" title="details" class="method-name">yy_find_shift_action</a> - (<span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_get_expected_tokens" title="details" class="method-name">yy_get_expected_tokens</a> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_is_expected_token" title="details" class="method-name">yy_is_expected_token</a> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_parse_failed" title="details" class="method-name">yy_parse_failed</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_pop_parser_stack" title="details" class="method-name">yy_pop_parser_stack</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r0" title="details" class="method-name">yy_r0</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1" title="details" class="method-name">yy_r1</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4" title="details" class="method-name">yy_r4</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r5" title="details" class="method-name">yy_r5</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r6" title="details" class="method-name">yy_r6</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r7" title="details" class="method-name">yy_r7</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r8" title="details" class="method-name">yy_r8</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r9" title="details" class="method-name">yy_r9</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r10" title="details" class="method-name">yy_r10</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r11" title="details" class="method-name">yy_r11</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r12" title="details" class="method-name">yy_r12</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r13" title="details" class="method-name">yy_r13</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r14" title="details" class="method-name">yy_r14</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r15" title="details" class="method-name">yy_r15</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r16" title="details" class="method-name">yy_r16</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_reduce" title="details" class="method-name">yy_reduce</a> - (<span class="var-type"></span> <span class="var-name">$yyruleno</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_shift" title="details" class="method-name">yy_shift</a> - (<span class="var-type"></span> <span class="var-name">$yyNewState</span>, <span class="var-type"></span> <span class="var-name">$yyMajor</span>, <span class="var-type"></span> <span class="var-name">$yypMinor</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_syntax_error" title="details" class="method-name">yy_syntax_error</a> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$TOKEN</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$yyExpectedTokens" id="$yyExpectedTokens"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyExpectedTokens</span> - = <span class="var-default">array( <br /> /* 0 */ array(),/* 1 */array(5,14,15,),/* 2 */array(5,14,15,),/* 3 */array(5,14,15,),/* 4 */array(7,8,9,10,11,12,13,),/* 5 */array(14,15,),/* 6 */array(14,15,),/* 7 */array(1,),/* 8 */array(),/* 9 */array(),/* 10 */array(),/* 11 */array(13,14,),/* 12 */array(2,4,),/* 13 */array(14,),/* 14 */array(2,),/* 15 */array(3,),/* 16 */array(6,),/* 17 */array(3,),/* 18 */array(),/* 19 */array(),/* 20 */array(),/* 21 */array(),/* 22 */array(),/* 23 */array(),/* 24 */array(),/* 25 */array(),/* 26 */array(),/* 27 */array(),/* 28 */array(),/* 29 */array(),/* 30 */array(),/* 31 */array(),)</span> (line <span class="line-number">227</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyFallback" id="$yyFallback"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyFallback</span> - = <span class="var-default">array( <br /> )</span> (line <span class="line-number">274</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyReduceMap" id="$yyReduceMap"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyReduceMap</span> - = <span class="var-default">array( <br /> 0 => 0, <br /> 2 => 0, <br /> 3 => 0, <br /> 17 => 0, <br /> 18 => 0, <br /> 19 => 0, <br /> 1 => 1, <br /> 4 => 4, <br /> 5 => 5, <br /> 6 => 6, <br /> 7 => 7, <br /> 8 => 8, <br /> 9 => 9, <br /> 10 => 10, <br /> 11 => 11, <br /> 12 => 12, <br /> 13 => 13, <br /> 14 => 14, <br /> 15 => 15, <br /> 16 => 16, <br /> )</span> (line <span class="line-number">632</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyRuleInfo" id="$yyRuleInfo"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyRuleInfo</span> - = <span class="var-default">array( <br /> array( 'lhs' => 17, 'rhs' => 2 ),array('lhs'=>18,'rhs'=>1),array('lhs'=>19,'rhs'=>2),array('lhs'=>19,'rhs'=>0),array('lhs'=>21,'rhs'=>5),array('lhs'=>21,'rhs'=>6),array('lhs'=>20,'rhs'=>2),array('lhs'=>20,'rhs'=>2),array('lhs'=>20,'rhs'=>0),array('lhs'=>23,'rhs'=>3),array('lhs'=>24,'rhs'=>1),array('lhs'=>24,'rhs'=>1),array('lhs'=>24,'rhs'=>1),array('lhs'=>24,'rhs'=>1),array('lhs'=>24,'rhs'=>1),array('lhs'=>24,'rhs'=>1),array('lhs'=>24,'rhs'=>1),array('lhs'=>22,'rhs'=>1),array('lhs'=>22,'rhs'=>2),array('lhs'=>22,'rhs'=>3),)</span> (line <span class="line-number">609</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyRuleName" id="$yyRuleName"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyRuleName</span> - = <span class="var-default">array( <br /> /* 0 */ "start ::= global_vars sections", <br /> /* 1 */ "global_vars ::= var_list", <br /> /* 2 */ "sections ::= sections section", <br /> /* 3 */ "sections ::=", <br /> /* 4 */ "section ::= OPENB SECTION CLOSEB newline var_list", <br /> /* 5 */ "section ::= OPENB DOT SECTION CLOSEB newline var_list", <br /> /* 6 */ "var_list ::= var_list newline", <br /> /* 7 */ "var_list ::= var_list var", <br /> /* 8 */ "var_list ::=", <br /> /* 9 */ "var ::= ID EQUAL value", <br /> /* 10 */ "value ::= FLOAT", <br /> /* 11 */ "value ::= INT", <br /> /* 12 */ "value ::= BOOL", <br /> /* 13 */ "value ::= SINGLE_QUOTED_STRING", <br /> /* 14 */ "value ::= DOUBLE_QUOTED_STRING", <br /> /* 15 */ "value ::= TRIPPLE_DOUBLE_QUOTED_STRING", <br /> /* 16 */ "value ::= NAKED_STRING", <br /> /* 17 */ "newline ::= NEWLINE", <br /> /* 18 */ "newline ::= COMMENTSTART NEWLINE", <br /> /* 19 */ "newline ::= COMMENTSTART NAKED_STRING NEWLINE", <br /> )</span> (line <span class="line-number">309</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyTraceFILE" id="$yyTraceFILE"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyTraceFILE</span> - (line <span class="line-number">293</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyTracePrompt" id="$yyTracePrompt"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyTracePrompt</span> - (line <span class="line-number">294</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_action" id="$yy_action"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_action</span> - = <span class="var-default">array( <br /> /* 0 */ 26, 27, 21, 30, 29, 28, 31, 16, 53, 8, <br /> /* 10 */ 19, 2, 20, 11, 24, 23, 20, 11, 17, 15, <br /> /* 20 */ 3, 14, 13, 18, 4, 6, 5, 1, 12, 22, <br /> /* 30 */ 9, 47, 10, 25, 7, <br /> )</span> (line <span class="line-number">203</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_default" id="$yy_default"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_default</span> - = <span class="var-default">array( <br /> /* 0 */ 40, 36, 33, 37, 52, 52, 52, 32, 35, 40, <br /> /* 10 */ 40, 52, 52, 52, 52, 52, 52, 52, 50, 51, <br /> /* 20 */ 49, 44, 41, 39, 38, 34, 42, 43, 47, 46, <br /> /* 30 */ 45, 48, <br />)</span> (line <span class="line-number">261</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_lookahead" id="$yy_lookahead"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_lookahead</span> - = <span class="var-default">array( <br /> /* 0 */ 7, 8, 9, 10, 11, 12, 13, 5, 17, 18, <br /> /* 10 */ 14, 20, 14, 15, 22, 23, 14, 15, 2, 2, <br /> /* 20 */ 20, 4, 13, 14, 6, 3, 3, 20, 1, 24, <br /> /* 30 */ 22, 25, 22, 21, 19, <br />)</span> (line <span class="line-number">209</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_reduce_ofst" id="$yy_reduce_ofst"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_reduce_ofst</span> - = <span class="var-default">array( <br /> /* 0 */ -9, -8, -8, -8, 5, 10, 8, 12, 15, 0, <br /> /* 10 */ 7, <br />)</span> (line <span class="line-number">223</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_shift_ofst" id="$yy_shift_ofst"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_shift_ofst</span> - = <span class="var-default">array( <br /> /* 0 */ -8, 2, 2, 2, -7, -2, -2, 27, -8, -8, <br /> /* 10 */ -8, 9, 17, -4, 16, 23, 18, 22, <br />)</span> (line <span class="line-number">217</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$retvalue" id="$retvalue"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$retvalue</span> - = <span class="var-default"> 0</span> (line <span class="line-number">93</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$successful" id="$successful"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$successful</span> - = <span class="var-default"> true</span> (line <span class="line-number">92</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyerrcnt" id="$yyerrcnt"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yyerrcnt</span> - (line <span class="line-number">296</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyidx" id="$yyidx"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yyidx</span> - (line <span class="line-number">295</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yystack" id="$yystack"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yystack</span> - = <span class="var-default">array()</span> (line <span class="line-number">297</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyTokenName" id="$yyTokenName"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yyTokenName</span> - = <span class="var-default">array( <br /> '$', 'OPENB', 'SECTION', 'CLOSEB', <br /> 'DOT', 'ID', 'EQUAL', 'FLOAT', <br /> 'INT', 'BOOL', 'SINGLE_QUOTED_STRING', 'DOUBLE_QUOTED_STRING', <br /> 'TRIPPLE_DOUBLE_QUOTED_STRING', 'NAKED_STRING', 'NEWLINE', 'COMMENTSTART', <br /> 'error', 'start', 'global_vars', 'sections', <br /> 'var_list', 'section', 'newline', 'var', <br /> 'value', <br /> )</span> (line <span class="line-number">299</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodinstance" id="instance"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method instance</span> (line <span class="line-number">104</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - &instance - </span> - ([<span class="var-type"></span> <span class="var-name">$new_instance</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$new_instance</span> </li> - </ul> - - - </div> -<a name="methodPrintTrace" id="PrintTrace"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method PrintTrace</span> (line <span class="line-number">287</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - PrintTrace - </span> - () - </div> - - - - </div> -<a name="methodTrace" id="Trace"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method Trace</span> (line <span class="line-number">276</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - Trace - </span> - (<span class="var-type"></span> <span class="var-name">$TraceFILE</span>, <span class="var-type"></span> <span class="var-name">$zTracePrompt</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$TraceFILE</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$zTracePrompt</span> </li> - </ul> - - - </div> -<a name="methodyy_destructor" id="yy_destructor"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method yy_destructor</span> (line <span class="line-number">344</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - yy_destructor - </span> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yypminor</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yymajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yypminor</span> </li> - </ul> - - - </div> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">97</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Configfileparser</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"></span> <span class="var-name">$lex</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$lex</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - - </div> -<a name="method__destruct" id="__destruct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Destructor __destruct</span> (line <span class="line-number">368</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __destruct - </span> - () - </div> - - - - </div> -<a name="methoddoParse" id="doParse"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">doParse</span> (line <span class="line-number">814</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - doParse - </span> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yytokenvalue</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yymajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yytokenvalue</span> </li> - </ul> - - - </div> -<a name="methodtokenName" id="tokenName"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">tokenName</span> (line <span class="line-number">332</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - tokenName - </span> - (<span class="var-type"></span> <span class="var-name">$tokenType</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$tokenType</span> </li> - </ul> - - - </div> -<a name="methodyy_accept" id="yy_accept"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_accept</span> (line <span class="line-number">797</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_accept - </span> - () - </div> - - - - </div> -<a name="methodyy_find_reduce_action" id="yy_find_reduce_action"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_find_reduce_action</span> (line <span class="line-number">551</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_find_reduce_action - </span> - (<span class="var-type"></span> <span class="var-name">$stateno</span>, <span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$stateno</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$iLookAhead</span> </li> - </ul> - - - </div> -<a name="methodyy_find_shift_action" id="yy_find_shift_action"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_find_shift_action</span> (line <span class="line-number">517</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_find_shift_action - </span> - (<span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$iLookAhead</span> </li> - </ul> - - - </div> -<a name="methodyy_get_expected_tokens" id="yy_get_expected_tokens"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_get_expected_tokens</span> (line <span class="line-number">378</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_get_expected_tokens - </span> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$token</span> </li> - </ul> - - - </div> -<a name="methodyy_is_expected_token" id="yy_is_expected_token"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_is_expected_token</span> (line <span class="line-number">446</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_is_expected_token - </span> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$token</span> </li> - </ul> - - - </div> -<a name="methodyy_parse_failed" id="yy_parse_failed"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_parse_failed</span> (line <span class="line-number">777</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_parse_failed - </span> - () - </div> - - - - </div> -<a name="methodyy_pop_parser_stack" id="yy_pop_parser_stack"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_pop_parser_stack</span> (line <span class="line-number">351</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_pop_parser_stack - </span> - () - </div> - - - - </div> -<a name="methodyy_r0" id="yy_r0"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r0</span> (line <span class="line-number">655</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r0 - </span> - () - </div> - - - - </div> -<a name="methodyy_r1" id="yy_r1"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1</span> (line <span class="line-number">660</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1 - </span> - () - </div> - - - - </div> -<a name="methodyy_r4" id="yy_r4"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4</span> (line <span class="line-number">665</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4 - </span> - () - </div> - - - - </div> -<a name="methodyy_r5" id="yy_r5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r5</span> (line <span class="line-number">671</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r5 - </span> - () - </div> - - - - </div> -<a name="methodyy_r6" id="yy_r6"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r6</span> (line <span class="line-number">679</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r6 - </span> - () - </div> - - - - </div> -<a name="methodyy_r7" id="yy_r7"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r7</span> (line <span class="line-number">684</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r7 - </span> - () - </div> - - - - </div> -<a name="methodyy_r8" id="yy_r8"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r8</span> (line <span class="line-number">689</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r8 - </span> - () - </div> - - - - </div> -<a name="methodyy_r9" id="yy_r9"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r9</span> (line <span class="line-number">694</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r9 - </span> - () - </div> - - - - </div> -<a name="methodyy_r10" id="yy_r10"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r10</span> (line <span class="line-number">699</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r10 - </span> - () - </div> - - - - </div> -<a name="methodyy_r11" id="yy_r11"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r11</span> (line <span class="line-number">704</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r11 - </span> - () - </div> - - - - </div> -<a name="methodyy_r12" id="yy_r12"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r12</span> (line <span class="line-number">709</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r12 - </span> - () - </div> - - - - </div> -<a name="methodyy_r13" id="yy_r13"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r13</span> (line <span class="line-number">714</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r13 - </span> - () - </div> - - - - </div> -<a name="methodyy_r14" id="yy_r14"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r14</span> (line <span class="line-number">719</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r14 - </span> - () - </div> - - - - </div> -<a name="methodyy_r15" id="yy_r15"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r15</span> (line <span class="line-number">724</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r15 - </span> - () - </div> - - - - </div> -<a name="methodyy_r16" id="yy_r16"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r16</span> (line <span class="line-number">729</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r16 - </span> - () - </div> - - - - </div> -<a name="methodyy_reduce" id="yy_reduce"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_reduce</span> (line <span class="line-number">736</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_reduce - </span> - (<span class="var-type"></span> <span class="var-name">$yyruleno</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yyruleno</span> </li> - </ul> - - - </div> -<a name="methodyy_shift" id="yy_shift"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_shift</span> (line <span class="line-number">574</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_shift - </span> - (<span class="var-type"></span> <span class="var-name">$yyNewState</span>, <span class="var-type"></span> <span class="var-name">$yyMajor</span>, <span class="var-type"></span> <span class="var-name">$yypMinor</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yyNewState</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yyMajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yypMinor</span> </li> - </ul> - - - </div> -<a name="methodyy_syntax_error" id="yy_syntax_error"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_syntax_error</span> (line <span class="line-number">787</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_syntax_error - </span> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$TOKEN</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yymajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$TOKEN</span> </li> - </ul> - - - </div> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="constTPC_BOOL" id="TPC_BOOL"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_BOOL</span> - = <span class="const-default"> 9</span> - (line <span class="line-number">191</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_CLOSEB" id="TPC_CLOSEB"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_CLOSEB</span> - = <span class="const-default"> 3</span> - (line <span class="line-number">185</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_COMMENTSTART" id="TPC_COMMENTSTART"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_COMMENTSTART</span> - = <span class="const-default"> 15</span> - (line <span class="line-number">197</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_DOT" id="TPC_DOT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_DOT</span> - = <span class="const-default"> 4</span> - (line <span class="line-number">186</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_DOUBLE_QUOTED_STRING" id="TPC_DOUBLE_QUOTED_STRING"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_DOUBLE_QUOTED_STRING</span> - = <span class="const-default"> 11</span> - (line <span class="line-number">193</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_EQUAL" id="TPC_EQUAL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_EQUAL</span> - = <span class="const-default"> 6</span> - (line <span class="line-number">188</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_FLOAT" id="TPC_FLOAT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_FLOAT</span> - = <span class="const-default"> 7</span> - (line <span class="line-number">189</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_ID" id="TPC_ID"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_ID</span> - = <span class="const-default"> 5</span> - (line <span class="line-number">187</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_INT" id="TPC_INT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_INT</span> - = <span class="const-default"> 8</span> - (line <span class="line-number">190</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_NAKED_STRING" id="TPC_NAKED_STRING"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_NAKED_STRING</span> - = <span class="const-default"> 13</span> - (line <span class="line-number">195</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_NEWLINE" id="TPC_NEWLINE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_NEWLINE</span> - = <span class="const-default"> 14</span> - (line <span class="line-number">196</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_OPENB" id="TPC_OPENB"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_OPENB</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">183</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_SECTION" id="TPC_SECTION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_SECTION</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">184</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_SINGLE_QUOTED_STRING" id="TPC_SINGLE_QUOTED_STRING"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_SINGLE_QUOTED_STRING</span> - = <span class="const-default"> 10</span> - (line <span class="line-number">192</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTPC_TRIPPLE_DOUBLE_QUOTED_STRING" id="TPC_TRIPPLE_DOUBLE_QUOTED_STRING"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TPC_TRIPPLE_DOUBLE_QUOTED_STRING</span> - = <span class="const-default"> 12</span> - (line <span class="line-number">194</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYERRORSYMBOL" id="YYERRORSYMBOL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYERRORSYMBOL</span> - = <span class="const-default"> 16</span> - (line <span class="line-number">271</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYERRSYMDT" id="YYERRSYMDT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYERRSYMDT</span> - = <span class="const-default"> 'yy0'</span> - (line <span class="line-number">272</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYFALLBACK" id="YYFALLBACK"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYFALLBACK</span> - = <span class="const-default"> 0</span> - (line <span class="line-number">273</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYNOCODE" id="YYNOCODE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYNOCODE</span> - = <span class="const-default"> 26</span> - (line <span class="line-number">267</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYNRULE" id="YYNRULE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYNRULE</span> - = <span class="const-default"> 20</span> - (line <span class="line-number">270</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYNSTATE" id="YYNSTATE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYNSTATE</span> - = <span class="const-default"> 32</span> - (line <span class="line-number">269</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYSTACKDEPTH" id="YYSTACKDEPTH"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYSTACKDEPTH</span> - = <span class="const-default"> 100</span> - (line <span class="line-number">268</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_ACCEPT_ACTION" id="YY_ACCEPT_ACTION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_ACCEPT_ACTION</span> - = <span class="const-default"> 53</span> - (line <span class="line-number">199</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_ERROR_ACTION" id="YY_ERROR_ACTION"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_ERROR_ACTION</span> - = <span class="const-default"> 52</span> - (line <span class="line-number">200</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_NO_ACTION" id="YY_NO_ACTION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_NO_ACTION</span> - = <span class="const-default"> 54</span> - (line <span class="line-number">198</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_REDUCE_MAX" id="YY_REDUCE_MAX"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_REDUCE_MAX</span> - = <span class="const-default"> 10</span> - (line <span class="line-number">222</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_REDUCE_USE_DFLT" id="YY_REDUCE_USE_DFLT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_REDUCE_USE_DFLT</span> - = <span class="const-default"> -10</span> - (line <span class="line-number">221</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_SHIFT_MAX" id="YY_SHIFT_MAX"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_SHIFT_MAX</span> - = <span class="const-default"> 17</span> - (line <span class="line-number">216</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_SHIFT_USE_DFLT" id="YY_SHIFT_USE_DFLT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_SHIFT_USE_DFLT</span> - = <span class="const-default"> -8</span> - (line <span class="line-number">215</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_SZ_ACTTAB" id="YY_SZ_ACTTAB"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_SZ_ACTTAB</span> - = <span class="const-default"> 35</span> - (line <span class="line-number">202</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:51 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Nocache_Insert.html
Deleted
@@ -1,121 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Nocache_Insert</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Nocache_Insert</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Insert Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_nocache_insert.php.html">/libs/sysplugins/smarty_internal_nocache_insert.php</a> (line <span class="field">18</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">string</span> - <a href="#compile" title="details" class="method-name">compile</a> - (<span class="var-type">string</span> <span class="var-name">$_function</span>, <span class="var-type">array</span> <span class="var-name">$_attr</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$_script</span>, [<span class="var-type">string</span> <span class="var-name">$_assign</span> = <span class="var-default">null</span>]) - </div> - - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodcompile" id="compile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method compile</span> (line <span class="line-number">30</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles code for the {insert} tag into cache file</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">string</span> - <span class="method-name"> - compile - </span> - (<span class="var-type">string</span> <span class="var-name">$_function</span>, <span class="var-type">array</span> <span class="var-name">$_attr</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$_script</span>, [<span class="var-type">string</span> <span class="var-name">$_assign</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$_function</span><span class="var-description">: insert function name</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$_attr</span><span class="var-description">: array with parameter</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$_script</span><span class="var-description">: script name to load or 'null'</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$_assign</span><span class="var-description">: optional variable name</span> </li> - </ul> - - - </div> - - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html>
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html
Deleted
@@ -1,409 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_SmartyTemplateCompiler</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_SmartyTemplateCompiler</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Class SmartyTemplateCompiler</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_smartytemplatecompiler.php.html">/libs/sysplugins/smarty_internal_smartytemplatecompiler.php</a> (line <span class="field">23</span>) - </p> - - - <pre><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a> - | - --Smarty_Internal_SmartyTemplateCompiler</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">object</span> - <a href="#$lex" title="details" class="var-name">$lex</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$lexer_class" title="details" class="var-name">$lexer_class</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$local_var" title="details" class="var-name">$local_var</a> - </div> - <div class="var-title"> - <span class="var-type">object</span> - <a href="#$parser" title="details" class="var-name">$parser</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$parser_class" title="details" class="var-name">$parser_class</a> - </div> - <div class="var-title"> - <span class="var-type">object</span> - <a href="#$smarty" title="details" class="var-name">$smarty</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_SmartyTemplateCompiler</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type">string</span> <span class="var-name">$lexer_class</span>, <span class="var-type">string</span> <span class="var-name">$parser_class</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#doCompile" title="details" class="method-name">doCompile</a> - (<span class="var-type">mixed</span> <span class="var-name">$_content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$lex" id="$lex"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">object</span> - <span class="var-name">$lex</span> - (line <span class="line-number">44</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Lexer object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$lexer_class" id="$lexer_class"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$lexer_class</span> - (line <span class="line-number">30</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Lexer class name</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$local_var" id="$local_var"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$local_var</span> - = <span class="var-default">array()</span> (line <span class="line-number">65</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">array of vars which can be compiled in local scope</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$parser" id="$parser"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">object</span> - <span class="var-name">$parser</span> - (line <span class="line-number">51</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Parser object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$parser_class" id="$parser_class"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$parser_class</span> - (line <span class="line-number">37</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Parser class name</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty" id="$smarty"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">object</span> - <span class="var-name">$smarty</span> - (line <span class="line-number">58</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$default_handler_plugins">Smarty_Internal_TemplateCompilerBase::$default_handler_plugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$default_modifier_list">Smarty_Internal_TemplateCompilerBase::$default_modifier_list</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$forceNocache">Smarty_Internal_TemplateCompilerBase::$forceNocache</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$inheritance">Smarty_Internal_TemplateCompilerBase::$inheritance</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$merged_templates">Smarty_Internal_TemplateCompilerBase::$merged_templates</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$modifier_plugins">Smarty_Internal_TemplateCompilerBase::$modifier_plugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressHeader">Smarty_Internal_TemplateCompilerBase::$suppressHeader</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressMergedTemplates">Smarty_Internal_TemplateCompilerBase::$suppressMergedTemplates</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressNocacheProcessing">Smarty_Internal_TemplateCompilerBase::$suppressNocacheProcessing</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressTemplatePropertyHeader">Smarty_Internal_TemplateCompilerBase::$suppressTemplatePropertyHeader</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$template">Smarty_Internal_TemplateCompilerBase::$template</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$write_compiled_code">Smarty_Internal_TemplateCompilerBase::$write_compiled_code</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$_tag_objects">Smarty_Internal_TemplateCompilerBase::$_tag_objects</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$_tag_stack">Smarty_Internal_TemplateCompilerBase::$_tag_stack</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">74</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Initialize compiler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_SmartyTemplateCompiler</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type">string</span> <span class="var-name">$lexer_class</span>, <span class="var-type">string</span> <span class="var-name">$parser_class</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$lexer_class</span><span class="var-description">: class name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$parser_class</span><span class="var-description">: class name</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: global instance</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#method__construct">Smarty_Internal_TemplateCompilerBase::__construct()</a></dt> - <dd>Initialize compiler</dd> - </dl> - - </div> -<a name="methoddoCompile" id="doCompile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">doCompile</span> (line <span class="line-number">89</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Methode to compile a Smarty template</p> - <ul class="tags"> - <li><span class="field">return:</span> true if compiling succeeded, false if it failed</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - doCompile - </span> - (<span class="var-type">mixed</span> <span class="var-name">$_content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$_content</span><span class="var-description">: template source</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#method__construct">Smarty_Internal_TemplateCompilerBase::__construct()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcallTagCompiler">Smarty_Internal_TemplateCompilerBase::callTagCompiler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcompileTag">Smarty_Internal_TemplateCompilerBase::compileTag()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcompileTemplate">Smarty_Internal_TemplateCompilerBase::compileTemplate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodgetPlugin">Smarty_Internal_TemplateCompilerBase::getPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodgetPluginFromDefaultHandler">Smarty_Internal_TemplateCompilerBase::getPluginFromDefaultHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodprocessNocacheCode">Smarty_Internal_TemplateCompilerBase::processNocacheCode()</a></span><br> - <span class="method-name"><a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodtrigger_template_error">Smarty_Internal_TemplateCompilerBase::trigger_template_error()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:59 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html
Deleted
@@ -1,825 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_TemplateCompilerBase</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_TemplateCompilerBase</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Main abstract compiler class</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_templatecompilerbase.php.html">/libs/sysplugins/smarty_internal_templatecompilerbase.php</a> (line <span class="field">18</span>) - </p> - - - <pre></pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html">Smarty_Internal_SmartyTemplateCompiler</a></td> - <td> - Class SmartyTemplateCompiler - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$_tag_objects" title="details" class="var-name">$_tag_objects</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$default_handler_plugins" title="details" class="var-name">$default_handler_plugins</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$default_modifier_list" title="details" class="var-name">$default_modifier_list</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$forceNocache" title="details" class="var-name">$forceNocache</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$inheritance" title="details" class="var-name">$inheritance</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$merged_templates" title="details" class="var-name">$merged_templates</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$modifier_plugins" title="details" class="var-name">$modifier_plugins</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$suppressHeader" title="details" class="var-name">$suppressHeader</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$suppressMergedTemplates" title="details" class="var-name">$suppressMergedTemplates</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$suppressNocacheProcessing" title="details" class="var-name">$suppressNocacheProcessing</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$suppressTemplatePropertyHeader" title="details" class="var-name">$suppressTemplatePropertyHeader</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <a href="#$template" title="details" class="var-name">$template</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$write_compiled_code" title="details" class="var-name">$write_compiled_code</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$_tag_stack" title="details" class="var-name">$_tag_stack</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_TemplateCompilerBase</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#callTagCompiler" title="details" class="method-name">callTagCompiler</a> - (<span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">array</span> <span class="var-name">$args</span>, [<span class="var-type">mixed</span> <span class="var-name">$param1</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$param2</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$param3</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#compileTag" title="details" class="method-name">compileTag</a> - (<span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">array</span> <span class="var-name">$args</span>, [<span class="var-type">array</span> <span class="var-name">$parameter</span> = <span class="var-default">array()</span>]) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#compileTemplate" title="details" class="method-name">compileTemplate</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getPlugin" title="details" class="method-name">getPlugin</a> - (<span class="var-type"></span> <span class="var-name">$plugin_name</span>, <span class="var-type">string</span> <span class="var-name">$plugin_type</span>, <span class="var-type">string</span> <span class="var-name">$pugin_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#getPluginFromDefaultHandler" title="details" class="method-name">getPluginFromDefaultHandler</a> - (<span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$plugin_type</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#processNocacheCode" title="details" class="method-name">processNocacheCode</a> - (<span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">boolean</span> <span class="var-name">$is_code</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#trigger_template_error" title="details" class="method-name">trigger_template_error</a> - ([<span class="var-type">string</span> <span class="var-name">$args</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$line</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$_tag_objects" id="$_tag_objects"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$_tag_objects</span> - = <span class="var-default">array()</span> (line <span class="line-number">43</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">compile tag objects</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_handler_plugins" id="$default_handler_plugins"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$default_handler_plugins</span> - = <span class="var-default">array()</span> (line <span class="line-number">73</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">plugins loaded by default plugin handler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_modifier_list" id="$default_modifier_list"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$default_modifier_list</span> - = <span class="var-default"> null</span> (line <span class="line-number">79</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">saved preprocessed modifier list</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$forceNocache" id="$forceNocache"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$forceNocache</span> - = <span class="var-default"> false</span> (line <span class="line-number">84</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">force compilation of complete template as nocache</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$inheritance" id="$inheritance"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$inheritance</span> - = <span class="var-default"> false</span> (line <span class="line-number">67</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">flag when compiling {block}</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$merged_templates" id="$merged_templates"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$merged_templates</span> - = <span class="var-default">array()</span> (line <span class="line-number">61</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">merged templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$modifier_plugins" id="$modifier_plugins"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$modifier_plugins</span> - = <span class="var-default">array()</span> (line <span class="line-number">104</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">flags for used modifier plugins</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$suppressHeader" id="$suppressHeader"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$suppressHeader</span> - = <span class="var-default"> false</span> (line <span class="line-number">89</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">suppress Smarty header code in compiled template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$suppressMergedTemplates" id="$suppressMergedTemplates"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$suppressMergedTemplates</span> - = <span class="var-default"> false</span> (line <span class="line-number">37</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">suppress generation of merged template code</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$suppressNocacheProcessing" id="$suppressNocacheProcessing"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$suppressNocacheProcessing</span> - = <span class="var-default"> false</span> (line <span class="line-number">31</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">suppress generation of nocache code</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$suppressTemplatePropertyHeader" id="$suppressTemplatePropertyHeader"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$suppressTemplatePropertyHeader</span> - = <span class="var-default"> false</span> (line <span class="line-number">94</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">suppress template property header code in compiled template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template" id="$template"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span> - = <span class="var-default"> null</span> (line <span class="line-number">55</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">current template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$write_compiled_code" id="$write_compiled_code"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$write_compiled_code</span> - = <span class="var-default"> true</span> (line <span class="line-number">99</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">flag if compiled template file shall we written</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_tag_stack" id="$_tag_stack"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$_tag_stack</span> - = <span class="var-default">array()</span> (line <span class="line-number">49</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">tag stack</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">109</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Initialize compiler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_TemplateCompilerBase</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#method__construct">Smarty_Internal_SmartyTemplateCompiler::__construct()</a> - : Initialize compiler - </li> - </ul> - </div> -<a name="methodcallTagCompiler" id="callTagCompiler"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">callTagCompiler</span> (line <span class="line-number">408</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">lazy loads internal compile plugin for tag and calls the compile methode</p> -<p class="description"><p>compile objects cached for reuse. class name format: Smarty_Internal_Compile_TagName plugin filename format: Smarty_Internal_Tagname.php</p></p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - callTagCompiler - </span> - (<span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">array</span> <span class="var-name">$args</span>, [<span class="var-type">mixed</span> <span class="var-name">$param1</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$param2</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$param3</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: tag name</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: list of tag attributes</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$param1</span><span class="var-description">: optional parameter</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$param2</span><span class="var-description">: optional parameter</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$param3</span><span class="var-description">: optional parameter</span> </li> - </ul> - - - </div> -<a name="methodcompileTag" id="compileTag"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compileTag</span> (line <span class="line-number">195</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compile Tag</p> -<p class="description"><p>This is a call back from the lexer/parser It executes the required compile plugin for the Smarty tag</p></p> - <ul class="tags"> - <li><span class="field">return:</span> compiled code</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - compileTag - </span> - (<span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">array</span> <span class="var-name">$args</span>, [<span class="var-type">array</span> <span class="var-name">$parameter</span> = <span class="var-default">array()</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: tag name</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: array with tag attributes</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$parameter</span><span class="var-description">: array with compilation parameter</span> </li> - </ul> - - - </div> -<a name="methodcompileTemplate" id="compileTemplate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compileTemplate</span> (line <span class="line-number">120</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Method to compile a Smarty template</p> - <ul class="tags"> - <li><span class="field">return:</span> true if compiling succeeded, false if it failed</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - compileTemplate - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object to compile</span> </li> - </ul> - - - </div> -<a name="methodgetPlugin" id="getPlugin"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getPlugin</span> (line <span class="line-number">437</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check for plugins and return function name</p> - <ul class="tags"> - <li><span class="field">return:</span> call name of function</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getPlugin - </span> - (<span class="var-type"></span> <span class="var-name">$plugin_name</span>, <span class="var-type">string</span> <span class="var-name">$plugin_type</span>, <span class="var-type">string</span> <span class="var-name">$pugin_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$pugin_name</span><span class="var-description">: name of plugin or function</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$plugin_type</span><span class="var-description">: type of plugin</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$plugin_name</span> </li> - </ul> - - - </div> -<a name="methodgetPluginFromDefaultHandler" id="getPluginFromDefaultHandler"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getPluginFromDefaultHandler</span> (line <span class="line-number">492</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check for plugins by default plugin handler</p> - <ul class="tags"> - <li><span class="field">return:</span> true if found</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - getPluginFromDefaultHandler - </span> - (<span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">string</span> <span class="var-name">$plugin_type</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of tag</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$plugin_type</span><span class="var-description">: type of plugin</span> </li> - </ul> - - - </div> -<a name="methodprocessNocacheCode" id="processNocacheCode"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">processNocacheCode</span> (line <span class="line-number">536</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Inject inline code for nocache template sections</p> -<p class="description"><p>This method gets the content of each template element from the parser. If the content is compiled code and it should be not cached the code is injected into the rendered output.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> content</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - processNocacheCode - </span> - (<span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">boolean</span> <span class="var-name">$is_code</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content of template element</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$is_code</span><span class="var-description">: true if content is compiled code</span> </li> - </ul> - - - </div> -<a name="methodtrigger_template_error" id="trigger_template_error"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">trigger_template_error</span> (line <span class="line-number">577</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">display compiler error messages without dying</p> -<p class="description"><p>If parameter $args is empty it is a parser detected syntax error. In this case the parser is called to obtain information about expected tokens.</p><p>If parameter $args contains a string this is used as error message</p></p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyCompilerException when an unexpected token is found</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - trigger_template_error - </span> - ([<span class="var-type">string</span> <span class="var-name">$args</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$line</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$args</span><span class="var-description">: individual error message or null</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$line</span><span class="var-description">: line-number</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:03 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Templatelexer.html
Deleted
@@ -1,4151 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Templatelexer</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Templatelexer</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Templatelexer</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_templatelexer.php.html">/libs/sysplugins/smarty_internal_templatelexer.php</a> (line <span class="field">13</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - <a name="sec-const-summary"></a> - <div class="info-box"> - <div class="info-box-title">Class Constant Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>) - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="const-summary"> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#DOUBLEQUOTEDSTRING" title="details" class="const-name">DOUBLEQUOTEDSTRING</a> = <span class="var-type"> 4</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#LITERAL" title="details" class="const-name">LITERAL</a> = <span class="var-type"> 3</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SMARTY" title="details" class="const-name">SMARTY</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TEXT" title="details" class="const-name">TEXT</a> = <span class="var-type"> 1</span> - - </div> - </div> - </div> - </div> - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$counter" title="details" class="var-name">$counter</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$data" title="details" class="var-name">$data</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$line" title="details" class="var-name">$line</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$node" title="details" class="var-name">$node</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$smarty_token_names" title="details" class="var-name">$smarty_token_names</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$state" title="details" class="var-name">$state</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$strip" title="details" class="var-name">$strip</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$taglineno" title="details" class="var-name">$taglineno</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$token" title="details" class="var-name">$token</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$value" title="details" class="var-name">$value</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Templatelexer</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yybegin" title="details" class="method-name">yybegin</a> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex" title="details" class="method-name">yylex</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex1" title="details" class="method-name">yylex1</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex2" title="details" class="method-name">yylex2</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex3" title="details" class="method-name">yylex3</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex4" title="details" class="method-name">yylex4</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yypopstate" title="details" class="method-name">yypopstate</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yypushstate" title="details" class="method-name">yypushstate</a> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_1" title="details" class="method-name">yy_r1_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_2" title="details" class="method-name">yy_r1_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_3" title="details" class="method-name">yy_r1_3</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_5" title="details" class="method-name">yy_r1_5</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_6" title="details" class="method-name">yy_r1_6</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_7" title="details" class="method-name">yy_r1_7</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_8" title="details" class="method-name">yy_r1_8</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_9" title="details" class="method-name">yy_r1_9</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_10" title="details" class="method-name">yy_r1_10</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_11" title="details" class="method-name">yy_r1_11</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_12" title="details" class="method-name">yy_r1_12</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_14" title="details" class="method-name">yy_r1_14</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_15" title="details" class="method-name">yy_r1_15</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_16" title="details" class="method-name">yy_r1_16</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_17" title="details" class="method-name">yy_r1_17</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_18" title="details" class="method-name">yy_r1_18</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_19" title="details" class="method-name">yy_r1_19</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_20" title="details" class="method-name">yy_r1_20</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_21" title="details" class="method-name">yy_r1_21</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_22" title="details" class="method-name">yy_r1_22</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_23" title="details" class="method-name">yy_r1_23</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_24" title="details" class="method-name">yy_r1_24</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_27" title="details" class="method-name">yy_r1_27</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_28" title="details" class="method-name">yy_r1_28</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_1" title="details" class="method-name">yy_r2_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_2" title="details" class="method-name">yy_r2_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_3" title="details" class="method-name">yy_r2_3</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_5" title="details" class="method-name">yy_r2_5</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_6" title="details" class="method-name">yy_r2_6</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_7" title="details" class="method-name">yy_r2_7</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_8" title="details" class="method-name">yy_r2_8</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_9" title="details" class="method-name">yy_r2_9</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_10" title="details" class="method-name">yy_r2_10</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_11" title="details" class="method-name">yy_r2_11</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_12" title="details" class="method-name">yy_r2_12</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_13" title="details" class="method-name">yy_r2_13</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_14" title="details" class="method-name">yy_r2_14</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_15" title="details" class="method-name">yy_r2_15</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_16" title="details" class="method-name">yy_r2_16</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_17" title="details" class="method-name">yy_r2_17</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_18" title="details" class="method-name">yy_r2_18</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_19" title="details" class="method-name">yy_r2_19</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_20" title="details" class="method-name">yy_r2_20</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_22" title="details" class="method-name">yy_r2_22</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_24" title="details" class="method-name">yy_r2_24</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_26" title="details" class="method-name">yy_r2_26</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_27" title="details" class="method-name">yy_r2_27</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_28" title="details" class="method-name">yy_r2_28</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_29" title="details" class="method-name">yy_r2_29</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_30" title="details" class="method-name">yy_r2_30</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_31" title="details" class="method-name">yy_r2_31</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_32" title="details" class="method-name">yy_r2_32</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_33" title="details" class="method-name">yy_r2_33</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_34" title="details" class="method-name">yy_r2_34</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_35" title="details" class="method-name">yy_r2_35</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_36" title="details" class="method-name">yy_r2_36</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_37" title="details" class="method-name">yy_r2_37</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_38" title="details" class="method-name">yy_r2_38</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_39" title="details" class="method-name">yy_r2_39</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_40" title="details" class="method-name">yy_r2_40</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_41" title="details" class="method-name">yy_r2_41</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_42" title="details" class="method-name">yy_r2_42</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_43" title="details" class="method-name">yy_r2_43</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_47" title="details" class="method-name">yy_r2_47</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_48" title="details" class="method-name">yy_r2_48</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_49" title="details" class="method-name">yy_r2_49</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_50" title="details" class="method-name">yy_r2_50</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_51" title="details" class="method-name">yy_r2_51</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_52" title="details" class="method-name">yy_r2_52</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_53" title="details" class="method-name">yy_r2_53</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_54" title="details" class="method-name">yy_r2_54</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_55" title="details" class="method-name">yy_r2_55</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_57" title="details" class="method-name">yy_r2_57</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_59" title="details" class="method-name">yy_r2_59</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_60" title="details" class="method-name">yy_r2_60</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_61" title="details" class="method-name">yy_r2_61</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_62" title="details" class="method-name">yy_r2_62</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_63" title="details" class="method-name">yy_r2_63</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_64" title="details" class="method-name">yy_r2_64</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_65" title="details" class="method-name">yy_r2_65</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_66" title="details" class="method-name">yy_r2_66</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_67" title="details" class="method-name">yy_r2_67</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_68" title="details" class="method-name">yy_r2_68</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_69" title="details" class="method-name">yy_r2_69</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_70" title="details" class="method-name">yy_r2_70</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_71" title="details" class="method-name">yy_r2_71</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_72" title="details" class="method-name">yy_r2_72</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_73" title="details" class="method-name">yy_r2_73</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_74" title="details" class="method-name">yy_r2_74</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_75" title="details" class="method-name">yy_r2_75</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_76" title="details" class="method-name">yy_r2_76</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_1" title="details" class="method-name">yy_r3_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_2" title="details" class="method-name">yy_r3_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_3" title="details" class="method-name">yy_r3_3</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_4" title="details" class="method-name">yy_r3_4</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_5" title="details" class="method-name">yy_r3_5</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_6" title="details" class="method-name">yy_r3_6</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_7" title="details" class="method-name">yy_r3_7</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_8" title="details" class="method-name">yy_r3_8</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_11" title="details" class="method-name">yy_r3_11</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_1" title="details" class="method-name">yy_r4_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_2" title="details" class="method-name">yy_r4_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_4" title="details" class="method-name">yy_r4_4</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_5" title="details" class="method-name">yy_r4_5</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_6" title="details" class="method-name">yy_r4_6</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_7" title="details" class="method-name">yy_r4_7</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_8" title="details" class="method-name">yy_r4_8</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_9" title="details" class="method-name">yy_r4_9</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_10" title="details" class="method-name">yy_r4_10</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_11" title="details" class="method-name">yy_r4_11</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_12" title="details" class="method-name">yy_r4_12</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_13" title="details" class="method-name">yy_r4_13</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_17" title="details" class="method-name">yy_r4_17</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_18" title="details" class="method-name">yy_r4_18</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$counter" id="$counter"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$counter</span> - (line <span class="line-number">16</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$data" id="$data"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$data</span> - (line <span class="line-number">15</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$line" id="$line"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$line</span> - (line <span class="line-number">20</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$node" id="$node"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$node</span> - (line <span class="line-number">19</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty_token_names" id="$smarty_token_names"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$smarty_token_names</span> - = <span class="var-default">array ( // Text for parser error messages <br /> 'IDENTITY' => '===', <br /> 'NONEIDENTITY' => '!==', <br /> 'EQUALS' => '==', <br /> 'NOTEQUALS' => '!=', <br /> 'GREATEREQUAL' => '(>=,ge)', <br /> 'LESSEQUAL' => '(<=,le)', <br /> 'GREATERTHAN' => '(>,gt)', <br /> 'LESSTHAN' => '(<,lt)', <br /> 'MOD' => '(%,mod)', <br /> 'NOT' => '(!,not)', <br /> 'LAND' => '(&&,and)', <br /> 'LOR' => '(||,or)', <br /> 'LXOR' => 'xor', <br /> 'OPENP' => '(', <br /> 'CLOSEP' => ')', <br /> 'OPENB' => '[', <br /> 'CLOSEB' => ']', <br /> 'PTR' => '->', <br /> 'APTR' => '=>', <br /> 'EQUAL' => '=', <br /> 'NUMBER' => 'number', <br /> 'UNIMATH' => '+" , "-', <br /> 'MATH' => '*" , "/" , "%', <br /> 'INCDEC' => '++" , "--', <br /> 'SPACE' => ' ', <br /> 'DOLLAR' => '$', <br /> 'SEMICOLON' => ';', <br /> 'COLON' => ':', <br /> 'DOUBLECOLON' => '::', <br /> 'AT' => '@', <br /> 'HATCH' => '#', <br /> 'QUOTE' => '"', <br /> 'BACKTICK' => '`', <br /> 'VERT' => '|', <br /> 'DOT' => '.', <br /> 'COMMA' => '","', <br /> 'ANDSYM' => '"&"', <br /> 'QMARK' => '"?"', <br /> 'ID' => 'identifier', <br /> 'OTHER' => 'text', <br /> 'LINEBREAK' => 'newline', <br /> 'FAKEPHPSTARTTAG' => 'Fake PHP start tag', <br /> 'PHPSTARTTAG' => 'PHP start tag', <br /> 'PHPENDTAG' => 'PHP end tag', <br /> 'LITERALSTART' => 'Literal start', <br /> 'LITERALEND' => 'Literal end', <br /> 'LDELSLASH' => 'closing tag', <br /> 'COMMENT' => 'comment', <br /> 'AS' => 'as', <br /> 'TO' => 'to', <br /> )</span> (line <span class="line-number">25</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$state" id="$state"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$state</span> - = <span class="var-default"> 1</span> (line <span class="line-number">22</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$strip" id="$strip"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$strip</span> - = <span class="var-default"> false</span> (line <span class="line-number">23</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$taglineno" id="$taglineno"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$taglineno</span> - (line <span class="line-number">21</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$token" id="$token"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$token</span> - (line <span class="line-number">17</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$value" id="$value"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$value</span> - (line <span class="line-number">18</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">79</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Templatelexer</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$data</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - - </div> -<a name="methodyybegin" id="yybegin"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yybegin</span> (line <span class="line-number">114</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yybegin - </span> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$state</span> </li> - </ul> - - - </div> -<a name="methodyylex" id="yylex"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yylex</span> (line <span class="line-number">98</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex - </span> - () - </div> - - - - </div> -<a name="methodyylex1" id="yylex1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yylex1</span> (line <span class="line-number">121</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex1 - </span> - () - </div> - - - - </div> -<a name="methodyylex2" id="yylex2"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yylex2</span> (line <span class="line-number">388</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex2 - </span> - () - </div> - - - - </div> -<a name="methodyylex3" id="yylex3"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yylex3</span> (line <span class="line-number">888</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex3 - </span> - () - </div> - - - - </div> -<a name="methodyylex4" id="yylex4"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yylex4</span> (line <span class="line-number">1008</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex4 - </span> - () - </div> - - - - </div> -<a name="methodyypopstate" id="yypopstate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yypopstate</span> (line <span class="line-number">109</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yypopstate - </span> - () - </div> - - - - </div> -<a name="methodyypushstate" id="yypushstate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yypushstate</span> (line <span class="line-number">103</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yypushstate - </span> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$state</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_1" id="yy_r1_1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_1</span> (line <span class="line-number">202</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_2" id="yy_r1_2"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_2</span> (line <span class="line-number">207</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_3" id="yy_r1_3"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_3</span> (line <span class="line-number">212</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_3 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_5" id="yy_r1_5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_5</span> (line <span class="line-number">217</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_5 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_6" id="yy_r1_6"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_6</span> (line <span class="line-number">226</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_6 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_7" id="yy_r1_7"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_7</span> (line <span class="line-number">232</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_7 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_8" id="yy_r1_8"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_8</span> (line <span class="line-number">242</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_8 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_9" id="yy_r1_9"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_9</span> (line <span class="line-number">248</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_9 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_10" id="yy_r1_10"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_10</span> (line <span class="line-number">258</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_10 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_11" id="yy_r1_11"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_11</span> (line <span class="line-number">264</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_11 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_12" id="yy_r1_12"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_12</span> (line <span class="line-number">275</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_12 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_14" id="yy_r1_14"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_14</span> (line <span class="line-number">286</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_14 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_15" id="yy_r1_15"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_15</span> (line <span class="line-number">297</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_15 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_16" id="yy_r1_16"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_16</span> (line <span class="line-number">308</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_16 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_17" id="yy_r1_17"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_17</span> (line <span class="line-number">319</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_17 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_18" id="yy_r1_18"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_18</span> (line <span class="line-number">330</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_18 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_19" id="yy_r1_19"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_19</span> (line <span class="line-number">337</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_19 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_20" id="yy_r1_20"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_20</span> (line <span class="line-number">344</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_20 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_21" id="yy_r1_21"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_21</span> (line <span class="line-number">356</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_21 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_22" id="yy_r1_22"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_22</span> (line <span class="line-number">361</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_22 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_23" id="yy_r1_23"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_23</span> (line <span class="line-number">366</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_23 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_24" id="yy_r1_24"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_24</span> (line <span class="line-number">371</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_24 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_27" id="yy_r1_27"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_27</span> (line <span class="line-number">376</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_27 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_28" id="yy_r1_28"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_28</span> (line <span class="line-number">381</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_28 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_1" id="yy_r2_1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_1</span> (line <span class="line-number">512</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_2" id="yy_r2_2"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_2</span> (line <span class="line-number">517</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_3" id="yy_r2_3"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_3</span> (line <span class="line-number">528</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_3 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_5" id="yy_r2_5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_5</span> (line <span class="line-number">539</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_5 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_6" id="yy_r2_6"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_6</span> (line <span class="line-number">550</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_6 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_7" id="yy_r2_7"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_7</span> (line <span class="line-number">561</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_7 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_8" id="yy_r2_8"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_8</span> (line <span class="line-number">572</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_8 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_9" id="yy_r2_9"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_9</span> (line <span class="line-number">578</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_9 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_10" id="yy_r2_10"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_10</span> (line <span class="line-number">585</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_10 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_11" id="yy_r2_11"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_11</span> (line <span class="line-number">592</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_11 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_12" id="yy_r2_12"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_12</span> (line <span class="line-number">598</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_12 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_13" id="yy_r2_13"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_13</span> (line <span class="line-number">603</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_13 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_14" id="yy_r2_14"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_14</span> (line <span class="line-number">608</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_14 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_15" id="yy_r2_15"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_15</span> (line <span class="line-number">613</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_15 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_16" id="yy_r2_16"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_16</span> (line <span class="line-number">618</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_16 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_17" id="yy_r2_17"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_17</span> (line <span class="line-number">623</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_17 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_18" id="yy_r2_18"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_18</span> (line <span class="line-number">628</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_18 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_19" id="yy_r2_19"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_19</span> (line <span class="line-number">633</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_19 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_20" id="yy_r2_20"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_20</span> (line <span class="line-number">638</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_20 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_22" id="yy_r2_22"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_22</span> (line <span class="line-number">643</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_22 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_24" id="yy_r2_24"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_24</span> (line <span class="line-number">648</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_24 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_26" id="yy_r2_26"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_26</span> (line <span class="line-number">653</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_26 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_27" id="yy_r2_27"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_27</span> (line <span class="line-number">658</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_27 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_28" id="yy_r2_28"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_28</span> (line <span class="line-number">663</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_28 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_29" id="yy_r2_29"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_29</span> (line <span class="line-number">668</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_29 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_30" id="yy_r2_30"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_30</span> (line <span class="line-number">673</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_30 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_31" id="yy_r2_31"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_31</span> (line <span class="line-number">678</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_31 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_32" id="yy_r2_32"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_32</span> (line <span class="line-number">683</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_32 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_33" id="yy_r2_33"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_33</span> (line <span class="line-number">688</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_33 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_34" id="yy_r2_34"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_34</span> (line <span class="line-number">693</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_34 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_35" id="yy_r2_35"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_35</span> (line <span class="line-number">698</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_35 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_36" id="yy_r2_36"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_36</span> (line <span class="line-number">703</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_36 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_37" id="yy_r2_37"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_37</span> (line <span class="line-number">708</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_37 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_38" id="yy_r2_38"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_38</span> (line <span class="line-number">713</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_38 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_39" id="yy_r2_39"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_39</span> (line <span class="line-number">718</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_39 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_40" id="yy_r2_40"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_40</span> (line <span class="line-number">723</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_40 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_41" id="yy_r2_41"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_41</span> (line <span class="line-number">728</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_41 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_42" id="yy_r2_42"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_42</span> (line <span class="line-number">733</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_42 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_43" id="yy_r2_43"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_43</span> (line <span class="line-number">738</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_43 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_47" id="yy_r2_47"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_47</span> (line <span class="line-number">743</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_47 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_48" id="yy_r2_48"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_48</span> (line <span class="line-number">748</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_48 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_49" id="yy_r2_49"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_49</span> (line <span class="line-number">753</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_49 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_50" id="yy_r2_50"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_50</span> (line <span class="line-number">758</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_50 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_51" id="yy_r2_51"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_51</span> (line <span class="line-number">763</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_51 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_52" id="yy_r2_52"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_52</span> (line <span class="line-number">768</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_52 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_53" id="yy_r2_53"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_53</span> (line <span class="line-number">773</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_53 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_54" id="yy_r2_54"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_54</span> (line <span class="line-number">778</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_54 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_55" id="yy_r2_55"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_55</span> (line <span class="line-number">783</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_55 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_57" id="yy_r2_57"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_57</span> (line <span class="line-number">788</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_57 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_59" id="yy_r2_59"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_59</span> (line <span class="line-number">793</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_59 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_60" id="yy_r2_60"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_60</span> (line <span class="line-number">798</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_60 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_61" id="yy_r2_61"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_61</span> (line <span class="line-number">803</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_61 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_62" id="yy_r2_62"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_62</span> (line <span class="line-number">808</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_62 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_63" id="yy_r2_63"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_63</span> (line <span class="line-number">813</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_63 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_64" id="yy_r2_64"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_64</span> (line <span class="line-number">818</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_64 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_65" id="yy_r2_65"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_65</span> (line <span class="line-number">823</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_65 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_66" id="yy_r2_66"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_66</span> (line <span class="line-number">829</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_66 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_67" id="yy_r2_67"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_67</span> (line <span class="line-number">835</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_67 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_68" id="yy_r2_68"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_68</span> (line <span class="line-number">840</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_68 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_69" id="yy_r2_69"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_69</span> (line <span class="line-number">845</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_69 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_70" id="yy_r2_70"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_70</span> (line <span class="line-number">850</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_70 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_71" id="yy_r2_71"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_71</span> (line <span class="line-number">855</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_71 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_72" id="yy_r2_72"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_72</span> (line <span class="line-number">860</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_72 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_73" id="yy_r2_73"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_73</span> (line <span class="line-number">865</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_73 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_74" id="yy_r2_74"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_74</span> (line <span class="line-number">870</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_74 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_75" id="yy_r2_75"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_75</span> (line <span class="line-number">875</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_75 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_76" id="yy_r2_76"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_76</span> (line <span class="line-number">880</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_76 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_1" id="yy_r3_1"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_1</span> (line <span class="line-number">954</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_2" id="yy_r3_2"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_2</span> (line <span class="line-number">960</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_3" id="yy_r3_3"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_3</span> (line <span class="line-number">966</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_3 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_4" id="yy_r3_4"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_4</span> (line <span class="line-number">971</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_4 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_5" id="yy_r3_5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_5</span> (line <span class="line-number">981</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_5 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_6" id="yy_r3_6"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_6</span> (line <span class="line-number">986</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_6 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_7" id="yy_r3_7"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_7</span> (line <span class="line-number">991</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_7 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_8" id="yy_r3_8"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_8</span> (line <span class="line-number">996</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_8 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_11" id="yy_r3_11"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_11</span> (line <span class="line-number">1001</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_11 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_1" id="yy_r4_1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_1</span> (line <span class="line-number">1079</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_2" id="yy_r4_2"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_2</span> (line <span class="line-number">1090</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_4" id="yy_r4_4"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_4</span> (line <span class="line-number">1101</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_4 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_5" id="yy_r4_5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_5</span> (line <span class="line-number">1112</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_5 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_6" id="yy_r4_6"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_6</span> (line <span class="line-number">1123</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_6 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_7" id="yy_r4_7"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_7</span> (line <span class="line-number">1134</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_7 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_8" id="yy_r4_8"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_8</span> (line <span class="line-number">1141</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_8 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_9" id="yy_r4_9"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_9</span> (line <span class="line-number">1148</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_9 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_10" id="yy_r4_10"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_10</span> (line <span class="line-number">1154</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_10 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_11" id="yy_r4_11"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_11</span> (line <span class="line-number">1162</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_11 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_12" id="yy_r4_12"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_12</span> (line <span class="line-number">1167</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_12 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_13" id="yy_r4_13"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_13</span> (line <span class="line-number">1172</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_13 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_17" id="yy_r4_17"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_17</span> (line <span class="line-number">1177</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_17 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_18" id="yy_r4_18"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_18</span> (line <span class="line-number">1182</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_18 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="constDOUBLEQUOTEDSTRING" id="DOUBLEQUOTEDSTRING"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">DOUBLEQUOTEDSTRING</span> - = <span class="const-default"> 4</span> - (line <span class="line-number">1078</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constLITERAL" id="LITERAL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">LITERAL</span> - = <span class="const-default"> 3</span> - (line <span class="line-number">953</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constSMARTY" id="SMARTY"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SMARTY</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">511</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTEXT" id="TEXT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TEXT</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">201</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:03 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/Smarty_Internal_Templateparser.html
Deleted
@@ -1,6832 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Templateparser</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Templateparser</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_templateparser.php.html">/libs/sysplugins/smarty_internal_templateparser.php</a> (line <span class="field">87</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - <a name="sec-const-summary"></a> - <div class="info-box"> - <div class="info-box-title">Class Constant Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>) - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="const-summary"> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#Err1" title="details" class="const-name">Err1</a> = <span class="var-type"> "Security error: Call to private object member not allowed"</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#Err2" title="details" class="const-name">Err2</a> = <span class="var-type"> "Security error: Call to dynamic object member not allowed"</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#Err3" title="details" class="const-name">Err3</a> = <span class="var-type"> "PHP in template not allowed. Use SmartyBC to enable it"</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ANDSYM" title="details" class="const-name">TP_ANDSYM</a> = <span class="var-type"> 40</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_APTR" title="details" class="const-name">TP_APTR</a> = <span class="var-type"> 30</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_AS" title="details" class="const-name">TP_AS</a> = <span class="var-type"> 29</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ASPENDTAG" title="details" class="const-name">TP_ASPENDTAG</a> = <span class="var-type"> 7</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ASPSTARTTAG" title="details" class="const-name">TP_ASPSTARTTAG</a> = <span class="var-type"> 6</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_AT" title="details" class="const-name">TP_AT</a> = <span class="var-type"> 60</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_BACKTICK" title="details" class="const-name">TP_BACKTICK</a> = <span class="var-type"> 77</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_CLOSEB" title="details" class="const-name">TP_CLOSEB</a> = <span class="var-type"> 63</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_CLOSEP" title="details" class="const-name">TP_CLOSEP</a> = <span class="var-type"> 37</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_COLON" title="details" class="const-name">TP_COLON</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_COMMA" title="details" class="const-name">TP_COMMA</a> = <span class="var-type"> 35</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_COMMENT" title="details" class="const-name">TP_COMMENT</a> = <span class="var-type"> 3</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_DOLLAR" title="details" class="const-name">TP_DOLLAR</a> = <span class="var-type"> 17</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_DOLLARID" title="details" class="const-name">TP_DOLLARID</a> = <span class="var-type"> 78</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_DOT" title="details" class="const-name">TP_DOT</a> = <span class="var-type"> 57</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_DOUBLECOLON" title="details" class="const-name">TP_DOUBLECOLON</a> = <span class="var-type"> 59</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_EQUAL" title="details" class="const-name">TP_EQUAL</a> = <span class="var-type"> 19</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_EQUALS" title="details" class="const-name">TP_EQUALS</a> = <span class="var-type"> 64</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_FAKEPHPSTARTTAG" title="details" class="const-name">TP_FAKEPHPSTARTTAG</a> = <span class="var-type"> 8</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_GREATEREQUAL" title="details" class="const-name">TP_GREATEREQUAL</a> = <span class="var-type"> 68</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_GREATERTHAN" title="details" class="const-name">TP_GREATERTHAN</a> = <span class="var-type"> 66</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_HATCH" title="details" class="const-name">TP_HATCH</a> = <span class="var-type"> 61</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_HEX" title="details" class="const-name">TP_HEX</a> = <span class="var-type"> 56</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ID" title="details" class="const-name">TP_ID</a> = <span class="var-type"> 18</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_IDENTITY" title="details" class="const-name">TP_IDENTITY</a> = <span class="var-type"> 70</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_INCDEC" title="details" class="const-name">TP_INCDEC</a> = <span class="var-type"> 24</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_INSTANCEOF" title="details" class="const-name">TP_INSTANCEOF</a> = <span class="var-type"> 52</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_INTEGER" title="details" class="const-name">TP_INTEGER</a> = <span class="var-type"> 34</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISDIVBY" title="details" class="const-name">TP_ISDIVBY</a> = <span class="var-type"> 42</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISEVEN" title="details" class="const-name">TP_ISEVEN</a> = <span class="var-type"> 44</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISEVENBY" title="details" class="const-name">TP_ISEVENBY</a> = <span class="var-type"> 46</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISIN" title="details" class="const-name">TP_ISIN</a> = <span class="var-type"> 41</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISNOTDIVBY" title="details" class="const-name">TP_ISNOTDIVBY</a> = <span class="var-type"> 43</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISNOTEVEN" title="details" class="const-name">TP_ISNOTEVEN</a> = <span class="var-type"> 45</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISNOTEVENBY" title="details" class="const-name">TP_ISNOTEVENBY</a> = <span class="var-type"> 47</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISNOTODD" title="details" class="const-name">TP_ISNOTODD</a> = <span class="var-type"> 49</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISNOTODDBY" title="details" class="const-name">TP_ISNOTODDBY</a> = <span class="var-type"> 51</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISODD" title="details" class="const-name">TP_ISODD</a> = <span class="var-type"> 48</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_ISODDBY" title="details" class="const-name">TP_ISODDBY</a> = <span class="var-type"> 50</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LAND" title="details" class="const-name">TP_LAND</a> = <span class="var-type"> 73</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LDEL" title="details" class="const-name">TP_LDEL</a> = <span class="var-type"> 15</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LDELFOR" title="details" class="const-name">TP_LDELFOR</a> = <span class="var-type"> 22</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LDELFOREACH" title="details" class="const-name">TP_LDELFOREACH</a> = <span class="var-type"> 27</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LDELIF" title="details" class="const-name">TP_LDELIF</a> = <span class="var-type"> 21</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LDELSETFILTER" title="details" class="const-name">TP_LDELSETFILTER</a> = <span class="var-type"> 31</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LDELSLASH" title="details" class="const-name">TP_LDELSLASH</a> = <span class="var-type"> 33</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LESSEQUAL" title="details" class="const-name">TP_LESSEQUAL</a> = <span class="var-type"> 69</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LESSTHAN" title="details" class="const-name">TP_LESSTHAN</a> = <span class="var-type"> 67</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LINEBREAK" title="details" class="const-name">TP_LINEBREAK</a> = <span class="var-type"> 11</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LITERAL" title="details" class="const-name">TP_LITERAL</a> = <span class="var-type"> 14</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LITERALEND" title="details" class="const-name">TP_LITERALEND</a> = <span class="var-type"> 13</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LITERALSTART" title="details" class="const-name">TP_LITERALSTART</a> = <span class="var-type"> 12</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LOR" title="details" class="const-name">TP_LOR</a> = <span class="var-type"> 74</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_LXOR" title="details" class="const-name">TP_LXOR</a> = <span class="var-type"> 75</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_MATH" title="details" class="const-name">TP_MATH</a> = <span class="var-type"> 38</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_MOD" title="details" class="const-name">TP_MOD</a> = <span class="var-type"> 72</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_NONEIDENTITY" title="details" class="const-name">TP_NONEIDENTITY</a> = <span class="var-type"> 71</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_NOT" title="details" class="const-name">TP_NOT</a> = <span class="var-type"> 54</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_NOTEQUALS" title="details" class="const-name">TP_NOTEQUALS</a> = <span class="var-type"> 65</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_OPENB" title="details" class="const-name">TP_OPENB</a> = <span class="var-type"> 62</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_OPENP" title="details" class="const-name">TP_OPENP</a> = <span class="var-type"> 36</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_OTHER" title="details" class="const-name">TP_OTHER</a> = <span class="var-type"> 10</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_PHPENDTAG" title="details" class="const-name">TP_PHPENDTAG</a> = <span class="var-type"> 5</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_PHPSTARTTAG" title="details" class="const-name">TP_PHPSTARTTAG</a> = <span class="var-type"> 4</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_PTR" title="details" class="const-name">TP_PTR</a> = <span class="var-type"> 20</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_QMARK" title="details" class="const-name">TP_QMARK</a> = <span class="var-type"> 53</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_QUOTE" title="details" class="const-name">TP_QUOTE</a> = <span class="var-type"> 76</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_RDEL" title="details" class="const-name">TP_RDEL</a> = <span class="var-type"> 16</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_SEMICOLON" title="details" class="const-name">TP_SEMICOLON</a> = <span class="var-type"> 23</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_SINGLEQUOTESTRING" title="details" class="const-name">TP_SINGLEQUOTESTRING</a> = <span class="var-type"> 58</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_SMARTYBLOCKCHILD" title="details" class="const-name">TP_SMARTYBLOCKCHILD</a> = <span class="var-type"> 32</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_SPACE" title="details" class="const-name">TP_SPACE</a> = <span class="var-type"> 28</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_STEP" title="details" class="const-name">TP_STEP</a> = <span class="var-type"> 26</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_TO" title="details" class="const-name">TP_TO</a> = <span class="var-type"> 25</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_TYPECAST" title="details" class="const-name">TP_TYPECAST</a> = <span class="var-type"> 55</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_UNIMATH" title="details" class="const-name">TP_UNIMATH</a> = <span class="var-type"> 39</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_VERT" title="details" class="const-name">TP_VERT</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#TP_XMLTAG" title="details" class="const-name">TP_XMLTAG</a> = <span class="var-type"> 9</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYERRORSYMBOL" title="details" class="const-name">YYERRORSYMBOL</a> = <span class="var-type"> 79</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYERRSYMDT" title="details" class="const-name">YYERRSYMDT</a> = <span class="var-type"> 'yy0'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYFALLBACK" title="details" class="const-name">YYFALLBACK</a> = <span class="var-type"> 0</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYNOCODE" title="details" class="const-name">YYNOCODE</a> = <span class="var-type"> 122</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYNRULE" title="details" class="const-name">YYNRULE</a> = <span class="var-type"> 201</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYNSTATE" title="details" class="const-name">YYNSTATE</a> = <span class="var-type"> 387</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YYSTACKDEPTH" title="details" class="const-name">YYSTACKDEPTH</a> = <span class="var-type"> 100</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_ACCEPT_ACTION" title="details" class="const-name">YY_ACCEPT_ACTION</a> = <span class="var-type"> 589</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_ERROR_ACTION" title="details" class="const-name">YY_ERROR_ACTION</a> = <span class="var-type"> 588</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_NO_ACTION" title="details" class="const-name">YY_NO_ACTION</a> = <span class="var-type"> 590</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_REDUCE_MAX" title="details" class="const-name">YY_REDUCE_MAX</a> = <span class="var-type"> 204</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_REDUCE_USE_DFLT" title="details" class="const-name">YY_REDUCE_USE_DFLT</a> = <span class="var-type"> -86</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_SHIFT_MAX" title="details" class="const-name">YY_SHIFT_MAX</a> = <span class="var-type"> 252</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_SHIFT_USE_DFLT" title="details" class="const-name">YY_SHIFT_USE_DFLT</a> = <span class="var-type"> -5</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#YY_SZ_ACTTAB" title="details" class="const-name">YY_SZ_ACTTAB</a> = <span class="var-type"> 2393</span> - - </div> - </div> - </div> - </div> - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyExpectedTokens" title="details" class="var-name">$yyExpectedTokens</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyFallback" title="details" class="var-name">$yyFallback</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyReduceMap" title="details" class="var-name">$yyReduceMap</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyRuleInfo" title="details" class="var-name">$yyRuleInfo</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyRuleName" title="details" class="var-name">$yyRuleName</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyTraceFILE" title="details" class="var-name">$yyTraceFILE</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yyTracePrompt" title="details" class="var-name">$yyTracePrompt</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_action" title="details" class="var-name">$yy_action</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_default" title="details" class="var-name">$yy_default</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_lookahead" title="details" class="var-name">$yy_lookahead</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_reduce_ofst" title="details" class="var-name">$yy_reduce_ofst</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$yy_shift_ofst" title="details" class="var-name">$yy_shift_ofst</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$retvalue" title="details" class="var-name">$retvalue</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$successful" title="details" class="var-name">$successful</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yyerrcnt" title="details" class="var-name">$yyerrcnt</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yyidx" title="details" class="var-name">$yyidx</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yystack" title="details" class="var-name">$yystack</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$yyTokenName" title="details" class="var-name">$yyTokenName</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#escape_end_tag" title="details" class="method-name">escape_end_tag</a> - (<span class="var-type"></span> <span class="var-name">$tag_text</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#escape_start_tag" title="details" class="method-name">escape_start_tag</a> - (<span class="var-type"></span> <span class="var-name">$tag_text</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#PrintTrace" title="details" class="method-name">PrintTrace</a> - () - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#Trace" title="details" class="method-name">Trace</a> - (<span class="var-type"></span> <span class="var-name">$TraceFILE</span>, <span class="var-type"></span> <span class="var-name">$zTracePrompt</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#yy_destructor" title="details" class="method-name">yy_destructor</a> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yypminor</span>) - </div> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#compileVariable" title="details" class="method-name">compileVariable</a> - (<span class="var-type"></span> <span class="var-name">$variable</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#doParse" title="details" class="method-name">doParse</a> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yytokenvalue</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#tokenName" title="details" class="method-name">tokenName</a> - (<span class="var-type"></span> <span class="var-name">$tokenType</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_accept" title="details" class="method-name">yy_accept</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_find_reduce_action" title="details" class="method-name">yy_find_reduce_action</a> - (<span class="var-type"></span> <span class="var-name">$stateno</span>, <span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_find_shift_action" title="details" class="method-name">yy_find_shift_action</a> - (<span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_get_expected_tokens" title="details" class="method-name">yy_get_expected_tokens</a> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_is_expected_token" title="details" class="method-name">yy_is_expected_token</a> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Templateparser</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"></span> <span class="var-name">$lex</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__destruct" title="details" class="method-name">__destruct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_parse_failed" title="details" class="method-name">yy_parse_failed</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_pop_parser_stack" title="details" class="method-name">yy_pop_parser_stack</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r0" title="details" class="method-name">yy_r0</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1" title="details" class="method-name">yy_r1</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4" title="details" class="method-name">yy_r4</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r5" title="details" class="method-name">yy_r5</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r6" title="details" class="method-name">yy_r6</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r7" title="details" class="method-name">yy_r7</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r8" title="details" class="method-name">yy_r8</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r9" title="details" class="method-name">yy_r9</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r10" title="details" class="method-name">yy_r10</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r11" title="details" class="method-name">yy_r11</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r12" title="details" class="method-name">yy_r12</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r13" title="details" class="method-name">yy_r13</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r14" title="details" class="method-name">yy_r14</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r15" title="details" class="method-name">yy_r15</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r16" title="details" class="method-name">yy_r16</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r17" title="details" class="method-name">yy_r17</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r19" title="details" class="method-name">yy_r19</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r21" title="details" class="method-name">yy_r21</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r23" title="details" class="method-name">yy_r23</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r24" title="details" class="method-name">yy_r24</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r25" title="details" class="method-name">yy_r25</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r26" title="details" class="method-name">yy_r26</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r27" title="details" class="method-name">yy_r27</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r28" title="details" class="method-name">yy_r28</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r29" title="details" class="method-name">yy_r29</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r31" title="details" class="method-name">yy_r31</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r33" title="details" class="method-name">yy_r33</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r34" title="details" class="method-name">yy_r34</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r35" title="details" class="method-name">yy_r35</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r36" title="details" class="method-name">yy_r36</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r37" title="details" class="method-name">yy_r37</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r38" title="details" class="method-name">yy_r38</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r39" title="details" class="method-name">yy_r39</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r40" title="details" class="method-name">yy_r40</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r41" title="details" class="method-name">yy_r41</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r42" title="details" class="method-name">yy_r42</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r44" title="details" class="method-name">yy_r44</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r45" title="details" class="method-name">yy_r45</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r47" title="details" class="method-name">yy_r47</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r48" title="details" class="method-name">yy_r48</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r49" title="details" class="method-name">yy_r49</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r50" title="details" class="method-name">yy_r50</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r51" title="details" class="method-name">yy_r51</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r52" title="details" class="method-name">yy_r52</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r53" title="details" class="method-name">yy_r53</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r54" title="details" class="method-name">yy_r54</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r55" title="details" class="method-name">yy_r55</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r56" title="details" class="method-name">yy_r56</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r57" title="details" class="method-name">yy_r57</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r58" title="details" class="method-name">yy_r58</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r59" title="details" class="method-name">yy_r59</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r60" title="details" class="method-name">yy_r60</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r61" title="details" class="method-name">yy_r61</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r62" title="details" class="method-name">yy_r62</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r63" title="details" class="method-name">yy_r63</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r64" title="details" class="method-name">yy_r64</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r65" title="details" class="method-name">yy_r65</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r67" title="details" class="method-name">yy_r67</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r72" title="details" class="method-name">yy_r72</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r73" title="details" class="method-name">yy_r73</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r78" title="details" class="method-name">yy_r78</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r79" title="details" class="method-name">yy_r79</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r83" title="details" class="method-name">yy_r83</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r84" title="details" class="method-name">yy_r84</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r85" title="details" class="method-name">yy_r85</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r86" title="details" class="method-name">yy_r86</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r88" title="details" class="method-name">yy_r88</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r89" title="details" class="method-name">yy_r89</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r90" title="details" class="method-name">yy_r90</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r91" title="details" class="method-name">yy_r91</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r92" title="details" class="method-name">yy_r92</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r93" title="details" class="method-name">yy_r93</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r99" title="details" class="method-name">yy_r99</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r100" title="details" class="method-name">yy_r100</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r101" title="details" class="method-name">yy_r101</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r104" title="details" class="method-name">yy_r104</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r109" title="details" class="method-name">yy_r109</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r110" title="details" class="method-name">yy_r110</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r111" title="details" class="method-name">yy_r111</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r112" title="details" class="method-name">yy_r112</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r114" title="details" class="method-name">yy_r114</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r117" title="details" class="method-name">yy_r117</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r118" title="details" class="method-name">yy_r118</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r119" title="details" class="method-name">yy_r119</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r121" title="details" class="method-name">yy_r121</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r122" title="details" class="method-name">yy_r122</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r124" title="details" class="method-name">yy_r124</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r125" title="details" class="method-name">yy_r125</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r126" title="details" class="method-name">yy_r126</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r128" title="details" class="method-name">yy_r128</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r129" title="details" class="method-name">yy_r129</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r130" title="details" class="method-name">yy_r130</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r131" title="details" class="method-name">yy_r131</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r132" title="details" class="method-name">yy_r132</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r133" title="details" class="method-name">yy_r133</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r134" title="details" class="method-name">yy_r134</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r135" title="details" class="method-name">yy_r135</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r137" title="details" class="method-name">yy_r137</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r139" title="details" class="method-name">yy_r139</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r140" title="details" class="method-name">yy_r140</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r141" title="details" class="method-name">yy_r141</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r142" title="details" class="method-name">yy_r142</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r143" title="details" class="method-name">yy_r143</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r144" title="details" class="method-name">yy_r144</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r145" title="details" class="method-name">yy_r145</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r146" title="details" class="method-name">yy_r146</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r147" title="details" class="method-name">yy_r147</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r148" title="details" class="method-name">yy_r148</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r149" title="details" class="method-name">yy_r149</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r150" title="details" class="method-name">yy_r150</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r151" title="details" class="method-name">yy_r151</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r152" title="details" class="method-name">yy_r152</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r153" title="details" class="method-name">yy_r153</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r156" title="details" class="method-name">yy_r156</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r157" title="details" class="method-name">yy_r157</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r159" title="details" class="method-name">yy_r159</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r160" title="details" class="method-name">yy_r160</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r167" title="details" class="method-name">yy_r167</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r168" title="details" class="method-name">yy_r168</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r169" title="details" class="method-name">yy_r169</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r170" title="details" class="method-name">yy_r170</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r171" title="details" class="method-name">yy_r171</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r172" title="details" class="method-name">yy_r172</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r173" title="details" class="method-name">yy_r173</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r174" title="details" class="method-name">yy_r174</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r175" title="details" class="method-name">yy_r175</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r176" title="details" class="method-name">yy_r176</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r177" title="details" class="method-name">yy_r177</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r178" title="details" class="method-name">yy_r178</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r179" title="details" class="method-name">yy_r179</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r180" title="details" class="method-name">yy_r180</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r181" title="details" class="method-name">yy_r181</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r183" title="details" class="method-name">yy_r183</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r185" title="details" class="method-name">yy_r185</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r186" title="details" class="method-name">yy_r186</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r188" title="details" class="method-name">yy_r188</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r189" title="details" class="method-name">yy_r189</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r190" title="details" class="method-name">yy_r190</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r191" title="details" class="method-name">yy_r191</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r192" title="details" class="method-name">yy_r192</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r194" title="details" class="method-name">yy_r194</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r196" title="details" class="method-name">yy_r196</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r197" title="details" class="method-name">yy_r197</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r198" title="details" class="method-name">yy_r198</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_reduce" title="details" class="method-name">yy_reduce</a> - (<span class="var-type"></span> <span class="var-name">$yyruleno</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_shift" title="details" class="method-name">yy_shift</a> - (<span class="var-type"></span> <span class="var-name">$yyNewState</span>, <span class="var-type"></span> <span class="var-name">$yyMajor</span>, <span class="var-type"></span> <span class="var-name">$yypMinor</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_syntax_error" title="details" class="method-name">yy_syntax_error</a> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$TOKEN</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$yyExpectedTokens" id="$yyExpectedTokens"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyExpectedTokens</span> - = <span class="var-default">array(<br /> /* 0 */ array(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 21, 22, 27, 31, 32, 33, ),/* 1 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 2 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 3 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 4 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 5 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 6 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 7 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 8 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,63,76,),/* 9 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 10 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 11 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 12 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 13 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 14 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 15 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 16 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 17 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 18 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 19 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 20 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 21 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 22 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 23 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 24 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 25 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 26 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 27 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 28 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 29 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 30 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 31 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 32 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 33 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 34 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 35 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 36 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 37 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 38 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 39 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 40 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 41 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 42 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 43 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 44 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 45 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,62,76,),/* 46 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 47 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 48 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 49 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 50 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 51 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 52 */array(15,17,18,21,22,27,31,32,33,34,36,39,54,55,56,57,58,61,76,),/* 53 */array(1,16,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 54 */array(1,16,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 55 */array(1,16,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 56 */array(1,26,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 57 */array(1,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 58 */array(1,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 59 */array(1,28,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 60 */array(1,16,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 61 */array(1,16,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 62 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,63,64,65,66,67,68,69,70,71,72,73,74,75,),/* 63 */array(1,16,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 64 */array(1,29,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 65 */array(1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 66 */array(1,2,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 67 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,77,),/* 68 */array(1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 69 */array(1,16,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 70 */array(1,23,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 71 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 72 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 73 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 74 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 75 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 76 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 77 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 78 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 79 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 80 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 81 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 82 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 83 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 84 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 85 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 86 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 87 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 88 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 89 */array(1,38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 90 */array(38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 91 */array(38,39,40,41,42,43,44,45,46,47,48,49,50,51,64,65,66,67,68,69,70,71,72,73,74,75,),/* 92 */array(1,16,20,28,36,59,),/* 93 */array(1,16,28,52,),/* 94 */array(1,28,),/* 95 */array(3,4,5,6,7,8,9,10,11,12,15,21,22,27,31,32,33,),/* 96 */array(10,15,21,22,27,31,32,33,76,77,78,),/* 97 */array(15,18,28,30,),/* 98 */array(15,18,28,30,),/* 99 */array(20,57,62,),/* 100 */array(1,2,16,),/* 101 */array(1,16,28,),/* 102 */array(1,16,28,),/* 103 */array(15,18,28,),/* 104 */array(15,18,28,),/* 105 */array(17,18,61,),/* 106 */array(17,36,),/* 107 */array(1,28,),/* 108 */array(1,28,),/* 109 */array(10,15,21,22,27,31,32,33,76,77,78,),/* 110 */array(4,5,6,7,8,12,13,14,),/* 111 */array(1,16,28,29,52,),/* 112 */array(15,18,19,24,),/* 113 */array(15,18,19,60,),/* 114 */array(1,16,28,52,),/* 115 */array(1,16,28,52,),/* 116 */array(15,18,60,),/* 117 */array(1,30,52,),/* 118 */array(15,18,19,),/* 119 */array(1,16,20,),/* 120 */array(19,20,59,),/* 121 */array(1,16,52,),/* 122 */array(19,20,59,),/* 123 */array(15,18,),/* 124 */array(17,36,),/* 125 */array(15,18,),/* 126 */array(15,18,),/* 127 */array(15,18,),/* 128 */array(15,18,),/* 129 */array(17,18,),/* 130 */array(17,36,),/* 131 */array(15,18,),/* 132 */array(1,16,),/* 133 */array(15,18,),/* 134 */array(15,18,),/* 135 */array(20,59,),/* 136 */array(15,18,),/* 137 */array(15,18,),/* 138 */array(15,18,),/* 139 */array(16,28,),/* 140 */array(15,18,),/* 141 */array(15,18,),/* 142 */array(1,52,),/* 143 */array(15,18,),/* 144 */array(17,18,),/* 145 */array(1,),/* 146 */array(28,),/* 147 */array(1,),/* 148 */array(20,),/* 149 */array(1,),/* 150 */array(28,),/* 151 */array(1,),/* 152 */array(1,),/* 153 */array(1,),/* 154 */array(1,),/* 155 */array(20,),/* 156 */array(1,),/* 157 */array(),/* 158 */array(15,17,18,),/* 159 */array(15,18,60,),/* 160 */array(16,28,),/* 161 */array(16,28,),/* 162 */array(16,28,),/* 163 */array(16,28,),/* 164 */array(57,62,),/* 165 */array(15,36,),/* 166 */array(57,62,),/* 167 */array(1,16,),/* 168 */array(16,28,),/* 169 */array(57,62,),/* 170 */array(16,28,),/* 171 */array(16,28,),/* 172 */array(16,28,),/* 173 */array(16,28,),/* 174 */array(57,62,),/* 175 */array(1,16,),/* 176 */array(16,28,),/* 177 */array(16,28,),/* 178 */array(57,62,),/* 179 */array(16,28,),/* 180 */array(1,16,),/* 181 */array(16,28,),/* 182 */array(16,28,),/* 183 */array(16,28,),/* 184 */array(16,28,),/* 185 */array(16,28,),/* 186 */array(16,28,),/* 187 */array(16,28,),/* 188 */array(16,28,),/* 189 */array(13,),/* 190 */array(28,),/* 191 */array(28,),/* 192 */array(20,),/* 193 */array(20,),/* 194 */array(1,),/* 195 */array(20,),/* 196 */array(1,),/* 197 */array(2,),/* 198 */array(2,),/* 199 */array(36,),/* 200 */array(),/* 201 */array(),/* 202 */array(),/* 203 */array(),/* 204 */array(),/* 205 */array(16,23,25,26,28,29,35,36,37,52,59,63,77,),/* 206 */array(16,19,28,36,59,),/* 207 */array(36,57,59,63,),/* 208 */array(15,17,18,34,),/* 209 */array(16,28,36,59,),/* 210 */array(30,36,59,),/* 211 */array(18,60,),/* 212 */array(2,19,),/* 213 */array(36,59,),/* 214 */array(36,59,),/* 215 */array(16,24,),/* 216 */array(35,37,),/* 217 */array(24,77,),/* 218 */array(35,63,),/* 219 */array(23,35,),/* 220 */array(19,57,),/* 221 */array(35,37,),/* 222 */array(35,37,),/* 223 */array(18,),/* 224 */array(2,),/* 225 */array(24,),/* 226 */array(17,),/* 227 */array(18,),/* 228 */array(18,),/* 229 */array(36,),/* 230 */array(57,),/* 231 */array(18,),/* 232 */array(36,),/* 233 */array(18,),/* 234 */array(17,),/* 235 */array(18,),/* 236 */array(34,),/* 237 */array(34,),/* 238 */array(18,),/* 239 */array(17,),/* 240 */array(61,),/* 241 */array(18,),/* 242 */array(37,),/* 243 */array(17,),/* 244 */array(19,),/* 245 */array(63,),/* 246 */array(53,),/* 247 */array(2,),/* 248 */array(17,),/* 249 */array(25,),/* 250 */array(18,),/* 251 */array(18,),/* 252 */array(61,),/* 253 */array(),/* 254 */array(),/* 255 */array(),/* 256 */array(),/* 257 */array(),/* 258 */array(),/* 259 */array(),/* 260 */array(),/* 261 */array(),/* 262 */array(),/* 263 */array(),/* 264 */array(),/* 265 */array(),/* 266 */array(),/* 267 */array(),/* 268 */array(),/* 269 */array(),/* 270 */array(),/* 271 */array(),/* 272 */array(),/* 273 */array(),/* 274 */array(),/* 275 */array(),/* 276 */array(),/* 277 */array(),/* 278 */array(),/* 279 */array(),/* 280 */array(),/* 281 */array(),/* 282 */array(),/* 283 */array(),/* 284 */array(),/* 285 */array(),/* 286 */array(),/* 287 */array(),/* 288 */array(),/* 289 */array(),/* 290 */array(),/* 291 */array(),/* 292 */array(),/* 293 */array(),/* 294 */array(),/* 295 */array(),/* 296 */array(),/* 297 */array(),/* 298 */array(),/* 299 */array(),/* 300 */array(),/* 301 */array(),/* 302 */array(),/* 303 */array(),/* 304 */array(),/* 305 */array(),/* 306 */array(),/* 307 */array(),/* 308 */array(),/* 309 */array(),/* 310 */array(),/* 311 */array(),/* 312 */array(),/* 313 */array(),/* 314 */array(),/* 315 */array(),/* 316 */array(),/* 317 */array(),/* 318 */array(),/* 319 */array(),/* 320 */array(),/* 321 */array(),/* 322 */array(),/* 323 */array(),/* 324 */array(),/* 325 */array(),/* 326 */array(),/* 327 */array(),/* 328 */array(),/* 329 */array(),/* 330 */array(),/* 331 */array(),/* 332 */array(),/* 333 */array(),/* 334 */array(),/* 335 */array(),/* 336 */array(),/* 337 */array(),/* 338 */array(),/* 339 */array(),/* 340 */array(),/* 341 */array(),/* 342 */array(),/* 343 */array(),/* 344 */array(),/* 345 */array(),/* 346 */array(),/* 347 */array(),/* 348 */array(),/* 349 */array(),/* 350 */array(),/* 351 */array(),/* 352 */array(),/* 353 */array(),/* 354 */array(),/* 355 */array(),/* 356 */array(),/* 357 */array(),/* 358 */array(),/* 359 */array(),/* 360 */array(),/* 361 */array(),/* 362 */array(),/* 363 */array(),/* 364 */array(),/* 365 */array(),/* 366 */array(),/* 367 */array(),/* 368 */array(),/* 369 */array(),/* 370 */array(),/* 371 */array(),/* 372 */array(),/* 373 */array(),/* 374 */array(),/* 375 */array(),/* 376 */array(),/* 377 */array(),/* 378 */array(),/* 379 */array(),/* 380 */array(),/* 381 */array(),/* 382 */array(),/* 383 */array(),/* 384 */array(),/* 385 */array(),/* 386 */array(),)</span> (line <span class="line-number">762</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyFallback" id="$yyFallback"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyFallback</span> - = <span class="var-default">array(<br /> )</span> (line <span class="line-number">1199</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyReduceMap" id="$yyReduceMap"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyReduceMap</span> - = <span class="var-default">array(<br /> 0 => 0,<br /> 1 => 1,<br /> 2 => 1,<br /> 4 => 4,<br /> 5 => 5,<br /> 6 => 6,<br /> 7 => 7,<br /> 8 => 8,<br /> 9 => 9,<br /> 10 => 10,<br /> 11 => 11,<br /> 12 => 12,<br /> 13 => 13,<br /> 14 => 14,<br /> 15 => 15,<br /> 18 => 15,<br /> 200 => 15,<br /> 16 => 16,<br /> 75 => 16,<br /> 17 => 17,<br /> 103 => 17,<br /> 105 => 17,<br /> 106 => 17,<br /> 127 => 17,<br /> 165 => 17,<br /> 19 => 19,<br /> 20 => 19,<br /> 46 => 19,<br /> 68 => 19,<br /> 69 => 19,<br /> 76 => 19,<br /> 77 => 19,<br /> 82 => 19,<br /> 102 => 19,<br /> 107 => 19,<br /> 108 => 19,<br /> 113 => 19,<br /> 115 => 19,<br /> 116 => 19,<br /> 123 => 19,<br /> 138 => 19,<br /> 164 => 19,<br /> 166 => 19,<br /> 182 => 19,<br /> 187 => 19,<br /> 199 => 19,<br /> 21 => 21,<br /> 22 => 21,<br /> 23 => 23,<br /> 24 => 24,<br /> 25 => 25,<br /> 26 => 26,<br /> 27 => 27,<br /> 28 => 28,<br /> 30 => 28,<br /> 29 => 29,<br /> 31 => 31,<br /> 32 => 31,<br /> 33 => 33,<br /> 34 => 34,<br /> 35 => 35,<br /> 36 => 36,<br /> 37 => 37,<br /> 38 => 38,<br /> 39 => 39,<br /> 40 => 40,<br /> 41 => 41,<br /> 43 => 41,<br /> 42 => 42,<br /> 44 => 44,<br /> 45 => 45,<br /> 47 => 47,<br /> 48 => 48,<br /> 49 => 49,<br /> 50 => 50,<br /> 51 => 51,<br /> 52 => 52,<br /> 53 => 53,<br /> 54 => 54,<br /> 55 => 55,<br /> 56 => 56,<br /> 57 => 57,<br /> 58 => 58,<br /> 59 => 59,<br /> 60 => 60,<br /> 61 => 61,<br /> 62 => 62,<br /> 71 => 62,<br /> 154 => 62,<br /> 158 => 62,<br /> 162 => 62,<br /> 163 => 62,<br /> 63 => 63,<br /> 155 => 63,<br /> 161 => 63,<br /> 64 => 64,<br /> 65 => 65,<br /> 66 => 65,<br /> 70 => 65,<br /> 67 => 67,<br /> 72 => 72,<br /> 73 => 73,<br /> 74 => 73,<br /> 78 => 78,<br /> 79 => 79,<br /> 80 => 79,<br /> 81 => 79,<br /> 83 => 83,<br /> 120 => 83,<br /> 84 => 84,<br /> 87 => 84,<br /> 98 => 84,<br /> 85 => 85,<br /> 86 => 86,<br /> 88 => 88,<br /> 89 => 89,<br /> 90 => 90,<br /> 95 => 90,<br /> 91 => 91,<br /> 94 => 91,<br /> 92 => 92,<br /> 97 => 92,<br /> 93 => 93,<br /> 96 => 93,<br /> 99 => 99,<br /> 100 => 100,<br /> 101 => 101,<br /> 104 => 104,<br /> 109 => 109,<br /> 110 => 110,<br /> 111 => 111,<br /> 112 => 112,<br /> 114 => 114,<br /> 117 => 117,<br /> 118 => 118,<br /> 119 => 119,<br /> 121 => 121,<br /> 122 => 122,<br /> 124 => 124,<br /> 125 => 125,<br /> 126 => 126,<br /> 128 => 128,<br /> 184 => 128,<br /> 129 => 129,<br /> 130 => 130,<br /> 131 => 131,<br /> 132 => 132,<br /> 133 => 133,<br /> 136 => 133,<br /> 134 => 134,<br /> 135 => 135,<br /> 137 => 137,<br /> 139 => 139,<br /> 140 => 140,<br /> 141 => 141,<br /> 142 => 142,<br /> 143 => 143,<br /> 144 => 144,<br /> 145 => 145,<br /> 146 => 146,<br /> 147 => 147,<br /> 148 => 148,<br /> 149 => 149,<br /> 150 => 150,<br /> 151 => 151,<br /> 152 => 152,<br /> 153 => 153,<br /> 156 => 156,<br /> 157 => 157,<br /> 159 => 159,<br /> 160 => 160,<br /> 167 => 167,<br /> 168 => 168,<br /> 169 => 169,<br /> 170 => 170,<br /> 171 => 171,<br /> 172 => 172,<br /> 173 => 173,<br /> 174 => 174,<br /> 175 => 175,<br /> 176 => 176,<br /> 177 => 177,<br /> 178 => 178,<br /> 179 => 179,<br /> 180 => 180,<br /> 181 => 181,<br /> 183 => 183,<br /> 185 => 185,<br /> 186 => 186,<br /> 188 => 188,<br /> 189 => 189,<br /> 190 => 190,<br /> 191 => 191,<br /> 192 => 192,<br /> 193 => 192,<br /> 195 => 192,<br /> 194 => 194,<br /> 196 => 196,<br /> 197 => 197,<br /> 198 => 198,<br /> )</span> (line <span class="line-number">1943</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyRuleInfo" id="$yyRuleInfo"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyRuleInfo</span> - = <span class="var-default">array(<br /> array( 'lhs' => 80, 'rhs' => 1 ),array('lhs'=>81,'rhs'=>1),array('lhs'=>81,'rhs'=>2),array('lhs'=>81,'rhs'=>0),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>82,'rhs'=>1),array('lhs'=>84,'rhs'=>2),array('lhs'=>84,'rhs'=>3),array('lhs'=>85,'rhs'=>2),array('lhs'=>85,'rhs'=>0),array('lhs'=>86,'rhs'=>1),array('lhs'=>86,'rhs'=>1),array('lhs'=>86,'rhs'=>1),array('lhs'=>86,'rhs'=>1),array('lhs'=>86,'rhs'=>1),array('lhs'=>86,'rhs'=>1),array('lhs'=>86,'rhs'=>1),array('lhs'=>83,'rhs'=>3),array('lhs'=>83,'rhs'=>5),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>5),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>6),array('lhs'=>83,'rhs'=>6),array('lhs'=>83,'rhs'=>7),array('lhs'=>83,'rhs'=>6),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>3),array('lhs'=>83,'rhs'=>6),array('lhs'=>83,'rhs'=>5),array('lhs'=>83,'rhs'=>7),array('lhs'=>83,'rhs'=>3),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>3),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>12),array('lhs'=>96,'rhs'=>2),array('lhs'=>96,'rhs'=>1),array('lhs'=>83,'rhs'=>6),array('lhs'=>83,'rhs'=>8),array('lhs'=>83,'rhs'=>3),array('lhs'=>83,'rhs'=>8),array('lhs'=>83,'rhs'=>11),array('lhs'=>83,'rhs'=>8),array('lhs'=>83,'rhs'=>11),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>5),array('lhs'=>83,'rhs'=>1),array('lhs'=>83,'rhs'=>3),array('lhs'=>83,'rhs'=>4),array('lhs'=>83,'rhs'=>5),array('lhs'=>83,'rhs'=>6),array('lhs'=>89,'rhs'=>2),array('lhs'=>89,'rhs'=>1),array('lhs'=>89,'rhs'=>0),array('lhs'=>98,'rhs'=>4),array('lhs'=>98,'rhs'=>4),array('lhs'=>98,'rhs'=>4),array('lhs'=>98,'rhs'=>2),array('lhs'=>98,'rhs'=>2),array('lhs'=>98,'rhs'=>2),array('lhs'=>98,'rhs'=>4),array('lhs'=>93,'rhs'=>1),array('lhs'=>93,'rhs'=>3),array('lhs'=>92,'rhs'=>4),array('lhs'=>92,'rhs'=>3),array('lhs'=>92,'rhs'=>3),array('lhs'=>90,'rhs'=>1),array('lhs'=>90,'rhs'=>1),array('lhs'=>90,'rhs'=>4),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>1),array('lhs'=>90,'rhs'=>2),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>2),array('lhs'=>90,'rhs'=>2),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>2),array('lhs'=>90,'rhs'=>2),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>90,'rhs'=>3),array('lhs'=>99,'rhs'=>8),array('lhs'=>99,'rhs'=>7),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>2),array('lhs'=>87,'rhs'=>2),array('lhs'=>87,'rhs'=>2),array('lhs'=>87,'rhs'=>2),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>3),array('lhs'=>87,'rhs'=>2),array('lhs'=>87,'rhs'=>2),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>3),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>3),array('lhs'=>87,'rhs'=>3),array('lhs'=>87,'rhs'=>1),array('lhs'=>87,'rhs'=>2),array('lhs'=>103,'rhs'=>1),array('lhs'=>103,'rhs'=>4),array('lhs'=>103,'rhs'=>1),array('lhs'=>103,'rhs'=>3),array('lhs'=>103,'rhs'=>3),array('lhs'=>91,'rhs'=>3),array('lhs'=>108,'rhs'=>2),array('lhs'=>108,'rhs'=>0),array('lhs'=>109,'rhs'=>3),array('lhs'=>109,'rhs'=>5),array('lhs'=>109,'rhs'=>2),array('lhs'=>109,'rhs'=>2),array('lhs'=>109,'rhs'=>4),array('lhs'=>109,'rhs'=>3),array('lhs'=>109,'rhs'=>5),array('lhs'=>109,'rhs'=>3),array('lhs'=>109,'rhs'=>2),array('lhs'=>95,'rhs'=>1),array('lhs'=>95,'rhs'=>2),array('lhs'=>110,'rhs'=>1),array('lhs'=>110,'rhs'=>3),array('lhs'=>107,'rhs'=>2),array('lhs'=>111,'rhs'=>1),array('lhs'=>111,'rhs'=>2),array('lhs'=>112,'rhs'=>3),array('lhs'=>112,'rhs'=>4),array('lhs'=>112,'rhs'=>5),array('lhs'=>112,'rhs'=>6),array('lhs'=>112,'rhs'=>2),array('lhs'=>104,'rhs'=>4),array('lhs'=>113,'rhs'=>4),array('lhs'=>113,'rhs'=>5),array('lhs'=>114,'rhs'=>3),array('lhs'=>114,'rhs'=>1),array('lhs'=>114,'rhs'=>0),array('lhs'=>88,'rhs'=>3),array('lhs'=>88,'rhs'=>2),array('lhs'=>115,'rhs'=>3),array('lhs'=>115,'rhs'=>2),array('lhs'=>97,'rhs'=>2),array('lhs'=>97,'rhs'=>0),array('lhs'=>116,'rhs'=>2),array('lhs'=>116,'rhs'=>2),array('lhs'=>106,'rhs'=>1),array('lhs'=>106,'rhs'=>2),array('lhs'=>106,'rhs'=>1),array('lhs'=>106,'rhs'=>3),array('lhs'=>106,'rhs'=>4),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>101,'rhs'=>1),array('lhs'=>102,'rhs'=>1),array('lhs'=>102,'rhs'=>1),array('lhs'=>102,'rhs'=>1),array('lhs'=>100,'rhs'=>3),array('lhs'=>117,'rhs'=>1),array('lhs'=>117,'rhs'=>3),array('lhs'=>117,'rhs'=>0),array('lhs'=>118,'rhs'=>3),array('lhs'=>118,'rhs'=>3),array('lhs'=>118,'rhs'=>1),array('lhs'=>105,'rhs'=>2),array('lhs'=>105,'rhs'=>3),array('lhs'=>119,'rhs'=>2),array('lhs'=>119,'rhs'=>1),array('lhs'=>120,'rhs'=>3),array('lhs'=>120,'rhs'=>3),array('lhs'=>120,'rhs'=>1),array('lhs'=>120,'rhs'=>3),array('lhs'=>120,'rhs'=>3),array('lhs'=>120,'rhs'=>1),array('lhs'=>120,'rhs'=>1),array('lhs'=>94,'rhs'=>1),array('lhs'=>94,'rhs'=>0),)</span> (line <span class="line-number">1739</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyRuleName" id="$yyRuleName"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyRuleName</span> - = <span class="var-default">array(<br /> /* 0 */ "start ::= template",<br /> /* 1 */ "template ::= template_element",<br /> /* 2 */ "template ::= template template_element",<br /> /* 3 */ "template ::=",<br /> /* 4 */ "template_element ::= smartytag",<br /> /* 5 */ "template_element ::= COMMENT",<br /> /* 6 */ "template_element ::= literal",<br /> /* 7 */ "template_element ::= PHPSTARTTAG",<br /> /* 8 */ "template_element ::= PHPENDTAG",<br /> /* 9 */ "template_element ::= ASPSTARTTAG",<br /> /* 10 */ "template_element ::= ASPENDTAG",<br /> /* 11 */ "template_element ::= FAKEPHPSTARTTAG",<br /> /* 12 */ "template_element ::= XMLTAG",<br /> /* 13 */ "template_element ::= OTHER",<br /> /* 14 */ "template_element ::= LINEBREAK",<br /> /* 15 */ "literal ::= LITERALSTART LITERALEND",<br /> /* 16 */ "literal ::= LITERALSTART literal_elements LITERALEND",<br /> /* 17 */ "literal_elements ::= literal_elements literal_element",<br /> /* 18 */ "literal_elements ::=",<br /> /* 19 */ "literal_element ::= literal",<br /> /* 20 */ "literal_element ::= LITERAL",<br /> /* 21 */ "literal_element ::= PHPSTARTTAG",<br /> /* 22 */ "literal_element ::= FAKEPHPSTARTTAG",<br /> /* 23 */ "literal_element ::= PHPENDTAG",<br /> /* 24 */ "literal_element ::= ASPSTARTTAG",<br /> /* 25 */ "literal_element ::= ASPENDTAG",<br /> /* 26 */ "smartytag ::= LDEL value RDEL",<br /> /* 27 */ "smartytag ::= LDEL value modifierlist attributes RDEL",<br /> /* 28 */ "smartytag ::= LDEL value attributes RDEL",<br /> /* 29 */ "smartytag ::= LDEL expr modifierlist attributes RDEL",<br /> /* 30 */ "smartytag ::= LDEL expr attributes RDEL",<br /> /* 31 */ "smartytag ::= LDEL DOLLAR ID EQUAL value RDEL",<br /> /* 32 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr RDEL",<br /> /* 33 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr attributes RDEL",<br /> /* 34 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL",<br /> /* 35 */ "smartytag ::= LDEL ID attributes RDEL",<br /> /* 36 */ "smartytag ::= LDEL ID RDEL",<br /> /* 37 */ "smartytag ::= LDEL ID PTR ID attributes RDEL",<br /> /* 38 */ "smartytag ::= LDEL ID modifierlist attributes RDEL",<br /> /* 39 */ "smartytag ::= LDEL ID PTR ID modifierlist attributes RDEL",<br /> /* 40 */ "smartytag ::= LDELIF expr RDEL",<br /> /* 41 */ "smartytag ::= LDELIF expr attributes RDEL",<br /> /* 42 */ "smartytag ::= LDELIF statement RDEL",<br /> /* 43 */ "smartytag ::= LDELIF statement attributes RDEL",<br /> /* 44 */ "smartytag ::= LDELFOR statements SEMICOLON optspace expr SEMICOLON optspace DOLLAR varvar foraction attributes RDEL",<br /> /* 45 */ "foraction ::= EQUAL expr",<br /> /* 46 */ "foraction ::= INCDEC",<br /> /* 47 */ "smartytag ::= LDELFOR statement TO expr attributes RDEL",<br /> /* 48 */ "smartytag ::= LDELFOR statement TO expr STEP expr attributes RDEL",<br /> /* 49 */ "smartytag ::= LDELFOREACH attributes RDEL",<br /> /* 50 */ "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar attributes RDEL",<br /> /* 51 */ "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar attributes RDEL",<br /> /* 52 */ "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar attributes RDEL",<br /> /* 53 */ "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar APTR DOLLAR varvar attributes RDEL",<br /> /* 54 */ "smartytag ::= LDELSETFILTER ID modparameters RDEL",<br /> /* 55 */ "smartytag ::= LDELSETFILTER ID modparameters modifierlist RDEL",<br /> /* 56 */ "smartytag ::= SMARTYBLOCKCHILD",<br /> /* 57 */ "smartytag ::= LDELSLASH ID RDEL",<br /> /* 58 */ "smartytag ::= LDELSLASH ID modifierlist RDEL",<br /> /* 59 */ "smartytag ::= LDELSLASH ID PTR ID RDEL",<br /> /* 60 */ "smartytag ::= LDELSLASH ID PTR ID modifierlist RDEL",<br /> /* 61 */ "attributes ::= attributes attribute",<br /> /* 62 */ "attributes ::= attribute",<br /> /* 63 */ "attributes ::=",<br /> /* 64 */ "attribute ::= SPACE ID EQUAL ID",<br /> /* 65 */ "attribute ::= SPACE ID EQUAL expr",<br /> /* 66 */ "attribute ::= SPACE ID EQUAL value",<br /> /* 67 */ "attribute ::= SPACE ID",<br /> /* 68 */ "attribute ::= SPACE expr",<br /> /* 69 */ "attribute ::= SPACE value",<br /> /* 70 */ "attribute ::= SPACE INTEGER EQUAL expr",<br /> /* 71 */ "statements ::= statement",<br /> /* 72 */ "statements ::= statements COMMA statement",<br /> /* 73 */ "statement ::= DOLLAR varvar EQUAL expr",<br /> /* 74 */ "statement ::= varindexed EQUAL expr",<br /> /* 75 */ "statement ::= OPENP statement CLOSEP",<br /> /* 76 */ "expr ::= value",<br /> /* 77 */ "expr ::= ternary",<br /> /* 78 */ "expr ::= DOLLAR ID COLON ID",<br /> /* 79 */ "expr ::= expr MATH value",<br /> /* 80 */ "expr ::= expr UNIMATH value",<br /> /* 81 */ "expr ::= expr ANDSYM value",<br /> /* 82 */ "expr ::= array",<br /> /* 83 */ "expr ::= expr modifierlist",<br /> /* 84 */ "expr ::= expr ifcond expr",<br /> /* 85 */ "expr ::= expr ISIN array",<br /> /* 86 */ "expr ::= expr ISIN value",<br /> /* 87 */ "expr ::= expr lop expr",<br /> /* 88 */ "expr ::= expr ISDIVBY expr",<br /> /* 89 */ "expr ::= expr ISNOTDIVBY expr",<br /> /* 90 */ "expr ::= expr ISEVEN",<br /> /* 91 */ "expr ::= expr ISNOTEVEN",<br /> /* 92 */ "expr ::= expr ISEVENBY expr",<br /> /* 93 */ "expr ::= expr ISNOTEVENBY expr",<br /> /* 94 */ "expr ::= expr ISODD",<br /> /* 95 */ "expr ::= expr ISNOTODD",<br /> /* 96 */ "expr ::= expr ISODDBY expr",<br /> /* 97 */ "expr ::= expr ISNOTODDBY expr",<br /> /* 98 */ "expr ::= value INSTANCEOF ID",<br /> /* 99 */ "expr ::= value INSTANCEOF value",<br /> /* 100 */ "ternary ::= OPENP expr CLOSEP QMARK DOLLAR ID COLON expr",<br /> /* 101 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr",<br /> /* 102 */ "value ::= variable",<br /> /* 103 */ "value ::= UNIMATH value",<br /> /* 104 */ "value ::= NOT value",<br /> /* 105 */ "value ::= TYPECAST value",<br /> /* 106 */ "value ::= variable INCDEC",<br /> /* 107 */ "value ::= HEX",<br /> /* 108 */ "value ::= INTEGER",<br /> /* 109 */ "value ::= INTEGER DOT INTEGER",<br /> /* 110 */ "value ::= INTEGER DOT",<br /> /* 111 */ "value ::= DOT INTEGER",<br /> /* 112 */ "value ::= ID",<br /> /* 113 */ "value ::= function",<br /> /* 114 */ "value ::= OPENP expr CLOSEP",<br /> /* 115 */ "value ::= SINGLEQUOTESTRING",<br /> /* 116 */ "value ::= doublequoted_with_quotes",<br /> /* 117 */ "value ::= ID DOUBLECOLON static_class_access",<br /> /* 118 */ "value ::= varindexed DOUBLECOLON static_class_access",<br /> /* 119 */ "value ::= smartytag",<br /> /* 120 */ "value ::= value modifierlist",<br /> /* 121 */ "variable ::= varindexed",<br /> /* 122 */ "variable ::= DOLLAR varvar AT ID",<br /> /* 123 */ "variable ::= object",<br /> /* 124 */ "variable ::= HATCH ID HATCH",<br /> /* 125 */ "variable ::= HATCH variable HATCH",<br /> /* 126 */ "varindexed ::= DOLLAR varvar arrayindex",<br /> /* 127 */ "arrayindex ::= arrayindex indexdef",<br /> /* 128 */ "arrayindex ::=",<br /> /* 129 */ "indexdef ::= DOT DOLLAR varvar",<br /> /* 130 */ "indexdef ::= DOT DOLLAR varvar AT ID",<br /> /* 131 */ "indexdef ::= DOT ID",<br /> /* 132 */ "indexdef ::= DOT INTEGER",<br /> /* 133 */ "indexdef ::= DOT LDEL expr RDEL",<br /> /* 134 */ "indexdef ::= OPENB ID CLOSEB",<br /> /* 135 */ "indexdef ::= OPENB ID DOT ID CLOSEB",<br /> /* 136 */ "indexdef ::= OPENB expr CLOSEB",<br /> /* 137 */ "indexdef ::= OPENB CLOSEB",<br /> /* 138 */ "varvar ::= varvarele",<br /> /* 139 */ "varvar ::= varvar varvarele",<br /> /* 140 */ "varvarele ::= ID",<br /> /* 141 */ "varvarele ::= LDEL expr RDEL",<br /> /* 142 */ "object ::= varindexed objectchain",<br /> /* 143 */ "objectchain ::= objectelement",<br /> /* 144 */ "objectchain ::= objectchain objectelement",<br /> /* 145 */ "objectelement ::= PTR ID arrayindex",<br /> /* 146 */ "objectelement ::= PTR DOLLAR varvar arrayindex",<br /> /* 147 */ "objectelement ::= PTR LDEL expr RDEL arrayindex",<br /> /* 148 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex",<br /> /* 149 */ "objectelement ::= PTR method",<br /> /* 150 */ "function ::= ID OPENP params CLOSEP",<br /> /* 151 */ "method ::= ID OPENP params CLOSEP",<br /> /* 152 */ "method ::= DOLLAR ID OPENP params CLOSEP",<br /> /* 153 */ "params ::= params COMMA expr",<br /> /* 154 */ "params ::= expr",<br /> /* 155 */ "params ::=",<br /> /* 156 */ "modifierlist ::= modifierlist modifier modparameters",<br /> /* 157 */ "modifierlist ::= modifier modparameters",<br /> /* 158 */ "modifier ::= VERT AT ID",<br /> /* 159 */ "modifier ::= VERT ID",<br /> /* 160 */ "modparameters ::= modparameters modparameter",<br /> /* 161 */ "modparameters ::=",<br /> /* 162 */ "modparameter ::= COLON value",<br /> /* 163 */ "modparameter ::= COLON array",<br /> /* 164 */ "static_class_access ::= method",<br /> /* 165 */ "static_class_access ::= method objectchain",<br /> /* 166 */ "static_class_access ::= ID",<br /> /* 167 */ "static_class_access ::= DOLLAR ID arrayindex",<br /> /* 168 */ "static_class_access ::= DOLLAR ID arrayindex objectchain",<br /> /* 169 */ "ifcond ::= EQUALS",<br /> /* 170 */ "ifcond ::= NOTEQUALS",<br /> /* 171 */ "ifcond ::= GREATERTHAN",<br /> /* 172 */ "ifcond ::= LESSTHAN",<br /> /* 173 */ "ifcond ::= GREATEREQUAL",<br /> /* 174 */ "ifcond ::= LESSEQUAL",<br /> /* 175 */ "ifcond ::= IDENTITY",<br /> /* 176 */ "ifcond ::= NONEIDENTITY",<br /> /* 177 */ "ifcond ::= MOD",<br /> /* 178 */ "lop ::= LAND",<br /> /* 179 */ "lop ::= LOR",<br /> /* 180 */ "lop ::= LXOR",<br /> /* 181 */ "array ::= OPENB arrayelements CLOSEB",<br /> /* 182 */ "arrayelements ::= arrayelement",<br /> /* 183 */ "arrayelements ::= arrayelements COMMA arrayelement",<br /> /* 184 */ "arrayelements ::=",<br /> /* 185 */ "arrayelement ::= value APTR expr",<br /> /* 186 */ "arrayelement ::= ID APTR expr",<br /> /* 187 */ "arrayelement ::= expr",<br /> /* 188 */ "doublequoted_with_quotes ::= QUOTE QUOTE",<br /> /* 189 */ "doublequoted_with_quotes ::= QUOTE doublequoted QUOTE",<br /> /* 190 */ "doublequoted ::= doublequoted doublequotedcontent",<br /> /* 191 */ "doublequoted ::= doublequotedcontent",<br /> /* 192 */ "doublequotedcontent ::= BACKTICK variable BACKTICK",<br /> /* 193 */ "doublequotedcontent ::= BACKTICK expr BACKTICK",<br /> /* 194 */ "doublequotedcontent ::= DOLLARID",<br /> /* 195 */ "doublequotedcontent ::= LDEL variable RDEL",<br /> /* 196 */ "doublequotedcontent ::= LDEL expr RDEL",<br /> /* 197 */ "doublequotedcontent ::= smartytag",<br /> /* 198 */ "doublequotedcontent ::= OTHER",<br /> /* 199 */ "optspace ::= SPACE",<br /> /* 200 */ "optspace ::=",<br /> )</span> (line <span class="line-number">1258</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyTraceFILE" id="$yyTraceFILE"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyTraceFILE</span> - (line <span class="line-number">1218</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyTracePrompt" id="$yyTracePrompt"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yyTracePrompt</span> - (line <span class="line-number">1219</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_action" id="$yy_action"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_action</span> - = <span class="var-default">array(<br /> /* 0 */ 211, 316, 317, 319, 318, 315, 314, 310, 309, 311,<br /> /* 10 */ 312, 313, 320, 189, 304, 161, 38, 589, 95, 265,<br /> /* 20 */ 317, 319, 7, 106, 289, 37, 26, 30, 146, 283,<br /> /* 30 */ 10, 285, 250, 286, 238, 280, 287, 49, 48, 46,<br /> /* 40 */ 45, 20, 29, 365, 366, 28, 32, 373, 374, 15,<br /> /* 50 */ 11, 328, 323, 322, 324, 327, 231, 211, 4, 189,<br /> /* 60 */ 329, 332, 211, 382, 383, 384, 385, 381, 380, 376,<br /> /* 70 */ 375, 377, 281, 378, 379, 211, 360, 450, 180, 251,<br /> /* 80 */ 117, 144, 196, 74, 135, 260, 17, 451, 26, 30,<br /> /* 90 */ 307, 283, 299, 361, 35, 158, 225, 368, 362, 451,<br /> /* 100 */ 343, 30, 30, 226, 44, 203, 285, 4, 47, 203,<br /> /* 110 */ 218, 259, 49, 48, 46, 45, 20, 29, 365, 366,<br /> /* 120 */ 28, 32, 373, 374, 15, 11, 351, 108, 176, 334,<br /> /* 130 */ 144, 193, 337, 23, 129, 134, 371, 289, 382, 383,<br /> /* 140 */ 384, 385, 381, 380, 376, 375, 377, 281, 378, 379,<br /> /* 150 */ 211, 360, 372, 26, 203, 142, 283, 31, 68, 122,<br /> /* 160 */ 242, 26, 109, 353, 283, 346, 454, 299, 361, 25,<br /> /* 170 */ 185, 225, 368, 362, 30, 343, 239, 30, 454, 289,<br /> /* 180 */ 4, 41, 26, 143, 165, 283, 4, 49, 48, 46,<br /> /* 190 */ 45, 20, 29, 365, 366, 28, 32, 373, 374, 15,<br /> /* 200 */ 11, 101, 160, 144, 26, 208, 34, 283, 31, 144,<br /> /* 210 */ 8, 289, 4, 382, 383, 384, 385, 381, 380, 376,<br /> /* 220 */ 375, 377, 281, 378, 379, 211, 360, 227, 203, 357,<br /> /* 230 */ 142, 197, 19, 73, 135, 144, 211, 302, 9, 158,<br /> /* 240 */ 340, 26, 299, 361, 283, 158, 225, 368, 362, 228,<br /> /* 250 */ 343, 294, 30, 6, 331, 235, 330, 221, 195, 337,<br /> /* 260 */ 126, 240, 49, 48, 46, 45, 20, 29, 365, 366,<br /> /* 270 */ 28, 32, 373, 374, 15, 11, 211, 16, 129, 244,<br /> /* 280 */ 249, 219, 208, 192, 337, 302, 228, 8, 382, 383,<br /> /* 290 */ 384, 385, 381, 380, 376, 375, 377, 281, 378, 379,<br /> /* 300 */ 163, 211, 107, 188, 105, 40, 40, 266, 277, 289,<br /> /* 310 */ 241, 232, 289, 49, 48, 46, 45, 20, 29, 365,<br /> /* 320 */ 366, 28, 32, 373, 374, 15, 11, 211, 168, 203,<br /> /* 330 */ 40, 2, 278, 167, 175, 244, 242, 289, 350, 382,<br /> /* 340 */ 383, 384, 385, 381, 380, 376, 375, 377, 281, 378,<br /> /* 350 */ 379, 191, 47, 184, 204, 234, 169, 198, 287, 386,<br /> /* 360 */ 203, 203, 289, 124, 49, 48, 46, 45, 20, 29,<br /> /* 370 */ 365, 366, 28, 32, 373, 374, 15, 11, 211, 204,<br /> /* 380 */ 182, 26, 26, 26, 283, 212, 224, 118, 131, 289,<br /> /* 390 */ 382, 383, 384, 385, 381, 380, 376, 375, 377, 281,<br /> /* 400 */ 378, 379, 370, 172, 244, 270, 204, 130, 211, 164,<br /> /* 410 */ 26, 287, 289, 229, 178, 49, 48, 46, 45, 20,<br /> /* 420 */ 29, 365, 366, 28, 32, 373, 374, 15, 11, 204,<br /> /* 430 */ 364, 298, 5, 26, 100, 30, 247, 148, 148, 99,<br /> /* 440 */ 159, 382, 383, 384, 385, 381, 380, 376, 375, 377,<br /> /* 450 */ 281, 378, 379, 211, 354, 370, 360, 174, 26, 369,<br /> /* 460 */ 142, 283, 360, 73, 135, 158, 157, 123, 24, 155,<br /> /* 470 */ 135, 30, 299, 361, 211, 190, 225, 368, 362, 272,<br /> /* 480 */ 343, 252, 225, 368, 362, 343, 343, 222, 223, 306,<br /> /* 490 */ 49, 48, 46, 45, 20, 29, 365, 366, 28, 32,<br /> /* 500 */ 373, 374, 15, 11, 129, 43, 236, 9, 269, 258,<br /> /* 510 */ 199, 133, 33, 14, 202, 103, 382, 383, 384, 385,<br /> /* 520 */ 381, 380, 376, 375, 377, 281, 378, 379, 211, 360,<br /> /* 530 */ 370, 170, 262, 142, 360, 36, 73, 135, 151, 141,<br /> /* 540 */ 289, 245, 135, 276, 211, 299, 361, 211, 44, 225,<br /> /* 550 */ 368, 362, 287, 343, 225, 368, 362, 119, 343, 295,<br /> /* 560 */ 216, 267, 282, 296, 211, 49, 48, 46, 45, 20,<br /> /* 570 */ 29, 365, 366, 28, 32, 373, 374, 15, 11, 284,<br /> /* 580 */ 181, 223, 333, 138, 302, 236, 297, 6, 127, 289,<br /> /* 590 */ 116, 382, 383, 384, 385, 381, 380, 376, 375, 377,<br /> /* 600 */ 281, 378, 379, 211, 360, 370, 177, 94, 142, 303,<br /> /* 610 */ 292, 54, 122, 139, 162, 289, 150, 261, 264, 293,<br /> /* 620 */ 299, 361, 30, 289, 225, 368, 362, 287, 343, 30,<br /> /* 630 */ 287, 30, 132, 300, 308, 287, 158, 211, 30, 334,<br /> /* 640 */ 49, 48, 46, 45, 20, 29, 365, 366, 28, 32,<br /> /* 650 */ 373, 374, 15, 11, 211, 204, 166, 12, 275, 287,<br /> /* 660 */ 273, 248, 342, 98, 97, 113, 382, 383, 384, 385,<br /> /* 670 */ 381, 380, 376, 375, 377, 281, 378, 379, 370, 370,<br /> /* 680 */ 370, 110, 18, 321, 324, 324, 324, 324, 324, 324,<br /> /* 690 */ 246, 49, 48, 46, 45, 20, 29, 365, 366, 28,<br /> /* 700 */ 32, 373, 374, 15, 11, 211, 324, 324, 324, 324,<br /> /* 710 */ 324, 324, 324, 324, 112, 136, 104, 382, 383, 384,<br /> /* 720 */ 385, 381, 380, 376, 375, 377, 281, 378, 379, 370,<br /> /* 730 */ 370, 370, 324, 324, 324, 324, 324, 324, 324, 324,<br /> /* 740 */ 324, 256, 49, 48, 46, 45, 20, 29, 365, 366,<br /> /* 750 */ 28, 32, 373, 374, 15, 11, 211, 324, 324, 324,<br /> /* 760 */ 324, 324, 324, 324, 324, 324, 324, 324, 382, 383,<br /> /* 770 */ 384, 385, 381, 380, 376, 375, 377, 281, 378, 379,<br /> /* 780 */ 351, 324, 324, 30, 324, 324, 324, 324, 324, 324,<br /> /* 790 */ 324, 324, 324, 49, 48, 46, 45, 20, 29, 365,<br /> /* 800 */ 366, 28, 32, 373, 374, 15, 11, 211, 324, 324,<br /> /* 810 */ 324, 324, 324, 324, 324, 324, 324, 355, 324, 382,<br /> /* 820 */ 383, 384, 385, 381, 380, 376, 375, 377, 281, 378,<br /> /* 830 */ 379, 324, 324, 324, 324, 324, 324, 324, 324, 324,<br /> /* 840 */ 324, 324, 324, 324, 49, 48, 46, 45, 20, 29,<br /> /* 850 */ 365, 366, 28, 32, 373, 374, 15, 11, 324, 324,<br /> /* 860 */ 324, 324, 324, 324, 324, 324, 324, 324, 324, 257,<br /> /* 870 */ 382, 383, 384, 385, 381, 380, 376, 375, 377, 281,<br /> /* 880 */ 378, 379, 211, 324, 324, 324, 194, 360, 211, 288,<br /> /* 890 */ 255, 145, 324, 352, 336, 135, 324, 200, 42, 22,<br /> /* 900 */ 27, 30, 30, 341, 7, 106, 30, 225, 368, 362,<br /> /* 910 */ 146, 343, 324, 203, 250, 286, 238, 324, 211, 49,<br /> /* 920 */ 48, 46, 45, 20, 29, 365, 366, 28, 32, 373,<br /> /* 930 */ 374, 15, 11, 305, 324, 324, 324, 324, 324, 47,<br /> /* 940 */ 324, 324, 324, 324, 324, 382, 383, 384, 385, 381,<br /> /* 950 */ 380, 376, 375, 377, 281, 378, 379, 211, 324, 359,<br /> /* 960 */ 39, 349, 360, 326, 348, 291, 156, 324, 352, 344,<br /> /* 970 */ 135, 324, 201, 42, 324, 30, 30, 30, 324, 7,<br /> /* 980 */ 106, 30, 225, 368, 362, 146, 343, 324, 324, 250,<br /> /* 990 */ 286, 238, 324, 324, 49, 48, 46, 45, 20, 29,<br /> /* 1000 */ 365, 366, 28, 32, 373, 374, 15, 11, 211, 324,<br /> /* 1010 */ 324, 324, 324, 324, 324, 324, 324, 324, 324, 324,<br /> /* 1020 */ 382, 383, 384, 385, 381, 380, 376, 375, 377, 281,<br /> /* 1030 */ 378, 379, 324, 324, 358, 39, 349, 324, 324, 324,<br /> /* 1040 */ 324, 324, 324, 324, 324, 49, 48, 46, 45, 20,<br /> /* 1050 */ 29, 365, 366, 28, 32, 373, 374, 15, 11, 324,<br /> /* 1060 */ 324, 324, 324, 324, 324, 324, 324, 324, 324, 324,<br /> /* 1070 */ 324, 382, 383, 384, 385, 381, 380, 376, 375, 377,<br /> /* 1080 */ 281, 378, 379, 324, 49, 48, 46, 45, 20, 29,<br /> /* 1090 */ 365, 366, 28, 32, 373, 374, 15, 11, 324, 324,<br /> /* 1100 */ 324, 324, 324, 324, 324, 324, 324, 324, 324, 324,<br /> /* 1110 */ 382, 383, 384, 385, 381, 380, 376, 375, 377, 281,<br /> /* 1120 */ 378, 379, 324, 324, 324, 324, 38, 324, 140, 207,<br /> /* 1130 */ 324, 360, 7, 106, 290, 147, 324, 356, 146, 135,<br /> /* 1140 */ 324, 324, 250, 286, 238, 230, 30, 13, 367, 30,<br /> /* 1150 */ 51, 225, 368, 362, 324, 343, 360, 324, 324, 324,<br /> /* 1160 */ 152, 324, 324, 324, 135, 50, 52, 301, 237, 363,<br /> /* 1170 */ 324, 360, 105, 1, 254, 154, 225, 368, 362, 135,<br /> /* 1180 */ 343, 324, 38, 324, 140, 214, 324, 96, 7, 106,<br /> /* 1190 */ 279, 225, 368, 362, 146, 343, 347, 345, 250, 286,<br /> /* 1200 */ 238, 230, 30, 13, 274, 324, 51, 338, 30, 30,<br /> /* 1210 */ 360, 324, 324, 324, 121, 324, 30, 53, 135, 30,<br /> /* 1220 */ 211, 50, 52, 301, 237, 363, 299, 361, 105, 1,<br /> /* 1230 */ 225, 368, 362, 211, 343, 453, 324, 268, 38, 324,<br /> /* 1240 */ 128, 214, 324, 96, 7, 106, 253, 453, 339, 30,<br /> /* 1250 */ 146, 335, 233, 324, 250, 286, 238, 230, 30, 3,<br /> /* 1260 */ 30, 324, 51, 30, 271, 324, 360, 324, 4, 324,<br /> /* 1270 */ 142, 47, 324, 84, 135, 324, 30, 50, 52, 301,<br /> /* 1280 */ 237, 363, 299, 361, 105, 1, 225, 368, 362, 324,<br /> /* 1290 */ 343, 144, 324, 324, 38, 324, 125, 92, 324, 96,<br /> /* 1300 */ 7, 106, 324, 324, 324, 324, 146, 324, 324, 324,<br /> /* 1310 */ 250, 286, 238, 230, 324, 13, 324, 324, 51, 324,<br /> /* 1320 */ 324, 324, 360, 324, 324, 324, 142, 324, 324, 89,<br /> /* 1330 */ 135, 324, 211, 50, 52, 301, 237, 363, 299, 361,<br /> /* 1340 */ 105, 1, 225, 368, 362, 324, 343, 456, 324, 324,<br /> /* 1350 */ 38, 324, 126, 214, 324, 96, 7, 106, 324, 456,<br /> /* 1360 */ 243, 324, 146, 324, 324, 324, 250, 286, 238, 230,<br /> /* 1370 */ 324, 21, 324, 324, 51, 324, 324, 324, 360, 324,<br /> /* 1380 */ 324, 324, 142, 47, 324, 87, 135, 324, 211, 50,<br /> /* 1390 */ 52, 301, 237, 363, 299, 361, 105, 1, 225, 368,<br /> /* 1400 */ 362, 324, 343, 456, 324, 324, 38, 324, 140, 210,<br /> /* 1410 */ 324, 96, 7, 106, 324, 456, 324, 324, 146, 324,<br /> /* 1420 */ 324, 324, 250, 286, 238, 230, 324, 13, 324, 324,<br /> /* 1430 */ 51, 324, 324, 324, 360, 324, 324, 324, 142, 47,<br /> /* 1440 */ 324, 63, 135, 324, 211, 50, 52, 301, 237, 363,<br /> /* 1450 */ 299, 361, 105, 1, 225, 368, 362, 324, 343, 325,<br /> /* 1460 */ 324, 324, 38, 324, 137, 214, 324, 96, 7, 106,<br /> /* 1470 */ 324, 30, 324, 324, 146, 324, 324, 324, 250, 286,<br /> /* 1480 */ 238, 230, 324, 13, 324, 324, 51, 324, 324, 324,<br /> /* 1490 */ 360, 324, 324, 324, 142, 47, 324, 80, 135, 324,<br /> /* 1500 */ 324, 50, 52, 301, 237, 363, 299, 361, 105, 1,<br /> /* 1510 */ 225, 368, 362, 324, 343, 324, 324, 324, 38, 324,<br /> /* 1520 */ 140, 206, 324, 96, 7, 106, 324, 324, 324, 324,<br /> /* 1530 */ 146, 324, 324, 324, 250, 286, 238, 220, 324, 13,<br /> /* 1540 */ 324, 324, 51, 324, 324, 324, 360, 324, 324, 324,<br /> /* 1550 */ 114, 324, 324, 75, 135, 324, 324, 50, 52, 301,<br /> /* 1560 */ 237, 363, 299, 361, 105, 1, 225, 368, 362, 324,<br /> /* 1570 */ 343, 324, 324, 324, 38, 324, 140, 205, 324, 96,<br /> /* 1580 */ 7, 106, 324, 324, 324, 324, 146, 324, 324, 324,<br /> /* 1590 */ 250, 286, 238, 230, 324, 13, 324, 324, 51, 324,<br /> /* 1600 */ 324, 324, 360, 324, 324, 324, 142, 324, 324, 77,<br /> /* 1610 */ 135, 324, 324, 50, 52, 301, 237, 363, 299, 361,<br /> /* 1620 */ 105, 1, 225, 368, 362, 324, 343, 324, 324, 324,<br /> /* 1630 */ 38, 324, 140, 209, 324, 96, 7, 106, 324, 324,<br /> /* 1640 */ 324, 324, 146, 324, 324, 324, 250, 286, 238, 230,<br /> /* 1650 */ 324, 13, 324, 324, 51, 324, 324, 324, 360, 324,<br /> /* 1660 */ 324, 324, 142, 324, 324, 85, 135, 324, 324, 50,<br /> /* 1670 */ 52, 301, 237, 363, 299, 361, 105, 1, 225, 368,<br /> /* 1680 */ 362, 324, 343, 324, 324, 324, 38, 324, 126, 213,<br /> /* 1690 */ 324, 96, 7, 106, 324, 324, 324, 324, 146, 324,<br /> /* 1700 */ 324, 324, 250, 286, 238, 230, 324, 21, 324, 324,<br /> /* 1710 */ 51, 324, 324, 324, 360, 324, 324, 324, 142, 324,<br /> /* 1720 */ 324, 71, 135, 324, 324, 50, 52, 301, 237, 363,<br /> /* 1730 */ 299, 361, 105, 324, 225, 368, 362, 324, 343, 324,<br /> /* 1740 */ 324, 324, 38, 324, 126, 214, 324, 96, 7, 106,<br /> /* 1750 */ 324, 324, 324, 324, 146, 324, 324, 324, 250, 286,<br /> /* 1760 */ 238, 230, 324, 21, 102, 186, 51, 324, 324, 324,<br /> /* 1770 */ 324, 324, 324, 324, 289, 324, 324, 22, 27, 324,<br /> /* 1780 */ 499, 50, 52, 301, 237, 363, 324, 499, 105, 499,<br /> /* 1790 */ 499, 203, 499, 499, 324, 324, 324, 324, 324, 499,<br /> /* 1800 */ 4, 499, 324, 96, 324, 324, 324, 324, 324, 324,<br /> /* 1810 */ 324, 324, 324, 360, 324, 324, 499, 117, 324, 324,<br /> /* 1820 */ 74, 135, 324, 144, 324, 324, 324, 499, 324, 299,<br /> /* 1830 */ 361, 324, 324, 225, 368, 362, 324, 343, 360, 324,<br /> /* 1840 */ 324, 499, 142, 324, 324, 66, 135, 324, 263, 324,<br /> /* 1850 */ 324, 324, 324, 324, 299, 361, 324, 324, 225, 368,<br /> /* 1860 */ 362, 324, 343, 324, 360, 324, 324, 324, 142, 324,<br /> /* 1870 */ 324, 79, 135, 324, 360, 324, 324, 324, 149, 324,<br /> /* 1880 */ 299, 361, 135, 360, 225, 368, 362, 142, 343, 324,<br /> /* 1890 */ 81, 135, 324, 324, 225, 368, 362, 324, 343, 299,<br /> /* 1900 */ 361, 324, 324, 225, 368, 362, 324, 343, 324, 324,<br /> /* 1910 */ 324, 360, 324, 324, 324, 115, 324, 324, 83, 135,<br /> /* 1920 */ 324, 324, 360, 324, 324, 324, 142, 299, 361, 72,<br /> /* 1930 */ 135, 225, 368, 362, 324, 343, 324, 324, 299, 361,<br /> /* 1940 */ 324, 324, 225, 368, 362, 324, 343, 324, 360, 324,<br /> /* 1950 */ 324, 324, 142, 324, 324, 70, 135, 324, 360, 324,<br /> /* 1960 */ 324, 324, 153, 324, 299, 361, 135, 360, 225, 368,<br /> /* 1970 */ 362, 142, 343, 324, 68, 135, 324, 324, 225, 368,<br /> /* 1980 */ 362, 324, 343, 299, 361, 324, 324, 225, 368, 362,<br /> /* 1990 */ 324, 343, 324, 324, 324, 360, 324, 324, 324, 142,<br /> /* 2000 */ 324, 324, 90, 135, 324, 324, 360, 324, 324, 324,<br /> /* 2010 */ 142, 299, 361, 86, 135, 225, 368, 362, 324, 343,<br /> /* 2020 */ 324, 324, 299, 361, 324, 324, 225, 368, 362, 324,<br /> /* 2030 */ 343, 324, 360, 194, 183, 324, 142, 324, 324, 91,<br /> /* 2040 */ 135, 324, 324, 289, 324, 324, 22, 27, 299, 361,<br /> /* 2050 */ 324, 360, 225, 368, 362, 142, 343, 324, 61, 135,<br /> /* 2060 */ 203, 324, 324, 324, 194, 171, 324, 299, 361, 324,<br /> /* 2070 */ 324, 225, 368, 362, 289, 343, 324, 22, 27, 360,<br /> /* 2080 */ 324, 324, 324, 142, 324, 324, 88, 135, 324, 324,<br /> /* 2090 */ 360, 203, 324, 324, 142, 299, 361, 69, 135, 225,<br /> /* 2100 */ 368, 362, 324, 343, 324, 324, 299, 361, 324, 324,<br /> /* 2110 */ 225, 368, 362, 324, 343, 324, 360, 194, 179, 324,<br /> /* 2120 */ 142, 324, 324, 76, 135, 324, 324, 289, 324, 324,<br /> /* 2130 */ 22, 27, 299, 361, 324, 360, 225, 368, 362, 142,<br /> /* 2140 */ 343, 324, 65, 135, 203, 324, 324, 324, 194, 187,<br /> /* 2150 */ 324, 299, 361, 324, 324, 225, 368, 362, 289, 343,<br /> /* 2160 */ 324, 22, 27, 360, 324, 324, 324, 111, 324, 324,<br /> /* 2170 */ 64, 135, 324, 324, 360, 203, 324, 324, 142, 299,<br /> /* 2180 */ 361, 62, 135, 225, 368, 362, 324, 343, 324, 324,<br /> /* 2190 */ 299, 361, 324, 324, 225, 368, 362, 324, 343, 324,<br /> /* 2200 */ 360, 194, 173, 324, 142, 324, 324, 82, 135, 324,<br /> /* 2210 */ 324, 289, 324, 324, 22, 27, 299, 361, 324, 360,<br /> /* 2220 */ 225, 368, 362, 142, 343, 324, 60, 135, 203, 324,<br /> /* 2230 */ 324, 324, 324, 324, 324, 299, 361, 324, 324, 225,<br /> /* 2240 */ 368, 362, 324, 343, 324, 324, 324, 360, 324, 324,<br /> /* 2250 */ 324, 93, 324, 324, 57, 120, 324, 324, 360, 324,<br /> /* 2260 */ 324, 324, 142, 299, 361, 58, 135, 225, 368, 362,<br /> /* 2270 */ 324, 343, 324, 324, 299, 361, 324, 324, 225, 368,<br /> /* 2280 */ 362, 324, 343, 324, 360, 324, 324, 324, 142, 324,<br /> /* 2290 */ 324, 59, 135, 324, 324, 324, 324, 324, 324, 324,<br /> /* 2300 */ 299, 361, 324, 360, 225, 368, 362, 93, 343, 324,<br /> /* 2310 */ 55, 120, 324, 324, 324, 324, 324, 324, 324, 299,<br /> /* 2320 */ 361, 324, 324, 215, 368, 362, 324, 343, 324, 324,<br /> /* 2330 */ 324, 360, 324, 324, 324, 142, 324, 324, 56, 135,<br /> /* 2340 */ 324, 324, 360, 324, 324, 324, 142, 299, 361, 78,<br /> /* 2350 */ 135, 225, 368, 362, 324, 343, 324, 324, 299, 361,<br /> /* 2360 */ 324, 324, 225, 368, 362, 324, 343, 324, 360, 324,<br /> /* 2370 */ 324, 324, 142, 324, 324, 67, 135, 324, 324, 324,<br /> /* 2380 */ 324, 324, 324, 324, 299, 361, 324, 324, 217, 368,<br /> /* 2390 */ 362, 324, 343,<br /> )</span> (line <span class="line-number">223</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_default" id="$yy_default"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_default</span> - = <span class="var-default">array(<br /> /* 0 */ 390, 571, 588, 588, 542, 542, 542, 588, 588, 588,<br /> /* 10 */ 588, 588, 588, 588, 588, 588, 588, 588, 588, 588,<br /> /* 20 */ 588, 588, 588, 588, 588, 588, 588, 588, 588, 588,<br /> /* 30 */ 588, 588, 588, 588, 588, 588, 588, 588, 588, 588,<br /> /* 40 */ 588, 588, 588, 588, 588, 588, 588, 588, 588, 588,<br /> /* 50 */ 588, 588, 588, 588, 588, 588, 450, 450, 450, 450,<br /> /* 60 */ 588, 588, 588, 588, 455, 588, 588, 588, 588, 588,<br /> /* 70 */ 588, 573, 457, 541, 574, 455, 471, 460, 540, 480,<br /> /* 80 */ 484, 432, 461, 452, 479, 483, 572, 474, 475, 476,<br /> /* 90 */ 487, 488, 499, 463, 450, 387, 588, 450, 450, 554,<br /> /* 100 */ 588, 507, 470, 450, 450, 588, 588, 450, 450, 588,<br /> /* 110 */ 588, 463, 588, 515, 463, 463, 515, 463, 515, 588,<br /> /* 120 */ 508, 463, 508, 588, 588, 588, 588, 588, 588, 588,<br /> /* 130 */ 588, 588, 588, 588, 588, 508, 515, 588, 588, 588,<br /> /* 140 */ 588, 588, 463, 588, 588, 467, 450, 473, 551, 490,<br /> /* 150 */ 450, 468, 486, 491, 492, 508, 466, 549, 588, 516,<br /> /* 160 */ 588, 588, 588, 588, 533, 515, 532, 588, 588, 513,<br /> /* 170 */ 588, 588, 588, 588, 534, 588, 588, 588, 535, 588,<br /> /* 180 */ 588, 588, 588, 588, 588, 588, 588, 588, 588, 405,<br /> /* 190 */ 587, 587, 529, 555, 470, 552, 507, 543, 544, 515,<br /> /* 200 */ 515, 515, 548, 548, 548, 465, 499, 499, 588, 499,<br /> /* 210 */ 499, 588, 527, 485, 499, 489, 588, 489, 588, 588,<br /> /* 220 */ 495, 588, 588, 588, 527, 489, 588, 588, 588, 527,<br /> /* 230 */ 495, 588, 553, 588, 588, 588, 497, 588, 588, 588,<br /> /* 240 */ 588, 588, 588, 588, 588, 588, 501, 527, 588, 458,<br /> /* 250 */ 588, 588, 588, 435, 524, 439, 501, 523, 511, 569,<br /> /* 260 */ 521, 415, 522, 570, 520, 388, 537, 512, 440, 462,<br /> /* 270 */ 459, 429, 550, 586, 430, 536, 528, 538, 539, 434,<br /> /* 280 */ 433, 565, 441, 527, 442, 547, 443, 526, 438, 449,<br /> /* 290 */ 428, 431, 436, 437, 444, 445, 498, 496, 504, 464,<br /> /* 300 */ 465, 494, 493, 545, 546, 446, 447, 427, 448, 397,<br /> /* 310 */ 396, 398, 399, 400, 395, 394, 389, 391, 392, 393,<br /> /* 320 */ 401, 402, 411, 410, 412, 413, 414, 409, 408, 403,<br /> /* 330 */ 404, 406, 407, 509, 514, 421, 420, 530, 422, 423,<br /> /* 340 */ 419, 418, 531, 510, 416, 417, 583, 424, 426, 581,<br /> /* 350 */ 579, 584, 585, 578, 580, 577, 425, 582, 575, 576,<br /> /* 360 */ 506, 469, 503, 502, 505, 477, 478, 472, 500, 517,<br /> /* 370 */ 525, 518, 519, 481, 482, 563, 562, 564, 566, 567,<br /> /* 380 */ 561, 560, 556, 557, 558, 559, 568,<br />)</span> (line <span class="line-number">1151</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_lookahead" id="$yy_lookahead"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_lookahead</span> - = <span class="var-default">array(<br /> /* 0 */ 1, 82, 83, 84, 3, 4, 5, 6, 7, 8,<br /> /* 10 */ 9, 10, 11, 12, 18, 89, 15, 80, 81, 82,<br /> /* 20 */ 83, 84, 21, 22, 98, 26, 15, 28, 27, 18,<br /> /* 30 */ 19, 116, 31, 32, 33, 24, 110, 38, 39, 40,<br /> /* 40 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,<br /> /* 50 */ 51, 4, 5, 6, 7, 8, 60, 1, 36, 12,<br /> /* 60 */ 13, 14, 1, 64, 65, 66, 67, 68, 69, 70,<br /> /* 70 */ 71, 72, 73, 74, 75, 1, 83, 16, 88, 57,<br /> /* 80 */ 87, 59, 88, 90, 91, 63, 30, 16, 15, 28,<br /> /* 90 */ 16, 18, 99, 100, 19, 20, 103, 104, 105, 28,<br /> /* 100 */ 107, 28, 28, 30, 2, 115, 116, 36, 52, 115,<br /> /* 110 */ 117, 118, 38, 39, 40, 41, 42, 43, 44, 45,<br /> /* 120 */ 46, 47, 48, 49, 50, 51, 83, 88, 89, 109,<br /> /* 130 */ 59, 111, 112, 15, 59, 17, 18, 98, 64, 65,<br /> /* 140 */ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,<br /> /* 150 */ 1, 83, 34, 15, 115, 87, 18, 19, 90, 91,<br /> /* 160 */ 92, 15, 119, 120, 18, 16, 16, 99, 100, 19,<br /> /* 170 */ 89, 103, 104, 105, 28, 107, 30, 28, 28, 98,<br /> /* 180 */ 36, 15, 15, 17, 18, 18, 36, 38, 39, 40,<br /> /* 190 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,<br /> /* 200 */ 51, 88, 89, 59, 15, 57, 30, 18, 19, 59,<br /> /* 210 */ 62, 98, 36, 64, 65, 66, 67, 68, 69, 70,<br /> /* 220 */ 71, 72, 73, 74, 75, 1, 83, 60, 115, 16,<br /> /* 230 */ 87, 97, 15, 90, 91, 59, 1, 24, 19, 20,<br /> /* 240 */ 16, 15, 99, 100, 18, 20, 103, 104, 105, 60,<br /> /* 250 */ 107, 16, 28, 36, 84, 20, 86, 114, 111, 112,<br /> /* 260 */ 17, 18, 38, 39, 40, 41, 42, 43, 44, 45,<br /> /* 270 */ 46, 47, 48, 49, 50, 51, 1, 2, 59, 91,<br /> /* 280 */ 92, 93, 57, 111, 112, 24, 60, 62, 64, 65,<br /> /* 290 */ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,<br /> /* 300 */ 89, 1, 88, 89, 61, 35, 35, 37, 37, 98,<br /> /* 310 */ 17, 18, 98, 38, 39, 40, 41, 42, 43, 44,<br /> /* 320 */ 45, 46, 47, 48, 49, 50, 51, 1, 89, 115,<br /> /* 330 */ 35, 35, 37, 88, 88, 91, 92, 98, 77, 64,<br /> /* 340 */ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,<br /> /* 350 */ 75, 23, 52, 89, 115, 29, 108, 97, 110, 63,<br /> /* 360 */ 115, 115, 98, 35, 38, 39, 40, 41, 42, 43,<br /> /* 370 */ 44, 45, 46, 47, 48, 49, 50, 51, 1, 115,<br /> /* 380 */ 89, 15, 15, 15, 18, 18, 18, 95, 17, 98,<br /> /* 390 */ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,<br /> /* 400 */ 74, 75, 110, 89, 91, 92, 115, 36, 1, 108,<br /> /* 410 */ 15, 110, 98, 18, 108, 38, 39, 40, 41, 42,<br /> /* 420 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 115,<br /> /* 430 */ 106, 106, 36, 15, 97, 28, 18, 113, 113, 108,<br /> /* 440 */ 95, 64, 65, 66, 67, 68, 69, 70, 71, 72,<br /> /* 450 */ 73, 74, 75, 1, 77, 110, 83, 108, 15, 18,<br /> /* 460 */ 87, 18, 83, 90, 91, 20, 87, 17, 19, 91,<br /> /* 470 */ 91, 28, 99, 100, 1, 23, 103, 104, 105, 100,<br /> /* 480 */ 107, 103, 103, 104, 105, 107, 107, 114, 2, 16,<br /> /* 490 */ 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,<br /> /* 500 */ 48, 49, 50, 51, 59, 19, 57, 19, 37, 61,<br /> /* 510 */ 18, 17, 53, 2, 18, 95, 64, 65, 66, 67,<br /> /* 520 */ 68, 69, 70, 71, 72, 73, 74, 75, 1, 83,<br /> /* 530 */ 110, 89, 63, 87, 83, 25, 90, 91, 87, 17,<br /> /* 540 */ 98, 18, 91, 16, 1, 99, 100, 1, 2, 103,<br /> /* 550 */ 104, 105, 110, 107, 103, 104, 105, 18, 107, 16,<br /> /* 560 */ 114, 61, 16, 34, 1, 38, 39, 40, 41, 42,<br /> /* 570 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 16,<br /> /* 580 */ 89, 2, 18, 17, 24, 57, 34, 36, 17, 98,<br /> /* 590 */ 95, 64, 65, 66, 67, 68, 69, 70, 71, 72,<br /> /* 600 */ 73, 74, 75, 1, 83, 110, 89, 18, 87, 18,<br /> /* 610 */ 16, 90, 91, 92, 89, 98, 96, 16, 16, 16,<br /> /* 620 */ 99, 100, 28, 98, 103, 104, 105, 110, 107, 28,<br /> /* 630 */ 110, 28, 18, 18, 98, 110, 20, 1, 28, 109,<br /> /* 640 */ 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,<br /> /* 650 */ 48, 49, 50, 51, 1, 115, 108, 28, 113, 110,<br /> /* 660 */ 28, 94, 112, 95, 95, 95, 64, 65, 66, 67,<br /> /* 670 */ 68, 69, 70, 71, 72, 73, 74, 75, 110, 110,<br /> /* 680 */ 110, 85, 94, 13, 121, 121, 121, 121, 121, 121,<br /> /* 690 */ 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,<br /> /* 700 */ 47, 48, 49, 50, 51, 1, 121, 121, 121, 121,<br /> /* 710 */ 121, 121, 121, 121, 95, 95, 95, 64, 65, 66,<br /> /* 720 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 110,<br /> /* 730 */ 110, 110, 121, 121, 121, 121, 121, 121, 121, 121,<br /> /* 740 */ 121, 37, 38, 39, 40, 41, 42, 43, 44, 45,<br /> /* 750 */ 46, 47, 48, 49, 50, 51, 1, 121, 121, 121,<br /> /* 760 */ 121, 121, 121, 121, 121, 121, 121, 121, 64, 65,<br /> /* 770 */ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,<br /> /* 780 */ 83, 121, 121, 28, 121, 121, 121, 121, 121, 121,<br /> /* 790 */ 121, 121, 121, 38, 39, 40, 41, 42, 43, 44,<br /> /* 800 */ 45, 46, 47, 48, 49, 50, 51, 1, 121, 121,<br /> /* 810 */ 121, 121, 121, 121, 121, 121, 121, 120, 121, 64,<br /> /* 820 */ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,<br /> /* 830 */ 75, 121, 121, 121, 121, 121, 121, 121, 121, 121,<br /> /* 840 */ 121, 121, 121, 121, 38, 39, 40, 41, 42, 43,<br /> /* 850 */ 44, 45, 46, 47, 48, 49, 50, 51, 121, 121,<br /> /* 860 */ 121, 121, 121, 121, 121, 121, 121, 121, 121, 63,<br /> /* 870 */ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,<br /> /* 880 */ 74, 75, 1, 121, 121, 121, 88, 83, 1, 16,<br /> /* 890 */ 16, 87, 121, 10, 16, 91, 121, 16, 15, 101,<br /> /* 900 */ 102, 28, 28, 16, 21, 22, 28, 103, 104, 105,<br /> /* 910 */ 27, 107, 121, 115, 31, 32, 33, 121, 1, 38,<br /> /* 920 */ 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,<br /> /* 930 */ 49, 50, 51, 16, 121, 121, 121, 121, 121, 52,<br /> /* 940 */ 121, 121, 121, 121, 121, 64, 65, 66, 67, 68,<br /> /* 950 */ 69, 70, 71, 72, 73, 74, 75, 1, 121, 76,<br /> /* 960 */ 77, 78, 83, 16, 16, 16, 87, 121, 10, 16,<br /> /* 970 */ 91, 121, 16, 15, 121, 28, 28, 28, 121, 21,<br /> /* 980 */ 22, 28, 103, 104, 105, 27, 107, 121, 121, 31,<br /> /* 990 */ 32, 33, 121, 121, 38, 39, 40, 41, 42, 43,<br /> /* 1000 */ 44, 45, 46, 47, 48, 49, 50, 51, 1, 121,<br /> /* 1010 */ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,<br /> /* 1020 */ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,<br /> /* 1030 */ 74, 75, 121, 121, 76, 77, 78, 121, 121, 121,<br /> /* 1040 */ 121, 121, 121, 121, 121, 38, 39, 40, 41, 42,<br /> /* 1050 */ 43, 44, 45, 46, 47, 48, 49, 50, 51, 121,<br /> /* 1060 */ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,<br /> /* 1070 */ 121, 64, 65, 66, 67, 68, 69, 70, 71, 72,<br /> /* 1080 */ 73, 74, 75, 121, 38, 39, 40, 41, 42, 43,<br /> /* 1090 */ 44, 45, 46, 47, 48, 49, 50, 51, 121, 121,<br /> /* 1100 */ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,<br /> /* 1110 */ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,<br /> /* 1120 */ 74, 75, 121, 121, 121, 121, 15, 121, 17, 18,<br /> /* 1130 */ 121, 83, 21, 22, 16, 87, 121, 16, 27, 91,<br /> /* 1140 */ 121, 121, 31, 32, 33, 34, 28, 36, 100, 28,<br /> /* 1150 */ 39, 103, 104, 105, 121, 107, 83, 121, 121, 121,<br /> /* 1160 */ 87, 121, 121, 121, 91, 54, 55, 56, 57, 58,<br /> /* 1170 */ 121, 83, 61, 62, 63, 87, 103, 104, 105, 91,<br /> /* 1180 */ 107, 121, 15, 121, 17, 18, 121, 76, 21, 22,<br /> /* 1190 */ 16, 103, 104, 105, 27, 107, 16, 16, 31, 32,<br /> /* 1200 */ 33, 34, 28, 36, 16, 121, 39, 16, 28, 28,<br /> /* 1210 */ 83, 121, 121, 121, 87, 121, 28, 90, 91, 28,<br /> /* 1220 */ 1, 54, 55, 56, 57, 58, 99, 100, 61, 62,<br /> /* 1230 */ 103, 104, 105, 1, 107, 16, 121, 16, 15, 121,<br /> /* 1240 */ 17, 18, 121, 76, 21, 22, 16, 28, 16, 28,<br /> /* 1250 */ 27, 16, 20, 121, 31, 32, 33, 34, 28, 36,<br /> /* 1260 */ 28, 121, 39, 28, 16, 121, 83, 121, 36, 121,<br /> /* 1270 */ 87, 52, 121, 90, 91, 121, 28, 54, 55, 56,<br /> /* 1280 */ 57, 58, 99, 100, 61, 62, 103, 104, 105, 121,<br /> /* 1290 */ 107, 59, 121, 121, 15, 121, 17, 18, 121, 76,<br /> /* 1300 */ 21, 22, 121, 121, 121, 121, 27, 121, 121, 121,<br /> /* 1310 */ 31, 32, 33, 34, 121, 36, 121, 121, 39, 121,<br /> /* 1320 */ 121, 121, 83, 121, 121, 121, 87, 121, 121, 90,<br /> /* 1330 */ 91, 121, 1, 54, 55, 56, 57, 58, 99, 100,<br /> /* 1340 */ 61, 62, 103, 104, 105, 121, 107, 16, 121, 121,<br /> /* 1350 */ 15, 121, 17, 18, 121, 76, 21, 22, 121, 28,<br /> /* 1360 */ 29, 121, 27, 121, 121, 121, 31, 32, 33, 34,<br /> /* 1370 */ 121, 36, 121, 121, 39, 121, 121, 121, 83, 121,<br /> /* 1380 */ 121, 121, 87, 52, 121, 90, 91, 121, 1, 54,<br /> /* 1390 */ 55, 56, 57, 58, 99, 100, 61, 62, 103, 104,<br /> /* 1400 */ 105, 121, 107, 16, 121, 121, 15, 121, 17, 18,<br /> /* 1410 */ 121, 76, 21, 22, 121, 28, 121, 121, 27, 121,<br /> /* 1420 */ 121, 121, 31, 32, 33, 34, 121, 36, 121, 121,<br /> /* 1430 */ 39, 121, 121, 121, 83, 121, 121, 121, 87, 52,<br /> /* 1440 */ 121, 90, 91, 121, 1, 54, 55, 56, 57, 58,<br /> /* 1450 */ 99, 100, 61, 62, 103, 104, 105, 121, 107, 16,<br /> /* 1460 */ 121, 121, 15, 121, 17, 18, 121, 76, 21, 22,<br /> /* 1470 */ 121, 28, 121, 121, 27, 121, 121, 121, 31, 32,<br /> /* 1480 */ 33, 34, 121, 36, 121, 121, 39, 121, 121, 121,<br /> /* 1490 */ 83, 121, 121, 121, 87, 52, 121, 90, 91, 121,<br /> /* 1500 */ 121, 54, 55, 56, 57, 58, 99, 100, 61, 62,<br /> /* 1510 */ 103, 104, 105, 121, 107, 121, 121, 121, 15, 121,<br /> /* 1520 */ 17, 18, 121, 76, 21, 22, 121, 121, 121, 121,<br /> /* 1530 */ 27, 121, 121, 121, 31, 32, 33, 34, 121, 36,<br /> /* 1540 */ 121, 121, 39, 121, 121, 121, 83, 121, 121, 121,<br /> /* 1550 */ 87, 121, 121, 90, 91, 121, 121, 54, 55, 56,<br /> /* 1560 */ 57, 58, 99, 100, 61, 62, 103, 104, 105, 121,<br /> /* 1570 */ 107, 121, 121, 121, 15, 121, 17, 18, 121, 76,<br /> /* 1580 */ 21, 22, 121, 121, 121, 121, 27, 121, 121, 121,<br /> /* 1590 */ 31, 32, 33, 34, 121, 36, 121, 121, 39, 121,<br /> /* 1600 */ 121, 121, 83, 121, 121, 121, 87, 121, 121, 90,<br /> /* 1610 */ 91, 121, 121, 54, 55, 56, 57, 58, 99, 100,<br /> /* 1620 */ 61, 62, 103, 104, 105, 121, 107, 121, 121, 121,<br /> /* 1630 */ 15, 121, 17, 18, 121, 76, 21, 22, 121, 121,<br /> /* 1640 */ 121, 121, 27, 121, 121, 121, 31, 32, 33, 34,<br /> /* 1650 */ 121, 36, 121, 121, 39, 121, 121, 121, 83, 121,<br /> /* 1660 */ 121, 121, 87, 121, 121, 90, 91, 121, 121, 54,<br /> /* 1670 */ 55, 56, 57, 58, 99, 100, 61, 62, 103, 104,<br /> /* 1680 */ 105, 121, 107, 121, 121, 121, 15, 121, 17, 18,<br /> /* 1690 */ 121, 76, 21, 22, 121, 121, 121, 121, 27, 121,<br /> /* 1700 */ 121, 121, 31, 32, 33, 34, 121, 36, 121, 121,<br /> /* 1710 */ 39, 121, 121, 121, 83, 121, 121, 121, 87, 121,<br /> /* 1720 */ 121, 90, 91, 121, 121, 54, 55, 56, 57, 58,<br /> /* 1730 */ 99, 100, 61, 121, 103, 104, 105, 121, 107, 121,<br /> /* 1740 */ 121, 121, 15, 121, 17, 18, 121, 76, 21, 22,<br /> /* 1750 */ 121, 121, 121, 121, 27, 121, 121, 121, 31, 32,<br /> /* 1760 */ 33, 34, 121, 36, 88, 89, 39, 121, 121, 121,<br /> /* 1770 */ 121, 121, 121, 121, 98, 121, 121, 101, 102, 121,<br /> /* 1780 */ 16, 54, 55, 56, 57, 58, 121, 23, 61, 25,<br /> /* 1790 */ 26, 115, 28, 29, 121, 121, 121, 121, 121, 35,<br /> /* 1800 */ 36, 37, 121, 76, 121, 121, 121, 121, 121, 121,<br /> /* 1810 */ 121, 121, 121, 83, 121, 121, 52, 87, 121, 121,<br /> /* 1820 */ 90, 91, 121, 59, 121, 121, 121, 63, 121, 99,<br /> /* 1830 */ 100, 121, 121, 103, 104, 105, 121, 107, 83, 121,<br /> /* 1840 */ 121, 77, 87, 121, 121, 90, 91, 121, 118, 121,<br /> /* 1850 */ 121, 121, 121, 121, 99, 100, 121, 121, 103, 104,<br /> /* 1860 */ 105, 121, 107, 121, 83, 121, 121, 121, 87, 121,<br /> /* 1870 */ 121, 90, 91, 121, 83, 121, 121, 121, 87, 121,<br /> /* 1880 */ 99, 100, 91, 83, 103, 104, 105, 87, 107, 121,<br /> /* 1890 */ 90, 91, 121, 121, 103, 104, 105, 121, 107, 99,<br /> /* 1900 */ 100, 121, 121, 103, 104, 105, 121, 107, 121, 121,<br /> /* 1910 */ 121, 83, 121, 121, 121, 87, 121, 121, 90, 91,<br /> /* 1920 */ 121, 121, 83, 121, 121, 121, 87, 99, 100, 90,<br /> /* 1930 */ 91, 103, 104, 105, 121, 107, 121, 121, 99, 100,<br /> /* 1940 */ 121, 121, 103, 104, 105, 121, 107, 121, 83, 121,<br /> /* 1950 */ 121, 121, 87, 121, 121, 90, 91, 121, 83, 121,<br /> /* 1960 */ 121, 121, 87, 121, 99, 100, 91, 83, 103, 104,<br /> /* 1970 */ 105, 87, 107, 121, 90, 91, 121, 121, 103, 104,<br /> /* 1980 */ 105, 121, 107, 99, 100, 121, 121, 103, 104, 105,<br /> /* 1990 */ 121, 107, 121, 121, 121, 83, 121, 121, 121, 87,<br /> /* 2000 */ 121, 121, 90, 91, 121, 121, 83, 121, 121, 121,<br /> /* 2010 */ 87, 99, 100, 90, 91, 103, 104, 105, 121, 107,<br /> /* 2020 */ 121, 121, 99, 100, 121, 121, 103, 104, 105, 121,<br /> /* 2030 */ 107, 121, 83, 88, 89, 121, 87, 121, 121, 90,<br /> /* 2040 */ 91, 121, 121, 98, 121, 121, 101, 102, 99, 100,<br /> /* 2050 */ 121, 83, 103, 104, 105, 87, 107, 121, 90, 91,<br /> /* 2060 */ 115, 121, 121, 121, 88, 89, 121, 99, 100, 121,<br /> /* 2070 */ 121, 103, 104, 105, 98, 107, 121, 101, 102, 83,<br /> /* 2080 */ 121, 121, 121, 87, 121, 121, 90, 91, 121, 121,<br /> /* 2090 */ 83, 115, 121, 121, 87, 99, 100, 90, 91, 103,<br /> /* 2100 */ 104, 105, 121, 107, 121, 121, 99, 100, 121, 121,<br /> /* 2110 */ 103, 104, 105, 121, 107, 121, 83, 88, 89, 121,<br /> /* 2120 */ 87, 121, 121, 90, 91, 121, 121, 98, 121, 121,<br /> /* 2130 */ 101, 102, 99, 100, 121, 83, 103, 104, 105, 87,<br /> /* 2140 */ 107, 121, 90, 91, 115, 121, 121, 121, 88, 89,<br /> /* 2150 */ 121, 99, 100, 121, 121, 103, 104, 105, 98, 107,<br /> /* 2160 */ 121, 101, 102, 83, 121, 121, 121, 87, 121, 121,<br /> /* 2170 */ 90, 91, 121, 121, 83, 115, 121, 121, 87, 99,<br /> /* 2180 */ 100, 90, 91, 103, 104, 105, 121, 107, 121, 121,<br /> /* 2190 */ 99, 100, 121, 121, 103, 104, 105, 121, 107, 121,<br /> /* 2200 */ 83, 88, 89, 121, 87, 121, 121, 90, 91, 121,<br /> /* 2210 */ 121, 98, 121, 121, 101, 102, 99, 100, 121, 83,<br /> /* 2220 */ 103, 104, 105, 87, 107, 121, 90, 91, 115, 121,<br /> /* 2230 */ 121, 121, 121, 121, 121, 99, 100, 121, 121, 103,<br /> /* 2240 */ 104, 105, 121, 107, 121, 121, 121, 83, 121, 121,<br /> /* 2250 */ 121, 87, 121, 121, 90, 91, 121, 121, 83, 121,<br /> /* 2260 */ 121, 121, 87, 99, 100, 90, 91, 103, 104, 105,<br /> /* 2270 */ 121, 107, 121, 121, 99, 100, 121, 121, 103, 104,<br /> /* 2280 */ 105, 121, 107, 121, 83, 121, 121, 121, 87, 121,<br /> /* 2290 */ 121, 90, 91, 121, 121, 121, 121, 121, 121, 121,<br /> /* 2300 */ 99, 100, 121, 83, 103, 104, 105, 87, 107, 121,<br /> /* 2310 */ 90, 91, 121, 121, 121, 121, 121, 121, 121, 99,<br /> /* 2320 */ 100, 121, 121, 103, 104, 105, 121, 107, 121, 121,<br /> /* 2330 */ 121, 83, 121, 121, 121, 87, 121, 121, 90, 91,<br /> /* 2340 */ 121, 121, 83, 121, 121, 121, 87, 99, 100, 90,<br /> /* 2350 */ 91, 103, 104, 105, 121, 107, 121, 121, 99, 100,<br /> /* 2360 */ 121, 121, 103, 104, 105, 121, 107, 121, 83, 121,<br /> /* 2370 */ 121, 121, 87, 121, 121, 90, 91, 121, 121, 121,<br /> /* 2380 */ 121, 121, 121, 121, 99, 100, 121, 121, 103, 104,<br /> /* 2390 */ 105, 121, 107,<br />)</span> (line <span class="line-number">465</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_reduce_ofst" id="$yy_reduce_ofst"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_reduce_ofst</span> - = <span class="var-default">array(<br /> /* 0 */ -63, -7, 1730, 68, 446, 373, 143, 521, 2091, 2117,<br /> /* 10 */ 1800, 1407, 2080, 1884, 1912, 1575, 1949, 1923, 1865, 1968,<br /> /* 20 */ 1996, 2052, 2033, 2007, 1839, 1828, 1351, 1295, 1183, 1239,<br /> /* 30 */ 1463, 1519, 1781, 1755, 1631, 2175, 2248, 2201, 2164, 2285,<br /> /* 40 */ 2259, 2136, 2220, 1127, 379, 1048, 451, 1073, 804, 879,<br /> /* 50 */ 1875, 1791, 1088, 1976, 1945, 1676, 2060, 1676, 2113, 2029,<br /> /* 60 */ 798, 798, 798, 798, 798, 798, 798, 798, 798, 798,<br /> /* 70 */ 798, 798, 798, 798, 798, 798, 798, 798, 798, 798,<br /> /* 80 */ 798, 798, 798, 798, 798, 798, 798, 798, 798, 798,<br /> /* 90 */ 798, 798, 39, 113, 214, -81, 43, 442, -74, 20,<br /> /* 100 */ -10, 239, 264, 525, 517, 378, 188, 314, 291, 697,<br /> /* 110 */ 170, -6, 520, 248, -6, -6, 248, -6, 248, 246,<br /> /* 120 */ 172, -6, 172, 568, 313, 495, 495, 569, 570, 324,<br /> /* 130 */ 244, 292, 245, 420, 345, 172, 301, 495, 621, 491,<br /> /* 140 */ 495, 619, -6, 620, 325, -6, 211, -6, 147, -6,<br /> /* 150 */ 81, -6, -6, -6, -6, 172, -6, -6, 545, 549,<br /> /* 160 */ 536, 536, 536, 536, 530, 548, 530, 540, 536, 530,<br /> /* 170 */ 536, 536, 536, 536, 530, 540, 536, 536, 530, 536,<br /> /* 180 */ 540, 536, 536, 536, 536, 536, 536, 536, 536, 596,<br /> /* 190 */ 567, 588, 550, 550, 540, 550, 540, -85, -85, 331,<br /> /* 200 */ 306, 349, 337, 260, 134,<br />)</span> (line <span class="line-number">739</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yy_shift_ofst" id="$yy_shift_ofst"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$yy_shift_ofst</span> - = <span class="var-default">array(<br /> /* 0 */ 1, 1391, 1391, 1223, 1167, 1167, 1167, 1223, 1111, 1167,<br /> /* 10 */ 1167, 1167, 1503, 1167, 1559, 1167, 1167, 1167, 1167, 1167,<br /> /* 20 */ 1167, 1167, 1167, 1167, 1167, 1615, 1167, 1167, 1167, 1167,<br /> /* 30 */ 1503, 1167, 1167, 1447, 1167, 1167, 1167, 1167, 1279, 1167,<br /> /* 40 */ 1167, 1167, 1279, 1167, 1335, 1335, 1727, 1671, 1727, 1727,<br /> /* 50 */ 1727, 1727, 1727, 224, 74, 149, -1, 755, 755, 755,<br /> /* 60 */ 956, 881, 806, 527, 326, 704, 275, 377, 653, 602,<br /> /* 70 */ 452, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007,<br /> /* 80 */ 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007,<br /> /* 90 */ 1046, 1046, 1232, 1443, 407, 1, 958, 73, 146, 225,<br /> /* 100 */ 546, 61, 61, 443, 443, 243, 371, 407, 407, 883,<br /> /* 110 */ 47, 1331, 11, 189, 1387, 1219, 226, 56, 138, 235,<br /> /* 120 */ 75, 887, 219, 366, 371, 367, 366, 366, 368, 293,<br /> /* 130 */ 371, 366, 917, 366, 366, 445, 366, 418, 366, 1248,<br /> /* 140 */ 368, 366, 300, 395, 293, 636, 629, 636, 616, 636,<br /> /* 150 */ 610, 636, 636, 636, 636, 616, 636, -5, 166, 167,<br /> /* 160 */ 601, 603, 873, 594, 148, 217, 148, 473, 947, 148,<br /> /* 170 */ 874, 878, 948, 1235, 148, 543, 1191, 1221, 148, 1230,<br /> /* 180 */ 563, 1188, 1121, 1118, 953, 949, 1181, 1174, 1180, 670,<br /> /* 190 */ 632, 632, 616, 616, 636, 616, 636, 102, 102, 396,<br /> /* 200 */ -5, -5, -5, -5, -5, 1764, 150, 22, 118, 71,<br /> /* 210 */ 176, -4, 486, 144, 144, 213, 270, 261, 296, 328,<br /> /* 220 */ 449, 271, 295, 615, 579, 560, 566, 441, 564, 396,<br /> /* 230 */ 528, 591, 551, 589, 571, 614, 552, 529, 539, 494,<br /> /* 240 */ 448, 492, 471, 450, 488, 469, 459, 511, 522, 510,<br /> /* 250 */ 496, 523, 500,<br />)</span> (line <span class="line-number">709</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$retvalue" id="$retvalue"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$retvalue</span> - = <span class="var-default"> 0</span> (line <span class="line-number">96</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$successful" id="$successful"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$successful</span> - = <span class="var-default"> true</span> (line <span class="line-number">95</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyerrcnt" id="$yyerrcnt"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yyerrcnt</span> - (line <span class="line-number">1221</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyidx" id="$yyidx"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yyidx</span> - (line <span class="line-number">1220</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yystack" id="$yystack"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yystack</span> - = <span class="var-default">array()</span> (line <span class="line-number">1222</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$yyTokenName" id="$yyTokenName"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$yyTokenName</span> - = <span class="var-default">array(<br /> '$', 'VERT', 'COLON', 'COMMENT',<br /> 'PHPSTARTTAG', 'PHPENDTAG', 'ASPSTARTTAG', 'ASPENDTAG',<br /> 'FAKEPHPSTARTTAG', 'XMLTAG', 'OTHER', 'LINEBREAK',<br /> 'LITERALSTART', 'LITERALEND', 'LITERAL', 'LDEL',<br /> 'RDEL', 'DOLLAR', 'ID', 'EQUAL',<br /> 'PTR', 'LDELIF', 'LDELFOR', 'SEMICOLON',<br /> 'INCDEC', 'TO', 'STEP', 'LDELFOREACH',<br /> 'SPACE', 'AS', 'APTR', 'LDELSETFILTER',<br /> 'SMARTYBLOCKCHILD', 'LDELSLASH', 'INTEGER', 'COMMA',<br /> 'OPENP', 'CLOSEP', 'MATH', 'UNIMATH',<br /> 'ANDSYM', 'ISIN', 'ISDIVBY', 'ISNOTDIVBY',<br /> 'ISEVEN', 'ISNOTEVEN', 'ISEVENBY', 'ISNOTEVENBY',<br /> 'ISODD', 'ISNOTODD', 'ISODDBY', 'ISNOTODDBY',<br /> 'INSTANCEOF', 'QMARK', 'NOT', 'TYPECAST',<br /> 'HEX', 'DOT', 'SINGLEQUOTESTRING', 'DOUBLECOLON',<br /> 'AT', 'HATCH', 'OPENB', 'CLOSEB',<br /> 'EQUALS', 'NOTEQUALS', 'GREATERTHAN', 'LESSTHAN',<br /> 'GREATEREQUAL', 'LESSEQUAL', 'IDENTITY', 'NONEIDENTITY',<br /> 'MOD', 'LAND', 'LOR', 'LXOR',<br /> 'QUOTE', 'BACKTICK', 'DOLLARID', 'error',<br /> 'start', 'template', 'template_element', 'smartytag',<br /> 'literal', 'literal_elements', 'literal_element', 'value',<br /> 'modifierlist', 'attributes', 'expr', 'varindexed',<br /> 'statement', 'statements', 'optspace', 'varvar',<br /> 'foraction', 'modparameters', 'attribute', 'ternary',<br /> 'array', 'ifcond', 'lop', 'variable',<br /> 'function', 'doublequoted_with_quotes', 'static_class_access', 'object',<br /> 'arrayindex', 'indexdef', 'varvarele', 'objectchain',<br /> 'objectelement', 'method', 'params', 'modifier',<br /> 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted',<br /> 'doublequotedcontent',<br /> )</span> (line <span class="line-number">1224</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodescape_end_tag" id="escape_end_tag"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method escape_end_tag</span> (line <span class="line-number">124</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - escape_end_tag - </span> - (<span class="var-type"></span> <span class="var-name">$tag_text</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$tag_text</span> </li> - </ul> - - - </div> -<a name="methodescape_start_tag" id="escape_start_tag"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method escape_start_tag</span> (line <span class="line-number">119</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - escape_start_tag - </span> - (<span class="var-type"></span> <span class="var-name">$tag_text</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$tag_text</span> </li> - </ul> - - - </div> -<a name="methodPrintTrace" id="PrintTrace"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method PrintTrace</span> (line <span class="line-number">1212</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - PrintTrace - </span> - () - </div> - - - - </div> -<a name="methodTrace" id="Trace"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method Trace</span> (line <span class="line-number">1201</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - Trace - </span> - (<span class="var-type"></span> <span class="var-name">$TraceFILE</span>, <span class="var-type"></span> <span class="var-name">$zTracePrompt</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$TraceFILE</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$zTracePrompt</span> </li> - </ul> - - - </div> -<a name="methodyy_destructor" id="yy_destructor"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method yy_destructor</span> (line <span class="line-number">1474</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - yy_destructor - </span> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yypminor</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yymajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yypminor</span> </li> - </ul> - - - </div> - -<a name="methodcompileVariable" id="compileVariable"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compileVariable</span> (line <span class="line-number">128</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - compileVariable - </span> - (<span class="var-type"></span> <span class="var-name">$variable</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$variable</span> </li> - </ul> - - - </div> -<a name="methoddoParse" id="doParse"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">doParse</span> (line <span class="line-number">3128</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - doParse - </span> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$yytokenvalue</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yymajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yytokenvalue</span> </li> - </ul> - - - </div> -<a name="methodtokenName" id="tokenName"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">tokenName</span> (line <span class="line-number">1462</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - tokenName - </span> - (<span class="var-type"></span> <span class="var-name">$tokenType</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$tokenType</span> </li> - </ul> - - - </div> -<a name="methodyy_accept" id="yy_accept"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_accept</span> (line <span class="line-number">3111</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_accept - </span> - () - </div> - - - - </div> -<a name="methodyy_find_reduce_action" id="yy_find_reduce_action"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_find_reduce_action</span> (line <span class="line-number">1681</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_find_reduce_action - </span> - (<span class="var-type"></span> <span class="var-name">$stateno</span>, <span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$stateno</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$iLookAhead</span> </li> - </ul> - - - </div> -<a name="methodyy_find_shift_action" id="yy_find_shift_action"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_find_shift_action</span> (line <span class="line-number">1647</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_find_shift_action - </span> - (<span class="var-type"></span> <span class="var-name">$iLookAhead</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$iLookAhead</span> </li> - </ul> - - - </div> -<a name="methodyy_get_expected_tokens" id="yy_get_expected_tokens"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_get_expected_tokens</span> (line <span class="line-number">1508</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_get_expected_tokens - </span> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$token</span> </li> - </ul> - - - </div> -<a name="methodyy_is_expected_token" id="yy_is_expected_token"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_is_expected_token</span> (line <span class="line-number">1576</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_is_expected_token - </span> - (<span class="var-type"></span> <span class="var-name">$token</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$token</span> </li> - </ul> - - - </div> -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">100</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Templateparser</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"></span> <span class="var-name">$lex</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$lex</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - - </div> -<a name="method__destruct" id="__destruct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Destructor __destruct</span> (line <span class="line-number">1498</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __destruct - </span> - () - </div> - - - - </div> -<a name="methodyy_parse_failed" id="yy_parse_failed"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_parse_failed</span> (line <span class="line-number">3091</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_parse_failed - </span> - () - </div> - - - - </div> -<a name="methodyy_pop_parser_stack" id="yy_pop_parser_stack"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_pop_parser_stack</span> (line <span class="line-number">1481</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_pop_parser_stack - </span> - () - </div> - - - - </div> -<a name="methodyy_r0" id="yy_r0"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r0</span> (line <span class="line-number">2146</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r0 - </span> - () - </div> - - - - </div> -<a name="methodyy_r1" id="yy_r1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1</span> (line <span class="line-number">2151</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1 - </span> - () - </div> - - - - </div> -<a name="methodyy_r4" id="yy_r4"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4</span> (line <span class="line-number">2156</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4 - </span> - () - </div> - - - - </div> -<a name="methodyy_r5" id="yy_r5"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r5</span> (line <span class="line-number">2168</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r5 - </span> - () - </div> - - - - </div> -<a name="methodyy_r6" id="yy_r6"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r6</span> (line <span class="line-number">2173</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r6 - </span> - () - </div> - - - - </div> -<a name="methodyy_r7" id="yy_r7"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r7</span> (line <span class="line-number">2178</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r7 - </span> - () - </div> - - - - </div> -<a name="methodyy_r8" id="yy_r8"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r8</span> (line <span class="line-number">2194</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r8 - </span> - () - </div> - - - - </div> -<a name="methodyy_r9" id="yy_r9"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r9</span> (line <span class="line-number">2213</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r9 - </span> - () - </div> - - - - </div> -<a name="methodyy_r10" id="yy_r10"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r10</span> (line <span class="line-number">2237</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r10 - </span> - () - </div> - - - - </div> -<a name="methodyy_r11" id="yy_r11"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r11</span> (line <span class="line-number">2258</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r11 - </span> - () - </div> - - - - </div> -<a name="methodyy_r12" id="yy_r12"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r12</span> (line <span class="line-number">2267</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r12 - </span> - () - </div> - - - - </div> -<a name="methodyy_r13" id="yy_r13"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r13</span> (line <span class="line-number">2276</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r13 - </span> - () - </div> - - - - </div> -<a name="methodyy_r14" id="yy_r14"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r14</span> (line <span class="line-number">2285</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r14 - </span> - () - </div> - - - - </div> -<a name="methodyy_r15" id="yy_r15"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r15</span> (line <span class="line-number">2290</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r15 - </span> - () - </div> - - - - </div> -<a name="methodyy_r16" id="yy_r16"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r16</span> (line <span class="line-number">2295</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r16 - </span> - () - </div> - - - - </div> -<a name="methodyy_r17" id="yy_r17"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r17</span> (line <span class="line-number">2300</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r17 - </span> - () - </div> - - - - </div> -<a name="methodyy_r19" id="yy_r19"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r19</span> (line <span class="line-number">2305</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r19 - </span> - () - </div> - - - - </div> -<a name="methodyy_r21" id="yy_r21"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r21</span> (line <span class="line-number">2310</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r21 - </span> - () - </div> - - - - </div> -<a name="methodyy_r23" id="yy_r23"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r23</span> (line <span class="line-number">2315</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r23 - </span> - () - </div> - - - - </div> -<a name="methodyy_r24" id="yy_r24"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r24</span> (line <span class="line-number">2320</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r24 - </span> - () - </div> - - - - </div> -<a name="methodyy_r25" id="yy_r25"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r25</span> (line <span class="line-number">2325</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r25 - </span> - () - </div> - - - - </div> -<a name="methodyy_r26" id="yy_r26"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r26</span> (line <span class="line-number">2330</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r26 - </span> - () - </div> - - - - </div> -<a name="methodyy_r27" id="yy_r27"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r27</span> (line <span class="line-number">2335</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r27 - </span> - () - </div> - - - - </div> -<a name="methodyy_r28" id="yy_r28"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r28</span> (line <span class="line-number">2340</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r28 - </span> - () - </div> - - - - </div> -<a name="methodyy_r29" id="yy_r29"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r29</span> (line <span class="line-number">2345</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r29 - </span> - () - </div> - - - - </div> -<a name="methodyy_r31" id="yy_r31"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r31</span> (line <span class="line-number">2350</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r31 - </span> - () - </div> - - - - </div> -<a name="methodyy_r33" id="yy_r33"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r33</span> (line <span class="line-number">2355</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r33 - </span> - () - </div> - - - - </div> -<a name="methodyy_r34" id="yy_r34"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r34</span> (line <span class="line-number">2360</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r34 - </span> - () - </div> - - - - </div> -<a name="methodyy_r35" id="yy_r35"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r35</span> (line <span class="line-number">2365</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r35 - </span> - () - </div> - - - - </div> -<a name="methodyy_r36" id="yy_r36"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r36</span> (line <span class="line-number">2370</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r36 - </span> - () - </div> - - - - </div> -<a name="methodyy_r37" id="yy_r37"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r37</span> (line <span class="line-number">2375</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r37 - </span> - () - </div> - - - - </div> -<a name="methodyy_r38" id="yy_r38"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r38</span> (line <span class="line-number">2380</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r38 - </span> - () - </div> - - - - </div> -<a name="methodyy_r39" id="yy_r39"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r39</span> (line <span class="line-number">2386</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r39 - </span> - () - </div> - - - - </div> -<a name="methodyy_r40" id="yy_r40"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r40</span> (line <span class="line-number">2392</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r40 - </span> - () - </div> - - - - </div> -<a name="methodyy_r41" id="yy_r41"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r41</span> (line <span class="line-number">2398</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r41 - </span> - () - </div> - - - - </div> -<a name="methodyy_r42" id="yy_r42"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r42</span> (line <span class="line-number">2404</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r42 - </span> - () - </div> - - - - </div> -<a name="methodyy_r44" id="yy_r44"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r44</span> (line <span class="line-number">2410</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r44 - </span> - () - </div> - - - - </div> -<a name="methodyy_r45" id="yy_r45"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r45</span> (line <span class="line-number">2415</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r45 - </span> - () - </div> - - - - </div> -<a name="methodyy_r47" id="yy_r47"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r47</span> (line <span class="line-number">2420</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r47 - </span> - () - </div> - - - - </div> -<a name="methodyy_r48" id="yy_r48"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r48</span> (line <span class="line-number">2425</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r48 - </span> - () - </div> - - - - </div> -<a name="methodyy_r49" id="yy_r49"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r49</span> (line <span class="line-number">2430</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r49 - </span> - () - </div> - - - - </div> -<a name="methodyy_r50" id="yy_r50"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r50</span> (line <span class="line-number">2435</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r50 - </span> - () - </div> - - - - </div> -<a name="methodyy_r51" id="yy_r51"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r51</span> (line <span class="line-number">2440</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r51 - </span> - () - </div> - - - - </div> -<a name="methodyy_r52" id="yy_r52"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r52</span> (line <span class="line-number">2445</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r52 - </span> - () - </div> - - - - </div> -<a name="methodyy_r53" id="yy_r53"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r53</span> (line <span class="line-number">2450</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r53 - </span> - () - </div> - - - - </div> -<a name="methodyy_r54" id="yy_r54"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r54</span> (line <span class="line-number">2455</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r54 - </span> - () - </div> - - - - </div> -<a name="methodyy_r55" id="yy_r55"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r55</span> (line <span class="line-number">2460</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r55 - </span> - () - </div> - - - - </div> -<a name="methodyy_r56" id="yy_r56"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r56</span> (line <span class="line-number">2465</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r56 - </span> - () - </div> - - - - </div> -<a name="methodyy_r57" id="yy_r57"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r57</span> (line <span class="line-number">2470</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r57 - </span> - () - </div> - - - - </div> -<a name="methodyy_r58" id="yy_r58"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r58</span> (line <span class="line-number">2475</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r58 - </span> - () - </div> - - - - </div> -<a name="methodyy_r59" id="yy_r59"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r59</span> (line <span class="line-number">2480</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r59 - </span> - () - </div> - - - - </div> -<a name="methodyy_r60" id="yy_r60"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r60</span> (line <span class="line-number">2485</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r60 - </span> - () - </div> - - - - </div> -<a name="methodyy_r61" id="yy_r61"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r61</span> (line <span class="line-number">2490</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r61 - </span> - () - </div> - - - - </div> -<a name="methodyy_r62" id="yy_r62"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r62</span> (line <span class="line-number">2496</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r62 - </span> - () - </div> - - - - </div> -<a name="methodyy_r63" id="yy_r63"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r63</span> (line <span class="line-number">2501</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r63 - </span> - () - </div> - - - - </div> -<a name="methodyy_r64" id="yy_r64"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r64</span> (line <span class="line-number">2506</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r64 - </span> - () - </div> - - - - </div> -<a name="methodyy_r65" id="yy_r65"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r65</span> (line <span class="line-number">2519</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r65 - </span> - () - </div> - - - - </div> -<a name="methodyy_r67" id="yy_r67"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r67</span> (line <span class="line-number">2524</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r67 - </span> - () - </div> - - - - </div> -<a name="methodyy_r72" id="yy_r72"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r72</span> (line <span class="line-number">2529</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r72 - </span> - () - </div> - - - - </div> -<a name="methodyy_r73" id="yy_r73"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r73</span> (line <span class="line-number">2535</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r73 - </span> - () - </div> - - - - </div> -<a name="methodyy_r78" id="yy_r78"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r78</span> (line <span class="line-number">2540</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r78 - </span> - () - </div> - - - - </div> -<a name="methodyy_r79" id="yy_r79"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r79</span> (line <span class="line-number">2545</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r79 - </span> - () - </div> - - - - </div> -<a name="methodyy_r83" id="yy_r83"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r83</span> (line <span class="line-number">2550</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r83 - </span> - () - </div> - - - - </div> -<a name="methodyy_r84" id="yy_r84"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r84</span> (line <span class="line-number">2555</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r84 - </span> - () - </div> - - - - </div> -<a name="methodyy_r85" id="yy_r85"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r85</span> (line <span class="line-number">2560</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r85 - </span> - () - </div> - - - - </div> -<a name="methodyy_r86" id="yy_r86"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r86</span> (line <span class="line-number">2565</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r86 - </span> - () - </div> - - - - </div> -<a name="methodyy_r88" id="yy_r88"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r88</span> (line <span class="line-number">2570</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r88 - </span> - () - </div> - - - - </div> -<a name="methodyy_r89" id="yy_r89"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r89</span> (line <span class="line-number">2575</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r89 - </span> - () - </div> - - - - </div> -<a name="methodyy_r90" id="yy_r90"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r90</span> (line <span class="line-number">2580</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r90 - </span> - () - </div> - - - - </div> -<a name="methodyy_r91" id="yy_r91"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r91</span> (line <span class="line-number">2585</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r91 - </span> - () - </div> - - - - </div> -<a name="methodyy_r92" id="yy_r92"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r92</span> (line <span class="line-number">2590</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r92 - </span> - () - </div> - - - - </div> -<a name="methodyy_r93" id="yy_r93"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r93</span> (line <span class="line-number">2595</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r93 - </span> - () - </div> - - - - </div> -<a name="methodyy_r99" id="yy_r99"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r99</span> (line <span class="line-number">2600</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r99 - </span> - () - </div> - - - - </div> -<a name="methodyy_r100" id="yy_r100"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r100</span> (line <span class="line-number">2607</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r100 - </span> - () - </div> - - - - </div> -<a name="methodyy_r101" id="yy_r101"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r101</span> (line <span class="line-number">2612</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r101 - </span> - () - </div> - - - - </div> -<a name="methodyy_r104" id="yy_r104"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r104</span> (line <span class="line-number">2617</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r104 - </span> - () - </div> - - - - </div> -<a name="methodyy_r109" id="yy_r109"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r109</span> (line <span class="line-number">2622</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r109 - </span> - () - </div> - - - - </div> -<a name="methodyy_r110" id="yy_r110"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r110</span> (line <span class="line-number">2627</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r110 - </span> - () - </div> - - - - </div> -<a name="methodyy_r111" id="yy_r111"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r111</span> (line <span class="line-number">2632</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r111 - </span> - () - </div> - - - - </div> -<a name="methodyy_r112" id="yy_r112"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r112</span> (line <span class="line-number">2637</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r112 - </span> - () - </div> - - - - </div> -<a name="methodyy_r114" id="yy_r114"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r114</span> (line <span class="line-number">2650</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r114 - </span> - () - </div> - - - - </div> -<a name="methodyy_r117" id="yy_r117"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r117</span> (line <span class="line-number">2655</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r117 - </span> - () - </div> - - - - </div> -<a name="methodyy_r118" id="yy_r118"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r118</span> (line <span class="line-number">2668</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r118 - </span> - () - </div> - - - - </div> -<a name="methodyy_r119" id="yy_r119"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r119</span> (line <span class="line-number">2677</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r119 - </span> - () - </div> - - - - </div> -<a name="methodyy_r121" id="yy_r121"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r121</span> (line <span class="line-number">2684</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r121 - </span> - () - </div> - - - - </div> -<a name="methodyy_r122" id="yy_r122"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r122</span> (line <span class="line-number">2697</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r122 - </span> - () - </div> - - - - </div> -<a name="methodyy_r124" id="yy_r124"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r124</span> (line <span class="line-number">2702</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r124 - </span> - () - </div> - - - - </div> -<a name="methodyy_r125" id="yy_r125"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r125</span> (line <span class="line-number">2707</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r125 - </span> - () - </div> - - - - </div> -<a name="methodyy_r126" id="yy_r126"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r126</span> (line <span class="line-number">2712</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r126 - </span> - () - </div> - - - - </div> -<a name="methodyy_r128" id="yy_r128"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r128</span> (line <span class="line-number">2717</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r128 - </span> - () - </div> - - - - </div> -<a name="methodyy_r129" id="yy_r129"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r129</span> (line <span class="line-number">2722</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r129 - </span> - () - </div> - - - - </div> -<a name="methodyy_r130" id="yy_r130"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r130</span> (line <span class="line-number">2727</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r130 - </span> - () - </div> - - - - </div> -<a name="methodyy_r131" id="yy_r131"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r131</span> (line <span class="line-number">2732</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r131 - </span> - () - </div> - - - - </div> -<a name="methodyy_r132" id="yy_r132"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r132</span> (line <span class="line-number">2737</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r132 - </span> - () - </div> - - - - </div> -<a name="methodyy_r133" id="yy_r133"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r133</span> (line <span class="line-number">2742</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r133 - </span> - () - </div> - - - - </div> -<a name="methodyy_r134" id="yy_r134"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r134</span> (line <span class="line-number">2747</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r134 - </span> - () - </div> - - - - </div> -<a name="methodyy_r135" id="yy_r135"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r135</span> (line <span class="line-number">2752</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r135 - </span> - () - </div> - - - - </div> -<a name="methodyy_r137" id="yy_r137"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r137</span> (line <span class="line-number">2757</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r137 - </span> - () - </div> - - - - </div> -<a name="methodyy_r139" id="yy_r139"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r139</span> (line <span class="line-number">2762</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r139 - </span> - () - </div> - - - - </div> -<a name="methodyy_r140" id="yy_r140"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r140</span> (line <span class="line-number">2767</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r140 - </span> - () - </div> - - - - </div> -<a name="methodyy_r141" id="yy_r141"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r141</span> (line <span class="line-number">2772</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r141 - </span> - () - </div> - - - - </div> -<a name="methodyy_r142" id="yy_r142"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r142</span> (line <span class="line-number">2777</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r142 - </span> - () - </div> - - - - </div> -<a name="methodyy_r143" id="yy_r143"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r143</span> (line <span class="line-number">2786</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r143 - </span> - () - </div> - - - - </div> -<a name="methodyy_r144" id="yy_r144"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r144</span> (line <span class="line-number">2791</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r144 - </span> - () - </div> - - - - </div> -<a name="methodyy_r145" id="yy_r145"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r145</span> (line <span class="line-number">2796</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r145 - </span> - () - </div> - - - - </div> -<a name="methodyy_r146" id="yy_r146"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r146</span> (line <span class="line-number">2804</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r146 - </span> - () - </div> - - - - </div> -<a name="methodyy_r147" id="yy_r147"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r147</span> (line <span class="line-number">2812</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r147 - </span> - () - </div> - - - - </div> -<a name="methodyy_r148" id="yy_r148"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r148</span> (line <span class="line-number">2820</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r148 - </span> - () - </div> - - - - </div> -<a name="methodyy_r149" id="yy_r149"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r149</span> (line <span class="line-number">2828</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r149 - </span> - () - </div> - - - - </div> -<a name="methodyy_r150" id="yy_r150"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r150</span> (line <span class="line-number">2833</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r150 - </span> - () - </div> - - - - </div> -<a name="methodyy_r151" id="yy_r151"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r151</span> (line <span class="line-number">2869</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r151 - </span> - () - </div> - - - - </div> -<a name="methodyy_r152" id="yy_r152"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r152</span> (line <span class="line-number">2877</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r152 - </span> - () - </div> - - - - </div> -<a name="methodyy_r153" id="yy_r153"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r153</span> (line <span class="line-number">2887</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r153 - </span> - () - </div> - - - - </div> -<a name="methodyy_r156" id="yy_r156"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r156</span> (line <span class="line-number">2892</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r156 - </span> - () - </div> - - - - </div> -<a name="methodyy_r157" id="yy_r157"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r157</span> (line <span class="line-number">2897</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r157 - </span> - () - </div> - - - - </div> -<a name="methodyy_r159" id="yy_r159"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r159</span> (line <span class="line-number">2902</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r159 - </span> - () - </div> - - - - </div> -<a name="methodyy_r160" id="yy_r160"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r160</span> (line <span class="line-number">2907</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r160 - </span> - () - </div> - - - - </div> -<a name="methodyy_r167" id="yy_r167"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r167</span> (line <span class="line-number">2912</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r167 - </span> - () - </div> - - - - </div> -<a name="methodyy_r168" id="yy_r168"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r168</span> (line <span class="line-number">2917</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r168 - </span> - () - </div> - - - - </div> -<a name="methodyy_r169" id="yy_r169"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r169</span> (line <span class="line-number">2922</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r169 - </span> - () - </div> - - - - </div> -<a name="methodyy_r170" id="yy_r170"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r170</span> (line <span class="line-number">2927</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r170 - </span> - () - </div> - - - - </div> -<a name="methodyy_r171" id="yy_r171"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r171</span> (line <span class="line-number">2932</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r171 - </span> - () - </div> - - - - </div> -<a name="methodyy_r172" id="yy_r172"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r172</span> (line <span class="line-number">2937</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r172 - </span> - () - </div> - - - - </div> -<a name="methodyy_r173" id="yy_r173"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r173</span> (line <span class="line-number">2942</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r173 - </span> - () - </div> - - - - </div> -<a name="methodyy_r174" id="yy_r174"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r174</span> (line <span class="line-number">2947</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r174 - </span> - () - </div> - - - - </div> -<a name="methodyy_r175" id="yy_r175"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r175</span> (line <span class="line-number">2952</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r175 - </span> - () - </div> - - - - </div> -<a name="methodyy_r176" id="yy_r176"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r176</span> (line <span class="line-number">2957</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r176 - </span> - () - </div> - - - - </div> -<a name="methodyy_r177" id="yy_r177"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r177</span> (line <span class="line-number">2962</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r177 - </span> - () - </div> - - - - </div> -<a name="methodyy_r178" id="yy_r178"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r178</span> (line <span class="line-number">2967</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r178 - </span> - () - </div> - - - - </div> -<a name="methodyy_r179" id="yy_r179"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r179</span> (line <span class="line-number">2972</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r179 - </span> - () - </div> - - - - </div> -<a name="methodyy_r180" id="yy_r180"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r180</span> (line <span class="line-number">2977</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r180 - </span> - () - </div> - - - - </div> -<a name="methodyy_r181" id="yy_r181"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r181</span> (line <span class="line-number">2982</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r181 - </span> - () - </div> - - - - </div> -<a name="methodyy_r183" id="yy_r183"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r183</span> (line <span class="line-number">2987</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r183 - </span> - () - </div> - - - - </div> -<a name="methodyy_r185" id="yy_r185"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r185</span> (line <span class="line-number">2992</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r185 - </span> - () - </div> - - - - </div> -<a name="methodyy_r186" id="yy_r186"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r186</span> (line <span class="line-number">2997</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r186 - </span> - () - </div> - - - - </div> -<a name="methodyy_r188" id="yy_r188"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r188</span> (line <span class="line-number">3002</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r188 - </span> - () - </div> - - - - </div> -<a name="methodyy_r189" id="yy_r189"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r189</span> (line <span class="line-number">3007</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r189 - </span> - () - </div> - - - - </div> -<a name="methodyy_r190" id="yy_r190"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r190</span> (line <span class="line-number">3012</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r190 - </span> - () - </div> - - - - </div> -<a name="methodyy_r191" id="yy_r191"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r191</span> (line <span class="line-number">3018</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r191 - </span> - () - </div> - - - - </div> -<a name="methodyy_r192" id="yy_r192"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r192</span> (line <span class="line-number">3023</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r192 - </span> - () - </div> - - - - </div> -<a name="methodyy_r194" id="yy_r194"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r194</span> (line <span class="line-number">3028</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r194 - </span> - () - </div> - - - - </div> -<a name="methodyy_r196" id="yy_r196"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r196</span> (line <span class="line-number">3033</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r196 - </span> - () - </div> - - - - </div> -<a name="methodyy_r197" id="yy_r197"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r197</span> (line <span class="line-number">3038</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r197 - </span> - () - </div> - - - - </div> -<a name="methodyy_r198" id="yy_r198"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r198</span> (line <span class="line-number">3043</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r198 - </span> - () - </div> - - - - </div> -<a name="methodyy_reduce" id="yy_reduce"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_reduce</span> (line <span class="line-number">3050</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_reduce - </span> - (<span class="var-type"></span> <span class="var-name">$yyruleno</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yyruleno</span> </li> - </ul> - - - </div> -<a name="methodyy_shift" id="yy_shift"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_shift</span> (line <span class="line-number">1704</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_shift - </span> - (<span class="var-type"></span> <span class="var-name">$yyNewState</span>, <span class="var-type"></span> <span class="var-name">$yyMajor</span>, <span class="var-type"></span> <span class="var-name">$yypMinor</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yyNewState</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yyMajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$yypMinor</span> </li> - </ul> - - - </div> -<a name="methodyy_syntax_error" id="yy_syntax_error"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_syntax_error</span> (line <span class="line-number">3101</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_syntax_error - </span> - (<span class="var-type"></span> <span class="var-name">$yymajor</span>, <span class="var-type"></span> <span class="var-name">$TOKEN</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yymajor</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$TOKEN</span> </li> - </ul> - - - </div> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="constErr1" id="Err1"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">Err1</span> - = <span class="const-default"> "Security error: Call to private object member not allowed"</span> - (line <span class="line-number">91</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constErr2" id="Err2"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">Err2</span> - = <span class="const-default"> "Security error: Call to dynamic object member not allowed"</span> - (line <span class="line-number">92</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constErr3" id="Err3"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">Err3</span> - = <span class="const-default"> "PHP in template not allowed. Use SmartyBC to enable it"</span> - (line <span class="line-number">93</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ANDSYM" id="TP_ANDSYM"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ANDSYM</span> - = <span class="const-default"> 40</span> - (line <span class="line-number">179</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_APTR" id="TP_APTR"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_APTR</span> - = <span class="const-default"> 30</span> - (line <span class="line-number">169</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_AS" id="TP_AS"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_AS</span> - = <span class="const-default"> 29</span> - (line <span class="line-number">168</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ASPENDTAG" id="TP_ASPENDTAG"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ASPENDTAG</span> - = <span class="const-default"> 7</span> - (line <span class="line-number">146</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ASPSTARTTAG" id="TP_ASPSTARTTAG"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ASPSTARTTAG</span> - = <span class="const-default"> 6</span> - (line <span class="line-number">145</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_AT" id="TP_AT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_AT</span> - = <span class="const-default"> 60</span> - (line <span class="line-number">199</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_BACKTICK" id="TP_BACKTICK"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_BACKTICK</span> - = <span class="const-default"> 77</span> - (line <span class="line-number">216</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_CLOSEB" id="TP_CLOSEB"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_CLOSEB</span> - = <span class="const-default"> 63</span> - (line <span class="line-number">202</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_CLOSEP" id="TP_CLOSEP"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_CLOSEP</span> - = <span class="const-default"> 37</span> - (line <span class="line-number">176</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_COLON" id="TP_COLON"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_COLON</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">141</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_COMMA" id="TP_COMMA"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_COMMA</span> - = <span class="const-default"> 35</span> - (line <span class="line-number">174</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_COMMENT" id="TP_COMMENT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_COMMENT</span> - = <span class="const-default"> 3</span> - (line <span class="line-number">142</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_DOLLAR" id="TP_DOLLAR"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_DOLLAR</span> - = <span class="const-default"> 17</span> - (line <span class="line-number">156</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_DOLLARID" id="TP_DOLLARID"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_DOLLARID</span> - = <span class="const-default"> 78</span> - (line <span class="line-number">217</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_DOT" id="TP_DOT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_DOT</span> - = <span class="const-default"> 57</span> - (line <span class="line-number">196</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_DOUBLECOLON" id="TP_DOUBLECOLON"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_DOUBLECOLON</span> - = <span class="const-default"> 59</span> - (line <span class="line-number">198</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_EQUAL" id="TP_EQUAL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_EQUAL</span> - = <span class="const-default"> 19</span> - (line <span class="line-number">158</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_EQUALS" id="TP_EQUALS"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_EQUALS</span> - = <span class="const-default"> 64</span> - (line <span class="line-number">203</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_FAKEPHPSTARTTAG" id="TP_FAKEPHPSTARTTAG"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_FAKEPHPSTARTTAG</span> - = <span class="const-default"> 8</span> - (line <span class="line-number">147</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_GREATEREQUAL" id="TP_GREATEREQUAL"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_GREATEREQUAL</span> - = <span class="const-default"> 68</span> - (line <span class="line-number">207</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_GREATERTHAN" id="TP_GREATERTHAN"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_GREATERTHAN</span> - = <span class="const-default"> 66</span> - (line <span class="line-number">205</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_HATCH" id="TP_HATCH"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_HATCH</span> - = <span class="const-default"> 61</span> - (line <span class="line-number">200</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_HEX" id="TP_HEX"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_HEX</span> - = <span class="const-default"> 56</span> - (line <span class="line-number">195</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ID" id="TP_ID"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ID</span> - = <span class="const-default"> 18</span> - (line <span class="line-number">157</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_IDENTITY" id="TP_IDENTITY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_IDENTITY</span> - = <span class="const-default"> 70</span> - (line <span class="line-number">209</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_INCDEC" id="TP_INCDEC"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_INCDEC</span> - = <span class="const-default"> 24</span> - (line <span class="line-number">163</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_INSTANCEOF" id="TP_INSTANCEOF"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_INSTANCEOF</span> - = <span class="const-default"> 52</span> - (line <span class="line-number">191</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_INTEGER" id="TP_INTEGER"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_INTEGER</span> - = <span class="const-default"> 34</span> - (line <span class="line-number">173</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISDIVBY" id="TP_ISDIVBY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISDIVBY</span> - = <span class="const-default"> 42</span> - (line <span class="line-number">181</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISEVEN" id="TP_ISEVEN"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISEVEN</span> - = <span class="const-default"> 44</span> - (line <span class="line-number">183</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISEVENBY" id="TP_ISEVENBY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISEVENBY</span> - = <span class="const-default"> 46</span> - (line <span class="line-number">185</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISIN" id="TP_ISIN"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISIN</span> - = <span class="const-default"> 41</span> - (line <span class="line-number">180</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISNOTDIVBY" id="TP_ISNOTDIVBY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISNOTDIVBY</span> - = <span class="const-default"> 43</span> - (line <span class="line-number">182</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISNOTEVEN" id="TP_ISNOTEVEN"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISNOTEVEN</span> - = <span class="const-default"> 45</span> - (line <span class="line-number">184</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISNOTEVENBY" id="TP_ISNOTEVENBY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISNOTEVENBY</span> - = <span class="const-default"> 47</span> - (line <span class="line-number">186</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISNOTODD" id="TP_ISNOTODD"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISNOTODD</span> - = <span class="const-default"> 49</span> - (line <span class="line-number">188</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISNOTODDBY" id="TP_ISNOTODDBY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISNOTODDBY</span> - = <span class="const-default"> 51</span> - (line <span class="line-number">190</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISODD" id="TP_ISODD"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISODD</span> - = <span class="const-default"> 48</span> - (line <span class="line-number">187</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_ISODDBY" id="TP_ISODDBY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_ISODDBY</span> - = <span class="const-default"> 50</span> - (line <span class="line-number">189</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LAND" id="TP_LAND"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LAND</span> - = <span class="const-default"> 73</span> - (line <span class="line-number">212</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LDEL" id="TP_LDEL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LDEL</span> - = <span class="const-default"> 15</span> - (line <span class="line-number">154</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LDELFOR" id="TP_LDELFOR"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LDELFOR</span> - = <span class="const-default"> 22</span> - (line <span class="line-number">161</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LDELFOREACH" id="TP_LDELFOREACH"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LDELFOREACH</span> - = <span class="const-default"> 27</span> - (line <span class="line-number">166</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LDELIF" id="TP_LDELIF"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LDELIF</span> - = <span class="const-default"> 21</span> - (line <span class="line-number">160</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LDELSETFILTER" id="TP_LDELSETFILTER"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LDELSETFILTER</span> - = <span class="const-default"> 31</span> - (line <span class="line-number">170</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LDELSLASH" id="TP_LDELSLASH"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LDELSLASH</span> - = <span class="const-default"> 33</span> - (line <span class="line-number">172</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LESSEQUAL" id="TP_LESSEQUAL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LESSEQUAL</span> - = <span class="const-default"> 69</span> - (line <span class="line-number">208</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LESSTHAN" id="TP_LESSTHAN"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LESSTHAN</span> - = <span class="const-default"> 67</span> - (line <span class="line-number">206</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LINEBREAK" id="TP_LINEBREAK"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LINEBREAK</span> - = <span class="const-default"> 11</span> - (line <span class="line-number">150</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LITERAL" id="TP_LITERAL"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LITERAL</span> - = <span class="const-default"> 14</span> - (line <span class="line-number">153</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LITERALEND" id="TP_LITERALEND"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LITERALEND</span> - = <span class="const-default"> 13</span> - (line <span class="line-number">152</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LITERALSTART" id="TP_LITERALSTART"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LITERALSTART</span> - = <span class="const-default"> 12</span> - (line <span class="line-number">151</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LOR" id="TP_LOR"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LOR</span> - = <span class="const-default"> 74</span> - (line <span class="line-number">213</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_LXOR" id="TP_LXOR"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_LXOR</span> - = <span class="const-default"> 75</span> - (line <span class="line-number">214</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_MATH" id="TP_MATH"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_MATH</span> - = <span class="const-default"> 38</span> - (line <span class="line-number">177</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_MOD" id="TP_MOD"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_MOD</span> - = <span class="const-default"> 72</span> - (line <span class="line-number">211</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_NONEIDENTITY" id="TP_NONEIDENTITY"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_NONEIDENTITY</span> - = <span class="const-default"> 71</span> - (line <span class="line-number">210</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_NOT" id="TP_NOT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_NOT</span> - = <span class="const-default"> 54</span> - (line <span class="line-number">193</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_NOTEQUALS" id="TP_NOTEQUALS"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_NOTEQUALS</span> - = <span class="const-default"> 65</span> - (line <span class="line-number">204</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_OPENB" id="TP_OPENB"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_OPENB</span> - = <span class="const-default"> 62</span> - (line <span class="line-number">201</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_OPENP" id="TP_OPENP"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_OPENP</span> - = <span class="const-default"> 36</span> - (line <span class="line-number">175</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_OTHER" id="TP_OTHER"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_OTHER</span> - = <span class="const-default"> 10</span> - (line <span class="line-number">149</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_PHPENDTAG" id="TP_PHPENDTAG"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_PHPENDTAG</span> - = <span class="const-default"> 5</span> - (line <span class="line-number">144</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_PHPSTARTTAG" id="TP_PHPSTARTTAG"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_PHPSTARTTAG</span> - = <span class="const-default"> 4</span> - (line <span class="line-number">143</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_PTR" id="TP_PTR"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_PTR</span> - = <span class="const-default"> 20</span> - (line <span class="line-number">159</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_QMARK" id="TP_QMARK"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_QMARK</span> - = <span class="const-default"> 53</span> - (line <span class="line-number">192</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_QUOTE" id="TP_QUOTE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_QUOTE</span> - = <span class="const-default"> 76</span> - (line <span class="line-number">215</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_RDEL" id="TP_RDEL"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_RDEL</span> - = <span class="const-default"> 16</span> - (line <span class="line-number">155</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_SEMICOLON" id="TP_SEMICOLON"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_SEMICOLON</span> - = <span class="const-default"> 23</span> - (line <span class="line-number">162</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_SINGLEQUOTESTRING" id="TP_SINGLEQUOTESTRING"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_SINGLEQUOTESTRING</span> - = <span class="const-default"> 58</span> - (line <span class="line-number">197</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_SMARTYBLOCKCHILD" id="TP_SMARTYBLOCKCHILD"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_SMARTYBLOCKCHILD</span> - = <span class="const-default"> 32</span> - (line <span class="line-number">171</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_SPACE" id="TP_SPACE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_SPACE</span> - = <span class="const-default"> 28</span> - (line <span class="line-number">167</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_STEP" id="TP_STEP"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_STEP</span> - = <span class="const-default"> 26</span> - (line <span class="line-number">165</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_TO" id="TP_TO"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_TO</span> - = <span class="const-default"> 25</span> - (line <span class="line-number">164</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_TYPECAST" id="TP_TYPECAST"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_TYPECAST</span> - = <span class="const-default"> 55</span> - (line <span class="line-number">194</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_UNIMATH" id="TP_UNIMATH"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_UNIMATH</span> - = <span class="const-default"> 39</span> - (line <span class="line-number">178</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_VERT" id="TP_VERT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_VERT</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">140</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constTP_XMLTAG" id="TP_XMLTAG"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">TP_XMLTAG</span> - = <span class="const-default"> 9</span> - (line <span class="line-number">148</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYERRORSYMBOL" id="YYERRORSYMBOL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYERRORSYMBOL</span> - = <span class="const-default"> 79</span> - (line <span class="line-number">1196</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYERRSYMDT" id="YYERRSYMDT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYERRSYMDT</span> - = <span class="const-default"> 'yy0'</span> - (line <span class="line-number">1197</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYFALLBACK" id="YYFALLBACK"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYFALLBACK</span> - = <span class="const-default"> 0</span> - (line <span class="line-number">1198</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYNOCODE" id="YYNOCODE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYNOCODE</span> - = <span class="const-default"> 122</span> - (line <span class="line-number">1192</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYNRULE" id="YYNRULE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYNRULE</span> - = <span class="const-default"> 201</span> - (line <span class="line-number">1195</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYNSTATE" id="YYNSTATE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYNSTATE</span> - = <span class="const-default"> 387</span> - (line <span class="line-number">1194</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYYSTACKDEPTH" id="YYSTACKDEPTH"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YYSTACKDEPTH</span> - = <span class="const-default"> 100</span> - (line <span class="line-number">1193</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_ACCEPT_ACTION" id="YY_ACCEPT_ACTION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_ACCEPT_ACTION</span> - = <span class="const-default"> 589</span> - (line <span class="line-number">219</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_ERROR_ACTION" id="YY_ERROR_ACTION"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_ERROR_ACTION</span> - = <span class="const-default"> 588</span> - (line <span class="line-number">220</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_NO_ACTION" id="YY_NO_ACTION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_NO_ACTION</span> - = <span class="const-default"> 590</span> - (line <span class="line-number">218</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_REDUCE_MAX" id="YY_REDUCE_MAX"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_REDUCE_MAX</span> - = <span class="const-default"> 204</span> - (line <span class="line-number">738</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_REDUCE_USE_DFLT" id="YY_REDUCE_USE_DFLT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_REDUCE_USE_DFLT</span> - = <span class="const-default"> -86</span> - (line <span class="line-number">737</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_SHIFT_MAX" id="YY_SHIFT_MAX"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_SHIFT_MAX</span> - = <span class="const-default"> 252</span> - (line <span class="line-number">708</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_SHIFT_USE_DFLT" id="YY_SHIFT_USE_DFLT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_SHIFT_USE_DFLT</span> - = <span class="const-default"> -5</span> - (line <span class="line-number">707</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constYY_SZ_ACTTAB" id="YY_SZ_ACTTAB"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">YY_SZ_ACTTAB</span> - = <span class="const-default"> 2393</span> - (line <span class="line-number">222</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:05 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/TPC_yyStackEntry.html
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class TPC_yyStackEntry</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class TPC_yyStackEntry</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_configfileparser.php.html">/libs/sysplugins/smarty_internal_configfileparser.php</a> (line <span class="field">76</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$major" title="details" class="var-name">$major</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$minor" title="details" class="var-name">$minor</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$stateno" title="details" class="var-name">$stateno</a> - </div> - </div> - </div> - </div> - - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> - - - </div> - <div class="info-box-body"> - <a name="var$major" id="$major"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$major</span> - (line <span class="line-number">79</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$minor" id="$minor"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$minor</span> - (line <span class="line-number">81</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$stateno" id="$stateno"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$stateno</span> - (line <span class="line-number">78</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/TPC_yyToken.html
Deleted
@@ -1,369 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class TPC_yyToken</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class TPC_yyToken</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <p class="implements"> - Implements interfaces: - <ul> - <li>ArrayAccess (internal interface)</li> </ul> - </p> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Configfileparser</p> -<p class="description"><p>This is the config file parser. It is generated from the internal.configfileparser.y file</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_configfileparser.php.html">/libs/sysplugins/smarty_internal_configfileparser.php</a> (line <span class="field">12</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$metadata" title="details" class="var-name">$metadata</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$string" title="details" class="var-name">$string</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">TPC_yyToken</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"></span> <span class="var-name">$s</span>, [<span class="var-type"></span> <span class="var-name">$m</span> = <span class="var-default">array()</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetExists" title="details" class="method-name">offsetExists</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetGet" title="details" class="method-name">offsetGet</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetSet" title="details" class="method-name">offsetSet</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>, <span class="var-type"></span> <span class="var-name">$value</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetUnset" title="details" class="method-name">offsetUnset</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__toString" title="details" class="method-name">__toString</a> - () - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$metadata" id="$metadata"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$metadata</span> - = <span class="var-default">array()</span> (line <span class="line-number">15</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$string" id="$string"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$string</span> - = <span class="var-default"> ''</span> (line <span class="line-number">14</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">17</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">TPC_yyToken</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"></span> <span class="var-name">$s</span>, [<span class="var-type"></span> <span class="var-name">$m</span> = <span class="var-default">array()</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$s</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$m</span> </li> - </ul> - - - </div> -<a name="methodoffsetExists" id="offsetExists"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">offsetExists</span> (line <span class="line-number">37</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetExists - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetExists</dt> - </dl> - - </div> -<a name="methodoffsetGet" id="offsetGet"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">offsetGet</span> (line <span class="line-number">42</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetGet - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetGet</dt> - </dl> - - </div> -<a name="methodoffsetSet" id="offsetSet"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">offsetSet</span> (line <span class="line-number">47</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetSet - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>, <span class="var-type"></span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$value</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetSet</dt> - </dl> - - </div> -<a name="methodoffsetUnset" id="offsetUnset"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">offsetUnset</span> (line <span class="line-number">70</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetUnset - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetUnset</dt> - </dl> - - </div> -<a name="method__toString" id="__toString"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__toString</span> (line <span class="line-number">32</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __toString - </span> - () - </div> - - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/TP_yyStackEntry.html
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class TP_yyStackEntry</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class TP_yyStackEntry</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_templateparser.php.html">/libs/sysplugins/smarty_internal_templateparser.php</a> (line <span class="field">76</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$major" title="details" class="var-name">$major</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$minor" title="details" class="var-name">$minor</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$stateno" title="details" class="var-name">$stateno</a> - </div> - </div> - </div> - </div> - - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> - - - </div> - <div class="info-box-body"> - <a name="var$major" id="$major"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$major</span> - (line <span class="line-number">79</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$minor" id="$minor"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$minor</span> - (line <span class="line-number">81</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$stateno" id="$stateno"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$stateno</span> - (line <span class="line-number">78</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/TP_yyToken.html
Deleted
@@ -1,369 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class TP_yyToken</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class TP_yyToken</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <p class="implements"> - Implements interfaces: - <ul> - <li>ArrayAccess (internal interface)</li> </ul> - </p> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Templateparser</p> -<p class="description"><p>This is the template parser. It is generated from the internal.templateparser.y file</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_templateparser.php.html">/libs/sysplugins/smarty_internal_templateparser.php</a> (line <span class="field">12</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$metadata" title="details" class="var-name">$metadata</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$string" title="details" class="var-name">$string</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">TP_yyToken</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"></span> <span class="var-name">$s</span>, [<span class="var-type"></span> <span class="var-name">$m</span> = <span class="var-default">array()</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetExists" title="details" class="method-name">offsetExists</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetGet" title="details" class="method-name">offsetGet</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetSet" title="details" class="method-name">offsetSet</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>, <span class="var-type"></span> <span class="var-name">$value</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#offsetUnset" title="details" class="method-name">offsetUnset</a> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__toString" title="details" class="method-name">__toString</a> - () - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$metadata" id="$metadata"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$metadata</span> - = <span class="var-default">array()</span> (line <span class="line-number">15</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$string" id="$string"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$string</span> - = <span class="var-default"> ''</span> (line <span class="line-number">14</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">17</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">TP_yyToken</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"></span> <span class="var-name">$s</span>, [<span class="var-type"></span> <span class="var-name">$m</span> = <span class="var-default">array()</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$s</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$m</span> </li> - </ul> - - - </div> -<a name="methodoffsetExists" id="offsetExists"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">offsetExists</span> (line <span class="line-number">37</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetExists - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetExists</dt> - </dl> - - </div> -<a name="methodoffsetGet" id="offsetGet"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">offsetGet</span> (line <span class="line-number">42</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetGet - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetGet</dt> - </dl> - - </div> -<a name="methodoffsetSet" id="offsetSet"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">offsetSet</span> (line <span class="line-number">47</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetSet - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>, <span class="var-type"></span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$value</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetSet</dt> - </dl> - - </div> -<a name="methodoffsetUnset" id="offsetUnset"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">offsetUnset</span> (line <span class="line-number">70</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - offsetUnset - </span> - (<span class="var-type"></span> <span class="var-name">$offset</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$offset</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Implementation of:</div> - <dl> - <dt>ArrayAccess::offsetUnset</dt> - </dl> - - </div> -<a name="method__toString" id="__toString"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__toString</span> (line <span class="line-number">32</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __toString - </span> - () - </div> - - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_append.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_append.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_append.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Append</p> -<p class="description"><p>Compiles the {append} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Append.html">Smarty_Internal_Compile_Append</a> - </td> - <td> - Smarty Internal Plugin Compile Append Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:38 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_assign.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_assign.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_assign.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Assign</p> -<p class="description"><p>Compiles the {assign} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a> - </td> - <td> - Smarty Internal Plugin Compile Assign Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:39 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_block.php.html
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_block.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_block.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Block</p> -<p class="description"><p>Compiles the {block}{/block} tags</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Block.html">Smarty_Internal_Compile_Block</a> - </td> - <td> - Smarty Internal Plugin Compile Block Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html">Smarty_Internal_Compile_Blockclose</a> - </td> - <td> - Smarty Internal Plugin Compile BlockClose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:39 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_break.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_break.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_break.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Break</p> -<p class="description"><p>Compiles the {break} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Break.html">Smarty_Internal_Compile_Break</a> - </td> - <td> - Smarty Internal Plugin Compile Break Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_call.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_call.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_call.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Function_Call</p> -<p class="description"><p>Compiles the calls of user defined tags defined by {function}</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Call.html">Smarty_Internal_Compile_Call</a> - </td> - <td> - Smarty Internal Plugin Compile Function_Call Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_capture.php.html
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_capture.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_capture.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Capture</p> -<p class="description"><p>Compiles the {capture} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Capture.html">Smarty_Internal_Compile_Capture</a> - </td> - <td> - Smarty Internal Plugin Compile Capture Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html">Smarty_Internal_Compile_CaptureClose</a> - </td> - <td> - Smarty Internal Plugin Compile Captureclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_config_load.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_config_load.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_config_load.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Config Load</p> -<p class="description"><p>Compiles the {config load} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html">Smarty_Internal_Compile_Config_Load</a> - </td> - <td> - Smarty Internal Plugin Compile Config Load Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:40 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_continue.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_continue.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_continue.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Continue</p> -<p class="description"><p>Compiles the {continue} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Continue.html">Smarty_Internal_Compile_Continue</a> - </td> - <td> - Smarty Internal Plugin Compile Continue Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_debug.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_debug.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_debug.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Debug</p> -<p class="description"><p>Compiles the {debug} tag. It opens a window the the Smarty Debugging Console.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Debug.html">Smarty_Internal_Compile_Debug</a> - </td> - <td> - Smarty Internal Plugin Compile Debug Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_eval.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_eval.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_eval.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Eval</p> -<p class="description"><p>Compiles the {eval} tag.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Eval.html">Smarty_Internal_Compile_Eval</a> - </td> - <td> - Smarty Internal Plugin Compile Eval Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_extends.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_extends.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_extends.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile extend</p> -<p class="description"><p>Compiles the {extends} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Extends.html">Smarty_Internal_Compile_Extends</a> - </td> - <td> - Smarty Internal Plugin Compile extend Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:41 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_for.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_for.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_for.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile For</p> -<p class="description"><p>Compiles the {for} {forelse} {/for} tags</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_For.html">Smarty_Internal_Compile_For</a> - </td> - <td> - Smarty Internal Plugin Compile For Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Forelse.html">Smarty_Internal_Compile_Forelse</a> - </td> - <td> - Smarty Internal Plugin Compile Forelse Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Forclose.html">Smarty_Internal_Compile_Forclose</a> - </td> - <td> - Smarty Internal Plugin Compile Forclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_foreach.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_foreach.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_foreach.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Foreach</p> -<p class="description"><p>Compiles the {foreach} {foreachelse} {/foreach} tags</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreach.html">Smarty_Internal_Compile_Foreach</a> - </td> - <td> - Smarty Internal Plugin Compile Foreach Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html">Smarty_Internal_Compile_Foreachelse</a> - </td> - <td> - Smarty Internal Plugin Compile Foreachelse Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html">Smarty_Internal_Compile_Foreachclose</a> - </td> - <td> - Smarty Internal Plugin Compile Foreachclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:42 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_function.php.html
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_function.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_function.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Function</p> -<p class="description"><p>Compiles the {function} {/function} tags</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Function.html">Smarty_Internal_Compile_Function</a> - </td> - <td> - Smarty Internal Plugin Compile Function Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html">Smarty_Internal_Compile_Functionclose</a> - </td> - <td> - Smarty Internal Plugin Compile Functionclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_if.php.html
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_if.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_if.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile If</p> -<p class="description"><p>Compiles the {if} {else} {elseif} {/if} tags</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_If.html">Smarty_Internal_Compile_If</a> - </td> - <td> - Smarty Internal Plugin Compile If Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Else.html">Smarty_Internal_Compile_Else</a> - </td> - <td> - Smarty Internal Plugin Compile Else Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Elseif.html">Smarty_Internal_Compile_Elseif</a> - </td> - <td> - Smarty Internal Plugin Compile ElseIf Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html">Smarty_Internal_Compile_Ifclose</a> - </td> - <td> - Smarty Internal Plugin Compile Ifclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:43 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_include.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_include.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Include</p> -<p class="description"><p>Compiles the {include} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include.html">Smarty_Internal_Compile_Include</a> - </td> - <td> - Smarty Internal Plugin Compile Include Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:44 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include_php.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_include_php.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_include_php.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Include PHP</p> -<p class="description"><p>Compiles the {include_php} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html">Smarty_Internal_Compile_Include_Php</a> - </td> - <td> - Smarty Internal Plugin Compile Insert Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_insert.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_insert.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_insert.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Insert</p> -<p class="description"><p>Compiles the {insert} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Insert.html">Smarty_Internal_Compile_Insert</a> - </td> - <td> - Smarty Internal Plugin Compile Insert Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_ldelim.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_ldelim.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_ldelim.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Ldelim</p> -<p class="description"><p>Compiles the {ldelim} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html">Smarty_Internal_Compile_Ldelim</a> - </td> - <td> - Smarty Internal Plugin Compile Ldelim Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_nocache.php.html
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_nocache.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_nocache.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Nocache</p> -<p class="description"><p>Compiles the {nocache} {/nocache} tags.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Nocache.html">Smarty_Internal_Compile_Nocache</a> - </td> - <td> - Smarty Internal Plugin Compile Nocache Classv - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html">Smarty_Internal_Compile_Nocacheclose</a> - </td> - <td> - Smarty Internal Plugin Compile Nocacheclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:45 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_block_plugin.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_block_plugin.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_block_plugin.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Block Plugin</p> -<p class="description"><p>Compiles code for the execution of block plugin</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html">Smarty_Internal_Compile_Private_Block_Plugin</a> - </td> - <td> - Smarty Internal Plugin Compile Block Plugin Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_function_plugin.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_function_plugin.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_function_plugin.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Function Plugin</p> -<p class="description"><p>Compiles code for the execution of function plugin</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html">Smarty_Internal_Compile_Private_Function_Plugin</a> - </td> - <td> - Smarty Internal Plugin Compile Function Plugin Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_modifier.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_modifier.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_modifier.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Modifier</p> -<p class="description"><p>Compiles code for modifier execution</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html">Smarty_Internal_Compile_Private_Modifier</a> - </td> - <td> - Smarty Internal Plugin Compile Modifier Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_block_function.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_object_block_function.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_object_block_function.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Object Block Function</p> -<p class="description"><p>Compiles code for registered objects as block function</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html">Smarty_Internal_Compile_Private_Object_Block_Function</a> - </td> - <td> - Smarty Internal Plugin Compile Object Block Function Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:46 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_function.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_object_function.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_object_function.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Object Funtion</p> -<p class="description"><p>Compiles code for registered objects as function</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html">Smarty_Internal_Compile_Private_Object_Function</a> - </td> - <td> - Smarty Internal Plugin Compile Object Function Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_print_expression.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_print_expression.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_print_expression.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Print Expression</p> -<p class="description"><p>Compiles any tag which will output an expression or variable</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html">Smarty_Internal_Compile_Private_Print_Expression</a> - </td> - <td> - Smarty Internal Plugin Compile Print Expression Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_block.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_registered_block.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_registered_block.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Registered Block</p> -<p class="description"><p>Compiles code for the execution of a registered block function</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html">Smarty_Internal_Compile_Private_Registered_Block</a> - </td> - <td> - Smarty Internal Plugin Compile Registered Block Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_function.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_registered_function.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_registered_function.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Registered Function</p> -<p class="description"><p>Compiles code for the execution of a registered function</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html">Smarty_Internal_Compile_Private_Registered_Function</a> - </td> - <td> - Smarty Internal Plugin Compile Registered Function Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:47 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_special_variable.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_private_special_variable.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_private_special_variable.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Special Smarty Variable</p> -<p class="description"><p>Compiles the special $smarty variables</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html">Smarty_Internal_Compile_Private_Special_Variable</a> - </td> - <td> - Smarty Internal Plugin Compile special Smarty Variable Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_rdelim.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_rdelim.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_rdelim.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Rdelim</p> -<p class="description"><p>Compiles the {rdelim} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html">Smarty_Internal_Compile_Rdelim</a> - </td> - <td> - Smarty Internal Plugin Compile Rdelim Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_section.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_section.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_section.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Section</p> -<p class="description"><p>Compiles the {section} {sectionelse} {/section} tags</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Section.html">Smarty_Internal_Compile_Section</a> - </td> - <td> - Smarty Internal Plugin Compile Section Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html">Smarty_Internal_Compile_Sectionelse</a> - </td> - <td> - Smarty Internal Plugin Compile Sectionelse Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html">Smarty_Internal_Compile_Sectionclose</a> - </td> - <td> - Smarty Internal Plugin Compile Sectionclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:48 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_setfilter.php.html
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_setfilter.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_setfilter.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile Setfilter</p> -<p class="description"><p>Compiles code for setfilter tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html">Smarty_Internal_Compile_Setfilter</a> - </td> - <td> - Smarty Internal Plugin Compile Setfilter Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html">Smarty_Internal_Compile_Setfilterclose</a> - </td> - <td> - Smarty Internal Plugin Compile Setfilterclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_while.php.html
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compile_while.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compile_while.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Compile While</p> -<p class="description"><p>Compiles the {while} tag</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_While.html">Smarty_Internal_Compile_While</a> - </td> - <td> - Smarty Internal Plugin Compile While Class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html">Smarty_Internal_Compile_Whileclose</a> - </td> - <td> - Smarty Internal Plugin Compile Whileclose Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_compilebase.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_compilebase.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_compilebase.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin CompileBase</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> - </td> - <td> - This class does extend all internal compile plugins - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:37 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_configfileparser.php.html
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_configfileparser.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_configfileparser.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/TPC_yyToken.html">TPC_yyToken</a> - </td> - <td> - Smarty Internal Plugin Configfileparser - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/TPC_yyStackEntry.html">TPC_yyStackEntry</a> - </td> - <td> - - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Configfileparser.html">Smarty_Internal_Configfileparser</a> - </td> - <td> - - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:51 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_nocache_insert.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_nocache_insert.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_nocache_insert.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Nocache Insert</p> -<p class="description"><p>Compiles the {insert} tag into the cache file</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Nocache_Insert.html">Smarty_Internal_Nocache_Insert</a> - </td> - <td> - Smarty Internal Plugin Compile Insert Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_parsetree.php.html
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_parsetree.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_parsetree.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Templateparser Parsetrees</p> -<p class="description"><p>These are classes to build parsetrees in the template parser</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Thue Kristensen</li> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_smartytemplatecompiler.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_smartytemplatecompiler.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_smartytemplatecompiler.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Smarty Template Compiler Base</p> -<p class="description"><p>This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html">Smarty_Internal_SmartyTemplateCompiler</a> - </td> - <td> - Class SmartyTemplateCompiler - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:59 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_templatecompilerbase.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_templatecompilerbase.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_templatecompilerbase.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Smarty Template Compiler Base</p> -<p class="description"><p>This file contains the basic classes and methodes for compiling Smarty templates with lexer/parser</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a> - </td> - <td> - Main abstract compiler class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:03 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_templatelexer.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_templatelexer.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_templatelexer.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Templatelexer</p> -<p class="description"><p>This is the lexer to break the template source into tokens</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Templatelexer.html">Smarty_Internal_Templatelexer</a> - </td> - <td> - Smarty Internal Plugin Templatelexer - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:03 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Compiler/_libs---sysplugins---smarty_internal_templateparser.php.html
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_templateparser.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_templateparser.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/TP_yyToken.html">TP_yyToken</a> - </td> - <td> - Smarty Internal Plugin Templateparser - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/TP_yyStackEntry.html">TP_yyStackEntry</a> - </td> - <td> - - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Compiler/Smarty_Internal_Templateparser.html">Smarty_Internal_Templateparser</a> - </td> - <td> - - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:05 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Config
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Config/Smarty_Internal_Config_File_Compiler.html
Deleted
@@ -1,345 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Config_File_Compiler</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Config_File_Compiler</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Main config file compiler class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_config_file_compiler.php.html">/libs/sysplugins/smarty_internal_config_file_compiler.php</a> (line <span class="field">19</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">Smarty_Internal_Config</span> - <a href="#$config" title="details" class="var-name">$config</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$config_data" title="details" class="var-name">$config_data</a> - </div> - <div class="var-title"> - <span class="var-type">object</span> - <a href="#$lex" title="details" class="var-name">$lex</a> - </div> - <div class="var-title"> - <span class="var-type">object</span> - <a href="#$parser" title="details" class="var-name">$parser</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#$smarty" title="details" class="var-name">$smarty</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Config_File_Compiler</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#compileSource" title="details" class="method-name">compileSource</a> - (<span class="var-type"></span> <span class="var-name">$config</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#trigger_config_file_error" title="details" class="method-name">trigger_config_file_error</a> - ([<span class="var-type">string</span> <span class="var-name">$args</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$config" id="$config"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">Smarty_Internal_Config</span> - <span class="var-name">$config</span> - (line <span class="line-number">47</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty object</p> - <ul class="tags"> - <li><span class="field">var:</span> object</li> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$config_data" id="$config_data"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$config_data</span> - = <span class="var-default">array()</span> (line <span class="line-number">54</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiled config data sections and variables</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$lex" id="$lex"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">object</span> - <span class="var-name">$lex</span> - (line <span class="line-number">26</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Lexer object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$parser" id="$parser"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">object</span> - <span class="var-name">$parser</span> - (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Parser object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty" id="$smarty"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> - (line <span class="line-number">40</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty object</p> - <ul class="tags"> - <li><span class="field">var:</span> object</li> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">61</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Initialize compiler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Config_File_Compiler</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: base instance</span> </li> - </ul> - - - </div> -<a name="methodcompileSource" id="compileSource"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compileSource</span> (line <span class="line-number">74</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Method to compile a Smarty template.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if compiling succeeded, false if it failed</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - compileSource - </span> - (<span class="var-type"></span> <span class="var-name">$config</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">Smarty_Internal_Config</span> - <span class="var-name">$config</span><span class="var-description">: config object</span> </li> - </ul> - - - </div> -<a name="methodtrigger_config_file_error" id="trigger_config_file_error"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">trigger_config_file_error</span> (line <span class="line-number">110</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">display compiler error messages without dying</p> -<p class="description"><p>If parameter $args is empty it is a parser detected syntax error. In this case the parser is called to obtain information about exspected tokens.</p><p>If parameter $args contains a string this is used as error message</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - trigger_config_file_error - </span> - ([<span class="var-type">string</span> <span class="var-name">$args</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$args</span><span class="var-description">: individual error message or null</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Config/Smarty_Internal_Configfilelexer.html
Deleted
@@ -1,1396 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Configfilelexer</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Configfilelexer</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Configfilelexer</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_configfilelexer.php.html">/libs/sysplugins/smarty_internal_configfilelexer.php</a> (line <span class="field">13</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - <a name="sec-const-summary"></a> - <div class="info-box"> - <div class="info-box-title">Class Constant Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>) - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="const-summary"> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#COMMENT" title="details" class="const-name">COMMENT</a> = <span class="var-type"> 4</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#NAKED_STRING_VALUE" title="details" class="const-name">NAKED_STRING_VALUE</a> = <span class="var-type"> 3</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SECTION" title="details" class="const-name">SECTION</a> = <span class="var-type"> 5</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#START" title="details" class="const-name">START</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#VALUE" title="details" class="const-name">VALUE</a> = <span class="var-type"> 2</span> - - </div> - </div> - </div> - </div> - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$counter" title="details" class="var-name">$counter</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$data" title="details" class="var-name">$data</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$line" title="details" class="var-name">$line</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$node" title="details" class="var-name">$node</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$smarty_token_names" title="details" class="var-name">$smarty_token_names</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$token" title="details" class="var-name">$token</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$value" title="details" class="var-name">$value</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#instance" title="details" class="method-name">&instance</a> - ([<span class="var-type"></span> <span class="var-name">$new_instance</span> = <span class="var-default">null</span>]) - </div> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Configfilelexer</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type"></span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yybegin" title="details" class="method-name">yybegin</a> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex" title="details" class="method-name">yylex</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex1" title="details" class="method-name">yylex1</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex2" title="details" class="method-name">yylex2</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex3" title="details" class="method-name">yylex3</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex4" title="details" class="method-name">yylex4</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yylex5" title="details" class="method-name">yylex5</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yypopstate" title="details" class="method-name">yypopstate</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yypushstate" title="details" class="method-name">yypushstate</a> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_1" title="details" class="method-name">yy_r1_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_2" title="details" class="method-name">yy_r1_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_3" title="details" class="method-name">yy_r1_3</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_4" title="details" class="method-name">yy_r1_4</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_5" title="details" class="method-name">yy_r1_5</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_6" title="details" class="method-name">yy_r1_6</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r1_7" title="details" class="method-name">yy_r1_7</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_1" title="details" class="method-name">yy_r2_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_2" title="details" class="method-name">yy_r2_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_3" title="details" class="method-name">yy_r2_3</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_4" title="details" class="method-name">yy_r2_4</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_5" title="details" class="method-name">yy_r2_5</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_6" title="details" class="method-name">yy_r2_6</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_8" title="details" class="method-name">yy_r2_8</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_9" title="details" class="method-name">yy_r2_9</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r2_10" title="details" class="method-name">yy_r2_10</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r3_1" title="details" class="method-name">yy_r3_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_1" title="details" class="method-name">yy_r4_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_2" title="details" class="method-name">yy_r4_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r4_3" title="details" class="method-name">yy_r4_3</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r5_1" title="details" class="method-name">yy_r5_1</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#yy_r5_2" title="details" class="method-name">yy_r5_2</a> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$counter" id="$counter"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$counter</span> - (line <span class="line-number">17</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$data" id="$data"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$data</span> - (line <span class="line-number">16</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$line" id="$line"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$line</span> - (line <span class="line-number">21</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$node" id="$node"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$node</span> - (line <span class="line-number">20</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty_token_names" id="$smarty_token_names"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$smarty_token_names</span> - = <span class="var-default">array ( // Text for parser error messages <br /> )</span> (line <span class="line-number">23</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$token" id="$token"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$token</span> - (line <span class="line-number">18</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$value" id="$value"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$value</span> - (line <span class="line-number">19</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodinstance" id="instance"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method instance</span> (line <span class="line-number">36</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - &instance - </span> - ([<span class="var-type"></span> <span class="var-name">$new_instance</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$new_instance</span> </li> - </ul> - - - </div> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Configfilelexer</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type"></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$data</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$smarty</span> </li> - </ul> - - - </div> -<a name="methodyybegin" id="yybegin"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yybegin</span> (line <span class="line-number">65</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yybegin - </span> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$state</span> </li> - </ul> - - - </div> -<a name="methodyylex" id="yylex"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yylex</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex - </span> - () - </div> - - - - </div> -<a name="methodyylex1" id="yylex1"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yylex1</span> (line <span class="line-number">73</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex1 - </span> - () - </div> - - - - </div> -<a name="methodyylex2" id="yylex2"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yylex2</span> (line <span class="line-number">178</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex2 - </span> - () - </div> - - - - </div> -<a name="methodyylex3" id="yylex3"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yylex3</span> (line <span class="line-number">307</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex3 - </span> - () - </div> - - - - </div> -<a name="methodyylex4" id="yylex4"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yylex4</span> (line <span class="line-number">374</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex4 - </span> - () - </div> - - - - </div> -<a name="methodyylex5" id="yylex5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yylex5</span> (line <span class="line-number">453</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yylex5 - </span> - () - </div> - - - - </div> -<a name="methodyypopstate" id="yypopstate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yypopstate</span> (line <span class="line-number">60</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yypopstate - </span> - () - </div> - - - - </div> -<a name="methodyypushstate" id="yypushstate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yypushstate</span> (line <span class="line-number">54</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yypushstate - </span> - (<span class="var-type"></span> <span class="var-name">$state</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$state</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_1" id="yy_r1_1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_1</span> (line <span class="line-number">137</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_2" id="yy_r1_2"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_2</span> (line <span class="line-number">143</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_3" id="yy_r1_3"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_3</span> (line <span class="line-number">149</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_3 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_4" id="yy_r1_4"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_4</span> (line <span class="line-number">154</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_4 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_5" id="yy_r1_5"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_5</span> (line <span class="line-number">160</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_5 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_6" id="yy_r1_6"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_6</span> (line <span class="line-number">165</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_6 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r1_7" id="yy_r1_7"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r1_7</span> (line <span class="line-number">170</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r1_7 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_1" id="yy_r2_1"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_1</span> (line <span class="line-number">244</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_2" id="yy_r2_2"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_2</span> (line <span class="line-number">249</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_3" id="yy_r2_3"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_3</span> (line <span class="line-number">255</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_3 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_4" id="yy_r2_4"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_4</span> (line <span class="line-number">261</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_4 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_5" id="yy_r2_5"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_5</span> (line <span class="line-number">267</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_5 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_6" id="yy_r2_6"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_6</span> (line <span class="line-number">273</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_6 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_8" id="yy_r2_8"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_8</span> (line <span class="line-number">279</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_8 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_9" id="yy_r2_9"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_9</span> (line <span class="line-number">291</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_9 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r2_10" id="yy_r2_10"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r2_10</span> (line <span class="line-number">297</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r2_10 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r3_1" id="yy_r3_1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r3_1</span> (line <span class="line-number">365</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r3_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_1" id="yy_r4_1"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_1</span> (line <span class="line-number">434</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_2" id="yy_r4_2"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_2</span> (line <span class="line-number">439</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r4_3" id="yy_r4_3"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r4_3</span> (line <span class="line-number">444</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r4_3 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r5_1" id="yy_r5_1"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">yy_r5_1</span> (line <span class="line-number">512</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r5_1 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> -<a name="methodyy_r5_2" id="yy_r5_2"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">yy_r5_2</span> (line <span class="line-number">517</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - yy_r5_2 - </span> - (<span class="var-type"></span> <span class="var-name">$yy_subpatterns</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$yy_subpatterns</span> </li> - </ul> - - - </div> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="constCOMMENT" id="COMMENT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">COMMENT</span> - = <span class="const-default"> 4</span> - (line <span class="line-number">433</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constNAKED_STRING_VALUE" id="NAKED_STRING_VALUE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">NAKED_STRING_VALUE</span> - = <span class="const-default"> 3</span> - (line <span class="line-number">364</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constSECTION" id="SECTION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SECTION</span> - = <span class="const-default"> 5</span> - (line <span class="line-number">511</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constSTART" id="START"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">START</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">136</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="constVALUE" id="VALUE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">VALUE</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">243</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:50 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Config/_libs---sysplugins---smarty_internal_config.php.html
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_config.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_config.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Config</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:50 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Config/_libs---sysplugins---smarty_internal_config_file_compiler.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_config_file_compiler.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_config_file_compiler.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Config File Compiler</p> -<p class="description"><p>This is the config file compiler class. It calls the lexer and parser to perform the compiling.</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Config/Smarty_Internal_Config_File_Compiler.html">Smarty_Internal_Config_File_Compiler</a> - </td> - <td> - Main config file compiler class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Config/_libs---sysplugins---smarty_internal_configfilelexer.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_configfilelexer.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_configfilelexer.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Configfilelexer</p> -<p class="description"><p>This is the lexer to break the config file source into tokens</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Config/Smarty_Internal_Configfilelexer.html">Smarty_Internal_Configfilelexer</a> - </td> - <td> - Smarty Internal Plugin Configfilelexer - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:50 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Debug
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Debug/Smarty_Internal_Debug.html
Deleted
@@ -1,454 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Debug</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Debug</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Debug Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_debug.php.html">/libs/sysplugins/smarty_internal_debug.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - | - --Smarty_Internal_Debug</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$template_data" title="details" class="var-name">$template_data</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#display_debug" title="details" class="method-name">display_debug</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a>|<a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$obj</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#end_cache" title="details" class="method-name">end_cache</a> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#end_compile" title="details" class="method-name">end_compile</a> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#end_render" title="details" class="method-name">end_render</a> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - <div class="method-definition"> - static <span class="method-result">StdClass</span> - <a href="#get_debug_vars" title="details" class="method-name">get_debug_vars</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a>|<a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a></span> <span class="var-name">$obj</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#start_cache" title="details" class="method-name">start_cache</a> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#start_compile" title="details" class="method-name">start_compile</a> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#start_render" title="details" class="method-name">start_render</a> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$template_data" id="$template_data"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$template_data</span> - = <span class="var-default">array()</span> (line <span class="line-number">25</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">template data</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methoddisplay_debug" id="display_debug"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method display_debug</span> (line <span class="line-number">98</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Opens a window for the Smarty Debugging Consol and display the data</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - display_debug - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a>|<a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$obj</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a>|<a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$obj</span><span class="var-description">: object to debug</span> </li> - </ul> - - - </div> -<a name="methodend_cache" id="end_cache"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method end_cache</span> (line <span class="line-number">87</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">End logging of cache time</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - end_cache - </span> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span><span class="var-description">: cached template</span> </li> - </ul> - - - </div> -<a name="methodend_compile" id="end_compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method end_compile</span> (line <span class="line-number">43</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">End logging of compile time</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - end_compile - </span> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span> </li> - </ul> - - - </div> -<a name="methodend_render" id="end_render"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method end_render</span> (line <span class="line-number">65</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">End logging of compile time</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - end_render - </span> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span> </li> - </ul> - - - </div> -<a name="methodget_debug_vars" id="get_debug_vars"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method get_debug_vars</span> (line <span class="line-number">144</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Recursively gets variables from all template/data scopes</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">StdClass</span> - <span class="method-name"> - get_debug_vars - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a>|<a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a></span> <span class="var-name">$obj</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a>|<a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a></span> - <span class="var-name">$obj</span><span class="var-description">: object to debug</span> </li> - </ul> - - - </div> -<a name="methodstart_cache" id="start_cache"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method start_cache</span> (line <span class="line-number">76</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Start logging of cache time</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - start_cache - </span> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span><span class="var-description">: cached template</span> </li> - </ul> - - - </div> -<a name="methodstart_compile" id="start_compile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method start_compile</span> (line <span class="line-number">32</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Start logging of compile time</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - start_compile - </span> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span> </li> - </ul> - - - </div> -<a name="methodstart_render" id="start_render"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method start_render</span> (line <span class="line-number">54</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Start logging of render time</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - start_render - </span> - (<span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span> </li> - </ul> - - - </div> - - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:53 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.debug_print_var.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.debug_print_var.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_debug_print_var" id="functionsmarty_modifier_debug_print_var"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifier_debug_print_var</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty debug_print_var modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: debug_print_var<br /> Purpose: formats variable contents for display in the console</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_debug_print_var - </span> - (<span class="var-type">array|object </span> <span class="var-name">$var</span>, [<span class="var-type">integer</span> <span class="var-name">$depth</span> = <span class="var-default">0</span>], [<span class="var-type">integer</span> <span class="var-name">$length</span> = <span class="var-default">40</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array|object </span> - <span class="var-name">$var</span><span class="var-description">: variable to be formatted</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$depth</span><span class="var-description">: maximum recursion depth if $var is an array</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$length</span><span class="var-description">: maximum string length if $var is a string</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:13 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Debug/_libs---sysplugins---smarty_internal_debug.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_debug.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_debug.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Debug</p> -<p class="description"><p>Class to collect data for the Smarty Debugging Consol</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Debug/Smarty_Internal_Debug.html">Smarty_Internal_Debug</a> - </td> - <td> - Smarty Internal Plugin Debug Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:53 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsBlock
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page block.textformat.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/block.textformat.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin to format text blocks</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_block_textformat" id="functionsmarty_block_textformat"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_block_textformat</span> (line <span class="line-number">35</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {textformat}{/textformat} block plugin</p> -<p class="description"><p>Type: block function<br /> Name: textformat<br /> Purpose: format text a certain way with preset styles or custom wrap/indent settings<br /> Params: <pre> - style - string (email) - - indent - integer (0) - - wrap - integer (80) - - wrap_char - string ("\n") - - indent_char - string (" ") - - wrap_boundary - boolean (true)</pre></p></p> - <ul class="tags"> - <li><span class="field">return:</span> content re-formatted</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.textformat.php">http://www.smarty.net/manual/en/language.function.textformat.php {textformat} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_block_textformat - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>, <span class="var-type">boolean</span> <span class="var-name">&$repeat</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: contents of the block</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">&$repeat</span><span class="var-description">: repeat flag</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:04 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFilter
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page outputfilter.trimwhitespace.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/outputfilter.trimwhitespace.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_outputfilter_trimwhitespace" id="functionsmarty_outputfilter_trimwhitespace"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_outputfilter_trimwhitespace</span> (line <span class="line-number">19</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty trimwhitespace outputfilter plugin</p> -<p class="description"><p>Trim unnecessary whitespace from HTML markup.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> filtered output</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_outputfilter_trimwhitespace - </span> - (<span class="var-type">string</span> <span class="var-name">$source</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$source</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page variablefilter.htmlspecialchars.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/variablefilter.htmlspecialchars.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_variablefilter_htmlspecialchars" id="functionsmarty_variablefilter_htmlspecialchars"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_variablefilter_htmlspecialchars</span> (line <span class="line-number">16</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty htmlspecialchars variablefilter plugin</p> - <ul class="tags"> - <li><span class="field">return:</span> filtered output</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_variablefilter_htmlspecialchars - </span> - (<span class="var-type">string</span> <span class="var-name">$source</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$source</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:10 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.counter.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.counter.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.counter.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_counter" id="functionsmarty_function_counter"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_counter</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {counter} function plugin</p> -<p class="description"><p>Type: function<br /> Name: counter<br /> Purpose: print out a counter value</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.counter.php">http://www.smarty.net/manual/en/language.function.counter.php {counter} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string|null</span> - <span class="method-name"> - smarty_function_counter - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:11 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html
Deleted
@@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.cycle.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.cycle.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_cycle" id="functionsmarty_function_cycle"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_cycle</span> (line <span class="line-number">46</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {cycle} function plugin</p> -<p class="description"><p>Type: function<br /> Name: cycle<br /> Date: May 3, 2002<br /> Purpose: cycle through given values<br /> Params: <pre> - name - name of cycle (optional) - - values - comma separated list of values to cycle, or an array of values to cycle - (this can be left out for subsequent calls) - - reset - boolean - resets given var to true - - print - boolean - print var or not. default is true - - advance - boolean - whether or not to advance the cycle - - delimiter - the value delimiter, default is "," - - assign - boolean, assigns to template var instead of printed.</pre> Examples:<br /> <pre> {cycle values="#eeeeee,#d0d0d0d"} - {cycle name=row values="one,two,three" reset=true} - {cycle name=row}</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> credit to Mark Priatel <<a href="mailto:mpriatel@rogers.com">mpriatel@rogers.com</a>></li> - <li><span class="field">author:</span> credit to Gerard <<a href="mailto:gerard@interfold.com">gerard@interfold.com</a>></li> - <li><span class="field">author:</span> credit to Jason Sweat <<a href="mailto:jsweat_php@yahoo.com">jsweat_php@yahoo.com</a>></li> - <li><span class="field">version:</span> 1.3</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.cycle.php">http://www.smarty.net/manual/en/language.function.cycle.php {cycle} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string|null</span> - <span class="method-name"> - smarty_function_cycle - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:11 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.fetch.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.fetch.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_fetch" id="functionsmarty_function_fetch"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_fetch</span> (line <span class="line-number">23</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {fetch} plugin</p> -<p class="description"><p>Type: function<br /> Name: fetch<br /> Purpose: fetch file, web or ftp data and display results</p></p> - <ul class="tags"> - <li><span class="field">return:</span> if the assign parameter is passed, Smarty assigns the result to a template variable</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.fetch.php">http://www.smarty.net/manual/en/language.function.fetch.php {fetch} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string|null</span> - <span class="method-name"> - smarty_function_fetch - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:11 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html
Deleted
@@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_checkboxes.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_checkboxes.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_checkboxes" id="functionsmarty_function_html_checkboxes"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_html_checkboxes</span> (line <span class="line-number">44</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_checkboxes} function plugin</p> -<p class="description"><p>File: function.html_checkboxes.php<br /> Type: function<br /> Name: html_checkboxes<br /> Date: 24.Feb.2003<br /> Purpose: Prints out a list of checkbox input types<br /> Examples: <pre> {html_checkboxes values=$ids output=$names} - {html_checkboxes values=$ids name='box' separator='<br>' output=$names} - {html_checkboxes values=$ids checked=$checked separator='<br>' output=$names}</pre> Params: <pre> - name (optional) - string default "checkbox" - - values (required) - array - - options (optional) - associative array - - checked (optional) - array default not set - - separator (optional) - ie <br> or - - output (optional) - the output next to each checkbox - - assign (optional) - assign the output as an array to this variable</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> credits to Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Christopher Kvarme <<a href="mailto:christopher.kvarme@flashjab.com">christopher.kvarme@flashjab.com</a>></li> - <li><span class="field">version:</span> 1.0</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.html.checkboxes.php">http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes} - (Smarty online manual)</a></li> - <li><span class="field">uses:</span> <a href="../../Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars">smarty_function_escape_special_chars()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_checkboxes - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type">object</span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> -<a name="functionsmarty_function_html_checkboxes_output" id="functionsmarty_function_html_checkboxes_output"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_html_checkboxes_output</span> (line <span class="line-number">129</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - smarty_function_html_checkboxes_output - </span> - (<span class="var-type"></span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">$value</span>, <span class="var-type"></span> <span class="var-name">$output</span>, <span class="var-type"></span> <span class="var-name">$selected</span>, <span class="var-type"></span> <span class="var-name">$extra</span>, <span class="var-type"></span> <span class="var-name">$separator</span>, <span class="var-type"></span> <span class="var-name">$labels</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$name</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$value</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$output</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$selected</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$extra</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$separator</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$labels</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_image.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_image.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_image" id="functionsmarty_function_html_image"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_html_image</span> (line <span class="line-number">37</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_image} function plugin</p> -<p class="description"><p>Type: function<br /> Name: html_image<br /> Date: Feb 24, 2003<br /> Purpose: format HTML tags for the image<br /> Examples: {html_image file="/images/masthead.gif"}<br /> Output: <img src="/images/masthead.gif" width=400 height=23><br /> Params: <pre> - file - (required) - file (and path) of image - - height - (optional) - image height (default actual height) - - width - (optional) - image width (default actual width) - - basedir - (optional) - base directory for absolute paths, default is environment variable DOCUMENT_ROOT - - path_prefix - prefix for path output (optional, default empty)</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> credits to Duda <<a href="mailto:duda@big.hu">duda@big.hu</a>></li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">version:</span> 1.0</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.html.image.php">http://www.smarty.net/manual/en/language.function.html.image.php {html_image} - (Smarty online manual)</a></li> - <li><span class="field">uses:</span> <a href="../../Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars">smarty_function_escape_special_chars()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_image - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html
Deleted
@@ -1,170 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_options.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_options.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_options" id="functionsmarty_function_html_options"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_html_options</span> (line <span class="line-number">36</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_options} function plugin</p> -<p class="description"><p>Type: function<br /> Name: html_options<br /> Purpose: Prints the list of <option> tags generated from the passed parameters<br /> Params: <pre> - name (optional) - string default "select" - - values (required) - if no options supplied) - array - - options (required) - if no values supplied) - associative array - - selected (optional) - string default not set - - output (required) - if not options supplied) - array - - id (optional) - string default not set - - class (optional) - string default not set</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Ralf Strehle (minor optimization) <<a href="mailto:ralf">dot strehle at yahoo dot de ralf dot strehle at yahoo dot de</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.html.options.php">http://www.smarty.net/manual/en/language.function.html.options.php {html_image} - (Smarty online manual)</a></li> - <li><span class="field">uses:</span> <a href="../../Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars">smarty_function_escape_special_chars()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_options - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> -<a name="functionsmarty_function_html_options_optgroup" id="functionsmarty_function_html_options_optgroup"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_html_options_optgroup</span> (line <span class="line-number">135</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - smarty_function_html_options_optgroup - </span> - (<span class="var-type"></span> <span class="var-name">$key</span>, <span class="var-type"></span> <span class="var-name">$values</span>, <span class="var-type"></span> <span class="var-name">$selected</span>, <span class="var-type"></span> <span class="var-name">$id</span>, <span class="var-type"></span> <span class="var-name">$class</span>, <span class="var-type"></span> <span class="var-name">&$idx</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$key</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$values</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$selected</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$id</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$class</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$idx</span> </li> - </ul> - - -</div> -<a name="functionsmarty_function_html_options_optoutput" id="functionsmarty_function_html_options_optoutput"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_html_options_optoutput</span> (line <span class="line-number">112</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - smarty_function_html_options_optoutput - </span> - (<span class="var-type"></span> <span class="var-name">$key</span>, <span class="var-type"></span> <span class="var-name">$value</span>, <span class="var-type"></span> <span class="var-name">$selected</span>, <span class="var-type"></span> <span class="var-name">$id</span>, <span class="var-type"></span> <span class="var-name">$class</span>, <span class="var-type"></span> <span class="var-name">&$idx</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$key</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$value</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$selected</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$id</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$class</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$idx</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html
Deleted
@@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_radios.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_radios.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_radios" id="functionsmarty_function_html_radios"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_html_radios</span> (line <span class="line-number">44</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_radios} function plugin</p> -<p class="description"><p>File: function.html_radios.php<br /> Type: function<br /> Name: html_radios<br /> Date: 24.Feb.2003<br /> Purpose: Prints out a list of radio input types<br /> Params: <pre> - name (optional) - string default "radio" - - values (required) - array - - options (required) - associative array - - checked (optional) - array default not set - - separator (optional) - ie <br> or - - output (optional) - the output next to each radio button - - assign (optional) - assign the output as an array to this variable</pre> Examples: <pre> {html_radios values=$ids output=$names} - {html_radios values=$ids name='box' separator='<br>' output=$names} - {html_radios values=$ids checked=$checked separator='<br>' output=$names}</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> credits to Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Christopher Kvarme <<a href="mailto:christopher.kvarme@flashjab.com">christopher.kvarme@flashjab.com</a>></li> - <li><span class="field">version:</span> 1.0</li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.function.html.radios.php">http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios} - (Smarty online manual)</a></li> - <li><span class="field">uses:</span> <a href="../../Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars">smarty_function_escape_special_chars()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_radios - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> -<a name="functionsmarty_function_html_radios_output" id="functionsmarty_function_html_radios_output"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_html_radios_output</span> (line <span class="line-number">129</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - smarty_function_html_radios_output - </span> - (<span class="var-type"></span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">$value</span>, <span class="var-type"></span> <span class="var-name">$output</span>, <span class="var-type"></span> <span class="var-name">$selected</span>, <span class="var-type"></span> <span class="var-name">$extra</span>, <span class="var-type"></span> <span class="var-name">$separator</span>, <span class="var-type"></span> <span class="var-name">$labels</span>, <span class="var-type"></span> <span class="var-name">$label_ids</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$name</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$value</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$output</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$selected</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$extra</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$separator</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$labels</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$label_ids</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_select_date.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_select_date.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_select_date" id="functionsmarty_function_html_select_date"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_html_select_date</span> (line <span class="line-number">54</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_select_date} plugin</p> -<p class="description"><p>Type: function<br /> Name: html_select_date<br /> Purpose: Prints the dropdowns for date selection.</p><p>ChangeLog: <pre> - 1.0 initial release - - 1.1 added support for +/- N syntax for begin - and end year values. (Monte) - - 1.2 added support for yyyy-mm-dd syntax for - time value. (Jan Rosier) - - 1.3 added support for choosing format for - month values (Gary Loescher) - - 1.3.1 added support for choosing format for - day values (Marcus Bointon) - - 1.3.2 support negative timestamps, force year - dropdown to include given date unless explicitly set (Monte) - - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that - of 0000-00-00 dates (cybot, boots) - - 2.0 complete rewrite for performance, - added attributes month_names, *_id</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Andrei Zmievski</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">version:</span> 2.0</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.html.select.date.php">http://www.smarty.net/manual/en/language.function.html.select.date.php {html_select_date} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_select_date - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_select_time.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_select_time.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_select_time" id="functionsmarty_function_html_select_time"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_html_select_time</span> (line <span class="line-number">34</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_select_time} function plugin</p> -<p class="description"><p>Type: function<br /> Name: html_select_time<br /> Purpose: Prints the dropdowns for time selection</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Roberto Berto <<a href="mailto:roberto@berto.net">roberto@berto.net</a>></li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">AT ohrt DOT com monte AT ohrt DOT com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.html.select.time.php">http://www.smarty.net/manual/en/language.function.html.select.time.php {html_select_time} - (Smarty online manual)</a></li> - <li><span class="field">uses:</span> <a href="../../Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html#functionsmarty_make_timestamp">smarty_make_timestamp()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_select_time - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html
Deleted
@@ -1,131 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.html_table.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.html_table.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_html_table" id="functionsmarty_function_html_table"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_html_table</span> (line <span class="line-number">50</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {html_table} function plugin</p> -<p class="description"><p>Type: function<br /> Name: html_table<br /> Date: Feb 17, 2003<br /> Purpose: make an html table from an array of data<br /> Params: <pre> - loop - array to loop through - - cols - number of columns, comma separated list of column names - or array of column names - - rows - number of rows - - table_attr - table attributes - - th_attr - table heading attributes (arrays are cycled) - - tr_attr - table row attributes (arrays are cycled) - - td_attr - table cell attributes (arrays are cycled) - - trailpad - value to pad trailing cells with - - caption - text for caption element - - vdir - vertical direction (default: "down", means top-to-bottom) - - hdir - horizontal direction (default: "right", means left-to-right) - - inner - inner loop (default "cols": print $loop line by line, - $loop will be printed column by column otherwise)</pre> Examples: <pre> {table loop=$data} - {table loop=$data cols=4 tr_attr='"bgcolor=red"'} - {table loop=$data cols="first,second,third" tr_attr=$colors}</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> credit to boots <<a href="mailto:boots">dot smarty at yahoo dot com boots dot smarty at yahoo dot com</a>></li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> credit to Messju Mohr <<a href="mailto:messju">at lammfellpuschen dot de messju at lammfellpuschen dot de</a>></li> - <li><span class="field">version:</span> 1.1</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.html.table.php">http://www.smarty.net/manual/en/language.function.html.table.php {html_table} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_html_table - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> -<a name="functionsmarty_function_html_table_cycle" id="functionsmarty_function_html_table_cycle"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_html_table_cycle</span> (line <span class="line-number">166</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - smarty_function_html_table_cycle - </span> - (<span class="var-type"></span> <span class="var-name">$name</span>, <span class="var-type"></span> <span class="var-name">$var</span>, <span class="var-type"></span> <span class="var-name">$no</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$name</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$var</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$no</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.mailto.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.mailto.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_mailto" id="functionsmarty_function_mailto"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_function_mailto</span> (line <span class="line-number">51</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {mailto} function plugin</p> -<p class="description"><p>Type: function<br /> Name: mailto<br /> Date: May 21, 2002 Purpose: automate mailto address link creation, and optionally encode them.<br /> Params: <pre> - address - (required) - e-mail address - - text - (optional) - text to display, default is address - - encode - (optional) - can be one of: - * none : no encoding (default) - * javascript : encode with javascript - * javascript_charcode : encode with javascript charcode - * hex : encode with hexidecimal (no javascript) - - cc - (optional) - address(es) to carbon copy - - bcc - (optional) - address(es) to blind carbon copy - - subject - (optional) - e-mail subject - - newsgroups - (optional) - newsgroup(s) to post to - - followupto - (optional) - address(es) to follow up to - - extra - (optional) - extra tags for the href link</pre> Examples: <pre> {mailto address="me@domain.com"} - {mailto address="me@domain.com" encode="javascript"} - {mailto address="me@domain.com" encode="hex"} - {mailto address="me@domain.com" subject="Hello to you!"} - {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"} - {mailto address="me@domain.com" extra='class="mailto"'}</pre></p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> credits to Jason Sweat (added cc, bcc and subject functionality)</li> - <li><span class="field">version:</span> 1.2</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.mailto.php">http://www.smarty.net/manual/en/language.function.mailto.php {mailto} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_mailto - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsFunction/_libs---plugins---function.math.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page function.math.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/function.math.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> -<p class="description"><p>This plugin is only for Smarty2 BC</p></p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_math" id="functionsmarty_function_math"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_math</span> (line <span class="line-number">24</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {math} function plugin</p> -<p class="description"><p>Type: function<br /> Name: math<br /> Purpose: handle math computations in template</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.function.math.php">http://www.smarty.net/manual/en/language.function.math.php {math} - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string|null</span> - <span class="method-name"> - smarty_function_math - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html
Deleted
@@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Filter_Handler</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Filter_Handler</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Class for filter processing</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_filter_handler.php.html">/libs/sysplugins/smarty_internal_filter_handler.php</a> (line <span class="field">18</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">string</span> - <a href="#runFilter" title="details" class="method-name">runFilter</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodrunFilter" id="runFilter"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method runFilter</span> (line <span class="line-number">33</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Run filters over content</p> -<p class="description"><p>The filters will be lazy loaded if required class name format: Smarty_FilterType_FilterName plugin filename format: filtertype.filtername.php Smarty2 filter plugins could be used</p></p> - <ul class="tags"> - <li><span class="field">return:</span> the filtered content</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">string</span> - <span class="method-name"> - runFilter - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: the type of filter ('pre','post','output') which shall run</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: the content which shall be processed by the filters</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - </ul> - - - </div> - - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:54 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html
Deleted
@@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Function_Call_Handler</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Function_Call_Handler</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This class does call function defined with the {function} tag</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_function_call_handler.php.html">/libs/sysplugins/smarty_internal_function_call_handler.php</a> (line <span class="field">16</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#call" title="details" class="method-name">call</a> - (<span class="var-type">string</span> <span class="var-name">$_name</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">array</span> <span class="var-name">$_params</span>, <span class="var-type">string</span> <span class="var-name">$_hash</span>, <span class="var-type">bool</span> <span class="var-name">$_nocache</span>) - </div> - - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodcall" id="call"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method call</span> (line <span class="line-number">28</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This function handles calls to template functions defined by {function} It does create a PHP function at the first call</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - call - </span> - (<span class="var-type">string</span> <span class="var-name">$_name</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">array</span> <span class="var-name">$_params</span>, <span class="var-type">string</span> <span class="var-name">$_hash</span>, <span class="var-type">bool</span> <span class="var-name">$_nocache</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$_name</span><span class="var-description">: template function name</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$_params</span><span class="var-description">: Smarty variables passed as call parameter</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$_hash</span><span class="var-description">: nocache hash value</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$_nocache</span><span class="var-description">: nocache flag</span> </li> - </ul> - - - </div> - - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:55 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html>
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Get_Include_Path</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Get_Include_Path</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Read Include Path Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_get_include_path.php.html">/libs/sysplugins/smarty_internal_get_include_path.php</a> (line <span class="field">16</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">string|boolean</span> - <a href="#getIncludePath" title="details" class="method-name">getIncludePath</a> - (<span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodgetIncludePath" id="getIncludePath"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method getIncludePath</span> (line <span class="line-number">24</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Return full file path from PHP include_path</p> - <ul class="tags"> - <li><span class="field">return:</span> full filepath or false</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">string|boolean</span> - <span class="method-name"> - getIncludePath - </span> - (<span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$filepath</span><span class="var-description">: filepath</span> </li> - </ul> - - - </div> - - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:55 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/Smarty_Internal_Write_File.html
Deleted
@@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Write_File</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Write_File</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Write File Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_write_file.php.html">/libs/sysplugins/smarty_internal_write_file.php</a> (line <span class="field">16</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">boolean</span> - <a href="#writeFile" title="details" class="method-name">writeFile</a> - (<span class="var-type">string</span> <span class="var-name">$_filepath</span>, <span class="var-type">string</span> <span class="var-name">$_contents</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodwriteFile" id="writeFile"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method writeFile</span> (line <span class="line-number">26</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Writes file in a safe way to disk</p> - <ul class="tags"> - <li><span class="field">return:</span> true</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">boolean</span> - <span class="method-name"> - writeFile - </span> - (<span class="var-type">string</span> <span class="var-name">$_filepath</span>, <span class="var-type">string</span> <span class="var-name">$_contents</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$_filepath</span><span class="var-description">: complete filepath</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$_contents</span><span class="var-description">: file content</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: smarty instance</span> </li> - </ul> - - - </div> - - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_filter_handler.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_filter_handler.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_filter_handler.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Filter Handler</p> -<p class="description"><p>Smarty filter handler class</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html">Smarty_Internal_Filter_Handler</a> - </td> - <td> - Class for filter processing - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:54 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_function_call_handler.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_function_call_handler.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_function_call_handler.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Function Call Handler</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html">Smarty_Internal_Function_Call_Handler</a> - </td> - <td> - This class does call function defined with the {function} tag - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:55 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_get_include_path.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_get_include_path.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_get_include_path.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty read include path plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html">Smarty_Internal_Get_Include_Path</a> - </td> - <td> - Smarty Internal Read Include Path Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:55 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_write_file.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_write_file.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_write_file.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty write file plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/PluginsInternal/Smarty_Internal_Write_File.html">Smarty_Internal_Write_File</a> - </td> - <td> - Smarty Internal Write File Class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.capitalize.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.capitalize.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_capitalize" id="functionsmarty_modifier_capitalize"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifier_capitalize</span> (line <span class="line-number">25</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty capitalize modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: capitalize<br /> Purpose: capitalize words in the string</p><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> capitalized string</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_capitalize - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, [<span class="var-type">boolean</span> <span class="var-name">$uc_digits</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span> <span class="var-name">$lc_rest</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: string to capitalize</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$uc_digits</span><span class="var-description">: also capitalize "x123" to "X123"</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$lc_rest</span><span class="var-description">: capitalize first letters, lowercase all following letters "aAa" to "Aaa"</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:12 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.date_format.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.date_format.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_date_format" id="functionsmarty_modifier_date_format"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifier_date_format</span> (line <span class="line-number">29</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty date_format modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: date_format<br /> Purpose: format datestamps via strftime<br /> Input:<br /> <ul><li>string: input date string</li><li>format: strftime format for output</li><li>default_date: default date if $string is empty</li></ul></p></p> - <ul class="tags"> - <li><span class="field">return:</span> |void</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.date.format.php">http://www.smarty.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual)</a></li> - <li><span class="field">uses:</span> <a href="../../Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html#functionsmarty_make_timestamp">smarty_make_timestamp()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_date_format - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, [<span class="var-type">string</span> <span class="var-name">$format</span> = <span class="var-default">SMARTY_RESOURCE_DATE_FORMAT</span>], [<span class="var-type">string</span> <span class="var-name">$default_date</span> = <span class="var-default">''</span>], [<span class="var-type">string</span> <span class="var-name">$formatter</span> = <span class="var-default">'auto'</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: input date string</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$format</span><span class="var-description">: strftime format for output</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$default_date</span><span class="var-description">: default date if $string is empty</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$formatter</span><span class="var-description">: either 'strftime' or 'auto'</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:13 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.escape.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.escape.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_escape" id="functionsmarty_modifier_escape"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifier_escape</span> (line <span class="line-number">24</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty escape modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: escape<br /> Purpose: escape string for output</p></p> - <ul class="tags"> - <li><span class="field">return:</span> escaped input string</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.count.characters.php">http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_escape - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, [<span class="var-type">string</span> <span class="var-name">$esc_type</span> = <span class="var-default">'html'</span>], [<span class="var-type">string</span> <span class="var-name">$char_set</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$double_encode</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$esc_type</span><span class="var-description">: escape type</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$char_set</span><span class="var-description">: character set, used for htmlspecialchars() or htmlentities()</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$double_encode</span><span class="var-description">: encode already encoded entitites again, used for htmlspecialchars() or htmlentities()</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:13 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.regex_replace.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.regex_replace.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_regex_replace" id="functionsmarty_modifier_regex_replace"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifier_regex_replace</span> (line <span class="line-number">24</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty regex_replace modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: regex_replace<br /> Purpose: regular expression search/replace</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.regex.replace.php">http://smarty.php.net/manual/en/language.modifier.regex.replace.php - regex_replace (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_regex_replace - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, <span class="var-type">string|array</span> <span class="var-name">$search</span>, <span class="var-type">string|array</span> <span class="var-name">$replace</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$search</span><span class="var-description">: regular expression(s) to search for</span> </li> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$replace</span><span class="var-description">: string(s) that should be replaced</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.replace.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.replace.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_replace" id="functionsmarty_modifier_replace"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifier_replace</span> (line <span class="line-number">23</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty replace modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: replace<br /> Purpose: simple search/replace</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.replace.php">http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_replace - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, <span class="var-type">string</span> <span class="var-name">$search</span>, <span class="var-type">string</span> <span class="var-name">$replace</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$search</span><span class="var-description">: text to search for</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$replace</span><span class="var-description">: replacement text</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.spacify.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.spacify.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_spacify" id="functionsmarty_modifier_spacify"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifier_spacify</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty spacify modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: spacify<br /> Purpose: add spaces between characters in a string</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.spacify.php">http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_spacify - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, [<span class="var-type">string</span> <span class="var-name">$spacify_char</span> = <span class="var-default">' '</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$spacify_char</span><span class="var-description">: string to insert between characters.</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifier.truncate.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifier.truncate.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifier_truncate" id="functionsmarty_modifier_truncate"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifier_truncate</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty truncate modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: truncate<br /> Purpose: Truncate a string to a certain length if necessary, optionally splitting in the middle of a word, and appending the $etc string or inserting $etc into the middle.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> truncated string</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.truncate.php">http://smarty.php.net/manual/en/language.modifier.truncate.php truncate (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifier_truncate - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, [<span class="var-type">integer</span> <span class="var-name">$length</span> = <span class="var-default">80</span>], [<span class="var-type">string</span> <span class="var-name">$etc</span> = <span class="var-default">'...'</span>], [<span class="var-type">boolean</span> <span class="var-name">$break_words</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span> <span class="var-name">$middle</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: input string</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$length</span><span class="var-description">: length of truncated text</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$etc</span><span class="var-description">: end string</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$break_words</span><span class="var-description">: truncate at word boundary</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$middle</span><span class="var-description">: truncate in the middle of text</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.cat.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.cat.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_cat" id="functionsmarty_modifiercompiler_cat"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_cat</span> (line <span class="line-number">25</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty cat modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: cat<br /> Date: Feb 24, 2003<br /> Purpose: catenate a value to a variable<br /> Input: string to catenate<br /> Example: {$var|cat:"foo"}</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.cat.php">http://smarty.php.net/manual/en/language.modifier.cat.php cat - (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_cat - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.count_characters.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.count_characters.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_count_characters" id="functionsmarty_modifiercompiler_count_characters"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_count_characters</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty count_characters modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: count_characteres<br /> Purpose: count the number of characters in a text</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.count.characters.php">http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_count_characters - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.count_paragraphs.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.count_paragraphs.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_count_paragraphs" id="functionsmarty_modifiercompiler_count_paragraphs"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_count_paragraphs</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty count_paragraphs modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: count_paragraphs<br /> Purpose: count the number of paragraphs in a text</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php">http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php - count_paragraphs (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_count_paragraphs - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.count_sentences.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.count_sentences.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_count_sentences" id="functionsmarty_modifiercompiler_count_sentences"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_count_sentences</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty count_sentences modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: count_sentences Purpose: count the number of sentences in a text</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php">http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php - count_sentences (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_count_sentences - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.count_words.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.count_words.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_count_words" id="functionsmarty_modifiercompiler_count_words"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_count_words</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty count_words modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: count_words<br /> Purpose: count the number of words in a text</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.count.words.php">http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_count_words - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.default.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.default.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_default" id="functionsmarty_modifiercompiler_default"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_default</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty default modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: default<br /> Purpose: designate default value for empty variables</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.default.php">http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_default - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.escape.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.escape.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_escape" id="functionsmarty_modifiercompiler_escape"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_escape</span> (line <span class="line-number">26</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty escape modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: escape<br /> Purpose: escape string for output</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/docsv2/en/language.modifier.escape">http://www.smarty.net/docsv2/en/language.modifier.escape count_characters (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_escape - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.from_charset.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.from_charset.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_from_charset" id="functionsmarty_modifiercompiler_from_charset"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_from_charset</span> (line <span class="line-number">20</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty from_charset modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: from_charset<br /> Purpose: convert character encoding from $charset to internal encoding</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_from_charset - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.indent.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.indent.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_indent" id="functionsmarty_modifiercompiler_indent"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_indent</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty indent modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: indent<br /> Purpose: indent lines of text</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.indent.php">http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_indent - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.lower.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.lower.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_lower" id="functionsmarty_modifiercompiler_lower"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_lower</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty lower modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: lower<br /> Purpose: convert string to lowercase</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.lower.php">http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_lower - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.noprint.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.noprint.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_noprint" id="functionsmarty_modifiercompiler_noprint"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_noprint</span> (line <span class="line-number">20</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty noprint modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: noprint<br /> Purpose: return an empty string</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_noprint - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.string_format.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.string_format.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_string_format" id="functionsmarty_modifiercompiler_string_format"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_string_format</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty string_format modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: string_format<br /> Purpose: format strings via sprintf</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.string.format.php">http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_string_format - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.strip.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.strip.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_strip" id="functionsmarty_modifiercompiler_strip"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_strip</span> (line <span class="line-number">25</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty strip modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: strip<br /> Purpose: Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string.<br /> Example: {$var|strip} {$var|strip:"&nbsp;"}<br /> Date: September 25th, 2002</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.strip.php">http://www.smarty.net/manual/en/language.modifier.strip.php strip (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_strip - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.strip_tags.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.strip_tags.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_strip_tags" id="functionsmarty_modifiercompiler_strip_tags"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_strip_tags</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty strip_tags modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: strip_tags<br /> Purpose: strip html tags from text</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/manual/en/language.modifier.strip.tags.php">http://www.smarty.net/manual/en/language.modifier.strip.tags.php strip_tags (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_strip_tags - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.to_charset.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.to_charset.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_to_charset" id="functionsmarty_modifiercompiler_to_charset"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_to_charset</span> (line <span class="line-number">20</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty to_charset modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: to_charset<br /> Purpose: convert character encoding from internal encoding to $charset</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_to_charset - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.unescape.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.unescape.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_unescape" id="functionsmarty_modifiercompiler_unescape"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_unescape</span> (line <span class="line-number">20</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty unescape modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: unescape<br /> Purpose: unescape html entities</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_unescape - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.upper.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.upper.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_upper" id="functionsmarty_modifiercompiler_upper"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_upper</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty upper modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: lower<br /> Purpose: convert string to uppercase</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.upper.php">http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_upper - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page modifiercompiler.wordwrap.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/modifiercompiler.wordwrap.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_modifiercompiler_wordwrap" id="functionsmarty_modifiercompiler_wordwrap"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_modifiercompiler_wordwrap</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty wordwrap modifier plugin</p> -<p class="description"><p>Type: modifier<br /> Name: wordwrap<br /> Purpose: wrap a string of text at a given length</p></p> - <ul class="tags"> - <li><span class="field">return:</span> with compiled code</li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.wordwrap.php">http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual)</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_modifiercompiler_wordwrap - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type"></span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameters</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$compiler</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:15 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page shared.escape_special_chars.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/shared.escape_special_chars.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty shared plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_function_escape_special_chars" id="functionsmarty_function_escape_special_chars"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_function_escape_special_chars</span> (line <span class="line-number">21</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">escape_special_chars common function</p> -<p class="description"><p>Function: smarty_function_escape_special_chars<br /> Purpose: used by other smarty functions to escape special chars except for already escaped ones</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">usedby:</span> <a href="../../Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios">smarty_function_html_radios()</a></li> - <li><span class="field">usedby:</span> <a href="../../Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options">smarty_function_html_options()</a></li> - <li><span class="field">usedby:</span> <a href="../../Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html#functionsmarty_function_html_image">smarty_function_html_image()</a></li> - <li><span class="field">usedby:</span> <a href="../../Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes">smarty_function_html_checkboxes()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_function_escape_special_chars - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: text that should by escaped</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page shared.literal_compiler_param.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/shared.literal_compiler_param.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_literal_compiler_param" id="functionsmarty_literal_compiler_param"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_literal_compiler_param</span> (line <span class="line-number">19</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">evaluate compiler parameter</p> - <ul class="tags"> - <li><span class="field">return:</span> evaluated value of parameter or $default</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">throws:</span> SmartyException if parameter is not a literal (but an expression, variable, …)</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - smarty_literal_compiler_param - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type">integer</span> <span class="var-name">$index</span>, [<span class="var-type">mixed</span> <span class="var-name">$default</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameter array as given to the compiler function</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$index</span><span class="var-description">: array index of the parameter to convert</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$default</span><span class="var-description">: value to be returned if the parameter is not present</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html>
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page shared.make_timestamp.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/shared.make_timestamp.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty shared plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_make_timestamp" id="functionsmarty_make_timestamp"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_make_timestamp</span> (line <span class="line-number">17</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Function: smarty_make_timestamp<br /> Purpose: used by other smarty functions to make a timestamp from a string.</p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">usedby:</span> <a href="../../Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html#functionsmarty_modifier_date_format">smarty_modifier_date_format()</a></li> - <li><span class="field">usedby:</span> <a href="../../Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html#functionsmarty_function_html_select_time">smarty_function_html_select_time()</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">int</span> - <span class="method-name"> - smarty_make_timestamp - </span> - (<span class="var-type">DateTime|int|string</span> <span class="var-name">$string</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">DateTime|int|string</span> - <span class="var-name">$string</span><span class="var-description">: date object, timestamp or string that can be converted using strtotime()</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page shared.mb_str_replace.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/shared.mb_str_replace.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty shared plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_mb_str_replace" id="functionsmarty_mb_str_replace"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_mb_str_replace</span> (line <span class="line-number">20</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Multibyte string replace</p> - <ul class="tags"> - <li><span class="field">return:</span> replaced string</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_mb_str_replace - </span> - (<span class="var-type">string</span> <span class="var-name">$search</span>, <span class="var-type">string</span> <span class="var-name">$replace</span>, <span class="var-type">string</span> <span class="var-name">$subject</span>, [<span class="var-type">int</span> <span class="var-name">&$count</span> = <span class="var-default">0</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$search</span><span class="var-description">: the string to be searched</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$replace</span><span class="var-description">: the replacement string</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$subject</span><span class="var-description">: the source string</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">&$count</span><span class="var-description">: number of matches found</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html
Deleted
@@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page shared.mb_unicode.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/shared.mb_unicode.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty shared plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_mb_from_unicode" id="functionsmarty_mb_from_unicode"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_mb_from_unicode</span> (line <span class="line-number">36</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">convert unicodes to the character of given encoding</p> - <ul class="tags"> - <li><span class="field">return:</span> unicode as character sequence in given $encoding</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">link:</span> <a href="http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3">http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3 for inspiration</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_mb_from_unicode - </span> - (<span class="var-type">integer|array</span> <span class="var-name">$unicode</span>, [<span class="var-type">string</span> <span class="var-name">$encoding</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">integer|array</span> - <span class="var-name">$unicode</span><span class="var-description">: single unicode or list of unicodes to convert</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$encoding</span><span class="var-description">: encoding of returned string, if null mb_internal_encoding() is used</span> </li> - </ul> - - -</div> -<a name="functionsmarty_mb_to_unicode" id="functionsmarty_mb_to_unicode"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_mb_to_unicode</span> (line <span class="line-number">18</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">convert characters to their decimal unicode equivalents</p> - <ul class="tags"> - <li><span class="field">return:</span> sequence of unicodes</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">link:</span> <a href="http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3">http://www.ibm.com/developerworks/library/os-php-unicode/index.html#listing3 for inspiration</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - smarty_mb_to_unicode - </span> - (<span class="var-type">string</span> <span class="var-name">$string</span>, [<span class="var-type">string</span> <span class="var-name">$encoding</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$string</span><span class="var-description">: characters to calculate unicode of</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$encoding</span><span class="var-description">: encoding of $string, if null mb_internal_encoding() is used</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page shared.mb_wordwrap.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/plugins/shared.mb_wordwrap.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty shared plugin</p> - - </div> -</div> - - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_mb_wordwrap" id="functionsmarty_mb_wordwrap"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smarty_mb_wordwrap</span> (line <span class="line-number">22</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Wrap a string to a given number of characters</p> - <ul class="tags"> - <li><span class="field">return:</span> wrapped string</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">link:</span> <a href="http://php.net/manual/en/function.wordwrap.php">http://php.net/manual/en/function.wordwrap.php for similarity</a></li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_mb_wordwrap - </span> - (<span class="var-type">string</span> <span class="var-name">$str</span>, [<span class="var-type">int</span> <span class="var-name">$width</span> = <span class="var-default">75</span>], [<span class="var-type">string</span> <span class="var-name">$break</span> = <span class="var-default">&quot;\n&quot;</span>], [<span class="var-type">boolean</span> <span class="var-name">$cut</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$str</span><span class="var-description">: the string to wrap</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$width</span><span class="var-description">: the width of the output</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$break</span><span class="var-description">: the character used to break the line</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$cut</span><span class="var-description">: ignored parameter, just for the sake of</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Security
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Security/Smarty_Internal_Utility.html
Deleted
@@ -1,302 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Utility</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Utility</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Utility class</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_utility.php.html">/libs/sysplugins/smarty_internal_utility.php</a> (line <span class="field">41</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">integer</span> - <a href="#clearCompiledTemplate" title="details" class="method-name">clearCompiledTemplate</a> - (<span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - static <span class="method-result">integer</span> - <a href="#compileAllConfig" title="details" class="method-name">compileAllConfig</a> - (<span class="var-type"></span> <span class="var-name">$extention</span>, <span class="var-type">bool</span> <span class="var-name">$force_compile</span>, <span class="var-type">int</span> <span class="var-name">$time_limit</span>, <span class="var-type">int</span> <span class="var-name">$max_errors</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - <div class="method-definition"> - static <span class="method-result">integer</span> - <a href="#compileAllTemplates" title="details" class="method-name">compileAllTemplates</a> - (<span class="var-type"></span> <span class="var-name">$extention</span>, <span class="var-type">bool</span> <span class="var-name">$force_compile</span>, <span class="var-type">int</span> <span class="var-name">$time_limit</span>, <span class="var-type">int</span> <span class="var-name">$max_errors</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - <div class="method-definition"> - static <span class="method-result">array</span> - <a href="#getTags" title="details" class="method-name">getTags</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$templae</span>) - </div> - <div class="method-definition"> - static <span class="method-result">bool</span> - <a href="#testInstall" title="details" class="method-name">testInstall</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type"></span> <span class="var-name">&$errors</span> = <span class="var-default">null</span>], <span class="var-type">array</span> <span class="var-name">$errors</span>) - </div> - - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodclearCompiledTemplate" id="clearCompiledTemplate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method clearCompiledTemplate</span> (line <span class="line-number">182</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Delete compiled template file</p> - <ul class="tags"> - <li><span class="field">return:</span> number of template files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">integer</span> - <span class="method-name"> - clearCompiledTemplate - </span> - (<span class="var-type">string</span> <span class="var-name">$resource_name</span>, <span class="var-type">string</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$exp_time</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance</span> </li> - </ul> - - - </div> -<a name="methodcompileAllConfig" id="compileAllConfig"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method compileAllConfig</span> (line <span class="line-number">124</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compile all config files</p> - <ul class="tags"> - <li><span class="field">return:</span> number of config files compiled</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">integer</span> - <span class="method-name"> - compileAllConfig - </span> - (<span class="var-type"></span> <span class="var-name">$extention</span>, <span class="var-type">bool</span> <span class="var-name">$force_compile</span>, <span class="var-type">int</span> <span class="var-name">$time_limit</span>, <span class="var-type">int</span> <span class="var-name">$max_errors</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$extension</span><span class="var-description">: config file name extension</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$force_compile</span><span class="var-description">: force all to recompile</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$time_limit</span><span class="var-description">: set maximum execution time</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$max_errors</span><span class="var-description">: set maximum allowed errors</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$extention</span> </li> - </ul> - - - </div> -<a name="methodcompileAllTemplates" id="compileAllTemplates"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method compileAllTemplates</span> (line <span class="line-number">61</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compile all template files</p> - <ul class="tags"> - <li><span class="field">return:</span> number of template files compiled</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">integer</span> - <span class="method-name"> - compileAllTemplates - </span> - (<span class="var-type"></span> <span class="var-name">$extention</span>, <span class="var-type">bool</span> <span class="var-name">$force_compile</span>, <span class="var-type">int</span> <span class="var-name">$time_limit</span>, <span class="var-type">int</span> <span class="var-name">$max_errors</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$extension</span><span class="var-description">: template file name extension</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$force_compile</span><span class="var-description">: force all to recompile</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$time_limit</span><span class="var-description">: set maximum execution time</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$max_errors</span><span class="var-description">: set maximum allowed errors</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$extention</span> </li> - </ul> - - - </div> -<a name="methodgetTags" id="getTags"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method getTags</span> (line <span class="line-number">249</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Return array of tag/attributes of all tags used by an template</p> - <ul class="tags"> - <li><span class="field">return:</span> of tag/attributes</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">array</span> - <span class="method-name"> - getTags - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$templae</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$templae</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span> </li> - </ul> - - - </div> -<a name="methodtestInstall" id="testInstall"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method testInstall</span> (line <span class="line-number">266</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">diagnose Smarty setup</p> -<p class="description"><p>If $errors is secified, the diagnostic report will be appended to the array, rather than being output.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> status, true if everything is fine, false else</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">bool</span> - <span class="method-name"> - testInstall - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type"></span> <span class="var-name">&$errors</span> = <span class="var-default">null</span>], <span class="var-type">array</span> <span class="var-name">$errors</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance to test</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$errors</span><span class="var-description">: array to push results into rather than outputting them</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$errors</span> </li> - </ul> - - - </div> - - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Security/Smarty_Security.html
Deleted
@@ -1,944 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Security</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Security</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This class does contain the security settings</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_security.php.html">/libs/sysplugins/smarty_security.php</a> (line <span class="field">13</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$allowed_modifiers" title="details" class="var-name">$allowed_modifiers</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$allowed_tags" title="details" class="var-name">$allowed_tags</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$allow_constants" title="details" class="var-name">$allow_constants</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$allow_super_globals" title="details" class="var-name">$allow_super_globals</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$disabled_modifiers" title="details" class="var-name">$disabled_modifiers</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$disabled_tags" title="details" class="var-name">$disabled_tags</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$php_functions" title="details" class="var-name">$php_functions</a> - </div> - <div class="var-title"> - <span class="var-type">integer</span> - <a href="#$php_handling" title="details" class="var-name">$php_handling</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$php_modifiers" title="details" class="var-name">$php_modifiers</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$secure_dir" title="details" class="var-name">$secure_dir</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$static_classes" title="details" class="var-name">$static_classes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$streams" title="details" class="var-name">$streams</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$trusted_dir" title="details" class="var-name">$trusted_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_config_dir" title="details" class="var-name">$_config_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_php_resource_dir" title="details" class="var-name">$_php_resource_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_resource_dir" title="details" class="var-name">$_resource_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_secure_dir" title="details" class="var-name">$_secure_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_template_dir" title="details" class="var-name">$_template_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_trusted_dir" title="details" class="var-name">$_trusted_dir</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Security</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedModifier" title="details" class="method-name">isTrustedModifier</a> - (<span class="var-type">string</span> <span class="var-name">$modifier_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedPHPDir" title="details" class="method-name">isTrustedPHPDir</a> - (<span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedPhpFunction" title="details" class="method-name">isTrustedPhpFunction</a> - (<span class="var-type">string</span> <span class="var-name">$function_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedPhpModifier" title="details" class="method-name">isTrustedPhpModifier</a> - (<span class="var-type">string</span> <span class="var-name">$modifier_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedResourceDir" title="details" class="method-name">isTrustedResourceDir</a> - (<span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedStaticClass" title="details" class="method-name">isTrustedStaticClass</a> - (<span class="var-type">string</span> <span class="var-name">$class_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedStream" title="details" class="method-name">isTrustedStream</a> - (<span class="var-type">string</span> <span class="var-name">$stream_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isTrustedTag" title="details" class="method-name">isTrustedTag</a> - (<span class="var-type">string</span> <span class="var-name">$tag_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$allowed_modifiers" id="$allowed_modifiers"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$allowed_modifiers</span> - = <span class="var-default">array()</span> (line <span class="line-number">95</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of allowed modifier plugins.</p> -<p class="description"><p>If empty no restriction by allowed_modifiers.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$allowed_tags" id="$allowed_tags"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$allowed_tags</span> - = <span class="var-default">array()</span> (line <span class="line-number">81</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of allowed tags.</p> -<p class="description"><p>If empty no restriction by allowed_tags.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$allow_constants" id="$allow_constants"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$allow_constants</span> - = <span class="var-default"> true</span> (line <span class="line-number">115</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">+ flag if constants can be accessed from template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$allow_super_globals" id="$allow_super_globals"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$allow_super_globals</span> - = <span class="var-default"> true</span> (line <span class="line-number">120</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">+ flag if super globals can be accessed from template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$disabled_modifiers" id="$disabled_modifiers"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$disabled_modifiers</span> - = <span class="var-default">array()</span> (line <span class="line-number">102</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of disabled modifier plugins.</p> -<p class="description"><p>If empty no restriction by disabled_modifiers.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$disabled_tags" id="$disabled_tags"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$disabled_tags</span> - = <span class="var-default">array()</span> (line <span class="line-number">88</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of disabled tags.</p> -<p class="description"><p>If empty no restriction by disabled_tags.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$php_functions" id="$php_functions"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$php_functions</span> - = <span class="var-default">array( <br /> 'isset', 'empty', <br /> 'count', 'sizeof', <br /> 'in_array', 'is_array', <br /> 'time', <br /> 'nl2br', <br /> )</span> (line <span class="line-number">57</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of trusted PHP functions.</p> -<p class="description"><p>If empty all functions are allowed. To disable all PHP functions set $php_functions = null.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$php_handling" id="$php_handling"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">integer</span> - <span class="var-name">$php_handling</span> - = <span class="var-default"> Smarty::PHP_PASSTHRU</span> (line <span class="line-number">27</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This determines how Smarty handles "<?php ... ?>" tags in templates.</p> -<p class="description"><p>possible values: <ul><li>Smarty::PHP_PASSTHRU -> echo PHP tags as they are</li><li>Smarty::PHP_QUOTE -> escape tags as entities</li><li>Smarty::PHP_REMOVE -> remove php tags</li><li>Smarty::PHP_ALLOW -> execute php tags</li></ul></p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$php_modifiers" id="$php_modifiers"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$php_modifiers</span> - = <span class="var-default">array( <br /> 'escape', <br /> 'count' <br /> )</span> (line <span class="line-number">71</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of trusted PHP modifers.</p> -<p class="description"><p>If empty all modifiers are allowed. To disable all modifier set $modifiers = null.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$secure_dir" id="$secure_dir"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$secure_dir</span> - = <span class="var-default">array()</span> (line <span class="line-number">34</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is the list of template directories that are considered secure.</p> -<p class="description"><p>$template_dir is in this list implicitly.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$static_classes" id="$static_classes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$static_classes</span> - = <span class="var-default">array()</span> (line <span class="line-number">49</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of trusted static classes.</p> -<p class="description"><p>If empty access to all static classes is allowed. If set to 'none' none is allowed.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$streams" id="$streams"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$streams</span> - = <span class="var-default">array('file')</span> (line <span class="line-number">110</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of trusted streams.</p> -<p class="description"><p>If empty all streams are allowed. To disable all streams set $streams = null.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$trusted_dir" id="$trusted_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$trusted_dir</span> - = <span class="var-default">array()</span> (line <span class="line-number">41</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is an array of directories where trusted php scripts reside.</p> -<p class="description"><p>$security is disabled during their inclusion/execution.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_config_dir" id="$_config_dir"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_config_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">141</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$_php_resource_dir" id="$_php_resource_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_php_resource_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">149</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$_resource_dir" id="$_resource_dir"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_resource_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">133</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$_secure_dir" id="$_secure_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_secure_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">145</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$_template_dir" id="$_template_dir"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_template_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">137</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$_trusted_dir" id="$_trusted_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_trusted_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">153</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">125</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Security</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> </li> - </ul> - - - </div> -<a name="methodisTrustedModifier" id="isTrustedModifier"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">isTrustedModifier</span> (line <span class="line-number">247</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if modifier plugin is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if tag is trusted</li> - <li><span class="field">throws:</span> SmartyCompilerException if modifier is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedModifier - </span> - (<span class="var-type">string</span> <span class="var-name">$modifier_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$modifier_name</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> -<a name="methodisTrustedPHPDir" id="isTrustedPHPDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">isTrustedPHPDir</span> (line <span class="line-number">369</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if directory of file resource is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if directory is trusted</li> - <li><span class="field">throws:</span> SmartyException if PHP directory is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedPHPDir - </span> - (<span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$filepath</span> </li> - </ul> - - - </div> -<a name="methodisTrustedPhpFunction" id="isTrustedPhpFunction"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">isTrustedPhpFunction</span> (line <span class="line-number">163</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if PHP function is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if function is trusted</li> - <li><span class="field">throws:</span> SmartyCompilerException if php function is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedPhpFunction - </span> - (<span class="var-type">string</span> <span class="var-name">$function_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$function_name</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> -<a name="methodisTrustedPhpModifier" id="isTrustedPhpModifier"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">isTrustedPhpModifier</span> (line <span class="line-number">199</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if PHP modifier is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if modifier is trusted</li> - <li><span class="field">throws:</span> SmartyCompilerException if modifier is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedPhpModifier - </span> - (<span class="var-type">string</span> <span class="var-name">$modifier_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$modifier_name</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> -<a name="methodisTrustedResourceDir" id="isTrustedResourceDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">isTrustedResourceDir</span> (line <span class="line-number">291</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if directory of file resource is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if directory is trusted</li> - <li><span class="field">throws:</span> SmartyException if directory is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedResourceDir - </span> - (<span class="var-type">string</span> <span class="var-name">$filepath</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$filepath</span> </li> - </ul> - - - </div> -<a name="methodisTrustedStaticClass" id="isTrustedStaticClass"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">isTrustedStaticClass</span> (line <span class="line-number">181</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if static class is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if class is trusted</li> - <li><span class="field">throws:</span> SmartyCompilerException if static class is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedStaticClass - </span> - (<span class="var-type">string</span> <span class="var-name">$class_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$class_name</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> -<a name="methodisTrustedStream" id="isTrustedStream"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">isTrustedStream</span> (line <span class="line-number">275</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if stream is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if stream is trusted</li> - <li><span class="field">throws:</span> SmartyException if stream is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedStream - </span> - (<span class="var-type">string</span> <span class="var-name">$stream_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$stream_name</span> </li> - </ul> - - - </div> -<a name="methodisTrustedTag" id="isTrustedTag"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">isTrustedTag</span> (line <span class="line-number">217</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if tag is trusted.</p> - <ul class="tags"> - <li><span class="field">return:</span> true if tag is trusted</li> - <li><span class="field">throws:</span> SmartyCompilerException if modifier is not trusted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isTrustedTag - </span> - (<span class="var-type">string</span> <span class="var-name">$tag_name</span>, <span class="var-type">object</span> <span class="var-name">$compiler</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag_name</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$compiler</span><span class="var-description">: compiler object</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:09 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Security/_libs---sysplugins---smarty_internal_utility.php.html
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_utility.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_utility.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Project: Smarty: the PHP compiling template engine File: smarty_internal_utility.php SVN: $Id: $</p> -<p class="description"><p>This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.</p><p>This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p><p>You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p><p>For questions, help, comments, discussion, etc., please join the Smarty mailing list. Send a blank e-mail to smarty-discussion-subscribe@googlegroups.com</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">version:</span> 3-SVN$Rev: 3286 $</li> - <li><span class="field">copyright:</span> 2008 New Digital Group, Inc.</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/">http://www.smarty.net/</a></li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Security/Smarty_Internal_Utility.html">Smarty_Internal_Utility</a> - </td> - <td> - Utility class - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Security/_libs---sysplugins---smarty_security.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_security.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_security.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a> - </td> - <td> - This class does contain the security settings - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:09 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/SmartyCompilerException.html
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class SmartyCompilerException</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class SmartyCompilerException</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty compiler exception class</p> - <p class="notes"> - Located in <a class="field" href="_libs---Smarty.class.php.html">/libs/Smarty.class.php</a> (line <span class="field">1403</span>) - </p> - - - <pre>Exception - | - --<a href="../Smarty/SmartyException.html">SmartyException</a> - | - --SmartyCompilerException</pre> - - </div> -</div> - - - - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:24 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/SmartyException.html
Deleted
@@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class SmartyException</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class SmartyException</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-methods">Methods</a> - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty exception class</p> - <p class="notes"> - Located in <a class="field" href="_libs---Smarty.class.php.html">/libs/Smarty.class.php</a> (line <span class="field">1396</span>) - </p> - - - <pre>Exception - | - --SmartyException</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-methods">Methods</a> - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../Smarty/SmartyCompilerException.html">SmartyCompilerException</a></td> - <td> - Smarty compiler exception class - </td> - </tr> - </table> - </div> - </div> - - - - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> - - - | - <a href="#sec-methods">Methods</a> - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname">Exception (Internal Class)</span></p> - <blockquote> - <span class="var-title"> - <span class="var-name">$code</span><br> - </span> - <span class="var-title"> - <span class="var-name">$file</span><br> - </span> - <span class="var-title"> - <span class="var-name">$line</span><br> - </span> - <span class="var-title"> - <span class="var-name">$message</span><br> - </span> - <span class="var-title"> - <span class="var-name">$string</span><br> - </span> - <span class="var-title"> - <span class="var-name">$trace</span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <span class="disabled">Methods</span> - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname">Exception (Internal Class)</span></p> - <blockquote> - <span class="method-name">constructor __construct ( [$message = ], [$code = ] )</span><br> - <span class="method-name">getCode ( )</span><br> - <span class="method-name">getFile ( )</span><br> - <span class="method-name">getLine ( )</span><br> - <span class="method-name">getMessage ( )</span><br> - <span class="method-name">getTrace ( )</span><br> - <span class="method-name">getTraceAsString ( )</span><br> - <span class="method-name">__clone ( )</span><br> - <span class="method-name">__toString ( )</span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:25 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Smarty.html
Deleted
@@ -1,4124 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This is the main Smarty class</p> - <p class="notes"> - Located in <a class="field" href="_libs---Smarty.class.php.html">/libs/Smarty.class.php</a> (line <span class="field">101</span>) - </p> - - - <pre><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - | - --<a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a> - | - --Smarty</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Template/SmartyBC.html">SmartyBC</a></td> - <td> - Smarty Backward Compatability Wrapper Class - </td> - </tr> - </table> - </div> - </div> - - <a name="sec-const-summary"></a> - <div class="info-box"> - <div class="info-box-title">Class Constant Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendants</a> | - <span class="disabled">Constants</span> (<a href="#sec-consts">details</a>) - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="const-summary"> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#CACHING_LIFETIME_CURRENT" title="details" class="const-name">CACHING_LIFETIME_CURRENT</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#CACHING_LIFETIME_SAVED" title="details" class="const-name">CACHING_LIFETIME_SAVED</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#CACHING_OFF" title="details" class="const-name">CACHING_OFF</a> = <span class="var-type"> 0</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#COMPILECHECK_CACHEMISS" title="details" class="const-name">COMPILECHECK_CACHEMISS</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#COMPILECHECK_OFF" title="details" class="const-name">COMPILECHECK_OFF</a> = <span class="var-type"> 0</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#COMPILECHECK_ON" title="details" class="const-name">COMPILECHECK_ON</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#FILTER_OUTPUT" title="details" class="const-name">FILTER_OUTPUT</a> = <span class="var-type"> 'output'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#FILTER_POST" title="details" class="const-name">FILTER_POST</a> = <span class="var-type"> 'post'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#FILTER_PRE" title="details" class="const-name">FILTER_PRE</a> = <span class="var-type"> 'pre'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#FILTER_VARIABLE" title="details" class="const-name">FILTER_VARIABLE</a> = <span class="var-type"> 'variable'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PHP_ALLOW" title="details" class="const-name">PHP_ALLOW</a> = <span class="var-type"> 3</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PHP_PASSTHRU" title="details" class="const-name">PHP_PASSTHRU</a> = <span class="var-type"> 0</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PHP_QUOTE" title="details" class="const-name">PHP_QUOTE</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PHP_REMOVE" title="details" class="const-name">PHP_REMOVE</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PLUGIN_BLOCK" title="details" class="const-name">PLUGIN_BLOCK</a> = <span class="var-type"> 'block'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PLUGIN_COMPILER" title="details" class="const-name">PLUGIN_COMPILER</a> = <span class="var-type"> 'compiler'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PLUGIN_FUNCTION" title="details" class="const-name">PLUGIN_FUNCTION</a> = <span class="var-type"> 'function'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PLUGIN_MODIFIER" title="details" class="const-name">PLUGIN_MODIFIER</a> = <span class="var-type"> 'modifier'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#PLUGIN_MODIFIERCOMPILER" title="details" class="const-name">PLUGIN_MODIFIERCOMPILER</a> = <span class="var-type"> 'modifiercompiler'</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SCOPE_GLOBAL" title="details" class="const-name">SCOPE_GLOBAL</a> = <span class="var-type"> 3</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SCOPE_LOCAL" title="details" class="const-name">SCOPE_LOCAL</a> = <span class="var-type"> 0</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SCOPE_PARENT" title="details" class="const-name">SCOPE_PARENT</a> = <span class="var-type"> 1</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SCOPE_ROOT" title="details" class="const-name">SCOPE_ROOT</a> = <span class="var-type"> 2</span> - - </div> - <div class="const-title"> - <img src="../../media/images/Constant.png" alt=" " /> - <a href="#SMARTY_VERSION" title="details" class="const-name">SMARTY_VERSION</a> = <span class="var-type"> 'Smarty 3.1-DEV'</span> - - </div> - </div> - </div> - </div> - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$global_tpl_vars" title="details" class="var-name">$global_tpl_vars</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$_muted_directories" title="details" class="var-name">$_muted_directories</a> - </div> - <div class="var-title"> - static <span class="var-type">mixed</span> - <a href="#$_previous_error_handler" title="details" class="var-name">$_previous_error_handler</a> - </div> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$_smarty_vars" title="details" class="var-name">$_smarty_vars</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$allow_php_templates" title="details" class="var-name">$allow_php_templates</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$autoload_filters" title="details" class="var-name">$autoload_filters</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$auto_literal" title="details" class="var-name">$auto_literal</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$cache_dir" title="details" class="var-name">$cache_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$cache_id" title="details" class="var-name">$cache_id</a> - </div> - <div class="var-title"> - <span class="var-type">integer</span> - <a href="#$cache_lifetime" title="details" class="var-name">$cache_lifetime</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$cache_locking" title="details" class="var-name">$cache_locking</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$cache_modified_check" title="details" class="var-name">$cache_modified_check</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$caching" title="details" class="var-name">$caching</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$caching_type" title="details" class="var-name">$caching_type</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$compile_check" title="details" class="var-name">$compile_check</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$compile_dir" title="details" class="var-name">$compile_dir</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$compile_id" title="details" class="var-name">$compile_id</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$compile_locking" title="details" class="var-name">$compile_locking</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$config_booleanize" title="details" class="var-name">$config_booleanize</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$config_dir" title="details" class="var-name">$config_dir</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$config_overwrite" title="details" class="var-name">$config_overwrite</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$config_read_hidden" title="details" class="var-name">$config_read_hidden</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$debugging" title="details" class="var-name">$debugging</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$debugging_ctrl" title="details" class="var-name">$debugging_ctrl</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$debug_tpl" title="details" class="var-name">$debug_tpl</a> - </div> - <div class="var-title"> - <span class="var-type">callable</span> - <a href="#$default_config_handler_func" title="details" class="var-name">$default_config_handler_func</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$default_config_type" title="details" class="var-name">$default_config_type</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$default_modifiers" title="details" class="var-name">$default_modifiers</a> - </div> - <div class="var-title"> - <span class="var-type">callable</span> - <a href="#$default_plugin_handler_func" title="details" class="var-name">$default_plugin_handler_func</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$default_resource_type" title="details" class="var-name">$default_resource_type</a> - </div> - <div class="var-title"> - <span class="var-type">callable</span> - <a href="#$default_template_handler_func" title="details" class="var-name">$default_template_handler_func</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$direct_access_security" title="details" class="var-name">$direct_access_security</a> - </div> - <div class="var-title"> - <span class="var-type">int</span> - <a href="#$error_reporting" title="details" class="var-name">$error_reporting</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$error_unassigned" title="details" class="var-name">$error_unassigned</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$escape_html" title="details" class="var-name">$escape_html</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$force_cache" title="details" class="var-name">$force_cache</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$force_compile" title="details" class="var-name">$force_compile</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$get_used_tags" title="details" class="var-name">$get_used_tags</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$left_delimiter" title="details" class="var-name">$left_delimiter</a> - </div> - <div class="var-title"> - <span class="var-type">float</span> - <a href="#$locking_timeout" title="details" class="var-name">$locking_timeout</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$merged_templates_func" title="details" class="var-name">$merged_templates_func</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$merge_compiled_includes" title="details" class="var-name">$merge_compiled_includes</a> - </div> - <div class="var-title"> - <span class="var-type">integer</span> - <a href="#$php_handling" title="details" class="var-name">$php_handling</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$plugins_dir" title="details" class="var-name">$plugins_dir</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$plugin_search_order" title="details" class="var-name">$plugin_search_order</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$properties" title="details" class="var-name">$properties</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$registered_cache_resources" title="details" class="var-name">$registered_cache_resources</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$registered_classes" title="details" class="var-name">$registered_classes</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$registered_filters" title="details" class="var-name">$registered_filters</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$registered_objects" title="details" class="var-name">$registered_objects</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$registered_plugins" title="details" class="var-name">$registered_plugins</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$registered_resources" title="details" class="var-name">$registered_resources</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$right_delimiter" title="details" class="var-name">$right_delimiter</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$security_class" title="details" class="var-name">$security_class</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a></span> - <a href="#$security_policy" title="details" class="var-name">$security_policy</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#$smarty" title="details" class="var-name">$smarty</a> - </div> - <div class="var-title"> - <span class="var-type">type</span> - <a href="#$smarty_debug_id" title="details" class="var-name">$smarty_debug_id</a> - </div> - <div class="var-title"> - <span class="var-type">int</span> - <a href="#$start_time" title="details" class="var-name">$start_time</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_dir" title="details" class="var-name">$template_dir</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$template_functions" title="details" class="var-name">$template_functions</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$template_objects" title="details" class="var-name">$template_objects</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$use_include_path" title="details" class="var-name">$use_include_path</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$use_sub_dirs" title="details" class="var-name">$use_sub_dirs</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_current_file" title="details" class="var-name">$_current_file</a> - </div> - <div class="var-title"> - <span class="var-type">int</span> - <a href="#$_dir_perms" title="details" class="var-name">$_dir_perms</a> - </div> - <div class="var-title"> - <span class="var-type">int</span> - <a href="#$_file_perms" title="details" class="var-name">$_file_perms</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$_parserdebug" title="details" class="var-name">$_parserdebug</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$_tag_stack" title="details" class="var-name">$_tag_stack</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#muteExpectedErrors" title="details" class="method-name">muteExpectedErrors</a> - () - </div> - <div class="method-definition"> - static <span class="method-result">boolean</span> - <a href="#mutingErrorHandler" title="details" class="method-name">mutingErrorHandler</a> - (<span class="var-type">integer</span> <span class="var-name">$errno</span>, <span class="var-type"></span> <span class="var-name">$errstr</span>, <span class="var-type"></span> <span class="var-name">$errfile</span>, <span class="var-type"></span> <span class="var-name">$errline</span>, <span class="var-type"></span> <span class="var-name">$errcontext</span>) - </div> - <div class="method-definition"> - static <span class="method-result">void</span> - <a href="#unmuteExpectedErrors" title="details" class="method-name">unmuteExpectedErrors</a> - () - </div> - - <div class="method-definition"> - <span class="method-result">Smarty</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__destruct" title="details" class="method-name">__destruct</a> - () - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#addAutoloadFilters" title="details" class="method-name">addAutoloadFilters</a> - (<span class="var-type">array</span> <span class="var-name">$filters</span>, [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#addConfigDir" title="details" class="method-name">addConfigDir</a> - (<span class="var-type">string|array</span> <span class="var-name">$config_dir</span>, [<span class="var-type">string</span> <span class="var-name">$key</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#addDefaultModifiers" title="details" class="method-name">addDefaultModifiers</a> - (<span class="var-type">array|string</span> <span class="var-name">$modifiers</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#addPluginsDir" title="details" class="method-name">addPluginsDir</a> - (<span class="var-type"></span> <span class="var-name">$plugins_dir</span>, <span class="var-type">object</span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#addTemplateDir" title="details" class="method-name">addTemplateDir</a> - (<span class="var-type">string|array</span> <span class="var-name">$template_dir</span>, [<span class="var-type">string</span> <span class="var-name">$key</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearAllCache" title="details" class="method-name">clearAllCache</a> - ([<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearCache" title="details" class="method-name">clearCache</a> - (<span class="var-type">string</span> <span class="var-name">$template_name</span>, [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#clearCompiledTemplate" title="details" class="method-name">clearCompiledTemplate</a> - ([<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#compileAllConfig" title="details" class="method-name">compileAllConfig</a> - ([<span class="var-type"></span> <span class="var-name">$extention</span> = <span class="var-default">'.conf'</span>], [<span class="var-type">bool</span> <span class="var-name">$force_compile</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$time_limit</span> = <span class="var-default">0</span>], [<span class="var-type">int</span> <span class="var-name">$max_errors</span> = <span class="var-default">null</span>], <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer</span> - <a href="#compileAllTemplates" title="details" class="method-name">compileAllTemplates</a> - ([<span class="var-type"></span> <span class="var-name">$extention</span> = <span class="var-default">'.tpl'</span>], [<span class="var-type">bool</span> <span class="var-name">$force_compile</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$time_limit</span> = <span class="var-default">0</span>], [<span class="var-type">int</span> <span class="var-name">$max_errors</span> = <span class="var-default">null</span>], <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - <div class="method-definition"> - <span class="method-result">object template</span> - <a href="#createTemplate" title="details" class="method-name">createTemplate</a> - (<span class="var-type">string</span> <span class="var-name">$template</span>, [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$do_clone</span> = <span class="var-default">true</span>]) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#disableSecurity" title="details" class="method-name">disableSecurity</a> - () - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#enableSecurity" title="details" class="method-name">enableSecurity</a> - ([<span class="var-type">string|<a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a></span> <span class="var-name">$security_class</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#getAutoloadFilters" title="details" class="method-name">getAutoloadFilters</a> - ([<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getCacheDir" title="details" class="method-name">getCacheDir</a> - () - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getCompileDir" title="details" class="method-name">getCompileDir</a> - () - </div> - <div class="method-definition"> - <span class="method-result">array|string</span> - <a href="#getConfigDir" title="details" class="method-name">getConfigDir</a> - ([<span class="var-type">mixed</span> <span class="var-name">$index</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getDebugTemplate" title="details" class="method-name">getDebugTemplate</a> - () - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#getDefaultModifiers" title="details" class="method-name">getDefaultModifiers</a> - () - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getGlobal" title="details" class="method-name">getGlobal</a> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>], <span class="var-type">object</span> <span class="var-name">$smarty</span>) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#getPluginsDir" title="details" class="method-name">getPluginsDir</a> - () - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#getTags" title="details" class="method-name">getTags</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>, <span class="var-type">object</span> <span class="var-name">$templae</span>) - </div> - <div class="method-definition"> - <span class="method-result">array|string</span> - <a href="#getTemplateDir" title="details" class="method-name">getTemplateDir</a> - ([<span class="var-type">mixed</span> <span class="var-name">$index</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#loadPlugin" title="details" class="method-name">loadPlugin</a> - (<span class="var-type">string</span> <span class="var-name">$plugin_name</span>, [<span class="var-type">bool</span> <span class="var-name">$check</span> = <span class="var-default">true</span>]) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setAutoloadFilters" title="details" class="method-name">setAutoloadFilters</a> - (<span class="var-type">array</span> <span class="var-name">$filters</span>, [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setCacheDir" title="details" class="method-name">setCacheDir</a> - (<span class="var-type">string</span> <span class="var-name">$cache_dir</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setCompileDir" title="details" class="method-name">setCompileDir</a> - (<span class="var-type">string</span> <span class="var-name">$compile_dir</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setConfigDir" title="details" class="method-name">setConfigDir</a> - (<span class="var-type"></span> <span class="var-name">$config_dir</span>, <span class="var-type">string|array</span> <span class="var-name">$template_dir</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setDebugTemplate" title="details" class="method-name">setDebugTemplate</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_name</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setDefaultModifiers" title="details" class="method-name">setDefaultModifiers</a> - (<span class="var-type">array|string</span> <span class="var-name">$modifiers</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setPluginsDir" title="details" class="method-name">setPluginsDir</a> - (<span class="var-type">string|array</span> <span class="var-name">$plugins_dir</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#setTemplateDir" title="details" class="method-name">setTemplateDir</a> - (<span class="var-type">string|array</span> <span class="var-name">$template_dir</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#templateExists" title="details" class="method-name">templateExists</a> - (<span class="var-type">string</span> <span class="var-name">$resource_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#testInstall" title="details" class="method-name">testInstall</a> - ([<span class="var-type"></span> <span class="var-name">&$errors</span> = <span class="var-default">null</span>], <span class="var-type">array</span> <span class="var-name">$errors</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__clone" title="details" class="method-name">__clone</a> - () - </div> - <div class="method-definition"> - <span class="method-result">mixed</span> - <a href="#__get" title="details" class="method-name">__get</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__set" title="details" class="method-name">__set</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$global_tpl_vars" id="$global_tpl_vars"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$global_tpl_vars</span> - = <span class="var-default">array()</span> (line <span class="line-number">159</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">assigned global tpl vars</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_muted_directories" id="$_muted_directories"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$_muted_directories</span> - = <span class="var-default">array()</span> (line <span class="line-number">168</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors()</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_previous_error_handler" id="$_previous_error_handler"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">mixed</span> - <span class="var-name">$_previous_error_handler</span> - = <span class="var-default"> null</span> (line <span class="line-number">164</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors()</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_smarty_vars" id="$_smarty_vars"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$_smarty_vars</span> - = <span class="var-default">array()</span> (line <span class="line-number">509</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">global internal smarty vars</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$allow_php_templates" id="$allow_php_templates"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$allow_php_templates</span> - = <span class="var-default"> false</span> (line <span class="line-number">317</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">controls if the php template file resource is allowed</p> -<p class="description"><p>security</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$autoload_filters" id="$autoload_filters"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$autoload_filters</span> - = <span class="var-default">array()</span> (line <span class="line-number">494</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">autoload filter</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$auto_literal" id="$auto_literal"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$auto_literal</span> - = <span class="var-default"> true</span> (line <span class="line-number">178</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">auto literal on delimiters with whitspace</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$cache_dir" id="$cache_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$cache_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">223</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache directory</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$cache_id" id="$cache_id"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">270</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set this if you want different sets of cache files for the same templates.</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$cache_lifetime" id="$cache_lifetime"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">integer</span> - <span class="var-name">$cache_lifetime</span> - = <span class="var-default"> 3600</span> (line <span class="line-number">258</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache lifetime in seconds</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$cache_locking" id="$cache_locking"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$cache_locking</span> - = <span class="var-default"> false</span> (line <span class="line-number">406</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Controls whether cache resources should emply locking mechanism</p> -<p class="description"><p>resource locking</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$cache_modified_check" id="$cache_modified_check"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$cache_modified_check</span> - = <span class="var-default"> false</span> (line <span class="line-number">454</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">check If-Modified-Since headers</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$caching" id="$caching"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$caching</span> - = <span class="var-default"> false</span> (line <span class="line-number">248</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">caching enabled</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$caching_type" id="$caching_type"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$caching_type</span> - = <span class="var-default"> 'file'</span> (line <span class="line-number">434</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">caching type</p> -<p class="description"><p>Must be an element of $cache_resource_types.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$compile_check" id="$compile_check"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$compile_check</span> - = <span class="var-default"> true</span> (line <span class="line-number">238</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">check template for modifications?</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$compile_dir" id="$compile_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$compile_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">213</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">compile directory</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$compile_id" id="$compile_id"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">277</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set this if you want different sets of compiled files for the same templates.</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$compile_locking" id="$compile_locking"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$compile_locking</span> - = <span class="var-default"> true</span> (line <span class="line-number">401</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">locking concurrent compiles</p> -<p class="description"><p>resource locking</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$config_booleanize" id="$config_booleanize"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$config_booleanize</span> - = <span class="var-default"> true</span> (line <span class="line-number">384</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Controls whether config values of on/true/yes and off/false/no get converted to boolean.</p> -<p class="description"><p>config var settings</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$config_dir" id="$config_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$config_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">228</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">config directory</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$config_overwrite" id="$config_overwrite"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$config_overwrite</span> - = <span class="var-default"> true</span> (line <span class="line-number">379</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Controls whether variables with the same name overwrite each other.</p> -<p class="description"><p>config var settings</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$config_read_hidden" id="$config_read_hidden"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$config_read_hidden</span> - = <span class="var-default"> false</span> (line <span class="line-number">389</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Controls whether hidden config sections/vars are read from the file.</p> -<p class="description"><p>config var settings</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$debugging" id="$debugging"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$debugging</span> - = <span class="var-default"> false</span> (line <span class="line-number">336</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">debug mode</p> -<p class="description"><p>Setting this to true enables the debug-console.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$debugging_ctrl" id="$debugging_ctrl"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$debugging_ctrl</span> - = <span class="var-default"> 'NONE'</span> (line <span class="line-number">345</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This determines if debugging is enable-able from the browser.</p> -<p class="description"><p><ul><li>NONE => no debugging control allowed</li><li>URL => enable debugging when SMARTY_DEBUG is found in the URL.</li></ul></p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$debug_tpl" id="$debug_tpl"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$debug_tpl</span> - = <span class="var-default"> null</span> (line <span class="line-number">359</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Path of debug template.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_config_handler_func" id="$default_config_handler_func"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">callable</span> - <span class="var-name">$default_config_handler_func</span> - = <span class="var-default"> null</span> (line <span class="line-number">203</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">default config handler</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_config_type" id="$default_config_type"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$default_config_type</span> - = <span class="var-default"> 'file'</span> (line <span class="line-number">444</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">config type</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_modifiers" id="$default_modifiers"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$default_modifiers</span> - = <span class="var-default">array()</span> (line <span class="line-number">499</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">default modifier</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_plugin_handler_func" id="$default_plugin_handler_func"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">callable</span> - <span class="var-name">$default_plugin_handler_func</span> - = <span class="var-default"> null</span> (line <span class="line-number">208</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">default plugin handler</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_resource_type" id="$default_resource_type"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$default_resource_type</span> - = <span class="var-default"> 'file'</span> (line <span class="line-number">426</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">resource type used if none given</p> -<p class="description"><p>Must be an valid key of $registered_resources.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$default_template_handler_func" id="$default_template_handler_func"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">callable</span> - <span class="var-name">$default_template_handler_func</span> - = <span class="var-default"> null</span> (line <span class="line-number">198</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">default template handler</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$direct_access_security" id="$direct_access_security"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$direct_access_security</span> - = <span class="var-default"> true</span> (line <span class="line-number">327</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Should compiled-templates be prevented from being called directly?</p> -<p class="description"><p>security</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$error_reporting" id="$error_reporting"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">int</span> - <span class="var-name">$error_reporting</span> - = <span class="var-default"> null</span> (line <span class="line-number">364</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">When set, smarty uses this value as error_reporting-level.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$error_unassigned" id="$error_unassigned"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$error_unassigned</span> - = <span class="var-default"> false</span> (line <span class="line-number">183</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">display error on not assigned variables</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$escape_html" id="$escape_html"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$escape_html</span> - = <span class="var-default"> false</span> (line <span class="line-number">504</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">autoescape variable output</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$force_cache" id="$force_cache"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$force_cache</span> - = <span class="var-default"> false</span> (line <span class="line-number">263</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">force cache file creation</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$force_compile" id="$force_compile"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$force_compile</span> - = <span class="var-default"> false</span> (line <span class="line-number">233</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">force template compiling?</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$get_used_tags" id="$get_used_tags"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$get_used_tags</span> - = <span class="var-default"> false</span> (line <span class="line-number">369</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Internal flag for getTags()</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$left_delimiter" id="$left_delimiter"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$left_delimiter</span> - = <span class="var-default"> "{"</span> (line <span class="line-number">282</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">template left-delimiter</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$locking_timeout" id="$locking_timeout"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">float</span> - <span class="var-name">$locking_timeout</span> - = <span class="var-default"> 10</span> (line <span class="line-number">411</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">seconds to wait for acquiring a lock before ignoring the write lock</p> -<p class="description"><p>resource locking</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$merged_templates_func" id="$merged_templates_func"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$merged_templates_func</span> - = <span class="var-default">array()</span> (line <span class="line-number">550</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Saved parameter of merged templates during compilation</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$merge_compiled_includes" id="$merge_compiled_includes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$merge_compiled_includes</span> - = <span class="var-default"> false</span> (line <span class="line-number">253</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">merge compiled includes</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$php_handling" id="$php_handling"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">integer</span> - <span class="var-name">$php_handling</span> - = <span class="var-default"> self::PHP_PASSTHRU</span> (line <span class="line-number">311</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">controls handling of PHP-blocks</p> -<p class="description"><p>security</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$plugins_dir" id="$plugins_dir"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$plugins_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">218</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">plugins directory</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$plugin_search_order" id="$plugin_search_order"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$plugin_search_order</span> - = <span class="var-default">array('function', 'block', 'compiler', 'class')</span> (line <span class="line-number">464</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">plugin search order</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$properties" id="$properties"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$properties</span> - = <span class="var-default">array()</span> (line <span class="line-number">439</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">internal config properties</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$registered_cache_resources" id="$registered_cache_resources"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$registered_cache_resources</span> - = <span class="var-default">array()</span> (line <span class="line-number">489</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">registered cache resources</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$registered_classes" id="$registered_classes"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$registered_classes</span> - = <span class="var-default">array()</span> (line <span class="line-number">474</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">registered classes</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$registered_filters" id="$registered_filters"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$registered_filters</span> - = <span class="var-default">array()</span> (line <span class="line-number">479</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">registered filters</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$registered_objects" id="$registered_objects"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$registered_objects</span> - = <span class="var-default">array()</span> (line <span class="line-number">469</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">registered objects</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$registered_plugins" id="$registered_plugins"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$registered_plugins</span> - = <span class="var-default">array()</span> (line <span class="line-number">459</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">registered plugins</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$registered_resources" id="$registered_resources"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$registered_resources</span> - = <span class="var-default">array()</span> (line <span class="line-number">484</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">registered resources</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$right_delimiter" id="$right_delimiter"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$right_delimiter</span> - = <span class="var-default"> "}"</span> (line <span class="line-number">287</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">template right-delimiter</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$security_class" id="$security_class"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$security_class</span> - = <span class="var-default"> 'Smarty_Security'</span> (line <span class="line-number">299</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">class name</p> -<p class="description"><p>security This should be instance of Smarty_Security.</p></p> - <ul class="tags"> - <li><span class="field">see:</span> <a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$security_policy" id="$security_policy"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a></span> - <span class="var-name">$security_policy</span> - = <span class="var-default"> null</span> (line <span class="line-number">305</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">implementation of security class</p> -<p class="description"><p>security</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty" id="$smarty"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> - (line <span class="line-number">534</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">self pointer to Smarty object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty_debug_id" id="$smarty_debug_id"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">type</span> - <span class="var-name">$smarty_debug_id</span> - = <span class="var-default"> 'SMARTY_DEBUG'</span> (line <span class="line-number">354</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of debugging URL-param.</p> -<p class="description"><p>Only used when $debugging_ctrl is set to 'URL'. The name of the URL-parameter that activates debugging.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$start_time" id="$start_time"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">int</span> - <span class="var-name">$start_time</span> - = <span class="var-default"> 0</span> (line <span class="line-number">514</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">start time for execution time calculation</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_dir" id="$template_dir"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_dir</span> - = <span class="var-default"> null</span> (line <span class="line-number">193</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">template directory</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$template_functions" id="$template_functions"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$template_functions</span> - = <span class="var-default">array()</span> (line <span class="line-number">419</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">global template functions</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_objects" id="$template_objects"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$template_objects</span> - = <span class="var-default">array()</span> (line <span class="line-number">449</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cached template objects</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$use_include_path" id="$use_include_path"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$use_include_path</span> - = <span class="var-default"> false</span> (line <span class="line-number">188</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">look up relative filepaths in include_path</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$use_sub_dirs" id="$use_sub_dirs"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$use_sub_dirs</span> - = <span class="var-default"> false</span> (line <span class="line-number">243</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">use sub dirs for compiled/cached files?</p> -<p class="description"><p>variables</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_current_file" id="$_current_file"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_current_file</span> - = <span class="var-default"> null</span> (line <span class="line-number">539</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">required by the compiler for BC</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_dir_perms" id="$_dir_perms"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">int</span> - <span class="var-name">$_dir_perms</span> - = <span class="var-default"> 0771</span> (line <span class="line-number">524</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">default dir permissions</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_file_perms" id="$_file_perms"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">int</span> - <span class="var-name">$_file_perms</span> - = <span class="var-default"> 0644</span> (line <span class="line-number">519</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">default file permissions</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_parserdebug" id="$_parserdebug"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$_parserdebug</span> - = <span class="var-default"> false</span> (line <span class="line-number">544</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">internal flag to enable parser debugging</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_tag_stack" id="$_tag_stack"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$_tag_stack</span> - = <span class="var-default">array()</span> (line <span class="line-number">529</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">block tag hierarchy</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>) - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodmuteExpectedErrors" id="muteExpectedErrors"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method muteExpectedErrors</span> (line <span class="line-number">1354</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Enable error handler to mute expected messages</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - muteExpectedErrors - </span> - () - </div> - - - - </div> -<a name="methodmutingErrorHandler" id="mutingErrorHandler"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method mutingErrorHandler</span> (line <span class="line-number">1309</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Error Handler to mute expected messages</p> - <ul class="tags"> - <li><span class="field">link:</span> <a href="http://php.net/set_error_handler">http://php.net/set_error_handler</a></li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">boolean</span> - <span class="method-name"> - mutingErrorHandler - </span> - (<span class="var-type">integer</span> <span class="var-name">$errno</span>, <span class="var-type"></span> <span class="var-name">$errstr</span>, <span class="var-type"></span> <span class="var-name">$errfile</span>, <span class="var-type"></span> <span class="var-name">$errline</span>, <span class="var-type"></span> <span class="var-name">$errcontext</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">integer</span> - <span class="var-name">$errno</span><span class="var-description">: Error level</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$errstr</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$errfile</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$errline</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$errcontext</span> </li> - </ul> - - - </div> -<a name="methodunmuteExpectedErrors" id="unmuteExpectedErrors"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method unmuteExpectedErrors</span> (line <span class="line-number">1386</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Disable error handler muting expected messages</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result">void</span> - <span class="method-name"> - unmuteExpectedErrors - </span> - () - </div> - - - - </div> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">557</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Initialize new Smarty object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/Template/SmartyBC.html#method__construct">SmartyBC::__construct()</a> - : Initialize new SmartyBC object - </li> - </ul> - </div> -<a name="method__destruct" id="__destruct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Destructor __destruct</span> (line <span class="line-number">581</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Class destructor</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __destruct - </span> - () - </div> - - - - </div> -<a name="methodaddAutoloadFilters" id="addAutoloadFilters"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">addAutoloadFilters</span> (line <span class="line-number">1062</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Add autoload filters</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - addAutoloadFilters - </span> - (<span class="var-type">array</span> <span class="var-name">$filters</span>, [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$filters</span><span class="var-description">: filters to load automatically</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types</span> </li> - </ul> - - - </div> -<a name="methodaddConfigDir" id="addConfigDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">addConfigDir</span> (line <span class="line-number">849</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Add config directory(s)</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - addConfigDir - </span> - (<span class="var-type">string|array</span> <span class="var-name">$config_dir</span>, [<span class="var-type">string</span> <span class="var-name">$key</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$config_dir</span><span class="var-description">: directory(s) of config sources</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$key</span><span class="var-description">: key of the array element to assign the config dir to</span> </li> - </ul> - - - </div> -<a name="methodaddDefaultModifiers" id="addDefaultModifiers"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">addDefaultModifiers</span> (line <span class="line-number">1015</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Add default modifiers</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - addDefaultModifiers - </span> - (<span class="var-type">array|string</span> <span class="var-name">$modifiers</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array|string</span> - <span class="var-name">$modifiers</span><span class="var-description">: modifier or list of modifiers to add</span> </li> - </ul> - - - </div> -<a name="methodaddPluginsDir" id="addPluginsDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">addPluginsDir</span> (line <span class="line-number">913</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Adds directory of plugin files</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - addPluginsDir - </span> - (<span class="var-type"></span> <span class="var-name">$plugins_dir</span>, <span class="var-type">object</span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$smarty</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$</span><span class="var-description">: |array $ plugins folder</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$plugins_dir</span> </li> - </ul> - - - </div> -<a name="methodaddTemplateDir" id="addTemplateDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">addTemplateDir</span> (line <span class="line-number">785</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Add template directory(s)</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">throws:</span> SmartyException when the given template directory is not valid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - addTemplateDir - </span> - (<span class="var-type">string|array</span> <span class="var-name">$template_dir</span>, [<span class="var-type">string</span> <span class="var-name">$key</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$template_dir</span><span class="var-description">: directory(s) of template sources</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$key</span><span class="var-description">: of the array element to assign the template dir to</span> </li> - </ul> - - - </div> -<a name="methodclearAllCache" id="clearAllCache"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clearAllCache</span> (line <span class="line-number">695</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache folder</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearAllCache - </span> - ([<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: resource type</span> </li> - </ul> - - - </div> -<a name="methodclearCache" id="clearCache"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clearCache</span> (line <span class="line-number">713</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Empty cache for a specific template</p> - <ul class="tags"> - <li><span class="field">return:</span> number of cache files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearCache - </span> - (<span class="var-type">string</span> <span class="var-name">$template_name</span>, [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: resource type</span> </li> - </ul> - - - </div> -<a name="methodclearCompiledTemplate" id="clearCompiledTemplate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clearCompiledTemplate</span> (line <span class="line-number">1274</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Delete compiled template file</p> - <ul class="tags"> - <li><span class="field">return:</span> number of template files deleted</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - clearCompiledTemplate - </span> - ([<span class="var-type">string</span> <span class="var-name">$resource_name</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time</span> </li> - </ul> - - - </div> -<a name="methodcompileAllConfig" id="compileAllConfig"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compileAllConfig</span> (line <span class="line-number">1261</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compile all config files</p> - <ul class="tags"> - <li><span class="field">return:</span> number of template files recompiled</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - compileAllConfig - </span> - ([<span class="var-type"></span> <span class="var-name">$extention</span> = <span class="var-default">'.conf'</span>], [<span class="var-type">bool</span> <span class="var-name">$force_compile</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$time_limit</span> = <span class="var-default">0</span>], [<span class="var-type">int</span> <span class="var-name">$max_errors</span> = <span class="var-default">null</span>], <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$extension</span><span class="var-description">: file extension</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$force_compile</span><span class="var-description">: force all to recompile</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$time_limit</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$max_errors</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$extention</span> </li> - </ul> - - - </div> -<a name="methodcompileAllTemplates" id="compileAllTemplates"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">compileAllTemplates</span> (line <span class="line-number">1247</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compile all template files</p> - <ul class="tags"> - <li><span class="field">return:</span> number of template files recompiled</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer</span> - <span class="method-name"> - compileAllTemplates - </span> - ([<span class="var-type"></span> <span class="var-name">$extention</span> = <span class="var-default">'.tpl'</span>], [<span class="var-type">bool</span> <span class="var-name">$force_compile</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$time_limit</span> = <span class="var-default">0</span>], [<span class="var-type">int</span> <span class="var-name">$max_errors</span> = <span class="var-default">null</span>], <span class="var-type">string</span> <span class="var-name">$extension</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$extension</span><span class="var-description">: file extension</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$force_compile</span><span class="var-description">: force all to recompile</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$time_limit</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$max_errors</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$extention</span> </li> - </ul> - - - </div> -<a name="methodcreateTemplate" id="createTemplate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">createTemplate</span> (line <span class="line-number">1135</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">creates a template object</p> - <ul class="tags"> - <li><span class="field">return:</span> object</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">object template</span> - <span class="method-name"> - createTemplate - </span> - (<span class="var-type">string</span> <span class="var-name">$template</span>, [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$do_clone</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template</span><span class="var-description">: the resource handle of the template file</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id to be used with this template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id to be used with this template</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$parent</span><span class="var-description">: next higher level of Smarty variables</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$do_clone</span><span class="var-description">: flag is Smarty object shall be cloned</span> </li> - </ul> - - - </div> -<a name="methoddisableSecurity" id="disableSecurity"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">disableSecurity</span> (line <span class="line-number">754</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Disable security</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - disableSecurity - </span> - () - </div> - - - - </div> -<a name="methodenableSecurity" id="enableSecurity"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">enableSecurity</span> (line <span class="line-number">728</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Loads security class and enables security</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">throws:</span> SmartyException when an invalid class name is provided</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - enableSecurity - </span> - ([<span class="var-type">string|<a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a></span> <span class="var-name">$security_class</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|<a href="../../Smarty/Security/Smarty_Security.html">Smarty_Security</a></span> - <span class="var-name">$security_class</span><span class="var-description">: if a string is used, it must be class-name</span> </li> - </ul> - - - </div> -<a name="methodgetAutoloadFilters" id="getAutoloadFilters"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getAutoloadFilters</span> (line <span class="line-number">1089</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get autoload filters</p> - <ul class="tags"> - <li><span class="field">return:</span> array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - getAutoloadFilters - </span> - ([<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: type of filter to get autoloads for. Defaults to all autoload filters</span> </li> - </ul> - - - </div> -<a name="methodgetCacheDir" id="getCacheDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getCacheDir</span> (line <span class="line-number">992</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get cache directory</p> - <ul class="tags"> - <li><span class="field">return:</span> path of cache directory</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getCacheDir - </span> - () - </div> - - - - </div> -<a name="methodgetCompileDir" id="getCompileDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getCompileDir</span> (line <span class="line-number">967</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get compiled directory</p> - <ul class="tags"> - <li><span class="field">return:</span> path to compiled templates</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getCompileDir - </span> - () - </div> - - - - </div> -<a name="methodgetConfigDir" id="getConfigDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getConfigDir</span> (line <span class="line-number">881</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get config directory</p> - <ul class="tags"> - <li><span class="field">return:</span> configuration directory</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array|string</span> - <span class="method-name"> - getConfigDir - </span> - ([<span class="var-type">mixed</span> <span class="var-name">$index</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$index</span><span class="var-description">: index of directory to get, null to get all</span> </li> - </ul> - - - </div> -<a name="methodgetDebugTemplate" id="getDebugTemplate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getDebugTemplate</span> (line <span class="line-number">1103</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">return name of debugging template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getDebugTemplate - </span> - () - </div> - - - - </div> -<a name="methodgetDefaultModifiers" id="getDefaultModifiers"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getDefaultModifiers</span> (line <span class="line-number">1031</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get default modifiers</p> - <ul class="tags"> - <li><span class="field">return:</span> list of default modifiers</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - getDefaultModifiers - </span> - () - </div> - - - - </div> -<a name="methodgetGlobal" id="getGlobal"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getGlobal</span> (line <span class="line-number">671</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns a single or all global variables</p> - <ul class="tags"> - <li><span class="field">return:</span> variable value or or array of variables</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getGlobal - </span> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>], <span class="var-type">object</span> <span class="var-name">$smarty</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$smarty</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$varname</span><span class="var-description">: variable name or null</span> </li> - </ul> - - - </div> -<a name="methodgetPluginsDir" id="getPluginsDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getPluginsDir</span> (line <span class="line-number">942</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get plugin directories</p> - <ul class="tags"> - <li><span class="field">return:</span> list of plugin directories</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - getPluginsDir - </span> - () - </div> - - - - </div> -<a name="methodgetTags" id="getTags"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getTags</span> (line <span class="line-number">1286</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Return array of tag/attributes of all tags used by an template</p> - <ul class="tags"> - <li><span class="field">return:</span> of tag/attributes</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - getTags - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$template</span>, <span class="var-type">object</span> <span class="var-name">$templae</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$templae</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$template</span> </li> - </ul> - - - </div> -<a name="methodgetTemplateDir" id="getTemplateDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getTemplateDir</span> (line <span class="line-number">817</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get template directories</p> - <ul class="tags"> - <li><span class="field">return:</span> list of template directories, or directory of $index</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array|string</span> - <span class="method-name"> - getTemplateDir - </span> - ([<span class="var-type">mixed</span> <span class="var-name">$index</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$index</span><span class="var-description">: index of directory to get, null to get all</span> </li> - </ul> - - - </div> -<a name="methodloadPlugin" id="loadPlugin"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">loadPlugin</span> (line <span class="line-number">1189</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php</p> - <ul class="tags"> - <li><span class="field">return:</span> |boolean filepath of loaded file or false</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - loadPlugin - </span> - (<span class="var-type">string</span> <span class="var-name">$plugin_name</span>, [<span class="var-type">bool</span> <span class="var-name">$check</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$plugin_name</span><span class="var-description">: class plugin name to load</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$check</span><span class="var-description">: check if already loaded</span> </li> - </ul> - - - </div> -<a name="methodsetAutoloadFilters" id="setAutoloadFilters"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">setAutoloadFilters</span> (line <span class="line-number">1044</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set autoload filters</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setAutoloadFilters - </span> - (<span class="var-type">array</span> <span class="var-name">$filters</span>, [<span class="var-type">string</span> <span class="var-name">$type</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$filters</span><span class="var-description">: filters to load automatically</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types</span> </li> - </ul> - - - </div> -<a name="methodsetCacheDir" id="setCacheDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">setCacheDir</span> (line <span class="line-number">978</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set cache directory</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setCacheDir - </span> - (<span class="var-type">string</span> <span class="var-name">$cache_dir</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_dir</span><span class="var-description">: directory to store cached templates in</span> </li> - </ul> - - - </div> -<a name="methodsetCompileDir" id="setCompileDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">setCompileDir</span> (line <span class="line-number">953</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set compile directory</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setCompileDir - </span> - (<span class="var-type">string</span> <span class="var-name">$compile_dir</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_dir</span><span class="var-description">: directory to store compiled templates in</span> </li> - </ul> - - - </div> -<a name="methodsetConfigDir" id="setConfigDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">setConfigDir</span> (line <span class="line-number">832</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set config directory</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setConfigDir - </span> - (<span class="var-type"></span> <span class="var-name">$config_dir</span>, <span class="var-type">string|array</span> <span class="var-name">$template_dir</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$template_dir</span><span class="var-description">: directory(s) of configuration sources</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$config_dir</span> </li> - </ul> - - - </div> -<a name="methodsetDebugTemplate" id="setDebugTemplate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">setDebugTemplate</span> (line <span class="line-number">1115</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">set the debug template</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">throws:</span> SmartyException if file is not readable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setDebugTemplate - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_name</span> </li> - </ul> - - - </div> -<a name="methodsetDefaultModifiers" id="setDefaultModifiers"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">setDefaultModifiers</span> (line <span class="line-number">1003</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set default modifiers</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setDefaultModifiers - </span> - (<span class="var-type">array|string</span> <span class="var-name">$modifiers</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array|string</span> - <span class="var-name">$modifiers</span><span class="var-description">: modifier or list of modifiers to set</span> </li> - </ul> - - - </div> -<a name="methodsetPluginsDir" id="setPluginsDir"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">setPluginsDir</span> (line <span class="line-number">896</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set plugins directory</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setPluginsDir - </span> - (<span class="var-type">string|array</span> <span class="var-name">$plugins_dir</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$plugins_dir</span><span class="var-description">: directory(s) of plugins</span> </li> - </ul> - - - </div> -<a name="methodsetTemplateDir" id="setTemplateDir"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">setTemplateDir</span> (line <span class="line-number">767</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Set template directory</p> - <ul class="tags"> - <li><span class="field">return:</span> current Smarty instance for chaining</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="method-name"> - setTemplateDir - </span> - (<span class="var-type">string|array</span> <span class="var-name">$template_dir</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$template_dir</span><span class="var-description">: directory(s) of template sources</span> </li> - </ul> - - - </div> -<a name="methodtemplateExists" id="templateExists"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">templateExists</span> (line <span class="line-number">653</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Check if a template resource exists</p> - <ul class="tags"> - <li><span class="field">return:</span> status</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - templateExists - </span> - (<span class="var-type">string</span> <span class="var-name">$resource_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_name</span><span class="var-description">: template name</span> </li> - </ul> - - - </div> -<a name="methodtestInstall" id="testInstall"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">testInstall</span> (line <span class="line-number">1297</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Run installation test</p> - <ul class="tags"> - <li><span class="field">return:</span> true if setup is fine, false if something is wrong</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - testInstall - </span> - ([<span class="var-type"></span> <span class="var-name">&$errors</span> = <span class="var-default">null</span>], <span class="var-type">array</span> <span class="var-name">$errors</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$errors</span><span class="var-description">: Array to write errors into, rather than outputting them</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$errors</span> </li> - </ul> - - - </div> -<a name="method__clone" id="__clone"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__clone</span> (line <span class="line-number">589</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> set selfpointer on cloned object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __clone - </span> - () - </div> - - - - </div> -<a name="method__get" id="__get"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">__get</span> (line <span class="line-number">604</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> Generic getter.</p> -<p class="description"><p>Calls the appropriate getter function. Issues an E_USER_NOTICE if no valid getter is found.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - __get - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: property name</span> </li> - </ul> - - - </div> -<a name="method__set" id="__set"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__set</span> (line <span class="line-number">630</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> Generic setter.</p> -<p class="description"><p>Calls the appropriate setter function. Issues an E_USER_NOTICE if no valid setter is found.</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __set - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: property name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: parameter passed to setter</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodcreateData">Smarty_Internal_TemplateBase::createData()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methoddisplay">Smarty_Internal_TemplateBase::display()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodfetch">Smarty_Internal_TemplateBase::fetch()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodgetRegisteredObject">Smarty_Internal_TemplateBase::getRegisteredObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodisCached">Smarty_Internal_TemplateBase::isCached()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodloadFilter">Smarty_Internal_TemplateBase::loadFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterCacheResource">Smarty_Internal_TemplateBase::registerCacheResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterClass">Smarty_Internal_TemplateBase::registerClass()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultConfigHandler">Smarty_Internal_TemplateBase::registerDefaultConfigHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultPluginHandler">Smarty_Internal_TemplateBase::registerDefaultPluginHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultTemplateHandler">Smarty_Internal_TemplateBase::registerDefaultTemplateHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterFilter">Smarty_Internal_TemplateBase::registerFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterObject">Smarty_Internal_TemplateBase::registerObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterPlugin">Smarty_Internal_TemplateBase::registerPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterResource">Smarty_Internal_TemplateBase::registerResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterCacheResource">Smarty_Internal_TemplateBase::unregisterCacheResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterFilter">Smarty_Internal_TemplateBase::unregisterFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterObject">Smarty_Internal_TemplateBase::unregisterObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterPlugin">Smarty_Internal_TemplateBase::unregisterPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterResource">Smarty_Internal_TemplateBase::unregisterResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#method_get_filter_name">Smarty_Internal_TemplateBase::_get_filter_name()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#method__call">Smarty_Internal_TemplateBase::__call()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a></span><br> - </blockquote> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendants</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="constCACHING_LIFETIME_CURRENT" id="CACHING_LIFETIME_CURRENT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">CACHING_LIFETIME_CURRENT</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">123</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constCACHING_LIFETIME_SAVED" id="CACHING_LIFETIME_SAVED"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">CACHING_LIFETIME_SAVED</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">124</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constCACHING_OFF" id="CACHING_OFF"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">CACHING_OFF</span> - = <span class="const-default"> 0</span> - (line <span class="line-number">122</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">define caching modes</p> -<p class="description"><p>constant definitions</p></p> - - -</div> -<a name="constCOMPILECHECK_CACHEMISS" id="COMPILECHECK_CACHEMISS"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">COMPILECHECK_CACHEMISS</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">130</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constCOMPILECHECK_OFF" id="COMPILECHECK_OFF"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">COMPILECHECK_OFF</span> - = <span class="const-default"> 0</span> - (line <span class="line-number">128</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">define compile check modes</p> -<p class="description"><p>constant definitions</p></p> - - -</div> -<a name="constCOMPILECHECK_ON" id="COMPILECHECK_ON"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">COMPILECHECK_ON</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">129</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constFILTER_OUTPUT" id="FILTER_OUTPUT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">FILTER_OUTPUT</span> - = <span class="const-default"> 'output'</span> - (line <span class="line-number">143</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constFILTER_POST" id="FILTER_POST"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">FILTER_POST</span> - = <span class="const-default"> 'post'</span> - (line <span class="line-number">141</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">filter types</p> -<p class="description"><p>constant definitions</p></p> - - -</div> -<a name="constFILTER_PRE" id="FILTER_PRE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">FILTER_PRE</span> - = <span class="const-default"> 'pre'</span> - (line <span class="line-number">142</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constFILTER_VARIABLE" id="FILTER_VARIABLE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">FILTER_VARIABLE</span> - = <span class="const-default"> 'variable'</span> - (line <span class="line-number">144</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPHP_ALLOW" id="PHP_ALLOW"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PHP_ALLOW</span> - = <span class="const-default"> 3</span> - (line <span class="line-number">137</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPHP_PASSTHRU" id="PHP_PASSTHRU"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PHP_PASSTHRU</span> - = <span class="const-default"> 0</span> - (line <span class="line-number">134</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">modes for handling of "<?php ... ?>" tags in templates.</p> -<p class="description"><p>constant definitions</p></p> - - -</div> -<a name="constPHP_QUOTE" id="PHP_QUOTE"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PHP_QUOTE</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">135</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPHP_REMOVE" id="PHP_REMOVE"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PHP_REMOVE</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">136</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPLUGIN_BLOCK" id="PLUGIN_BLOCK"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PLUGIN_BLOCK</span> - = <span class="const-default"> 'block'</span> - (line <span class="line-number">149</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPLUGIN_COMPILER" id="PLUGIN_COMPILER"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PLUGIN_COMPILER</span> - = <span class="const-default"> 'compiler'</span> - (line <span class="line-number">150</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPLUGIN_FUNCTION" id="PLUGIN_FUNCTION"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PLUGIN_FUNCTION</span> - = <span class="const-default"> 'function'</span> - (line <span class="line-number">148</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">plugin types</p> -<p class="description"><p>constant definitions</p></p> - - -</div> -<a name="constPLUGIN_MODIFIER" id="PLUGIN_MODIFIER"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PLUGIN_MODIFIER</span> - = <span class="const-default"> 'modifier'</span> - (line <span class="line-number">151</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constPLUGIN_MODIFIERCOMPILER" id="PLUGIN_MODIFIERCOMPILER"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">PLUGIN_MODIFIERCOMPILER</span> - = <span class="const-default"> 'modifiercompiler'</span> - (line <span class="line-number">152</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constSCOPE_GLOBAL" id="SCOPE_GLOBAL"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SCOPE_GLOBAL</span> - = <span class="const-default"> 3</span> - (line <span class="line-number">118</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constSCOPE_LOCAL" id="SCOPE_LOCAL"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SCOPE_LOCAL</span> - = <span class="const-default"> 0</span> - (line <span class="line-number">115</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">define variable scopes</p> -<p class="description"><p>constant definitions</p></p> - - -</div> -<a name="constSCOPE_PARENT" id="SCOPE_PARENT"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SCOPE_PARENT</span> - = <span class="const-default"> 1</span> - (line <span class="line-number">116</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constSCOPE_ROOT" id="SCOPE_ROOT"><!-- --></A> -<div class="evenrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SCOPE_ROOT</span> - = <span class="const-default"> 2</span> - (line <span class="line-number">117</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">constant definitions</p> - - -</div> -<a name="constSMARTY_VERSION" id="SMARTY_VERSION"><!-- --></A> -<div class="oddrow"> - - <div class="const-header"> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name">SMARTY_VERSION</span> - = <span class="const-default"> 'Smarty 3.1-DEV'</span> - (line <span class="line-number">110</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">smarty version</p> -<p class="description"><p>constant definitions</p></p> - - -</div> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/SmartyBC.html
Deleted
@@ -1,1865 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class SmartyBC</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class SmartyBC</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-consts">Constants</a> - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Backward Compatability Wrapper Class</p> - <p class="notes"> - Located in <a class="field" href="_libs---SmartyBC.class.php.html">/libs/SmartyBC.class.php</a> (line <span class="field">42</span>) - </p> - - - <pre><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - | - --<a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a> - | - --<a href="../../Smarty/Template/Smarty.html">Smarty</a> - | - --SmartyBC</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - <a href="#sec-consts">Constants</a> - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$_version" title="details" class="var-name">$_version</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-consts">Constants</a> - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">SmartyBC</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - ([<span class="var-type"></span> <span class="var-name">$options</span> = <span class="var-default">array()</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#append_by_ref" title="details" class="method-name">append_by_ref</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type">mixed</span> <span class="var-name">&$value</span>, [<span class="var-type">boolean</span> <span class="var-name">$merge</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#assign_by_ref" title="details" class="method-name">assign_by_ref</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type">mixed</span> <span class="var-name">&$value</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#clear_all_assign" title="details" class="method-name">clear_all_assign</a> - () - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#clear_all_cache" title="details" class="method-name">clear_all_cache</a> - ([<span class="var-type">string</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#clear_assign" title="details" class="method-name">clear_assign</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#clear_cache" title="details" class="method-name">clear_cache</a> - ([<span class="var-type">string</span> <span class="var-name">$tpl_file</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#clear_compiled_tpl" title="details" class="method-name">clear_compiled_tpl</a> - ([<span class="var-type">string</span> <span class="var-name">$tpl_file</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#clear_config" title="details" class="method-name">clear_config</a> - ([<span class="var-type">string</span> <span class="var-name">$var</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#config_load" title="details" class="method-name">config_load</a> - (<span class="var-type">string</span> <span class="var-name">$file</span>, [<span class="var-type">string</span> <span class="var-name">$section</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$scope</span> = <span class="var-default">'global'</span>]) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#get_config_vars" title="details" class="method-name">get_config_vars</a> - ([<span class="var-type">string</span> <span class="var-name">$name</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">object</span> - <a href="#get_registered_object" title="details" class="method-name">get_registered_object</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#get_template_vars" title="details" class="method-name">get_template_vars</a> - ([<span class="var-type">string</span> <span class="var-name">$name</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#is_cached" title="details" class="method-name">is_cached</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_file</span>, [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#load_filter" title="details" class="method-name">load_filter</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_block" title="details" class="method-name">register_block</a> - (<span class="var-type">string</span> <span class="var-name">$block</span>, <span class="var-type">string</span> <span class="var-name">$block_impl</span>, [<span class="var-type">bool</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_attrs</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_compiler_function" title="details" class="method-name">register_compiler_function</a> - (<span class="var-type">string</span> <span class="var-name">$function</span>, <span class="var-type">string</span> <span class="var-name">$function_impl</span>, [<span class="var-type">bool</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_function" title="details" class="method-name">register_function</a> - (<span class="var-type">string</span> <span class="var-name">$function</span>, <span class="var-type">string</span> <span class="var-name">$function_impl</span>, [<span class="var-type">bool</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_attrs</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_modifier" title="details" class="method-name">register_modifier</a> - (<span class="var-type">string</span> <span class="var-name">$modifier</span>, <span class="var-type">string</span> <span class="var-name">$modifier_impl</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_object" title="details" class="method-name">register_object</a> - (<span class="var-type">string</span> <span class="var-name">$object</span>, <span class="var-type">object</span> <span class="var-name">$object_impl</span>, [<span class="var-type">array</span> <span class="var-name">$allowed</span> = <span class="var-default">array()</span>], [<span class="var-type">boolean</span> <span class="var-name">$smarty_args</span> = <span class="var-default">true</span>], [<span class="var-type"></span> <span class="var-name">$block_methods</span> = <span class="var-default">array()</span>], <span class="var-type">array</span> <span class="var-name">$block_functs</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_outputfilter" title="details" class="method-name">register_outputfilter</a> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_postfilter" title="details" class="method-name">register_postfilter</a> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_prefilter" title="details" class="method-name">register_prefilter</a> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#register_resource" title="details" class="method-name">register_resource</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">array</span> <span class="var-name">$functions</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#template_exists" title="details" class="method-name">template_exists</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_file</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#trigger_error" title="details" class="method-name">trigger_error</a> - (<span class="var-type">string</span> <span class="var-name">$error_msg</span>, [<span class="var-type">integer</span> <span class="var-name">$error_type</span> = <span class="var-default">E_USER_WARNING</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_block" title="details" class="method-name">unregister_block</a> - (<span class="var-type">string</span> <span class="var-name">$block</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_compiler_function" title="details" class="method-name">unregister_compiler_function</a> - (<span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_function" title="details" class="method-name">unregister_function</a> - (<span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_modifier" title="details" class="method-name">unregister_modifier</a> - (<span class="var-type">string</span> <span class="var-name">$modifier</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_object" title="details" class="method-name">unregister_object</a> - (<span class="var-type">string</span> <span class="var-name">$object</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_outputfilter" title="details" class="method-name">unregister_outputfilter</a> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_postfilter" title="details" class="method-name">unregister_postfilter</a> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_prefilter" title="details" class="method-name">unregister_prefilter</a> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregister_resource" title="details" class="method-name">unregister_resource</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - <a href="#sec-consts">Constants</a> - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$_version" id="$_version"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$_version</span> - = <span class="var-default"> self::SMARTY_VERSION</span> (line <span class="line-number">48</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty 2 BC</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$allow_php_templates">Smarty::$allow_php_templates</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$autoload_filters">Smarty::$autoload_filters</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$auto_literal">Smarty::$auto_literal</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$cache_dir">Smarty::$cache_dir</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$cache_id">Smarty::$cache_id</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$cache_lifetime">Smarty::$cache_lifetime</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$cache_locking">Smarty::$cache_locking</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$cache_modified_check">Smarty::$cache_modified_check</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$caching">Smarty::$caching</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$caching_type">Smarty::$caching_type</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$compile_check">Smarty::$compile_check</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$compile_dir">Smarty::$compile_dir</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$compile_id">Smarty::$compile_id</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$compile_locking">Smarty::$compile_locking</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$config_booleanize">Smarty::$config_booleanize</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$config_dir">Smarty::$config_dir</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$config_overwrite">Smarty::$config_overwrite</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$config_read_hidden">Smarty::$config_read_hidden</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$debugging">Smarty::$debugging</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$debugging_ctrl">Smarty::$debugging_ctrl</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$debug_tpl">Smarty::$debug_tpl</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$default_config_handler_func">Smarty::$default_config_handler_func</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$default_config_type">Smarty::$default_config_type</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$default_modifiers">Smarty::$default_modifiers</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$default_plugin_handler_func">Smarty::$default_plugin_handler_func</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$default_resource_type">Smarty::$default_resource_type</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$default_template_handler_func">Smarty::$default_template_handler_func</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$direct_access_security">Smarty::$direct_access_security</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$error_reporting">Smarty::$error_reporting</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$error_unassigned">Smarty::$error_unassigned</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$escape_html">Smarty::$escape_html</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$force_cache">Smarty::$force_cache</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$force_compile">Smarty::$force_compile</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$get_used_tags">Smarty::$get_used_tags</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$global_tpl_vars">Smarty::$global_tpl_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$left_delimiter">Smarty::$left_delimiter</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$locking_timeout">Smarty::$locking_timeout</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$merged_templates_func">Smarty::$merged_templates_func</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$merge_compiled_includes">Smarty::$merge_compiled_includes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$php_handling">Smarty::$php_handling</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$plugins_dir">Smarty::$plugins_dir</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$plugin_search_order">Smarty::$plugin_search_order</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$properties">Smarty::$properties</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$registered_cache_resources">Smarty::$registered_cache_resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$registered_classes">Smarty::$registered_classes</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$registered_filters">Smarty::$registered_filters</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$registered_objects">Smarty::$registered_objects</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$registered_plugins">Smarty::$registered_plugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$registered_resources">Smarty::$registered_resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$right_delimiter">Smarty::$right_delimiter</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$security_class">Smarty::$security_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$security_policy">Smarty::$security_policy</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$smarty">Smarty::$smarty</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$smarty_debug_id">Smarty::$smarty_debug_id</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$start_time">Smarty::$start_time</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$template_dir">Smarty::$template_dir</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$template_functions">Smarty::$template_functions</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$template_objects">Smarty::$template_objects</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$use_include_path">Smarty::$use_include_path</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$use_sub_dirs">Smarty::$use_sub_dirs</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_current_file">Smarty::$_current_file</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_dir_perms">Smarty::$_dir_perms</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_file_perms">Smarty::$_file_perms</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_muted_directories">Smarty::$_muted_directories</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_parserdebug">Smarty::$_parserdebug</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_previous_error_handler">Smarty::$_previous_error_handler</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_smarty_vars">Smarty::$_smarty_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty.html#var$_tag_stack">Smarty::$_tag_stack</a></span><br> - </span> - </blockquote> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-consts">Constants</a> - - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">55</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Initialize new SmartyBC object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">SmartyBC</span> - <span class="method-name"> - __construct - </span> - ([<span class="var-type"></span> <span class="var-name">$options</span> = <span class="var-default">array()</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$options</span><span class="var-description">: options to set during initialization, e.g. array( 'forceCompile' => false )</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/Template/Smarty.html#method__construct">Smarty::__construct()</a></dt> - <dd>Initialize new Smarty object</dd> - </dl> - - </div> -<a name="methodappend_by_ref" id="append_by_ref"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">append_by_ref</span> (line <span class="line-number">80</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">wrapper for append_by_ref</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - append_by_ref - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type">mixed</span> <span class="var-name">&$value</span>, [<span class="var-type">boolean</span> <span class="var-name">$merge</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">&$value</span><span class="var-description">: the referenced value to append</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$merge</span><span class="var-description">: flag if array elements shall be merged</span> </li> - </ul> - - - </div> -<a name="methodassign_by_ref" id="assign_by_ref"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">assign_by_ref</span> (line <span class="line-number">68</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">wrapper for assign_by_ref</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - assign_by_ref - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type">mixed</span> <span class="var-name">&$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">&$value</span><span class="var-description">: the referenced value to assign</span> </li> - </ul> - - - </div> -<a name="methodclear_all_assign" id="clear_all_assign"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clear_all_assign</span> (line <span class="line-number">346</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear all the assigned template variables.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - clear_all_assign - </span> - () - </div> - - - - </div> -<a name="methodclear_all_cache" id="clear_all_cache"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clear_all_cache</span> (line <span class="line-number">325</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear the entire contents of cache (all templates)</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - clear_all_cache - </span> - ([<span class="var-type">string</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$exp_time</span><span class="var-description">: expire time</span> </li> - </ul> - - - </div> -<a name="methodclear_assign" id="clear_assign"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clear_assign</span> (line <span class="line-number">90</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear the given assigned template variable.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - clear_assign - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable to clear</span> </li> - </ul> - - - </div> -<a name="methodclear_cache" id="clear_cache"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clear_cache</span> (line <span class="line-number">314</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear cached content for the given template and cache id</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - clear_cache - </span> - ([<span class="var-type">string</span> <span class="var-name">$tpl_file</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_file</span><span class="var-description">: name of template file</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span><span class="var-description">: name of cache_id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span><span class="var-description">: name of compile_id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$exp_time</span><span class="var-description">: expiration time</span> </li> - </ul> - - - </div> -<a name="methodclear_compiled_tpl" id="clear_compiled_tpl"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clear_compiled_tpl</span> (line <span class="line-number">361</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clears compiled version of specified template resource, or all compiled template files if one is not specified.</p> -<p class="description"><p>This function is for advanced use only, not normally needed.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> results of smarty_core_rm_auto()</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - clear_compiled_tpl - </span> - ([<span class="var-type">string</span> <span class="var-name">$tpl_file</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$exp_time</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_file</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$exp_time</span> </li> - </ul> - - - </div> -<a name="methodclear_config" id="clear_config"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clear_config</span> (line <span class="line-number">427</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear configuration values</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - clear_config - </span> - ([<span class="var-type">string</span> <span class="var-name">$var</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$var</span> </li> - </ul> - - - </div> -<a name="methodconfig_load" id="config_load"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">config_load</span> (line <span class="line-number">406</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">load configuration values</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - config_load - </span> - (<span class="var-type">string</span> <span class="var-name">$file</span>, [<span class="var-type">string</span> <span class="var-name">$section</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$scope</span> = <span class="var-default">'global'</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$file</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$section</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$scope</span> </li> - </ul> - - - </div> -<a name="methodget_config_vars" id="get_config_vars"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">get_config_vars</span> (line <span class="line-number">394</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns an array containing config variables</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - get_config_vars - </span> - ([<span class="var-type">string</span> <span class="var-name">$name</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span> </li> - </ul> - - - </div> -<a name="methodget_registered_object" id="get_registered_object"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">get_registered_object</span> (line <span class="line-number">417</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">return a reference to a registered object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">object</span> - <span class="method-name"> - get_registered_object - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span> </li> - </ul> - - - </div> -<a name="methodget_template_vars" id="get_template_vars"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">get_template_vars</span> (line <span class="line-number">383</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns an array containing template variables</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - get_template_vars - </span> - ([<span class="var-type">string</span> <span class="var-name">$name</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span> </li> - </ul> - - - </div> -<a name="methodis_cached" id="is_cached"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">is_cached</span> (line <span class="line-number">338</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">test to see if valid cache exists for this template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - is_cached - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_file</span>, [<span class="var-type">string</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_file</span><span class="var-description">: name of template file</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span> </li> - </ul> - - - </div> -<a name="methodload_filter" id="load_filter"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">load_filter</span> (line <span class="line-number">300</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">load a filter of specified type and name</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - load_filter - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: filter type</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: filter name</span> </li> - </ul> - - - </div> -<a name="methodregister_block" id="register_block"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">register_block</span> (line <span class="line-number">152</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers block function to be used in templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_block - </span> - (<span class="var-type">string</span> <span class="var-name">$block</span>, <span class="var-type">string</span> <span class="var-name">$block_impl</span>, [<span class="var-type">bool</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_attrs</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$block</span><span class="var-description">: name of template block</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$block_impl</span><span class="var-description">: PHP function to register</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$cacheable</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_attrs</span> </li> - </ul> - - - </div> -<a name="methodregister_compiler_function" id="register_compiler_function"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">register_compiler_function</span> (line <span class="line-number">174</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers compiler function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_compiler_function - </span> - (<span class="var-type">string</span> <span class="var-name">$function</span>, <span class="var-type">string</span> <span class="var-name">$function_impl</span>, [<span class="var-type">bool</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$function</span><span class="var-description">: name of template function</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$function_impl</span><span class="var-description">: name of PHP function to register</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$cacheable</span> </li> - </ul> - - - </div> -<a name="methodregister_function" id="register_function"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">register_function</span> (line <span class="line-number">103</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers custom function to be used in templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_function - </span> - (<span class="var-type">string</span> <span class="var-name">$function</span>, <span class="var-type">string</span> <span class="var-name">$function_impl</span>, [<span class="var-type">bool</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_attrs</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$function</span><span class="var-description">: the name of the template function</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$function_impl</span><span class="var-description">: the name of the PHP function to register</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$cacheable</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_attrs</span> </li> - </ul> - - - </div> -<a name="methodregister_modifier" id="register_modifier"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">register_modifier</span> (line <span class="line-number">195</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers modifier to be used in templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_modifier - </span> - (<span class="var-type">string</span> <span class="var-name">$modifier</span>, <span class="var-type">string</span> <span class="var-name">$modifier_impl</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$modifier</span><span class="var-description">: name of template modifier</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$modifier_impl</span><span class="var-description">: name of PHP function to register</span> </li> - </ul> - - - </div> -<a name="methodregister_object" id="register_object"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">register_object</span> (line <span class="line-number">127</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers object to be used in templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_object - </span> - (<span class="var-type">string</span> <span class="var-name">$object</span>, <span class="var-type">object</span> <span class="var-name">$object_impl</span>, [<span class="var-type">array</span> <span class="var-name">$allowed</span> = <span class="var-default">array()</span>], [<span class="var-type">boolean</span> <span class="var-name">$smarty_args</span> = <span class="var-default">true</span>], [<span class="var-type"></span> <span class="var-name">$block_methods</span> = <span class="var-default">array()</span>], <span class="var-type">array</span> <span class="var-name">$block_functs</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$object</span><span class="var-description">: name of template object</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$object_impl</span><span class="var-description">: the referenced PHP object to register</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$allowed</span><span class="var-description">: list of allowed methods (empty = all)</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$smarty_args</span><span class="var-description">: smarty argument format, else traditional</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$block_functs</span><span class="var-description">: list of methods that are block format</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$block_methods</span> </li> - </ul> - - - </div> -<a name="methodregister_outputfilter" id="register_outputfilter"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">register_outputfilter</span> (line <span class="line-number">279</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers an output filter function to apply to a template output</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_outputfilter - </span> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$function</span> </li> - </ul> - - - </div> -<a name="methodregister_postfilter" id="register_postfilter"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">register_postfilter</span> (line <span class="line-number">258</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a postfilter function to apply to a compiled template after compilation</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_postfilter - </span> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$function</span> </li> - </ul> - - - </div> -<a name="methodregister_prefilter" id="register_prefilter"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">register_prefilter</span> (line <span class="line-number">237</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a prefilter function to apply to a template before compiling</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_prefilter - </span> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$function</span> </li> - </ul> - - - </div> -<a name="methodregister_resource" id="register_resource"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">register_resource</span> (line <span class="line-number">216</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a resource to fetch a template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - register_resource - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">array</span> <span class="var-name">$functions</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of resource</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$functions</span><span class="var-description">: array of functions to handle resource</span> </li> - </ul> - - - </div> -<a name="methodtemplate_exists" id="template_exists"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">template_exists</span> (line <span class="line-number">372</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Checks whether requested template exists.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - template_exists - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_file</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_file</span> </li> - </ul> - - - </div> -<a name="methodtrigger_error" id="trigger_error"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">trigger_error</span> (line <span class="line-number">438</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">trigger Smarty error</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - trigger_error - </span> - (<span class="var-type">string</span> <span class="var-name">$error_msg</span>, [<span class="var-type">integer</span> <span class="var-name">$error_type</span> = <span class="var-default">E_USER_WARNING</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$error_msg</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$error_type</span> </li> - </ul> - - - </div> -<a name="methodunregister_block" id="unregister_block"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregister_block</span> (line <span class="line-number">162</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters block function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_block - </span> - (<span class="var-type">string</span> <span class="var-name">$block</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$block</span><span class="var-description">: name of template function</span> </li> - </ul> - - - </div> -<a name="methodunregister_compiler_function" id="unregister_compiler_function"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">unregister_compiler_function</span> (line <span class="line-number">184</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters compiler function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_compiler_function - </span> - (<span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$function</span><span class="var-description">: name of template function</span> </li> - </ul> - - - </div> -<a name="methodunregister_function" id="unregister_function"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregister_function</span> (line <span class="line-number">113</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters custom function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_function - </span> - (<span class="var-type">string</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$function</span><span class="var-description">: name of template function</span> </li> - </ul> - - - </div> -<a name="methodunregister_modifier" id="unregister_modifier"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">unregister_modifier</span> (line <span class="line-number">205</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters modifier</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_modifier - </span> - (<span class="var-type">string</span> <span class="var-name">$modifier</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$modifier</span><span class="var-description">: name of template modifier</span> </li> - </ul> - - - </div> -<a name="methodunregister_object" id="unregister_object"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregister_object</span> (line <span class="line-number">139</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_object - </span> - (<span class="var-type">string</span> <span class="var-name">$object</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$object</span><span class="var-description">: name of template object</span> </li> - </ul> - - - </div> -<a name="methodunregister_outputfilter" id="unregister_outputfilter"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">unregister_outputfilter</span> (line <span class="line-number">289</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters an outputfilter function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_outputfilter - </span> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$function</span> </li> - </ul> - - - </div> -<a name="methodunregister_postfilter" id="unregister_postfilter"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregister_postfilter</span> (line <span class="line-number">268</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters a postfilter function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_postfilter - </span> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$function</span> </li> - </ul> - - - </div> -<a name="methodunregister_prefilter" id="unregister_prefilter"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">unregister_prefilter</span> (line <span class="line-number">247</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters a prefilter function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_prefilter - </span> - (<span class="var-type">callable</span> <span class="var-name">$function</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$function</span> </li> - </ul> - - - </div> -<a name="methodunregister_resource" id="unregister_resource"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregister_resource</span> (line <span class="line-number">226</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters a resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregister_resource - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of resource</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#method__construct">Smarty::__construct()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodaddAutoloadFilters">Smarty::addAutoloadFilters()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodaddConfigDir">Smarty::addConfigDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodaddDefaultModifiers">Smarty::addDefaultModifiers()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodaddPluginsDir">Smarty::addPluginsDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodaddTemplateDir">Smarty::addTemplateDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodclearAllCache">Smarty::clearAllCache()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodclearCache">Smarty::clearCache()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodclearCompiledTemplate">Smarty::clearCompiledTemplate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodcompileAllConfig">Smarty::compileAllConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodcompileAllTemplates">Smarty::compileAllTemplates()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodcreateTemplate">Smarty::createTemplate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methoddisableSecurity">Smarty::disableSecurity()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodenableSecurity">Smarty::enableSecurity()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetAutoloadFilters">Smarty::getAutoloadFilters()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetCacheDir">Smarty::getCacheDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetCompileDir">Smarty::getCompileDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetConfigDir">Smarty::getConfigDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetDebugTemplate">Smarty::getDebugTemplate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetDefaultModifiers">Smarty::getDefaultModifiers()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetGlobal">Smarty::getGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetPluginsDir">Smarty::getPluginsDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetTags">Smarty::getTags()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodgetTemplateDir">Smarty::getTemplateDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodloadPlugin">Smarty::loadPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodmuteExpectedErrors">Smarty::muteExpectedErrors()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodmutingErrorHandler">Smarty::mutingErrorHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetAutoloadFilters">Smarty::setAutoloadFilters()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetCacheDir">Smarty::setCacheDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetCompileDir">Smarty::setCompileDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetConfigDir">Smarty::setConfigDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetDebugTemplate">Smarty::setDebugTemplate()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetDefaultModifiers">Smarty::setDefaultModifiers()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetPluginsDir">Smarty::setPluginsDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodsetTemplateDir">Smarty::setTemplateDir()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodtemplateExists">Smarty::templateExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodtestInstall">Smarty::testInstall()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#methodunmuteExpectedErrors">Smarty::unmuteExpectedErrors()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#method__clone">Smarty::__clone()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#method__destruct">Smarty::__destruct()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#method__get">Smarty::__get()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty.html#method__set">Smarty::__set()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodcreateData">Smarty_Internal_TemplateBase::createData()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methoddisplay">Smarty_Internal_TemplateBase::display()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodfetch">Smarty_Internal_TemplateBase::fetch()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodgetRegisteredObject">Smarty_Internal_TemplateBase::getRegisteredObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodisCached">Smarty_Internal_TemplateBase::isCached()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodloadFilter">Smarty_Internal_TemplateBase::loadFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterCacheResource">Smarty_Internal_TemplateBase::registerCacheResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterClass">Smarty_Internal_TemplateBase::registerClass()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultConfigHandler">Smarty_Internal_TemplateBase::registerDefaultConfigHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultPluginHandler">Smarty_Internal_TemplateBase::registerDefaultPluginHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultTemplateHandler">Smarty_Internal_TemplateBase::registerDefaultTemplateHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterFilter">Smarty_Internal_TemplateBase::registerFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterObject">Smarty_Internal_TemplateBase::registerObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterPlugin">Smarty_Internal_TemplateBase::registerPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterResource">Smarty_Internal_TemplateBase::registerResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterCacheResource">Smarty_Internal_TemplateBase::unregisterCacheResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterFilter">Smarty_Internal_TemplateBase::unregisterFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterObject">Smarty_Internal_TemplateBase::unregisterObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterPlugin">Smarty_Internal_TemplateBase::unregisterPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterResource">Smarty_Internal_TemplateBase::unregisterResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#method_get_filter_name">Smarty_Internal_TemplateBase::_get_filter_name()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#method__call">Smarty_Internal_TemplateBase::__call()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a></span><br> - </blockquote> - - </div> - </div> - - <a name="sec-consts"></a> - <div class="info-box"> - <div class="info-box-title">Class Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>) - - - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Constants</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span></p> - <blockquote> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constCACHING_LIFETIME_CURRENT">Smarty::CACHING_LIFETIME_CURRENT</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constCACHING_LIFETIME_SAVED">Smarty::CACHING_LIFETIME_SAVED</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constCACHING_OFF">Smarty::CACHING_OFF</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constCOMPILECHECK_CACHEMISS">Smarty::COMPILECHECK_CACHEMISS</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constCOMPILECHECK_OFF">Smarty::COMPILECHECK_OFF</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constCOMPILECHECK_ON">Smarty::COMPILECHECK_ON</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constFILTER_OUTPUT">Smarty::FILTER_OUTPUT</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constFILTER_POST">Smarty::FILTER_POST</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constFILTER_PRE">Smarty::FILTER_PRE</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constFILTER_VARIABLE">Smarty::FILTER_VARIABLE</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPHP_ALLOW">Smarty::PHP_ALLOW</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPHP_PASSTHRU">Smarty::PHP_PASSTHRU</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPHP_QUOTE">Smarty::PHP_QUOTE</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPHP_REMOVE">Smarty::PHP_REMOVE</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPLUGIN_BLOCK">Smarty::PLUGIN_BLOCK</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPLUGIN_COMPILER">Smarty::PLUGIN_COMPILER</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPLUGIN_FUNCTION">Smarty::PLUGIN_FUNCTION</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPLUGIN_MODIFIER">Smarty::PLUGIN_MODIFIER</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constPLUGIN_MODIFIERCOMPILER">Smarty::PLUGIN_MODIFIERCOMPILER</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constSCOPE_GLOBAL">Smarty::SCOPE_GLOBAL</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constSCOPE_LOCAL">Smarty::SCOPE_LOCAL</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constSCOPE_PARENT">Smarty::SCOPE_PARENT</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constSCOPE_ROOT">Smarty::SCOPE_ROOT</a></span><br> - </span> - <img src="../../media/images/Variable.png" /> - <span class="const-title"> - <span class="const-name"><a href="../../Smarty/Template/Smarty.html#constSMARTY_VERSION">Smarty::SMARTY_VERSION</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:26 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Smarty_Data.html
Deleted
@@ -1,212 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Data</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Data</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">class for the Smarty data object</p> -<p class="description"><p>The Smarty data object will hold Smarty variables in the current scope</p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_data.php.html">/libs/sysplugins/smarty_internal_data.php</a> (line <span class="field">412</span>) - </p> - - - <pre><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - | - --Smarty_Data</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#$smarty" title="details" class="var-name">$smarty</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Data</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - ([<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a>|array</span> <span class="var-name">$_parent</span> = <span class="var-default">null</span>], [<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$smarty" id="$smarty"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> - = <span class="var-default"> null</span> (line <span class="line-number">419</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">427</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">create Smarty data object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Data</span> - <span class="method-name"> - __construct - </span> - ([<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a>|array</span> <span class="var-name">$_parent</span> = <span class="var-default">null</span>], [<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a>|array</span> - <span class="var-name">$_parent</span><span class="var-description">: parent template</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: global smarty instance</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Smarty_Internal_Data.html
Deleted
@@ -1,794 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Data</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Data</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Base class with template and variable methodes</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_data.php.html">/libs/sysplugins/smarty_internal_data.php</a> (line <span class="field">18</span>) - </p> - - - <pre></pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a></td> - <td> - class for the Smarty data object - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Debug/Smarty_Internal_Debug.html">Smarty_Internal_Debug</a></td> - <td> - Smarty Internal Plugin Debug Class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a></td> - <td> - Class with shared template methodes - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$config_vars" title="details" class="var-name">$config_vars</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <a href="#$parent" title="details" class="var-name">$parent</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_class" title="details" class="var-name">$template_class</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$tpl_vars" title="details" class="var-name">$tpl_vars</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#append" title="details" class="method-name">append</a> - (<span class="var-type">array|string</span> <span class="var-name">$tpl_var</span>, [<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$merge</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#appendByRef" title="details" class="method-name">appendByRef</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type">mixed</span> <span class="var-name">&$value</span>, [<span class="var-type">boolean</span> <span class="var-name">$merge</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#assign" title="details" class="method-name">assign</a> - (<span class="var-type">array|string</span> <span class="var-name">$tpl_var</span>, [<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], <span class="var-type">boolean</span> <span class="var-name">$scope</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#assignByRef" title="details" class="method-name">assignByRef</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type"></span> <span class="var-name">&$value</span>, [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], <span class="var-type">mixed</span> <span class="var-name">$</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#assignGlobal" title="details" class="method-name">assignGlobal</a> - (<span class="var-type">string</span> <span class="var-name">$varname</span>, [<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#clearAllAssign" title="details" class="method-name">clearAllAssign</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#clearAssign" title="details" class="method-name">clearAssign</a> - (<span class="var-type">string|array</span> <span class="var-name">$tpl_var</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#clearConfig" title="details" class="method-name">clearConfig</a> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#configLoad" title="details" class="method-name">configLoad</a> - (<span class="var-type">string</span> <span class="var-name">$config_file</span>, [<span class="var-type">mixed</span> <span class="var-name">$sections</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">mixed</span> - <a href="#getConfigVariable" title="details" class="method-name">getConfigVariable</a> - (<span class="var-type">string</span> <span class="var-name">$variable</span>, [<span class="var-type"></span> <span class="var-name">$error_enable</span> = <span class="var-default">true</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getConfigVars" title="details" class="method-name">getConfigVars</a> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>], [<span class="var-type"></span> <span class="var-name">$search_parents</span> = <span class="var-default">true</span>]) - </div> - <div class="method-definition"> - <span class="method-result">mixed</span> - <a href="#getStreamVariable" title="details" class="method-name">getStreamVariable</a> - (<span class="var-type">string</span> <span class="var-name">$variable</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getTemplateVars" title="details" class="method-name">getTemplateVars</a> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$_ptr</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$search_parents</span> = <span class="var-default">true</span>]) - </div> - <div class="method-definition"> - <span class="method-result">object the</span> - <a href="#getVariable" title="details" class="method-name">getVariable</a> - (<span class="var-type">string</span> <span class="var-name">$variable</span>, [<span class="var-type">object</span> <span class="var-name">$_ptr</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$search_parents</span> = <span class="var-default">true</span>], [<span class="var-type"></span> <span class="var-name">$error_enable</span> = <span class="var-default">true</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$config_vars" id="$config_vars"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$config_vars</span> - = <span class="var-default">array()</span> (line <span class="line-number">43</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">configuration settings</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$parent" id="$parent"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$parent</span> - = <span class="var-default"> null</span> (line <span class="line-number">37</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">parent template (if any)</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_class" id="$template_class"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_class</span> - = <span class="var-default"> 'Smarty_Internal_Template'</span> (line <span class="line-number">25</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">name of class used for templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$tpl_vars" id="$tpl_vars"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$tpl_vars</span> - = <span class="var-default">array()</span> (line <span class="line-number">31</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">template variables</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodappend" id="append"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">append</span> (line <span class="line-number">114</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">appends values to template variables</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - append - </span> - (<span class="var-type">array|string</span> <span class="var-name">$tpl_var</span>, [<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$merge</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array|string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable name(s)</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: the value to append</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$merge</span><span class="var-description">: flag if array elements shall be merged</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$nocache</span><span class="var-description">: if true any output of this variable will be not cached</span> </li> - </ul> - - - </div> -<a name="methodappendByRef" id="appendByRef"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">appendByRef</span> (line <span class="line-number">171</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">appends values to template variables by reference</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - appendByRef - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type">mixed</span> <span class="var-name">&$value</span>, [<span class="var-type">boolean</span> <span class="var-name">$merge</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">&$value</span><span class="var-description">: the referenced value to append</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$merge</span><span class="var-description">: flag if array elements shall be merged</span> </li> - </ul> - - - </div> -<a name="methodassign" id="assign"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">assign</span> (line <span class="line-number">53</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">assigns a Smarty variable</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - assign - </span> - (<span class="var-type">array|string</span> <span class="var-name">$tpl_var</span>, [<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], <span class="var-type">boolean</span> <span class="var-name">$scope</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array|string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable name(s)</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: the value to assign</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$nocache</span><span class="var-description">: if true any output of this variable will be not cached</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$scope</span><span class="var-description">: the scope the variable will have (local,parent or root)</span> </li> - </ul> - - - </div> -<a name="methodassignByRef" id="assignByRef"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">assignByRef</span> (line <span class="line-number">98</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">assigns values to template variables by reference</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - assignByRef - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, <span class="var-type"></span> <span class="var-name">&$value</span>, [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], <span class="var-type">mixed</span> <span class="var-name">$</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$</span><span class="var-description">: &$value the referenced value to assign</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$nocache</span><span class="var-description">: if true any output of this variable will be not cached</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">&$value</span> </li> - </ul> - - - </div> -<a name="methodassignGlobal" id="assignGlobal"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">assignGlobal</span> (line <span class="line-number">85</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">assigns a global Smarty variable</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - assignGlobal - </span> - (<span class="var-type">string</span> <span class="var-name">$varname</span>, [<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$varname</span><span class="var-description">: the global variable name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: the value to assign</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$nocache</span><span class="var-description">: if true any output of this variable will be not cached</span> </li> - </ul> - - - </div> -<a name="methodclearAllAssign" id="clearAllAssign"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clearAllAssign</span> (line <span class="line-number">254</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear all the assigned template variables.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - clearAllAssign - </span> - () - </div> - - - - </div> -<a name="methodclearAssign" id="clearAssign"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">clearAssign</span> (line <span class="line-number">240</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">clear the given assigned template variable.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - clearAssign - </span> - (<span class="var-type">string|array</span> <span class="var-name">$tpl_var</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|array</span> - <span class="var-name">$tpl_var</span><span class="var-description">: the template variable(s) to clear</span> </li> - </ul> - - - </div> -<a name="methodclearConfig" id="clearConfig"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">clearConfig</span> (line <span class="line-number">393</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Deassigns a single or all config variables</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - clearConfig - </span> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$varname</span><span class="var-description">: variable name or null</span> </li> - </ul> - - - </div> -<a name="methodconfigLoad" id="configLoad"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">configLoad</span> (line <span class="line-number">265</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">load a config file, optionally load just selected sections</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - configLoad - </span> - (<span class="var-type">string</span> <span class="var-name">$config_file</span>, [<span class="var-type">mixed</span> <span class="var-name">$sections</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$config_file</span><span class="var-description">: filename</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$sections</span><span class="var-description">: array of section names, single section or null</span> </li> - </ul> - - - </div> -<a name="methodgetConfigVariable" id="getConfigVariable"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getConfigVariable</span> (line <span class="line-number">313</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">gets a config variable</p> - <ul class="tags"> - <li><span class="field">return:</span> the value of the config variable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - getConfigVariable - </span> - (<span class="var-type">string</span> <span class="var-name">$variable</span>, [<span class="var-type"></span> <span class="var-name">$error_enable</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$variable</span><span class="var-description">: the name of the config variable</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$error_enable</span> </li> - </ul> - - - </div> -<a name="methodgetConfigVars" id="getConfigVars"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getConfigVars</span> (line <span class="line-number">362</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns a single or all config variables</p> - <ul class="tags"> - <li><span class="field">return:</span> variable value or or array of variables</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getConfigVars - </span> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>], [<span class="var-type"></span> <span class="var-name">$search_parents</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$varname</span><span class="var-description">: variable name or null</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$search_parents</span> </li> - </ul> - - - </div> -<a name="methodgetStreamVariable" id="getStreamVariable"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getStreamVariable</span> (line <span class="line-number">337</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">gets a stream variable</p> - <ul class="tags"> - <li><span class="field">return:</span> the value of the stream variable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - getStreamVariable - </span> - (<span class="var-type">string</span> <span class="var-name">$variable</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$variable</span><span class="var-description">: the stream of the variable</span> </li> - </ul> - - - </div> -<a name="methodgetTemplateVars" id="getTemplateVars"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getTemplateVars</span> (line <span class="line-number">198</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns a single or all template variables</p> - <ul class="tags"> - <li><span class="field">return:</span> variable value or or array of variables</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getTemplateVars - </span> - ([<span class="var-type">string</span> <span class="var-name">$varname</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$_ptr</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$search_parents</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$varname</span><span class="var-description">: variable name or null</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$_ptr</span><span class="var-description">: optional pointer to data object</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$search_parents</span><span class="var-description">: include parent templates?</span> </li> - </ul> - - - </div> -<a name="methodgetVariable" id="getVariable"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getVariable</span> (line <span class="line-number">280</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">gets the object of a Smarty variable</p> - <ul class="tags"> - <li><span class="field">return:</span> object of the variable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">object the</span> - <span class="method-name"> - getVariable - </span> - (<span class="var-type">string</span> <span class="var-name">$variable</span>, [<span class="var-type">object</span> <span class="var-name">$_ptr</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$search_parents</span> = <span class="var-default">true</span>], [<span class="var-type"></span> <span class="var-name">$error_enable</span> = <span class="var-default">true</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$variable</span><span class="var-description">: the name of the Smarty variable</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$_ptr</span><span class="var-description">: optional pointer to data object</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$search_parents</span><span class="var-description">: search also in parent data</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$error_enable</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Smarty_Internal_Template.html
Deleted
@@ -1,1124 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Template</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Template</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Main class with template data structures and methods</p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_template.php.html">/libs/sysplugins/smarty_internal_template.php</a> (line <span class="field">22</span>) - </p> - - - <pre><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - | - --<a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a> - | - --Smarty_Internal_Template</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$allow_relative_path" title="details" class="var-name">$allow_relative_path</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$block_data" title="details" class="var-name">$block_data</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$cache_id" title="details" class="var-name">$cache_id</a> - </div> - <div class="var-title"> - <span class="var-type">integer</span> - <a href="#$cache_lifetime" title="details" class="var-name">$cache_lifetime</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$caching" title="details" class="var-name">$caching</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$compile_id" title="details" class="var-name">$compile_id</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$has_nocache_code" title="details" class="var-name">$has_nocache_code</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$mustCompile" title="details" class="var-name">$mustCompile</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$properties" title="details" class="var-name">$properties</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$required_plugins" title="details" class="var-name">$required_plugins</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#$smarty" title="details" class="var-name">$smarty</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_resource" title="details" class="var-name">$template_resource</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$used_tags" title="details" class="var-name">$used_tags</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$variable_filters" title="details" class="var-name">$variable_filters</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Template</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type">string</span> <span class="var-name">$template_resource</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_parent</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$_cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$_compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">bool</span> <span class="var-name">$_caching</span> = <span class="var-default">null</span>], [<span class="var-type">int</span> <span class="var-name">$_cache_lifetime</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__destruct" title="details" class="method-name">__destruct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#compileTemplateSource" title="details" class="method-name">compileTemplateSource</a> - () - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#createLocalArrayVariable" title="details" class="method-name">createLocalArrayVariable</a> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, [<span class="var-type">bool</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$scope</span> = <span class="var-default">Smarty::SCOPE_LOCAL</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#createTemplateCodeFrame" title="details" class="method-name">createTemplateCodeFrame</a> - ([<span class="var-type">string</span> <span class="var-name">$content</span> = <span class="var-default">''</span>], [<span class="var-type">bool</span> <span class="var-name">$cache</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#decodeProperties" title="details" class="method-name">decodeProperties</a> - (<span class="var-type">array</span> <span class="var-name">$properties</span>, [<span class="var-type">bool</span> <span class="var-name">$cache</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">array</span> - <a href="#getScope" title="details" class="method-name">&getScope</a> - (<span class="var-type">int</span> <span class="var-name">$scope</span>) - </div> - <div class="method-definition"> - <span class="method-result">mixed</span> - <a href="#getScopePointer" title="details" class="method-name">getScopePointer</a> - (<span class="var-type">int</span> <span class="var-name">$scope</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getSubTemplate" title="details" class="method-name">getSubTemplate</a> - (<span class="var-type">string</span> <span class="var-name">$template</span>, <span class="var-type">mixed</span> <span class="var-name">$cache_id</span>, <span class="var-type">mixed</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$caching</span>, <span class="var-type">integer</span> <span class="var-name">$cache_lifetime</span>, <span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type">int</span> <span class="var-name">$parent_scope</span>, <span class="var-type">array</span> <span class="var-name">$vars</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#mustCompile" title="details" class="method-name">mustCompile</a> - () - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#setupInlineSubTemplate" title="details" class="method-name">setupInlineSubTemplate</a> - (<span class="var-type">string</span> <span class="var-name">$template</span>, <span class="var-type">mixed</span> <span class="var-name">$cache_id</span>, <span class="var-type">mixed</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$caching</span>, <span class="var-type">integer</span> <span class="var-name">$cache_lifetime</span>, <span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type">int</span> <span class="var-name">$parent_scope</span>, <span class="var-type">string</span> <span class="var-name">$hash</span>, <span class="var-type">array</span> <span class="var-name">$vars</span>) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#writeCachedContent" title="details" class="method-name">writeCachedContent</a> - (<span class="var-type"></span> <span class="var-name">$content</span>) - </div> - <div class="method-definition"> - <span class="method-result">int</span> - <a href="#_count" title="details" class="method-name">_count</a> - (<span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__get" title="details" class="method-name">__get</a> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__set" title="details" class="method-name">__set</a> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$allow_relative_path" id="$allow_relative_path"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$allow_relative_path</span> - = <span class="var-default"> false</span> (line <span class="line-number">95</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">internal flag to allow relative path in child template blocks</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$block_data" id="$block_data"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$block_data</span> - = <span class="var-default">array()</span> (line <span class="line-number">80</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">blocks for template inheritance</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$cache_id" id="$cache_id"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">28</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache_id</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$cache_lifetime" id="$cache_lifetime"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">integer</span> - <span class="var-name">$cache_lifetime</span> - = <span class="var-default"> null</span> (line <span class="line-number">43</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache lifetime in seconds</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$caching" id="$caching"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$caching</span> - = <span class="var-default"> null</span> (line <span class="line-number">38</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">caching enabled</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$compile_id" id="$compile_id"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">$compile_id</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$has_nocache_code" id="$has_nocache_code"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$has_nocache_code</span> - = <span class="var-default"> false</span> (line <span class="line-number">58</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">flag if template does contain nocache code sections</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$mustCompile" id="$mustCompile"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$mustCompile</span> - = <span class="var-default"> null</span> (line <span class="line-number">53</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">flag if compiled template is invalid and must be (re)compiled</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$properties" id="$properties"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$properties</span> - = <span class="var-default">array('file_dependency' => array(),'nocache_hash'=>'','function'=>array())</span> (line <span class="line-number">63</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">special compiled and cached template properties</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$required_plugins" id="$required_plugins"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$required_plugins</span> - = <span class="var-default">array('compiled' => array(),'nocache'=>array())</span> (line <span class="line-number">70</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">required plugins</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty" id="$smarty"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> - = <span class="var-default"> null</span> (line <span class="line-number">75</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Global smarty instance</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_resource" id="$template_resource"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_resource</span> - = <span class="var-default"> null</span> (line <span class="line-number">48</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$used_tags" id="$used_tags"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$used_tags</span> - = <span class="var-default">array()</span> (line <span class="line-number">90</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">optional log of tag/attributes</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$variable_filters" id="$variable_filters"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$variable_filters</span> - = <span class="var-default">array()</span> (line <span class="line-number">85</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">variable filters</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">111</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Create template data object</p> -<p class="description"><p>Some of the global Smarty settings copied to template scope It load the required template resources and cacher plugins</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Template</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type">string</span> <span class="var-name">$template_resource</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_parent</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$_cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$_compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">bool</span> <span class="var-name">$_caching</span> = <span class="var-default">null</span>], [<span class="var-type">int</span> <span class="var-name">$_cache_lifetime</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template_resource</span><span class="var-description">: template resource string</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_parent</span><span class="var-description">: back pointer to parent object with variables or null</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$_cache_id</span><span class="var-description">: cache id or null</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$_compile_id</span><span class="var-description">: compile id or null</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$_caching</span><span class="var-description">: use caching?</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$_cache_lifetime</span><span class="var-description">: cache life-time in seconds</span> </li> - </ul> - - - </div> -<a name="method__destruct" id="__destruct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Destructor __destruct</span> (line <span class="line-number">623</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template data object destrutor</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __destruct - </span> - () - </div> - - - - </div> -<a name="methodcompileTemplateSource" id="compileTemplateSource"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">compileTemplateSource</span> (line <span class="line-number">159</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiles the template</p> -<p class="description"><p>If the template is not evaluated the compiled template is saved on disk</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - compileTemplateSource - </span> - () - </div> - - - - </div> -<a name="methodcreateLocalArrayVariable" id="createLocalArrayVariable"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">createLocalArrayVariable</span> (line <span class="line-number">458</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template code runtime function to create a local Smarty variable for array assignments</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - createLocalArrayVariable - </span> - (<span class="var-type">string</span> <span class="var-name">$tpl_var</span>, [<span class="var-type">bool</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$scope</span> = <span class="var-default">Smarty::SCOPE_LOCAL</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$tpl_var</span><span class="var-description">: tempate variable name</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$nocache</span><span class="var-description">: cache mode of variable</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$scope</span><span class="var-description">: scope of variable</span> </li> - </ul> - - - </div> -<a name="methodcreateTemplateCodeFrame" id="createTemplateCodeFrame"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">createTemplateCodeFrame</span> (line <span class="line-number">322</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Create code frame for compiled and cached templates</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - createTemplateCodeFrame - </span> - ([<span class="var-type">string</span> <span class="var-name">$content</span> = <span class="var-default">''</span>], [<span class="var-type">bool</span> <span class="var-name">$cache</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: optional template content</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$cache</span><span class="var-description">: flag for cache file</span> </li> - </ul> - - - </div> -<a name="methoddecodeProperties" id="decodeProperties"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">decodeProperties</span> (line <span class="line-number">397</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">This function is executed automatically when a compiled or cached template file is included</p> -<p class="description"><p><ul><li>Decode saved properties from compiled template and cache files</li><li>Check if compiled or cache file is valid</li></ul></p></p> - <ul class="tags"> - <li><span class="field">return:</span> flag if compiled or cache file is valid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - decodeProperties - </span> - (<span class="var-type">array</span> <span class="var-name">$properties</span>, [<span class="var-type">bool</span> <span class="var-name">$cache</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$properties</span><span class="var-description">: special template properties</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$cache</span><span class="var-description">: flag if called from cache file</span> </li> - </ul> - - - </div> -<a name="methodgetScope" id="getScope"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getScope</span> (line <span class="line-number">479</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template code runtime function to get pointer to template variable array of requested scope</p> - <ul class="tags"> - <li><span class="field">return:</span> array of template variables</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">array</span> - <span class="method-name"> - &getScope - </span> - (<span class="var-type">int</span> <span class="var-name">$scope</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">int</span> - <span class="var-name">$scope</span><span class="var-description">: requested variable scope</span> </li> - </ul> - - - </div> -<a name="methodgetScopePointer" id="getScopePointer"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getScopePointer</span> (line <span class="line-number">502</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get parent or root of template parent chain</p> - <ul class="tags"> - <li><span class="field">return:</span> object</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - getScopePointer - </span> - (<span class="var-type">int</span> <span class="var-name">$scope</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">int</span> - <span class="var-name">$scope</span><span class="var-description">: pqrent or root scope</span> </li> - </ul> - - - </div> -<a name="methodgetSubTemplate" id="getSubTemplate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getSubTemplate</span> (line <span class="line-number">240</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template code runtime function to get subtemplate content</p> - <ul class="tags"> - <li><span class="field">return:</span> template content</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getSubTemplate - </span> - (<span class="var-type">string</span> <span class="var-name">$template</span>, <span class="var-type">mixed</span> <span class="var-name">$cache_id</span>, <span class="var-type">mixed</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$caching</span>, <span class="var-type">integer</span> <span class="var-name">$cache_lifetime</span>, <span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type">int</span> <span class="var-name">$parent_scope</span>, <span class="var-type">array</span> <span class="var-name">$vars</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template</span><span class="var-description">: the resource handle of the template file</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id to be used with this template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id to be used with this template</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$caching</span><span class="var-description">: cache mode</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$cache_lifetime</span><span class="var-description">: life time of cache data</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$vars</span><span class="var-description">: optional variables to assign</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$parent_scope</span><span class="var-description">: scope in which {include} should execute</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$data</span> </li> - </ul> - - - </div> -<a name="methodmustCompile" id="mustCompile"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">mustCompile</span> (line <span class="line-number">137</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns if the current template must be compiled by the Smarty compiler</p> -<p class="description"><p>It does compare the timestamps of template source and the compiled templates and checks the force compile configuration</p></p> - <ul class="tags"> - <li><span class="field">return:</span> true if the template must be compiled</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - mustCompile - </span> - () - </div> - - - - </div> -<a name="methodsetupInlineSubTemplate" id="setupInlineSubTemplate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">setupInlineSubTemplate</span> (line <span class="line-number">288</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template code runtime function to set up an inline subtemplate</p> - <ul class="tags"> - <li><span class="field">return:</span> template content</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - setupInlineSubTemplate - </span> - (<span class="var-type">string</span> <span class="var-name">$template</span>, <span class="var-type">mixed</span> <span class="var-name">$cache_id</span>, <span class="var-type">mixed</span> <span class="var-name">$compile_id</span>, <span class="var-type">integer</span> <span class="var-name">$caching</span>, <span class="var-type">integer</span> <span class="var-name">$cache_lifetime</span>, <span class="var-type"></span> <span class="var-name">$data</span>, <span class="var-type">int</span> <span class="var-name">$parent_scope</span>, <span class="var-type">string</span> <span class="var-name">$hash</span>, <span class="var-type">array</span> <span class="var-name">$vars</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template</span><span class="var-description">: the resource handle of the template file</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id to be used with this template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id to be used with this template</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$caching</span><span class="var-description">: cache mode</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">$cache_lifetime</span><span class="var-description">: life time of cache data</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$vars</span><span class="var-description">: optional variables to assign</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$parent_scope</span><span class="var-description">: scope in which {include} should execute</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$hash</span><span class="var-description">: nocache hash code</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$data</span> </li> - </ul> - - - </div> -<a name="methodwriteCachedContent" id="writeCachedContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">writeCachedContent</span> (line <span class="line-number">212</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Writes the cached template output</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - writeCachedContent - </span> - (<span class="var-type"></span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$content</span> </li> - </ul> - - - </div> -<a name="method_count" id="_count"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">_count</span> (line <span class="line-number">522</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">[util function] counts an array, arrayaccess/traversable or PDOStatement object</p> - <ul class="tags"> - <li><span class="field">return:</span> the count for arrays and objects that implement countable, 1 for other objects that don't, and 0 for empty elements</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">int</span> - <span class="method-name"> - _count - </span> - (<span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span> </li> - </ul> - - - </div> -<a name="method__get" id="__get"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">__get</span> (line <span class="line-number">578</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">get Smarty property in template context</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __get - </span> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$property_name</span><span class="var-description">: property name</span> </li> - </ul> - - - </div> -<a name="method__set" id="__set"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__set</span> (line <span class="line-number">552</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">set Smarty property in template context</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __set - </span> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$property_name</span><span class="var-description">: property name</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: value</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodcreateData">Smarty_Internal_TemplateBase::createData()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methoddisplay">Smarty_Internal_TemplateBase::display()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodfetch">Smarty_Internal_TemplateBase::fetch()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodgetRegisteredObject">Smarty_Internal_TemplateBase::getRegisteredObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodisCached">Smarty_Internal_TemplateBase::isCached()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodloadFilter">Smarty_Internal_TemplateBase::loadFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterCacheResource">Smarty_Internal_TemplateBase::registerCacheResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterClass">Smarty_Internal_TemplateBase::registerClass()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultConfigHandler">Smarty_Internal_TemplateBase::registerDefaultConfigHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultPluginHandler">Smarty_Internal_TemplateBase::registerDefaultPluginHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultTemplateHandler">Smarty_Internal_TemplateBase::registerDefaultTemplateHandler()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterFilter">Smarty_Internal_TemplateBase::registerFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterObject">Smarty_Internal_TemplateBase::registerObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterPlugin">Smarty_Internal_TemplateBase::registerPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterResource">Smarty_Internal_TemplateBase::registerResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterCacheResource">Smarty_Internal_TemplateBase::unregisterCacheResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterFilter">Smarty_Internal_TemplateBase::unregisterFilter()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterObject">Smarty_Internal_TemplateBase::unregisterObject()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterPlugin">Smarty_Internal_TemplateBase::unregisterPlugin()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterResource">Smarty_Internal_TemplateBase::unregisterResource()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#method_get_filter_name">Smarty_Internal_TemplateBase::_get_filter_name()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html#method__call">Smarty_Internal_TemplateBase::__call()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:59 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Smarty_Internal_TemplateBase.html
Deleted
@@ -1,1023 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_TemplateBase</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_TemplateBase</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Class with shared template methodes</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_templatebase.php.html">/libs/sysplugins/smarty_internal_templatebase.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - | - --Smarty_Internal_TemplateBase</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Template/Smarty.html">Smarty</a></td> - <td> - This is the main Smarty class - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></td> - <td> - Main class with template data structures and methods - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a></span> - <a href="#createData" title="details" class="method-name">createData</a> - ([<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#display" title="details" class="method-name">display</a> - ([<span class="var-type">string</span> <span class="var-name">$template</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - ([<span class="var-type">string</span> <span class="var-name">$template</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>], [<span class="var-type">bool</span> <span class="var-name">$display</span> = <span class="var-default">false</span>], [<span class="var-type">bool</span> <span class="var-name">$merge_tpl_vars</span> = <span class="var-default">true</span>], [<span class="var-type">bool</span> <span class="var-name">$no_output_filter</span> = <span class="var-default">false</span>]) - </div> - <div class="method-definition"> - <span class="method-result">object</span> - <a href="#getRegisteredObject" title="details" class="method-name">getRegisteredObject</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#isCached" title="details" class="method-name">isCached</a> - ([<span class="var-type">string|object </span> <span class="var-name">$template</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#loadFilter" title="details" class="method-name">loadFilter</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerCacheResource" title="details" class="method-name">registerCacheResource</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerClass" title="details" class="method-name">registerClass</a> - (<span class="var-type"></span> <span class="var-name">$class_name</span>, <span class="var-type">string</span> <span class="var-name">$class_impl</span>, <span class="var-type">string</span> <span class="var-name">$class</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerDefaultConfigHandler" title="details" class="method-name">registerDefaultConfigHandler</a> - (<span class="var-type">callable</span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerDefaultPluginHandler" title="details" class="method-name">registerDefaultPluginHandler</a> - (<span class="var-type">callable</span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerDefaultTemplateHandler" title="details" class="method-name">registerDefaultTemplateHandler</a> - (<span class="var-type">callable</span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerFilter" title="details" class="method-name">registerFilter</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">callback</span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerObject" title="details" class="method-name">registerObject</a> - (<span class="var-type"></span> <span class="var-name">$object_name</span>, <span class="var-type">object</span> <span class="var-name">$object_impl</span>, [<span class="var-type">array</span> <span class="var-name">$allowed</span> = <span class="var-default">array()</span>], [<span class="var-type">boolean</span> <span class="var-name">$smarty_args</span> = <span class="var-default">true</span>], [<span class="var-type">array</span> <span class="var-name">$block_methods</span> = <span class="var-default">array()</span>], <span class="var-type">string</span> <span class="var-name">$object</span>, <span class="var-type">array</span> <span class="var-name">$block_functs</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerPlugin" title="details" class="method-name">registerPlugin</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">callback</span> <span class="var-name">$callback</span>, [<span class="var-type">boolean</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>], [<span class="var-type">array</span> <span class="var-name">$cache_attr</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#registerResource" title="details" class="method-name">registerResource</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a>|array</span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregisterCacheResource" title="details" class="method-name">unregisterCacheResource</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregisterFilter" title="details" class="method-name">unregisterFilter</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">callback</span> <span class="var-name">$callback</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregisterObject" title="details" class="method-name">unregisterObject</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregisterPlugin" title="details" class="method-name">unregisterPlugin</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#unregisterResource" title="details" class="method-name">unregisterResource</a> - (<span class="var-type">string</span> <span class="var-name">$type</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#_get_filter_name" title="details" class="method-name">_get_filter_name</a> - (<span class="var-type">callback</span> <span class="var-name">$function_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__call" title="details" class="method-name">__call</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">array</span> <span class="var-name">$args</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodcreateData" id="createData"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">createData</span> (line <span class="line-number">386</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">creates a data object</p> - <ul class="tags"> - <li><span class="field">return:</span> data object</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a></span> - <span class="method-name"> - createData - </span> - ([<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">object</span> - <span class="var-name">$parent</span><span class="var-description">: next higher level of Smarty variables</span> </li> - </ul> - - - </div> -<a name="methoddisplay" id="display"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">display</span> (line <span class="line-number">350</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">displays a Smarty template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - display - </span> - ([<span class="var-type">string</span> <span class="var-name">$template</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template</span><span class="var-description">: the resource handle of the template file or template object</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id to be used with this template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id to be used with this template</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$parent</span><span class="var-description">: next higher level of Smarty variables</span> </li> - </ul> - - - </div> -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">32</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">fetches a rendered Smarty template</p> - <ul class="tags"> - <li><span class="field">return:</span> rendered template output</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - fetch - </span> - ([<span class="var-type">string</span> <span class="var-name">$template</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>], [<span class="var-type">bool</span> <span class="var-name">$display</span> = <span class="var-default">false</span>], [<span class="var-type">bool</span> <span class="var-name">$merge_tpl_vars</span> = <span class="var-default">true</span>], [<span class="var-type">bool</span> <span class="var-name">$no_output_filter</span> = <span class="var-default">false</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$template</span><span class="var-description">: the resource handle of the template file or template object</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id to be used with this template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id to be used with this template</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$parent</span><span class="var-description">: next higher level of Smarty variables</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$display</span><span class="var-description">: true: display, false: fetch</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$merge_tpl_vars</span><span class="var-description">: if true parent template variables merged in to local scope</span> </li> - <li> - <span class="var-type">bool</span> - <span class="var-name">$no_output_filter</span><span class="var-description">: if true do not run output filter</span> </li> - </ul> - - - </div> -<a name="methodgetRegisteredObject" id="getRegisteredObject"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getRegisteredObject</span> (line <span class="line-number">512</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">return a reference to a registered object</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if no such object is found</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">object</span> - <span class="method-name"> - getRegisteredObject - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: object name</span> </li> - </ul> - - - </div> -<a name="methodisCached" id="isCached"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">isCached</span> (line <span class="line-number">365</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">test if cache is valid</p> - <ul class="tags"> - <li><span class="field">return:</span> cache status</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - isCached - </span> - ([<span class="var-type">string|object </span> <span class="var-name">$template</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$cache_id</span> = <span class="var-default">null</span>], [<span class="var-type">mixed</span> <span class="var-name">$compile_id</span> = <span class="var-default">null</span>], [<span class="var-type">object</span> <span class="var-name">$parent</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string|object </span> - <span class="var-name">$template</span><span class="var-description">: the resource handle of the template file or template object</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$cache_id</span><span class="var-description">: cache id to be used with this template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$compile_id</span><span class="var-description">: compile id to be used with this template</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$parent</span><span class="var-description">: next higher level of Smarty variables</span> </li> - </ul> - - - </div> -<a name="methodloadFilter" id="loadFilter"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">loadFilter</span> (line <span class="line-number">645</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">load a filter of specified type and name</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - loadFilter - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: filter type</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: filter name</span> </li> - </ul> - - - </div> -<a name="methodregisterCacheResource" id="registerCacheResource"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">registerCacheResource</span> (line <span class="line-number">454</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a cache resource to cache a template's output</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerCacheResource - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of cache resource type</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> - <span class="var-name">$callback</span><span class="var-description">: instance of Smarty_CacheResource to handle output caching</span> </li> - </ul> - - - </div> -<a name="methodregisterClass" id="registerClass"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">registerClass</span> (line <span class="line-number">542</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers static classes to be used in templates</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if $class_impl does not refer to an existing class</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerClass - </span> - (<span class="var-type"></span> <span class="var-name">$class_name</span>, <span class="var-type">string</span> <span class="var-name">$class_impl</span>, <span class="var-type">string</span> <span class="var-name">$class</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$class</span><span class="var-description">: name of template class</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$class_impl</span><span class="var-description">: the referenced PHP class to register</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$class_name</span> </li> - </ul> - - - </div> -<a name="methodregisterDefaultConfigHandler" id="registerDefaultConfigHandler"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">registerDefaultConfigHandler</span> (line <span class="line-number">588</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a default template handler</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if $callback is not callable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerDefaultConfigHandler - </span> - (<span class="var-type">callable</span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$callback</span><span class="var-description">: class/method name</span> </li> - </ul> - - - </div> -<a name="methodregisterDefaultPluginHandler" id="registerDefaultPluginHandler"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">registerDefaultPluginHandler</span> (line <span class="line-number">558</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a default plugin handler</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if $callback is not callable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerDefaultPluginHandler - </span> - (<span class="var-type">callable</span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$callback</span><span class="var-description">: class/method name</span> </li> - </ul> - - - </div> -<a name="methodregisterDefaultTemplateHandler" id="registerDefaultTemplateHandler"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">registerDefaultTemplateHandler</span> (line <span class="line-number">573</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a default template handler</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if $callback is not callable</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerDefaultTemplateHandler - </span> - (<span class="var-type">callable</span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callable</span> - <span class="var-name">$callback</span><span class="var-description">: class/method name</span> </li> - </ul> - - - </div> -<a name="methodregisterFilter" id="registerFilter"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">registerFilter</span> (line <span class="line-number">603</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a filter function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerFilter - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">callback</span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: filter type</span> </li> - <li> - <span class="var-type">callback</span> - <span class="var-name">$callback</span> </li> - </ul> - - - </div> -<a name="methodregisterObject" id="registerObject"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">registerObject</span> (line <span class="line-number">482</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers object to be used in templates</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if any of the methods in $allowed or $block_methods are invalid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerObject - </span> - (<span class="var-type"></span> <span class="var-name">$object_name</span>, <span class="var-type">object</span> <span class="var-name">$object_impl</span>, [<span class="var-type">array</span> <span class="var-name">$allowed</span> = <span class="var-default">array()</span>], [<span class="var-type">boolean</span> <span class="var-name">$smarty_args</span> = <span class="var-default">true</span>], [<span class="var-type">array</span> <span class="var-name">$block_methods</span> = <span class="var-default">array()</span>], <span class="var-type">string</span> <span class="var-name">$object</span>, <span class="var-type">array</span> <span class="var-name">$block_functs</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$object</span><span class="var-description">: name of template object</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$object_impl</span><span class="var-description">: the referenced PHP object to register</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$allowed</span><span class="var-description">: list of allowed methods (empty = all)</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$smarty_args</span><span class="var-description">: smarty argument format, else traditional</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$block_methods</span><span class="var-description">: list of block-methods</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$block_functs</span><span class="var-description">: list of methods that are block format</span> </li> - <li> - <span class="var-type"></span> - <span class="var-name">$object_name</span> </li> - </ul> - - - </div> -<a name="methodregisterPlugin" id="registerPlugin"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">registerPlugin</span> (line <span class="line-number">401</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers plugin to be used in templates</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException when the plugin tag is invalid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerPlugin - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>, <span class="var-type">callback</span> <span class="var-name">$callback</span>, [<span class="var-type">boolean</span> <span class="var-name">$cacheable</span> = <span class="var-default">true</span>], [<span class="var-type">array</span> <span class="var-name">$cache_attr</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: plugin type</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of template tag</span> </li> - <li> - <span class="var-type">callback</span> - <span class="var-name">$callback</span><span class="var-description">: PHP callback to register</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$cacheable</span><span class="var-description">: if true (default) this fuction is cachable</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$cache_attr</span><span class="var-description">: caching attributes if any</span> </li> - </ul> - - - </div> -<a name="methodregisterResource" id="registerResource"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">registerResource</span> (line <span class="line-number">431</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Registers a resource to fetch a template</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - registerResource - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a>|array</span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of resource type</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a>|array</span> - <span class="var-name">$callback</span><span class="var-description">: or instance of Smarty_Resource, or array of callbacks to handle resource (deprecated)</span> </li> - </ul> - - - </div> -<a name="methodunregisterCacheResource" id="unregisterCacheResource"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregisterCacheResource</span> (line <span class="line-number">464</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters a cache resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregisterCacheResource - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of cache resource type</span> </li> - </ul> - - - </div> -<a name="methodunregisterFilter" id="unregisterFilter"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">unregisterFilter</span> (line <span class="line-number">614</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters a filter function</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregisterFilter - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">callback</span> <span class="var-name">$callback</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: filter type</span> </li> - <li> - <span class="var-type">callback</span> - <span class="var-name">$callback</span> </li> - </ul> - - - </div> -<a name="methodunregisterObject" id="unregisterObject"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregisterObject</span> (line <span class="line-number">529</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">unregister an object</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if no such object is found</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregisterObject - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: object name</span> </li> - </ul> - - - </div> -<a name="methodunregisterPlugin" id="unregisterPlugin"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">unregisterPlugin</span> (line <span class="line-number">418</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregister Plugin</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregisterPlugin - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$tag</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: of plugin</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$tag</span><span class="var-description">: name of plugin</span> </li> - </ul> - - - </div> -<a name="methodunregisterResource" id="unregisterResource"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">unregisterResource</span> (line <span class="line-number">441</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unregisters a resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - unregisterResource - </span> - (<span class="var-type">string</span> <span class="var-name">$type</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: name of resource type</span> </li> - </ul> - - - </div> -<a name="method_get_filter_name" id="_get_filter_name"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">_get_filter_name</span> (line <span class="line-number">627</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Return internal filter name</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - _get_filter_name - </span> - (<span class="var-type">callback</span> <span class="var-name">$function_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">callback</span> - <span class="var-name">$function_name</span> </li> - </ul> - - - </div> -<a name="method__call" id="__call"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__call</span> (line <span class="line-number">677</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Handle unknown class methods</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __call - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">array</span> <span class="var-name">$args</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: unknown method-name</span> </li> - <li> - <span class="var-type">array</span> - <span class="var-name">$args</span><span class="var-description">: argument array</span> </li> - </ul> - - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a></span><br> - <span class="method-name"><a href="../../Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:01 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Smarty_Variable.html
Deleted
@@ -1,257 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Variable</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Variable</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">class for the Smarty variable object</p> -<p class="description"><p>This class defines the Smarty variable object</p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_data.php.html">/libs/sysplugins/smarty_internal_data.php</a> (line <span class="field">453</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$nocache" title="details" class="var-name">$nocache</a> - </div> - <div class="var-title"> - <span class="var-type">int</span> - <a href="#$scope" title="details" class="var-name">$scope</a> - </div> - <div class="var-title"> - <span class="var-type">mixed</span> - <a href="#$value" title="details" class="var-name">$value</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Variable</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - ([<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$scope</span> = <span class="var-default">Smarty::SCOPE_LOCAL</span>]) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#__toString" title="details" class="method-name">__toString</a> - () - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$nocache" id="$nocache"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$nocache</span> - = <span class="var-default"> false</span> (line <span class="line-number">466</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">if true any output of this variable will be not cached</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$scope" id="$scope"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">int</span> - <span class="var-name">$scope</span> - = <span class="var-default"> Smarty::SCOPE_LOCAL</span> (line <span class="line-number">472</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">the scope the variable will have (local,parent or root)</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$value" id="$value"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">mixed</span> - <span class="var-name">$value</span> - = <span class="var-default"> null</span> (line <span class="line-number">460</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">template variable</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">481</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">create Smarty variable object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Variable</span> - <span class="method-name"> - __construct - </span> - ([<span class="var-type">mixed</span> <span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span> <span class="var-name">$nocache</span> = <span class="var-default">false</span>], [<span class="var-type">int</span> <span class="var-name">$scope</span> = <span class="var-default">Smarty::SCOPE_LOCAL</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: the value to assign</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">$nocache</span><span class="var-description">: if true any output of this variable will be not cached</span> </li> - <li> - <span class="var-type">int</span> - <span class="var-name">$scope</span><span class="var-description">: the scope the variable will have (local,parent or root)</span> </li> - </ul> - - - </div> -<a name="method__toString" id="__toString"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">__toString</span> (line <span class="line-number">493</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> String conversion</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - __toString - </span> - () - </div> - - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:53 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/Undefined_Smarty_Variable.html
Deleted
@@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Undefined_Smarty_Variable</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Undefined_Smarty_Variable</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">class for undefined variable object</p> -<p class="description"><p>This class defines an object for undefined variable handling</p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_data.php.html">/libs/sysplugins/smarty_internal_data.php</a> (line <span class="field">508</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#__get" title="details" class="method-name">__get</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#__toString" title="details" class="method-name">__toString</a> - () - </div> - </div> - </div> - </div> - - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__get" id="__get"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__get</span> (line <span class="line-number">516</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Returns FALSE for 'nocache' and NULL otherwise.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - __get - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span> </li> - </ul> - - - </div> -<a name="method__toString" id="__toString"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">__toString</span> (line <span class="line-number">530</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Always returns an empty string.</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - __toString - </span> - () - </div> - - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:53 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/_libs---SmartyBC.class.php.html
Deleted
@@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page SmartyBC.class.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/SmartyBC.class.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - | <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Project: Smarty: the PHP compiling template engine File: SmartyBC.class.php SVN: $Id: $</p> -<p class="description"><p>This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.</p><p>This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p><p>You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p><p>For questions, help, comments, discussion, etc., please join the Smarty mailing list. Send a blank e-mail to smarty-discussion-subscribe@googlegroups.com</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">copyright:</span> 2008 New Digital Group, Inc.</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/">http://www.smarty.net/</a></li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - | <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/SmartyBC.html">SmartyBC</a> - </td> - <td> - Smarty Backward Compatability Wrapper Class - </td> - </tr> - </table> - </div> - </div> - - - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-classes">Classes</a> - | <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmarty_php_tag" id="functionsmarty_php_tag"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="method-title">smarty_php_tag</span> (line <span class="line-number">454</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty {php}{/php} block function</p> - <ul class="tags"> - <li><span class="field">return:</span> content re-formatted</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - smarty_php_tag - </span> - (<span class="var-type">array</span> <span class="var-name">$params</span>, <span class="var-type">string</span> <span class="var-name">$content</span>, <span class="var-type">object</span> <span class="var-name">$template</span>, <span class="var-type">boolean</span> <span class="var-name">&$repeat</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">array</span> - <span class="var-name">$params</span><span class="var-description">: parameter list</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: contents of the block</span> </li> - <li> - <span class="var-type">object</span> - <span class="var-name">$template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">boolean</span> - <span class="var-name">&$repeat</span><span class="var-description">: repeat flag</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:26 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/_libs---sysplugins---smarty_internal_data.php.html
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_data.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_data.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Data</p> -<p class="description"><p>This file contains the basic classes and methodes for template and variable creation</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> - </td> - <td> - Base class with template and variable methodes - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/Smarty_Data.html">Smarty_Data</a> - </td> - <td> - class for the Smarty data object - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/Smarty_Variable.html">Smarty_Variable</a> - </td> - <td> - class for the Smarty variable object - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/Undefined_Smarty_Variable.html">Undefined_Smarty_Variable</a> - </td> - <td> - class for undefined variable object - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:52 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/_libs---sysplugins---smarty_internal_template.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_template.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_template.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Template</p> -<p class="description"><p>This file contains the Smarty template engine</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a> - </td> - <td> - Main class with template data structures and methods - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:59 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Template/_libs---sysplugins---smarty_internal_templatebase.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_templatebase.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_templatebase.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Smarty Template Base</p> -<p class="description"><p>This file contains the basic shared methodes for template handling</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a> - </td> - <td> - Class with shared template methodes - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:01 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Config_Source.html
Deleted
@@ -1,292 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Config_Source</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Config_Source</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Data Object</p> -<p class="description"><p>Meta Data Container for Config Files</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_config_source.php.html">/libs/sysplugins/smarty_config_source.php</a> (line <span class="field">22</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a> - | - --Smarty_Config_Source</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Config_Source</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> <span class="var-name">$handler</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource</span>, <span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__get" title="details" class="method-name">__get</a> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__set" title="details" class="method-name">__set</a> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$compiler_class">Smarty_Template_Source::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$components">Smarty_Template_Source::$components</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$filepath">Smarty_Template_Source::$filepath</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$handler">Smarty_Template_Source::$handler</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$name">Smarty_Template_Source::$name</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$recompiled">Smarty_Template_Source::$recompiled</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$resource">Smarty_Template_Source::$resource</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$smarty">Smarty_Template_Source::$smarty</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$template_lexer_class">Smarty_Template_Source::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$template_parser_class">Smarty_Template_Source::$template_parser_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$type">Smarty_Template_Source::$type</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$uid">Smarty_Template_Source::$uid</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#var$uncompiled">Smarty_Template_Source::$uncompiled</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">33</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">create Config Object container</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Config_Source</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> <span class="var-name">$handler</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource</span>, <span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> - <span class="var-name">$handler</span><span class="var-description">: Resource Handler this source object communicates with</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance this source object belongs to</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource</span><span class="var-description">: full config_resource</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: type of resource</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: resource name</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#method__construct">Smarty_Template_Source::__construct()</a></dt> - <dd>create Source Object container</dd> - </dl> - - </div> -<a name="method__get" id="__get"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">__get</span> (line <span class="line-number">89</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> Generic getter.</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException when the given property name is not valid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __get - </span> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$property_name</span><span class="var-description">: valid: content, timestamp, exists</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#method__get">Smarty_Template_Source::__get()</a></dt> - <dd>magic>> Generic getter.</dd> - </dl> - - </div> -<a name="method__set" id="__set"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__set</span> (line <span class="line-number">69</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> Generic setter.</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException when the given property name is not valid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __set - </span> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$property_name</span><span class="var-description">: valid: content, timestamp, exists</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: newly assigned value (not check for correct type)</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#method__set">Smarty_Template_Source::__set()</a></dt> - <dd>magic>> Generic Setter.</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#method__construct">Smarty_Template_Source::__construct()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#methodgetCompiled">Smarty_Template_Source::getCompiled()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#methodrenderUncompiled">Smarty_Template_Source::renderUncompiled()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#method__get">Smarty_Template_Source::__get()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html#method__set">Smarty_Template_Source::__set()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:35 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html
Deleted
@@ -1,272 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_Eval</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_Eval</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Eval</p> -<p class="description"><p>Implements the strings as resource for Smarty template</p><p></p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_eval.php.html">/libs/sysplugins/smarty_internal_resource_eval.php</a> (line <span class="field">21</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --<a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a> - | - --Smarty_Internal_Resource_Eval</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">65</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></dt> - <dd>Determine basename for compiled filename</dd> - </dl> - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">45</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source from $resource_name into current template object</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">30</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Recompiled::populateCompiledFilepath()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html
Deleted
@@ -1,342 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_Extends</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_Extends</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Extends</p> -<p class="description"><p>Implements the file system as resource for Smarty which {extend}s a chain of template files templates</p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_extends.php.html">/libs/sysplugins/smarty_internal_resource_extends.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Internal_Resource_Extends</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Resource-examples/Smarty_Resource_Extendsall.html">Smarty_Resource_Extendsall</a></td> - <td> - Extends All Resource - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">141</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></dt> - <dd>Determine basename for compiled filename</dd> - </dl> - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">76</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source from files into current template object</p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Resource-examples/Smarty_Resource_Extendsall.html#methodpopulate">Smarty_Resource_Extendsall::populate()</a> - : populate Source Object with meta data from Resource - </li> - </ul> - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">60</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></dt> - <dd>populate Source Object with timestamp and exists from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_File.html
Deleted
@@ -1,305 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_File</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_File</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource File</p> -<p class="description"><p>Implements the file system as resource for Smarty templates</p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_file.php.html">/libs/sysplugins/smarty_internal_resource_file.php</a> (line <span class="field">19</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Internal_Resource_File</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">79</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></dt> - <dd>Determine basename for compiled filename</dd> - </dl> - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">62</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source from file into current template object</p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></dt> - <dd>populate Source Object with timestamp and exists from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html
Deleted
@@ -1,390 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_PHP</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_PHP</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource PHP</p> -<p class="description"><p>Implements the file system as resource for PHP templates</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_php.php.html">/libs/sysplugins/smarty_internal_resource_php.php</a> (line <span class="field">13</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --<a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a> - | - --Smarty_Internal_Resource_PHP</pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$short_open_tag" title="details" class="var-name">$short_open_tag</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Internal_Resource_PHP</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - () - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#renderUncompiled" title="details" class="method-name">renderUncompiled</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$short_open_tag" id="$short_open_tag"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$short_open_tag</span> - (line <span class="line-number">18</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">container for short_open_tag directive's value before executing PHP templates</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">24</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Create a new PHP Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Internal_Resource_PHP</span> - <span class="method-name"> - __construct - </span> - () - </div> - - - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">72</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source from file into current template object</p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">36</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">59</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></dt> - <dd>populate Source Object with timestamp and exists from Resource</dd> - </dl> - - </div> -<a name="methodrenderUncompiled" id="renderUncompiled"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">renderUncompiled</span> (line <span class="line-number">88</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Render and output the template (without using the compiler)</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if template cannot be loaded or allow_php_templates is disabled</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - renderUncompiled - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodrenderUncompiled">Smarty_Resource_Uncompiled::renderUncompiled()</a></dt> - <dd>Render and output the template (without using the compiler)</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Uncompiled::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodrenderUncompiled">Smarty_Resource_Uncompiled::renderUncompiled()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:57 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html
Deleted
@@ -1,343 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_Registered</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_Registered</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Registered</p> -<p class="description"><p>Implements the registered resource for Smarty template</p></p> - <ul class="tags"> - <li><span class="field">deprecated:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_registered.php.html">/libs/sysplugins/smarty_internal_resource_registered.php</a> (line <span class="field">20</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Internal_Resource_Registered</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer|boolean</span> - <a href="#getTemplateTimestamp" title="details" class="method-name">getTemplateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">88</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></dt> - <dd>Determine basename for compiled filename</dd> - </dl> - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">72</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source by invoking the registered callback into current template object</p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodgetTemplateTimestamp" id="getTemplateTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getTemplateTimestamp</span> (line <span class="line-number">57</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Get timestamp (epoch) the template source was modified</p> - <ul class="tags"> - <li><span class="field">return:</span> timestamp (epoch) the template was modified, false if resources has no timestamp</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer|boolean</span> - <span class="method-name"> - getTemplateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">29</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">45</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></dt> - <dd>populate Source Object with timestamp and exists from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:57 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html
Deleted
@@ -1,234 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_Stream</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_Stream</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Stream</p> -<p class="description"><p>Implements the streams as resource for Smarty template</p></p> - <ul class="tags"> - <li><span class="field">link:</span> <a href="http://php.net/streams">http://php.net/streams</a></li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_stream.php.html">/libs/sysplugins/smarty_internal_resource_stream.php</a> (line <span class="field">22</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --<a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a> - | - --Smarty_Internal_Resource_Stream</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">47</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source from stream into current template object</p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">31</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Recompiled::populateCompiledFilepath()</a></span><br> - </blockquote> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:58 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Internal_Resource_String.html
Deleted
@@ -1,267 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Internal_Resource_String</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Internal_Resource_String</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource String</p> -<p class="description"><p>Implements the strings as resource for Smarty template</p><p></p></p> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_internal_resource_string.php.html">/libs/sysplugins/smarty_internal_resource_string.php</a> (line <span class="field">21</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Internal_Resource_String</pre> - - </div> -</div> - - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">68</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> -<p class="description"><p>Always returns an empty string.</p></p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></dt> - <dd>Determine basename for compiled filename</dd> - </dl> - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">46</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source from $resource_name into current template object</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">30</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:58 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Resource.html
Deleted
@@ -1,874 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> -<p class="description"><p>Base implementation for resource plugins</p></p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_resource.php.html">/libs/sysplugins/smarty_resource.php</a> (line <span class="field">18</span>) - </p> - - - <pre></pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a></td> - <td> - Smarty Internal Plugin Resource Extends - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_File.html">Smarty_Internal_Resource_File</a></td> - <td> - Smarty Internal Plugin Resource File - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html">Smarty_Internal_Resource_Registered</a></td> - <td> - Smarty Internal Plugin Resource Registered - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_String.html">Smarty_Internal_Resource_String</a></td> - <td> - Smarty Internal Plugin Resource String - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a></td> - <td> - Smarty Resource Plugin - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a></td> - <td> - Smarty Resource Plugin - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a></td> - <td> - Smarty Resource Plugin - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$compileds" title="details" class="var-name">$compileds</a> - </div> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$resources" title="details" class="var-name">$resources</a> - </div> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$sources" title="details" class="var-name">$sources</a> - </div> - <div class="var-title"> - static <span class="var-type">array</span> - <a href="#$sysplugins" title="details" class="var-name">$sysplugins</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$compiler_class" title="details" class="var-name">$compiler_class</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_lexer_class" title="details" class="var-name">$template_lexer_class</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_parser_class" title="details" class="var-name">$template_parser_class</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - <div class="method-definition"> - static <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a></span> - <a href="#config" title="details" class="method-name">config</a> - (<span class="var-type"></span> <span class="var-name">$_config</span>) - </div> - <div class="method-definition"> - static <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> - <a href="#load" title="details" class="method-name">load</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_type</span>) - </div> - <div class="method-definition"> - static <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <a href="#source" title="details" class="method-name">source</a> - ([<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>], [<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$template_resource</span> = <span class="var-default">null</span>]) - </div> - - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#buildFilepath" title="details" class="method-name">buildFilepath</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">bool</span> - <a href="#fileExists" title="details" class="method-name">fileExists</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, <span class="var-type">string</span> <span class="var-name">$file</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateCompiledFilepath" title="details" class="method-name">populateCompiledFilepath</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> <span class="var-name">$compiled</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateTimestamp" title="details" class="method-name">populateTimestamp</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$compileds" id="$compileds"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$compileds</span> - = <span class="var-default">array()</span> (line <span class="line-number">28</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache for Smarty_Template_Compiled instances</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$resources" id="$resources"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$resources</span> - = <span class="var-default">array()</span> (line <span class="line-number">33</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache for Smarty_Resource instances</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$sources" id="$sources"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$sources</span> - = <span class="var-default">array()</span> (line <span class="line-number">23</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">cache for Smarty_Template_Source instances</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$sysplugins" id="$sysplugins"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - static <span class="var-type">array</span> - <span class="var-name">$sysplugins</span> - = <span class="var-default">array(<br /> 'file' => true,<br /> 'string' => true,<br /> 'extends' => true,<br /> 'stream' => true,<br /> 'eval' => true,<br /> 'php' => true<br /> )</span> (line <span class="line-number">38</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">resource types provided by the core</p> - <ul class="tags"> - <li><span class="field">access:</span> protected</li> - </ul> - - - - - -</div> -<a name="var$compiler_class" id="$compiler_class"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$compiler_class</span> - = <span class="var-default"> 'Smarty_Internal_SmartyTemplateCompiler'</span> (line <span class="line-number">51</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of the Class to compile this resource's contents with</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_lexer_class" id="$template_lexer_class"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_lexer_class</span> - = <span class="var-default"> 'Smarty_Internal_Templatelexer'</span> (line <span class="line-number">57</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of the Class to tokenize this resource's contents with</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_parser_class" id="$template_parser_class"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_parser_class</span> - = <span class="var-default"> 'Smarty_Internal_Templateparser'</span> (line <span class="line-number">63</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of the Class to parse this resource's contents with</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> -<a name="methodconfig" id="config"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method config</span> (line <span class="line-number">441</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">initialize Config Source Object for given resource</p> - <ul class="tags"> - <li><span class="field">return:</span> Source Object</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a></span> - <span class="method-name"> - config - </span> - (<span class="var-type"></span> <span class="var-name">$_config</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">Smarty_Internal_Config</span> - <span class="var-name">$_config</span><span class="var-description">: config object</span> </li> - </ul> - - - </div> -<a name="methodload" id="load"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">static method load</span> (line <span class="line-number">325</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load Resource Handler</p> - <ul class="tags"> - <li><span class="field">return:</span> Resource Handler</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> - <span class="method-name"> - load - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource_type</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource_type</span><span class="var-description">: name of the resource</span> </li> - </ul> - - - </div> -<a name="methodsource" id="source"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">static method source</span> (line <span class="line-number">394</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">initialize Source Object for given resource</p> -<p class="description"><p>Either [$_template] or [$smarty, $template_resource] must be specified</p></p> - <ul class="tags"> - <li><span class="field">return:</span> Source Object</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - static - <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="method-name"> - source - </span> - ([<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>], [<span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span> = <span class="var-default">null</span>], [<span class="var-type">string</span> <span class="var-name">$template_resource</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: smarty object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$template_resource</span><span class="var-description">: resource identifier</span> </li> - </ul> - - - </div> - -<a name="methodbuildFilepath" id="buildFilepath"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">buildFilepath</span> (line <span class="line-number">143</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">build template filepath by traversing the template_dir array</p> - <ul class="tags"> - <li><span class="field">return:</span> fully qualified filepath</li> - <li><span class="field">throws:</span> SmartyException if default template handler is registered but not callable</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - buildFilepath - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - </div> -<a name="methodfileExists" id="fileExists"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">fileExists</span> (line <span class="line-number">300</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">test is file exists and save timestamp</p> - <ul class="tags"> - <li><span class="field">return:</span> true if file exists</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">bool</span> - <span class="method-name"> - fileExists - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, <span class="var-type">string</span> <span class="var-name">$file</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$file</span><span class="var-description">: file name</span> </li> - </ul> - - - </div> -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">313</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetBasename">Smarty_Internal_Resource_Extends::getBasename()</a> - : Determine basename for compiled filename - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodgetBasename">Smarty_Internal_Resource_File::getBasename()</a> - : Determine basename for compiled filename - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetBasename">Smarty_Internal_Resource_Registered::getBasename()</a> - : Determine basename for compiled filename - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodgetBasename">Smarty_Internal_Resource_String::getBasename()</a> - : Determine basename for compiled filename - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetBasename">Smarty_Resource_Custom::getBasename()</a> - : Determine basename for compiled filename - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodgetBasename">Smarty_Internal_Resource_Eval::getBasename()</a> - : Determine basename for compiled filename - </li> - </ul> - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">74</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source into current template object</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">abstract:</span> </li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetContent">Smarty_Internal_Resource_Extends::getContent()</a> - : Load template's source from files into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodgetContent">Smarty_Internal_Resource_File::getContent()</a> - : Load template's source from file into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetContent">Smarty_Internal_Resource_Registered::getContent()</a> - : Load template's source by invoking the registered callback into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodgetContent">Smarty_Internal_Resource_String::getContent()</a> - : Load template's source from $resource_name into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetContent">Smarty_Resource_Custom::getContent()</a> - : Load template's source into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodgetContent">Smarty_Internal_Resource_Eval::getContent()</a> - : Load template's source from $resource_name into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html#methodgetContent">Smarty_Internal_Resource_Stream::getContent()</a> - : Load template's source from stream into current template object - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodgetContent">Smarty_Internal_Resource_PHP::getContent()</a> - : Load template's source from file into current template object - </li> - </ul> - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">82</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulate">Smarty_Internal_Resource_Extends::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Resource-examples/Smarty_Resource_Extendsall.html#methodpopulate">Smarty_Resource_Extendsall::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodpopulate">Smarty_Internal_Resource_File::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodpopulate">Smarty_Internal_Resource_Registered::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodpopulate">Smarty_Internal_Resource_String::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Custom.html#methodpopulate">Smarty_Resource_Custom::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodpopulate">Smarty_Internal_Resource_Eval::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html#methodpopulate">Smarty_Internal_Resource_Stream::populate()</a> - : populate Source Object with meta data from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodpopulate">Smarty_Internal_Resource_PHP::populate()</a> - : populate Source Object with meta data from Resource - </li> - </ul> - </div> -<a name="methodpopulateCompiledFilepath" id="populateCompiledFilepath"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populateCompiledFilepath</span> (line <span class="line-number">100</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Compiled Object with compiled filepath</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateCompiledFilepath - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> <span class="var-name">$compiled</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> - <span class="var-name">$compiled</span><span class="var-description">: compiled object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Recompiled::populateCompiledFilepath()</a> - : populate Compiled Object with compiled filepath - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Uncompiled::populateCompiledFilepath()</a> - : populate compiled object with compiled filepath - </li> - </ul> - </div> -<a name="methodpopulateTimestamp" id="populateTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populateTimestamp</span> (line <span class="line-number">89</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with timestamp and exists from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateTimestamp - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulateTimestamp">Smarty_Internal_Resource_Extends::populateTimestamp()</a> - : populate Source Object with timestamp and exists from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodpopulateTimestamp">Smarty_Internal_Resource_File::populateTimestamp()</a> - : populate Source Object with timestamp and exists from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodpopulateTimestamp">Smarty_Internal_Resource_Registered::populateTimestamp()</a> - : populate Source Object with timestamp and exists from Resource - </li> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodpopulateTimestamp">Smarty_Internal_Resource_PHP::populateTimestamp()</a> - : populate Source Object with timestamp and exists from Resource - </li> - </ul> - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:07 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Resource_Custom.html
Deleted
@@ -1,400 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource_Custom</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource_Custom</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> -<p class="description"><p>Wrapper Implementation for custom resource plugins</p></p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_resource_custom.php.html">/libs/sysplugins/smarty_resource_custom.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Resource_Custom</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Resource-examples/Smarty_Resource_Mysql.html">Smarty_Resource_Mysql</a></td> - <td> - MySQL Resource - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Resource-examples/Smarty_Resource_Mysqls.html">Smarty_Resource_Mysqls</a></td> - <td> - MySQL Resource - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#fetch" title="details" class="method-name">fetch</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">&$source</span>, <span class="var-type">integer</span> <span class="var-name">&$mtime</span>) - </div> - <div class="method-definition"> - <span class="method-result">integer|boolean</span> - <a href="#fetchTimestamp" title="details" class="method-name">fetchTimestamp</a> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getBasename" title="details" class="method-name">getBasename</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">string</span> - <a href="#getContent" title="details" class="method-name">getContent</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populate" title="details" class="method-name">populate</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodfetch" id="fetch"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">fetch</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">fetch template and its modification time from data source</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - fetch - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>, <span class="var-type">string</span> <span class="var-name">&$source</span>, <span class="var-type">integer</span> <span class="var-name">&$mtime</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">&$source</span><span class="var-description">: template source</span> </li> - <li> - <span class="var-type">integer</span> - <span class="var-name">&$mtime</span><span class="var-description">: template modification timestamp (epoch)</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Resource-examples/Smarty_Resource_Mysql.html#methodfetch">Smarty_Resource_Mysql::fetch()</a> - : Fetch a template and its modification time from database - </li> - <li> - <a href="../../Resource-examples/Smarty_Resource_Mysqls.html#methodfetch">Smarty_Resource_Mysqls::fetch()</a> - : Fetch a template and its modification time from database - </li> - </ul> - </div> -<a name="methodfetchTimestamp" id="fetchTimestamp"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">fetchTimestamp</span> (line <span class="line-number">38</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Fetch template's modification timestamp from data source</p> -<p class="description"><p></p></p> - <ul class="tags"> - <li><span class="field">return:</span> timestamp (epoch) the template was modified, or false if not found</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">integer|boolean</span> - <span class="method-name"> - fetchTimestamp - </span> - (<span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: template name</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Resource-examples/Smarty_Resource_Mysql.html#methodfetchTimestamp">Smarty_Resource_Mysql::fetchTimestamp()</a> - : Fetch a template's modification time from database - </li> - </ul> - </div> -<a name="methodgetBasename" id="getBasename"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getBasename</span> (line <span class="line-number">89</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Determine basename for compiled filename</p> - <ul class="tags"> - <li><span class="field">return:</span> resource's basename</li> - <li><span class="field">access:</span> protected</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getBasename - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></dt> - <dd>Determine basename for compiled filename</dd> - </dl> - - </div> -<a name="methodgetContent" id="getContent"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">getContent</span> (line <span class="line-number">73</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load template's source into current template object</p> - <ul class="tags"> - <li><span class="field">return:</span> template source</li> - <li><span class="field">throws:</span> SmartyException if source cannot be loaded</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">string</span> - <span class="method-name"> - getContent - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></dt> - <dd>Load template's source into current template object</dd> - </dl> - - </div> -<a name="methodpopulate" id="populate"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populate</span> (line <span class="line-number">49</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Source Object with meta data from Resource</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populate - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, [<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span> = <span class="var-default">null</span>]) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></dt> - <dd>populate Source Object with meta data from Resource</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:08 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Resource_Recompiled.html
Deleted
@@ -1,220 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource_Recompiled</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource_Recompiled</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> -<p class="description"><p>Base implementation for resource plugins that don't compile cache</p></p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_resource_recompiled.php.html">/libs/sysplugins/smarty_resource_recompiled.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Resource_Recompiled</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html">Smarty_Internal_Resource_Eval</a></td> - <td> - Smarty Internal Plugin Resource Eval - </td> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html">Smarty_Internal_Resource_Stream</a></td> - <td> - Smarty Internal Plugin Resource Stream - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateCompiledFilepath" title="details" class="method-name">populateCompiledFilepath</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> <span class="var-name">$compiled</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodpopulateCompiledFilepath" id="populateCompiledFilepath"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">populateCompiledFilepath</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate Compiled Object with compiled filepath</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateCompiledFilepath - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> <span class="var-name">$compiled</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> - <span class="var-name">$compiled</span><span class="var-description">: compiled object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></dt> - <dd>populate Compiled Object with compiled filepath</dd> - </dl> - - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:09 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Resource_Uncompiled.html
Deleted
@@ -1,261 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Resource_Uncompiled</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Resource_Uncompiled</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> -<p class="description"><p>Base implementation for resource plugins that don't use the compiler</p></p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_resource_uncompiled.php.html">/libs/sysplugins/smarty_resource_uncompiled.php</a> (line <span class="field">18</span>) - </p> - - - <pre><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - | - --Smarty_Resource_Uncompiled</pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-vars">Vars</a> - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html">Smarty_Internal_Resource_PHP</a></td> - <td> - Smarty Internal Plugin Resource PHP - </td> - </tr> - </table> - </div> - </div> - - - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#populateCompiledFilepath" title="details" class="method-name">populateCompiledFilepath</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> <span class="var-name">$compiled</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#renderUncompiled" title="details" class="method-name">renderUncompiled</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <h4>Inherited Variables</h4> - <A NAME='inherited_vars'><!-- --></A> - <p>Inherited from <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a></span><br> - </span> - <span class="var-title"> - <span class="var-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a></span><br> - </span> - </blockquote> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-vars">Vars</a> - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="methodpopulateCompiledFilepath" id="populateCompiledFilepath"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">populateCompiledFilepath</span> (line <span class="line-number">35</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">populate compiled object with compiled filepath</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - populateCompiledFilepath - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> <span class="var-name">$compiled</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> - <span class="var-name">$compiled</span><span class="var-description">: compiled object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object (is ignored)</span> </li> - </ul> - - <hr class="separator" /> - <div class="notes">Redefinition of:</div> - <dl> - <dt><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></dt> - <dd>populate Compiled Object with compiled filepath</dd> - </dl> - - </div> -<a name="methodrenderUncompiled" id="renderUncompiled"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">renderUncompiled</span> (line <span class="line-number">27</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Render and output the template (without using the compiler)</p> - <ul class="tags"> - <li><span class="field">abstract:</span> </li> - <li><span class="field">throws:</span> SmartyException on failure</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - renderUncompiled - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodrenderUncompiled">Smarty_Internal_Resource_PHP::renderUncompiled()</a> - : Render and output the template (without using the compiler) - </li> - </ul> - </div> - <h4>Inherited Methods</h4> - <a name='inherited_methods'><!-- --></a> - <!-- =========== Summary =========== --> - <p>Inherited From <span class="classname"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span></p> - <blockquote> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a></span><br> - <span class="method-name"><a href="../../Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a></span><br> - </blockquote> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:09 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Template_Cached.html
Deleted
@@ -1,497 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Template_Cached</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Template_Cached</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Data Object</p> -<p class="description"><p>Cache Data Container for Template Files</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_cacheresource.php.html">/libs/sysplugins/smarty_cacheresource.php</a> (line <span class="field">199</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$cache_id" title="details" class="var-name">$cache_id</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$compile_id" title="details" class="var-name">$compile_id</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$content" title="details" class="var-name">$content</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$exists" title="details" class="var-name">$exists</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$filepath" title="details" class="var-name">$filepath</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> - <a href="#$handler" title="details" class="var-name">$handler</a> - </div> - <div class="var-title"> - <span class="var-type">bool</span> - <a href="#$is_locked" title="details" class="var-name">$is_locked</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$lock_id" title="details" class="var-name">$lock_id</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$processed" title="details" class="var-name">$processed</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <a href="#$source" title="details" class="var-name">$source</a> - </div> - <div class="var-title"> - <span class="var-type">integer</span> - <a href="#$timestamp" title="details" class="var-name">$timestamp</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$valid" title="details" class="var-name">$valid</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Template_Cached</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">boolean</span> - <a href="#write" title="details" class="method-name">write</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$cache_id" id="$cache_id"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$cache_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">252</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template Cache Id (Smarty_Internal_Template::$cache_id)</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$compile_id" id="$compile_id"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$compile_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">246</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template Compile Id (Smarty_Internal_Template::$compile_id)</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$content" id="$content"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$content</span> - = <span class="var-default"> null</span> (line <span class="line-number">210</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Content</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$exists" id="$exists"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$exists</span> - = <span class="var-default"> false</span> (line <span class="line-number">222</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Existance</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$filepath" id="$filepath"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$filepath</span> - = <span class="var-default"> false</span> (line <span class="line-number">204</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Filepath</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$handler" id="$handler"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a></span> - <span class="var-name">$handler</span> - = <span class="var-default"> null</span> (line <span class="line-number">240</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">CacheResource Handler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$is_locked" id="$is_locked"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">bool</span> - <span class="var-name">$is_locked</span> - = <span class="var-default"> false</span> (line <span class="line-number">264</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">flag that cache is locked by this instance</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$lock_id" id="$lock_id"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$lock_id</span> - = <span class="var-default"> null</span> (line <span class="line-number">258</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Id for cache locking</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$processed" id="$processed"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$processed</span> - = <span class="var-default"> false</span> (line <span class="line-number">234</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Cache was processed</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$source" id="$source"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span> - = <span class="var-default"> null</span> (line <span class="line-number">270</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$timestamp" id="$timestamp"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">integer</span> - <span class="var-name">$timestamp</span> - = <span class="var-default"> false</span> (line <span class="line-number">216</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Timestamp</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$valid" id="$valid"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$valid</span> - = <span class="var-default"> false</span> (line <span class="line-number">228</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Cache Is Valid</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">277</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">create Cached Object container</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Template_Cached</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - </div> -<a name="methodwrite" id="write"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">write</span> (line <span class="line-number">355</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Write this cache object to handler</p> - <ul class="tags"> - <li><span class="field">return:</span> success</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">boolean</span> - <span class="method-name"> - write - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>, <span class="var-type">string</span> <span class="var-name">$content</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$content</span><span class="var-description">: content to cache</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:32 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Template_Compiled.html
Deleted
@@ -1,331 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Template_Compiled</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Template_Compiled</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Data Object</p> -<p class="description"><p>Meta Data Container for Template Files</p></p> - <ul class="tags"> - <li><span class="field">property:</span> string $content: compiled content</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_resource.php.html">/libs/sysplugins/smarty_resource.php</a> (line <span class="field">691</span>) - </p> - - - <pre></pre> - - </div> -</div> - - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$exists" title="details" class="var-name">$exists</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$filepath" title="details" class="var-name">$filepath</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$isCompiled" title="details" class="var-name">$isCompiled</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$loaded" title="details" class="var-name">$loaded</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <a href="#$source" title="details" class="var-name">$source</a> - </div> - <div class="var-title"> - <span class="var-type">integer</span> - <a href="#$timestamp" title="details" class="var-name">$timestamp</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$_properties" title="details" class="var-name">$_properties</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Template_Compiled</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$exists" id="$exists"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$exists</span> - = <span class="var-default"> false</span> (line <span class="line-number">709</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiled Existance</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$filepath" id="$filepath"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$filepath</span> - = <span class="var-default"> null</span> (line <span class="line-number">697</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiled Filepath</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$isCompiled" id="$isCompiled"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$isCompiled</span> - = <span class="var-default"> false</span> (line <span class="line-number">721</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template was compiled</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$loaded" id="$loaded"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$loaded</span> - = <span class="var-default"> false</span> (line <span class="line-number">715</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiled Content Loaded</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$source" id="$source"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span> - = <span class="var-default"> null</span> (line <span class="line-number">727</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Object</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$timestamp" id="$timestamp"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">integer</span> - <span class="var-name">$timestamp</span> - = <span class="var-default"> null</span> (line <span class="line-number">703</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Compiled Timestamp</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$_properties" id="$_properties"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$_properties</span> - = <span class="var-default"> null</span> (line <span class="line-number">735</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Metadata properties</p> -<p class="description"><p>populated by Smarty_Internal_Template::decodeProperties()</p></p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">742</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">create Compiled Object container</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Template_Compiled</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> <span class="var-name">$source</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a></span> - <span class="var-name">$source</span><span class="var-description">: source object this compiled object belongs to</span> </li> - </ul> - - - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:08 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/Smarty_Template_Source.html
Deleted
@@ -1,697 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs For Class Smarty_Template_Source</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="class-name">Class Smarty_Template_Source</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-descendents">Descendents</a> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Data Object</p> -<p class="description"><p>Meta Data Container for Template Files</p></p> - <ul class="tags"> - <li><span class="field">property:</span> integer $timestamp: Source Timestamp</li> - <li><span class="field">property:</span> boolean $exists: Source Existance</li> - <li><span class="field">property:</span> boolean $template: Extended Template reference</li> - <li><span class="field">property:</span> string $content: Source Content</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - <p class="notes"> - Located in <a class="field" href="_libs---sysplugins---smarty_resource.php.html">/libs/sysplugins/smarty_resource.php</a> (line <span class="field">487</span>) - </p> - - - <pre></pre> - - </div> -</div> - - <a name="sec-descendents"></a> - <div class="info-box"> - <div class="info-box-title">Direct descendents</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Descendents</span> - | <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em"><a href="../../Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a></td> - <td> - Smarty Resource Data Object - </td> - </tr> - </table> - </div> - </div> - - - <a name="sec-var-summary"></a> - <div class="info-box"> - <div class="info-box-title">Variable Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>) - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <div class="var-summary"> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$compiler_class" title="details" class="var-name">$compiler_class</a> - </div> - <div class="var-title"> - <span class="var-type">array</span> - <a href="#$components" title="details" class="var-name">$components</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$filepath" title="details" class="var-name">$filepath</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> - <a href="#$handler" title="details" class="var-name">$handler</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$name" title="details" class="var-name">$name</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$recompiled" title="details" class="var-name">$recompiled</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$resource" title="details" class="var-name">$resource</a> - </div> - <div class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <a href="#$smarty" title="details" class="var-name">$smarty</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_lexer_class" title="details" class="var-name">$template_lexer_class</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$template_parser_class" title="details" class="var-name">$template_parser_class</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$type" title="details" class="var-name">$type</a> - </div> - <div class="var-title"> - <span class="var-type">string</span> - <a href="#$uid" title="details" class="var-name">$uid</a> - </div> - <div class="var-title"> - <span class="var-type">boolean</span> - <a href="#$uncompiled" title="details" class="var-name">$uncompiled</a> - </div> - </div> - </div> - </div> - - <a name="sec-method-summary"></a> - <div class="info-box"> - <div class="info-box-title">Method Summary</span></div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - - | - <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>) - </div> - <div class="info-box-body"> - <div class="method-summary"> - - <div class="method-definition"> - <span class="method-result">Smarty_Template_Source</span> - <a href="#__construct" title="details" class="method-name">__construct</a> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> <span class="var-name">$handler</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource</span>, <span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - <div class="method-definition"> - <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> - <a href="#getCompiled" title="details" class="method-name">getCompiled</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#renderUncompiled" title="details" class="method-name">renderUncompiled</a> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - <div class="method-definition"> - <span class="method-result">mixed</span> - <a href="#__get" title="details" class="method-name">__get</a> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>) - </div> - <div class="method-definition"> - <span class="method-result">void</span> - <a href="#__set" title="details" class="method-name">__set</a> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - </div> - </div> - </div> - - <a name="sec-vars"></a> - <div class="info-box"> - <div class="info-box-title">Variables</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>) - - - | - <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>) - - </div> - <div class="info-box-body"> - <a name="var$compiler_class" id="$compiler_class"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$compiler_class</span> - = <span class="var-default"> null</span> (line <span class="line-number">493</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of the Class to compile this resource's contents with</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$components" id="$components"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">array</span> - <span class="var-name">$components</span> - = <span class="var-default"> null</span> (line <span class="line-number">553</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">The Components an extended template is made of</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$filepath" id="$filepath"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$filepath</span> - = <span class="var-default"> null</span> (line <span class="line-number">535</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source Filepath</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$handler" id="$handler"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> - <span class="var-name">$handler</span> - = <span class="var-default"> null</span> (line <span class="line-number">559</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Resource Handler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$name" id="$name"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$name</span> - = <span class="var-default"> null</span> (line <span class="line-number">529</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Resource Name</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$recompiled" id="$recompiled"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$recompiled</span> - = <span class="var-default"> null</span> (line <span class="line-number">547</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source must be recompiled on every occasion</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$resource" id="$resource"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$resource</span> - = <span class="var-default"> null</span> (line <span class="line-number">517</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Template Resource (Smarty_Internal_Template::$template_resource)</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$smarty" id="$smarty"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span> - = <span class="var-default"> null</span> (line <span class="line-number">565</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty instance</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_lexer_class" id="$template_lexer_class"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_lexer_class</span> - = <span class="var-default"> null</span> (line <span class="line-number">499</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of the Class to tokenize this resource's contents with</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$template_parser_class" id="$template_parser_class"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$template_parser_class</span> - = <span class="var-default"> null</span> (line <span class="line-number">505</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Name of the Class to parse this resource's contents with</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$type" id="$type"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$type</span> - = <span class="var-default"> null</span> (line <span class="line-number">523</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Resource Type</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$uid" id="$uid"><!-- --></A> -<div class="evenrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">string</span> - <span class="var-name">$uid</span> - = <span class="var-default"> null</span> (line <span class="line-number">511</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Unique Template ID</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> -<a name="var$uncompiled" id="$uncompiled"><!-- --></A> -<div class="oddrow"> - - <div class="var-header"> - <span class="var-title"> - <span class="var-type">boolean</span> - <span class="var-name">$uncompiled</span> - = <span class="var-default"> null</span> (line <span class="line-number">541</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Source is bypassing compiler</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - - - - -</div> - - </div> - </div> - - <a name="sec-methods"></a> - <div class="info-box"> - <div class="info-box-title">Methods</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-descendents">Descendents</a> | - <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>) - <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>) - - </div> - <div class="info-box-body"> - <A NAME='method_detail'></A> - -<a name="method__construct" id="__construct"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">Constructor __construct</span> (line <span class="line-number">576</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">create Source Object container</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">Smarty_Template_Source</span> - <span class="method-name"> - __construct - </span> - (<span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> <span class="var-name">$handler</span>, <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> <span class="var-name">$smarty</span>, <span class="var-type">string</span> <span class="var-name">$resource</span>, <span class="var-type">string</span> <span class="var-name">$type</span>, <span class="var-type">string</span> <span class="var-name">$name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a></span> - <span class="var-name">$handler</span><span class="var-description">: Resource Handler this source object communicates with</span> </li> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty.html">Smarty</a></span> - <span class="var-name">$smarty</span><span class="var-description">: Smarty instance this source object belongs to</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$resource</span><span class="var-description">: full template_resource</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$type</span><span class="var-description">: type of resource</span> </li> - <li> - <span class="var-type">string</span> - <span class="var-name">$name</span><span class="var-description">: resource name</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Config_Source.html#method__construct">Smarty_Config_Source::__construct()</a> - : create Config Object container - </li> - </ul> - </div> -<a name="methodgetCompiled" id="getCompiled"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">getCompiled</span> (line <span class="line-number">598</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">get a Compiled Object of this source</p> - <ul class="tags"> - <li><span class="field">return:</span> compiled object</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result"><a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></span> - <span class="method-name"> - getCompiled - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template objet</span> </li> - </ul> - - - </div> -<a name="methodrenderUncompiled" id="renderUncompiled"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">renderUncompiled</span> (line <span class="line-number">626</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">render the uncompiled source</p> - <ul class="tags"> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - renderUncompiled - </span> - (<span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> <span class="var-name">$_template</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"><a href="../../Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></span> - <span class="var-name">$_template</span><span class="var-description">: template object</span> </li> - </ul> - - - </div> -<a name="method__get" id="__get"><!-- --></a> -<div class="oddrow"> - - <div class="method-header"> - <span class="method-title">__get</span> (line <span class="line-number">662</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> Generic getter.</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if $property_name is not valid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">mixed</span> - <span class="method-name"> - __get - </span> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$property_name</span><span class="var-description">: valid: timestamp, exists, content</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Config_Source.html#method__get">Smarty_Config_Source::__get()</a> - : magic>> Generic getter. - </li> - </ul> - </div> -<a name="method__set" id="__set"><!-- --></a> -<div class="evenrow"> - - <div class="method-header"> - <span class="method-title">__set</span> (line <span class="line-number">638</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">magic>> Generic Setter.</p> - <ul class="tags"> - <li><span class="field">throws:</span> SmartyException if $property_name is not valid</li> - <li><span class="field">access:</span> public</li> - </ul> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - __set - </span> - (<span class="var-type">string</span> <span class="var-name">$property_name</span>, <span class="var-type">mixed</span> <span class="var-name">$value</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type">string</span> - <span class="var-name">$property_name</span><span class="var-description">: valid: timestamp, exists, content, template</span> </li> - <li> - <span class="var-type">mixed</span> - <span class="var-name">$value</span><span class="var-description">: new value (is not checked)</span> </li> - </ul> - - - <hr class="separator" /> - <div class="notes">Redefined in descendants as:</div> - <ul class="redefinitions"> - <li> - <a href="../../Smarty/TemplateResources/Smarty_Config_Source.html#method__set">Smarty_Config_Source::__set()</a> - : magic>> Generic setter. - </li> - </ul> - </div> - - </div> - </div> - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:08 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_config_source.php.html
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_config_source.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_config_source.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin</p> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a> - </td> - <td> - Smarty Resource Data Object - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:35 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_eval.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_eval.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_eval.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Eval</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html">Smarty_Internal_Resource_Eval</a> - </td> - <td> - Smarty Internal Plugin Resource Eval - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_extends.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_extends.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_extends.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Extends</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a> - </td> - <td> - Smarty Internal Plugin Resource Extends - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_file.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_file.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_file.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource File</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_File.html">Smarty_Internal_Resource_File</a> - </td> - <td> - Smarty Internal Plugin Resource File - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:56 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_php.php.html
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_php.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_php.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html">Smarty_Internal_Resource_PHP</a> - </td> - <td> - Smarty Internal Plugin Resource PHP - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:57 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_registered.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_registered.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_registered.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Registered</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html">Smarty_Internal_Resource_Registered</a> - </td> - <td> - Smarty Internal Plugin Resource Registered - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:57 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_stream.php.html
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_stream.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_stream.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource Stream</p> -<p class="description"><p>Implements the streams as resource for Smarty template</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html">Smarty_Internal_Resource_Stream</a> - </td> - <td> - Smarty Internal Plugin Resource Stream - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:58 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_string.php.html
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_internal_resource_string.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_internal_resource_string.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin Resource String</p> - <ul class="tags"> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Internal_Resource_String.html">Smarty_Internal_Resource_String</a> - </td> - <td> - Smarty Internal Plugin Resource String - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:58 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_resource.php.html
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_resource.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_resource.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> - </td> - <td> - Smarty Resource Plugin - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a> - </td> - <td> - Smarty Resource Data Object - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a> - </td> - <td> - Smarty Resource Data Object - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:07 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_resource_custom.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_resource_custom.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_resource_custom.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> - </td> - <td> - Smarty Resource Plugin - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:08 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_resource_recompiled.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_resource_recompiled.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_resource_recompiled.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a> - </td> - <td> - Smarty Resource Plugin - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:09 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/TemplateResources/_libs---sysplugins---smarty_resource_uncompiled.php.html
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_resource_uncompiled.php</title> - <link rel="stylesheet" href="../../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_resource_uncompiled.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Resource Plugin</p> - <ul class="tags"> - <li><span class="field">author:</span> Rodney Rehm</li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../../Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a> - </td> - <td> - Smarty Resource Plugin - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:09 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/Templates
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/_libs---Smarty.class.php.html
Deleted
@@ -1,374 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page Smarty.class.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/Smarty.class.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - | <a href="#sec-includes">Includes</a> - | <a href="#sec-constants">Constants</a> - | <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Project: Smarty: the PHP compiling template engine File: Smarty.class.php SVN: $Id: Smarty.class.php 4319 2011-09-24 15:45:30Z rodneyrehm $</p> -<p class="description"><p>This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.</p><p>This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p><p>You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p><p>For questions, help, comments, discussion, etc., please join the Smarty mailing list. Send a blank e-mail to smarty-discussion-subscribe@googlegroups.com</p></p> - <ul class="tags"> - <li><span class="field">author:</span> Monte Ohrt <<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>></li> - <li><span class="field">author:</span> Uwe Tews</li> - <li><span class="field">author:</span> Rodney Rehm</li> - <li><span class="field">version:</span> 3.1-DEV</li> - <li><span class="field">copyright:</span> 2008 New Digital Group, Inc.</li> - <li><span class="field">link:</span> <a href="http://www.smarty.net/">http://www.smarty.net/</a></li> - </ul> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - | <a href="#sec-includes">Includes</a> - | <a href="#sec-constants">Constants</a> - | <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Smarty/Template/Smarty.html">Smarty</a> - </td> - <td> - This is the main Smarty class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Smarty/SmartyException.html">SmartyException</a> - </td> - <td> - Smarty exception class - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Smarty/SmartyCompilerException.html">SmartyCompilerException</a> - </td> - <td> - Smarty compiler exception class - </td> - </tr> - </table> - </div> - </div> - - <a name="sec-includes"></a> - <div class="info-box"> - <div class="info-box-title">Includes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-classes">Classes</a> - | <span class="disabled">Includes</span> - | <a href="#sec-constants">Constants</a> - | <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <a name="_SMARTY_SYSPLUGINS_DIR_smarty_internal_resource_file_php"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_file.php.html">smarty_internal_resource_file.php</a></span>) - (line <span class="line-number">93</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> -<a name="_SMARTY_SYSPLUGINS_DIR_smarty_internal_data_php"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/Template/_libs---sysplugins---smarty_internal_data.php.html">smarty_internal_data.php</a></span>) - (line <span class="line-number">89</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Load always needed external class files</p> - -</div> -<a name="_SMARTY_SYSPLUGINS_DIR_smarty_internal_cacheresource_file_php"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/Cacher/_libs---sysplugins---smarty_internal_cacheresource_file.php.html">smarty_internal_cacheresource_file.php</a></span>) - (line <span class="line-number">95</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> -<a name="_SMARTY_SYSPLUGINS_DIR_smarty_cacheresource_php"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/_libs---sysplugins---smarty_cacheresource.php.html">smarty_cacheresource.php</a></span>) - (line <span class="line-number">94</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> -<a name="_SMARTY_SYSPLUGINS_DIR_smarty_resource_php"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/TemplateResources/_libs---sysplugins---smarty_resource.php.html">smarty_resource.php</a></span>) - (line <span class="line-number">92</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> -<a name="_SMARTY_SYSPLUGINS_DIR_smarty_internal_templatebase_php"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/Template/_libs---sysplugins---smarty_internal_templatebase.php.html">smarty_internal_templatebase.php</a></span>) - (line <span class="line-number">90</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> -<a name="_SMARTY_SYSPLUGINS_DIR_smarty_internal_template_php"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="include-title"> - <span class="include-type">include_once</span> - (<span class="include-name"><a href="../Smarty/Template/_libs---sysplugins---smarty_internal_template.php.html">smarty_internal_template.php</a></span>) - (line <span class="line-number">91</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - -</div> - </div> - </div> - - <a name="sec-constants"></a> - <div class="info-box"> - <div class="info-box-title">Constants</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-classes">Classes</a> - | <a href="#sec-includes">Includes</a> - | <span class="disabled">Constants</span> - | <a href="#sec-functions">Functions</a> - </div> - <div class="info-box-body"> - <a name="defineDS"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="const-title"> - <span class="const-name">DS</span> = DIRECTORY_SEPARATOR - (line <span class="line-number">38</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">define shorthand directory separator constant</p> - - -</div> -<a name="defineSMARTY_DIR"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_DIR</span> = dirname(__FILE__).DS - (line <span class="line-number">46</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">set SMARTY_DIR to absolute path to Smarty library files.</p> -<p class="description"><p>Sets SMARTY_DIR only if user application has not already defined it.</p></p> - - -</div> -<a name="defineSMARTY_MBSTRING"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_MBSTRING</span> = function_exists('mb_strlen') - (line <span class="line-number">60</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="defineSMARTY_PLUGINS_DIR"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_PLUGINS_DIR</span> = SMARTY_DIR.'plugins'.DS - (line <span class="line-number">57</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="defineSMARTY_RESOURCE_CHAR_SET"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_RESOURCE_CHAR_SET</span> = SMARTY_MBSTRING?'UTF-8':'ISO-8859-1' - (line <span class="line-number">64</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="defineSMARTY_RESOURCE_DATE_FORMAT"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_RESOURCE_DATE_FORMAT</span> = '%b %e, %Y' - (line <span class="line-number">67</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> - - -</div> -<a name="defineSMARTY_SPL_AUTOLOAD"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_SPL_AUTOLOAD</span> = 0 - (line <span class="line-number">74</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">register the class autoloader</p> - - -</div> -<a name="defineSMARTY_SYSPLUGINS_DIR"><!-- --></a> -<div class="evenrow"> - - <div> - <span class="const-title"> - <span class="const-name">SMARTY_SYSPLUGINS_DIR</span> = SMARTY_DIR.'sysplugins'.DS - (line <span class="line-number">54</span>) - </span> - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins.</p> -<p class="description"><p>Sets SMARTY_SYSPLUGINS_DIR only if user application has not already defined it.</p></p> - - -</div> - </div> - </div> - - - <a name="sec-functions"></a> - <div class="info-box"> - <div class="info-box-title">Functions</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <a href="#sec-classes">Classes</a> - | <a href="#sec-includes">Includes</a> - | <a href="#sec-constants">Constants</a> - | <span class="disabled">Functions</span> - </div> - <div class="info-box-body"> - <a name="functionsmartyAutoload" id="functionsmartyAutoload"><!-- --></a> -<div class="oddrow"> - - <div> - <span class="method-title">smartyAutoload</span> (line <span class="line-number">1409</span>) - </div> - - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Autoloader</p> - - <div class="method-signature"> - <span class="method-result">void</span> - <span class="method-name"> - smartyAutoload - </span> - (<span class="var-type"></span> <span class="var-name">$class</span>) - </div> - - <ul class="parameters"> - <li> - <span class="var-type"></span> - <span class="var-name">$class</span> </li> - </ul> - - -</div> - </div> - </div> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:19 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/Smarty/_libs---sysplugins---smarty_cacheresource.php.html
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>Docs for page smarty_cacheresource.php</title> - <link rel="stylesheet" href="../media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="page-body"> -<h2 class="file-name">/libs/sysplugins/smarty_cacheresource.php</h2> - -<a name="sec-description"></a> -<div class="info-box"> - <div class="info-box-title">Description</div> - <div class="nav-bar"> - <span class="disabled">Description</span> | - <a href="#sec-classes">Classes</a> - </div> - <div class="info-box-body"> - <!-- ========== Info from phpDoc block ========= --> -<p class="short-description">Smarty Internal Plugin</p> - - </div> -</div> - - <a name="sec-classes"></a> - <div class="info-box"> - <div class="info-box-title">Classes</div> - <div class="nav-bar"> - <a href="#sec-description">Description</a> | - <span class="disabled">Classes</span> - </div> - <div class="info-box-body"> - <table cellpadding="2" cellspacing="0" class="class-table"> - <tr> - <th class="class-table-header">Class</th> - <th class="class-table-header">Description</th> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> - </td> - <td> - Cache Handler API - </td> - </tr> - <tr> - <td style="padding-right: 2em; vertical-align: top"> - <a href="../Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a> - </td> - <td> - Smarty Resource Data Object - </td> - </tr> - </table> - </div> - </div> - - - - - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:31 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </div></body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/blank.html
Deleted
@@ -1,13 +0,0 @@ -<html> -<head> - <title>Smarty 3.1.2</title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> -</head> -<body> -<div align="center"><h1>Smarty 3.1.2</h1></div> -<b>Welcome to Smarty!</b><br /> -<br /> -This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.1</a><br /> -</body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/classtrees_CacheResource-examples.html
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - -<!-- Start of Class Data --> -<H2> - -</H2> -<h2>Root class Smarty_CacheResource_Apc</h2> -<ul> -<li><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> <b>(Different package)</b><ul><li><a href="CacheResource-examples/Smarty_CacheResource_Apc.html">Smarty_CacheResource_Apc</a></li></ul></li></ul> - -<h2>Root class Smarty_CacheResource_Memcache</h2> -<ul> -<li><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> <b>(Different package)</b><ul><li><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html">Smarty_CacheResource_Memcache</a></li></ul></li></ul> - -<h2>Root class Smarty_CacheResource_Mysql</h2> -<ul> -<li><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a> <b>(Different package)</b><ul><li><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html">Smarty_CacheResource_Mysql</a></li></ul></li></ul> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:04 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/classtrees_Example-application.html
Deleted
@@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - -<!-- Start of Class Data --> -<H2> - -</H2> - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:04 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/classtrees_Resource-examples.html
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - -<!-- Start of Class Data --> -<H2> - -</H2> -<h2>Root class Smarty_Resource_Extendsall</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a> <b>(Different package)</b><ul><li><a href="Resource-examples/Smarty_Resource_Extendsall.html">Smarty_Resource_Extendsall</a></li></ul></li></ul> - -<h2>Root class Smarty_Resource_Mysql</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> <b>(Different package)</b><ul><li><a href="Resource-examples/Smarty_Resource_Mysql.html">Smarty_Resource_Mysql</a></li></ul></li></ul> - -<h2>Root class Smarty_Resource_Mysqls</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> <b>(Different package)</b><ul><li><a href="Resource-examples/Smarty_Resource_Mysqls.html">Smarty_Resource_Mysqls</a></li></ul></li></ul> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:04 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/classtrees_Smarty.html
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - -<!-- Start of Class Data --> -<H2> - -</H2> -<h2>Root class Smarty_CacheResource</h2> -<ul> -<li><a href="Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a><ul> -<li><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a><ul> -<li><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html">Smarty_CacheResource_Mysql</a></li></ul></li> -<li><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a><ul> -<li><a href="CacheResource-examples/Smarty_CacheResource_Apc.html">Smarty_CacheResource_Apc</a></li><li><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html">Smarty_CacheResource_Memcache</a></li></ul></li> -<li><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html">Smarty_Internal_CacheResource_File</a></li></ul></li> -</ul> - -<h2>Root class Smarty_Internal_CompileBase</h2> -<ul> -<li><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a><ul> -<li><a href="Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a><ul> -<li><a href="Smarty/Compiler/Smarty_Internal_Compile_Append.html">Smarty_Internal_Compile_Append</a></li></ul></li> -<li><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html">Smarty_Internal_Compile_Block</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html">Smarty_Internal_Compile_Blockclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html">Smarty_Internal_Compile_Break</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html">Smarty_Internal_Compile_Call</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html">Smarty_Internal_Compile_Capture</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html">Smarty_Internal_Compile_CaptureClose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html">Smarty_Internal_Compile_Config_Load</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html">Smarty_Internal_Compile_Continue</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Debug.html">Smarty_Internal_Compile_Debug</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Else.html">Smarty_Internal_Compile_Else</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Elseif.html">Smarty_Internal_Compile_Elseif</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html">Smarty_Internal_Compile_Eval</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html">Smarty_Internal_Compile_Extends</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_For.html">Smarty_Internal_Compile_For</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Forclose.html">Smarty_Internal_Compile_Forclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html">Smarty_Internal_Compile_Foreach</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html">Smarty_Internal_Compile_Foreachclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html">Smarty_Internal_Compile_Foreachelse</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Forelse.html">Smarty_Internal_Compile_Forelse</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html">Smarty_Internal_Compile_Function</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html">Smarty_Internal_Compile_Functionclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_If.html">Smarty_Internal_Compile_If</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html">Smarty_Internal_Compile_Ifclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html">Smarty_Internal_Compile_Include</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html">Smarty_Internal_Compile_Include_Php</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html">Smarty_Internal_Compile_Insert</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html">Smarty_Internal_Compile_Ldelim</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocache.html">Smarty_Internal_Compile_Nocache</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html">Smarty_Internal_Compile_Nocacheclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html">Smarty_Internal_Compile_Private_Block_Plugin</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html">Smarty_Internal_Compile_Private_Function_Plugin</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html">Smarty_Internal_Compile_Private_Modifier</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html">Smarty_Internal_Compile_Private_Object_Block_Function</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html">Smarty_Internal_Compile_Private_Object_Function</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html">Smarty_Internal_Compile_Private_Print_Expression</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html">Smarty_Internal_Compile_Private_Registered_Block</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html">Smarty_Internal_Compile_Private_Registered_Function</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html">Smarty_Internal_Compile_Private_Special_Variable</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html">Smarty_Internal_Compile_Rdelim</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html">Smarty_Internal_Compile_Section</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html">Smarty_Internal_Compile_Sectionclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html">Smarty_Internal_Compile_Sectionelse</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html">Smarty_Internal_Compile_Setfilter</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html">Smarty_Internal_Compile_Setfilterclose</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_While.html">Smarty_Internal_Compile_While</a></li><li><a href="Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html">Smarty_Internal_Compile_Whileclose</a></li></ul></li> -</ul> - -<h2>Root class Smarty_Internal_Configfilelexer</h2> -<ul> -<li><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html">Smarty_Internal_Configfilelexer</a></li></ul> - -<h2>Root class Smarty_Internal_Configfileparser</h2> -<ul> -<li><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html">Smarty_Internal_Configfileparser</a></li></ul> - -<h2>Root class Smarty_Internal_Config_File_Compiler</h2> -<ul> -<li><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html">Smarty_Internal_Config_File_Compiler</a></li></ul> - -<h2>Root class Smarty_Internal_Data</h2> -<ul> -<li><a href="Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a><ul> -<li><a href="Smarty/Template/Smarty_Data.html">Smarty_Data</a></li><li><a href="Smarty/Debug/Smarty_Internal_Debug.html">Smarty_Internal_Debug</a></li><li><a href="Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a><ul> -<li><a href="Smarty/Template/Smarty.html">Smarty</a><ul> -<li><a href="Smarty/Template/SmartyBC.html">SmartyBC</a></li></ul></li> -<li><a href="Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a></li></ul></li> -</ul></li> -</ul> - -<h2>Root class Smarty_Internal_Filter_Handler</h2> -<ul> -<li><a href="Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html">Smarty_Internal_Filter_Handler</a></li></ul> - -<h2>Root class Smarty_Internal_Function_Call_Handler</h2> -<ul> -<li><a href="Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html">Smarty_Internal_Function_Call_Handler</a></li></ul> - -<h2>Root class Smarty_Internal_Get_Include_Path</h2> -<ul> -<li><a href="Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html">Smarty_Internal_Get_Include_Path</a></li></ul> - -<h2>Root class Smarty_Internal_Nocache_Insert</h2> -<ul> -<li><a href="Smarty/Compiler/Smarty_Internal_Nocache_Insert.html">Smarty_Internal_Nocache_Insert</a></li></ul> - -<h2>Root class Smarty_Internal_TemplateCompilerBase</h2> -<ul> -<li><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a><ul> -<li><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html">Smarty_Internal_SmartyTemplateCompiler</a></li></ul></li> -</ul> - -<h2>Root class Smarty_Internal_Templatelexer</h2> -<ul> -<li><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html">Smarty_Internal_Templatelexer</a></li></ul> - -<h2>Root class Smarty_Internal_Templateparser</h2> -<ul> -<li><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html">Smarty_Internal_Templateparser</a></li></ul> - -<h2>Root class Smarty_Internal_Utility</h2> -<ul> -<li><a href="Smarty/Security/Smarty_Internal_Utility.html">Smarty_Internal_Utility</a></li></ul> - -<h2>Root class Smarty_Internal_Write_File</h2> -<ul> -<li><a href="Smarty/PluginsInternal/Smarty_Internal_Write_File.html">Smarty_Internal_Write_File</a></li></ul> - -<h2>Root class Smarty_Resource</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a><ul> -<li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a><ul> -<li><a href="Resource-examples/Smarty_Resource_Extendsall.html">Smarty_Resource_Extendsall</a></li></ul></li> -<li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html">Smarty_Internal_Resource_File</a></li><li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html">Smarty_Internal_Resource_Registered</a></li><li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html">Smarty_Internal_Resource_String</a></li><li><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a><ul> -<li><a href="Resource-examples/Smarty_Resource_Mysql.html">Smarty_Resource_Mysql</a></li><li><a href="Resource-examples/Smarty_Resource_Mysqls.html">Smarty_Resource_Mysqls</a></li></ul></li> -<li><a href="Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a><ul> -<li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html">Smarty_Internal_Resource_Eval</a></li><li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html">Smarty_Internal_Resource_Stream</a></li></ul></li> -<li><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a><ul> -<li><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html">Smarty_Internal_Resource_PHP</a></li></ul></li> -</ul></li> -</ul> - -<h2>Root class Smarty_Security</h2> -<ul> -<li><a href="Smarty/Security/Smarty_Security.html">Smarty_Security</a></li></ul> - -<h2>Root class Smarty_Template_Cached</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a></li></ul> - -<h2>Root class Smarty_Template_Compiled</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a></li></ul> - -<h2>Root class Smarty_Template_Source</h2> -<ul> -<li><a href="Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a><ul> -<li><a href="Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a></li></ul></li> -</ul> - -<h2>Root class Smarty_Variable</h2> -<ul> -<li><a href="Smarty/Template/Smarty_Variable.html">Smarty_Variable</a></li></ul> - -<h2>Root class TPC_yyStackEntry</h2> -<ul> -<li><a href="Smarty/Compiler/TPC_yyStackEntry.html">TPC_yyStackEntry</a></li></ul> - -<h2>Root class TPC_yyToken</h2> -<ul> -<li><a href="Smarty/Compiler/TPC_yyToken.html">TPC_yyToken</a></li></ul> - -<h2>Root class TP_yyStackEntry</h2> -<ul> -<li><a href="Smarty/Compiler/TP_yyStackEntry.html">TP_yyStackEntry</a></li></ul> - -<h2>Root class TP_yyToken</h2> -<ul> -<li><a href="Smarty/Compiler/TP_yyToken.html">TP_yyToken</a></li></ul> - -<h2>Root class Undefined_Smarty_Variable</h2> -<ul> -<li><a href="Smarty/Template/Undefined_Smarty_Variable.html">Undefined_Smarty_Variable</a></li></ul> - -<h2>Root class Exception</h2> -<ul> -<li><a href="Smarty/SmartyException.html">SmartyException</a><ul> -<li><a href="Smarty/SmartyCompilerException.html">SmartyCompilerException</a></li></ul></li> -</ul> - - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:04 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/elementindex.html
Deleted
@@ -1,9859 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <a name="top"></a> -<h2>Full index</h2> -<h3>Package indexes</h3> -<ul> - <li><a href="elementindex_Example-application.html">Example-application</a></li> - <li><a href="elementindex_CacheResource-examples.html">CacheResource-examples</a></li> - <li><a href="elementindex_Smarty.html">Smarty</a></li> - <li><a href="elementindex_Resource-examples.html">Resource-examples</a></li> -</ul> -<br /> -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex.html#a">a</a> - <a class="index-letter" href="elementindex.html#b">b</a> - <a class="index-letter" href="elementindex.html#c">c</a> - <a class="index-letter" href="elementindex.html#d">d</a> - <a class="index-letter" href="elementindex.html#e">e</a> - <a class="index-letter" href="elementindex.html#f">f</a> - <a class="index-letter" href="elementindex.html#g">g</a> - <a class="index-letter" href="elementindex.html#h">h</a> - <a class="index-letter" href="elementindex.html#i">i</a> - <a class="index-letter" href="elementindex.html#l">l</a> - <a class="index-letter" href="elementindex.html#m">m</a> - <a class="index-letter" href="elementindex.html#n">n</a> - <a class="index-letter" href="elementindex.html#o">o</a> - <a class="index-letter" href="elementindex.html#p">p</a> - <a class="index-letter" href="elementindex.html#r">r</a> - <a class="index-letter" href="elementindex.html#s">s</a> - <a class="index-letter" href="elementindex.html#t">t</a> - <a class="index-letter" href="elementindex.html#u">u</a> - <a class="index-letter" href="elementindex.html#v">v</a> - <a class="index-letter" href="elementindex.html#w">w</a> - <a class="index-letter" href="elementindex.html#y">y</a> - <a class="index-letter" href="elementindex.html#_">_</a> -</div> - - <a name="a"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">a</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$allowed_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allowed_modifiers">Smarty_Security::$allowed_modifiers</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of allowed modifier plugins.</div> - </dd> - <dt class="field"> - <span class="var-title">$allowed_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allowed_tags">Smarty_Security::$allowed_tags</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of allowed tags.</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_constants</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allow_constants">Smarty_Security::$allow_constants</a> in smarty_security.php</div> - <div class="index-item-description">+ flag if constants can be accessed from template</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_php_templates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$allow_php_templates">Smarty::$allow_php_templates</a> in Smarty.class.php</div> - <div class="index-item-description">controls if the php template file resource is allowed</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_relative_path</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$allow_relative_path">Smarty_Internal_Template::$allow_relative_path</a> in smarty_internal_template.php</div> - <div class="index-item-description">internal flag to allow relative path in child template blocks</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_super_globals</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allow_super_globals">Smarty_Security::$allow_super_globals</a> in smarty_security.php</div> - <div class="index-item-description">+ flag if super globals can be accessed from template</div> - </dd> - <dt class="field"> - <span class="var-title">$autoload_filters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$autoload_filters">Smarty::$autoload_filters</a> in Smarty.class.php</div> - <div class="index-item-description">autoload filter</div> - </dd> - <dt class="field"> - <span class="var-title">$auto_literal</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$auto_literal">Smarty::$auto_literal</a> in Smarty.class.php</div> - <div class="index-item-description">auto literal on delimiters with whitspace</div> - </dd> - <dt class="field"> - <span class="method-title">acquireLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="method-title">acquireLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodacquireLock">Smarty_Internal_CacheResource_File::acquireLock()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Lock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">acquireLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodacquireLock">Smarty_CacheResource_KeyValueStore::acquireLock()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Lock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">addAutoloadFilters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddAutoloadFilters">Smarty::addAutoloadFilters()</a> in Smarty.class.php</div> - <div class="index-item-description">Add autoload filters</div> - </dd> - <dt class="field"> - <span class="method-title">addConfigDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddConfigDir">Smarty::addConfigDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Add config directory(s)</div> - </dd> - <dt class="field"> - <span class="method-title">addDefaultModifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddDefaultModifiers">Smarty::addDefaultModifiers()</a> in Smarty.class.php</div> - <div class="index-item-description">Add default modifiers</div> - </dd> - <dt class="field"> - <span class="method-title">addMetaTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodaddMetaTimestamp">Smarty_CacheResource_KeyValueStore::addMetaTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Add current microtime to the beginning of $cache_content</div> - </dd> - <dt class="field"> - <span class="method-title">addPluginsDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddPluginsDir">Smarty::addPluginsDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Adds directory of plugin files</div> - </dd> - <dt class="field"> - <span class="method-title">addTemplateDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddTemplateDir">Smarty::addTemplateDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Add template directory(s)</div> - </dd> - <dt class="field"> - <span class="method-title">append</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a> in smarty_internal_data.php</div> - <div class="index-item-description">appends values to template variables</div> - </dd> - <dt class="field"> - <span class="method-title">appendByRef</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a> in smarty_internal_data.php</div> - <div class="index-item-description">appends values to template variables by reference</div> - </dd> - <dt class="field"> - <span class="method-title">append_by_ref</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodappend_by_ref">SmartyBC::append_by_ref()</a> in SmartyBC.class.php</div> - <div class="index-item-description">wrapper for append_by_ref</div> - </dd> - <dt class="field"> - <span class="method-title">assign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a> in smarty_internal_data.php</div> - <div class="index-item-description">assigns a Smarty variable</div> - </dd> - <dt class="field"> - <span class="method-title">assignByRef</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a> in smarty_internal_data.php</div> - <div class="index-item-description">assigns values to template variables by reference</div> - </dd> - <dt class="field"> - <span class="method-title">assignGlobal</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a> in smarty_internal_data.php</div> - <div class="index-item-description">assigns a global Smarty variable</div> - </dd> - <dt class="field"> - <span class="method-title">assign_by_ref</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodassign_by_ref">SmartyBC::assign_by_ref()</a> in SmartyBC.class.php</div> - <div class="index-item-description">wrapper for assign_by_ref</div> - </dd> - </dl> - <a name="b"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">b</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$block_data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$block_data">Smarty_Internal_Template::$block_data</a> in smarty_internal_template.php</div> - <div class="index-item-description">blocks for template inheritance</div> - </dd> - <dt class="field"> - <span class="method-title">buildFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a> in smarty_resource.php</div> - <div class="index-item-description">build template filepath by traversing the template_dir array</div> - </dd> - <dt class="field"> - <span class="include-title">block.textformat.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html">block.textformat.php</a> in block.textformat.php</div> - </dd> - </dl> - <a name="c"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">c</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$cache_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_dir">Smarty::$cache_dir</a> in Smarty.class.php</div> - <div class="index-item-description">cache directory</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$cache_id">Smarty_Template_Cached::$cache_id</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Template Cache Id (Smarty_Internal_Template::$cache_id)</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_id">Smarty::$cache_id</a> in Smarty.class.php</div> - <div class="index-item-description">Set this if you want different sets of cache files for the same templates.</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$cache_id">Smarty_Internal_Template::$cache_id</a> in smarty_internal_template.php</div> - <div class="index-item-description">cache_id</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_lifetime</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_lifetime">Smarty::$cache_lifetime</a> in Smarty.class.php</div> - <div class="index-item-description">cache lifetime in seconds</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_lifetime</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$cache_lifetime">Smarty_Internal_Template::$cache_lifetime</a> in smarty_internal_template.php</div> - <div class="index-item-description">cache lifetime in seconds</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_locking</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_locking">Smarty::$cache_locking</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether cache resources should emply locking mechanism</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_modified_check</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_modified_check">Smarty::$cache_modified_check</a> in Smarty.class.php</div> - <div class="index-item-description">check If-Modified-Since headers</div> - </dd> - <dt class="field"> - <span class="var-title">$caching</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$caching">Smarty_Internal_Template::$caching</a> in smarty_internal_template.php</div> - <div class="index-item-description">caching enabled</div> - </dd> - <dt class="field"> - <span class="var-title">$caching</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$caching">Smarty::$caching</a> in Smarty.class.php</div> - <div class="index-item-description">caching enabled</div> - </dd> - <dt class="field"> - <span class="var-title">$caching_type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$caching_type">Smarty::$caching_type</a> in Smarty.class.php</div> - <div class="index-item-description">caching type</div> - </dd> - <dt class="field"> - <span class="var-title">$compileds</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a> in smarty_resource.php</div> - <div class="index-item-description">cache for Smarty_Template_Compiled instances</div> - </dd> - <dt class="field"> - <span class="var-title">$compiler_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$compiler_class">Smarty_Template_Source::$compiler_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to compile this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$compiler_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to compile this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_check</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_check">Smarty::$compile_check</a> in Smarty.class.php</div> - <div class="index-item-description">check template for modifications?</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_dir">Smarty::$compile_dir</a> in Smarty.class.php</div> - <div class="index-item-description">compile directory</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$compile_id">Smarty_Internal_Template::$compile_id</a> in smarty_internal_template.php</div> - <div class="index-item-description">$compile_id</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$compile_id">Smarty_Template_Cached::$compile_id</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Template Compile Id (Smarty_Internal_Template::$compile_id)</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_id">Smarty::$compile_id</a> in Smarty.class.php</div> - <div class="index-item-description">Set this if you want different sets of compiled files for the same templates.</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_locking</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_locking">Smarty::$compile_locking</a> in Smarty.class.php</div> - <div class="index-item-description">locking concurrent compiles</div> - </dd> - <dt class="field"> - <span class="var-title">$components</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$components">Smarty_Template_Source::$components</a> in smarty_resource.php</div> - <div class="index-item-description">The Components an extended template is made of</div> - </dd> - <dt class="field"> - <span class="var-title">$config</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$config">Smarty_Internal_Config_File_Compiler::$config</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$config_booleanize</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_booleanize">Smarty::$config_booleanize</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether config values of on/true/yes and off/false/no get converted to boolean.</div> - </dd> - <dt class="field"> - <span class="var-title">$config_data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$config_data">Smarty_Internal_Config_File_Compiler::$config_data</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Compiled config data sections and variables</div> - </dd> - <dt class="field"> - <span class="var-title">$config_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_dir">Smarty::$config_dir</a> in Smarty.class.php</div> - <div class="index-item-description">config directory</div> - </dd> - <dt class="field"> - <span class="var-title">$config_overwrite</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_overwrite">Smarty::$config_overwrite</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether variables with the same name overwrite each other.</div> - </dd> - <dt class="field"> - <span class="var-title">$config_read_hidden</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_read_hidden">Smarty::$config_read_hidden</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether hidden config sections/vars are read from the file.</div> - </dd> - <dt class="field"> - <span class="var-title">$config_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a> in smarty_internal_data.php</div> - <div class="index-item-description">configuration settings</div> - </dd> - <dt class="field"> - <span class="var-title">$content</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$content">Smarty_Template_Cached::$content</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Content</div> - </dd> - <dt class="field"> - <span class="var-title">$contents</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$contents">Smarty_CacheResource_KeyValueStore::$contents</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">cache for contents</div> - </dd> - <dt class="field"> - <span class="var-title">$counter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$counter">Smarty_Internal_Configfilelexer::$counter</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$counter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$counter">Smarty_Internal_Templatelexer::$counter</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - CACHING_LIFETIME_CURRENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCACHING_LIFETIME_CURRENT">Smarty::CACHING_LIFETIME_CURRENT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - CACHING_LIFETIME_SAVED - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCACHING_LIFETIME_SAVED">Smarty::CACHING_LIFETIME_SAVED</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - CACHING_NOCACHE_CODE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#constCACHING_NOCACHE_CODE">Smarty_Internal_Compile_Include::CACHING_NOCACHE_CODE</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">caching mode to create nocache code but no cache file</div> - </dd> - <dt class="field"> - CACHING_OFF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCACHING_OFF">Smarty::CACHING_OFF</a> in Smarty.class.php</div> - <div class="index-item-description">define caching modes</div> - </dd> - <dt class="field"> - <span class="method-title">call</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html#methodcall">Smarty_Internal_Function_Call_Handler::call()</a> in smarty_internal_function_call_handler.php</div> - <div class="index-item-description">This function handles calls to template functions defined by {function} It does create a PHP function at the first call</div> - </dd> - <dt class="field"> - <span class="method-title">callTagCompiler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcallTagCompiler">Smarty_Internal_TemplateCompilerBase::callTagCompiler()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">lazy loads internal compile plugin for tag and calls the compile methode</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodclear">Smarty_Internal_CacheResource_File::clear()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclear">Smarty_CacheResource_Custom::clear()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodclearAll">Smarty_Internal_CacheResource_File::clearAll()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclearAll">Smarty_CacheResource_Custom::clearAll()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAllAssign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a> in smarty_internal_data.php</div> - <div class="index-item-description">clear all the assigned template variables.</div> - </dd> - <dt class="field"> - <span class="method-title">clearAllCache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodclearAllCache">Smarty::clearAllCache()</a> in Smarty.class.php</div> - <div class="index-item-description">Empty cache folder</div> - </dd> - <dt class="field"> - <span class="method-title">clearAssign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a> in smarty_internal_data.php</div> - <div class="index-item-description">clear the given assigned template variable.</div> - </dd> - <dt class="field"> - <span class="method-title">clearCache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodclearCache">Smarty::clearCache()</a> in Smarty.class.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clearCompiledTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodclearCompiledTemplate">Smarty::clearCompiledTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">Delete compiled template file</div> - </dd> - <dt class="field"> - <span class="method-title">clearCompiledTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodclearCompiledTemplate">Smarty_Internal_Utility::clearCompiledTemplate()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Delete compiled template file</div> - </dd> - <dt class="field"> - <span class="method-title">clearConfig</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Deassigns a single or all config variables</div> - </dd> - <dt class="field"> - <span class="method-title">clear_all_assign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_all_assign">SmartyBC::clear_all_assign()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear all the assigned template variables.</div> - </dd> - <dt class="field"> - <span class="method-title">clear_all_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_all_cache">SmartyBC::clear_all_cache()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear the entire contents of cache (all templates)</div> - </dd> - <dt class="field"> - <span class="method-title">clear_assign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_assign">SmartyBC::clear_assign()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear the given assigned template variable.</div> - </dd> - <dt class="field"> - <span class="method-title">clear_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_cache">SmartyBC::clear_cache()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear cached content for the given template and cache id</div> - </dd> - <dt class="field"> - <span class="method-title">clear_compiled_tpl</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_compiled_tpl">SmartyBC::clear_compiled_tpl()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clears compiled version of specified template resource, or all compiled template files if one is not specified.</div> - </dd> - <dt class="field"> - <span class="method-title">clear_config</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_config">SmartyBC::clear_config()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear configuration values</div> - </dd> - <dt class="field"> - <span class="method-title">closeTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Pop closing tag</div> - </dd> - <dt class="field"> - COMMENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constCOMMENT">Smarty_Internal_Configfilelexer::COMMENT</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html#methodcompile">Smarty_Internal_Compile_Private_Object_Function::compile()</a> in smarty_internal_compile_private_object_function.php</div> - <div class="index-item-description">Compiles code for the execution of function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#methodcompile">Smarty_Internal_Compile_Private_Print_Expression::compile()</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Compiles code for gererting output from any expression</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html#methodcompile">Smarty_Internal_Compile_Private_Registered_Block::compile()</a> in smarty_internal_compile_private_registered_block.php</div> - <div class="index-item-description">Compiles code for the execution of a block function</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html#methodcompile">Smarty_Internal_Compile_Private_Object_Block_Function::compile()</a> in smarty_internal_compile_private_object_block_function.php</div> - <div class="index-item-description">Compiles code for the execution of block plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocache.html#methodcompile">Smarty_Internal_Compile_Nocache::compile()</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Compiles code for the {nocache} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html#methodcompile">Smarty_Internal_Compile_Nocacheclose::compile()</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Compiles code for the {/nocache} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html#methodcompile">Smarty_Internal_Compile_Private_Block_Plugin::compile()</a> in smarty_internal_compile_private_block_plugin.php</div> - <div class="index-item-description">Compiles code for the execution of block plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#methodcompile">Smarty_Internal_Compile_Private_Function_Plugin::compile()</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Compiles code for the execution of function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html#methodcompile">Smarty_Internal_Compile_Private_Modifier::compile()</a> in smarty_internal_compile_private_modifier.php</div> - <div class="index-item-description">Compiles code for modifier execution</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html#methodcompile">Smarty_Internal_Compile_Private_Registered_Function::compile()</a> in smarty_internal_compile_private_registered_function.php</div> - <div class="index-item-description">Compiles code for the execution of a registered function</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html#methodcompile">Smarty_Internal_Compile_Private_Special_Variable::compile()</a> in smarty_internal_compile_private_special_variable.php</div> - <div class="index-item-description">Compiles code for the speical $smarty variables</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_While.html#methodcompile">Smarty_Internal_Compile_While::compile()</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Compiles code for the {while} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html#methodcompile">Smarty_Internal_Compile_Whileclose::compile()</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Compiles code for the {/while} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Nocache_Insert.html#methodcompile">Smarty_Internal_Nocache_Insert::compile()</a> in smarty_internal_nocache_insert.php</div> - <div class="index-item-description">Compiles code for the {insert} tag into cache file</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html#methodcompile">Smarty_Internal_Compile_Setfilterclose::compile()</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Compiles code for the {/setfilter} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html#methodcompile">Smarty_Internal_Compile_Setfilter::compile()</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Compiles code for setfilter tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#methodcompile">Smarty_Internal_Compile_Section::compile()</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Compiles code for the {section} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html#methodcompile">Smarty_Internal_Compile_Sectionclose::compile()</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Compiles code for the {/section} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html#methodcompile">Smarty_Internal_Compile_Sectionelse::compile()</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Compiles code for the {sectionelse} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html#methodcompile">Smarty_Internal_Compile_Rdelim::compile()</a> in smarty_internal_compile_rdelim.php</div> - <div class="index-item-description">Compiles code for the {rdelim} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forelse.html#methodcompile">Smarty_Internal_Compile_Forelse::compile()</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Compiles code for the {forelse} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#methodcompile">Smarty_Internal_Compile_Config_Load::compile()</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Compiles code for the {config_load} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html#methodcompile">Smarty_Internal_Compile_CaptureClose::compile()</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Compiles code for the {/capture} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html#methodcompile">Smarty_Internal_Compile_Continue::compile()</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Compiles code for the {continue} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Debug.html#methodcompile">Smarty_Internal_Compile_Debug::compile()</a> in smarty_internal_compile_debug.php</div> - <div class="index-item-description">Compiles code for the {debug} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html#methodcompile">Smarty_Internal_Compile_Extends::compile()</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Compiles code for the {extends} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#methodcompile">Smarty_Internal_Compile_Eval::compile()</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Compiles code for the {eval} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html#methodcompile">Smarty_Internal_Compile_Capture::compile()</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Compiles code for the {capture} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#methodcompile">Smarty_Internal_Compile_Call::compile()</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Compiles the calls of user defined tags defined by {function}</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Assign.html#methodcompile">Smarty_Internal_Compile_Assign::compile()</a> in smarty_internal_compile_assign.php</div> - <div class="index-item-description">Compiles code for the {assign} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Append.html#methodcompile">Smarty_Internal_Compile_Append::compile()</a> in smarty_internal_compile_append.php</div> - <div class="index-item-description">Compiles code for the {append} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#methodcompile">Smarty_Internal_Compile_Block::compile()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Compiles code for the {block} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html#methodcompile">Smarty_Internal_Compile_Blockclose::compile()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Compiles code for the {/block} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html#methodcompile">Smarty_Internal_Compile_Ldelim::compile()</a> in smarty_internal_compile_ldelim.php</div> - <div class="index-item-description">Compiles code for the {ldelim} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_For.html#methodcompile">Smarty_Internal_Compile_For::compile()</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Compiles code for the {for} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html#methodcompile">Smarty_Internal_Compile_Break::compile()</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Compiles code for the {break} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html#methodcompile">Smarty_Internal_Compile_Ifclose::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {/if} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_If.html#methodcompile">Smarty_Internal_Compile_If::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {if} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#methodcompile">Smarty_Internal_Compile_Include::compile()</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Compiles code for the {include} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#methodcompile">Smarty_Internal_Compile_Include_Php::compile()</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Compiles code for the {include_php} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forclose.html#methodcompile">Smarty_Internal_Compile_Forclose::compile()</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Compiles code for the {/for} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#methodcompile">Smarty_Internal_Compile_Insert::compile()</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Compiles code for the {insert} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Else.html#methodcompile">Smarty_Internal_Compile_Else::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {else} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Elseif.html#methodcompile">Smarty_Internal_Compile_Elseif::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {elseif} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html#methodcompile">Smarty_Internal_Compile_Foreachclose::compile()</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Compiles code for the {/foreach} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#methodcompile">Smarty_Internal_Compile_Function::compile()</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Compiles code for the {function} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html#methodcompile">Smarty_Internal_Compile_Functionclose::compile()</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Compiles code for the {/function} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#methodcompile">Smarty_Internal_Compile_Foreach::compile()</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Compiles code for the {foreach} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html#methodcompile">Smarty_Internal_Compile_Foreachelse::compile()</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Compiles code for the {foreachelse} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllConfig</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodcompileAllConfig">Smarty_Internal_Utility::compileAllConfig()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Compile all config files</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllConfig</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodcompileAllConfig">Smarty::compileAllConfig()</a> in Smarty.class.php</div> - <div class="index-item-description">Compile all config files</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllTemplates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodcompileAllTemplates">Smarty::compileAllTemplates()</a> in Smarty.class.php</div> - <div class="index-item-description">Compile all template files</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllTemplates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodcompileAllTemplates">Smarty_Internal_Utility::compileAllTemplates()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Compile all template files</div> - </dd> - <dt class="field"> - COMPILECHECK_CACHEMISS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCOMPILECHECK_CACHEMISS">Smarty::COMPILECHECK_CACHEMISS</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - COMPILECHECK_OFF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCOMPILECHECK_OFF">Smarty::COMPILECHECK_OFF</a> in Smarty.class.php</div> - <div class="index-item-description">define compile check modes</div> - </dd> - <dt class="field"> - COMPILECHECK_ON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCOMPILECHECK_ON">Smarty::COMPILECHECK_ON</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="method-title">compileChildBlock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#methodcompileChildBlock">Smarty_Internal_Compile_Block::compileChildBlock()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Compile saved child block source</div> - </dd> - <dt class="field"> - <span class="method-title">compileSource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#methodcompileSource">Smarty_Internal_Config_File_Compiler::compileSource()</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Method to compile a Smarty template.</div> - </dd> - <dt class="field"> - <span class="method-title">compileTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcompileTag">Smarty_Internal_TemplateCompilerBase::compileTag()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Compile Tag</div> - </dd> - <dt class="field"> - <span class="method-title">compileTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcompileTemplate">Smarty_Internal_TemplateCompilerBase::compileTemplate()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Method to compile a Smarty template</div> - </dd> - <dt class="field"> - <span class="method-title">compileTemplateSource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodcompileTemplateSource">Smarty_Internal_Template::compileTemplateSource()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Compiles the template</div> - </dd> - <dt class="field"> - <span class="method-title">compileVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodcompileVariable">Smarty_Internal_Templateparser::compileVariable()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">config</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a> in smarty_resource.php</div> - <div class="index-item-description">initialize Config Source Object for given resource</div> - </dd> - <dt class="field"> - <span class="method-title">configLoad</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a> in smarty_internal_data.php</div> - <div class="index-item-description">load a config file, optionally load just selected sections</div> - </dd> - <dt class="field"> - <span class="method-title">config_load</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodconfig_load">SmartyBC::config_load()</a> in SmartyBC.class.php</div> - <div class="index-item-description">load configuration values</div> - </dd> - <dt class="field"> - <span class="method-title">createData</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodcreateData">Smarty_Internal_TemplateBase::createData()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">creates a data object</div> - </dd> - <dt class="field"> - <span class="method-title">createLocalArrayVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodcreateLocalArrayVariable">Smarty_Internal_Template::createLocalArrayVariable()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to create a local Smarty variable for array assignments</div> - </dd> - <dt class="field"> - <span class="method-title">createTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodcreateTemplate">Smarty::createTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">creates a template object</div> - </dd> - <dt class="field"> - <span class="method-title">createTemplateCodeFrame</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodcreateTemplateCodeFrame">Smarty_Internal_Template::createTemplateCodeFrame()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Create code frame for compiled and cached templates</div> - </dd> - <dt class="field"> - <span class="include-title">cacheresource.apc.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/_demo---plugins---cacheresource.apc.php.html">cacheresource.apc.php</a> in cacheresource.apc.php</div> - </dd> - <dt class="field"> - <span class="include-title">cacheresource.memcache.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/_demo---plugins---cacheresource.memcache.php.html">cacheresource.memcache.php</a> in cacheresource.memcache.php</div> - </dd> - <dt class="field"> - <span class="include-title">cacheresource.mysql.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/_demo---plugins---cacheresource.mysql.php.html">cacheresource.mysql.php</a> in cacheresource.mysql.php</div> - </dd> - </dl> - <a name="d"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">d</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$data">Smarty_Internal_Configfilelexer::$data</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$data">Smarty_Internal_Templatelexer::$data</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$db</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#var$db">Smarty_Resource_Mysql::$db</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$db</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$db">Smarty_CacheResource_Mysql::$db</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$db</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#var$db">Smarty_Resource_Mysqls::$db</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="var-title">$debugging</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$debugging">Smarty::$debugging</a> in Smarty.class.php</div> - <div class="index-item-description">debug mode</div> - </dd> - <dt class="field"> - <span class="var-title">$debugging_ctrl</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$debugging_ctrl">Smarty::$debugging_ctrl</a> in Smarty.class.php</div> - <div class="index-item-description">This determines if debugging is enable-able from the browser.</div> - </dd> - <dt class="field"> - <span class="var-title">$debug_tpl</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$debug_tpl">Smarty::$debug_tpl</a> in Smarty.class.php</div> - <div class="index-item-description">Path of debug template.</div> - </dd> - <dt class="field"> - <span class="var-title">$default_config_handler_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_config_handler_func">Smarty::$default_config_handler_func</a> in Smarty.class.php</div> - <div class="index-item-description">default config handler</div> - </dd> - <dt class="field"> - <span class="var-title">$default_config_type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_config_type">Smarty::$default_config_type</a> in Smarty.class.php</div> - <div class="index-item-description">config type</div> - </dd> - <dt class="field"> - <span class="var-title">$default_handler_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$default_handler_plugins">Smarty_Internal_TemplateCompilerBase::$default_handler_plugins</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">plugins loaded by default plugin handler</div> - </dd> - <dt class="field"> - <span class="var-title">$default_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_modifiers">Smarty::$default_modifiers</a> in Smarty.class.php</div> - <div class="index-item-description">default modifier</div> - </dd> - <dt class="field"> - <span class="var-title">$default_modifier_list</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$default_modifier_list">Smarty_Internal_TemplateCompilerBase::$default_modifier_list</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">saved preprocessed modifier list</div> - </dd> - <dt class="field"> - <span class="var-title">$default_plugin_handler_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_plugin_handler_func">Smarty::$default_plugin_handler_func</a> in Smarty.class.php</div> - <div class="index-item-description">default plugin handler</div> - </dd> - <dt class="field"> - <span class="var-title">$default_resource_type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_resource_type">Smarty::$default_resource_type</a> in Smarty.class.php</div> - <div class="index-item-description">resource type used if none given</div> - </dd> - <dt class="field"> - <span class="var-title">$default_template_handler_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_template_handler_func">Smarty::$default_template_handler_func</a> in Smarty.class.php</div> - <div class="index-item-description">default template handler</div> - </dd> - <dt class="field"> - <span class="var-title">$direct_access_security</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$direct_access_security">Smarty::$direct_access_security</a> in Smarty.class.php</div> - <div class="index-item-description">Should compiled-templates be prevented from being called directly?</div> - </dd> - <dt class="field"> - <span class="var-title">$disabled_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$disabled_modifiers">Smarty_Security::$disabled_modifiers</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of disabled modifier plugins.</div> - </dd> - <dt class="field"> - <span class="var-title">$disabled_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$disabled_tags">Smarty_Security::$disabled_tags</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of disabled tags.</div> - </dd> - <dt class="field"> - <span class="method-title">decodeProperties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methoddecodeProperties">Smarty_Internal_Template::decodeProperties()</a> in smarty_internal_template.php</div> - <div class="index-item-description">This function is executed automatically when a compiled or cached template file is included</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methoddelete">Smarty_CacheResource_Custom::delete()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Delete content from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methoddelete">Smarty_CacheResource_Mysql::delete()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">Delete content from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methoddelete">Smarty_CacheResource_Memcache::delete()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Remove values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methoddelete">Smarty_CacheResource_Apc::delete()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Remove values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Remove values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">disableSecurity</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methoddisableSecurity">Smarty::disableSecurity()</a> in Smarty.class.php</div> - <div class="index-item-description">Disable security</div> - </dd> - <dt class="field"> - <span class="method-title">display</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methoddisplay">Smarty_Internal_TemplateBase::display()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">displays a Smarty template</div> - </dd> - <dt class="field"> - <span class="method-title">display_debug</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methoddisplay_debug">Smarty_Internal_Debug::display_debug()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Opens a window for the Smarty Debugging Consol and display the data</div> - </dd> - <dt class="field"> - <span class="method-title">doCompile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#methoddoCompile">Smarty_Internal_SmartyTemplateCompiler::doCompile()</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Methode to compile a Smarty template</div> - </dd> - <dt class="field"> - <span class="method-title">doParse</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methoddoParse">Smarty_Internal_Templateparser::doParse()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">doParse</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methoddoParse">Smarty_Internal_Configfileparser::doParse()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - DOUBLEQUOTEDSTRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constDOUBLEQUOTEDSTRING">Smarty_Internal_Templatelexer::DOUBLEQUOTEDSTRING</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="const-title">DS</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineDS">DS</a> in Smarty.class.php</div> - <div class="index-item-description">define shorthand directory separator constant</div> - </dd> - </dl> - <a name="e"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">e</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$error_reporting</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$error_reporting">Smarty::$error_reporting</a> in Smarty.class.php</div> - <div class="index-item-description">When set, smarty uses this value as error_reporting-level.</div> - </dd> - <dt class="field"> - <span class="var-title">$error_unassigned</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$error_unassigned">Smarty::$error_unassigned</a> in Smarty.class.php</div> - <div class="index-item-description">display error on not assigned variables</div> - </dd> - <dt class="field"> - <span class="var-title">$escape_html</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$escape_html">Smarty::$escape_html</a> in Smarty.class.php</div> - <div class="index-item-description">autoescape variable output</div> - </dd> - <dt class="field"> - <span class="var-title">$exists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$exists">Smarty_Template_Cached::$exists</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Existance</div> - </dd> - <dt class="field"> - <span class="var-title">$exists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$exists">Smarty_Template_Compiled::$exists</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Existance</div> - </dd> - <dt class="field"> - <span class="method-title">enableSecurity</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodenableSecurity">Smarty::enableSecurity()</a> in Smarty.class.php</div> - <div class="index-item-description">Loads security class and enables security</div> - </dd> - <dt class="field"> - <span class="method-title">end_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodend_cache">Smarty_Internal_Debug::end_cache()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">End logging of cache time</div> - </dd> - <dt class="field"> - <span class="method-title">end_compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodend_compile">Smarty_Internal_Debug::end_compile()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">End logging of compile time</div> - </dd> - <dt class="field"> - <span class="method-title">end_render</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodend_render">Smarty_Internal_Debug::end_render()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">End logging of compile time</div> - </dd> - <dt class="field"> - Err1 - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constErr1">Smarty_Internal_Templateparser::Err1</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - Err2 - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constErr2">Smarty_Internal_Templateparser::Err2</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - Err3 - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constErr3">Smarty_Internal_Templateparser::Err3</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">escape_end_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodescape_end_tag">Smarty_Internal_Templateparser::escape_end_tag()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">escape_start_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodescape_start_tag">Smarty_Internal_Templateparser::escape_start_tag()</a> in smarty_internal_templateparser.php</div> - </dd> - </dl> - <a name="f"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">f</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#var$fetch">Smarty_Resource_Mysql::$fetch</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#var$fetch">Smarty_Resource_Mysqls::$fetch</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="var-title">$fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$fetch">Smarty_CacheResource_Mysql::$fetch</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$fetchTimestamp">Smarty_CacheResource_Mysql::$fetchTimestamp</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$filepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$filepath">Smarty_Template_Compiled::$filepath</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Filepath</div> - </dd> - <dt class="field"> - <span class="var-title">$filepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$filepath">Smarty_Template_Source::$filepath</a> in smarty_resource.php</div> - <div class="index-item-description">Source Filepath</div> - </dd> - <dt class="field"> - <span class="var-title">$filepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$filepath">Smarty_Template_Cached::$filepath</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Filepath</div> - </dd> - <dt class="field"> - <span class="var-title">$forceNocache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$forceNocache">Smarty_Internal_TemplateCompilerBase::$forceNocache</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">force compilation of complete template as nocache</div> - </dd> - <dt class="field"> - <span class="var-title">$force_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$force_cache">Smarty::$force_cache</a> in Smarty.class.php</div> - <div class="index-item-description">force cache file creation</div> - </dd> - <dt class="field"> - <span class="var-title">$force_compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$force_compile">Smarty::$force_compile</a> in Smarty.class.php</div> - <div class="index-item-description">force template compiling?</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#methodfetch">Smarty_Resource_Mysqls::fetch()</a> in resource.mysqls.php</div> - <div class="index-item-description">Fetch a template and its modification time from database</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#methodfetch">Smarty_Resource_Mysql::fetch()</a> in resource.mysql.php</div> - <div class="index-item-description">Fetch a template and its modification time from database</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodfetch">Smarty_CacheResource_KeyValueStore::fetch()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Fetch and prepare a cache object.</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methodfetch">Smarty_CacheResource_Mysql::fetch()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">fetch cached content and its modification time from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetch">Smarty_Resource_Custom::fetch()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">fetch template and its modification time from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodfetch">Smarty_Internal_TemplateBase::fetch()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">fetches a rendered Smarty template</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetch">Smarty_CacheResource_Custom::fetch()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">fetch cached content and its modification time from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetchTimestamp">Smarty_CacheResource_Custom::fetchTimestamp()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Fetch cached content's modification timestamp from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetchTimestamp">Smarty_Resource_Custom::fetchTimestamp()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Fetch template's modification timestamp from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#methodfetchTimestamp">Smarty_Resource_Mysql::fetchTimestamp()</a> in resource.mysql.php</div> - <div class="index-item-description">Fetch a template's modification time from database</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methodfetchTimestamp">Smarty_CacheResource_Mysql::fetchTimestamp()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">Fetch cached content's modification timestamp from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fileExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a> in smarty_resource.php</div> - <div class="index-item-description">test is file exists and save timestamp</div> - </dd> - <dt class="field"> - FILTER_OUTPUT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_OUTPUT">Smarty::FILTER_OUTPUT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - FILTER_POST - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_POST">Smarty::FILTER_POST</a> in Smarty.class.php</div> - <div class="index-item-description">filter types</div> - </dd> - <dt class="field"> - FILTER_PRE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_PRE">Smarty::FILTER_PRE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - FILTER_VARIABLE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_VARIABLE">Smarty::FILTER_VARIABLE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="include-title">function.counter.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.counter.php.html">function.counter.php</a> in function.counter.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.cycle.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html">function.cycle.php</a> in function.cycle.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.fetch.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html">function.fetch.php</a> in function.fetch.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_checkboxes.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html">function.html_checkboxes.php</a> in function.html_checkboxes.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_image.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html">function.html_image.php</a> in function.html_image.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_options.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html">function.html_options.php</a> in function.html_options.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_radios.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html">function.html_radios.php</a> in function.html_radios.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_select_date.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html">function.html_select_date.php</a> in function.html_select_date.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_select_time.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html">function.html_select_time.php</a> in function.html_select_time.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_table.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html">function.html_table.php</a> in function.html_table.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.mailto.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html">function.mailto.php</a> in function.mailto.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.math.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.math.php.html">function.math.php</a> in function.math.php</div> - </dd> - </dl> - <a name="g"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">g</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$get_used_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$get_used_tags">Smarty::$get_used_tags</a> in Smarty.class.php</div> - <div class="index-item-description">Internal flag for getTags()</div> - </dd> - <dt class="field"> - <span class="var-title">$global_tpl_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$global_tpl_vars">Smarty::$global_tpl_vars</a> in Smarty.class.php</div> - <div class="index-item-description">assigned global tpl vars</div> - </dd> - <dt class="field"> - <span class="method-title">getAttributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">This function checks if the attributes passed are valid</div> - </dd> - <dt class="field"> - <span class="method-title">getAutoloadFilters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetAutoloadFilters">Smarty::getAutoloadFilters()</a> in Smarty.class.php</div> - <div class="index-item-description">Get autoload filters</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodgetBasename">Smarty_Internal_Resource_Eval::getBasename()</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a> in smarty_resource.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetBasename">Smarty_Resource_Custom::getBasename()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodgetBasename">Smarty_Internal_Resource_File::getBasename()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetBasename">Smarty_Internal_Resource_Extends::getBasename()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodgetBasename">Smarty_Internal_Resource_String::getBasename()</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetBasename">Smarty_Internal_Resource_Registered::getBasename()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Return cached content</div> - </dd> - <dt class="field"> - <span class="method-title">getCacheDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetCacheDir">Smarty::getCacheDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get cache directory</div> - </dd> - <dt class="field"> - <span class="method-title">getCompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#methodgetCompiled">Smarty_Template_Source::getCompiled()</a> in smarty_resource.php</div> - <div class="index-item-description">get a Compiled Object of this source</div> - </dd> - <dt class="field"> - <span class="method-title">getCompileDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetCompileDir">Smarty::getCompileDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get compiled directory</div> - </dd> - <dt class="field"> - <span class="method-title">getConfigDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetConfigDir">Smarty::getConfigDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get config directory</div> - </dd> - <dt class="field"> - <span class="method-title">getConfigVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a> in smarty_internal_data.php</div> - <div class="index-item-description">gets a config variable</div> - </dd> - <dt class="field"> - <span class="method-title">getConfigVars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Returns a single or all config variables</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodgetContent">Smarty_Internal_Resource_Eval::getContent()</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">Load template's source from $resource_name into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetContent">Smarty_Internal_Resource_Registered::getContent()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Load template's source by invoking the registered callback into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetContent">Smarty_Internal_Resource_Extends::getContent()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">Load template's source from files into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodgetContent">Smarty_Internal_Resource_File::getContent()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">Load template's source from file into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodgetContent">Smarty_Internal_Resource_PHP::getContent()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Load template's source from file into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a> in smarty_resource.php</div> - <div class="index-item-description">Load template's source into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodgetContent">Smarty_Internal_Resource_String::getContent()</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">Load template's source from $resource_name into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetContent">Smarty_Resource_Custom::getContent()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Load template's source into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html#methodgetContent">Smarty_Internal_Resource_Stream::getContent()</a> in smarty_internal_resource_stream.php</div> - <div class="index-item-description">Load template's source from stream into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getDebugTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetDebugTemplate">Smarty::getDebugTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">return name of debugging template</div> - </dd> - <dt class="field"> - <span class="method-title">getDefaultModifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetDefaultModifiers">Smarty::getDefaultModifiers()</a> in Smarty.class.php</div> - <div class="index-item-description">Get default modifiers</div> - </dd> - <dt class="field"> - <span class="method-title">getGlobal</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetGlobal">Smarty::getGlobal()</a> in Smarty.class.php</div> - <div class="index-item-description">Returns a single or all global variables</div> - </dd> - <dt class="field"> - <span class="method-title">getIncludePath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html#methodgetIncludePath">Smarty_Internal_Get_Include_Path::getIncludePath()</a> in smarty_internal_get_include_path.php</div> - <div class="index-item-description">Return full file path from PHP include_path</div> - </dd> - <dt class="field"> - <span class="method-title">getLatestInvalidationTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetLatestInvalidationTimestamp">Smarty_CacheResource_KeyValueStore::getLatestInvalidationTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Determine the latest timestamp known to the invalidation chain</div> - </dd> - <dt class="field"> - <span class="method-title">getMetaTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetMetaTimestamp">Smarty_CacheResource_KeyValueStore::getMetaTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Extract the timestamp the $content was cached</div> - </dd> - <dt class="field"> - <span class="method-title">getPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodgetPlugin">Smarty_Internal_TemplateCompilerBase::getPlugin()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Check for plugins and return function name</div> - </dd> - <dt class="field"> - <span class="method-title">getPluginFromDefaultHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodgetPluginFromDefaultHandler">Smarty_Internal_TemplateCompilerBase::getPluginFromDefaultHandler()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Check for plugins by default plugin handler</div> - </dd> - <dt class="field"> - <span class="method-title">getPluginsDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetPluginsDir">Smarty::getPluginsDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get plugin directories</div> - </dd> - <dt class="field"> - <span class="method-title">getRegisteredObject</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodgetRegisteredObject">Smarty_Internal_TemplateBase::getRegisteredObject()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">return a reference to a registered object</div> - </dd> - <dt class="field"> - <span class="method-title">getScope</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodgetScope">Smarty_Internal_Template::getScope()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to get pointer to template variable array of requested scope</div> - </dd> - <dt class="field"> - <span class="method-title">getScopePointer</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodgetScopePointer">Smarty_Internal_Template::getScopePointer()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Get parent or root of template parent chain</div> - </dd> - <dt class="field"> - <span class="method-title">getStreamVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a> in smarty_internal_data.php</div> - <div class="index-item-description">gets a stream variable</div> - </dd> - <dt class="field"> - <span class="method-title">getSubTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodgetSubTemplate">Smarty_Internal_Template::getSubTemplate()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to get subtemplate content</div> - </dd> - <dt class="field"> - <span class="method-title">getTags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodgetTags">Smarty_Internal_Utility::getTags()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Return array of tag/attributes of all tags used by an template</div> - </dd> - <dt class="field"> - <span class="method-title">getTags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetTags">Smarty::getTags()</a> in Smarty.class.php</div> - <div class="index-item-description">Return array of tag/attributes of all tags used by an template</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetTemplateDir">Smarty::getTemplateDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get template directories</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetTemplateTimestamp">Smarty_Internal_Resource_Registered::getTemplateTimestamp()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Get timestamp (epoch) the template source was modified</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateUid</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetTemplateUid">Smarty_CacheResource_KeyValueStore::getTemplateUid()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Get template's unique ID</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateVars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Returns a single or all template variables</div> - </dd> - <dt class="field"> - <span class="method-title">getVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a> in smarty_internal_data.php</div> - <div class="index-item-description">gets the object of a Smarty variable</div> - </dd> - <dt class="field"> - <span class="method-title">get_config_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodget_config_vars">SmartyBC::get_config_vars()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Returns an array containing config variables</div> - </dd> - <dt class="field"> - <span class="method-title">get_debug_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodget_debug_vars">Smarty_Internal_Debug::get_debug_vars()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Recursively gets variables from all template/data scopes</div> - </dd> - <dt class="field"> - <span class="method-title">get_registered_object</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodget_registered_object">SmartyBC::get_registered_object()</a> in SmartyBC.class.php</div> - <div class="index-item-description">return a reference to a registered object</div> - </dd> - <dt class="field"> - <span class="method-title">get_template_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodget_template_vars">SmartyBC::get_template_vars()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Returns an array containing template variables</div> - </dd> - </dl> - <a name="h"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">h</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$handler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$handler">Smarty_Template_Source::$handler</a> in smarty_resource.php</div> - <div class="index-item-description">Resource Handler</div> - </dd> - <dt class="field"> - <span class="var-title">$handler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$handler">Smarty_Template_Cached::$handler</a> in smarty_cacheresource.php</div> - <div class="index-item-description">CacheResource Handler</div> - </dd> - <dt class="field"> - <span class="var-title">$has_nocache_code</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$has_nocache_code">Smarty_Internal_Template::$has_nocache_code</a> in smarty_internal_template.php</div> - <div class="index-item-description">flag if template does contain nocache code sections</div> - </dd> - <dt class="field"> - <span class="method-title">hasLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodhasLock">Smarty_CacheResource_KeyValueStore::hasLock()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Check is cache is locked for this template</div> - </dd> - <dt class="field"> - <span class="method-title">hasLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="method-title">hasLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodhasLock">Smarty_Internal_CacheResource_File::hasLock()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Check is cache is locked for this template</div> - </dd> - </dl> - <a name="i"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">i</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$inheritance</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$inheritance">Smarty_Internal_TemplateCompilerBase::$inheritance</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">flag when compiling {block}</div> - </dd> - <dt class="field"> - <span class="var-title">$isCompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$isCompiled">Smarty_Template_Compiled::$isCompiled</a> in smarty_resource.php</div> - <div class="index-item-description">Template was compiled</div> - </dd> - <dt class="field"> - <span class="var-title">$is_locked</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$is_locked">Smarty_Template_Cached::$is_locked</a> in smarty_cacheresource.php</div> - <div class="index-item-description">flag that cache is locked by this instance</div> - </dd> - <dt class="field"> - <span class="include-title">index.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Example-application/_demo---index.php.html">index.php</a> in index.php</div> - </dd> - <dt class="field"> - <span class="method-title">instance</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodinstance">Smarty_Internal_Configfileparser::instance()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">instance</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodinstance">Smarty_Internal_Configfilelexer::instance()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">invalidate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodinvalidate">Smarty_CacheResource_KeyValueStore::invalidate()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Invalidate CacheID</div> - </dd> - <dt class="field"> - <span class="method-title">invalidLoadedCache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Invalid Loaded Cache Files</div> - </dd> - <dt class="field"> - <span class="method-title">isCached</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodisCached">Smarty_Internal_TemplateBase::isCached()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">test if cache is valid</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedModifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedModifier">Smarty_Security::isTrustedModifier()</a> in smarty_security.php</div> - <div class="index-item-description">Check if modifier plugin is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedPHPDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedPHPDir">Smarty_Security::isTrustedPHPDir()</a> in smarty_security.php</div> - <div class="index-item-description">Check if directory of file resource is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedPhpFunction</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedPhpFunction">Smarty_Security::isTrustedPhpFunction()</a> in smarty_security.php</div> - <div class="index-item-description">Check if PHP function is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedPhpModifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedPhpModifier">Smarty_Security::isTrustedPhpModifier()</a> in smarty_security.php</div> - <div class="index-item-description">Check if PHP modifier is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedResourceDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedResourceDir">Smarty_Security::isTrustedResourceDir()</a> in smarty_security.php</div> - <div class="index-item-description">Check if directory of file resource is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedStaticClass</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedStaticClass">Smarty_Security::isTrustedStaticClass()</a> in smarty_security.php</div> - <div class="index-item-description">Check if static class is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedStream</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedStream">Smarty_Security::isTrustedStream()</a> in smarty_security.php</div> - <div class="index-item-description">Check if stream is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedTag">Smarty_Security::isTrustedTag()</a> in smarty_security.php</div> - <div class="index-item-description">Check if tag is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">is_cached</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodis_cached">SmartyBC::is_cached()</a> in SmartyBC.class.php</div> - <div class="index-item-description">test to see if valid cache exists for this template</div> - </dd> - </dl> - <a name="l"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">l</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$left_delimiter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$left_delimiter">Smarty::$left_delimiter</a> in Smarty.class.php</div> - <div class="index-item-description">template left-delimiter</div> - </dd> - <dt class="field"> - <span class="var-title">$lex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$lex">Smarty_Internal_Config_File_Compiler::$lex</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Lexer object</div> - </dd> - <dt class="field"> - <span class="var-title">$lex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$lex">Smarty_Internal_SmartyTemplateCompiler::$lex</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Lexer object</div> - </dd> - <dt class="field"> - <span class="var-title">$lexer_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$lexer_class">Smarty_Internal_SmartyTemplateCompiler::$lexer_class</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Lexer class name</div> - </dd> - <dt class="field"> - <span class="var-title">$line</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$line">Smarty_Internal_Templatelexer::$line</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$line</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$line">Smarty_Internal_Configfilelexer::$line</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$loaded</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$loaded">Smarty_Template_Compiled::$loaded</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Content Loaded</div> - </dd> - <dt class="field"> - <span class="var-title">$local_var</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$local_var">Smarty_Internal_SmartyTemplateCompiler::$local_var</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">array of vars which can be compiled in local scope</div> - </dd> - <dt class="field"> - <span class="var-title">$locking_timeout</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$locking_timeout">Smarty::$locking_timeout</a> in Smarty.class.php</div> - <div class="index-item-description">seconds to wait for acquiring a lock before ignoring the write lock</div> - </dd> - <dt class="field"> - <span class="var-title">$lock_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$lock_id">Smarty_Template_Cached::$lock_id</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Id for cache locking</div> - </dd> - <dt class="field"> - <span class="method-title">listInvalidationKeys</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodlistInvalidationKeys">Smarty_CacheResource_KeyValueStore::listInvalidationKeys()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Translate a CacheID into the list of applicable InvalidationKeys.</div> - </dd> - <dt class="field"> - LITERAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constLITERAL">Smarty_Internal_Templatelexer::LITERAL</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">load</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a> in smarty_resource.php</div> - <div class="index-item-description">Load Resource Handler</div> - </dd> - <dt class="field"> - <span class="method-title">load</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Load Cache Resource Handler</div> - </dd> - <dt class="field"> - <span class="method-title">loadFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodloadFilter">Smarty_Internal_TemplateBase::loadFilter()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">load a filter of specified type and name</div> - </dd> - <dt class="field"> - <span class="method-title">loadPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodloadPlugin">Smarty::loadPlugin()</a> in Smarty.class.php</div> - <div class="index-item-description">Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php</div> - </dd> - <dt class="field"> - <span class="method-title">load_filter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodload_filter">SmartyBC::load_filter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">load a filter of specified type and name</div> - </dd> - <dt class="field"> - <span class="method-title">locked</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a> in smarty_cacheresource.php</div> - </dd> - </dl> - <a name="m"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">m</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$major</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html#var$major">TPC_yyStackEntry::$major</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$major</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html#var$major">TP_yyStackEntry::$major</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$memcache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#var$memcache">Smarty_CacheResource_Memcache::$memcache</a> in cacheresource.memcache.php</div> - <div class="index-item-description">memcache instance</div> - </dd> - <dt class="field"> - <span class="var-title">$merged_templates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$merged_templates">Smarty_Internal_TemplateCompilerBase::$merged_templates</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">merged templates</div> - </dd> - <dt class="field"> - <span class="var-title">$merged_templates_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$merged_templates_func">Smarty::$merged_templates_func</a> in Smarty.class.php</div> - <div class="index-item-description">Saved parameter of merged templates during compilation</div> - </dd> - <dt class="field"> - <span class="var-title">$merge_compiled_includes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$merge_compiled_includes">Smarty::$merge_compiled_includes</a> in Smarty.class.php</div> - <div class="index-item-description">merge compiled includes</div> - </dd> - <dt class="field"> - <span class="var-title">$metadata</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#var$metadata">TP_yyToken::$metadata</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$metadata</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#var$metadata">TPC_yyToken::$metadata</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$minor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html#var$minor">TP_yyStackEntry::$minor</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$minor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html#var$minor">TPC_yyStackEntry::$minor</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$modifier_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$modifier_plugins">Smarty_Internal_TemplateCompilerBase::$modifier_plugins</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">flags for used modifier plugins</div> - </dd> - <dt class="field"> - <span class="var-title">$mtime</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#var$mtime">Smarty_Resource_Mysql::$mtime</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$mustCompile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$mustCompile">Smarty_Internal_Template::$mustCompile</a> in smarty_internal_template.php</div> - <div class="index-item-description">flag if compiled template is invalid and must be (re)compiled</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.capitalize.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html">modifier.capitalize.php</a> in modifier.capitalize.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.date_format.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html">modifier.date_format.php</a> in modifier.date_format.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.debug_print_var.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html">modifier.debug_print_var.php</a> in modifier.debug_print_var.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.escape.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html">modifier.escape.php</a> in modifier.escape.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.regex_replace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html">modifier.regex_replace.php</a> in modifier.regex_replace.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.replace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html">modifier.replace.php</a> in modifier.replace.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.spacify.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html">modifier.spacify.php</a> in modifier.spacify.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.truncate.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html">modifier.truncate.php</a> in modifier.truncate.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.cat.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html">modifiercompiler.cat.php</a> in modifiercompiler.cat.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_characters.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html">modifiercompiler.count_characters.php</a> in modifiercompiler.count_characters.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_paragraphs.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html">modifiercompiler.count_paragraphs.php</a> in modifiercompiler.count_paragraphs.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_sentences.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html">modifiercompiler.count_sentences.php</a> in modifiercompiler.count_sentences.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_words.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html">modifiercompiler.count_words.php</a> in modifiercompiler.count_words.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.default.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html">modifiercompiler.default.php</a> in modifiercompiler.default.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.escape.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html">modifiercompiler.escape.php</a> in modifiercompiler.escape.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.from_charset.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html">modifiercompiler.from_charset.php</a> in modifiercompiler.from_charset.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.indent.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html">modifiercompiler.indent.php</a> in modifiercompiler.indent.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.lower.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html">modifiercompiler.lower.php</a> in modifiercompiler.lower.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.noprint.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html">modifiercompiler.noprint.php</a> in modifiercompiler.noprint.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.string_format.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html">modifiercompiler.string_format.php</a> in modifiercompiler.string_format.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.strip.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html">modifiercompiler.strip.php</a> in modifiercompiler.strip.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.strip_tags.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html">modifiercompiler.strip_tags.php</a> in modifiercompiler.strip_tags.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.to_charset.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html">modifiercompiler.to_charset.php</a> in modifiercompiler.to_charset.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.unescape.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html">modifiercompiler.unescape.php</a> in modifiercompiler.unescape.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.upper.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html">modifiercompiler.upper.php</a> in modifiercompiler.upper.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.wordwrap.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html">modifiercompiler.wordwrap.php</a> in modifiercompiler.wordwrap.php</div> - </dd> - <dt class="field"> - <span class="method-title">mustCompile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodmustCompile">Smarty_Internal_Template::mustCompile()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Returns if the current template must be compiled by the Smarty compiler</div> - </dd> - <dt class="field"> - <span class="method-title">muteExpectedErrors</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodmuteExpectedErrors">Smarty::muteExpectedErrors()</a> in Smarty.class.php</div> - <div class="index-item-description">Enable error handler to mute expected messages</div> - </dd> - <dt class="field"> - <span class="method-title">mutingErrorHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodmutingErrorHandler">Smarty::mutingErrorHandler()</a> in Smarty.class.php</div> - <div class="index-item-description">Error Handler to mute expected messages</div> - </dd> - </dl> - <a name="n"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">n</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$name</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$name">Smarty_Template_Source::$name</a> in smarty_resource.php</div> - <div class="index-item-description">Resource Name</div> - </dd> - <dt class="field"> - <span class="var-title">$nocache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#var$nocache">Smarty_Variable::$nocache</a> in smarty_internal_data.php</div> - <div class="index-item-description">if true any output of this variable will be not cached</div> - </dd> - <dt class="field"> - <span class="var-title">$node</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$node">Smarty_Internal_Configfilelexer::$node</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$node</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$node">Smarty_Internal_Templatelexer::$node</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - NAKED_STRING_VALUE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constNAKED_STRING_VALUE">Smarty_Internal_Configfilelexer::NAKED_STRING_VALUE</a> in smarty_internal_configfilelexer.php</div> - </dd> - </dl> - <a name="o"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">o</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#var$optional_attributes">Smarty_Internal_Compile_Private_Function_Plugin::$optional_attributes</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html#var$optional_attributes">Smarty_Internal_Compile_Private_Block_Plugin::$optional_attributes</a> in smarty_internal_compile_private_block_plugin.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$optional_attributes">Smarty_Internal_Compile_Include_Php::$optional_attributes</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$optional_attributes">Smarty_Internal_Compile_Include::$optional_attributes</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Object_Block_Function::$optional_attributes</a> in smarty_internal_compile_private_object_block_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Object_Function::$optional_attributes</a> in smarty_internal_compile_private_object_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$optional_attributes">Smarty_Internal_Compile_Section::$optional_attributes</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Registered_Function::$optional_attributes</a> in smarty_internal_compile_private_registered_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html#var$optional_attributes">Smarty_Internal_Compile_Private_Registered_Block::$optional_attributes</a> in smarty_internal_compile_private_registered_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#var$optional_attributes">Smarty_Internal_Compile_Private_Print_Expression::$optional_attributes</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$optional_attributes">Smarty_Internal_Compile_Function::$optional_attributes</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$optional_attributes">Smarty_Internal_Compile_Insert::$optional_attributes</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html#var$optional_attributes">Smarty_Internal_Compile_Capture::$optional_attributes</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$optional_attributes">Smarty_Internal_Compile_Call::$optional_attributes</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html#var$optional_attributes">Smarty_Internal_Compile_Break::$optional_attributes</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$optional_attributes">Smarty_Internal_Compile_Config_Load::$optional_attributes</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$optional_attributes">Smarty_Internal_Compile_Foreach::$optional_attributes</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$optional_attributes">Smarty_Internal_Compile_Eval::$optional_attributes</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html#var$optional_attributes">Smarty_Internal_Compile_Continue::$optional_attributes</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$optional_attributes">Smarty_Internal_Compile_Block::$optional_attributes</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$option_flags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Array of names of valid option flags</div> - </dd> - <dt class="field"> - <span class="var-title">$option_flags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#var$option_flags">Smarty_Internal_Compile_Private_Print_Expression::$option_flags</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$option_flags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$option_flags">Smarty_Internal_Compile_Include::$option_flags</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="include-title">outputfilter.trimwhitespace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html">outputfilter.trimwhitespace.php</a> in outputfilter.trimwhitespace.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetExists">TP_yyToken::offsetExists()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetExists">TPC_yyToken::offsetExists()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetGet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetGet">TPC_yyToken::offsetGet()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetGet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetGet">TP_yyToken::offsetGet()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetSet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetSet">TP_yyToken::offsetSet()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetSet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetSet">TPC_yyToken::offsetSet()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetUnset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetUnset">TPC_yyToken::offsetUnset()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetUnset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetUnset">TP_yyToken::offsetUnset()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">openTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Push opening tag name on stack</div> - </dd> - </dl> - <a name="p"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">p</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$parent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a> in smarty_internal_data.php</div> - <div class="index-item-description">parent template (if any)</div> - </dd> - <dt class="field"> - <span class="var-title">$parser</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$parser">Smarty_Internal_SmartyTemplateCompiler::$parser</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Parser object</div> - </dd> - <dt class="field"> - <span class="var-title">$parser</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$parser">Smarty_Internal_Config_File_Compiler::$parser</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Parser object</div> - </dd> - <dt class="field"> - <span class="var-title">$parser_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$parser_class">Smarty_Internal_SmartyTemplateCompiler::$parser_class</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Parser class name</div> - </dd> - <dt class="field"> - <span class="var-title">$php_functions</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$php_functions">Smarty_Security::$php_functions</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted PHP functions.</div> - </dd> - <dt class="field"> - <span class="var-title">$php_handling</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$php_handling">Smarty::$php_handling</a> in Smarty.class.php</div> - <div class="index-item-description">controls handling of PHP-blocks</div> - </dd> - <dt class="field"> - <span class="var-title">$php_handling</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$php_handling">Smarty_Security::$php_handling</a> in smarty_security.php</div> - <div class="index-item-description">This determines how Smarty handles "<?php ... ?>" tags in templates.</div> - </dd> - <dt class="field"> - <span class="var-title">$php_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$php_modifiers">Smarty_Security::$php_modifiers</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted PHP modifers.</div> - </dd> - <dt class="field"> - <span class="var-title">$plugins_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$plugins_dir">Smarty::$plugins_dir</a> in Smarty.class.php</div> - <div class="index-item-description">plugins directory</div> - </dd> - <dt class="field"> - <span class="var-title">$plugin_search_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$plugin_search_order">Smarty::$plugin_search_order</a> in Smarty.class.php</div> - <div class="index-item-description">plugin search order</div> - </dd> - <dt class="field"> - <span class="var-title">$processed</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$processed">Smarty_Template_Cached::$processed</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Cache was processed</div> - </dd> - <dt class="field"> - <span class="var-title">$properties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$properties">Smarty::$properties</a> in Smarty.class.php</div> - <div class="index-item-description">internal config properties</div> - </dd> - <dt class="field"> - <span class="var-title">$properties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$properties">Smarty_Internal_Template::$properties</a> in smarty_internal_template.php</div> - <div class="index-item-description">special compiled and cached template properties</div> - </dd> - <dt class="field"> - PHP_ALLOW - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_ALLOW">Smarty::PHP_ALLOW</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PHP_PASSTHRU - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_PASSTHRU">Smarty::PHP_PASSTHRU</a> in Smarty.class.php</div> - <div class="index-item-description">modes for handling of "<?php ... ?>" tags in templates.</div> - </dd> - <dt class="field"> - PHP_QUOTE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_QUOTE">Smarty::PHP_QUOTE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PHP_REMOVE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_REMOVE">Smarty::PHP_REMOVE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_BLOCK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_BLOCK">Smarty::PLUGIN_BLOCK</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_COMPILER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_COMPILER">Smarty::PLUGIN_COMPILER</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_FUNCTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_FUNCTION">Smarty::PLUGIN_FUNCTION</a> in Smarty.class.php</div> - <div class="index-item-description">plugin types</div> - </dd> - <dt class="field"> - PLUGIN_MODIFIER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_MODIFIER">Smarty::PLUGIN_MODIFIER</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_MODIFIERCOMPILER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_MODIFIERCOMPILER">Smarty::PLUGIN_MODIFIERCOMPILER</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html#methodpopulate">Smarty_Internal_Resource_Stream::populate()</a> in smarty_internal_resource_stream.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodpopulate">Smarty_Internal_Resource_Registered::populate()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodpopulate">Smarty_Internal_Resource_Eval::populate()</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulate">Smarty_Internal_Resource_Extends::populate()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodpopulate">Smarty_Internal_Resource_File::populate()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodpopulate">Smarty_Internal_Resource_PHP::populate()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodpopulate">Smarty_Internal_Resource_String::populate()</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulate">Smarty_CacheResource_Custom::populate()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a> in smarty_resource.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Extendsall.html#methodpopulate">Smarty_Resource_Extendsall::populate()</a> in resource.extendsall.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodpopulate">Smarty_Resource_Custom::populate()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulate">Smarty_CacheResource_KeyValueStore::populate()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodpopulate">Smarty_Internal_CacheResource_File::populate()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateCompiledFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a> in smarty_resource.php</div> - <div class="index-item-description">populate Compiled Object with compiled filepath</div> - </dd> - <dt class="field"> - <span class="method-title">populateCompiledFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Uncompiled::populateCompiledFilepath()</a> in smarty_resource_uncompiled.php</div> - <div class="index-item-description">populate compiled object with compiled filepath</div> - </dd> - <dt class="field"> - <span class="method-title">populateCompiledFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Recompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Recompiled::populateCompiledFilepath()</a> in smarty_resource_recompiled.php</div> - <div class="index-item-description">populate Compiled Object with compiled filepath</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a> in smarty_resource.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodpopulateTimestamp">Smarty_Internal_Resource_Registered::populateTimestamp()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodpopulateTimestamp">Smarty_Internal_CacheResource_File::populateTimestamp()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulateTimestamp">Smarty_CacheResource_KeyValueStore::populateTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodpopulateTimestamp">Smarty_Internal_Resource_PHP::populateTimestamp()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulateTimestamp">Smarty_CacheResource_Custom::populateTimestamp()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulateTimestamp">Smarty_Internal_Resource_Extends::populateTimestamp()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodpopulateTimestamp">Smarty_Internal_Resource_File::populateTimestamp()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">PrintTrace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodPrintTrace">Smarty_Internal_Templateparser::PrintTrace()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">PrintTrace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodPrintTrace">Smarty_Internal_Configfileparser::PrintTrace()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Read the cached template and process header</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodprocess">Smarty_CacheResource_Custom::process()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Read the cached template and process the header</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodprocess">Smarty_Internal_CacheResource_File::process()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Read the cached template and process its header</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodprocess">Smarty_CacheResource_KeyValueStore::process()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Read the cached template and process the header</div> - </dd> - <dt class="field"> - <span class="method-title">processNocacheCode</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodprocessNocacheCode">Smarty_Internal_TemplateCompilerBase::processNocacheCode()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Inject inline code for nocache template sections</div> - </dd> - <dt class="field"> - <span class="method-title">purge</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methodpurge">Smarty_CacheResource_Memcache::purge()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Remove *all* values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">purge</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methodpurge">Smarty_CacheResource_Apc::purge()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Remove *all* values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">purge</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Remove *all* values from cache</div> - </dd> - </dl> - <a name="r"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">r</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$recompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$recompiled">Smarty_Template_Source::$recompiled</a> in smarty_resource.php</div> - <div class="index-item-description">Source must be recompiled on every occasion</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_cache_resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_cache_resources">Smarty::$registered_cache_resources</a> in Smarty.class.php</div> - <div class="index-item-description">registered cache resources</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_classes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_classes">Smarty::$registered_classes</a> in Smarty.class.php</div> - <div class="index-item-description">registered classes</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_filters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_filters">Smarty::$registered_filters</a> in Smarty.class.php</div> - <div class="index-item-description">registered filters</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_objects</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_objects">Smarty::$registered_objects</a> in Smarty.class.php</div> - <div class="index-item-description">registered objects</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_plugins">Smarty::$registered_plugins</a> in Smarty.class.php</div> - <div class="index-item-description">registered plugins</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_resources">Smarty::$registered_resources</a> in Smarty.class.php</div> - <div class="index-item-description">registered resources</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html#var$required_attributes">Smarty_Internal_Compile_Extends::$required_attributes</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$required_attributes">Smarty_Internal_Compile_Foreach::$required_attributes</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$required_attributes">Smarty_Internal_Compile_Eval::$required_attributes</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$required_attributes">Smarty_Internal_Compile_Config_Load::$required_attributes</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$required_attributes">Smarty_Internal_Compile_Block::$required_attributes</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$required_attributes">Smarty_Internal_Compile_Function::$required_attributes</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$required_attributes">Smarty_Internal_Compile_Include::$required_attributes</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$required_attributes">Smarty_Internal_Compile_Section::$required_attributes</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Array of names of required attribute required by tag</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$required_attributes">Smarty_Internal_Compile_Insert::$required_attributes</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$required_attributes">Smarty_Internal_Compile_Include_Php::$required_attributes</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#var$required_attributes">Smarty_Internal_Compile_Private_Function_Plugin::$required_attributes</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$required_attributes">Smarty_Internal_Compile_Call::$required_attributes</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$required_plugins">Smarty_Internal_Template::$required_plugins</a> in smarty_internal_template.php</div> - <div class="index-item-description">required plugins</div> - </dd> - <dt class="field"> - <span class="var-title">$resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$resource">Smarty_Template_Source::$resource</a> in smarty_resource.php</div> - <div class="index-item-description">Template Resource (Smarty_Internal_Template::$template_resource)</div> - </dd> - <dt class="field"> - <span class="var-title">$resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a> in smarty_resource.php</div> - <div class="index-item-description">cache for Smarty_Resource instances</div> - </dd> - <dt class="field"> - <span class="var-title">$resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a> in smarty_cacheresource.php</div> - <div class="index-item-description">cache for Smarty_CacheResource instances</div> - </dd> - <dt class="field"> - <span class="var-title">$retvalue</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$retvalue">Smarty_Internal_Configfileparser::$retvalue</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$retvalue</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$retvalue">Smarty_Internal_Templateparser::$retvalue</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$right_delimiter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$right_delimiter">Smarty::$right_delimiter</a> in Smarty.class.php</div> - <div class="index-item-description">template right-delimiter</div> - </dd> - <dt class="field"> - <span class="include-title">resource.extendsall.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/_demo---plugins---resource.extendsall.php.html">resource.extendsall.php</a> in resource.extendsall.php</div> - </dd> - <dt class="field"> - <span class="include-title">resource.mysql.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/_demo---plugins---resource.mysql.php.html">resource.mysql.php</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="include-title">resource.mysqls.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/_demo---plugins---resource.mysqls.php.html">resource.mysqls.php</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="method-title">read</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodread">Smarty_CacheResource_KeyValueStore::read()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Read values for a set of keys from cache</div> - </dd> - <dt class="field"> - <span class="method-title">read</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methodread">Smarty_CacheResource_Memcache::read()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Read values for a set of keys from cache</div> - </dd> - <dt class="field"> - <span class="method-title">read</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methodread">Smarty_CacheResource_Apc::read()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Read values for a set of keys from cache</div> - </dd> - <dt class="field"> - <span class="method-title">registerCacheResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterCacheResource">Smarty_Internal_TemplateBase::registerCacheResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a cache resource to cache a template's output</div> - </dd> - <dt class="field"> - <span class="method-title">registerClass</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterClass">Smarty_Internal_TemplateBase::registerClass()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers static classes to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">registerDefaultConfigHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultConfigHandler">Smarty_Internal_TemplateBase::registerDefaultConfigHandler()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a default template handler</div> - </dd> - <dt class="field"> - <span class="method-title">registerDefaultPluginHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultPluginHandler">Smarty_Internal_TemplateBase::registerDefaultPluginHandler()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a default plugin handler</div> - </dd> - <dt class="field"> - <span class="method-title">registerDefaultTemplateHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultTemplateHandler">Smarty_Internal_TemplateBase::registerDefaultTemplateHandler()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a default template handler</div> - </dd> - <dt class="field"> - <span class="method-title">registerFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterFilter">Smarty_Internal_TemplateBase::registerFilter()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a filter function</div> - </dd> - <dt class="field"> - <span class="method-title">registerObject</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterObject">Smarty_Internal_TemplateBase::registerObject()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers object to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">registerPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterPlugin">Smarty_Internal_TemplateBase::registerPlugin()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers plugin to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">registerResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterResource">Smarty_Internal_TemplateBase::registerResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a resource to fetch a template</div> - </dd> - <dt class="field"> - <span class="method-title">register_block</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_block">SmartyBC::register_block()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers block function to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_compiler_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_compiler_function">SmartyBC::register_compiler_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers compiler function</div> - </dd> - <dt class="field"> - <span class="method-title">register_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_function">SmartyBC::register_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers custom function to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_modifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_modifier">SmartyBC::register_modifier()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers modifier to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_object</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_object">SmartyBC::register_object()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers object to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_outputfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_outputfilter">SmartyBC::register_outputfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers an output filter function to apply to a template output</div> - </dd> - <dt class="field"> - <span class="method-title">register_postfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_postfilter">SmartyBC::register_postfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers a postfilter function to apply to a compiled template after compilation</div> - </dd> - <dt class="field"> - <span class="method-title">register_prefilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_prefilter">SmartyBC::register_prefilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers a prefilter function to apply to a template before compiling</div> - </dd> - <dt class="field"> - <span class="method-title">register_resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_resource">SmartyBC::register_resource()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers a resource to fetch a template</div> - </dd> - <dt class="field"> - <span class="method-title">releaseLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodreleaseLock">Smarty_Internal_CacheResource_File::releaseLock()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Unlock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">releaseLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="method-title">releaseLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodreleaseLock">Smarty_CacheResource_KeyValueStore::releaseLock()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Unlock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">renderUncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodrenderUncompiled">Smarty_Internal_Resource_PHP::renderUncompiled()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Render and output the template (without using the compiler)</div> - </dd> - <dt class="field"> - <span class="method-title">renderUncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#methodrenderUncompiled">Smarty_Template_Source::renderUncompiled()</a> in smarty_resource.php</div> - <div class="index-item-description">render the uncompiled source</div> - </dd> - <dt class="field"> - <span class="method-title">renderUncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodrenderUncompiled">Smarty_Resource_Uncompiled::renderUncompiled()</a> in smarty_resource_uncompiled.php</div> - <div class="index-item-description">Render and output the template (without using the compiler)</div> - </dd> - <dt class="field"> - <span class="method-title">runFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html#methodrunFilter">Smarty_Internal_Filter_Handler::runFilter()</a> in smarty_internal_filter_handler.php</div> - <div class="index-item-description">Run filters over content</div> - </dd> - </dl> - <a name="s"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">s</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$save</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$save">Smarty_CacheResource_Mysql::$save</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$scope</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#var$scope">Smarty_Variable::$scope</a> in smarty_internal_data.php</div> - <div class="index-item-description">the scope the variable will have (local,parent or root)</div> - </dd> - <dt class="field"> - <span class="var-title">$secure_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$secure_dir">Smarty_Security::$secure_dir</a> in smarty_security.php</div> - <div class="index-item-description">This is the list of template directories that are considered secure.</div> - </dd> - <dt class="field"> - <span class="var-title">$security_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$security_class">Smarty::$security_class</a> in Smarty.class.php</div> - <div class="index-item-description">class name</div> - </dd> - <dt class="field"> - <span class="var-title">$security_policy</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$security_policy">Smarty::$security_policy</a> in Smarty.class.php</div> - <div class="index-item-description">implementation of security class</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$shorttag_order">Smarty_Internal_Compile_Call::$shorttag_order</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html#var$shorttag_order">Smarty_Internal_Compile_Capture::$shorttag_order</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Shorttag attribute order defined by its names</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$shorttag_order">Smarty_Internal_Compile_Config_Load::$shorttag_order</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$shorttag_order">Smarty_Internal_Compile_Block::$shorttag_order</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html#var$shorttag_order">Smarty_Internal_Compile_Break::$shorttag_order</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html#var$shorttag_order">Smarty_Internal_Compile_Extends::$shorttag_order</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$shorttag_order">Smarty_Internal_Compile_Insert::$shorttag_order</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$shorttag_order">Smarty_Internal_Compile_Section::$shorttag_order</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$shorttag_order">Smarty_Internal_Compile_Include_Php::$shorttag_order</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$shorttag_order">Smarty_Internal_Compile_Include::$shorttag_order</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$shorttag_order">Smarty_Internal_Compile_Eval::$shorttag_order</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$shorttag_order">Smarty_Internal_Compile_Function::$shorttag_order</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html#var$shorttag_order">Smarty_Internal_Compile_Continue::$shorttag_order</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$shorttag_order">Smarty_Internal_Compile_Foreach::$shorttag_order</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$short_open_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#var$short_open_tag">Smarty_Internal_Resource_PHP::$short_open_tag</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">container for short_open_tag directive's value before executing PHP templates</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$smarty">Smarty_Internal_Config_File_Compiler::$smarty</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Data.html#var$smarty">Smarty_Data::$smarty</a> in smarty_internal_data.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$smarty">Smarty_Internal_SmartyTemplateCompiler::$smarty</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$smarty">Smarty_Template_Source::$smarty</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty instance</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$smarty">Smarty::$smarty</a> in Smarty.class.php</div> - <div class="index-item-description">self pointer to Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$smarty">Smarty_Internal_Template::$smarty</a> in smarty_internal_template.php</div> - <div class="index-item-description">Global smarty instance</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty_debug_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$smarty_debug_id">Smarty::$smarty_debug_id</a> in Smarty.class.php</div> - <div class="index-item-description">Name of debugging URL-param.</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty_token_names</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$smarty_token_names">Smarty_Internal_Configfilelexer::$smarty_token_names</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty_token_names</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$smarty_token_names">Smarty_Internal_Templatelexer::$smarty_token_names</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$source</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$source">Smarty_Template_Compiled::$source</a> in smarty_resource.php</div> - <div class="index-item-description">Source Object</div> - </dd> - <dt class="field"> - <span class="var-title">$source</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$source">Smarty_Template_Cached::$source</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Object</div> - </dd> - <dt class="field"> - <span class="var-title">$sources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a> in smarty_resource.php</div> - <div class="index-item-description">cache for Smarty_Template_Source instances</div> - </dd> - <dt class="field"> - <span class="var-title">$start_time</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$start_time">Smarty::$start_time</a> in Smarty.class.php</div> - <div class="index-item-description">start time for execution time calculation</div> - </dd> - <dt class="field"> - <span class="var-title">$state</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$state">Smarty_Internal_Templatelexer::$state</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$stateno</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html#var$stateno">TPC_yyStackEntry::$stateno</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$stateno</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html#var$stateno">TP_yyStackEntry::$stateno</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$static_classes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$static_classes">Smarty_Security::$static_classes</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted static classes.</div> - </dd> - <dt class="field"> - <span class="var-title">$streams</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$streams">Smarty_Security::$streams</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted streams.</div> - </dd> - <dt class="field"> - <span class="var-title">$string</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#var$string">TP_yyToken::$string</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$string</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#var$string">TPC_yyToken::$string</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$strip</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$strip">Smarty_Internal_Templatelexer::$strip</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$successful</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$successful">Smarty_Internal_Templateparser::$successful</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$successful</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$successful">Smarty_Internal_Configfileparser::$successful</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressHeader</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressHeader">Smarty_Internal_TemplateCompilerBase::$suppressHeader</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress Smarty header code in compiled template</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressMergedTemplates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressMergedTemplates">Smarty_Internal_TemplateCompilerBase::$suppressMergedTemplates</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress generation of merged template code</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressNocacheProcessing</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressNocacheProcessing">Smarty_Internal_TemplateCompilerBase::$suppressNocacheProcessing</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress generation of nocache code</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressTemplatePropertyHeader</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressTemplatePropertyHeader">Smarty_Internal_TemplateCompilerBase::$suppressTemplatePropertyHeader</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress template property header code in compiled template</div> - </dd> - <dt class="field"> - <span class="var-title">$sysplugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a> in smarty_cacheresource.php</div> - <div class="index-item-description">resource types provided by the core</div> - </dd> - <dt class="field"> - <span class="var-title">$sysplugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a> in smarty_resource.php</div> - <div class="index-item-description">resource types provided by the core</div> - </dd> - <dt class="field"> - <span class="include-title">shared.escape_special_chars.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html">shared.escape_special_chars.php</a> in shared.escape_special_chars.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.literal_compiler_param.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html">shared.literal_compiler_param.php</a> in shared.literal_compiler_param.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.make_timestamp.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html">shared.make_timestamp.php</a> in shared.make_timestamp.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.mb_str_replace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html">shared.mb_str_replace.php</a> in shared.mb_str_replace.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.mb_unicode.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html">shared.mb_unicode.php</a> in shared.mb_unicode.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.mb_wordwrap.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html">shared.mb_wordwrap.php</a> in shared.mb_wordwrap.php</div> - </dd> - <dt class="field"> - <span class="include-title">Smarty.class.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html">Smarty.class.php</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="include-title">SmartyBC.class.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---SmartyBC.class.php.html">SmartyBC.class.php</a> in SmartyBC.class.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_cacheresource.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---sysplugins---smarty_cacheresource.php.html">smarty_cacheresource.php</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_cacheresource_custom.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_custom.php.html">smarty_cacheresource_custom.php</a> in smarty_cacheresource_custom.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_cacheresource_keyvaluestore.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_keyvaluestore.php.html">smarty_cacheresource_keyvaluestore.php</a> in smarty_cacheresource_keyvaluestore.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_config_source.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_config_source.php.html">smarty_config_source.php</a> in smarty_config_source.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_cacheresource_file.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/_libs---sysplugins---smarty_internal_cacheresource_file.php.html">smarty_internal_cacheresource_file.php</a> in smarty_internal_cacheresource_file.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compilebase.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compilebase.php.html">smarty_internal_compilebase.php</a> in smarty_internal_compilebase.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_append.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_append.php.html">smarty_internal_compile_append.php</a> in smarty_internal_compile_append.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_assign.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_assign.php.html">smarty_internal_compile_assign.php</a> in smarty_internal_compile_assign.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_block.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_block.php.html">smarty_internal_compile_block.php</a> in smarty_internal_compile_block.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_break.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_break.php.html">smarty_internal_compile_break.php</a> in smarty_internal_compile_break.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_call.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_call.php.html">smarty_internal_compile_call.php</a> in smarty_internal_compile_call.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_capture.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_capture.php.html">smarty_internal_compile_capture.php</a> in smarty_internal_compile_capture.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_config_load.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_config_load.php.html">smarty_internal_compile_config_load.php</a> in smarty_internal_compile_config_load.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_continue.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_continue.php.html">smarty_internal_compile_continue.php</a> in smarty_internal_compile_continue.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_debug.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_debug.php.html">smarty_internal_compile_debug.php</a> in smarty_internal_compile_debug.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_eval.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_eval.php.html">smarty_internal_compile_eval.php</a> in smarty_internal_compile_eval.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_extends.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_extends.php.html">smarty_internal_compile_extends.php</a> in smarty_internal_compile_extends.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_for.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_for.php.html">smarty_internal_compile_for.php</a> in smarty_internal_compile_for.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_foreach.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_foreach.php.html">smarty_internal_compile_foreach.php</a> in smarty_internal_compile_foreach.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_function.php.html">smarty_internal_compile_function.php</a> in smarty_internal_compile_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_if.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_if.php.html">smarty_internal_compile_if.php</a> in smarty_internal_compile_if.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_include.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include.php.html">smarty_internal_compile_include.php</a> in smarty_internal_compile_include.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_include_php.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include_php.php.html">smarty_internal_compile_include_php.php</a> in smarty_internal_compile_include_php.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_insert.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_insert.php.html">smarty_internal_compile_insert.php</a> in smarty_internal_compile_insert.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_ldelim.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_ldelim.php.html">smarty_internal_compile_ldelim.php</a> in smarty_internal_compile_ldelim.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_nocache.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_nocache.php.html">smarty_internal_compile_nocache.php</a> in smarty_internal_compile_nocache.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_block_plugin.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_block_plugin.php.html">smarty_internal_compile_private_block_plugin.php</a> in smarty_internal_compile_private_block_plugin.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_function_plugin.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_function_plugin.php.html">smarty_internal_compile_private_function_plugin.php</a> in smarty_internal_compile_private_function_plugin.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_modifier.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_modifier.php.html">smarty_internal_compile_private_modifier.php</a> in smarty_internal_compile_private_modifier.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_object_block_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_block_function.php.html">smarty_internal_compile_private_object_block_function.php</a> in smarty_internal_compile_private_object_block_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_object_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_function.php.html">smarty_internal_compile_private_object_function.php</a> in smarty_internal_compile_private_object_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_print_expression.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_print_expression.php.html">smarty_internal_compile_private_print_expression.php</a> in smarty_internal_compile_private_print_expression.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_registered_block.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_block.php.html">smarty_internal_compile_private_registered_block.php</a> in smarty_internal_compile_private_registered_block.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_registered_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_function.php.html">smarty_internal_compile_private_registered_function.php</a> in smarty_internal_compile_private_registered_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_special_variable.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_special_variable.php.html">smarty_internal_compile_private_special_variable.php</a> in smarty_internal_compile_private_special_variable.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_rdelim.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_rdelim.php.html">smarty_internal_compile_rdelim.php</a> in smarty_internal_compile_rdelim.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_section.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_section.php.html">smarty_internal_compile_section.php</a> in smarty_internal_compile_section.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_setfilter.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_setfilter.php.html">smarty_internal_compile_setfilter.php</a> in smarty_internal_compile_setfilter.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_while.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_while.php.html">smarty_internal_compile_while.php</a> in smarty_internal_compile_while.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_config.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/_libs---sysplugins---smarty_internal_config.php.html">smarty_internal_config.php</a> in smarty_internal_config.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_configfilelexer.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/_libs---sysplugins---smarty_internal_configfilelexer.php.html">smarty_internal_configfilelexer.php</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_configfileparser.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_configfileparser.php.html">smarty_internal_configfileparser.php</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_config_file_compiler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/_libs---sysplugins---smarty_internal_config_file_compiler.php.html">smarty_internal_config_file_compiler.php</a> in smarty_internal_config_file_compiler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_data.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---sysplugins---smarty_internal_data.php.html">smarty_internal_data.php</a> in smarty_internal_data.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_debug.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/_libs---sysplugins---smarty_internal_debug.php.html">smarty_internal_debug.php</a> in smarty_internal_debug.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_filter_handler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_filter_handler.php.html">smarty_internal_filter_handler.php</a> in smarty_internal_filter_handler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_function_call_handler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_function_call_handler.php.html">smarty_internal_function_call_handler.php</a> in smarty_internal_function_call_handler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_get_include_path.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_get_include_path.php.html">smarty_internal_get_include_path.php</a> in smarty_internal_get_include_path.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_nocache_insert.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_nocache_insert.php.html">smarty_internal_nocache_insert.php</a> in smarty_internal_nocache_insert.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_parsetree.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_parsetree.php.html">smarty_internal_parsetree.php</a> in smarty_internal_parsetree.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_eval.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_eval.php.html">smarty_internal_resource_eval.php</a> in smarty_internal_resource_eval.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_extends.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_extends.php.html">smarty_internal_resource_extends.php</a> in smarty_internal_resource_extends.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_file.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_file.php.html">smarty_internal_resource_file.php</a> in smarty_internal_resource_file.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_php.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_php.php.html">smarty_internal_resource_php.php</a> in smarty_internal_resource_php.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_registered.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_registered.php.html">smarty_internal_resource_registered.php</a> in smarty_internal_resource_registered.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_stream.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_stream.php.html">smarty_internal_resource_stream.php</a> in smarty_internal_resource_stream.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_string.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_string.php.html">smarty_internal_resource_string.php</a> in smarty_internal_resource_string.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_smartytemplatecompiler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_smartytemplatecompiler.php.html">smarty_internal_smartytemplatecompiler.php</a> in smarty_internal_smartytemplatecompiler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_template.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---sysplugins---smarty_internal_template.php.html">smarty_internal_template.php</a> in smarty_internal_template.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templatebase.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---sysplugins---smarty_internal_templatebase.php.html">smarty_internal_templatebase.php</a> in smarty_internal_templatebase.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templatecompilerbase.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_templatecompilerbase.php.html">smarty_internal_templatecompilerbase.php</a> in smarty_internal_templatecompilerbase.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templatelexer.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_templatelexer.php.html">smarty_internal_templatelexer.php</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templateparser.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_templateparser.php.html">smarty_internal_templateparser.php</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_utility.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/_libs---sysplugins---smarty_internal_utility.php.html">smarty_internal_utility.php</a> in smarty_internal_utility.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_write_file.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_write_file.php.html">smarty_internal_write_file.php</a> in smarty_internal_write_file.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource.php.html">smarty_resource.php</a> in smarty_resource.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource_custom.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource_custom.php.html">smarty_resource_custom.php</a> in smarty_resource_custom.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource_recompiled.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource_recompiled.php.html">smarty_resource_recompiled.php</a> in smarty_resource_recompiled.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource_uncompiled.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource_uncompiled.php.html">smarty_resource_uncompiled.php</a> in smarty_resource_uncompiled.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_security.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/_libs---sysplugins---smarty_security.php.html">smarty_security.php</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="method-title">sanitize</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodsanitize">Smarty_CacheResource_KeyValueStore::sanitize()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Sanitize CacheID components</div> - </dd> - <dt class="field"> - <span class="method-title">save</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methodsave">Smarty_CacheResource_Mysql::save()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">Save content to cache</div> - </dd> - <dt class="field"> - <span class="method-title">save</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodsave">Smarty_CacheResource_Custom::save()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Save content to cache</div> - </dd> - <dt class="field"> - <span class="method-title">saveBlockData</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#methodsaveBlockData">Smarty_Internal_Compile_Block::saveBlockData()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Save or replace child block source by block name during parsing</div> - </dd> - <dt class="field"> - SCOPE_GLOBAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_GLOBAL">Smarty::SCOPE_GLOBAL</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - SCOPE_LOCAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_LOCAL">Smarty::SCOPE_LOCAL</a> in Smarty.class.php</div> - <div class="index-item-description">define variable scopes</div> - </dd> - <dt class="field"> - SCOPE_PARENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_PARENT">Smarty::SCOPE_PARENT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - SCOPE_ROOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_ROOT">Smarty::SCOPE_ROOT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - SECTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constSECTION">Smarty_Internal_Configfilelexer::SECTION</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">setAutoloadFilters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetAutoloadFilters">Smarty::setAutoloadFilters()</a> in Smarty.class.php</div> - <div class="index-item-description">Set autoload filters</div> - </dd> - <dt class="field"> - <span class="method-title">setCacheDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetCacheDir">Smarty::setCacheDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set cache directory</div> - </dd> - <dt class="field"> - <span class="method-title">setCompileDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetCompileDir">Smarty::setCompileDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set compile directory</div> - </dd> - <dt class="field"> - <span class="method-title">setConfigDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetConfigDir">Smarty::setConfigDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set config directory</div> - </dd> - <dt class="field"> - <span class="method-title">setDebugTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetDebugTemplate">Smarty::setDebugTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">set the debug template</div> - </dd> - <dt class="field"> - <span class="method-title">setDefaultModifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetDefaultModifiers">Smarty::setDefaultModifiers()</a> in Smarty.class.php</div> - <div class="index-item-description">Set default modifiers</div> - </dd> - <dt class="field"> - <span class="method-title">setPluginsDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetPluginsDir">Smarty::setPluginsDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set plugins directory</div> - </dd> - <dt class="field"> - <span class="method-title">setTemplateDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetTemplateDir">Smarty::setTemplateDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set template directory</div> - </dd> - <dt class="field"> - <span class="method-title">setupInlineSubTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodsetupInlineSubTemplate">Smarty_Internal_Template::setupInlineSubTemplate()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to set up an inline subtemplate</div> - </dd> - <dt class="field"> - SMARTY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constSMARTY">Smarty_Internal_Templatelexer::SMARTY</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - Smarty - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html">Smarty</a> in Smarty.class.php</div> - <div class="index-item-description">This is the main Smarty class</div> - </dd> - <dt class="field"> - <span class="method-title">smartyAutoload</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#functionsmartyAutoload">smartyAutoload()</a> in Smarty.class.php</div> - <div class="index-item-description">Autoloader</div> - </dd> - <dt class="field"> - SmartyBC - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html">SmartyBC</a> in SmartyBC.class.php</div> - <div class="index-item-description">Smarty Backward Compatability Wrapper Class</div> - </dd> - <dt class="field"> - SmartyCompilerException - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/SmartyCompilerException.html">SmartyCompilerException</a> in Smarty.class.php</div> - <div class="index-item-description">Smarty compiler exception class</div> - </dd> - <dt class="field"> - SmartyException - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/SmartyException.html">SmartyException</a> in Smarty.class.php</div> - <div class="index-item-description">Smarty exception class</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_block_textformat</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html#functionsmarty_block_textformat">smarty_block_textformat()</a> in block.textformat.php</div> - <div class="index-item-description">Smarty {textformat}{/textformat} block plugin</div> - </dd> - <dt class="field"> - Smarty_CacheResource - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Cache Handler API</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Apc - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html">Smarty_CacheResource_Apc</a> in cacheresource.apc.php</div> - <div class="index-item-description">APC CacheResource</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Custom - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Cache Handler API</div> - </dd> - <dt class="field"> - Smarty_CacheResource_KeyValueStore - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Smarty Cache Handler Base for Key/Value Storage Implementations</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Memcache - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html">Smarty_CacheResource_Memcache</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Memcache CacheResource</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Mysql - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html">Smarty_CacheResource_Mysql</a> in cacheresource.mysql.php</div> - <div class="index-item-description">MySQL CacheResource</div> - </dd> - <dt class="field"> - Smarty_Config_Source - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a> in smarty_config_source.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Data - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Data.html">Smarty_Data</a> in smarty_internal_data.php</div> - <div class="index-item-description">class for the Smarty data object</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_DIR</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_DIR">SMARTY_DIR</a> in Smarty.class.php</div> - <div class="index-item-description">set SMARTY_DIR to absolute path to Smarty library files.</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_counter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.counter.php.html#functionsmarty_function_counter">smarty_function_counter()</a> in function.counter.php</div> - <div class="index-item-description">Smarty {counter} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_cycle</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html#functionsmarty_function_cycle">smarty_function_cycle()</a> in function.cycle.php</div> - <div class="index-item-description">Smarty {cycle} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_escape_special_chars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars">smarty_function_escape_special_chars()</a> in shared.escape_special_chars.php</div> - <div class="index-item-description">escape_special_chars common function</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html#functionsmarty_function_fetch">smarty_function_fetch()</a> in function.fetch.php</div> - <div class="index-item-description">Smarty {fetch} plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_checkboxes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes">smarty_function_html_checkboxes()</a> in function.html_checkboxes.php</div> - <div class="index-item-description">Smarty {html_checkboxes} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_checkboxes_output</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes_output">smarty_function_html_checkboxes_output()</a> in function.html_checkboxes.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_image</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html#functionsmarty_function_html_image">smarty_function_html_image()</a> in function.html_image.php</div> - <div class="index-item-description">Smarty {html_image} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_options</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options">smarty_function_html_options()</a> in function.html_options.php</div> - <div class="index-item-description">Smarty {html_options} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_options_optgroup</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options_optgroup">smarty_function_html_options_optgroup()</a> in function.html_options.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_options_optoutput</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options_optoutput">smarty_function_html_options_optoutput()</a> in function.html_options.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_radios</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios">smarty_function_html_radios()</a> in function.html_radios.php</div> - <div class="index-item-description">Smarty {html_radios} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_radios_output</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios_output">smarty_function_html_radios_output()</a> in function.html_radios.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_select_date</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html#functionsmarty_function_html_select_date">smarty_function_html_select_date()</a> in function.html_select_date.php</div> - <div class="index-item-description">Smarty {html_select_date} plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_select_time</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html#functionsmarty_function_html_select_time">smarty_function_html_select_time()</a> in function.html_select_time.php</div> - <div class="index-item-description">Smarty {html_select_time} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_table</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html#functionsmarty_function_html_table">smarty_function_html_table()</a> in function.html_table.php</div> - <div class="index-item-description">Smarty {html_table} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_table_cycle</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html#functionsmarty_function_html_table_cycle">smarty_function_html_table_cycle()</a> in function.html_table.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_mailto</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html#functionsmarty_function_mailto">smarty_function_mailto()</a> in function.mailto.php</div> - <div class="index-item-description">Smarty {mailto} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_math</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.math.php.html#functionsmarty_function_math">smarty_function_math()</a> in function.math.php</div> - <div class="index-item-description">Smarty {math} function plugin</div> - </dd> - <dt class="field"> - Smarty_Internal_CacheResource_File - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html">Smarty_Internal_CacheResource_File</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">This class does contain all necessary methods for the HTML cache on file system</div> - </dd> - <dt class="field"> - Smarty_Internal_CompileBase - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">This class does extend all internal compile plugins</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Append - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Append.html">Smarty_Internal_Compile_Append</a> in smarty_internal_compile_append.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Append Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Assign - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a> in smarty_internal_compile_assign.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Assign Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Block - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html">Smarty_Internal_Compile_Block</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Block Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Blockclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html">Smarty_Internal_Compile_Blockclose</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile BlockClose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Break - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html">Smarty_Internal_Compile_Break</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Break Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Call - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html">Smarty_Internal_Compile_Call</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Function_Call Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Capture - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html">Smarty_Internal_Compile_Capture</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Capture Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_CaptureClose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html">Smarty_Internal_Compile_CaptureClose</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Captureclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Config_Load - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html">Smarty_Internal_Compile_Config_Load</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Config Load Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Continue - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html">Smarty_Internal_Compile_Continue</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Continue Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Debug - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Debug.html">Smarty_Internal_Compile_Debug</a> in smarty_internal_compile_debug.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Debug Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Else - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Else.html">Smarty_Internal_Compile_Else</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Else Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Elseif - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Elseif.html">Smarty_Internal_Compile_Elseif</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile ElseIf Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Eval - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html">Smarty_Internal_Compile_Eval</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Eval Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Extends - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html">Smarty_Internal_Compile_Extends</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile extend Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_For - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_For.html">Smarty_Internal_Compile_For</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile For Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Forclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forclose.html">Smarty_Internal_Compile_Forclose</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Forclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Foreach - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html">Smarty_Internal_Compile_Foreach</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Foreach Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Foreachclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html">Smarty_Internal_Compile_Foreachclose</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Foreachclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Foreachelse - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html">Smarty_Internal_Compile_Foreachelse</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Foreachelse Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Forelse - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forelse.html">Smarty_Internal_Compile_Forelse</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Forelse Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html">Smarty_Internal_Compile_Function</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Functionclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html">Smarty_Internal_Compile_Functionclose</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Functionclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_If - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_If.html">Smarty_Internal_Compile_If</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile If Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Ifclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html">Smarty_Internal_Compile_Ifclose</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Ifclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Include - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html">Smarty_Internal_Compile_Include</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Include Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Include_Php - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html">Smarty_Internal_Compile_Include_Php</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Insert Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Insert - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html">Smarty_Internal_Compile_Insert</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Insert Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Ldelim - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html">Smarty_Internal_Compile_Ldelim</a> in smarty_internal_compile_ldelim.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Ldelim Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Nocache - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocache.html">Smarty_Internal_Compile_Nocache</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Nocache Classv</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Nocacheclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html">Smarty_Internal_Compile_Nocacheclose</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Nocacheclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Block_Plugin - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html">Smarty_Internal_Compile_Private_Block_Plugin</a> in smarty_internal_compile_private_block_plugin.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Block Plugin Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Function_Plugin - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html">Smarty_Internal_Compile_Private_Function_Plugin</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Function Plugin Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Modifier - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html">Smarty_Internal_Compile_Private_Modifier</a> in smarty_internal_compile_private_modifier.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Modifier Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Object_Block_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html">Smarty_Internal_Compile_Private_Object_Block_Function</a> in smarty_internal_compile_private_object_block_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Object Block Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Object_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html">Smarty_Internal_Compile_Private_Object_Function</a> in smarty_internal_compile_private_object_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Object Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Print_Expression - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html">Smarty_Internal_Compile_Private_Print_Expression</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Print Expression Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Registered_Block - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html">Smarty_Internal_Compile_Private_Registered_Block</a> in smarty_internal_compile_private_registered_block.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Registered Block Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Registered_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html">Smarty_Internal_Compile_Private_Registered_Function</a> in smarty_internal_compile_private_registered_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Registered Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Special_Variable - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html">Smarty_Internal_Compile_Private_Special_Variable</a> in smarty_internal_compile_private_special_variable.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile special Smarty Variable Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Rdelim - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html">Smarty_Internal_Compile_Rdelim</a> in smarty_internal_compile_rdelim.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Rdelim Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Section - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html">Smarty_Internal_Compile_Section</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Section Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Sectionclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html">Smarty_Internal_Compile_Sectionclose</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Sectionclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Sectionelse - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html">Smarty_Internal_Compile_Sectionelse</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Sectionelse Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Setfilter - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html">Smarty_Internal_Compile_Setfilter</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Setfilter Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Setfilterclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html">Smarty_Internal_Compile_Setfilterclose</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Setfilterclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_While - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_While.html">Smarty_Internal_Compile_While</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile While Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Whileclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html">Smarty_Internal_Compile_Whileclose</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Whileclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Configfilelexer - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html">Smarty_Internal_Configfilelexer</a> in smarty_internal_configfilelexer.php</div> - <div class="index-item-description">Smarty Internal Plugin Configfilelexer</div> - </dd> - <dt class="field"> - Smarty_Internal_Configfileparser - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html">Smarty_Internal_Configfileparser</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Config_File_Compiler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html">Smarty_Internal_Config_File_Compiler</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Main config file compiler class</div> - </dd> - <dt class="field"> - Smarty_Internal_Data - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> in smarty_internal_data.php</div> - <div class="index-item-description">Base class with template and variable methodes</div> - </dd> - <dt class="field"> - Smarty_Internal_Debug - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html">Smarty_Internal_Debug</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Smarty Internal Plugin Debug Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Filter_Handler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html">Smarty_Internal_Filter_Handler</a> in smarty_internal_filter_handler.php</div> - <div class="index-item-description">Class for filter processing</div> - </dd> - <dt class="field"> - Smarty_Internal_Function_Call_Handler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html">Smarty_Internal_Function_Call_Handler</a> in smarty_internal_function_call_handler.php</div> - <div class="index-item-description">This class does call function defined with the {function} tag</div> - </dd> - <dt class="field"> - Smarty_Internal_Get_Include_Path - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html">Smarty_Internal_Get_Include_Path</a> in smarty_internal_get_include_path.php</div> - <div class="index-item-description">Smarty Internal Read Include Path Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Nocache_Insert - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Nocache_Insert.html">Smarty_Internal_Nocache_Insert</a> in smarty_internal_nocache_insert.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Insert Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Eval - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html">Smarty_Internal_Resource_Eval</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Eval</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Extends - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Extends</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_File - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html">Smarty_Internal_Resource_File</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource File</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_PHP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html">Smarty_Internal_Resource_PHP</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource PHP</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Registered - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html">Smarty_Internal_Resource_Registered</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Registered</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Stream - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html">Smarty_Internal_Resource_Stream</a> in smarty_internal_resource_stream.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Stream</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_String - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html">Smarty_Internal_Resource_String</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource String</div> - </dd> - <dt class="field"> - Smarty_Internal_SmartyTemplateCompiler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html">Smarty_Internal_SmartyTemplateCompiler</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Class SmartyTemplateCompiler</div> - </dd> - <dt class="field"> - Smarty_Internal_Template - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a> in smarty_internal_template.php</div> - <div class="index-item-description">Main class with template data structures and methods</div> - </dd> - <dt class="field"> - Smarty_Internal_TemplateBase - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Class with shared template methodes</div> - </dd> - <dt class="field"> - Smarty_Internal_TemplateCompilerBase - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Main abstract compiler class</div> - </dd> - <dt class="field"> - Smarty_Internal_Templatelexer - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html">Smarty_Internal_Templatelexer</a> in smarty_internal_templatelexer.php</div> - <div class="index-item-description">Smarty Internal Plugin Templatelexer</div> - </dd> - <dt class="field"> - Smarty_Internal_Templateparser - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html">Smarty_Internal_Templateparser</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Utility - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html">Smarty_Internal_Utility</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Utility class</div> - </dd> - <dt class="field"> - Smarty_Internal_Write_File - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Write_File.html">Smarty_Internal_Write_File</a> in smarty_internal_write_file.php</div> - <div class="index-item-description">Smarty Internal Write File Class</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_literal_compiler_param</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html#functionsmarty_literal_compiler_param">smarty_literal_compiler_param()</a> in shared.literal_compiler_param.php</div> - <div class="index-item-description">evaluate compiler parameter</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_make_timestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html#functionsmarty_make_timestamp">smarty_make_timestamp()</a> in shared.make_timestamp.php</div> - <div class="index-item-description">Function: smarty_make_timestamp<br /> Purpose: used by other smarty functions to make a timestamp from a string.</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_MBSTRING</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_MBSTRING">SMARTY_MBSTRING</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_from_unicode</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html#functionsmarty_mb_from_unicode">smarty_mb_from_unicode()</a> in shared.mb_unicode.php</div> - <div class="index-item-description">convert unicodes to the character of given encoding</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_str_replace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html#functionsmarty_mb_str_replace">smarty_mb_str_replace()</a> in shared.mb_str_replace.php</div> - <div class="index-item-description">Multibyte string replace</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_to_unicode</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html#functionsmarty_mb_to_unicode">smarty_mb_to_unicode()</a> in shared.mb_unicode.php</div> - <div class="index-item-description">convert characters to their decimal unicode equivalents</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_wordwrap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html#functionsmarty_mb_wordwrap">smarty_mb_wordwrap()</a> in shared.mb_wordwrap.php</div> - <div class="index-item-description">Wrap a string to a given number of characters</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_cat</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html#functionsmarty_modifiercompiler_cat">smarty_modifiercompiler_cat()</a> in modifiercompiler.cat.php</div> - <div class="index-item-description">Smarty cat modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_characters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html#functionsmarty_modifiercompiler_count_characters">smarty_modifiercompiler_count_characters()</a> in modifiercompiler.count_characters.php</div> - <div class="index-item-description">Smarty count_characters modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_paragraphs</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html#functionsmarty_modifiercompiler_count_paragraphs">smarty_modifiercompiler_count_paragraphs()</a> in modifiercompiler.count_paragraphs.php</div> - <div class="index-item-description">Smarty count_paragraphs modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_sentences</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html#functionsmarty_modifiercompiler_count_sentences">smarty_modifiercompiler_count_sentences()</a> in modifiercompiler.count_sentences.php</div> - <div class="index-item-description">Smarty count_sentences modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_words</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html#functionsmarty_modifiercompiler_count_words">smarty_modifiercompiler_count_words()</a> in modifiercompiler.count_words.php</div> - <div class="index-item-description">Smarty count_words modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_default</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html#functionsmarty_modifiercompiler_default">smarty_modifiercompiler_default()</a> in modifiercompiler.default.php</div> - <div class="index-item-description">Smarty default modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_escape</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html#functionsmarty_modifiercompiler_escape">smarty_modifiercompiler_escape()</a> in modifiercompiler.escape.php</div> - <div class="index-item-description">Smarty escape modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_from_charset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html#functionsmarty_modifiercompiler_from_charset">smarty_modifiercompiler_from_charset()</a> in modifiercompiler.from_charset.php</div> - <div class="index-item-description">Smarty from_charset modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_indent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html#functionsmarty_modifiercompiler_indent">smarty_modifiercompiler_indent()</a> in modifiercompiler.indent.php</div> - <div class="index-item-description">Smarty indent modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_lower</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html#functionsmarty_modifiercompiler_lower">smarty_modifiercompiler_lower()</a> in modifiercompiler.lower.php</div> - <div class="index-item-description">Smarty lower modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_noprint</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html#functionsmarty_modifiercompiler_noprint">smarty_modifiercompiler_noprint()</a> in modifiercompiler.noprint.php</div> - <div class="index-item-description">Smarty noprint modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_string_format</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html#functionsmarty_modifiercompiler_string_format">smarty_modifiercompiler_string_format()</a> in modifiercompiler.string_format.php</div> - <div class="index-item-description">Smarty string_format modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_strip</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html#functionsmarty_modifiercompiler_strip">smarty_modifiercompiler_strip()</a> in modifiercompiler.strip.php</div> - <div class="index-item-description">Smarty strip modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_strip_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html#functionsmarty_modifiercompiler_strip_tags">smarty_modifiercompiler_strip_tags()</a> in modifiercompiler.strip_tags.php</div> - <div class="index-item-description">Smarty strip_tags modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_to_charset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html#functionsmarty_modifiercompiler_to_charset">smarty_modifiercompiler_to_charset()</a> in modifiercompiler.to_charset.php</div> - <div class="index-item-description">Smarty to_charset modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_unescape</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html#functionsmarty_modifiercompiler_unescape">smarty_modifiercompiler_unescape()</a> in modifiercompiler.unescape.php</div> - <div class="index-item-description">Smarty unescape modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_upper</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html#functionsmarty_modifiercompiler_upper">smarty_modifiercompiler_upper()</a> in modifiercompiler.upper.php</div> - <div class="index-item-description">Smarty upper modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_wordwrap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html#functionsmarty_modifiercompiler_wordwrap">smarty_modifiercompiler_wordwrap()</a> in modifiercompiler.wordwrap.php</div> - <div class="index-item-description">Smarty wordwrap modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_capitalize</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html#functionsmarty_modifier_capitalize">smarty_modifier_capitalize()</a> in modifier.capitalize.php</div> - <div class="index-item-description">Smarty capitalize modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_date_format</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html#functionsmarty_modifier_date_format">smarty_modifier_date_format()</a> in modifier.date_format.php</div> - <div class="index-item-description">Smarty date_format modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_debug_print_var</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html#functionsmarty_modifier_debug_print_var">smarty_modifier_debug_print_var()</a> in modifier.debug_print_var.php</div> - <div class="index-item-description">Smarty debug_print_var modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_escape</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html#functionsmarty_modifier_escape">smarty_modifier_escape()</a> in modifier.escape.php</div> - <div class="index-item-description">Smarty escape modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_regex_replace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html#functionsmarty_modifier_regex_replace">smarty_modifier_regex_replace()</a> in modifier.regex_replace.php</div> - <div class="index-item-description">Smarty regex_replace modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_replace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html#functionsmarty_modifier_replace">smarty_modifier_replace()</a> in modifier.replace.php</div> - <div class="index-item-description">Smarty replace modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_spacify</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html#functionsmarty_modifier_spacify">smarty_modifier_spacify()</a> in modifier.spacify.php</div> - <div class="index-item-description">Smarty spacify modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_truncate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html#functionsmarty_modifier_truncate">smarty_modifier_truncate()</a> in modifier.truncate.php</div> - <div class="index-item-description">Smarty truncate modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_outputfilter_trimwhitespace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html#functionsmarty_outputfilter_trimwhitespace">smarty_outputfilter_trimwhitespace()</a> in outputfilter.trimwhitespace.php</div> - <div class="index-item-description">Smarty trimwhitespace outputfilter plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_php_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---SmartyBC.class.php.html#functionsmarty_php_tag">smarty_php_tag()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Smarty {php}{/php} block function</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_PLUGINS_DIR</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_PLUGINS_DIR">SMARTY_PLUGINS_DIR</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - Smarty_Resource - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_RESOURCE_CHAR_SET</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_RESOURCE_CHAR_SET">SMARTY_RESOURCE_CHAR_SET</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - Smarty_Resource_Custom - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_RESOURCE_DATE_FORMAT</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_RESOURCE_DATE_FORMAT">SMARTY_RESOURCE_DATE_FORMAT</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - Smarty_Resource_Extendsall - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Extendsall.html">Smarty_Resource_Extendsall</a> in resource.extendsall.php</div> - <div class="index-item-description">Extends All Resource</div> - </dd> - <dt class="field"> - Smarty_Resource_Mysql - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html">Smarty_Resource_Mysql</a> in resource.mysql.php</div> - <div class="index-item-description">MySQL Resource</div> - </dd> - <dt class="field"> - Smarty_Resource_Mysqls - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html">Smarty_Resource_Mysqls</a> in resource.mysqls.php</div> - <div class="index-item-description">MySQL Resource</div> - </dd> - <dt class="field"> - Smarty_Resource_Recompiled - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a> in smarty_resource_recompiled.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - Smarty_Resource_Uncompiled - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a> in smarty_resource_uncompiled.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - Smarty_Security - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html">Smarty_Security</a> in smarty_security.php</div> - <div class="index-item-description">This class does contain the security settings</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_SPL_AUTOLOAD</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_SPL_AUTOLOAD">SMARTY_SPL_AUTOLOAD</a> in Smarty.class.php</div> - <div class="index-item-description">register the class autoloader</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_SYSPLUGINS_DIR</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_SYSPLUGINS_DIR">SMARTY_SYSPLUGINS_DIR</a> in Smarty.class.php</div> - <div class="index-item-description">set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins.</div> - </dd> - <dt class="field"> - Smarty_Template_Cached - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Template_Compiled - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Template_Source - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Variable - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html">Smarty_Variable</a> in smarty_internal_data.php</div> - <div class="index-item-description">class for the Smarty variable object</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_variablefilter_htmlspecialchars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html#functionsmarty_variablefilter_htmlspecialchars">smarty_variablefilter_htmlspecialchars()</a> in variablefilter.htmlspecialchars.php</div> - <div class="index-item-description">Smarty htmlspecialchars variablefilter plugin</div> - </dd> - <dt class="field"> - SMARTY_VERSION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSMARTY_VERSION">Smarty::SMARTY_VERSION</a> in Smarty.class.php</div> - <div class="index-item-description">smarty version</div> - </dd> - <dt class="field"> - <span class="method-title">source</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a> in smarty_resource.php</div> - <div class="index-item-description">initialize Source Object for given resource</div> - </dd> - <dt class="field"> - START - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constSTART">Smarty_Internal_Configfilelexer::START</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">start_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodstart_cache">Smarty_Internal_Debug::start_cache()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Start logging of cache time</div> - </dd> - <dt class="field"> - <span class="method-title">start_compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodstart_compile">Smarty_Internal_Debug::start_compile()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Start logging of compile time</div> - </dd> - <dt class="field"> - <span class="method-title">start_render</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodstart_render">Smarty_Internal_Debug::start_render()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Start logging of render time</div> - </dd> - </dl> - <a name="t"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">t</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$taglineno</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$taglineno">Smarty_Internal_Templatelexer::$taglineno</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$template</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$template">Smarty_Internal_TemplateCompilerBase::$template</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">current template</div> - </dd> - <dt class="field"> - <span class="var-title">$template_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a> in smarty_internal_data.php</div> - <div class="index-item-description">name of class used for templates</div> - </dd> - <dt class="field"> - <span class="var-title">$template_data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#var$template_data">Smarty_Internal_Debug::$template_data</a> in smarty_internal_debug.php</div> - <div class="index-item-description">template data</div> - </dd> - <dt class="field"> - <span class="var-title">$template_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$template_dir">Smarty::$template_dir</a> in Smarty.class.php</div> - <div class="index-item-description">template directory</div> - </dd> - <dt class="field"> - <span class="var-title">$template_functions</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$template_functions">Smarty::$template_functions</a> in Smarty.class.php</div> - <div class="index-item-description">global template functions</div> - </dd> - <dt class="field"> - <span class="var-title">$template_lexer_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to tokenize this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_lexer_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$template_lexer_class">Smarty_Template_Source::$template_lexer_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to tokenize this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_objects</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$template_objects">Smarty::$template_objects</a> in Smarty.class.php</div> - <div class="index-item-description">cached template objects</div> - </dd> - <dt class="field"> - <span class="var-title">$template_parser_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to parse this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_parser_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$template_parser_class">Smarty_Template_Source::$template_parser_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to parse this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$template_resource">Smarty_Internal_Template::$template_resource</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template resource</div> - </dd> - <dt class="field"> - <span class="var-title">$timestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$timestamp">Smarty_Template_Compiled::$timestamp</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Timestamp</div> - </dd> - <dt class="field"> - <span class="var-title">$timestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$timestamp">Smarty_Template_Cached::$timestamp</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Timestamp</div> - </dd> - <dt class="field"> - <span class="var-title">$timestamps</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$timestamps">Smarty_CacheResource_KeyValueStore::$timestamps</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">cache for timestamps</div> - </dd> - <dt class="field"> - <span class="var-title">$token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$token">Smarty_Internal_Configfilelexer::$token</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$token">Smarty_Internal_Templatelexer::$token</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$tpl_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a> in smarty_internal_data.php</div> - <div class="index-item-description">template variables</div> - </dd> - <dt class="field"> - <span class="var-title">$trusted_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$trusted_dir">Smarty_Security::$trusted_dir</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of directories where trusted php scripts reside.</div> - </dd> - <dt class="field"> - <span class="var-title">$type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$type">Smarty_Template_Source::$type</a> in smarty_resource.php</div> - <div class="index-item-description">Resource Type</div> - </dd> - <dt class="field"> - <span class="method-title">templateExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodtemplateExists">Smarty::templateExists()</a> in Smarty.class.php</div> - <div class="index-item-description">Check if a template resource exists</div> - </dd> - <dt class="field"> - <span class="method-title">template_exists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodtemplate_exists">SmartyBC::template_exists()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Checks whether requested template exists.</div> - </dd> - <dt class="field"> - <span class="method-title">testInstall</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodtestInstall">Smarty::testInstall()</a> in Smarty.class.php</div> - <div class="index-item-description">Run installation test</div> - </dd> - <dt class="field"> - <span class="method-title">testInstall</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodtestInstall">Smarty_Internal_Utility::testInstall()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">diagnose Smarty setup</div> - </dd> - <dt class="field"> - TEXT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constTEXT">Smarty_Internal_Templatelexer::TEXT</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">tokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodtokenName">Smarty_Internal_Configfileparser::tokenName()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">tokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodtokenName">Smarty_Internal_Templateparser::tokenName()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TPC_BOOL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_BOOL">Smarty_Internal_Configfileparser::TPC_BOOL</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_CLOSEB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_CLOSEB">Smarty_Internal_Configfileparser::TPC_CLOSEB</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_COMMENTSTART - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_COMMENTSTART">Smarty_Internal_Configfileparser::TPC_COMMENTSTART</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_DOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_DOT">Smarty_Internal_Configfileparser::TPC_DOT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_DOUBLE_QUOTED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_DOUBLE_QUOTED_STRING">Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_EQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_EQUAL">Smarty_Internal_Configfileparser::TPC_EQUAL</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_FLOAT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_FLOAT">Smarty_Internal_Configfileparser::TPC_FLOAT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_ID - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_ID">Smarty_Internal_Configfileparser::TPC_ID</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_INT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_INT">Smarty_Internal_Configfileparser::TPC_INT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_NAKED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_NAKED_STRING">Smarty_Internal_Configfileparser::TPC_NAKED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_NEWLINE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_NEWLINE">Smarty_Internal_Configfileparser::TPC_NEWLINE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_OPENB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_OPENB">Smarty_Internal_Configfileparser::TPC_OPENB</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_SECTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_SECTION">Smarty_Internal_Configfileparser::TPC_SECTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_SINGLE_QUOTED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_SINGLE_QUOTED_STRING">Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_TRIPPLE_DOUBLE_QUOTED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_TRIPPLE_DOUBLE_QUOTED_STRING">Smarty_Internal_Configfileparser::TPC_TRIPPLE_DOUBLE_QUOTED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_yyStackEntry - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html">TPC_yyStackEntry</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_yyToken - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html">TPC_yyToken</a> in smarty_internal_configfileparser.php</div> - <div class="index-item-description">Smarty Internal Plugin Configfileparser</div> - </dd> - <dt class="field"> - TP_ANDSYM - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ANDSYM">Smarty_Internal_Templateparser::TP_ANDSYM</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_APTR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_APTR">Smarty_Internal_Templateparser::TP_APTR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_AS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_AS">Smarty_Internal_Templateparser::TP_AS</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ASPENDTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ASPENDTAG">Smarty_Internal_Templateparser::TP_ASPENDTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ASPSTARTTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ASPSTARTTAG">Smarty_Internal_Templateparser::TP_ASPSTARTTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_AT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_AT">Smarty_Internal_Templateparser::TP_AT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_BACKTICK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_BACKTICK">Smarty_Internal_Templateparser::TP_BACKTICK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_CLOSEB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_CLOSEB">Smarty_Internal_Templateparser::TP_CLOSEB</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_CLOSEP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_CLOSEP">Smarty_Internal_Templateparser::TP_CLOSEP</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_COLON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_COLON">Smarty_Internal_Templateparser::TP_COLON</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_COMMA - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_COMMA">Smarty_Internal_Templateparser::TP_COMMA</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_COMMENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_COMMENT">Smarty_Internal_Templateparser::TP_COMMENT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOLLAR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOLLAR">Smarty_Internal_Templateparser::TP_DOLLAR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOLLARID - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOLLARID">Smarty_Internal_Templateparser::TP_DOLLARID</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOT">Smarty_Internal_Templateparser::TP_DOT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOUBLECOLON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOUBLECOLON">Smarty_Internal_Templateparser::TP_DOUBLECOLON</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_EQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_EQUAL">Smarty_Internal_Templateparser::TP_EQUAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_EQUALS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_EQUALS">Smarty_Internal_Templateparser::TP_EQUALS</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_FAKEPHPSTARTTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_FAKEPHPSTARTTAG">Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_GREATEREQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_GREATEREQUAL">Smarty_Internal_Templateparser::TP_GREATEREQUAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_GREATERTHAN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_GREATERTHAN">Smarty_Internal_Templateparser::TP_GREATERTHAN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_HATCH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_HATCH">Smarty_Internal_Templateparser::TP_HATCH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_HEX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_HEX">Smarty_Internal_Templateparser::TP_HEX</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ID - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ID">Smarty_Internal_Templateparser::TP_ID</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_IDENTITY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_IDENTITY">Smarty_Internal_Templateparser::TP_IDENTITY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_INCDEC - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_INCDEC">Smarty_Internal_Templateparser::TP_INCDEC</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_INSTANCEOF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_INSTANCEOF">Smarty_Internal_Templateparser::TP_INSTANCEOF</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_INTEGER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_INTEGER">Smarty_Internal_Templateparser::TP_INTEGER</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISDIVBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISDIVBY">Smarty_Internal_Templateparser::TP_ISDIVBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISEVEN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISEVEN">Smarty_Internal_Templateparser::TP_ISEVEN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISEVENBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISEVENBY">Smarty_Internal_Templateparser::TP_ISEVENBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISIN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISIN">Smarty_Internal_Templateparser::TP_ISIN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTDIVBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTDIVBY">Smarty_Internal_Templateparser::TP_ISNOTDIVBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTEVEN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTEVEN">Smarty_Internal_Templateparser::TP_ISNOTEVEN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTEVENBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTEVENBY">Smarty_Internal_Templateparser::TP_ISNOTEVENBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTODD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTODD">Smarty_Internal_Templateparser::TP_ISNOTODD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTODDBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTODDBY">Smarty_Internal_Templateparser::TP_ISNOTODDBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISODD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISODD">Smarty_Internal_Templateparser::TP_ISODD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISODDBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISODDBY">Smarty_Internal_Templateparser::TP_ISODDBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LAND - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LAND">Smarty_Internal_Templateparser::TP_LAND</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDEL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDEL">Smarty_Internal_Templateparser::TP_LDEL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELFOR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELFOR">Smarty_Internal_Templateparser::TP_LDELFOR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELFOREACH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELFOREACH">Smarty_Internal_Templateparser::TP_LDELFOREACH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELIF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELIF">Smarty_Internal_Templateparser::TP_LDELIF</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELSETFILTER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELSETFILTER">Smarty_Internal_Templateparser::TP_LDELSETFILTER</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELSLASH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELSLASH">Smarty_Internal_Templateparser::TP_LDELSLASH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LESSEQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LESSEQUAL">Smarty_Internal_Templateparser::TP_LESSEQUAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LESSTHAN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LESSTHAN">Smarty_Internal_Templateparser::TP_LESSTHAN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LINEBREAK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LINEBREAK">Smarty_Internal_Templateparser::TP_LINEBREAK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LITERAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LITERAL">Smarty_Internal_Templateparser::TP_LITERAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LITERALEND - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LITERALEND">Smarty_Internal_Templateparser::TP_LITERALEND</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LITERALSTART - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LITERALSTART">Smarty_Internal_Templateparser::TP_LITERALSTART</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LOR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LOR">Smarty_Internal_Templateparser::TP_LOR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LXOR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LXOR">Smarty_Internal_Templateparser::TP_LXOR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_MATH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_MATH">Smarty_Internal_Templateparser::TP_MATH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_MOD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_MOD">Smarty_Internal_Templateparser::TP_MOD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_NONEIDENTITY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_NONEIDENTITY">Smarty_Internal_Templateparser::TP_NONEIDENTITY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_NOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_NOT">Smarty_Internal_Templateparser::TP_NOT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_NOTEQUALS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_NOTEQUALS">Smarty_Internal_Templateparser::TP_NOTEQUALS</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_OPENB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_OPENB">Smarty_Internal_Templateparser::TP_OPENB</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_OPENP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_OPENP">Smarty_Internal_Templateparser::TP_OPENP</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_OTHER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_OTHER">Smarty_Internal_Templateparser::TP_OTHER</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_PHPENDTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_PHPENDTAG">Smarty_Internal_Templateparser::TP_PHPENDTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_PHPSTARTTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_PHPSTARTTAG">Smarty_Internal_Templateparser::TP_PHPSTARTTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_PTR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_PTR">Smarty_Internal_Templateparser::TP_PTR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_QMARK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_QMARK">Smarty_Internal_Templateparser::TP_QMARK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_QUOTE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_QUOTE">Smarty_Internal_Templateparser::TP_QUOTE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_RDEL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_RDEL">Smarty_Internal_Templateparser::TP_RDEL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SEMICOLON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SEMICOLON">Smarty_Internal_Templateparser::TP_SEMICOLON</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SINGLEQUOTESTRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SINGLEQUOTESTRING">Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SMARTYBLOCKCHILD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SMARTYBLOCKCHILD">Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SPACE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SPACE">Smarty_Internal_Templateparser::TP_SPACE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_STEP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_STEP">Smarty_Internal_Templateparser::TP_STEP</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_TO - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_TO">Smarty_Internal_Templateparser::TP_TO</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_TYPECAST - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_TYPECAST">Smarty_Internal_Templateparser::TP_TYPECAST</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_UNIMATH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_UNIMATH">Smarty_Internal_Templateparser::TP_UNIMATH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_VERT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_VERT">Smarty_Internal_Templateparser::TP_VERT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_XMLTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_XMLTAG">Smarty_Internal_Templateparser::TP_XMLTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_yyStackEntry - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html">TP_yyStackEntry</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_yyToken - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html">TP_yyToken</a> in smarty_internal_templateparser.php</div> - <div class="index-item-description">Smarty Internal Plugin Templateparser</div> - </dd> - <dt class="field"> - <span class="method-title">Trace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodTrace">Smarty_Internal_Configfileparser::Trace()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">Trace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodTrace">Smarty_Internal_Templateparser::Trace()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">trigger_config_file_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#methodtrigger_config_file_error">Smarty_Internal_Config_File_Compiler::trigger_config_file_error()</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">display compiler error messages without dying</div> - </dd> - <dt class="field"> - <span class="method-title">trigger_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodtrigger_error">SmartyBC::trigger_error()</a> in SmartyBC.class.php</div> - <div class="index-item-description">trigger Smarty error</div> - </dd> - <dt class="field"> - <span class="method-title">trigger_template_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodtrigger_template_error">Smarty_Internal_TemplateCompilerBase::trigger_template_error()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">display compiler error messages without dying</div> - </dd> - </dl> - <a name="u"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">u</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$uid</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$uid">Smarty_Template_Source::$uid</a> in smarty_resource.php</div> - <div class="index-item-description">Unique Template ID</div> - </dd> - <dt class="field"> - <span class="var-title">$uncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$uncompiled">Smarty_Template_Source::$uncompiled</a> in smarty_resource.php</div> - <div class="index-item-description">Source is bypassing compiler</div> - </dd> - <dt class="field"> - <span class="var-title">$used_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$used_tags">Smarty_Internal_Template::$used_tags</a> in smarty_internal_template.php</div> - <div class="index-item-description">optional log of tag/attributes</div> - </dd> - <dt class="field"> - <span class="var-title">$use_include_path</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$use_include_path">Smarty::$use_include_path</a> in Smarty.class.php</div> - <div class="index-item-description">look up relative filepaths in include_path</div> - </dd> - <dt class="field"> - <span class="var-title">$use_sub_dirs</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$use_sub_dirs">Smarty::$use_sub_dirs</a> in Smarty.class.php</div> - <div class="index-item-description">use sub dirs for compiled/cached files?</div> - </dd> - <dt class="field"> - Undefined_Smarty_Variable - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Undefined_Smarty_Variable.html">Undefined_Smarty_Variable</a> in smarty_internal_data.php</div> - <div class="index-item-description">class for undefined variable object</div> - </dd> - <dt class="field"> - <span class="method-title">unmuteExpectedErrors</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodunmuteExpectedErrors">Smarty::unmuteExpectedErrors()</a> in Smarty.class.php</div> - <div class="index-item-description">Disable error handler muting expected messages</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterCacheResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterCacheResource">Smarty_Internal_TemplateBase::unregisterCacheResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregisters a cache resource</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterFilter">Smarty_Internal_TemplateBase::unregisterFilter()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregisters a filter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterObject</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterObject">Smarty_Internal_TemplateBase::unregisterObject()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">unregister an object</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterPlugin">Smarty_Internal_TemplateBase::unregisterPlugin()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregister Plugin</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterResource">Smarty_Internal_TemplateBase::unregisterResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregisters a resource</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_block</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_block">SmartyBC::unregister_block()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters block function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_compiler_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_compiler_function">SmartyBC::unregister_compiler_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters compiler function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_function">SmartyBC::unregister_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters custom function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_modifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_modifier">SmartyBC::unregister_modifier()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters modifier</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_object</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_object">SmartyBC::unregister_object()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters object</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_outputfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_outputfilter">SmartyBC::unregister_outputfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters an outputfilter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_postfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_postfilter">SmartyBC::unregister_postfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters a postfilter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_prefilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_prefilter">SmartyBC::unregister_prefilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters a prefilter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_resource">SmartyBC::unregister_resource()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters a resource</div> - </dd> - </dl> - <a name="v"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">v</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$valid</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$valid">Smarty_Template_Cached::$valid</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Cache Is Valid</div> - </dd> - <dt class="field"> - <span class="var-title">$value</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$value">Smarty_Internal_Templatelexer::$value</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$value</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#var$value">Smarty_Variable::$value</a> in smarty_internal_data.php</div> - <div class="index-item-description">template variable</div> - </dd> - <dt class="field"> - <span class="var-title">$value</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$value">Smarty_Internal_Configfilelexer::$value</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$variable_filters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$variable_filters">Smarty_Internal_Template::$variable_filters</a> in smarty_internal_template.php</div> - <div class="index-item-description">variable filters</div> - </dd> - <dt class="field"> - <span class="include-title">variablefilter.htmlspecialchars.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html">variablefilter.htmlspecialchars.php</a> in variablefilter.htmlspecialchars.php</div> - </dd> - <dt class="field"> - VALUE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constVALUE">Smarty_Internal_Configfilelexer::VALUE</a> in smarty_internal_configfilelexer.php</div> - </dd> - </dl> - <a name="w"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">w</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$write_compiled_code</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$write_compiled_code">Smarty_Internal_TemplateCompilerBase::$write_compiled_code</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">flag if compiled template file shall we written</div> - </dd> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methodwrite">Smarty_CacheResource_Apc::write()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Save values for a set of keys to cache</div> - </dd> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#methodwrite">Smarty_Template_Cached::write()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Write this cache object to handler</div> - </dd> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwrite">Smarty_CacheResource_KeyValueStore::write()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Save values for a set of keys to cache</div> - </dd> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methodwrite">Smarty_CacheResource_Memcache::write()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Save values for a set of keys to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodwriteCachedContent">Smarty_Internal_Template::writeCachedContent()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Writes the cached template output</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodwriteCachedContent">Smarty_CacheResource_Custom::writeCachedContent()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodwriteCachedContent">Smarty_Internal_CacheResource_File::writeCachedContent()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwriteCachedContent">Smarty_CacheResource_KeyValueStore::writeCachedContent()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeFile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Write_File.html#methodwriteFile">Smarty_Internal_Write_File::writeFile()</a> in smarty_internal_write_file.php</div> - <div class="index-item-description">Writes file in a safe way to disk</div> - </dd> - </dl> - <a name="y"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">y</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$yyerrcnt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyerrcnt">Smarty_Internal_Configfileparser::$yyerrcnt</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyerrcnt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyerrcnt">Smarty_Internal_Templateparser::$yyerrcnt</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyExpectedTokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyExpectedTokens">Smarty_Internal_Templateparser::$yyExpectedTokens</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyExpectedTokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyExpectedTokens">Smarty_Internal_Configfileparser::$yyExpectedTokens</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyFallback</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyFallback">Smarty_Internal_Templateparser::$yyFallback</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyFallback</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyFallback">Smarty_Internal_Configfileparser::$yyFallback</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyidx</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyidx">Smarty_Internal_Templateparser::$yyidx</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyidx</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyidx">Smarty_Internal_Configfileparser::$yyidx</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyReduceMap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyReduceMap">Smarty_Internal_Configfileparser::$yyReduceMap</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyReduceMap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyReduceMap">Smarty_Internal_Templateparser::$yyReduceMap</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleInfo</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyRuleInfo">Smarty_Internal_Configfileparser::$yyRuleInfo</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleInfo</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyRuleInfo">Smarty_Internal_Templateparser::$yyRuleInfo</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyRuleName">Smarty_Internal_Templateparser::$yyRuleName</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyRuleName">Smarty_Internal_Configfileparser::$yyRuleName</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yystack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yystack">Smarty_Internal_Templateparser::$yystack</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yystack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yystack">Smarty_Internal_Configfileparser::$yystack</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyTokenName">Smarty_Internal_Configfileparser::$yyTokenName</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyTokenName">Smarty_Internal_Templateparser::$yyTokenName</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTraceFILE</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyTraceFILE">Smarty_Internal_Configfileparser::$yyTraceFILE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTraceFILE</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyTraceFILE">Smarty_Internal_Templateparser::$yyTraceFILE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTracePrompt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyTracePrompt">Smarty_Internal_Templateparser::$yyTracePrompt</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTracePrompt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyTracePrompt">Smarty_Internal_Configfileparser::$yyTracePrompt</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_action">Smarty_Internal_Configfileparser::$yy_action</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_action">Smarty_Internal_Templateparser::$yy_action</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_default</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_default">Smarty_Internal_Configfileparser::$yy_default</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_default</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_default">Smarty_Internal_Templateparser::$yy_default</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_lookahead</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_lookahead">Smarty_Internal_Configfileparser::$yy_lookahead</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_lookahead</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_lookahead">Smarty_Internal_Templateparser::$yy_lookahead</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_reduce_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_reduce_ofst">Smarty_Internal_Configfileparser::$yy_reduce_ofst</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_reduce_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_reduce_ofst">Smarty_Internal_Templateparser::$yy_reduce_ofst</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_shift_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_shift_ofst">Smarty_Internal_Templateparser::$yy_shift_ofst</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_shift_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_shift_ofst">Smarty_Internal_Configfileparser::$yy_shift_ofst</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yybegin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyybegin">Smarty_Internal_Templatelexer::yybegin()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yybegin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyybegin">Smarty_Internal_Configfilelexer::yybegin()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - YYERRORSYMBOL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYERRORSYMBOL">Smarty_Internal_Configfileparser::YYERRORSYMBOL</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYERRORSYMBOL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYERRORSYMBOL">Smarty_Internal_Templateparser::YYERRORSYMBOL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYERRSYMDT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYERRSYMDT">Smarty_Internal_Configfileparser::YYERRSYMDT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYERRSYMDT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYERRSYMDT">Smarty_Internal_Templateparser::YYERRSYMDT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYFALLBACK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYFALLBACK">Smarty_Internal_Configfileparser::YYFALLBACK</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYFALLBACK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYFALLBACK">Smarty_Internal_Templateparser::YYFALLBACK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex">Smarty_Internal_Configfilelexer::yylex()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex">Smarty_Internal_Templatelexer::yylex()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex1">Smarty_Internal_Templatelexer::yylex1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex1">Smarty_Internal_Configfilelexer::yylex1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex2">Smarty_Internal_Templatelexer::yylex2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex2">Smarty_Internal_Configfilelexer::yylex2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex3">Smarty_Internal_Templatelexer::yylex3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex3">Smarty_Internal_Configfilelexer::yylex3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex4">Smarty_Internal_Templatelexer::yylex4()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex4">Smarty_Internal_Configfilelexer::yylex4()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex5">Smarty_Internal_Configfilelexer::yylex5()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - YYNOCODE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYNOCODE">Smarty_Internal_Configfileparser::YYNOCODE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYNOCODE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYNOCODE">Smarty_Internal_Templateparser::YYNOCODE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYNRULE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYNRULE">Smarty_Internal_Templateparser::YYNRULE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYNRULE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYNRULE">Smarty_Internal_Configfileparser::YYNRULE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYNSTATE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYNSTATE">Smarty_Internal_Configfileparser::YYNSTATE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYNSTATE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYNSTATE">Smarty_Internal_Templateparser::YYNSTATE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypopstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyypopstate">Smarty_Internal_Configfilelexer::yypopstate()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypopstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyypopstate">Smarty_Internal_Templatelexer::yypopstate()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypushstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyypushstate">Smarty_Internal_Configfilelexer::yypushstate()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypushstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyypushstate">Smarty_Internal_Templatelexer::yypushstate()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - YYSTACKDEPTH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYSTACKDEPTH">Smarty_Internal_Templateparser::YYSTACKDEPTH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYSTACKDEPTH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYSTACKDEPTH">Smarty_Internal_Configfileparser::YYSTACKDEPTH</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_accept</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_accept">Smarty_Internal_Configfileparser::yy_accept()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_accept</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_accept">Smarty_Internal_Templateparser::yy_accept()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_ACCEPT_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_ACCEPT_ACTION">Smarty_Internal_Templateparser::YY_ACCEPT_ACTION</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_ACCEPT_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_ACCEPT_ACTION">Smarty_Internal_Configfileparser::YY_ACCEPT_ACTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_destructor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_destructor">Smarty_Internal_Templateparser::yy_destructor()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_destructor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_destructor">Smarty_Internal_Configfileparser::yy_destructor()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_ERROR_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_ERROR_ACTION">Smarty_Internal_Configfileparser::YY_ERROR_ACTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_ERROR_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_ERROR_ACTION">Smarty_Internal_Templateparser::YY_ERROR_ACTION</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_reduce_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_find_reduce_action">Smarty_Internal_Templateparser::yy_find_reduce_action()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_reduce_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_find_reduce_action">Smarty_Internal_Configfileparser::yy_find_reduce_action()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_shift_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_find_shift_action">Smarty_Internal_Configfileparser::yy_find_shift_action()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_shift_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_find_shift_action">Smarty_Internal_Templateparser::yy_find_shift_action()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_get_expected_tokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_get_expected_tokens">Smarty_Internal_Configfileparser::yy_get_expected_tokens()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_get_expected_tokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_get_expected_tokens">Smarty_Internal_Templateparser::yy_get_expected_tokens()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_is_expected_token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_is_expected_token">Smarty_Internal_Templateparser::yy_is_expected_token()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_is_expected_token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_is_expected_token">Smarty_Internal_Configfileparser::yy_is_expected_token()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_NO_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_NO_ACTION">Smarty_Internal_Configfileparser::YY_NO_ACTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_NO_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_NO_ACTION">Smarty_Internal_Templateparser::YY_NO_ACTION</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_parse_failed</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_parse_failed">Smarty_Internal_Templateparser::yy_parse_failed()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_parse_failed</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_parse_failed">Smarty_Internal_Configfileparser::yy_parse_failed()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_pop_parser_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_pop_parser_stack">Smarty_Internal_Templateparser::yy_pop_parser_stack()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_pop_parser_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_pop_parser_stack">Smarty_Internal_Configfileparser::yy_pop_parser_stack()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r0</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r0">Smarty_Internal_Templateparser::yy_r0()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r0</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r0">Smarty_Internal_Configfileparser::yy_r0()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r1">Smarty_Internal_Templateparser::yy_r1()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r1">Smarty_Internal_Configfileparser::yy_r1()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_1">Smarty_Internal_Configfilelexer::yy_r1_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_1">Smarty_Internal_Templatelexer::yy_r1_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_2">Smarty_Internal_Configfilelexer::yy_r1_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_2">Smarty_Internal_Templatelexer::yy_r1_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_3">Smarty_Internal_Configfilelexer::yy_r1_3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_3">Smarty_Internal_Templatelexer::yy_r1_3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_4">Smarty_Internal_Configfilelexer::yy_r1_4()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_5">Smarty_Internal_Configfilelexer::yy_r1_5()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_5">Smarty_Internal_Templatelexer::yy_r1_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_6">Smarty_Internal_Configfilelexer::yy_r1_6()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_6">Smarty_Internal_Templatelexer::yy_r1_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_7">Smarty_Internal_Configfilelexer::yy_r1_7()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_7">Smarty_Internal_Templatelexer::yy_r1_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_8">Smarty_Internal_Templatelexer::yy_r1_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_9">Smarty_Internal_Templatelexer::yy_r1_9()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_10">Smarty_Internal_Templatelexer::yy_r1_10()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_11">Smarty_Internal_Templatelexer::yy_r1_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_12">Smarty_Internal_Templatelexer::yy_r1_12()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_14">Smarty_Internal_Templatelexer::yy_r1_14()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_15">Smarty_Internal_Templatelexer::yy_r1_15()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_16">Smarty_Internal_Templatelexer::yy_r1_16()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_17">Smarty_Internal_Templatelexer::yy_r1_17()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_18</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_18">Smarty_Internal_Templatelexer::yy_r1_18()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_19</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_19">Smarty_Internal_Templatelexer::yy_r1_19()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_20</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_20">Smarty_Internal_Templatelexer::yy_r1_20()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_21</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_21">Smarty_Internal_Templatelexer::yy_r1_21()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_22</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_22">Smarty_Internal_Templatelexer::yy_r1_22()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_23</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_23">Smarty_Internal_Templatelexer::yy_r1_23()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_24</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_24">Smarty_Internal_Templatelexer::yy_r1_24()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_27</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_27">Smarty_Internal_Templatelexer::yy_r1_27()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_28</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_28">Smarty_Internal_Templatelexer::yy_r1_28()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_1">Smarty_Internal_Configfilelexer::yy_r2_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_1">Smarty_Internal_Templatelexer::yy_r2_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_2">Smarty_Internal_Configfilelexer::yy_r2_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_2">Smarty_Internal_Templatelexer::yy_r2_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_3">Smarty_Internal_Configfilelexer::yy_r2_3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_3">Smarty_Internal_Templatelexer::yy_r2_3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_4">Smarty_Internal_Configfilelexer::yy_r2_4()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_5">Smarty_Internal_Configfilelexer::yy_r2_5()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_5">Smarty_Internal_Templatelexer::yy_r2_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_6">Smarty_Internal_Configfilelexer::yy_r2_6()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_6">Smarty_Internal_Templatelexer::yy_r2_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_7">Smarty_Internal_Templatelexer::yy_r2_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_8">Smarty_Internal_Templatelexer::yy_r2_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_8">Smarty_Internal_Configfilelexer::yy_r2_8()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_9">Smarty_Internal_Templatelexer::yy_r2_9()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_9">Smarty_Internal_Configfilelexer::yy_r2_9()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_10">Smarty_Internal_Templatelexer::yy_r2_10()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_10">Smarty_Internal_Configfilelexer::yy_r2_10()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_11">Smarty_Internal_Templatelexer::yy_r2_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_12">Smarty_Internal_Templatelexer::yy_r2_12()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_13">Smarty_Internal_Templatelexer::yy_r2_13()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_14">Smarty_Internal_Templatelexer::yy_r2_14()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_15">Smarty_Internal_Templatelexer::yy_r2_15()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_16">Smarty_Internal_Templatelexer::yy_r2_16()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_17">Smarty_Internal_Templatelexer::yy_r2_17()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_18</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_18">Smarty_Internal_Templatelexer::yy_r2_18()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_19</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_19">Smarty_Internal_Templatelexer::yy_r2_19()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_20</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_20">Smarty_Internal_Templatelexer::yy_r2_20()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_22</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_22">Smarty_Internal_Templatelexer::yy_r2_22()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_24</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_24">Smarty_Internal_Templatelexer::yy_r2_24()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_26</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_26">Smarty_Internal_Templatelexer::yy_r2_26()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_27</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_27">Smarty_Internal_Templatelexer::yy_r2_27()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_28</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_28">Smarty_Internal_Templatelexer::yy_r2_28()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_29</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_29">Smarty_Internal_Templatelexer::yy_r2_29()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_30</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_30">Smarty_Internal_Templatelexer::yy_r2_30()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_31</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_31">Smarty_Internal_Templatelexer::yy_r2_31()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_32</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_32">Smarty_Internal_Templatelexer::yy_r2_32()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_33</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_33">Smarty_Internal_Templatelexer::yy_r2_33()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_34</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_34">Smarty_Internal_Templatelexer::yy_r2_34()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_35</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_35">Smarty_Internal_Templatelexer::yy_r2_35()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_36</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_36">Smarty_Internal_Templatelexer::yy_r2_36()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_37</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_37">Smarty_Internal_Templatelexer::yy_r2_37()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_38</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_38">Smarty_Internal_Templatelexer::yy_r2_38()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_39</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_39">Smarty_Internal_Templatelexer::yy_r2_39()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_40</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_40">Smarty_Internal_Templatelexer::yy_r2_40()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_41</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_41">Smarty_Internal_Templatelexer::yy_r2_41()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_42</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_42">Smarty_Internal_Templatelexer::yy_r2_42()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_43</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_43">Smarty_Internal_Templatelexer::yy_r2_43()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_47</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_47">Smarty_Internal_Templatelexer::yy_r2_47()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_48</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_48">Smarty_Internal_Templatelexer::yy_r2_48()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_49</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_49">Smarty_Internal_Templatelexer::yy_r2_49()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_50</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_50">Smarty_Internal_Templatelexer::yy_r2_50()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_51</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_51">Smarty_Internal_Templatelexer::yy_r2_51()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_52</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_52">Smarty_Internal_Templatelexer::yy_r2_52()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_53</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_53">Smarty_Internal_Templatelexer::yy_r2_53()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_54</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_54">Smarty_Internal_Templatelexer::yy_r2_54()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_55</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_55">Smarty_Internal_Templatelexer::yy_r2_55()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_57</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_57">Smarty_Internal_Templatelexer::yy_r2_57()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_59</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_59">Smarty_Internal_Templatelexer::yy_r2_59()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_60</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_60">Smarty_Internal_Templatelexer::yy_r2_60()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_61</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_61">Smarty_Internal_Templatelexer::yy_r2_61()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_62</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_62">Smarty_Internal_Templatelexer::yy_r2_62()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_63</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_63">Smarty_Internal_Templatelexer::yy_r2_63()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_64</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_64">Smarty_Internal_Templatelexer::yy_r2_64()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_65</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_65">Smarty_Internal_Templatelexer::yy_r2_65()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_66</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_66">Smarty_Internal_Templatelexer::yy_r2_66()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_67</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_67">Smarty_Internal_Templatelexer::yy_r2_67()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_68</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_68">Smarty_Internal_Templatelexer::yy_r2_68()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_69</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_69">Smarty_Internal_Templatelexer::yy_r2_69()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_70</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_70">Smarty_Internal_Templatelexer::yy_r2_70()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_71</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_71">Smarty_Internal_Templatelexer::yy_r2_71()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_72</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_72">Smarty_Internal_Templatelexer::yy_r2_72()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_73</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_73">Smarty_Internal_Templatelexer::yy_r2_73()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_74</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_74">Smarty_Internal_Templatelexer::yy_r2_74()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_75</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_75">Smarty_Internal_Templatelexer::yy_r2_75()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_76</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_76">Smarty_Internal_Templatelexer::yy_r2_76()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r3_1">Smarty_Internal_Configfilelexer::yy_r3_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_1">Smarty_Internal_Templatelexer::yy_r3_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_2">Smarty_Internal_Templatelexer::yy_r3_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_3">Smarty_Internal_Templatelexer::yy_r3_3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_4">Smarty_Internal_Templatelexer::yy_r3_4()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_5">Smarty_Internal_Templatelexer::yy_r3_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_6">Smarty_Internal_Templatelexer::yy_r3_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_7">Smarty_Internal_Templatelexer::yy_r3_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_8">Smarty_Internal_Templatelexer::yy_r3_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_11">Smarty_Internal_Templatelexer::yy_r3_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r4">Smarty_Internal_Templateparser::yy_r4()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r4">Smarty_Internal_Configfileparser::yy_r4()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_1">Smarty_Internal_Templatelexer::yy_r4_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r4_1">Smarty_Internal_Configfilelexer::yy_r4_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_2">Smarty_Internal_Templatelexer::yy_r4_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r4_2">Smarty_Internal_Configfilelexer::yy_r4_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r4_3">Smarty_Internal_Configfilelexer::yy_r4_3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_4">Smarty_Internal_Templatelexer::yy_r4_4()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_5">Smarty_Internal_Templatelexer::yy_r4_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_6">Smarty_Internal_Templatelexer::yy_r4_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_7">Smarty_Internal_Templatelexer::yy_r4_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_8">Smarty_Internal_Templatelexer::yy_r4_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_9">Smarty_Internal_Templatelexer::yy_r4_9()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_10">Smarty_Internal_Templatelexer::yy_r4_10()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_11">Smarty_Internal_Templatelexer::yy_r4_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_12">Smarty_Internal_Templatelexer::yy_r4_12()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_13">Smarty_Internal_Templatelexer::yy_r4_13()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_17">Smarty_Internal_Templatelexer::yy_r4_17()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_18</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_18">Smarty_Internal_Templatelexer::yy_r4_18()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r5">Smarty_Internal_Configfileparser::yy_r5()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r5">Smarty_Internal_Templateparser::yy_r5()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r5_1">Smarty_Internal_Configfilelexer::yy_r5_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r5_2">Smarty_Internal_Configfilelexer::yy_r5_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r6">Smarty_Internal_Configfileparser::yy_r6()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r6">Smarty_Internal_Templateparser::yy_r6()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r7">Smarty_Internal_Configfileparser::yy_r7()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r7">Smarty_Internal_Templateparser::yy_r7()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r8">Smarty_Internal_Configfileparser::yy_r8()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r8">Smarty_Internal_Templateparser::yy_r8()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r9">Smarty_Internal_Configfileparser::yy_r9()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r9">Smarty_Internal_Templateparser::yy_r9()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r10">Smarty_Internal_Templateparser::yy_r10()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r10">Smarty_Internal_Configfileparser::yy_r10()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r11">Smarty_Internal_Templateparser::yy_r11()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r11">Smarty_Internal_Configfileparser::yy_r11()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r12">Smarty_Internal_Configfileparser::yy_r12()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r12">Smarty_Internal_Templateparser::yy_r12()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r13">Smarty_Internal_Configfileparser::yy_r13()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r13">Smarty_Internal_Templateparser::yy_r13()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r14">Smarty_Internal_Templateparser::yy_r14()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r14">Smarty_Internal_Configfileparser::yy_r14()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r15">Smarty_Internal_Templateparser::yy_r15()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r15">Smarty_Internal_Configfileparser::yy_r15()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r16">Smarty_Internal_Templateparser::yy_r16()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r16">Smarty_Internal_Configfileparser::yy_r16()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r17">Smarty_Internal_Templateparser::yy_r17()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r19</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r19">Smarty_Internal_Templateparser::yy_r19()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r21</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r21">Smarty_Internal_Templateparser::yy_r21()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r23</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r23">Smarty_Internal_Templateparser::yy_r23()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r24</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r24">Smarty_Internal_Templateparser::yy_r24()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r25</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r25">Smarty_Internal_Templateparser::yy_r25()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r26</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r26">Smarty_Internal_Templateparser::yy_r26()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r27</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r27">Smarty_Internal_Templateparser::yy_r27()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r28</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r28">Smarty_Internal_Templateparser::yy_r28()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r29</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r29">Smarty_Internal_Templateparser::yy_r29()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r31</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r31">Smarty_Internal_Templateparser::yy_r31()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r33</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r33">Smarty_Internal_Templateparser::yy_r33()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r34</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r34">Smarty_Internal_Templateparser::yy_r34()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r35</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r35">Smarty_Internal_Templateparser::yy_r35()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r36</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r36">Smarty_Internal_Templateparser::yy_r36()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r37</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r37">Smarty_Internal_Templateparser::yy_r37()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r38</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r38">Smarty_Internal_Templateparser::yy_r38()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r39</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r39">Smarty_Internal_Templateparser::yy_r39()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r40</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r40">Smarty_Internal_Templateparser::yy_r40()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r41</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r41">Smarty_Internal_Templateparser::yy_r41()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r42</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r42">Smarty_Internal_Templateparser::yy_r42()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r44</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r44">Smarty_Internal_Templateparser::yy_r44()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r45</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r45">Smarty_Internal_Templateparser::yy_r45()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r47</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r47">Smarty_Internal_Templateparser::yy_r47()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r48</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r48">Smarty_Internal_Templateparser::yy_r48()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r49</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r49">Smarty_Internal_Templateparser::yy_r49()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r50</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r50">Smarty_Internal_Templateparser::yy_r50()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r51</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r51">Smarty_Internal_Templateparser::yy_r51()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r52</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r52">Smarty_Internal_Templateparser::yy_r52()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r53</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r53">Smarty_Internal_Templateparser::yy_r53()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r54</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r54">Smarty_Internal_Templateparser::yy_r54()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r55</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r55">Smarty_Internal_Templateparser::yy_r55()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r56</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r56">Smarty_Internal_Templateparser::yy_r56()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r57</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r57">Smarty_Internal_Templateparser::yy_r57()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r58</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r58">Smarty_Internal_Templateparser::yy_r58()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r59</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r59">Smarty_Internal_Templateparser::yy_r59()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r60</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r60">Smarty_Internal_Templateparser::yy_r60()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r61</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r61">Smarty_Internal_Templateparser::yy_r61()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r62</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r62">Smarty_Internal_Templateparser::yy_r62()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r63</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r63">Smarty_Internal_Templateparser::yy_r63()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r64</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r64">Smarty_Internal_Templateparser::yy_r64()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r65</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r65">Smarty_Internal_Templateparser::yy_r65()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r67</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r67">Smarty_Internal_Templateparser::yy_r67()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r72</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r72">Smarty_Internal_Templateparser::yy_r72()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r73</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r73">Smarty_Internal_Templateparser::yy_r73()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r78</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r78">Smarty_Internal_Templateparser::yy_r78()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r79</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r79">Smarty_Internal_Templateparser::yy_r79()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r83</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r83">Smarty_Internal_Templateparser::yy_r83()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r84</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r84">Smarty_Internal_Templateparser::yy_r84()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r85</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r85">Smarty_Internal_Templateparser::yy_r85()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r86</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r86">Smarty_Internal_Templateparser::yy_r86()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r88</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r88">Smarty_Internal_Templateparser::yy_r88()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r89</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r89">Smarty_Internal_Templateparser::yy_r89()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r90</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r90">Smarty_Internal_Templateparser::yy_r90()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r91</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r91">Smarty_Internal_Templateparser::yy_r91()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r92</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r92">Smarty_Internal_Templateparser::yy_r92()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r93</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r93">Smarty_Internal_Templateparser::yy_r93()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r99</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r99">Smarty_Internal_Templateparser::yy_r99()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r100</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r100">Smarty_Internal_Templateparser::yy_r100()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r101</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r101">Smarty_Internal_Templateparser::yy_r101()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r104</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r104">Smarty_Internal_Templateparser::yy_r104()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r109</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r109">Smarty_Internal_Templateparser::yy_r109()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r110</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r110">Smarty_Internal_Templateparser::yy_r110()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r111</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r111">Smarty_Internal_Templateparser::yy_r111()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r112</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r112">Smarty_Internal_Templateparser::yy_r112()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r114</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r114">Smarty_Internal_Templateparser::yy_r114()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r117</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r117">Smarty_Internal_Templateparser::yy_r117()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r118</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r118">Smarty_Internal_Templateparser::yy_r118()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r119</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r119">Smarty_Internal_Templateparser::yy_r119()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r121</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r121">Smarty_Internal_Templateparser::yy_r121()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r122</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r122">Smarty_Internal_Templateparser::yy_r122()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r124</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r124">Smarty_Internal_Templateparser::yy_r124()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r125</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r125">Smarty_Internal_Templateparser::yy_r125()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r126</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r126">Smarty_Internal_Templateparser::yy_r126()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r128</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r128">Smarty_Internal_Templateparser::yy_r128()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r129</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r129">Smarty_Internal_Templateparser::yy_r129()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r130</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r130">Smarty_Internal_Templateparser::yy_r130()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r131</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r131">Smarty_Internal_Templateparser::yy_r131()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r132</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r132">Smarty_Internal_Templateparser::yy_r132()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r133</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r133">Smarty_Internal_Templateparser::yy_r133()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r134</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r134">Smarty_Internal_Templateparser::yy_r134()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r135</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r135">Smarty_Internal_Templateparser::yy_r135()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r137</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r137">Smarty_Internal_Templateparser::yy_r137()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r139</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r139">Smarty_Internal_Templateparser::yy_r139()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r140</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r140">Smarty_Internal_Templateparser::yy_r140()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r141</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r141">Smarty_Internal_Templateparser::yy_r141()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r142</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r142">Smarty_Internal_Templateparser::yy_r142()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r143</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r143">Smarty_Internal_Templateparser::yy_r143()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r144</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r144">Smarty_Internal_Templateparser::yy_r144()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r145</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r145">Smarty_Internal_Templateparser::yy_r145()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r146</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r146">Smarty_Internal_Templateparser::yy_r146()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r147</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r147">Smarty_Internal_Templateparser::yy_r147()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r148</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r148">Smarty_Internal_Templateparser::yy_r148()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r149</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r149">Smarty_Internal_Templateparser::yy_r149()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r150</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r150">Smarty_Internal_Templateparser::yy_r150()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r151</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r151">Smarty_Internal_Templateparser::yy_r151()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r152</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r152">Smarty_Internal_Templateparser::yy_r152()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r153</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r153">Smarty_Internal_Templateparser::yy_r153()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r156</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r156">Smarty_Internal_Templateparser::yy_r156()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r157</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r157">Smarty_Internal_Templateparser::yy_r157()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r159</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r159">Smarty_Internal_Templateparser::yy_r159()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r160</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r160">Smarty_Internal_Templateparser::yy_r160()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r167</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r167">Smarty_Internal_Templateparser::yy_r167()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r168</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r168">Smarty_Internal_Templateparser::yy_r168()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r169</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r169">Smarty_Internal_Templateparser::yy_r169()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r170</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r170">Smarty_Internal_Templateparser::yy_r170()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r171</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r171">Smarty_Internal_Templateparser::yy_r171()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r172</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r172">Smarty_Internal_Templateparser::yy_r172()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r173</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r173">Smarty_Internal_Templateparser::yy_r173()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r174</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r174">Smarty_Internal_Templateparser::yy_r174()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r175</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r175">Smarty_Internal_Templateparser::yy_r175()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r176</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r176">Smarty_Internal_Templateparser::yy_r176()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r177</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r177">Smarty_Internal_Templateparser::yy_r177()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r178</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r178">Smarty_Internal_Templateparser::yy_r178()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r179</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r179">Smarty_Internal_Templateparser::yy_r179()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r180</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r180">Smarty_Internal_Templateparser::yy_r180()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r181</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r181">Smarty_Internal_Templateparser::yy_r181()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r183</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r183">Smarty_Internal_Templateparser::yy_r183()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r185</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r185">Smarty_Internal_Templateparser::yy_r185()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r186</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r186">Smarty_Internal_Templateparser::yy_r186()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r188</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r188">Smarty_Internal_Templateparser::yy_r188()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r189</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r189">Smarty_Internal_Templateparser::yy_r189()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r190</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r190">Smarty_Internal_Templateparser::yy_r190()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r191</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r191">Smarty_Internal_Templateparser::yy_r191()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r192</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r192">Smarty_Internal_Templateparser::yy_r192()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r194</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r194">Smarty_Internal_Templateparser::yy_r194()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r196</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r196">Smarty_Internal_Templateparser::yy_r196()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r197</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r197">Smarty_Internal_Templateparser::yy_r197()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r198</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r198">Smarty_Internal_Templateparser::yy_r198()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_reduce</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_reduce">Smarty_Internal_Configfileparser::yy_reduce()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_reduce</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_reduce">Smarty_Internal_Templateparser::yy_reduce()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_REDUCE_MAX">Smarty_Internal_Templateparser::YY_REDUCE_MAX</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_REDUCE_MAX">Smarty_Internal_Configfileparser::YY_REDUCE_MAX</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_REDUCE_USE_DFLT">Smarty_Internal_Configfileparser::YY_REDUCE_USE_DFLT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_REDUCE_USE_DFLT">Smarty_Internal_Templateparser::YY_REDUCE_USE_DFLT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_shift</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_shift">Smarty_Internal_Configfileparser::yy_shift()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_shift</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_shift">Smarty_Internal_Templateparser::yy_shift()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_SHIFT_MAX">Smarty_Internal_Templateparser::YY_SHIFT_MAX</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_SHIFT_MAX">Smarty_Internal_Configfileparser::YY_SHIFT_MAX</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_SHIFT_USE_DFLT">Smarty_Internal_Templateparser::YY_SHIFT_USE_DFLT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_SHIFT_USE_DFLT">Smarty_Internal_Configfileparser::YY_SHIFT_USE_DFLT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_syntax_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_syntax_error">Smarty_Internal_Templateparser::yy_syntax_error()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_syntax_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_syntax_error">Smarty_Internal_Configfileparser::yy_syntax_error()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_SZ_ACTTAB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_SZ_ACTTAB">Smarty_Internal_Templateparser::YY_SZ_ACTTAB</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SZ_ACTTAB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_SZ_ACTTAB">Smarty_Internal_Configfileparser::YY_SZ_ACTTAB</a> in smarty_internal_configfileparser.php</div> - </dd> - </dl> - <a name="_"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">_</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$_config_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_config_dir">Smarty_Security::$_config_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_current_file</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_current_file">Smarty::$_current_file</a> in Smarty.class.php</div> - <div class="index-item-description">required by the compiler for BC</div> - </dd> - <dt class="field"> - <span class="var-title">$_dir_perms</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_dir_perms">Smarty::$_dir_perms</a> in Smarty.class.php</div> - <div class="index-item-description">default dir permissions</div> - </dd> - <dt class="field"> - <span class="var-title">$_file_perms</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_file_perms">Smarty::$_file_perms</a> in Smarty.class.php</div> - <div class="index-item-description">default file permissions</div> - </dd> - <dt class="field"> - <span class="var-title">$_muted_directories</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_muted_directories">Smarty::$_muted_directories</a> in Smarty.class.php</div> - <div class="index-item-description">contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors()</div> - </dd> - <dt class="field"> - <span class="var-title">$_parserdebug</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_parserdebug">Smarty::$_parserdebug</a> in Smarty.class.php</div> - <div class="index-item-description">internal flag to enable parser debugging</div> - </dd> - <dt class="field"> - <span class="var-title">$_php_resource_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_php_resource_dir">Smarty_Security::$_php_resource_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_previous_error_handler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_previous_error_handler">Smarty::$_previous_error_handler</a> in Smarty.class.php</div> - <div class="index-item-description">error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors()</div> - </dd> - <dt class="field"> - <span class="var-title">$_properties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$_properties">Smarty_Template_Compiled::$_properties</a> in smarty_resource.php</div> - <div class="index-item-description">Metadata properties</div> - </dd> - <dt class="field"> - <span class="var-title">$_resource_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_resource_dir">Smarty_Security::$_resource_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_secure_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_secure_dir">Smarty_Security::$_secure_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_smarty_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_smarty_vars">Smarty::$_smarty_vars</a> in Smarty.class.php</div> - <div class="index-item-description">global internal smarty vars</div> - </dd> - <dt class="field"> - <span class="var-title">$_tag_objects</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$_tag_objects">Smarty_Internal_TemplateCompilerBase::$_tag_objects</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">compile tag objects</div> - </dd> - <dt class="field"> - <span class="var-title">$_tag_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_tag_stack">Smarty::$_tag_stack</a> in Smarty.class.php</div> - <div class="index-item-description">block tag hierarchy</div> - </dd> - <dt class="field"> - <span class="var-title">$_tag_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$_tag_stack">Smarty_Internal_TemplateCompilerBase::$_tag_stack</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">tag stack</div> - </dd> - <dt class="field"> - <span class="var-title">$_template_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_template_dir">Smarty_Security::$_template_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_trusted_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_trusted_dir">Smarty_Security::$_trusted_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_version</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#var$_version">SmartyBC::$_version</a> in SmartyBC.class.php</div> - <div class="index-item-description">Smarty 2 BC</div> - </dd> - <dt class="field"> - <span class="method-title">_count</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method_count">Smarty_Internal_Template::_count()</a> in smarty_internal_template.php</div> - <div class="index-item-description">[util function] counts an array, arrayaccess/traversable or PDOStatement object</div> - </dd> - <dt class="field"> - <span class="method-title">_get_filter_name</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#method_get_filter_name">Smarty_Internal_TemplateBase::_get_filter_name()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Return internal filter name</div> - </dd> - <dt class="field"> - <span class="method-title">__call</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#method__call">Smarty_Internal_TemplateBase::__call()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Handle unknown class methods</div> - </dd> - <dt class="field"> - <span class="method-title">__clone</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__clone">Smarty::__clone()</a> in Smarty.class.php</div> - <div class="index-item-description">magic>> set selfpointer on cloned object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#method__construct">Smarty_Internal_Resource_PHP::__construct()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Create a new PHP Resource</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#method__construct">Smarty_Security::__construct()</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__construct">Smarty_Internal_Template::__construct()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Create template data object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#method__construct">Smarty_Internal_SmartyTemplateCompiler::__construct()</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Initialize compiler</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#method__construct">Smarty_Template_Source::__construct()</a> in smarty_resource.php</div> - <div class="index-item-description">create Source Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#method__construct">Smarty_Template_Compiled::__construct()</a> in smarty_resource.php</div> - <div class="index-item-description">create Compiled Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#method__construct">Smarty_Internal_Templatelexer::__construct()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#method__construct">Smarty_Internal_TemplateCompilerBase::__construct()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Initialize compiler</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#method__construct">TP_yyToken::__construct()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#method__construct">Smarty_Internal_Templateparser::__construct()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#method__construct">Smarty_Variable::__construct()</a> in smarty_internal_data.php</div> - <div class="index-item-description">create Smarty variable object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#method__construct">TPC_yyToken::__construct()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#method__construct">SmartyBC::__construct()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Initialize new SmartyBC object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#method__construct">Smarty_Internal_Configfileparser::__construct()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#method__construct">Smarty_Internal_Configfilelexer::__construct()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#method__construct">Smarty_Template_Cached::__construct()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">create Cached Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html#method__construct">Smarty_Config_Source::__construct()</a> in smarty_config_source.php</div> - <div class="index-item-description">create Config Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#method__construct">Smarty_Resource_Mysqls::__construct()</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__construct">Smarty::__construct()</a> in Smarty.class.php</div> - <div class="index-item-description">Initialize new Smarty object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#method__construct">Smarty_Resource_Mysql::__construct()</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#method__construct">Smarty_CacheResource_Mysql::__construct()</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#method__construct">Smarty_CacheResource_Memcache::__construct()</a> in cacheresource.memcache.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Data.html#method__construct">Smarty_Data::__construct()</a> in smarty_internal_data.php</div> - <div class="index-item-description">create Smarty data object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#method__construct">Smarty_CacheResource_Apc::__construct()</a> in cacheresource.apc.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#method__construct">Smarty_Internal_Config_File_Compiler::__construct()</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Initialize compiler</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__destruct">Smarty_Internal_Template::__destruct()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template data object destrutor</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#method__destruct">Smarty_Internal_Configfileparser::__destruct()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#method__destruct">Smarty_Internal_Templateparser::__destruct()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__destruct">Smarty::__destruct()</a> in Smarty.class.php</div> - <div class="index-item-description">Class destructor</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#method__get">Smarty_Template_Source::__get()</a> in smarty_resource.php</div> - <div class="index-item-description">magic>> Generic getter.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__get">Smarty::__get()</a> in Smarty.class.php</div> - <div class="index-item-description">magic>> Generic getter.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html#method__get">Smarty_Config_Source::__get()</a> in smarty_config_source.php</div> - <div class="index-item-description">magic>> Generic getter.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Undefined_Smarty_Variable.html#method__get">Undefined_Smarty_Variable::__get()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Returns FALSE for 'nocache' and NULL otherwise.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__get">Smarty_Internal_Template::__get()</a> in smarty_internal_template.php</div> - <div class="index-item-description">get Smarty property in template context</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__set">Smarty::__set()</a> in Smarty.class.php</div> - <div class="index-item-description">magic>> Generic setter.</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__set">Smarty_Internal_Template::__set()</a> in smarty_internal_template.php</div> - <div class="index-item-description">set Smarty property in template context</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html#method__set">Smarty_Config_Source::__set()</a> in smarty_config_source.php</div> - <div class="index-item-description">magic>> Generic setter.</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#method__set">Smarty_Template_Source::__set()</a> in smarty_resource.php</div> - <div class="index-item-description">magic>> Generic Setter.</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Undefined_Smarty_Variable.html#method__toString">Undefined_Smarty_Variable::__toString()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Always returns an empty string.</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#method__toString">Smarty_Variable::__toString()</a> in smarty_internal_data.php</div> - <div class="index-item-description">magic>> String conversion</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#method__toString">TP_yyToken::__toString()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#method__toString">TPC_yyToken::__toString()</a> in smarty_internal_configfileparser.php</div> - </dd> - </dl> - -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex.html#a">a</a> - <a class="index-letter" href="elementindex.html#b">b</a> - <a class="index-letter" href="elementindex.html#c">c</a> - <a class="index-letter" href="elementindex.html#d">d</a> - <a class="index-letter" href="elementindex.html#e">e</a> - <a class="index-letter" href="elementindex.html#f">f</a> - <a class="index-letter" href="elementindex.html#g">g</a> - <a class="index-letter" href="elementindex.html#h">h</a> - <a class="index-letter" href="elementindex.html#i">i</a> - <a class="index-letter" href="elementindex.html#l">l</a> - <a class="index-letter" href="elementindex.html#m">m</a> - <a class="index-letter" href="elementindex.html#n">n</a> - <a class="index-letter" href="elementindex.html#o">o</a> - <a class="index-letter" href="elementindex.html#p">p</a> - <a class="index-letter" href="elementindex.html#r">r</a> - <a class="index-letter" href="elementindex.html#s">s</a> - <a class="index-letter" href="elementindex.html#t">t</a> - <a class="index-letter" href="elementindex.html#u">u</a> - <a class="index-letter" href="elementindex.html#v">v</a> - <a class="index-letter" href="elementindex.html#w">w</a> - <a class="index-letter" href="elementindex.html#y">y</a> - <a class="index-letter" href="elementindex.html#_">_</a> -</div> </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/elementindex_CacheResource-examples.html
Deleted
@@ -1,289 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <a name="top"></a> -<h2>[CacheResource-examples] element index</h2> - <h3>Package indexes</h3> - <ul> - <li><a href="elementindex_Example-application.html">Example-application</a></li> - <li><a href="elementindex_Smarty.html">Smarty</a></li> - <li><a href="elementindex_Resource-examples.html">Resource-examples</a></li> - </ul> -<a href="elementindex.html">All elements</a> -<br /> -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_CacheResource-examples.html#c">c</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#d">d</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#f">f</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#m">m</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#p">p</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#r">r</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#s">s</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#w">w</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#_">_</a> -</div> - - <a name="_"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">_</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#method__construct">Smarty_CacheResource_Mysql::__construct()</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#method__construct">Smarty_CacheResource_Memcache::__construct()</a> in cacheresource.memcache.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#method__construct">Smarty_CacheResource_Apc::__construct()</a> in cacheresource.apc.php</div> - </dd> - </dl> - <a name="c"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">c</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="include-title">cacheresource.apc.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/_demo---plugins---cacheresource.apc.php.html">cacheresource.apc.php</a> in cacheresource.apc.php</div> - </dd> - <dt class="field"> - <span class="include-title">cacheresource.memcache.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/_demo---plugins---cacheresource.memcache.php.html">cacheresource.memcache.php</a> in cacheresource.memcache.php</div> - </dd> - <dt class="field"> - <span class="include-title">cacheresource.mysql.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/_demo---plugins---cacheresource.mysql.php.html">cacheresource.mysql.php</a> in cacheresource.mysql.php</div> - </dd> - </dl> - <a name="d"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">d</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$db</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$db">Smarty_CacheResource_Mysql::$db</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methoddelete">Smarty_CacheResource_Mysql::delete()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">Delete content from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methoddelete">Smarty_CacheResource_Memcache::delete()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Remove values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methoddelete">Smarty_CacheResource_Apc::delete()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Remove values from cache</div> - </dd> - </dl> - <a name="f"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">f</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$fetch">Smarty_CacheResource_Mysql::$fetch</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="var-title">$fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$fetchTimestamp">Smarty_CacheResource_Mysql::$fetchTimestamp</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methodfetch">Smarty_CacheResource_Mysql::fetch()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">fetch cached content and its modification time from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methodfetchTimestamp">Smarty_CacheResource_Mysql::fetchTimestamp()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">Fetch cached content's modification timestamp from data source</div> - </dd> - </dl> - <a name="m"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">m</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$memcache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#var$memcache">Smarty_CacheResource_Memcache::$memcache</a> in cacheresource.memcache.php</div> - <div class="index-item-description">memcache instance</div> - </dd> - </dl> - <a name="p"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">p</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">purge</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methodpurge">Smarty_CacheResource_Memcache::purge()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Remove *all* values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">purge</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methodpurge">Smarty_CacheResource_Apc::purge()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Remove *all* values from cache</div> - </dd> - </dl> - <a name="r"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">r</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">read</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methodread">Smarty_CacheResource_Memcache::read()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Read values for a set of keys from cache</div> - </dd> - <dt class="field"> - <span class="method-title">read</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methodread">Smarty_CacheResource_Apc::read()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Read values for a set of keys from cache</div> - </dd> - </dl> - <a name="s"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">s</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$save</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#var$save">Smarty_CacheResource_Mysql::$save</a> in cacheresource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">save</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html#methodsave">Smarty_CacheResource_Mysql::save()</a> in cacheresource.mysql.php</div> - <div class="index-item-description">Save content to cache</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Apc - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html">Smarty_CacheResource_Apc</a> in cacheresource.apc.php</div> - <div class="index-item-description">APC CacheResource</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Memcache - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html">Smarty_CacheResource_Memcache</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Memcache CacheResource</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Mysql - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Mysql.html">Smarty_CacheResource_Mysql</a> in cacheresource.mysql.php</div> - <div class="index-item-description">MySQL CacheResource</div> - </dd> - </dl> - <a name="w"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">w</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Memcache.html#methodwrite">Smarty_CacheResource_Memcache::write()</a> in cacheresource.memcache.php</div> - <div class="index-item-description">Save values for a set of keys to cache</div> - </dd> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="CacheResource-examples/Smarty_CacheResource_Apc.html#methodwrite">Smarty_CacheResource_Apc::write()</a> in cacheresource.apc.php</div> - <div class="index-item-description">Save values for a set of keys to cache</div> - </dd> - </dl> - -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_CacheResource-examples.html#c">c</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#d">d</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#f">f</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#m">m</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#p">p</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#r">r</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#s">s</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#w">w</a> - <a class="index-letter" href="elementindex_CacheResource-examples.html#_">_</a> -</div> </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/elementindex_Example-application.html
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <a name="top"></a> -<h2>[Example-application] element index</h2> - <h3>Package indexes</h3> - <ul> - <li><a href="elementindex_CacheResource-examples.html">CacheResource-examples</a></li> - <li><a href="elementindex_Smarty.html">Smarty</a></li> - <li><a href="elementindex_Resource-examples.html">Resource-examples</a></li> - </ul> -<a href="elementindex.html">All elements</a> -<br /> -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_Example-application.html#i">i</a> -</div> - - <a name="i"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">i</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="include-title">index.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Example-application/_demo---index.php.html">index.php</a> in index.php</div> - </dd> - </dl> - -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_Example-application.html#i">i</a> -</div> </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/elementindex_Resource-examples.html
Deleted
@@ -1,206 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <a name="top"></a> -<h2>[Resource-examples] element index</h2> - <h3>Package indexes</h3> - <ul> - <li><a href="elementindex_Example-application.html">Example-application</a></li> - <li><a href="elementindex_CacheResource-examples.html">CacheResource-examples</a></li> - <li><a href="elementindex_Smarty.html">Smarty</a></li> - </ul> -<a href="elementindex.html">All elements</a> -<br /> -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_Resource-examples.html#d">d</a> - <a class="index-letter" href="elementindex_Resource-examples.html#f">f</a> - <a class="index-letter" href="elementindex_Resource-examples.html#m">m</a> - <a class="index-letter" href="elementindex_Resource-examples.html#p">p</a> - <a class="index-letter" href="elementindex_Resource-examples.html#r">r</a> - <a class="index-letter" href="elementindex_Resource-examples.html#s">s</a> - <a class="index-letter" href="elementindex_Resource-examples.html#_">_</a> -</div> - - <a name="_"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">_</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#method__construct">Smarty_Resource_Mysqls::__construct()</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#method__construct">Smarty_Resource_Mysql::__construct()</a> in resource.mysql.php</div> - </dd> - </dl> - <a name="d"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">d</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$db</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#var$db">Smarty_Resource_Mysqls::$db</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="var-title">$db</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#var$db">Smarty_Resource_Mysql::$db</a> in resource.mysql.php</div> - </dd> - </dl> - <a name="f"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">f</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#var$fetch">Smarty_Resource_Mysqls::$fetch</a> in resource.mysqls.php</div> - </dd> - <dt class="field"> - <span class="var-title">$fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#var$fetch">Smarty_Resource_Mysql::$fetch</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#methodfetch">Smarty_Resource_Mysql::fetch()</a> in resource.mysql.php</div> - <div class="index-item-description">Fetch a template and its modification time from database</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html#methodfetch">Smarty_Resource_Mysqls::fetch()</a> in resource.mysqls.php</div> - <div class="index-item-description">Fetch a template and its modification time from database</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#methodfetchTimestamp">Smarty_Resource_Mysql::fetchTimestamp()</a> in resource.mysql.php</div> - <div class="index-item-description">Fetch a template's modification time from database</div> - </dd> - </dl> - <a name="m"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">m</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$mtime</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html#var$mtime">Smarty_Resource_Mysql::$mtime</a> in resource.mysql.php</div> - </dd> - </dl> - <a name="p"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">p</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Extendsall.html#methodpopulate">Smarty_Resource_Extendsall::populate()</a> in resource.extendsall.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - </dl> - <a name="r"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">r</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="include-title">resource.extendsall.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/_demo---plugins---resource.extendsall.php.html">resource.extendsall.php</a> in resource.extendsall.php</div> - </dd> - <dt class="field"> - <span class="include-title">resource.mysql.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/_demo---plugins---resource.mysql.php.html">resource.mysql.php</a> in resource.mysql.php</div> - </dd> - <dt class="field"> - <span class="include-title">resource.mysqls.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/_demo---plugins---resource.mysqls.php.html">resource.mysqls.php</a> in resource.mysqls.php</div> - </dd> - </dl> - <a name="s"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">s</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - Smarty_Resource_Extendsall - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Extendsall.html">Smarty_Resource_Extendsall</a> in resource.extendsall.php</div> - <div class="index-item-description">Extends All Resource</div> - </dd> - <dt class="field"> - Smarty_Resource_Mysql - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysql.html">Smarty_Resource_Mysql</a> in resource.mysql.php</div> - <div class="index-item-description">MySQL Resource</div> - </dd> - <dt class="field"> - Smarty_Resource_Mysqls - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Resource-examples/Smarty_Resource_Mysqls.html">Smarty_Resource_Mysqls</a> in resource.mysqls.php</div> - <div class="index-item-description">MySQL Resource</div> - </dd> - </dl> - -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_Resource-examples.html#d">d</a> - <a class="index-letter" href="elementindex_Resource-examples.html#f">f</a> - <a class="index-letter" href="elementindex_Resource-examples.html#m">m</a> - <a class="index-letter" href="elementindex_Resource-examples.html#p">p</a> - <a class="index-letter" href="elementindex_Resource-examples.html#r">r</a> - <a class="index-letter" href="elementindex_Resource-examples.html#s">s</a> - <a class="index-letter" href="elementindex_Resource-examples.html#_">_</a> -</div> </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/elementindex_Smarty.html
Deleted
@@ -1,9572 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <a name="top"></a> -<h2>[Smarty] element index</h2> - <h3>Package indexes</h3> - <ul> - <li><a href="elementindex_Example-application.html">Example-application</a></li> - <li><a href="elementindex_CacheResource-examples.html">CacheResource-examples</a></li> - <li><a href="elementindex_Resource-examples.html">Resource-examples</a></li> - </ul> -<a href="elementindex.html">All elements</a> -<br /> -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_Smarty.html#a">a</a> - <a class="index-letter" href="elementindex_Smarty.html#b">b</a> - <a class="index-letter" href="elementindex_Smarty.html#c">c</a> - <a class="index-letter" href="elementindex_Smarty.html#d">d</a> - <a class="index-letter" href="elementindex_Smarty.html#e">e</a> - <a class="index-letter" href="elementindex_Smarty.html#f">f</a> - <a class="index-letter" href="elementindex_Smarty.html#g">g</a> - <a class="index-letter" href="elementindex_Smarty.html#h">h</a> - <a class="index-letter" href="elementindex_Smarty.html#i">i</a> - <a class="index-letter" href="elementindex_Smarty.html#l">l</a> - <a class="index-letter" href="elementindex_Smarty.html#m">m</a> - <a class="index-letter" href="elementindex_Smarty.html#n">n</a> - <a class="index-letter" href="elementindex_Smarty.html#o">o</a> - <a class="index-letter" href="elementindex_Smarty.html#p">p</a> - <a class="index-letter" href="elementindex_Smarty.html#r">r</a> - <a class="index-letter" href="elementindex_Smarty.html#s">s</a> - <a class="index-letter" href="elementindex_Smarty.html#t">t</a> - <a class="index-letter" href="elementindex_Smarty.html#u">u</a> - <a class="index-letter" href="elementindex_Smarty.html#v">v</a> - <a class="index-letter" href="elementindex_Smarty.html#w">w</a> - <a class="index-letter" href="elementindex_Smarty.html#y">y</a> - <a class="index-letter" href="elementindex_Smarty.html#_">_</a> -</div> - - <a name="_"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">_</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$_tag_objects</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$_tag_objects">Smarty_Internal_TemplateCompilerBase::$_tag_objects</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">compile tag objects</div> - </dd> - <dt class="field"> - <span class="var-title">$_tag_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$_tag_stack">Smarty_Internal_TemplateCompilerBase::$_tag_stack</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">tag stack</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#method__construct">Smarty_Internal_Templatelexer::__construct()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#method__construct">Smarty_Internal_Templateparser::__construct()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#method__construct">TP_yyToken::__construct()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#method__construct">TPC_yyToken::__construct()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#method__construct">Smarty_Internal_TemplateCompilerBase::__construct()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Initialize compiler</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#method__construct">Smarty_Internal_Configfileparser::__construct()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#method__construct">Smarty_Internal_SmartyTemplateCompiler::__construct()</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Initialize compiler</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#method__destruct">Smarty_Internal_Configfileparser::__destruct()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#method__destruct">Smarty_Internal_Templateparser::__destruct()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#method__toString">TP_yyToken::__toString()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#method__toString">TPC_yyToken::__toString()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#method__construct">Smarty_Internal_Config_File_Compiler::__construct()</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Initialize compiler</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#method__construct">Smarty_Internal_Configfilelexer::__construct()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_config_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_config_dir">Smarty_Security::$_config_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_php_resource_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_php_resource_dir">Smarty_Security::$_php_resource_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_resource_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_resource_dir">Smarty_Security::$_resource_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_secure_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_secure_dir">Smarty_Security::$_secure_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_template_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_template_dir">Smarty_Security::$_template_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_trusted_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$_trusted_dir">Smarty_Security::$_trusted_dir</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#method__construct">Smarty_Security::__construct()</a> in smarty_security.php</div> - </dd> - <dt class="field"> - <span class="var-title">$_current_file</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_current_file">Smarty::$_current_file</a> in Smarty.class.php</div> - <div class="index-item-description">required by the compiler for BC</div> - </dd> - <dt class="field"> - <span class="var-title">$_dir_perms</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_dir_perms">Smarty::$_dir_perms</a> in Smarty.class.php</div> - <div class="index-item-description">default dir permissions</div> - </dd> - <dt class="field"> - <span class="var-title">$_file_perms</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_file_perms">Smarty::$_file_perms</a> in Smarty.class.php</div> - <div class="index-item-description">default file permissions</div> - </dd> - <dt class="field"> - <span class="var-title">$_muted_directories</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_muted_directories">Smarty::$_muted_directories</a> in Smarty.class.php</div> - <div class="index-item-description">contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors()</div> - </dd> - <dt class="field"> - <span class="var-title">$_parserdebug</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_parserdebug">Smarty::$_parserdebug</a> in Smarty.class.php</div> - <div class="index-item-description">internal flag to enable parser debugging</div> - </dd> - <dt class="field"> - <span class="var-title">$_previous_error_handler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_previous_error_handler">Smarty::$_previous_error_handler</a> in Smarty.class.php</div> - <div class="index-item-description">error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors()</div> - </dd> - <dt class="field"> - <span class="var-title">$_smarty_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_smarty_vars">Smarty::$_smarty_vars</a> in Smarty.class.php</div> - <div class="index-item-description">global internal smarty vars</div> - </dd> - <dt class="field"> - <span class="var-title">$_tag_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$_tag_stack">Smarty::$_tag_stack</a> in Smarty.class.php</div> - <div class="index-item-description">block tag hierarchy</div> - </dd> - <dt class="field"> - <span class="var-title">$_version</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#var$_version">SmartyBC::$_version</a> in SmartyBC.class.php</div> - <div class="index-item-description">Smarty 2 BC</div> - </dd> - <dt class="field"> - <span class="method-title">_count</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method_count">Smarty_Internal_Template::_count()</a> in smarty_internal_template.php</div> - <div class="index-item-description">[util function] counts an array, arrayaccess/traversable or PDOStatement object</div> - </dd> - <dt class="field"> - <span class="method-title">_get_filter_name</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#method_get_filter_name">Smarty_Internal_TemplateBase::_get_filter_name()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Return internal filter name</div> - </dd> - <dt class="field"> - <span class="method-title">__call</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#method__call">Smarty_Internal_TemplateBase::__call()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Handle unknown class methods</div> - </dd> - <dt class="field"> - <span class="method-title">__clone</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__clone">Smarty::__clone()</a> in Smarty.class.php</div> - <div class="index-item-description">magic>> set selfpointer on cloned object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__construct">Smarty_Internal_Template::__construct()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Create template data object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Data.html#method__construct">Smarty_Data::__construct()</a> in smarty_internal_data.php</div> - <div class="index-item-description">create Smarty data object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#method__construct">Smarty_Variable::__construct()</a> in smarty_internal_data.php</div> - <div class="index-item-description">create Smarty variable object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#method__construct">SmartyBC::__construct()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Initialize new SmartyBC object</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__construct">Smarty::__construct()</a> in Smarty.class.php</div> - <div class="index-item-description">Initialize new Smarty object</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__destruct">Smarty_Internal_Template::__destruct()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template data object destrutor</div> - </dd> - <dt class="field"> - <span class="method-title">__destruct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__destruct">Smarty::__destruct()</a> in Smarty.class.php</div> - <div class="index-item-description">Class destructor</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__get">Smarty::__get()</a> in Smarty.class.php</div> - <div class="index-item-description">magic>> Generic getter.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Undefined_Smarty_Variable.html#method__get">Undefined_Smarty_Variable::__get()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Returns FALSE for 'nocache' and NULL otherwise.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__get">Smarty_Internal_Template::__get()</a> in smarty_internal_template.php</div> - <div class="index-item-description">get Smarty property in template context</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#method__set">Smarty_Internal_Template::__set()</a> in smarty_internal_template.php</div> - <div class="index-item-description">set Smarty property in template context</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#method__set">Smarty::__set()</a> in Smarty.class.php</div> - <div class="index-item-description">magic>> Generic setter.</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#method__toString">Smarty_Variable::__toString()</a> in smarty_internal_data.php</div> - <div class="index-item-description">magic>> String conversion</div> - </dd> - <dt class="field"> - <span class="method-title">__toString</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Undefined_Smarty_Variable.html#method__toString">Undefined_Smarty_Variable::__toString()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Always returns an empty string.</div> - </dd> - <dt class="field"> - <span class="var-title">$_properties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$_properties">Smarty_Template_Compiled::$_properties</a> in smarty_resource.php</div> - <div class="index-item-description">Metadata properties</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#method__construct">Smarty_Template_Compiled::__construct()</a> in smarty_resource.php</div> - <div class="index-item-description">create Compiled Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#method__construct">Smarty_Template_Source::__construct()</a> in smarty_resource.php</div> - <div class="index-item-description">create Source Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#method__construct">Smarty_Template_Cached::__construct()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">create Cached Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#method__construct">Smarty_Internal_Resource_PHP::__construct()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Create a new PHP Resource</div> - </dd> - <dt class="field"> - <span class="method-title">__construct</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html#method__construct">Smarty_Config_Source::__construct()</a> in smarty_config_source.php</div> - <div class="index-item-description">create Config Object container</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#method__get">Smarty_Template_Source::__get()</a> in smarty_resource.php</div> - <div class="index-item-description">magic>> Generic getter.</div> - </dd> - <dt class="field"> - <span class="method-title">__get</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html#method__get">Smarty_Config_Source::__get()</a> in smarty_config_source.php</div> - <div class="index-item-description">magic>> Generic getter.</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#method__set">Smarty_Template_Source::__set()</a> in smarty_resource.php</div> - <div class="index-item-description">magic>> Generic Setter.</div> - </dd> - <dt class="field"> - <span class="method-title">__set</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html#method__set">Smarty_Config_Source::__set()</a> in smarty_config_source.php</div> - <div class="index-item-description">magic>> Generic setter.</div> - </dd> - </dl> - <a name="a"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">a</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">acquireLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodacquireLock">Smarty_Internal_CacheResource_File::acquireLock()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Lock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">acquireLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodacquireLock">Smarty_CacheResource_KeyValueStore::acquireLock()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Lock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">acquireLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodacquireLock">Smarty_CacheResource::acquireLock()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="method-title">addMetaTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodaddMetaTimestamp">Smarty_CacheResource_KeyValueStore::addMetaTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Add current microtime to the beginning of $cache_content</div> - </dd> - <dt class="field"> - <span class="var-title">$allowed_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allowed_modifiers">Smarty_Security::$allowed_modifiers</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of allowed modifier plugins.</div> - </dd> - <dt class="field"> - <span class="var-title">$allowed_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allowed_tags">Smarty_Security::$allowed_tags</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of allowed tags.</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_constants</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allow_constants">Smarty_Security::$allow_constants</a> in smarty_security.php</div> - <div class="index-item-description">+ flag if constants can be accessed from template</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_super_globals</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$allow_super_globals">Smarty_Security::$allow_super_globals</a> in smarty_security.php</div> - <div class="index-item-description">+ flag if super globals can be accessed from template</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_php_templates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$allow_php_templates">Smarty::$allow_php_templates</a> in Smarty.class.php</div> - <div class="index-item-description">controls if the php template file resource is allowed</div> - </dd> - <dt class="field"> - <span class="var-title">$allow_relative_path</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$allow_relative_path">Smarty_Internal_Template::$allow_relative_path</a> in smarty_internal_template.php</div> - <div class="index-item-description">internal flag to allow relative path in child template blocks</div> - </dd> - <dt class="field"> - <span class="var-title">$autoload_filters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$autoload_filters">Smarty::$autoload_filters</a> in Smarty.class.php</div> - <div class="index-item-description">autoload filter</div> - </dd> - <dt class="field"> - <span class="var-title">$auto_literal</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$auto_literal">Smarty::$auto_literal</a> in Smarty.class.php</div> - <div class="index-item-description">auto literal on delimiters with whitspace</div> - </dd> - <dt class="field"> - <span class="method-title">addAutoloadFilters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddAutoloadFilters">Smarty::addAutoloadFilters()</a> in Smarty.class.php</div> - <div class="index-item-description">Add autoload filters</div> - </dd> - <dt class="field"> - <span class="method-title">addConfigDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddConfigDir">Smarty::addConfigDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Add config directory(s)</div> - </dd> - <dt class="field"> - <span class="method-title">addDefaultModifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddDefaultModifiers">Smarty::addDefaultModifiers()</a> in Smarty.class.php</div> - <div class="index-item-description">Add default modifiers</div> - </dd> - <dt class="field"> - <span class="method-title">addPluginsDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddPluginsDir">Smarty::addPluginsDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Adds directory of plugin files</div> - </dd> - <dt class="field"> - <span class="method-title">addTemplateDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodaddTemplateDir">Smarty::addTemplateDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Add template directory(s)</div> - </dd> - <dt class="field"> - <span class="method-title">append</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodappend">Smarty_Internal_Data::append()</a> in smarty_internal_data.php</div> - <div class="index-item-description">appends values to template variables</div> - </dd> - <dt class="field"> - <span class="method-title">appendByRef</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodappendByRef">Smarty_Internal_Data::appendByRef()</a> in smarty_internal_data.php</div> - <div class="index-item-description">appends values to template variables by reference</div> - </dd> - <dt class="field"> - <span class="method-title">append_by_ref</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodappend_by_ref">SmartyBC::append_by_ref()</a> in SmartyBC.class.php</div> - <div class="index-item-description">wrapper for append_by_ref</div> - </dd> - <dt class="field"> - <span class="method-title">assign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodassign">Smarty_Internal_Data::assign()</a> in smarty_internal_data.php</div> - <div class="index-item-description">assigns a Smarty variable</div> - </dd> - <dt class="field"> - <span class="method-title">assignByRef</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodassignByRef">Smarty_Internal_Data::assignByRef()</a> in smarty_internal_data.php</div> - <div class="index-item-description">assigns values to template variables by reference</div> - </dd> - <dt class="field"> - <span class="method-title">assignGlobal</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodassignGlobal">Smarty_Internal_Data::assignGlobal()</a> in smarty_internal_data.php</div> - <div class="index-item-description">assigns a global Smarty variable</div> - </dd> - <dt class="field"> - <span class="method-title">assign_by_ref</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodassign_by_ref">SmartyBC::assign_by_ref()</a> in SmartyBC.class.php</div> - <div class="index-item-description">wrapper for assign_by_ref</div> - </dd> - </dl> - <a name="b"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">b</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="include-title">block.textformat.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html">block.textformat.php</a> in block.textformat.php</div> - </dd> - <dt class="field"> - <span class="var-title">$block_data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$block_data">Smarty_Internal_Template::$block_data</a> in smarty_internal_template.php</div> - <div class="index-item-description">blocks for template inheritance</div> - </dd> - <dt class="field"> - <span class="method-title">buildFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodbuildFilepath">Smarty_Resource::buildFilepath()</a> in smarty_resource.php</div> - <div class="index-item-description">build template filepath by traversing the template_dir array</div> - </dd> - </dl> - <a name="c"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">c</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$contents</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$contents">Smarty_CacheResource_KeyValueStore::$contents</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">cache for contents</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodclear">Smarty_Internal_CacheResource_File::clear()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclear">Smarty_CacheResource_KeyValueStore::clear()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodclear">Smarty_CacheResource::clear()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clear</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclear">Smarty_CacheResource_Custom::clear()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodclearAll">Smarty_Internal_CacheResource_File::clearAll()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodclearAll">Smarty_CacheResource_KeyValueStore::clearAll()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodclearAll">Smarty_CacheResource_Custom::clearAll()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="method-title">clearAll</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodclearAll">Smarty_CacheResource::clearAll()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Empty cache</div> - </dd> - <dt class="field"> - <span class="var-title">$counter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$counter">Smarty_Internal_Templatelexer::$counter</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - CACHING_NOCACHE_CODE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#constCACHING_NOCACHE_CODE">Smarty_Internal_Compile_Include::CACHING_NOCACHE_CODE</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">caching mode to create nocache code but no cache file</div> - </dd> - <dt class="field"> - <span class="method-title">callTagCompiler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcallTagCompiler">Smarty_Internal_TemplateCompilerBase::callTagCompiler()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">lazy loads internal compile plugin for tag and calls the compile methode</div> - </dd> - <dt class="field"> - <span class="method-title">closeTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#methodcloseTag">Smarty_Internal_CompileBase::closeTag()</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Pop closing tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html#methodcompile">Smarty_Internal_Compile_Private_Modifier::compile()</a> in smarty_internal_compile_private_modifier.php</div> - <div class="index-item-description">Compiles code for modifier execution</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#methodcompile">Smarty_Internal_Compile_Private_Function_Plugin::compile()</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Compiles code for the execution of function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html#methodcompile">Smarty_Internal_Compile_Private_Object_Function::compile()</a> in smarty_internal_compile_private_object_function.php</div> - <div class="index-item-description">Compiles code for the execution of function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html#methodcompile">Smarty_Internal_Compile_Private_Block_Plugin::compile()</a> in smarty_internal_compile_private_block_plugin.php</div> - <div class="index-item-description">Compiles code for the execution of block plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html#methodcompile">Smarty_Internal_Compile_Private_Object_Block_Function::compile()</a> in smarty_internal_compile_private_object_block_function.php</div> - <div class="index-item-description">Compiles code for the execution of block plugin</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocache.html#methodcompile">Smarty_Internal_Compile_Nocache::compile()</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Compiles code for the {nocache} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#methodcompile">Smarty_Internal_Compile_Include_Php::compile()</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Compiles code for the {include_php} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#methodcompile">Smarty_Internal_Compile_Insert::compile()</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Compiles code for the {insert} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html#methodcompile">Smarty_Internal_Compile_Ldelim::compile()</a> in smarty_internal_compile_ldelim.php</div> - <div class="index-item-description">Compiles code for the {ldelim} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#methodcompile">Smarty_Internal_Compile_Private_Print_Expression::compile()</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Compiles code for gererting output from any expression</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html#methodcompile">Smarty_Internal_Compile_Nocacheclose::compile()</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Compiles code for the {/nocache} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html#methodcompile">Smarty_Internal_Compile_Private_Registered_Function::compile()</a> in smarty_internal_compile_private_registered_function.php</div> - <div class="index-item-description">Compiles code for the execution of a registered function</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html#methodcompile">Smarty_Internal_Compile_Setfilterclose::compile()</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Compiles code for the {/setfilter} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_While.html#methodcompile">Smarty_Internal_Compile_While::compile()</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Compiles code for the {while} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html#methodcompile">Smarty_Internal_Compile_Whileclose::compile()</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Compiles code for the {/while} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Nocache_Insert.html#methodcompile">Smarty_Internal_Nocache_Insert::compile()</a> in smarty_internal_nocache_insert.php</div> - <div class="index-item-description">Compiles code for the {insert} tag into cache file</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html#methodcompile">Smarty_Internal_Compile_Setfilter::compile()</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Compiles code for setfilter tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html#methodcompile">Smarty_Internal_Compile_Sectionelse::compile()</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Compiles code for the {sectionelse} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html#methodcompile">Smarty_Internal_Compile_Private_Special_Variable::compile()</a> in smarty_internal_compile_private_special_variable.php</div> - <div class="index-item-description">Compiles code for the speical $smarty variables</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html#methodcompile">Smarty_Internal_Compile_Rdelim::compile()</a> in smarty_internal_compile_rdelim.php</div> - <div class="index-item-description">Compiles code for the {rdelim} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#methodcompile">Smarty_Internal_Compile_Section::compile()</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Compiles code for the {section} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html#methodcompile">Smarty_Internal_Compile_Sectionclose::compile()</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Compiles code for the {/section} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html#methodcompile">Smarty_Internal_Compile_Private_Registered_Block::compile()</a> in smarty_internal_compile_private_registered_block.php</div> - <div class="index-item-description">Compiles code for the execution of a block function</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#methodcompile">Smarty_Internal_Compile_Include::compile()</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Compiles code for the {include} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html#methodcompile">Smarty_Internal_Compile_CaptureClose::compile()</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Compiles code for the {/capture} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html#methodcompile">Smarty_Internal_Compile_Capture::compile()</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Compiles code for the {capture} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#methodcompile">Smarty_Internal_Compile_Config_Load::compile()</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Compiles code for the {config_load} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html#methodcompile">Smarty_Internal_Compile_Continue::compile()</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Compiles code for the {continue} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html#methodcompile">Smarty_Internal_Compile_Ifclose::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {/if} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#methodcompile">Smarty_Internal_Compile_Call::compile()</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Compiles the calls of user defined tags defined by {function}</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html#methodcompile">Smarty_Internal_Compile_Break::compile()</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Compiles code for the {break} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Append.html#methodcompile">Smarty_Internal_Compile_Append::compile()</a> in smarty_internal_compile_append.php</div> - <div class="index-item-description">Compiles code for the {append} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Assign.html#methodcompile">Smarty_Internal_Compile_Assign::compile()</a> in smarty_internal_compile_assign.php</div> - <div class="index-item-description">Compiles code for the {assign} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#methodcompile">Smarty_Internal_Compile_Block::compile()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Compiles code for the {block} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html#methodcompile">Smarty_Internal_Compile_Blockclose::compile()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Compiles code for the {/block} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#methodcompile">Smarty_Internal_Compile_Eval::compile()</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Compiles code for the {eval} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Debug.html#methodcompile">Smarty_Internal_Compile_Debug::compile()</a> in smarty_internal_compile_debug.php</div> - <div class="index-item-description">Compiles code for the {debug} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html#methodcompile">Smarty_Internal_Compile_Functionclose::compile()</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Compiles code for the {/function} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html#methodcompile">Smarty_Internal_Compile_Extends::compile()</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Compiles code for the {extends} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Else.html#methodcompile">Smarty_Internal_Compile_Else::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {else} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Elseif.html#methodcompile">Smarty_Internal_Compile_Elseif::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {elseif} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_If.html#methodcompile">Smarty_Internal_Compile_If::compile()</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Compiles code for the {if} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html#methodcompile">Smarty_Internal_Compile_Foreachelse::compile()</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Compiles code for the {foreachelse} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#methodcompile">Smarty_Internal_Compile_Function::compile()</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Compiles code for the {function} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html#methodcompile">Smarty_Internal_Compile_Foreachclose::compile()</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Compiles code for the {/foreach} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_For.html#methodcompile">Smarty_Internal_Compile_For::compile()</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Compiles code for the {for} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forelse.html#methodcompile">Smarty_Internal_Compile_Forelse::compile()</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Compiles code for the {forelse} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forclose.html#methodcompile">Smarty_Internal_Compile_Forclose::compile()</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Compiles code for the {/for} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#methodcompile">Smarty_Internal_Compile_Foreach::compile()</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Compiles code for the {foreach} tag</div> - </dd> - <dt class="field"> - <span class="method-title">compileChildBlock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#methodcompileChildBlock">Smarty_Internal_Compile_Block::compileChildBlock()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Compile saved child block source</div> - </dd> - <dt class="field"> - <span class="method-title">compileTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcompileTag">Smarty_Internal_TemplateCompilerBase::compileTag()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Compile Tag</div> - </dd> - <dt class="field"> - <span class="method-title">compileTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodcompileTemplate">Smarty_Internal_TemplateCompilerBase::compileTemplate()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Method to compile a Smarty template</div> - </dd> - <dt class="field"> - <span class="method-title">compileVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodcompileVariable">Smarty_Internal_Templateparser::compileVariable()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$config</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$config">Smarty_Internal_Config_File_Compiler::$config</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$config_data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$config_data">Smarty_Internal_Config_File_Compiler::$config_data</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Compiled config data sections and variables</div> - </dd> - <dt class="field"> - <span class="var-title">$counter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$counter">Smarty_Internal_Configfilelexer::$counter</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - COMMENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constCOMMENT">Smarty_Internal_Configfilelexer::COMMENT</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">compileSource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#methodcompileSource">Smarty_Internal_Config_File_Compiler::compileSource()</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Method to compile a Smarty template.</div> - </dd> - <dt class="field"> - <span class="method-title">call</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html#methodcall">Smarty_Internal_Function_Call_Handler::call()</a> in smarty_internal_function_call_handler.php</div> - <div class="index-item-description">This function handles calls to template functions defined by {function} It does create a PHP function at the first call</div> - </dd> - <dt class="field"> - <span class="method-title">clearCompiledTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodclearCompiledTemplate">Smarty_Internal_Utility::clearCompiledTemplate()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Delete compiled template file</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllConfig</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodcompileAllConfig">Smarty_Internal_Utility::compileAllConfig()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Compile all config files</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllTemplates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodcompileAllTemplates">Smarty_Internal_Utility::compileAllTemplates()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Compile all template files</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_dir">Smarty::$cache_dir</a> in Smarty.class.php</div> - <div class="index-item-description">cache directory</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$cache_id">Smarty_Internal_Template::$cache_id</a> in smarty_internal_template.php</div> - <div class="index-item-description">cache_id</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_id">Smarty::$cache_id</a> in Smarty.class.php</div> - <div class="index-item-description">Set this if you want different sets of cache files for the same templates.</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_lifetime</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$cache_lifetime">Smarty_Internal_Template::$cache_lifetime</a> in smarty_internal_template.php</div> - <div class="index-item-description">cache lifetime in seconds</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_lifetime</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_lifetime">Smarty::$cache_lifetime</a> in Smarty.class.php</div> - <div class="index-item-description">cache lifetime in seconds</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_locking</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_locking">Smarty::$cache_locking</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether cache resources should emply locking mechanism</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_modified_check</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$cache_modified_check">Smarty::$cache_modified_check</a> in Smarty.class.php</div> - <div class="index-item-description">check If-Modified-Since headers</div> - </dd> - <dt class="field"> - <span class="var-title">$caching</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$caching">Smarty_Internal_Template::$caching</a> in smarty_internal_template.php</div> - <div class="index-item-description">caching enabled</div> - </dd> - <dt class="field"> - <span class="var-title">$caching</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$caching">Smarty::$caching</a> in Smarty.class.php</div> - <div class="index-item-description">caching enabled</div> - </dd> - <dt class="field"> - <span class="var-title">$caching_type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$caching_type">Smarty::$caching_type</a> in Smarty.class.php</div> - <div class="index-item-description">caching type</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_check</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_check">Smarty::$compile_check</a> in Smarty.class.php</div> - <div class="index-item-description">check template for modifications?</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_dir">Smarty::$compile_dir</a> in Smarty.class.php</div> - <div class="index-item-description">compile directory</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_id">Smarty::$compile_id</a> in Smarty.class.php</div> - <div class="index-item-description">Set this if you want different sets of compiled files for the same templates.</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$compile_id">Smarty_Internal_Template::$compile_id</a> in smarty_internal_template.php</div> - <div class="index-item-description">$compile_id</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_locking</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$compile_locking">Smarty::$compile_locking</a> in Smarty.class.php</div> - <div class="index-item-description">locking concurrent compiles</div> - </dd> - <dt class="field"> - <span class="var-title">$config_booleanize</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_booleanize">Smarty::$config_booleanize</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether config values of on/true/yes and off/false/no get converted to boolean.</div> - </dd> - <dt class="field"> - <span class="var-title">$config_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_dir">Smarty::$config_dir</a> in Smarty.class.php</div> - <div class="index-item-description">config directory</div> - </dd> - <dt class="field"> - <span class="var-title">$config_overwrite</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_overwrite">Smarty::$config_overwrite</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether variables with the same name overwrite each other.</div> - </dd> - <dt class="field"> - <span class="var-title">$config_read_hidden</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$config_read_hidden">Smarty::$config_read_hidden</a> in Smarty.class.php</div> - <div class="index-item-description">Controls whether hidden config sections/vars are read from the file.</div> - </dd> - <dt class="field"> - <span class="var-title">$config_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$config_vars">Smarty_Internal_Data::$config_vars</a> in smarty_internal_data.php</div> - <div class="index-item-description">configuration settings</div> - </dd> - <dt class="field"> - CACHING_LIFETIME_CURRENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCACHING_LIFETIME_CURRENT">Smarty::CACHING_LIFETIME_CURRENT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - CACHING_LIFETIME_SAVED - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCACHING_LIFETIME_SAVED">Smarty::CACHING_LIFETIME_SAVED</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - CACHING_OFF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCACHING_OFF">Smarty::CACHING_OFF</a> in Smarty.class.php</div> - <div class="index-item-description">define caching modes</div> - </dd> - <dt class="field"> - <span class="method-title">clearAllAssign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodclearAllAssign">Smarty_Internal_Data::clearAllAssign()</a> in smarty_internal_data.php</div> - <div class="index-item-description">clear all the assigned template variables.</div> - </dd> - <dt class="field"> - <span class="method-title">clearAllCache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodclearAllCache">Smarty::clearAllCache()</a> in Smarty.class.php</div> - <div class="index-item-description">Empty cache folder</div> - </dd> - <dt class="field"> - <span class="method-title">clearAssign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodclearAssign">Smarty_Internal_Data::clearAssign()</a> in smarty_internal_data.php</div> - <div class="index-item-description">clear the given assigned template variable.</div> - </dd> - <dt class="field"> - <span class="method-title">clearCache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodclearCache">Smarty::clearCache()</a> in Smarty.class.php</div> - <div class="index-item-description">Empty cache for a specific template</div> - </dd> - <dt class="field"> - <span class="method-title">clearCompiledTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodclearCompiledTemplate">Smarty::clearCompiledTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">Delete compiled template file</div> - </dd> - <dt class="field"> - <span class="method-title">clearConfig</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodclearConfig">Smarty_Internal_Data::clearConfig()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Deassigns a single or all config variables</div> - </dd> - <dt class="field"> - <span class="method-title">clear_all_assign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_all_assign">SmartyBC::clear_all_assign()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear all the assigned template variables.</div> - </dd> - <dt class="field"> - <span class="method-title">clear_all_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_all_cache">SmartyBC::clear_all_cache()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear the entire contents of cache (all templates)</div> - </dd> - <dt class="field"> - <span class="method-title">clear_assign</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_assign">SmartyBC::clear_assign()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear the given assigned template variable.</div> - </dd> - <dt class="field"> - <span class="method-title">clear_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_cache">SmartyBC::clear_cache()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear cached content for the given template and cache id</div> - </dd> - <dt class="field"> - <span class="method-title">clear_compiled_tpl</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_compiled_tpl">SmartyBC::clear_compiled_tpl()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clears compiled version of specified template resource, or all compiled template files if one is not specified.</div> - </dd> - <dt class="field"> - <span class="method-title">clear_config</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodclear_config">SmartyBC::clear_config()</a> in SmartyBC.class.php</div> - <div class="index-item-description">clear configuration values</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllConfig</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodcompileAllConfig">Smarty::compileAllConfig()</a> in Smarty.class.php</div> - <div class="index-item-description">Compile all config files</div> - </dd> - <dt class="field"> - <span class="method-title">compileAllTemplates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodcompileAllTemplates">Smarty::compileAllTemplates()</a> in Smarty.class.php</div> - <div class="index-item-description">Compile all template files</div> - </dd> - <dt class="field"> - COMPILECHECK_CACHEMISS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCOMPILECHECK_CACHEMISS">Smarty::COMPILECHECK_CACHEMISS</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - COMPILECHECK_OFF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCOMPILECHECK_OFF">Smarty::COMPILECHECK_OFF</a> in Smarty.class.php</div> - <div class="index-item-description">define compile check modes</div> - </dd> - <dt class="field"> - COMPILECHECK_ON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constCOMPILECHECK_ON">Smarty::COMPILECHECK_ON</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="method-title">compileTemplateSource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodcompileTemplateSource">Smarty_Internal_Template::compileTemplateSource()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Compiles the template</div> - </dd> - <dt class="field"> - <span class="method-title">configLoad</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodconfigLoad">Smarty_Internal_Data::configLoad()</a> in smarty_internal_data.php</div> - <div class="index-item-description">load a config file, optionally load just selected sections</div> - </dd> - <dt class="field"> - <span class="method-title">config_load</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodconfig_load">SmartyBC::config_load()</a> in SmartyBC.class.php</div> - <div class="index-item-description">load configuration values</div> - </dd> - <dt class="field"> - <span class="method-title">createData</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodcreateData">Smarty_Internal_TemplateBase::createData()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">creates a data object</div> - </dd> - <dt class="field"> - <span class="method-title">createLocalArrayVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodcreateLocalArrayVariable">Smarty_Internal_Template::createLocalArrayVariable()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to create a local Smarty variable for array assignments</div> - </dd> - <dt class="field"> - <span class="method-title">createTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodcreateTemplate">Smarty::createTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">creates a template object</div> - </dd> - <dt class="field"> - <span class="method-title">createTemplateCodeFrame</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodcreateTemplateCodeFrame">Smarty_Internal_Template::createTemplateCodeFrame()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Create code frame for compiled and cached templates</div> - </dd> - <dt class="field"> - <span class="var-title">$cache_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$cache_id">Smarty_Template_Cached::$cache_id</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Template Cache Id (Smarty_Internal_Template::$cache_id)</div> - </dd> - <dt class="field"> - <span class="var-title">$compileds</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$compileds">Smarty_Resource::$compileds</a> in smarty_resource.php</div> - <div class="index-item-description">cache for Smarty_Template_Compiled instances</div> - </dd> - <dt class="field"> - <span class="var-title">$compiler_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$compiler_class">Smarty_Template_Source::$compiler_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to compile this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$compiler_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$compiler_class">Smarty_Resource::$compiler_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to compile this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$compile_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$compile_id">Smarty_Template_Cached::$compile_id</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Template Compile Id (Smarty_Internal_Template::$compile_id)</div> - </dd> - <dt class="field"> - <span class="var-title">$components</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$components">Smarty_Template_Source::$components</a> in smarty_resource.php</div> - <div class="index-item-description">The Components an extended template is made of</div> - </dd> - <dt class="field"> - <span class="var-title">$content</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$content">Smarty_Template_Cached::$content</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Content</div> - </dd> - <dt class="field"> - <span class="method-title">config</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodconfig">Smarty_Resource::config()</a> in smarty_resource.php</div> - <div class="index-item-description">initialize Config Source Object for given resource</div> - </dd> - </dl> - <a name="d"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">d</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="const-title">DS</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineDS">DS</a> in Smarty.class.php</div> - <div class="index-item-description">define shorthand directory separator constant</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methoddelete">Smarty_CacheResource_KeyValueStore::delete()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Remove values from cache</div> - </dd> - <dt class="field"> - <span class="method-title">delete</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methoddelete">Smarty_CacheResource_Custom::delete()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Delete content from cache</div> - </dd> - <dt class="field"> - <span class="var-title">$data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$data">Smarty_Internal_Templatelexer::$data</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$default_handler_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$default_handler_plugins">Smarty_Internal_TemplateCompilerBase::$default_handler_plugins</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">plugins loaded by default plugin handler</div> - </dd> - <dt class="field"> - <span class="var-title">$default_modifier_list</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$default_modifier_list">Smarty_Internal_TemplateCompilerBase::$default_modifier_list</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">saved preprocessed modifier list</div> - </dd> - <dt class="field"> - <span class="method-title">doCompile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#methoddoCompile">Smarty_Internal_SmartyTemplateCompiler::doCompile()</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Methode to compile a Smarty template</div> - </dd> - <dt class="field"> - <span class="method-title">doParse</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methoddoParse">Smarty_Internal_Configfileparser::doParse()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">doParse</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methoddoParse">Smarty_Internal_Templateparser::doParse()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - DOUBLEQUOTEDSTRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constDOUBLEQUOTEDSTRING">Smarty_Internal_Templatelexer::DOUBLEQUOTEDSTRING</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$data">Smarty_Internal_Configfilelexer::$data</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">display_debug</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methoddisplay_debug">Smarty_Internal_Debug::display_debug()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Opens a window for the Smarty Debugging Consol and display the data</div> - </dd> - <dt class="field"> - <span class="var-title">$disabled_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$disabled_modifiers">Smarty_Security::$disabled_modifiers</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of disabled modifier plugins.</div> - </dd> - <dt class="field"> - <span class="var-title">$disabled_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$disabled_tags">Smarty_Security::$disabled_tags</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of disabled tags.</div> - </dd> - <dt class="field"> - <span class="var-title">$debugging</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$debugging">Smarty::$debugging</a> in Smarty.class.php</div> - <div class="index-item-description">debug mode</div> - </dd> - <dt class="field"> - <span class="var-title">$debugging_ctrl</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$debugging_ctrl">Smarty::$debugging_ctrl</a> in Smarty.class.php</div> - <div class="index-item-description">This determines if debugging is enable-able from the browser.</div> - </dd> - <dt class="field"> - <span class="var-title">$debug_tpl</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$debug_tpl">Smarty::$debug_tpl</a> in Smarty.class.php</div> - <div class="index-item-description">Path of debug template.</div> - </dd> - <dt class="field"> - <span class="var-title">$default_config_handler_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_config_handler_func">Smarty::$default_config_handler_func</a> in Smarty.class.php</div> - <div class="index-item-description">default config handler</div> - </dd> - <dt class="field"> - <span class="var-title">$default_config_type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_config_type">Smarty::$default_config_type</a> in Smarty.class.php</div> - <div class="index-item-description">config type</div> - </dd> - <dt class="field"> - <span class="var-title">$default_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_modifiers">Smarty::$default_modifiers</a> in Smarty.class.php</div> - <div class="index-item-description">default modifier</div> - </dd> - <dt class="field"> - <span class="var-title">$default_plugin_handler_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_plugin_handler_func">Smarty::$default_plugin_handler_func</a> in Smarty.class.php</div> - <div class="index-item-description">default plugin handler</div> - </dd> - <dt class="field"> - <span class="var-title">$default_resource_type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_resource_type">Smarty::$default_resource_type</a> in Smarty.class.php</div> - <div class="index-item-description">resource type used if none given</div> - </dd> - <dt class="field"> - <span class="var-title">$default_template_handler_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$default_template_handler_func">Smarty::$default_template_handler_func</a> in Smarty.class.php</div> - <div class="index-item-description">default template handler</div> - </dd> - <dt class="field"> - <span class="var-title">$direct_access_security</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$direct_access_security">Smarty::$direct_access_security</a> in Smarty.class.php</div> - <div class="index-item-description">Should compiled-templates be prevented from being called directly?</div> - </dd> - <dt class="field"> - <span class="method-title">decodeProperties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methoddecodeProperties">Smarty_Internal_Template::decodeProperties()</a> in smarty_internal_template.php</div> - <div class="index-item-description">This function is executed automatically when a compiled or cached template file is included</div> - </dd> - <dt class="field"> - <span class="method-title">disableSecurity</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methoddisableSecurity">Smarty::disableSecurity()</a> in Smarty.class.php</div> - <div class="index-item-description">Disable security</div> - </dd> - <dt class="field"> - <span class="method-title">display</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methoddisplay">Smarty_Internal_TemplateBase::display()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">displays a Smarty template</div> - </dd> - </dl> - <a name="e"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">e</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - Err1 - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constErr1">Smarty_Internal_Templateparser::Err1</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - Err2 - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constErr2">Smarty_Internal_Templateparser::Err2</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - Err3 - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constErr3">Smarty_Internal_Templateparser::Err3</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">escape_end_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodescape_end_tag">Smarty_Internal_Templateparser::escape_end_tag()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">escape_start_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodescape_start_tag">Smarty_Internal_Templateparser::escape_start_tag()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">end_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodend_cache">Smarty_Internal_Debug::end_cache()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">End logging of cache time</div> - </dd> - <dt class="field"> - <span class="method-title">end_compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodend_compile">Smarty_Internal_Debug::end_compile()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">End logging of compile time</div> - </dd> - <dt class="field"> - <span class="method-title">end_render</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodend_render">Smarty_Internal_Debug::end_render()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">End logging of compile time</div> - </dd> - <dt class="field"> - <span class="var-title">$error_reporting</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$error_reporting">Smarty::$error_reporting</a> in Smarty.class.php</div> - <div class="index-item-description">When set, smarty uses this value as error_reporting-level.</div> - </dd> - <dt class="field"> - <span class="var-title">$error_unassigned</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$error_unassigned">Smarty::$error_unassigned</a> in Smarty.class.php</div> - <div class="index-item-description">display error on not assigned variables</div> - </dd> - <dt class="field"> - <span class="var-title">$escape_html</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$escape_html">Smarty::$escape_html</a> in Smarty.class.php</div> - <div class="index-item-description">autoescape variable output</div> - </dd> - <dt class="field"> - <span class="method-title">enableSecurity</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodenableSecurity">Smarty::enableSecurity()</a> in Smarty.class.php</div> - <div class="index-item-description">Loads security class and enables security</div> - </dd> - <dt class="field"> - <span class="var-title">$exists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$exists">Smarty_Template_Compiled::$exists</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Existance</div> - </dd> - <dt class="field"> - <span class="var-title">$exists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$exists">Smarty_Template_Cached::$exists</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Existance</div> - </dd> - </dl> - <a name="f"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">f</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetch">Smarty_CacheResource_Custom::fetch()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">fetch cached content and its modification time from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodfetch">Smarty_CacheResource_KeyValueStore::fetch()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Fetch and prepare a cache object.</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodfetchTimestamp">Smarty_CacheResource_Custom::fetchTimestamp()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Fetch cached content's modification timestamp from data source</div> - </dd> - <dt class="field"> - <span class="var-title">$forceNocache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$forceNocache">Smarty_Internal_TemplateCompilerBase::$forceNocache</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">force compilation of complete template as nocache</div> - </dd> - <dt class="field"> - <span class="include-title">function.counter.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.counter.php.html">function.counter.php</a> in function.counter.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.cycle.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html">function.cycle.php</a> in function.cycle.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.fetch.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html">function.fetch.php</a> in function.fetch.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_checkboxes.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html">function.html_checkboxes.php</a> in function.html_checkboxes.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_image.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html">function.html_image.php</a> in function.html_image.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_options.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html">function.html_options.php</a> in function.html_options.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_radios.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html">function.html_radios.php</a> in function.html_radios.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_select_date.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html">function.html_select_date.php</a> in function.html_select_date.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_select_time.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html">function.html_select_time.php</a> in function.html_select_time.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.html_table.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html">function.html_table.php</a> in function.html_table.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.mailto.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html">function.mailto.php</a> in function.mailto.php</div> - </dd> - <dt class="field"> - <span class="include-title">function.math.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.math.php.html">function.math.php</a> in function.math.php</div> - </dd> - <dt class="field"> - <span class="var-title">$force_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$force_cache">Smarty::$force_cache</a> in Smarty.class.php</div> - <div class="index-item-description">force cache file creation</div> - </dd> - <dt class="field"> - <span class="var-title">$force_compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$force_compile">Smarty::$force_compile</a> in Smarty.class.php</div> - <div class="index-item-description">force template compiling?</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodfetch">Smarty_Internal_TemplateBase::fetch()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">fetches a rendered Smarty template</div> - </dd> - <dt class="field"> - FILTER_OUTPUT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_OUTPUT">Smarty::FILTER_OUTPUT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - FILTER_POST - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_POST">Smarty::FILTER_POST</a> in Smarty.class.php</div> - <div class="index-item-description">filter types</div> - </dd> - <dt class="field"> - FILTER_PRE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_PRE">Smarty::FILTER_PRE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - FILTER_VARIABLE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constFILTER_VARIABLE">Smarty::FILTER_VARIABLE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="var-title">$filepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$filepath">Smarty_Template_Source::$filepath</a> in smarty_resource.php</div> - <div class="index-item-description">Source Filepath</div> - </dd> - <dt class="field"> - <span class="var-title">$filepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$filepath">Smarty_Template_Cached::$filepath</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Filepath</div> - </dd> - <dt class="field"> - <span class="var-title">$filepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$filepath">Smarty_Template_Compiled::$filepath</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Filepath</div> - </dd> - <dt class="field"> - <span class="method-title">fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetch">Smarty_Resource_Custom::fetch()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">fetch template and its modification time from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fetchTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodfetchTimestamp">Smarty_Resource_Custom::fetchTimestamp()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Fetch template's modification timestamp from data source</div> - </dd> - <dt class="field"> - <span class="method-title">fileExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodfileExists">Smarty_Resource::fileExists()</a> in smarty_resource.php</div> - <div class="index-item-description">test is file exists and save timestamp</div> - </dd> - </dl> - <a name="g"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">g</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">getCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodgetCachedContent">Smarty_CacheResource::getCachedContent()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Return cached content</div> - </dd> - <dt class="field"> - <span class="method-title">getLatestInvalidationTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetLatestInvalidationTimestamp">Smarty_CacheResource_KeyValueStore::getLatestInvalidationTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Determine the latest timestamp known to the invalidation chain</div> - </dd> - <dt class="field"> - <span class="method-title">getMetaTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetMetaTimestamp">Smarty_CacheResource_KeyValueStore::getMetaTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Extract the timestamp the $content was cached</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateUid</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodgetTemplateUid">Smarty_CacheResource_KeyValueStore::getTemplateUid()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Get template's unique ID</div> - </dd> - <dt class="field"> - <span class="method-title">getAttributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#methodgetAttributes">Smarty_Internal_CompileBase::getAttributes()</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">This function checks if the attributes passed are valid</div> - </dd> - <dt class="field"> - <span class="method-title">getPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodgetPlugin">Smarty_Internal_TemplateCompilerBase::getPlugin()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Check for plugins and return function name</div> - </dd> - <dt class="field"> - <span class="method-title">getPluginFromDefaultHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodgetPluginFromDefaultHandler">Smarty_Internal_TemplateCompilerBase::getPluginFromDefaultHandler()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Check for plugins by default plugin handler</div> - </dd> - <dt class="field"> - <span class="method-title">get_debug_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodget_debug_vars">Smarty_Internal_Debug::get_debug_vars()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Recursively gets variables from all template/data scopes</div> - </dd> - <dt class="field"> - <span class="method-title">getIncludePath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html#methodgetIncludePath">Smarty_Internal_Get_Include_Path::getIncludePath()</a> in smarty_internal_get_include_path.php</div> - <div class="index-item-description">Return full file path from PHP include_path</div> - </dd> - <dt class="field"> - <span class="method-title">getTags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodgetTags">Smarty_Internal_Utility::getTags()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Return array of tag/attributes of all tags used by an template</div> - </dd> - <dt class="field"> - <span class="var-title">$get_used_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$get_used_tags">Smarty::$get_used_tags</a> in Smarty.class.php</div> - <div class="index-item-description">Internal flag for getTags()</div> - </dd> - <dt class="field"> - <span class="var-title">$global_tpl_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$global_tpl_vars">Smarty::$global_tpl_vars</a> in Smarty.class.php</div> - <div class="index-item-description">assigned global tpl vars</div> - </dd> - <dt class="field"> - <span class="method-title">getAutoloadFilters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetAutoloadFilters">Smarty::getAutoloadFilters()</a> in Smarty.class.php</div> - <div class="index-item-description">Get autoload filters</div> - </dd> - <dt class="field"> - <span class="method-title">getCacheDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetCacheDir">Smarty::getCacheDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get cache directory</div> - </dd> - <dt class="field"> - <span class="method-title">getCompileDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetCompileDir">Smarty::getCompileDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get compiled directory</div> - </dd> - <dt class="field"> - <span class="method-title">getConfigDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetConfigDir">Smarty::getConfigDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get config directory</div> - </dd> - <dt class="field"> - <span class="method-title">getConfigVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVariable">Smarty_Internal_Data::getConfigVariable()</a> in smarty_internal_data.php</div> - <div class="index-item-description">gets a config variable</div> - </dd> - <dt class="field"> - <span class="method-title">getConfigVars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetConfigVars">Smarty_Internal_Data::getConfigVars()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Returns a single or all config variables</div> - </dd> - <dt class="field"> - <span class="method-title">getDebugTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetDebugTemplate">Smarty::getDebugTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">return name of debugging template</div> - </dd> - <dt class="field"> - <span class="method-title">getDefaultModifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetDefaultModifiers">Smarty::getDefaultModifiers()</a> in Smarty.class.php</div> - <div class="index-item-description">Get default modifiers</div> - </dd> - <dt class="field"> - <span class="method-title">getGlobal</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetGlobal">Smarty::getGlobal()</a> in Smarty.class.php</div> - <div class="index-item-description">Returns a single or all global variables</div> - </dd> - <dt class="field"> - <span class="method-title">getPluginsDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetPluginsDir">Smarty::getPluginsDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get plugin directories</div> - </dd> - <dt class="field"> - <span class="method-title">getRegisteredObject</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodgetRegisteredObject">Smarty_Internal_TemplateBase::getRegisteredObject()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">return a reference to a registered object</div> - </dd> - <dt class="field"> - <span class="method-title">getScope</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodgetScope">Smarty_Internal_Template::getScope()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to get pointer to template variable array of requested scope</div> - </dd> - <dt class="field"> - <span class="method-title">getScopePointer</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodgetScopePointer">Smarty_Internal_Template::getScopePointer()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Get parent or root of template parent chain</div> - </dd> - <dt class="field"> - <span class="method-title">getStreamVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetStreamVariable">Smarty_Internal_Data::getStreamVariable()</a> in smarty_internal_data.php</div> - <div class="index-item-description">gets a stream variable</div> - </dd> - <dt class="field"> - <span class="method-title">getSubTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodgetSubTemplate">Smarty_Internal_Template::getSubTemplate()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to get subtemplate content</div> - </dd> - <dt class="field"> - <span class="method-title">getTags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetTags">Smarty::getTags()</a> in Smarty.class.php</div> - <div class="index-item-description">Return array of tag/attributes of all tags used by an template</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodgetTemplateDir">Smarty::getTemplateDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Get template directories</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateVars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetTemplateVars">Smarty_Internal_Data::getTemplateVars()</a> in smarty_internal_data.php</div> - <div class="index-item-description">Returns a single or all template variables</div> - </dd> - <dt class="field"> - <span class="method-title">getVariable</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#methodgetVariable">Smarty_Internal_Data::getVariable()</a> in smarty_internal_data.php</div> - <div class="index-item-description">gets the object of a Smarty variable</div> - </dd> - <dt class="field"> - <span class="method-title">get_config_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodget_config_vars">SmartyBC::get_config_vars()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Returns an array containing config variables</div> - </dd> - <dt class="field"> - <span class="method-title">get_registered_object</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodget_registered_object">SmartyBC::get_registered_object()</a> in SmartyBC.class.php</div> - <div class="index-item-description">return a reference to a registered object</div> - </dd> - <dt class="field"> - <span class="method-title">get_template_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodget_template_vars">SmartyBC::get_template_vars()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Returns an array containing template variables</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodgetBasename">Smarty_Internal_Resource_String::getBasename()</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodgetBasename">Smarty_Internal_Resource_Eval::getBasename()</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodgetBasename">Smarty_Internal_Resource_File::getBasename()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetBasename">Smarty_Resource_Custom::getBasename()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodgetBasename">Smarty_Resource::getBasename()</a> in smarty_resource.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetBasename">Smarty_Internal_Resource_Extends::getBasename()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getBasename</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetBasename">Smarty_Internal_Resource_Registered::getBasename()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Determine basename for compiled filename</div> - </dd> - <dt class="field"> - <span class="method-title">getCompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#methodgetCompiled">Smarty_Template_Source::getCompiled()</a> in smarty_resource.php</div> - <div class="index-item-description">get a Compiled Object of this source</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodgetContent">Smarty_Internal_Resource_String::getContent()</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">Load template's source from $resource_name into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodgetContent">Smarty_Resource_Custom::getContent()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Load template's source into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodgetContent">Smarty_Resource::getContent()</a> in smarty_resource.php</div> - <div class="index-item-description">Load template's source into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetContent">Smarty_Internal_Resource_Registered::getContent()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Load template's source by invoking the registered callback into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodgetContent">Smarty_Internal_Resource_Extends::getContent()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">Load template's source from files into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodgetContent">Smarty_Internal_Resource_Eval::getContent()</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">Load template's source from $resource_name into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodgetContent">Smarty_Internal_Resource_File::getContent()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">Load template's source from file into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodgetContent">Smarty_Internal_Resource_PHP::getContent()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Load template's source from file into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html#methodgetContent">Smarty_Internal_Resource_Stream::getContent()</a> in smarty_internal_resource_stream.php</div> - <div class="index-item-description">Load template's source from stream into current template object</div> - </dd> - <dt class="field"> - <span class="method-title">getTemplateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodgetTemplateTimestamp">Smarty_Internal_Resource_Registered::getTemplateTimestamp()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Get timestamp (epoch) the template source was modified</div> - </dd> - </dl> - <a name="h"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">h</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">hasLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodhasLock">Smarty_Internal_CacheResource_File::hasLock()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Check is cache is locked for this template</div> - </dd> - <dt class="field"> - <span class="method-title">hasLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodhasLock">Smarty_CacheResource_KeyValueStore::hasLock()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Check is cache is locked for this template</div> - </dd> - <dt class="field"> - <span class="method-title">hasLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodhasLock">Smarty_CacheResource::hasLock()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="var-title">$has_nocache_code</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$has_nocache_code">Smarty_Internal_Template::$has_nocache_code</a> in smarty_internal_template.php</div> - <div class="index-item-description">flag if template does contain nocache code sections</div> - </dd> - <dt class="field"> - <span class="var-title">$handler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$handler">Smarty_Template_Source::$handler</a> in smarty_resource.php</div> - <div class="index-item-description">Resource Handler</div> - </dd> - <dt class="field"> - <span class="var-title">$handler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$handler">Smarty_Template_Cached::$handler</a> in smarty_cacheresource.php</div> - <div class="index-item-description">CacheResource Handler</div> - </dd> - </dl> - <a name="i"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">i</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">invalidate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodinvalidate">Smarty_CacheResource_KeyValueStore::invalidate()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Invalidate CacheID</div> - </dd> - <dt class="field"> - <span class="method-title">invalidLoadedCache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodinvalidLoadedCache">Smarty_CacheResource::invalidLoadedCache()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Invalid Loaded Cache Files</div> - </dd> - <dt class="field"> - <span class="var-title">$inheritance</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$inheritance">Smarty_Internal_TemplateCompilerBase::$inheritance</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">flag when compiling {block}</div> - </dd> - <dt class="field"> - <span class="method-title">instance</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodinstance">Smarty_Internal_Configfileparser::instance()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">instance</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodinstance">Smarty_Internal_Configfilelexer::instance()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedModifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedModifier">Smarty_Security::isTrustedModifier()</a> in smarty_security.php</div> - <div class="index-item-description">Check if modifier plugin is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedPHPDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedPHPDir">Smarty_Security::isTrustedPHPDir()</a> in smarty_security.php</div> - <div class="index-item-description">Check if directory of file resource is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedPhpFunction</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedPhpFunction">Smarty_Security::isTrustedPhpFunction()</a> in smarty_security.php</div> - <div class="index-item-description">Check if PHP function is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedPhpModifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedPhpModifier">Smarty_Security::isTrustedPhpModifier()</a> in smarty_security.php</div> - <div class="index-item-description">Check if PHP modifier is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedResourceDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedResourceDir">Smarty_Security::isTrustedResourceDir()</a> in smarty_security.php</div> - <div class="index-item-description">Check if directory of file resource is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedStaticClass</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedStaticClass">Smarty_Security::isTrustedStaticClass()</a> in smarty_security.php</div> - <div class="index-item-description">Check if static class is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedStream</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedStream">Smarty_Security::isTrustedStream()</a> in smarty_security.php</div> - <div class="index-item-description">Check if stream is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isTrustedTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#methodisTrustedTag">Smarty_Security::isTrustedTag()</a> in smarty_security.php</div> - <div class="index-item-description">Check if tag is trusted.</div> - </dd> - <dt class="field"> - <span class="method-title">isCached</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodisCached">Smarty_Internal_TemplateBase::isCached()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">test if cache is valid</div> - </dd> - <dt class="field"> - <span class="method-title">is_cached</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodis_cached">SmartyBC::is_cached()</a> in SmartyBC.class.php</div> - <div class="index-item-description">test to see if valid cache exists for this template</div> - </dd> - <dt class="field"> - <span class="var-title">$isCompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$isCompiled">Smarty_Template_Compiled::$isCompiled</a> in smarty_resource.php</div> - <div class="index-item-description">Template was compiled</div> - </dd> - <dt class="field"> - <span class="var-title">$is_locked</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$is_locked">Smarty_Template_Cached::$is_locked</a> in smarty_cacheresource.php</div> - <div class="index-item-description">flag that cache is locked by this instance</div> - </dd> - </dl> - <a name="l"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">l</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">listInvalidationKeys</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodlistInvalidationKeys">Smarty_CacheResource_KeyValueStore::listInvalidationKeys()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Translate a CacheID into the list of applicable InvalidationKeys.</div> - </dd> - <dt class="field"> - <span class="method-title">load</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodload">Smarty_CacheResource::load()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Load Cache Resource Handler</div> - </dd> - <dt class="field"> - <span class="method-title">locked</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodlocked">Smarty_CacheResource::locked()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="var-title">$lex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$lex">Smarty_Internal_SmartyTemplateCompiler::$lex</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Lexer object</div> - </dd> - <dt class="field"> - <span class="var-title">$lexer_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$lexer_class">Smarty_Internal_SmartyTemplateCompiler::$lexer_class</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Lexer class name</div> - </dd> - <dt class="field"> - <span class="var-title">$line</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$line">Smarty_Internal_Templatelexer::$line</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$local_var</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$local_var">Smarty_Internal_SmartyTemplateCompiler::$local_var</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">array of vars which can be compiled in local scope</div> - </dd> - <dt class="field"> - LITERAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constLITERAL">Smarty_Internal_Templatelexer::LITERAL</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$lex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$lex">Smarty_Internal_Config_File_Compiler::$lex</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Lexer object</div> - </dd> - <dt class="field"> - <span class="var-title">$line</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$line">Smarty_Internal_Configfilelexer::$line</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$left_delimiter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$left_delimiter">Smarty::$left_delimiter</a> in Smarty.class.php</div> - <div class="index-item-description">template left-delimiter</div> - </dd> - <dt class="field"> - <span class="var-title">$locking_timeout</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$locking_timeout">Smarty::$locking_timeout</a> in Smarty.class.php</div> - <div class="index-item-description">seconds to wait for acquiring a lock before ignoring the write lock</div> - </dd> - <dt class="field"> - <span class="method-title">loadFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodloadFilter">Smarty_Internal_TemplateBase::loadFilter()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">load a filter of specified type and name</div> - </dd> - <dt class="field"> - <span class="method-title">loadPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodloadPlugin">Smarty::loadPlugin()</a> in Smarty.class.php</div> - <div class="index-item-description">Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php</div> - </dd> - <dt class="field"> - <span class="method-title">load_filter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodload_filter">SmartyBC::load_filter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">load a filter of specified type and name</div> - </dd> - <dt class="field"> - <span class="var-title">$loaded</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$loaded">Smarty_Template_Compiled::$loaded</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Content Loaded</div> - </dd> - <dt class="field"> - <span class="var-title">$lock_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$lock_id">Smarty_Template_Cached::$lock_id</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Id for cache locking</div> - </dd> - <dt class="field"> - <span class="method-title">load</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodload">Smarty_Resource::load()</a> in smarty_resource.php</div> - <div class="index-item-description">Load Resource Handler</div> - </dd> - </dl> - <a name="m"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">m</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$major</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html#var$major">TP_yyStackEntry::$major</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$major</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html#var$major">TPC_yyStackEntry::$major</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$merged_templates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$merged_templates">Smarty_Internal_TemplateCompilerBase::$merged_templates</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">merged templates</div> - </dd> - <dt class="field"> - <span class="var-title">$metadata</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#var$metadata">TPC_yyToken::$metadata</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$metadata</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#var$metadata">TP_yyToken::$metadata</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$minor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html#var$minor">TP_yyStackEntry::$minor</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$minor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html#var$minor">TPC_yyStackEntry::$minor</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$modifier_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$modifier_plugins">Smarty_Internal_TemplateCompilerBase::$modifier_plugins</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">flags for used modifier plugins</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.debug_print_var.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html">modifier.debug_print_var.php</a> in modifier.debug_print_var.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.capitalize.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html">modifier.capitalize.php</a> in modifier.capitalize.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.date_format.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html">modifier.date_format.php</a> in modifier.date_format.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.escape.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html">modifier.escape.php</a> in modifier.escape.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.regex_replace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html">modifier.regex_replace.php</a> in modifier.regex_replace.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.replace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html">modifier.replace.php</a> in modifier.replace.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.spacify.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html">modifier.spacify.php</a> in modifier.spacify.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifier.truncate.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html">modifier.truncate.php</a> in modifier.truncate.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.cat.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html">modifiercompiler.cat.php</a> in modifiercompiler.cat.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_characters.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html">modifiercompiler.count_characters.php</a> in modifiercompiler.count_characters.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_paragraphs.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html">modifiercompiler.count_paragraphs.php</a> in modifiercompiler.count_paragraphs.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_sentences.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html">modifiercompiler.count_sentences.php</a> in modifiercompiler.count_sentences.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.count_words.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html">modifiercompiler.count_words.php</a> in modifiercompiler.count_words.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.default.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html">modifiercompiler.default.php</a> in modifiercompiler.default.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.escape.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html">modifiercompiler.escape.php</a> in modifiercompiler.escape.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.from_charset.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html">modifiercompiler.from_charset.php</a> in modifiercompiler.from_charset.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.indent.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html">modifiercompiler.indent.php</a> in modifiercompiler.indent.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.lower.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html">modifiercompiler.lower.php</a> in modifiercompiler.lower.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.noprint.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html">modifiercompiler.noprint.php</a> in modifiercompiler.noprint.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.string_format.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html">modifiercompiler.string_format.php</a> in modifiercompiler.string_format.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.strip.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html">modifiercompiler.strip.php</a> in modifiercompiler.strip.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.strip_tags.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html">modifiercompiler.strip_tags.php</a> in modifiercompiler.strip_tags.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.to_charset.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html">modifiercompiler.to_charset.php</a> in modifiercompiler.to_charset.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.unescape.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html">modifiercompiler.unescape.php</a> in modifiercompiler.unescape.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.upper.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html">modifiercompiler.upper.php</a> in modifiercompiler.upper.php</div> - </dd> - <dt class="field"> - <span class="include-title">modifiercompiler.wordwrap.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html">modifiercompiler.wordwrap.php</a> in modifiercompiler.wordwrap.php</div> - </dd> - <dt class="field"> - <span class="var-title">$merged_templates_func</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$merged_templates_func">Smarty::$merged_templates_func</a> in Smarty.class.php</div> - <div class="index-item-description">Saved parameter of merged templates during compilation</div> - </dd> - <dt class="field"> - <span class="var-title">$merge_compiled_includes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$merge_compiled_includes">Smarty::$merge_compiled_includes</a> in Smarty.class.php</div> - <div class="index-item-description">merge compiled includes</div> - </dd> - <dt class="field"> - <span class="var-title">$mustCompile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$mustCompile">Smarty_Internal_Template::$mustCompile</a> in smarty_internal_template.php</div> - <div class="index-item-description">flag if compiled template is invalid and must be (re)compiled</div> - </dd> - <dt class="field"> - <span class="method-title">mustCompile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodmustCompile">Smarty_Internal_Template::mustCompile()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Returns if the current template must be compiled by the Smarty compiler</div> - </dd> - <dt class="field"> - <span class="method-title">muteExpectedErrors</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodmuteExpectedErrors">Smarty::muteExpectedErrors()</a> in Smarty.class.php</div> - <div class="index-item-description">Enable error handler to mute expected messages</div> - </dd> - <dt class="field"> - <span class="method-title">mutingErrorHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodmutingErrorHandler">Smarty::mutingErrorHandler()</a> in Smarty.class.php</div> - <div class="index-item-description">Error Handler to mute expected messages</div> - </dd> - </dl> - <a name="n"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">n</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$node</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$node">Smarty_Internal_Templatelexer::$node</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$node</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$node">Smarty_Internal_Configfilelexer::$node</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - NAKED_STRING_VALUE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constNAKED_STRING_VALUE">Smarty_Internal_Configfilelexer::NAKED_STRING_VALUE</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$nocache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#var$nocache">Smarty_Variable::$nocache</a> in smarty_internal_data.php</div> - <div class="index-item-description">if true any output of this variable will be not cached</div> - </dd> - <dt class="field"> - <span class="var-title">$name</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$name">Smarty_Template_Source::$name</a> in smarty_resource.php</div> - <div class="index-item-description">Resource Name</div> - </dd> - </dl> - <a name="o"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">o</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#var$optional_attributes">Smarty_Internal_Compile_Private_Function_Plugin::$optional_attributes</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$optional_attributes">Smarty_Internal_CompileBase::$optional_attributes</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Array of names of optional attribute required by tag use array('_any') if there is no restriction of attributes names</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$optional_attributes">Smarty_Internal_Compile_Insert::$optional_attributes</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$optional_attributes">Smarty_Internal_Compile_Include_Php::$optional_attributes</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Object_Block_Function::$optional_attributes</a> in smarty_internal_compile_private_object_block_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Object_Function::$optional_attributes</a> in smarty_internal_compile_private_object_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$optional_attributes">Smarty_Internal_Compile_Section::$optional_attributes</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html#var$optional_attributes">Smarty_Internal_Compile_Private_Registered_Function::$optional_attributes</a> in smarty_internal_compile_private_registered_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html#var$optional_attributes">Smarty_Internal_Compile_Private_Registered_Block::$optional_attributes</a> in smarty_internal_compile_private_registered_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#var$optional_attributes">Smarty_Internal_Compile_Private_Print_Expression::$optional_attributes</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$optional_attributes">Smarty_Internal_Compile_Include::$optional_attributes</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html#var$optional_attributes">Smarty_Internal_Compile_Private_Block_Plugin::$optional_attributes</a> in smarty_internal_compile_private_block_plugin.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html#var$optional_attributes">Smarty_Internal_Compile_Capture::$optional_attributes</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$optional_attributes">Smarty_Internal_Compile_Call::$optional_attributes</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html#var$optional_attributes">Smarty_Internal_Compile_Break::$optional_attributes</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$optional_attributes">Smarty_Internal_Compile_Function::$optional_attributes</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$optional_attributes">Smarty_Internal_Compile_Config_Load::$optional_attributes</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$optional_attributes">Smarty_Internal_Compile_Block::$optional_attributes</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html#var$optional_attributes">Smarty_Internal_Compile_Continue::$optional_attributes</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$optional_attributes">Smarty_Internal_Compile_Foreach::$optional_attributes</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$optional_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$optional_attributes">Smarty_Internal_Compile_Eval::$optional_attributes</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$option_flags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$option_flags">Smarty_Internal_CompileBase::$option_flags</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Array of names of valid option flags</div> - </dd> - <dt class="field"> - <span class="var-title">$option_flags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html#var$option_flags">Smarty_Internal_Compile_Private_Print_Expression::$option_flags</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$option_flags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$option_flags">Smarty_Internal_Compile_Include::$option_flags</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="method-title">offsetExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetExists">TP_yyToken::offsetExists()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetExists">TPC_yyToken::offsetExists()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetGet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetGet">TP_yyToken::offsetGet()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetGet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetGet">TPC_yyToken::offsetGet()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetSet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetSet">TPC_yyToken::offsetSet()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetSet</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetSet">TP_yyToken::offsetSet()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetUnset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#methodoffsetUnset">TPC_yyToken::offsetUnset()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">offsetUnset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#methodoffsetUnset">TP_yyToken::offsetUnset()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">openTag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#methodopenTag">Smarty_Internal_CompileBase::openTag()</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Push opening tag name on stack</div> - </dd> - <dt class="field"> - <span class="include-title">outputfilter.trimwhitespace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html">outputfilter.trimwhitespace.php</a> in outputfilter.trimwhitespace.php</div> - </dd> - </dl> - <a name="p"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">p</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodpopulate">Smarty_CacheResource::populate()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodpopulate">Smarty_Internal_CacheResource_File::populate()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulate">Smarty_CacheResource_Custom::populate()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulate">Smarty_CacheResource_KeyValueStore::populate()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">populate Cached Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodpopulateTimestamp">Smarty_CacheResource_Custom::populateTimestamp()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpopulateTimestamp">Smarty_CacheResource_KeyValueStore::populateTimestamp()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodpopulateTimestamp">Smarty_Internal_CacheResource_File::populateTimestamp()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodpopulateTimestamp">Smarty_CacheResource::populateTimestamp()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">populate Cached Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodprocess">Smarty_Internal_CacheResource_File::process()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Read the cached template and process its header</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodprocess">Smarty_CacheResource_KeyValueStore::process()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Read the cached template and process the header</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodprocess">Smarty_CacheResource_Custom::process()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Read the cached template and process the header</div> - </dd> - <dt class="field"> - <span class="method-title">process</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodprocess">Smarty_CacheResource::process()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Read the cached template and process header</div> - </dd> - <dt class="field"> - <span class="method-title">purge</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodpurge">Smarty_CacheResource_KeyValueStore::purge()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Remove *all* values from cache</div> - </dd> - <dt class="field"> - <span class="var-title">$parser</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$parser">Smarty_Internal_SmartyTemplateCompiler::$parser</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Parser object</div> - </dd> - <dt class="field"> - <span class="var-title">$parser_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$parser_class">Smarty_Internal_SmartyTemplateCompiler::$parser_class</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Parser class name</div> - </dd> - <dt class="field"> - <span class="method-title">PrintTrace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodPrintTrace">Smarty_Internal_Configfileparser::PrintTrace()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">PrintTrace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodPrintTrace">Smarty_Internal_Templateparser::PrintTrace()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">processNocacheCode</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodprocessNocacheCode">Smarty_Internal_TemplateCompilerBase::processNocacheCode()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Inject inline code for nocache template sections</div> - </dd> - <dt class="field"> - <span class="var-title">$parser</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$parser">Smarty_Internal_Config_File_Compiler::$parser</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Parser object</div> - </dd> - <dt class="field"> - <span class="var-title">$php_functions</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$php_functions">Smarty_Security::$php_functions</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted PHP functions.</div> - </dd> - <dt class="field"> - <span class="var-title">$php_handling</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$php_handling">Smarty_Security::$php_handling</a> in smarty_security.php</div> - <div class="index-item-description">This determines how Smarty handles "<?php ... ?>" tags in templates.</div> - </dd> - <dt class="field"> - <span class="var-title">$php_modifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$php_modifiers">Smarty_Security::$php_modifiers</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted PHP modifers.</div> - </dd> - <dt class="field"> - <span class="var-title">$parent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$parent">Smarty_Internal_Data::$parent</a> in smarty_internal_data.php</div> - <div class="index-item-description">parent template (if any)</div> - </dd> - <dt class="field"> - <span class="var-title">$php_handling</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$php_handling">Smarty::$php_handling</a> in Smarty.class.php</div> - <div class="index-item-description">controls handling of PHP-blocks</div> - </dd> - <dt class="field"> - <span class="var-title">$plugins_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$plugins_dir">Smarty::$plugins_dir</a> in Smarty.class.php</div> - <div class="index-item-description">plugins directory</div> - </dd> - <dt class="field"> - <span class="var-title">$plugin_search_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$plugin_search_order">Smarty::$plugin_search_order</a> in Smarty.class.php</div> - <div class="index-item-description">plugin search order</div> - </dd> - <dt class="field"> - <span class="var-title">$properties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$properties">Smarty_Internal_Template::$properties</a> in smarty_internal_template.php</div> - <div class="index-item-description">special compiled and cached template properties</div> - </dd> - <dt class="field"> - <span class="var-title">$properties</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$properties">Smarty::$properties</a> in Smarty.class.php</div> - <div class="index-item-description">internal config properties</div> - </dd> - <dt class="field"> - PHP_ALLOW - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_ALLOW">Smarty::PHP_ALLOW</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PHP_PASSTHRU - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_PASSTHRU">Smarty::PHP_PASSTHRU</a> in Smarty.class.php</div> - <div class="index-item-description">modes for handling of "<?php ... ?>" tags in templates.</div> - </dd> - <dt class="field"> - PHP_QUOTE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_QUOTE">Smarty::PHP_QUOTE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PHP_REMOVE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPHP_REMOVE">Smarty::PHP_REMOVE</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_BLOCK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_BLOCK">Smarty::PLUGIN_BLOCK</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_COMPILER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_COMPILER">Smarty::PLUGIN_COMPILER</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_FUNCTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_FUNCTION">Smarty::PLUGIN_FUNCTION</a> in Smarty.class.php</div> - <div class="index-item-description">plugin types</div> - </dd> - <dt class="field"> - PLUGIN_MODIFIER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_MODIFIER">Smarty::PLUGIN_MODIFIER</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - PLUGIN_MODIFIERCOMPILER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constPLUGIN_MODIFIERCOMPILER">Smarty::PLUGIN_MODIFIERCOMPILER</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="var-title">$processed</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$processed">Smarty_Template_Cached::$processed</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Cache was processed</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html#methodpopulate">Smarty_Internal_Resource_Stream::populate()</a> in smarty_internal_resource_stream.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html#methodpopulate">Smarty_Internal_Resource_String::populate()</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodpopulate">Smarty_Resource::populate()</a> in smarty_resource.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html#methodpopulate">Smarty_Resource_Custom::populate()</a> in smarty_resource_custom.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodpopulate">Smarty_Internal_Resource_PHP::populate()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodpopulate">Smarty_Internal_Resource_Registered::populate()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html#methodpopulate">Smarty_Internal_Resource_Eval::populate()</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodpopulate">Smarty_Internal_Resource_File::populate()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulate">Smarty_Internal_Resource_Extends::populate()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">populate Source Object with meta data from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateCompiledFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Uncompiled::populateCompiledFilepath()</a> in smarty_resource_uncompiled.php</div> - <div class="index-item-description">populate compiled object with compiled filepath</div> - </dd> - <dt class="field"> - <span class="method-title">populateCompiledFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Recompiled.html#methodpopulateCompiledFilepath">Smarty_Resource_Recompiled::populateCompiledFilepath()</a> in smarty_resource_recompiled.php</div> - <div class="index-item-description">populate Compiled Object with compiled filepath</div> - </dd> - <dt class="field"> - <span class="method-title">populateCompiledFilepath</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodpopulateCompiledFilepath">Smarty_Resource::populateCompiledFilepath()</a> in smarty_resource.php</div> - <div class="index-item-description">populate Compiled Object with compiled filepath</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html#methodpopulateTimestamp">Smarty_Internal_Resource_Extends::populateTimestamp()</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodpopulateTimestamp">Smarty_Internal_Resource_PHP::populateTimestamp()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html#methodpopulateTimestamp">Smarty_Internal_Resource_File::populateTimestamp()</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodpopulateTimestamp">Smarty_Resource::populateTimestamp()</a> in smarty_resource.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - <dt class="field"> - <span class="method-title">populateTimestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html#methodpopulateTimestamp">Smarty_Internal_Resource_Registered::populateTimestamp()</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">populate Source Object with timestamp and exists from Resource</div> - </dd> - </dl> - <a name="r"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">r</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#var$resources">Smarty_CacheResource::$resources</a> in smarty_cacheresource.php</div> - <div class="index-item-description">cache for Smarty_CacheResource instances</div> - </dd> - <dt class="field"> - <span class="method-title">read</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodread">Smarty_CacheResource_KeyValueStore::read()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Read values for a set of keys from cache</div> - </dd> - <dt class="field"> - <span class="method-title">releaseLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodreleaseLock">Smarty_Internal_CacheResource_File::releaseLock()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Unlock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">releaseLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodreleaseLock">Smarty_CacheResource_KeyValueStore::releaseLock()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Unlock cache for this template</div> - </dd> - <dt class="field"> - <span class="method-title">releaseLock</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodreleaseLock">Smarty_CacheResource::releaseLock()</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$required_attributes">Smarty_Internal_Compile_Include_Php::$required_attributes</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$required_attributes">Smarty_Internal_Compile_Include::$required_attributes</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$required_attributes">Smarty_Internal_Compile_Insert::$required_attributes</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html#var$required_attributes">Smarty_Internal_Compile_Private_Function_Plugin::$required_attributes</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$required_attributes">Smarty_Internal_Compile_Section::$required_attributes</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$required_attributes">Smarty_Internal_CompileBase::$required_attributes</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Array of names of required attribute required by tag</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$required_attributes">Smarty_Internal_Compile_Function::$required_attributes</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$required_attributes">Smarty_Internal_Compile_Call::$required_attributes</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$required_attributes">Smarty_Internal_Compile_Block::$required_attributes</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$required_attributes">Smarty_Internal_Compile_Foreach::$required_attributes</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$required_attributes">Smarty_Internal_Compile_Config_Load::$required_attributes</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$required_attributes">Smarty_Internal_Compile_Eval::$required_attributes</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$required_attributes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html#var$required_attributes">Smarty_Internal_Compile_Extends::$required_attributes</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$retvalue</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$retvalue">Smarty_Internal_Templateparser::$retvalue</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$retvalue</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$retvalue">Smarty_Internal_Configfileparser::$retvalue</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">runFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html#methodrunFilter">Smarty_Internal_Filter_Handler::runFilter()</a> in smarty_internal_filter_handler.php</div> - <div class="index-item-description">Run filters over content</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_cache_resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_cache_resources">Smarty::$registered_cache_resources</a> in Smarty.class.php</div> - <div class="index-item-description">registered cache resources</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_classes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_classes">Smarty::$registered_classes</a> in Smarty.class.php</div> - <div class="index-item-description">registered classes</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_filters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_filters">Smarty::$registered_filters</a> in Smarty.class.php</div> - <div class="index-item-description">registered filters</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_objects</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_objects">Smarty::$registered_objects</a> in Smarty.class.php</div> - <div class="index-item-description">registered objects</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_plugins">Smarty::$registered_plugins</a> in Smarty.class.php</div> - <div class="index-item-description">registered plugins</div> - </dd> - <dt class="field"> - <span class="var-title">$registered_resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$registered_resources">Smarty::$registered_resources</a> in Smarty.class.php</div> - <div class="index-item-description">registered resources</div> - </dd> - <dt class="field"> - <span class="var-title">$required_plugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$required_plugins">Smarty_Internal_Template::$required_plugins</a> in smarty_internal_template.php</div> - <div class="index-item-description">required plugins</div> - </dd> - <dt class="field"> - <span class="var-title">$right_delimiter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$right_delimiter">Smarty::$right_delimiter</a> in Smarty.class.php</div> - <div class="index-item-description">template right-delimiter</div> - </dd> - <dt class="field"> - <span class="method-title">registerCacheResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterCacheResource">Smarty_Internal_TemplateBase::registerCacheResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a cache resource to cache a template's output</div> - </dd> - <dt class="field"> - <span class="method-title">registerClass</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterClass">Smarty_Internal_TemplateBase::registerClass()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers static classes to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">registerDefaultConfigHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultConfigHandler">Smarty_Internal_TemplateBase::registerDefaultConfigHandler()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a default template handler</div> - </dd> - <dt class="field"> - <span class="method-title">registerDefaultPluginHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultPluginHandler">Smarty_Internal_TemplateBase::registerDefaultPluginHandler()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a default plugin handler</div> - </dd> - <dt class="field"> - <span class="method-title">registerDefaultTemplateHandler</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterDefaultTemplateHandler">Smarty_Internal_TemplateBase::registerDefaultTemplateHandler()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a default template handler</div> - </dd> - <dt class="field"> - <span class="method-title">registerFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterFilter">Smarty_Internal_TemplateBase::registerFilter()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a filter function</div> - </dd> - <dt class="field"> - <span class="method-title">registerObject</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterObject">Smarty_Internal_TemplateBase::registerObject()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers object to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">registerPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterPlugin">Smarty_Internal_TemplateBase::registerPlugin()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers plugin to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">registerResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodregisterResource">Smarty_Internal_TemplateBase::registerResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Registers a resource to fetch a template</div> - </dd> - <dt class="field"> - <span class="method-title">register_block</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_block">SmartyBC::register_block()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers block function to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_compiler_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_compiler_function">SmartyBC::register_compiler_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers compiler function</div> - </dd> - <dt class="field"> - <span class="method-title">register_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_function">SmartyBC::register_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers custom function to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_modifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_modifier">SmartyBC::register_modifier()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers modifier to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_object</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_object">SmartyBC::register_object()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers object to be used in templates</div> - </dd> - <dt class="field"> - <span class="method-title">register_outputfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_outputfilter">SmartyBC::register_outputfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers an output filter function to apply to a template output</div> - </dd> - <dt class="field"> - <span class="method-title">register_postfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_postfilter">SmartyBC::register_postfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers a postfilter function to apply to a compiled template after compilation</div> - </dd> - <dt class="field"> - <span class="method-title">register_prefilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_prefilter">SmartyBC::register_prefilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers a prefilter function to apply to a template before compiling</div> - </dd> - <dt class="field"> - <span class="method-title">register_resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodregister_resource">SmartyBC::register_resource()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Registers a resource to fetch a template</div> - </dd> - <dt class="field"> - <span class="var-title">$recompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$recompiled">Smarty_Template_Source::$recompiled</a> in smarty_resource.php</div> - <div class="index-item-description">Source must be recompiled on every occasion</div> - </dd> - <dt class="field"> - <span class="var-title">$resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$resource">Smarty_Template_Source::$resource</a> in smarty_resource.php</div> - <div class="index-item-description">Template Resource (Smarty_Internal_Template::$template_resource)</div> - </dd> - <dt class="field"> - <span class="var-title">$resources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$resources">Smarty_Resource::$resources</a> in smarty_resource.php</div> - <div class="index-item-description">cache for Smarty_Resource instances</div> - </dd> - <dt class="field"> - <span class="method-title">renderUncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html#methodrenderUncompiled">Smarty_Resource_Uncompiled::renderUncompiled()</a> in smarty_resource_uncompiled.php</div> - <div class="index-item-description">Render and output the template (without using the compiler)</div> - </dd> - <dt class="field"> - <span class="method-title">renderUncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#methodrenderUncompiled">Smarty_Template_Source::renderUncompiled()</a> in smarty_resource.php</div> - <div class="index-item-description">render the uncompiled source</div> - </dd> - <dt class="field"> - <span class="method-title">renderUncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#methodrenderUncompiled">Smarty_Internal_Resource_PHP::renderUncompiled()</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Render and output the template (without using the compiler)</div> - </dd> - </dl> - <a name="s"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">s</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="include-title">Smarty.class.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html">Smarty.class.php</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_cacheresource.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---sysplugins---smarty_cacheresource.php.html">smarty_cacheresource.php</a> in smarty_cacheresource.php</div> - </dd> - <dt class="field"> - <span class="method-title">smartyAutoload</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#functionsmartyAutoload">smartyAutoload()</a> in Smarty.class.php</div> - <div class="index-item-description">Autoloader</div> - </dd> - <dt class="field"> - SmartyCompilerException - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/SmartyCompilerException.html">SmartyCompilerException</a> in Smarty.class.php</div> - <div class="index-item-description">Smarty compiler exception class</div> - </dd> - <dt class="field"> - SmartyException - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/SmartyException.html">SmartyException</a> in Smarty.class.php</div> - <div class="index-item-description">Smarty exception class</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_DIR</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_DIR">SMARTY_DIR</a> in Smarty.class.php</div> - <div class="index-item-description">set SMARTY_DIR to absolute path to Smarty library files.</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_MBSTRING</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_MBSTRING">SMARTY_MBSTRING</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_PLUGINS_DIR</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_PLUGINS_DIR">SMARTY_PLUGINS_DIR</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_RESOURCE_CHAR_SET</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_RESOURCE_CHAR_SET">SMARTY_RESOURCE_CHAR_SET</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_RESOURCE_DATE_FORMAT</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_RESOURCE_DATE_FORMAT">SMARTY_RESOURCE_DATE_FORMAT</a> in Smarty.class.php</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_SPL_AUTOLOAD</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_SPL_AUTOLOAD">SMARTY_SPL_AUTOLOAD</a> in Smarty.class.php</div> - <div class="index-item-description">register the class autoloader</div> - </dd> - <dt class="field"> - <span class="const-title">SMARTY_SYSPLUGINS_DIR</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/_libs---Smarty.class.php.html#defineSMARTY_SYSPLUGINS_DIR">SMARTY_SYSPLUGINS_DIR</a> in Smarty.class.php</div> - <div class="index-item-description">set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins.</div> - </dd> - <dt class="field"> - <span class="var-title">$sysplugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#var$sysplugins">Smarty_CacheResource::$sysplugins</a> in smarty_cacheresource.php</div> - <div class="index-item-description">resource types provided by the core</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_cacheresource_custom.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_custom.php.html">smarty_cacheresource_custom.php</a> in smarty_cacheresource_custom.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_cacheresource_keyvaluestore.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_keyvaluestore.php.html">smarty_cacheresource_keyvaluestore.php</a> in smarty_cacheresource_keyvaluestore.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_cacheresource_file.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/_libs---sysplugins---smarty_internal_cacheresource_file.php.html">smarty_internal_cacheresource_file.php</a> in smarty_internal_cacheresource_file.php</div> - </dd> - <dt class="field"> - <span class="method-title">sanitize</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodsanitize">Smarty_CacheResource_KeyValueStore::sanitize()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Sanitize CacheID components</div> - </dd> - <dt class="field"> - <span class="method-title">save</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodsave">Smarty_CacheResource_Custom::save()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Save content to cache</div> - </dd> - <dt class="field"> - Smarty_CacheResource - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html">Smarty_CacheResource</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Cache Handler API</div> - </dd> - <dt class="field"> - Smarty_CacheResource_Custom - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html">Smarty_CacheResource_Custom</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Cache Handler API</div> - </dd> - <dt class="field"> - Smarty_CacheResource_KeyValueStore - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html">Smarty_CacheResource_KeyValueStore</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Smarty Cache Handler Base for Key/Value Storage Implementations</div> - </dd> - <dt class="field"> - Smarty_Internal_CacheResource_File - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html">Smarty_Internal_CacheResource_File</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">This class does contain all necessary methods for the HTML cache on file system</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html#var$shorttag_order">Smarty_Internal_Compile_Eval::$shorttag_order</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#var$shorttag_order">Smarty_Internal_Compile_Block::$shorttag_order</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html#var$shorttag_order">Smarty_Internal_Compile_Continue::$shorttag_order</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html#var$shorttag_order">Smarty_Internal_Compile_Config_Load::$shorttag_order</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html#var$shorttag_order">Smarty_Internal_Compile_Break::$shorttag_order</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html#var$shorttag_order">Smarty_Internal_Compile_Capture::$shorttag_order</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html#var$shorttag_order">Smarty_Internal_Compile_Section::$shorttag_order</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html#var$shorttag_order">Smarty_Internal_Compile_Extends::$shorttag_order</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html#var$shorttag_order">Smarty_Internal_CompileBase::$shorttag_order</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">Shorttag attribute order defined by its names</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html#var$shorttag_order">Smarty_Internal_Compile_Function::$shorttag_order</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html#var$shorttag_order">Smarty_Internal_Compile_Include::$shorttag_order</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html#var$shorttag_order">Smarty_Internal_Compile_Foreach::$shorttag_order</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html#var$shorttag_order">Smarty_Internal_Compile_Insert::$shorttag_order</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html#var$shorttag_order">Smarty_Internal_Compile_Include_Php::$shorttag_order</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$shorttag_order</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html#var$shorttag_order">Smarty_Internal_Compile_Call::$shorttag_order</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Attribute definition: Overwrites base class.</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html#var$smarty">Smarty_Internal_SmartyTemplateCompiler::$smarty</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty_token_names</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$smarty_token_names">Smarty_Internal_Templatelexer::$smarty_token_names</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$state</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$state">Smarty_Internal_Templatelexer::$state</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$stateno</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html#var$stateno">TPC_yyStackEntry::$stateno</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$stateno</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html#var$stateno">TP_yyStackEntry::$stateno</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$string</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html#var$string">TPC_yyToken::$string</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$string</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html#var$string">TP_yyToken::$string</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$strip</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$strip">Smarty_Internal_Templatelexer::$strip</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$successful</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$successful">Smarty_Internal_Templateparser::$successful</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$successful</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$successful">Smarty_Internal_Configfileparser::$successful</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressHeader</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressHeader">Smarty_Internal_TemplateCompilerBase::$suppressHeader</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress Smarty header code in compiled template</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressMergedTemplates</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressMergedTemplates">Smarty_Internal_TemplateCompilerBase::$suppressMergedTemplates</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress generation of merged template code</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressNocacheProcessing</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressNocacheProcessing">Smarty_Internal_TemplateCompilerBase::$suppressNocacheProcessing</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress generation of nocache code</div> - </dd> - <dt class="field"> - <span class="var-title">$suppressTemplatePropertyHeader</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$suppressTemplatePropertyHeader">Smarty_Internal_TemplateCompilerBase::$suppressTemplatePropertyHeader</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">suppress template property header code in compiled template</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compilebase.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compilebase.php.html">smarty_internal_compilebase.php</a> in smarty_internal_compilebase.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_append.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_append.php.html">smarty_internal_compile_append.php</a> in smarty_internal_compile_append.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_assign.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_assign.php.html">smarty_internal_compile_assign.php</a> in smarty_internal_compile_assign.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_block.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_block.php.html">smarty_internal_compile_block.php</a> in smarty_internal_compile_block.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_break.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_break.php.html">smarty_internal_compile_break.php</a> in smarty_internal_compile_break.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_call.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_call.php.html">smarty_internal_compile_call.php</a> in smarty_internal_compile_call.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_capture.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_capture.php.html">smarty_internal_compile_capture.php</a> in smarty_internal_compile_capture.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_config_load.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_config_load.php.html">smarty_internal_compile_config_load.php</a> in smarty_internal_compile_config_load.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_continue.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_continue.php.html">smarty_internal_compile_continue.php</a> in smarty_internal_compile_continue.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_debug.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_debug.php.html">smarty_internal_compile_debug.php</a> in smarty_internal_compile_debug.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_eval.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_eval.php.html">smarty_internal_compile_eval.php</a> in smarty_internal_compile_eval.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_extends.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_extends.php.html">smarty_internal_compile_extends.php</a> in smarty_internal_compile_extends.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_for.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_for.php.html">smarty_internal_compile_for.php</a> in smarty_internal_compile_for.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_foreach.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_foreach.php.html">smarty_internal_compile_foreach.php</a> in smarty_internal_compile_foreach.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_function.php.html">smarty_internal_compile_function.php</a> in smarty_internal_compile_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_if.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_if.php.html">smarty_internal_compile_if.php</a> in smarty_internal_compile_if.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_include.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include.php.html">smarty_internal_compile_include.php</a> in smarty_internal_compile_include.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_include_php.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include_php.php.html">smarty_internal_compile_include_php.php</a> in smarty_internal_compile_include_php.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_insert.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_insert.php.html">smarty_internal_compile_insert.php</a> in smarty_internal_compile_insert.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_ldelim.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_ldelim.php.html">smarty_internal_compile_ldelim.php</a> in smarty_internal_compile_ldelim.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_nocache.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_nocache.php.html">smarty_internal_compile_nocache.php</a> in smarty_internal_compile_nocache.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_block_plugin.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_block_plugin.php.html">smarty_internal_compile_private_block_plugin.php</a> in smarty_internal_compile_private_block_plugin.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_function_plugin.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_function_plugin.php.html">smarty_internal_compile_private_function_plugin.php</a> in smarty_internal_compile_private_function_plugin.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_modifier.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_modifier.php.html">smarty_internal_compile_private_modifier.php</a> in smarty_internal_compile_private_modifier.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_object_block_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_block_function.php.html">smarty_internal_compile_private_object_block_function.php</a> in smarty_internal_compile_private_object_block_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_object_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_function.php.html">smarty_internal_compile_private_object_function.php</a> in smarty_internal_compile_private_object_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_print_expression.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_print_expression.php.html">smarty_internal_compile_private_print_expression.php</a> in smarty_internal_compile_private_print_expression.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_registered_block.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_block.php.html">smarty_internal_compile_private_registered_block.php</a> in smarty_internal_compile_private_registered_block.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_registered_function.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_function.php.html">smarty_internal_compile_private_registered_function.php</a> in smarty_internal_compile_private_registered_function.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_private_special_variable.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_special_variable.php.html">smarty_internal_compile_private_special_variable.php</a> in smarty_internal_compile_private_special_variable.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_rdelim.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_rdelim.php.html">smarty_internal_compile_rdelim.php</a> in smarty_internal_compile_rdelim.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_section.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_section.php.html">smarty_internal_compile_section.php</a> in smarty_internal_compile_section.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_setfilter.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_setfilter.php.html">smarty_internal_compile_setfilter.php</a> in smarty_internal_compile_setfilter.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_compile_while.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_while.php.html">smarty_internal_compile_while.php</a> in smarty_internal_compile_while.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_configfileparser.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_configfileparser.php.html">smarty_internal_configfileparser.php</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_nocache_insert.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_nocache_insert.php.html">smarty_internal_nocache_insert.php</a> in smarty_internal_nocache_insert.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_parsetree.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_parsetree.php.html">smarty_internal_parsetree.php</a> in smarty_internal_parsetree.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_smartytemplatecompiler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_smartytemplatecompiler.php.html">smarty_internal_smartytemplatecompiler.php</a> in smarty_internal_smartytemplatecompiler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templatecompilerbase.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_templatecompilerbase.php.html">smarty_internal_templatecompilerbase.php</a> in smarty_internal_templatecompilerbase.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templatelexer.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_templatelexer.php.html">smarty_internal_templatelexer.php</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templateparser.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/_libs---sysplugins---smarty_internal_templateparser.php.html">smarty_internal_templateparser.php</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">saveBlockData</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html#methodsaveBlockData">Smarty_Internal_Compile_Block::saveBlockData()</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Save or replace child block source by block name during parsing</div> - </dd> - <dt class="field"> - SMARTY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constSMARTY">Smarty_Internal_Templatelexer::SMARTY</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - Smarty_Internal_CompileBase - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_CompileBase.html">Smarty_Internal_CompileBase</a> in smarty_internal_compilebase.php</div> - <div class="index-item-description">This class does extend all internal compile plugins</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Append - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Append.html">Smarty_Internal_Compile_Append</a> in smarty_internal_compile_append.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Append Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Assign - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Assign.html">Smarty_Internal_Compile_Assign</a> in smarty_internal_compile_assign.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Assign Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Block - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Block.html">Smarty_Internal_Compile_Block</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Block Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Blockclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html">Smarty_Internal_Compile_Blockclose</a> in smarty_internal_compile_block.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile BlockClose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Break - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Break.html">Smarty_Internal_Compile_Break</a> in smarty_internal_compile_break.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Break Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Call - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Call.html">Smarty_Internal_Compile_Call</a> in smarty_internal_compile_call.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Function_Call Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Capture - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Capture.html">Smarty_Internal_Compile_Capture</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Capture Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_CaptureClose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html">Smarty_Internal_Compile_CaptureClose</a> in smarty_internal_compile_capture.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Captureclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Config_Load - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html">Smarty_Internal_Compile_Config_Load</a> in smarty_internal_compile_config_load.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Config Load Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Continue - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Continue.html">Smarty_Internal_Compile_Continue</a> in smarty_internal_compile_continue.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Continue Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Debug - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Debug.html">Smarty_Internal_Compile_Debug</a> in smarty_internal_compile_debug.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Debug Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Else - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Else.html">Smarty_Internal_Compile_Else</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Else Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Elseif - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Elseif.html">Smarty_Internal_Compile_Elseif</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile ElseIf Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Eval - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Eval.html">Smarty_Internal_Compile_Eval</a> in smarty_internal_compile_eval.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Eval Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Extends - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Extends.html">Smarty_Internal_Compile_Extends</a> in smarty_internal_compile_extends.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile extend Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_For - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_For.html">Smarty_Internal_Compile_For</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile For Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Forclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forclose.html">Smarty_Internal_Compile_Forclose</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Forclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Foreach - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreach.html">Smarty_Internal_Compile_Foreach</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Foreach Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Foreachclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html">Smarty_Internal_Compile_Foreachclose</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Foreachclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Foreachelse - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html">Smarty_Internal_Compile_Foreachelse</a> in smarty_internal_compile_foreach.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Foreachelse Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Forelse - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Forelse.html">Smarty_Internal_Compile_Forelse</a> in smarty_internal_compile_for.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Forelse Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Function.html">Smarty_Internal_Compile_Function</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Functionclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html">Smarty_Internal_Compile_Functionclose</a> in smarty_internal_compile_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Functionclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_If - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_If.html">Smarty_Internal_Compile_If</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile If Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Ifclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html">Smarty_Internal_Compile_Ifclose</a> in smarty_internal_compile_if.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Ifclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Include - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include.html">Smarty_Internal_Compile_Include</a> in smarty_internal_compile_include.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Include Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Include_Php - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html">Smarty_Internal_Compile_Include_Php</a> in smarty_internal_compile_include_php.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Insert Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Insert - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Insert.html">Smarty_Internal_Compile_Insert</a> in smarty_internal_compile_insert.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Insert Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Ldelim - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html">Smarty_Internal_Compile_Ldelim</a> in smarty_internal_compile_ldelim.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Ldelim Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Nocache - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocache.html">Smarty_Internal_Compile_Nocache</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Nocache Classv</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Nocacheclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html">Smarty_Internal_Compile_Nocacheclose</a> in smarty_internal_compile_nocache.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Nocacheclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Block_Plugin - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html">Smarty_Internal_Compile_Private_Block_Plugin</a> in smarty_internal_compile_private_block_plugin.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Block Plugin Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Function_Plugin - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html">Smarty_Internal_Compile_Private_Function_Plugin</a> in smarty_internal_compile_private_function_plugin.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Function Plugin Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Modifier - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html">Smarty_Internal_Compile_Private_Modifier</a> in smarty_internal_compile_private_modifier.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Modifier Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Object_Block_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html">Smarty_Internal_Compile_Private_Object_Block_Function</a> in smarty_internal_compile_private_object_block_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Object Block Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Object_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html">Smarty_Internal_Compile_Private_Object_Function</a> in smarty_internal_compile_private_object_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Object Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Print_Expression - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html">Smarty_Internal_Compile_Private_Print_Expression</a> in smarty_internal_compile_private_print_expression.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Print Expression Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Registered_Block - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html">Smarty_Internal_Compile_Private_Registered_Block</a> in smarty_internal_compile_private_registered_block.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Registered Block Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Registered_Function - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html">Smarty_Internal_Compile_Private_Registered_Function</a> in smarty_internal_compile_private_registered_function.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Registered Function Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Private_Special_Variable - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html">Smarty_Internal_Compile_Private_Special_Variable</a> in smarty_internal_compile_private_special_variable.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile special Smarty Variable Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Rdelim - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html">Smarty_Internal_Compile_Rdelim</a> in smarty_internal_compile_rdelim.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Rdelim Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Section - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Section.html">Smarty_Internal_Compile_Section</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Section Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Sectionclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html">Smarty_Internal_Compile_Sectionclose</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Sectionclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Sectionelse - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html">Smarty_Internal_Compile_Sectionelse</a> in smarty_internal_compile_section.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Sectionelse Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Setfilter - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html">Smarty_Internal_Compile_Setfilter</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Setfilter Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Setfilterclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html">Smarty_Internal_Compile_Setfilterclose</a> in smarty_internal_compile_setfilter.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Setfilterclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_While - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_While.html">Smarty_Internal_Compile_While</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile While Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Compile_Whileclose - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html">Smarty_Internal_Compile_Whileclose</a> in smarty_internal_compile_while.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Whileclose Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Configfileparser - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html">Smarty_Internal_Configfileparser</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Nocache_Insert - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Nocache_Insert.html">Smarty_Internal_Nocache_Insert</a> in smarty_internal_nocache_insert.php</div> - <div class="index-item-description">Smarty Internal Plugin Compile Insert Class</div> - </dd> - <dt class="field"> - Smarty_Internal_SmartyTemplateCompiler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html">Smarty_Internal_SmartyTemplateCompiler</a> in smarty_internal_smartytemplatecompiler.php</div> - <div class="index-item-description">Class SmartyTemplateCompiler</div> - </dd> - <dt class="field"> - Smarty_Internal_TemplateCompilerBase - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html">Smarty_Internal_TemplateCompilerBase</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">Main abstract compiler class</div> - </dd> - <dt class="field"> - Smarty_Internal_Templatelexer - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html">Smarty_Internal_Templatelexer</a> in smarty_internal_templatelexer.php</div> - <div class="index-item-description">Smarty Internal Plugin Templatelexer</div> - </dd> - <dt class="field"> - Smarty_Internal_Templateparser - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html">Smarty_Internal_Templateparser</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#var$smarty">Smarty_Internal_Config_File_Compiler::$smarty</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty_token_names</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$smarty_token_names">Smarty_Internal_Configfilelexer::$smarty_token_names</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_config.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/_libs---sysplugins---smarty_internal_config.php.html">smarty_internal_config.php</a> in smarty_internal_config.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_configfilelexer.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/_libs---sysplugins---smarty_internal_configfilelexer.php.html">smarty_internal_configfilelexer.php</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_config_file_compiler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/_libs---sysplugins---smarty_internal_config_file_compiler.php.html">smarty_internal_config_file_compiler.php</a> in smarty_internal_config_file_compiler.php</div> - </dd> - <dt class="field"> - SECTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constSECTION">Smarty_Internal_Configfilelexer::SECTION</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Configfilelexer - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html">Smarty_Internal_Configfilelexer</a> in smarty_internal_configfilelexer.php</div> - <div class="index-item-description">Smarty Internal Plugin Configfilelexer</div> - </dd> - <dt class="field"> - Smarty_Internal_Config_File_Compiler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html">Smarty_Internal_Config_File_Compiler</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">Main config file compiler class</div> - </dd> - <dt class="field"> - START - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constSTART">Smarty_Internal_Configfilelexer::START</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_debug.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/_libs---sysplugins---smarty_internal_debug.php.html">smarty_internal_debug.php</a> in smarty_internal_debug.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Debug - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html">Smarty_Internal_Debug</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Smarty Internal Plugin Debug Class</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_debug_print_var</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html#functionsmarty_modifier_debug_print_var">smarty_modifier_debug_print_var()</a> in modifier.debug_print_var.php</div> - <div class="index-item-description">Smarty debug_print_var modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">start_cache</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodstart_cache">Smarty_Internal_Debug::start_cache()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Start logging of cache time</div> - </dd> - <dt class="field"> - <span class="method-title">start_compile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodstart_compile">Smarty_Internal_Debug::start_compile()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Start logging of compile time</div> - </dd> - <dt class="field"> - <span class="method-title">start_render</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#methodstart_render">Smarty_Internal_Debug::start_render()</a> in smarty_internal_debug.php</div> - <div class="index-item-description">Start logging of render time</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_block_textformat</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html#functionsmarty_block_textformat">smarty_block_textformat()</a> in block.textformat.php</div> - <div class="index-item-description">Smarty {textformat}{/textformat} block plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_outputfilter_trimwhitespace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html#functionsmarty_outputfilter_trimwhitespace">smarty_outputfilter_trimwhitespace()</a> in outputfilter.trimwhitespace.php</div> - <div class="index-item-description">Smarty trimwhitespace outputfilter plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_variablefilter_htmlspecialchars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html#functionsmarty_variablefilter_htmlspecialchars">smarty_variablefilter_htmlspecialchars()</a> in variablefilter.htmlspecialchars.php</div> - <div class="index-item-description">Smarty htmlspecialchars variablefilter plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_counter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.counter.php.html#functionsmarty_function_counter">smarty_function_counter()</a> in function.counter.php</div> - <div class="index-item-description">Smarty {counter} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_cycle</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html#functionsmarty_function_cycle">smarty_function_cycle()</a> in function.cycle.php</div> - <div class="index-item-description">Smarty {cycle} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_fetch</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html#functionsmarty_function_fetch">smarty_function_fetch()</a> in function.fetch.php</div> - <div class="index-item-description">Smarty {fetch} plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_checkboxes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes">smarty_function_html_checkboxes()</a> in function.html_checkboxes.php</div> - <div class="index-item-description">Smarty {html_checkboxes} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_checkboxes_output</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes_output">smarty_function_html_checkboxes_output()</a> in function.html_checkboxes.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_image</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html#functionsmarty_function_html_image">smarty_function_html_image()</a> in function.html_image.php</div> - <div class="index-item-description">Smarty {html_image} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_options</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options">smarty_function_html_options()</a> in function.html_options.php</div> - <div class="index-item-description">Smarty {html_options} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_options_optgroup</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options_optgroup">smarty_function_html_options_optgroup()</a> in function.html_options.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_options_optoutput</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options_optoutput">smarty_function_html_options_optoutput()</a> in function.html_options.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_radios</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios">smarty_function_html_radios()</a> in function.html_radios.php</div> - <div class="index-item-description">Smarty {html_radios} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_radios_output</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios_output">smarty_function_html_radios_output()</a> in function.html_radios.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_select_date</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html#functionsmarty_function_html_select_date">smarty_function_html_select_date()</a> in function.html_select_date.php</div> - <div class="index-item-description">Smarty {html_select_date} plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_select_time</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html#functionsmarty_function_html_select_time">smarty_function_html_select_time()</a> in function.html_select_time.php</div> - <div class="index-item-description">Smarty {html_select_time} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_table</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html#functionsmarty_function_html_table">smarty_function_html_table()</a> in function.html_table.php</div> - <div class="index-item-description">Smarty {html_table} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_html_table_cycle</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html#functionsmarty_function_html_table_cycle">smarty_function_html_table_cycle()</a> in function.html_table.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_mailto</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html#functionsmarty_function_mailto">smarty_function_mailto()</a> in function.mailto.php</div> - <div class="index-item-description">Smarty {mailto} function plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_math</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFunction/_libs---plugins---function.math.php.html#functionsmarty_function_math">smarty_function_math()</a> in function.math.php</div> - <div class="index-item-description">Smarty {math} function plugin</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_filter_handler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_filter_handler.php.html">smarty_internal_filter_handler.php</a> in smarty_internal_filter_handler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_function_call_handler.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_function_call_handler.php.html">smarty_internal_function_call_handler.php</a> in smarty_internal_function_call_handler.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_get_include_path.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_get_include_path.php.html">smarty_internal_get_include_path.php</a> in smarty_internal_get_include_path.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_write_file.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_write_file.php.html">smarty_internal_write_file.php</a> in smarty_internal_write_file.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Filter_Handler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html">Smarty_Internal_Filter_Handler</a> in smarty_internal_filter_handler.php</div> - <div class="index-item-description">Class for filter processing</div> - </dd> - <dt class="field"> - Smarty_Internal_Function_Call_Handler - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html">Smarty_Internal_Function_Call_Handler</a> in smarty_internal_function_call_handler.php</div> - <div class="index-item-description">This class does call function defined with the {function} tag</div> - </dd> - <dt class="field"> - Smarty_Internal_Get_Include_Path - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html">Smarty_Internal_Get_Include_Path</a> in smarty_internal_get_include_path.php</div> - <div class="index-item-description">Smarty Internal Read Include Path Class</div> - </dd> - <dt class="field"> - Smarty_Internal_Write_File - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Write_File.html">Smarty_Internal_Write_File</a> in smarty_internal_write_file.php</div> - <div class="index-item-description">Smarty Internal Write File Class</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_capitalize</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html#functionsmarty_modifier_capitalize">smarty_modifier_capitalize()</a> in modifier.capitalize.php</div> - <div class="index-item-description">Smarty capitalize modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_date_format</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html#functionsmarty_modifier_date_format">smarty_modifier_date_format()</a> in modifier.date_format.php</div> - <div class="index-item-description">Smarty date_format modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_escape</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html#functionsmarty_modifier_escape">smarty_modifier_escape()</a> in modifier.escape.php</div> - <div class="index-item-description">Smarty escape modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_regex_replace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html#functionsmarty_modifier_regex_replace">smarty_modifier_regex_replace()</a> in modifier.regex_replace.php</div> - <div class="index-item-description">Smarty regex_replace modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_replace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html#functionsmarty_modifier_replace">smarty_modifier_replace()</a> in modifier.replace.php</div> - <div class="index-item-description">Smarty replace modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_spacify</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html#functionsmarty_modifier_spacify">smarty_modifier_spacify()</a> in modifier.spacify.php</div> - <div class="index-item-description">Smarty spacify modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifier_truncate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html#functionsmarty_modifier_truncate">smarty_modifier_truncate()</a> in modifier.truncate.php</div> - <div class="index-item-description">Smarty truncate modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_cat</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html#functionsmarty_modifiercompiler_cat">smarty_modifiercompiler_cat()</a> in modifiercompiler.cat.php</div> - <div class="index-item-description">Smarty cat modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_characters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html#functionsmarty_modifiercompiler_count_characters">smarty_modifiercompiler_count_characters()</a> in modifiercompiler.count_characters.php</div> - <div class="index-item-description">Smarty count_characters modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_paragraphs</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html#functionsmarty_modifiercompiler_count_paragraphs">smarty_modifiercompiler_count_paragraphs()</a> in modifiercompiler.count_paragraphs.php</div> - <div class="index-item-description">Smarty count_paragraphs modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_sentences</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html#functionsmarty_modifiercompiler_count_sentences">smarty_modifiercompiler_count_sentences()</a> in modifiercompiler.count_sentences.php</div> - <div class="index-item-description">Smarty count_sentences modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_count_words</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html#functionsmarty_modifiercompiler_count_words">smarty_modifiercompiler_count_words()</a> in modifiercompiler.count_words.php</div> - <div class="index-item-description">Smarty count_words modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_default</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html#functionsmarty_modifiercompiler_default">smarty_modifiercompiler_default()</a> in modifiercompiler.default.php</div> - <div class="index-item-description">Smarty default modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_escape</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html#functionsmarty_modifiercompiler_escape">smarty_modifiercompiler_escape()</a> in modifiercompiler.escape.php</div> - <div class="index-item-description">Smarty escape modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_from_charset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html#functionsmarty_modifiercompiler_from_charset">smarty_modifiercompiler_from_charset()</a> in modifiercompiler.from_charset.php</div> - <div class="index-item-description">Smarty from_charset modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_indent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html#functionsmarty_modifiercompiler_indent">smarty_modifiercompiler_indent()</a> in modifiercompiler.indent.php</div> - <div class="index-item-description">Smarty indent modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_lower</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html#functionsmarty_modifiercompiler_lower">smarty_modifiercompiler_lower()</a> in modifiercompiler.lower.php</div> - <div class="index-item-description">Smarty lower modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_noprint</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html#functionsmarty_modifiercompiler_noprint">smarty_modifiercompiler_noprint()</a> in modifiercompiler.noprint.php</div> - <div class="index-item-description">Smarty noprint modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_string_format</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html#functionsmarty_modifiercompiler_string_format">smarty_modifiercompiler_string_format()</a> in modifiercompiler.string_format.php</div> - <div class="index-item-description">Smarty string_format modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_strip</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html#functionsmarty_modifiercompiler_strip">smarty_modifiercompiler_strip()</a> in modifiercompiler.strip.php</div> - <div class="index-item-description">Smarty strip modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_strip_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html#functionsmarty_modifiercompiler_strip_tags">smarty_modifiercompiler_strip_tags()</a> in modifiercompiler.strip_tags.php</div> - <div class="index-item-description">Smarty strip_tags modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_to_charset</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html#functionsmarty_modifiercompiler_to_charset">smarty_modifiercompiler_to_charset()</a> in modifiercompiler.to_charset.php</div> - <div class="index-item-description">Smarty to_charset modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_unescape</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html#functionsmarty_modifiercompiler_unescape">smarty_modifiercompiler_unescape()</a> in modifiercompiler.unescape.php</div> - <div class="index-item-description">Smarty unescape modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_upper</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html#functionsmarty_modifiercompiler_upper">smarty_modifiercompiler_upper()</a> in modifiercompiler.upper.php</div> - <div class="index-item-description">Smarty upper modifier plugin</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_modifiercompiler_wordwrap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html#functionsmarty_modifiercompiler_wordwrap">smarty_modifiercompiler_wordwrap()</a> in modifiercompiler.wordwrap.php</div> - <div class="index-item-description">Smarty wordwrap modifier plugin</div> - </dd> - <dt class="field"> - <span class="include-title">shared.escape_special_chars.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html">shared.escape_special_chars.php</a> in shared.escape_special_chars.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.literal_compiler_param.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html">shared.literal_compiler_param.php</a> in shared.literal_compiler_param.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.make_timestamp.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html">shared.make_timestamp.php</a> in shared.make_timestamp.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.mb_str_replace.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html">shared.mb_str_replace.php</a> in shared.mb_str_replace.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.mb_unicode.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html">shared.mb_unicode.php</a> in shared.mb_unicode.php</div> - </dd> - <dt class="field"> - <span class="include-title">shared.mb_wordwrap.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html">shared.mb_wordwrap.php</a> in shared.mb_wordwrap.php</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_function_escape_special_chars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars">smarty_function_escape_special_chars()</a> in shared.escape_special_chars.php</div> - <div class="index-item-description">escape_special_chars common function</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_literal_compiler_param</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html#functionsmarty_literal_compiler_param">smarty_literal_compiler_param()</a> in shared.literal_compiler_param.php</div> - <div class="index-item-description">evaluate compiler parameter</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_make_timestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html#functionsmarty_make_timestamp">smarty_make_timestamp()</a> in shared.make_timestamp.php</div> - <div class="index-item-description">Function: smarty_make_timestamp<br /> Purpose: used by other smarty functions to make a timestamp from a string.</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_from_unicode</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html#functionsmarty_mb_from_unicode">smarty_mb_from_unicode()</a> in shared.mb_unicode.php</div> - <div class="index-item-description">convert unicodes to the character of given encoding</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_str_replace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html#functionsmarty_mb_str_replace">smarty_mb_str_replace()</a> in shared.mb_str_replace.php</div> - <div class="index-item-description">Multibyte string replace</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_to_unicode</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html#functionsmarty_mb_to_unicode">smarty_mb_to_unicode()</a> in shared.mb_unicode.php</div> - <div class="index-item-description">convert characters to their decimal unicode equivalents</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_mb_wordwrap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html#functionsmarty_mb_wordwrap">smarty_mb_wordwrap()</a> in shared.mb_wordwrap.php</div> - <div class="index-item-description">Wrap a string to a given number of characters</div> - </dd> - <dt class="field"> - <span class="var-title">$secure_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$secure_dir">Smarty_Security::$secure_dir</a> in smarty_security.php</div> - <div class="index-item-description">This is the list of template directories that are considered secure.</div> - </dd> - <dt class="field"> - <span class="var-title">$static_classes</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$static_classes">Smarty_Security::$static_classes</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted static classes.</div> - </dd> - <dt class="field"> - <span class="var-title">$streams</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$streams">Smarty_Security::$streams</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of trusted streams.</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_utility.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/_libs---sysplugins---smarty_internal_utility.php.html">smarty_internal_utility.php</a> in smarty_internal_utility.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_security.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/_libs---sysplugins---smarty_security.php.html">smarty_security.php</a> in smarty_security.php</div> - </dd> - <dt class="field"> - Smarty_Internal_Utility - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html">Smarty_Internal_Utility</a> in smarty_internal_utility.php</div> - <div class="index-item-description">Utility class</div> - </dd> - <dt class="field"> - Smarty_Security - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html">Smarty_Security</a> in smarty_security.php</div> - <div class="index-item-description">This class does contain the security settings</div> - </dd> - <dt class="field"> - <span class="var-title">$scope</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#var$scope">Smarty_Variable::$scope</a> in smarty_internal_data.php</div> - <div class="index-item-description">the scope the variable will have (local,parent or root)</div> - </dd> - <dt class="field"> - <span class="var-title">$security_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$security_class">Smarty::$security_class</a> in Smarty.class.php</div> - <div class="index-item-description">class name</div> - </dd> - <dt class="field"> - <span class="var-title">$security_policy</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$security_policy">Smarty::$security_policy</a> in Smarty.class.php</div> - <div class="index-item-description">implementation of security class</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Data.html#var$smarty">Smarty_Data::$smarty</a> in smarty_internal_data.php</div> - <div class="index-item-description">Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$smarty">Smarty::$smarty</a> in Smarty.class.php</div> - <div class="index-item-description">self pointer to Smarty object</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$smarty">Smarty_Internal_Template::$smarty</a> in smarty_internal_template.php</div> - <div class="index-item-description">Global smarty instance</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty_debug_id</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$smarty_debug_id">Smarty::$smarty_debug_id</a> in Smarty.class.php</div> - <div class="index-item-description">Name of debugging URL-param.</div> - </dd> - <dt class="field"> - <span class="var-title">$start_time</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$start_time">Smarty::$start_time</a> in Smarty.class.php</div> - <div class="index-item-description">start time for execution time calculation</div> - </dd> - <dt class="field"> - <span class="include-title">SmartyBC.class.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---SmartyBC.class.php.html">SmartyBC.class.php</a> in SmartyBC.class.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_data.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---sysplugins---smarty_internal_data.php.html">smarty_internal_data.php</a> in smarty_internal_data.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_template.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---sysplugins---smarty_internal_template.php.html">smarty_internal_template.php</a> in smarty_internal_template.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_templatebase.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---sysplugins---smarty_internal_templatebase.php.html">smarty_internal_templatebase.php</a> in smarty_internal_templatebase.php</div> - </dd> - <dt class="field"> - SCOPE_GLOBAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_GLOBAL">Smarty::SCOPE_GLOBAL</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - SCOPE_LOCAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_LOCAL">Smarty::SCOPE_LOCAL</a> in Smarty.class.php</div> - <div class="index-item-description">define variable scopes</div> - </dd> - <dt class="field"> - SCOPE_PARENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_PARENT">Smarty::SCOPE_PARENT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - SCOPE_ROOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSCOPE_ROOT">Smarty::SCOPE_ROOT</a> in Smarty.class.php</div> - <div class="index-item-description">constant definitions</div> - </dd> - <dt class="field"> - <span class="method-title">setAutoloadFilters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetAutoloadFilters">Smarty::setAutoloadFilters()</a> in Smarty.class.php</div> - <div class="index-item-description">Set autoload filters</div> - </dd> - <dt class="field"> - <span class="method-title">setCacheDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetCacheDir">Smarty::setCacheDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set cache directory</div> - </dd> - <dt class="field"> - <span class="method-title">setCompileDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetCompileDir">Smarty::setCompileDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set compile directory</div> - </dd> - <dt class="field"> - <span class="method-title">setConfigDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetConfigDir">Smarty::setConfigDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set config directory</div> - </dd> - <dt class="field"> - <span class="method-title">setDebugTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetDebugTemplate">Smarty::setDebugTemplate()</a> in Smarty.class.php</div> - <div class="index-item-description">set the debug template</div> - </dd> - <dt class="field"> - <span class="method-title">setDefaultModifiers</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetDefaultModifiers">Smarty::setDefaultModifiers()</a> in Smarty.class.php</div> - <div class="index-item-description">Set default modifiers</div> - </dd> - <dt class="field"> - <span class="method-title">setPluginsDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetPluginsDir">Smarty::setPluginsDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set plugins directory</div> - </dd> - <dt class="field"> - <span class="method-title">setTemplateDir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodsetTemplateDir">Smarty::setTemplateDir()</a> in Smarty.class.php</div> - <div class="index-item-description">Set template directory</div> - </dd> - <dt class="field"> - <span class="method-title">setupInlineSubTemplate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodsetupInlineSubTemplate">Smarty_Internal_Template::setupInlineSubTemplate()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template code runtime function to set up an inline subtemplate</div> - </dd> - <dt class="field"> - Smarty - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html">Smarty</a> in Smarty.class.php</div> - <div class="index-item-description">This is the main Smarty class</div> - </dd> - <dt class="field"> - SmartyBC - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html">SmartyBC</a> in SmartyBC.class.php</div> - <div class="index-item-description">Smarty Backward Compatability Wrapper Class</div> - </dd> - <dt class="field"> - Smarty_Data - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Data.html">Smarty_Data</a> in smarty_internal_data.php</div> - <div class="index-item-description">class for the Smarty data object</div> - </dd> - <dt class="field"> - Smarty_Internal_Data - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html">Smarty_Internal_Data</a> in smarty_internal_data.php</div> - <div class="index-item-description">Base class with template and variable methodes</div> - </dd> - <dt class="field"> - Smarty_Internal_Template - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html">Smarty_Internal_Template</a> in smarty_internal_template.php</div> - <div class="index-item-description">Main class with template data structures and methods</div> - </dd> - <dt class="field"> - Smarty_Internal_TemplateBase - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html">Smarty_Internal_TemplateBase</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Class with shared template methodes</div> - </dd> - <dt class="field"> - <span class="method-title">smarty_php_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/_libs---SmartyBC.class.php.html#functionsmarty_php_tag">smarty_php_tag()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Smarty {php}{/php} block function</div> - </dd> - <dt class="field"> - Smarty_Variable - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html">Smarty_Variable</a> in smarty_internal_data.php</div> - <div class="index-item-description">class for the Smarty variable object</div> - </dd> - <dt class="field"> - SMARTY_VERSION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#constSMARTY_VERSION">Smarty::SMARTY_VERSION</a> in Smarty.class.php</div> - <div class="index-item-description">smarty version</div> - </dd> - <dt class="field"> - <span class="var-title">$short_open_tag</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html#var$short_open_tag">Smarty_Internal_Resource_PHP::$short_open_tag</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">container for short_open_tag directive's value before executing PHP templates</div> - </dd> - <dt class="field"> - <span class="var-title">$smarty</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$smarty">Smarty_Template_Source::$smarty</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty instance</div> - </dd> - <dt class="field"> - <span class="var-title">$source</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$source">Smarty_Template_Cached::$source</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Object</div> - </dd> - <dt class="field"> - <span class="var-title">$source</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$source">Smarty_Template_Compiled::$source</a> in smarty_resource.php</div> - <div class="index-item-description">Source Object</div> - </dd> - <dt class="field"> - <span class="var-title">$sources</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$sources">Smarty_Resource::$sources</a> in smarty_resource.php</div> - <div class="index-item-description">cache for Smarty_Template_Source instances</div> - </dd> - <dt class="field"> - <span class="var-title">$sysplugins</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$sysplugins">Smarty_Resource::$sysplugins</a> in smarty_resource.php</div> - <div class="index-item-description">resource types provided by the core</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_config_source.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_config_source.php.html">smarty_config_source.php</a> in smarty_config_source.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_eval.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_eval.php.html">smarty_internal_resource_eval.php</a> in smarty_internal_resource_eval.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_extends.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_extends.php.html">smarty_internal_resource_extends.php</a> in smarty_internal_resource_extends.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_file.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_file.php.html">smarty_internal_resource_file.php</a> in smarty_internal_resource_file.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_php.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_php.php.html">smarty_internal_resource_php.php</a> in smarty_internal_resource_php.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_registered.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_registered.php.html">smarty_internal_resource_registered.php</a> in smarty_internal_resource_registered.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_stream.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_stream.php.html">smarty_internal_resource_stream.php</a> in smarty_internal_resource_stream.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_internal_resource_string.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_string.php.html">smarty_internal_resource_string.php</a> in smarty_internal_resource_string.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource.php.html">smarty_resource.php</a> in smarty_resource.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource_custom.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource_custom.php.html">smarty_resource_custom.php</a> in smarty_resource_custom.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource_recompiled.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource_recompiled.php.html">smarty_resource_recompiled.php</a> in smarty_resource_recompiled.php</div> - </dd> - <dt class="field"> - <span class="include-title">smarty_resource_uncompiled.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/_libs---sysplugins---smarty_resource_uncompiled.php.html">smarty_resource_uncompiled.php</a> in smarty_resource_uncompiled.php</div> - </dd> - <dt class="field"> - Smarty_Config_Source - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Config_Source.html">Smarty_Config_Source</a> in smarty_config_source.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Eval - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html">Smarty_Internal_Resource_Eval</a> in smarty_internal_resource_eval.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Eval</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Extends - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html">Smarty_Internal_Resource_Extends</a> in smarty_internal_resource_extends.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Extends</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_File - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_File.html">Smarty_Internal_Resource_File</a> in smarty_internal_resource_file.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource File</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_PHP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html">Smarty_Internal_Resource_PHP</a> in smarty_internal_resource_php.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource PHP</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Registered - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html">Smarty_Internal_Resource_Registered</a> in smarty_internal_resource_registered.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Registered</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_Stream - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html">Smarty_Internal_Resource_Stream</a> in smarty_internal_resource_stream.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource Stream</div> - </dd> - <dt class="field"> - Smarty_Internal_Resource_String - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Internal_Resource_String.html">Smarty_Internal_Resource_String</a> in smarty_internal_resource_string.php</div> - <div class="index-item-description">Smarty Internal Plugin Resource String</div> - </dd> - <dt class="field"> - Smarty_Resource - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html">Smarty_Resource</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - Smarty_Resource_Custom - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Custom.html">Smarty_Resource_Custom</a> in smarty_resource_custom.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - Smarty_Resource_Recompiled - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Recompiled.html">Smarty_Resource_Recompiled</a> in smarty_resource_recompiled.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - Smarty_Resource_Uncompiled - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource_Uncompiled.html">Smarty_Resource_Uncompiled</a> in smarty_resource_uncompiled.php</div> - <div class="index-item-description">Smarty Resource Plugin</div> - </dd> - <dt class="field"> - Smarty_Template_Cached - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html">Smarty_Template_Cached</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Template_Compiled - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html">Smarty_Template_Compiled</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - Smarty_Template_Source - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html">Smarty_Template_Source</a> in smarty_resource.php</div> - <div class="index-item-description">Smarty Resource Data Object</div> - </dd> - <dt class="field"> - <span class="method-title">source</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#methodsource">Smarty_Resource::source()</a> in smarty_resource.php</div> - <div class="index-item-description">initialize Source Object for given resource</div> - </dd> - </dl> - <a name="t"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">t</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$timestamps</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#var$timestamps">Smarty_CacheResource_KeyValueStore::$timestamps</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">cache for timestamps</div> - </dd> - <dt class="field"> - <span class="var-title">$taglineno</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$taglineno">Smarty_Internal_Templatelexer::$taglineno</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$template</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$template">Smarty_Internal_TemplateCompilerBase::$template</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">current template</div> - </dd> - <dt class="field"> - <span class="var-title">$token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$token">Smarty_Internal_Templatelexer::$token</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - TEXT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#constTEXT">Smarty_Internal_Templatelexer::TEXT</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">tokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodtokenName">Smarty_Internal_Configfileparser::tokenName()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">tokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodtokenName">Smarty_Internal_Templateparser::tokenName()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TPC_BOOL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_BOOL">Smarty_Internal_Configfileparser::TPC_BOOL</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_CLOSEB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_CLOSEB">Smarty_Internal_Configfileparser::TPC_CLOSEB</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_COMMENTSTART - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_COMMENTSTART">Smarty_Internal_Configfileparser::TPC_COMMENTSTART</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_DOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_DOT">Smarty_Internal_Configfileparser::TPC_DOT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_DOUBLE_QUOTED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_DOUBLE_QUOTED_STRING">Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_EQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_EQUAL">Smarty_Internal_Configfileparser::TPC_EQUAL</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_FLOAT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_FLOAT">Smarty_Internal_Configfileparser::TPC_FLOAT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_ID - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_ID">Smarty_Internal_Configfileparser::TPC_ID</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_INT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_INT">Smarty_Internal_Configfileparser::TPC_INT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_NAKED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_NAKED_STRING">Smarty_Internal_Configfileparser::TPC_NAKED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_NEWLINE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_NEWLINE">Smarty_Internal_Configfileparser::TPC_NEWLINE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_OPENB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_OPENB">Smarty_Internal_Configfileparser::TPC_OPENB</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_SECTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_SECTION">Smarty_Internal_Configfileparser::TPC_SECTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_SINGLE_QUOTED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_SINGLE_QUOTED_STRING">Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_TRIPPLE_DOUBLE_QUOTED_STRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constTPC_TRIPPLE_DOUBLE_QUOTED_STRING">Smarty_Internal_Configfileparser::TPC_TRIPPLE_DOUBLE_QUOTED_STRING</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_yyStackEntry - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyStackEntry.html">TPC_yyStackEntry</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - TPC_yyToken - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TPC_yyToken.html">TPC_yyToken</a> in smarty_internal_configfileparser.php</div> - <div class="index-item-description">Smarty Internal Plugin Configfileparser</div> - </dd> - <dt class="field"> - TP_ANDSYM - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ANDSYM">Smarty_Internal_Templateparser::TP_ANDSYM</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_APTR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_APTR">Smarty_Internal_Templateparser::TP_APTR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_AS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_AS">Smarty_Internal_Templateparser::TP_AS</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ASPENDTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ASPENDTAG">Smarty_Internal_Templateparser::TP_ASPENDTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ASPSTARTTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ASPSTARTTAG">Smarty_Internal_Templateparser::TP_ASPSTARTTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_AT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_AT">Smarty_Internal_Templateparser::TP_AT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_BACKTICK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_BACKTICK">Smarty_Internal_Templateparser::TP_BACKTICK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_CLOSEB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_CLOSEB">Smarty_Internal_Templateparser::TP_CLOSEB</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_CLOSEP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_CLOSEP">Smarty_Internal_Templateparser::TP_CLOSEP</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_COLON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_COLON">Smarty_Internal_Templateparser::TP_COLON</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_COMMA - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_COMMA">Smarty_Internal_Templateparser::TP_COMMA</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_COMMENT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_COMMENT">Smarty_Internal_Templateparser::TP_COMMENT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOLLAR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOLLAR">Smarty_Internal_Templateparser::TP_DOLLAR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOLLARID - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOLLARID">Smarty_Internal_Templateparser::TP_DOLLARID</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOT">Smarty_Internal_Templateparser::TP_DOT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_DOUBLECOLON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_DOUBLECOLON">Smarty_Internal_Templateparser::TP_DOUBLECOLON</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_EQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_EQUAL">Smarty_Internal_Templateparser::TP_EQUAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_EQUALS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_EQUALS">Smarty_Internal_Templateparser::TP_EQUALS</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_FAKEPHPSTARTTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_FAKEPHPSTARTTAG">Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_GREATEREQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_GREATEREQUAL">Smarty_Internal_Templateparser::TP_GREATEREQUAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_GREATERTHAN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_GREATERTHAN">Smarty_Internal_Templateparser::TP_GREATERTHAN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_HATCH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_HATCH">Smarty_Internal_Templateparser::TP_HATCH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_HEX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_HEX">Smarty_Internal_Templateparser::TP_HEX</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ID - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ID">Smarty_Internal_Templateparser::TP_ID</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_IDENTITY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_IDENTITY">Smarty_Internal_Templateparser::TP_IDENTITY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_INCDEC - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_INCDEC">Smarty_Internal_Templateparser::TP_INCDEC</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_INSTANCEOF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_INSTANCEOF">Smarty_Internal_Templateparser::TP_INSTANCEOF</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_INTEGER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_INTEGER">Smarty_Internal_Templateparser::TP_INTEGER</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISDIVBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISDIVBY">Smarty_Internal_Templateparser::TP_ISDIVBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISEVEN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISEVEN">Smarty_Internal_Templateparser::TP_ISEVEN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISEVENBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISEVENBY">Smarty_Internal_Templateparser::TP_ISEVENBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISIN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISIN">Smarty_Internal_Templateparser::TP_ISIN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTDIVBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTDIVBY">Smarty_Internal_Templateparser::TP_ISNOTDIVBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTEVEN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTEVEN">Smarty_Internal_Templateparser::TP_ISNOTEVEN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTEVENBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTEVENBY">Smarty_Internal_Templateparser::TP_ISNOTEVENBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTODD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTODD">Smarty_Internal_Templateparser::TP_ISNOTODD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISNOTODDBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISNOTODDBY">Smarty_Internal_Templateparser::TP_ISNOTODDBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISODD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISODD">Smarty_Internal_Templateparser::TP_ISODD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_ISODDBY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_ISODDBY">Smarty_Internal_Templateparser::TP_ISODDBY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LAND - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LAND">Smarty_Internal_Templateparser::TP_LAND</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDEL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDEL">Smarty_Internal_Templateparser::TP_LDEL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELFOR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELFOR">Smarty_Internal_Templateparser::TP_LDELFOR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELFOREACH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELFOREACH">Smarty_Internal_Templateparser::TP_LDELFOREACH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELIF - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELIF">Smarty_Internal_Templateparser::TP_LDELIF</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELSETFILTER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELSETFILTER">Smarty_Internal_Templateparser::TP_LDELSETFILTER</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LDELSLASH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LDELSLASH">Smarty_Internal_Templateparser::TP_LDELSLASH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LESSEQUAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LESSEQUAL">Smarty_Internal_Templateparser::TP_LESSEQUAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LESSTHAN - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LESSTHAN">Smarty_Internal_Templateparser::TP_LESSTHAN</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LINEBREAK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LINEBREAK">Smarty_Internal_Templateparser::TP_LINEBREAK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LITERAL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LITERAL">Smarty_Internal_Templateparser::TP_LITERAL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LITERALEND - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LITERALEND">Smarty_Internal_Templateparser::TP_LITERALEND</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LITERALSTART - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LITERALSTART">Smarty_Internal_Templateparser::TP_LITERALSTART</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LOR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LOR">Smarty_Internal_Templateparser::TP_LOR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_LXOR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_LXOR">Smarty_Internal_Templateparser::TP_LXOR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_MATH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_MATH">Smarty_Internal_Templateparser::TP_MATH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_MOD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_MOD">Smarty_Internal_Templateparser::TP_MOD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_NONEIDENTITY - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_NONEIDENTITY">Smarty_Internal_Templateparser::TP_NONEIDENTITY</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_NOT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_NOT">Smarty_Internal_Templateparser::TP_NOT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_NOTEQUALS - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_NOTEQUALS">Smarty_Internal_Templateparser::TP_NOTEQUALS</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_OPENB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_OPENB">Smarty_Internal_Templateparser::TP_OPENB</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_OPENP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_OPENP">Smarty_Internal_Templateparser::TP_OPENP</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_OTHER - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_OTHER">Smarty_Internal_Templateparser::TP_OTHER</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_PHPENDTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_PHPENDTAG">Smarty_Internal_Templateparser::TP_PHPENDTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_PHPSTARTTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_PHPSTARTTAG">Smarty_Internal_Templateparser::TP_PHPSTARTTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_PTR - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_PTR">Smarty_Internal_Templateparser::TP_PTR</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_QMARK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_QMARK">Smarty_Internal_Templateparser::TP_QMARK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_QUOTE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_QUOTE">Smarty_Internal_Templateparser::TP_QUOTE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_RDEL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_RDEL">Smarty_Internal_Templateparser::TP_RDEL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SEMICOLON - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SEMICOLON">Smarty_Internal_Templateparser::TP_SEMICOLON</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SINGLEQUOTESTRING - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SINGLEQUOTESTRING">Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SMARTYBLOCKCHILD - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SMARTYBLOCKCHILD">Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILD</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_SPACE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_SPACE">Smarty_Internal_Templateparser::TP_SPACE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_STEP - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_STEP">Smarty_Internal_Templateparser::TP_STEP</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_TO - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_TO">Smarty_Internal_Templateparser::TP_TO</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_TYPECAST - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_TYPECAST">Smarty_Internal_Templateparser::TP_TYPECAST</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_UNIMATH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_UNIMATH">Smarty_Internal_Templateparser::TP_UNIMATH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_VERT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_VERT">Smarty_Internal_Templateparser::TP_VERT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_XMLTAG - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constTP_XMLTAG">Smarty_Internal_Templateparser::TP_XMLTAG</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_yyStackEntry - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyStackEntry.html">TP_yyStackEntry</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - TP_yyToken - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/TP_yyToken.html">TP_yyToken</a> in smarty_internal_templateparser.php</div> - <div class="index-item-description">Smarty Internal Plugin Templateparser</div> - </dd> - <dt class="field"> - <span class="method-title">Trace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodTrace">Smarty_Internal_Templateparser::Trace()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">Trace</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodTrace">Smarty_Internal_Configfileparser::Trace()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">trigger_template_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#methodtrigger_template_error">Smarty_Internal_TemplateCompilerBase::trigger_template_error()</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">display compiler error messages without dying</div> - </dd> - <dt class="field"> - <span class="var-title">$token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$token">Smarty_Internal_Configfilelexer::$token</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">trigger_config_file_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Config_File_Compiler.html#methodtrigger_config_file_error">Smarty_Internal_Config_File_Compiler::trigger_config_file_error()</a> in smarty_internal_config_file_compiler.php</div> - <div class="index-item-description">display compiler error messages without dying</div> - </dd> - <dt class="field"> - <span class="var-title">$template_data</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Debug/Smarty_Internal_Debug.html#var$template_data">Smarty_Internal_Debug::$template_data</a> in smarty_internal_debug.php</div> - <div class="index-item-description">template data</div> - </dd> - <dt class="field"> - <span class="var-title">$trusted_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Security.html#var$trusted_dir">Smarty_Security::$trusted_dir</a> in smarty_security.php</div> - <div class="index-item-description">This is an array of directories where trusted php scripts reside.</div> - </dd> - <dt class="field"> - <span class="method-title">testInstall</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Security/Smarty_Internal_Utility.html#methodtestInstall">Smarty_Internal_Utility::testInstall()</a> in smarty_internal_utility.php</div> - <div class="index-item-description">diagnose Smarty setup</div> - </dd> - <dt class="field"> - <span class="var-title">$template_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$template_class">Smarty_Internal_Data::$template_class</a> in smarty_internal_data.php</div> - <div class="index-item-description">name of class used for templates</div> - </dd> - <dt class="field"> - <span class="var-title">$template_dir</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$template_dir">Smarty::$template_dir</a> in Smarty.class.php</div> - <div class="index-item-description">template directory</div> - </dd> - <dt class="field"> - <span class="var-title">$template_functions</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$template_functions">Smarty::$template_functions</a> in Smarty.class.php</div> - <div class="index-item-description">global template functions</div> - </dd> - <dt class="field"> - <span class="var-title">$template_objects</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$template_objects">Smarty::$template_objects</a> in Smarty.class.php</div> - <div class="index-item-description">cached template objects</div> - </dd> - <dt class="field"> - <span class="var-title">$template_resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$template_resource">Smarty_Internal_Template::$template_resource</a> in smarty_internal_template.php</div> - <div class="index-item-description">Template resource</div> - </dd> - <dt class="field"> - <span class="var-title">$tpl_vars</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Data.html#var$tpl_vars">Smarty_Internal_Data::$tpl_vars</a> in smarty_internal_data.php</div> - <div class="index-item-description">template variables</div> - </dd> - <dt class="field"> - <span class="method-title">templateExists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodtemplateExists">Smarty::templateExists()</a> in Smarty.class.php</div> - <div class="index-item-description">Check if a template resource exists</div> - </dd> - <dt class="field"> - <span class="method-title">template_exists</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodtemplate_exists">SmartyBC::template_exists()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Checks whether requested template exists.</div> - </dd> - <dt class="field"> - <span class="method-title">testInstall</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodtestInstall">Smarty::testInstall()</a> in Smarty.class.php</div> - <div class="index-item-description">Run installation test</div> - </dd> - <dt class="field"> - <span class="method-title">trigger_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodtrigger_error">SmartyBC::trigger_error()</a> in SmartyBC.class.php</div> - <div class="index-item-description">trigger Smarty error</div> - </dd> - <dt class="field"> - <span class="var-title">$template_lexer_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$template_lexer_class">Smarty_Template_Source::$template_lexer_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to tokenize this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_lexer_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$template_lexer_class">Smarty_Resource::$template_lexer_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to tokenize this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_parser_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$template_parser_class">Smarty_Template_Source::$template_parser_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to parse this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$template_parser_class</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Resource.html#var$template_parser_class">Smarty_Resource::$template_parser_class</a> in smarty_resource.php</div> - <div class="index-item-description">Name of the Class to parse this resource's contents with</div> - </dd> - <dt class="field"> - <span class="var-title">$timestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Compiled.html#var$timestamp">Smarty_Template_Compiled::$timestamp</a> in smarty_resource.php</div> - <div class="index-item-description">Compiled Timestamp</div> - </dd> - <dt class="field"> - <span class="var-title">$timestamp</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$timestamp">Smarty_Template_Cached::$timestamp</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Source Timestamp</div> - </dd> - <dt class="field"> - <span class="var-title">$type</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$type">Smarty_Template_Source::$type</a> in smarty_resource.php</div> - <div class="index-item-description">Resource Type</div> - </dd> - </dl> - <a name="u"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">u</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$used_tags</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$used_tags">Smarty_Internal_Template::$used_tags</a> in smarty_internal_template.php</div> - <div class="index-item-description">optional log of tag/attributes</div> - </dd> - <dt class="field"> - <span class="var-title">$use_include_path</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$use_include_path">Smarty::$use_include_path</a> in Smarty.class.php</div> - <div class="index-item-description">look up relative filepaths in include_path</div> - </dd> - <dt class="field"> - <span class="var-title">$use_sub_dirs</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#var$use_sub_dirs">Smarty::$use_sub_dirs</a> in Smarty.class.php</div> - <div class="index-item-description">use sub dirs for compiled/cached files?</div> - </dd> - <dt class="field"> - Undefined_Smarty_Variable - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Undefined_Smarty_Variable.html">Undefined_Smarty_Variable</a> in smarty_internal_data.php</div> - <div class="index-item-description">class for undefined variable object</div> - </dd> - <dt class="field"> - <span class="method-title">unmuteExpectedErrors</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty.html#methodunmuteExpectedErrors">Smarty::unmuteExpectedErrors()</a> in Smarty.class.php</div> - <div class="index-item-description">Disable error handler muting expected messages</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterCacheResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterCacheResource">Smarty_Internal_TemplateBase::unregisterCacheResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregisters a cache resource</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterFilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterFilter">Smarty_Internal_TemplateBase::unregisterFilter()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregisters a filter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterObject</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterObject">Smarty_Internal_TemplateBase::unregisterObject()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">unregister an object</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterPlugin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterPlugin">Smarty_Internal_TemplateBase::unregisterPlugin()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregister Plugin</div> - </dd> - <dt class="field"> - <span class="method-title">unregisterResource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_TemplateBase.html#methodunregisterResource">Smarty_Internal_TemplateBase::unregisterResource()</a> in smarty_internal_templatebase.php</div> - <div class="index-item-description">Unregisters a resource</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_block</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_block">SmartyBC::unregister_block()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters block function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_compiler_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_compiler_function">SmartyBC::unregister_compiler_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters compiler function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_function</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_function">SmartyBC::unregister_function()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters custom function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_modifier</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_modifier">SmartyBC::unregister_modifier()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters modifier</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_object</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_object">SmartyBC::unregister_object()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters object</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_outputfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_outputfilter">SmartyBC::unregister_outputfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters an outputfilter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_postfilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_postfilter">SmartyBC::unregister_postfilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters a postfilter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_prefilter</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_prefilter">SmartyBC::unregister_prefilter()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters a prefilter function</div> - </dd> - <dt class="field"> - <span class="method-title">unregister_resource</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/SmartyBC.html#methodunregister_resource">SmartyBC::unregister_resource()</a> in SmartyBC.class.php</div> - <div class="index-item-description">Unregisters a resource</div> - </dd> - <dt class="field"> - <span class="var-title">$uid</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$uid">Smarty_Template_Source::$uid</a> in smarty_resource.php</div> - <div class="index-item-description">Unique Template ID</div> - </dd> - <dt class="field"> - <span class="var-title">$uncompiled</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Source.html#var$uncompiled">Smarty_Template_Source::$uncompiled</a> in smarty_resource.php</div> - <div class="index-item-description">Source is bypassing compiler</div> - </dd> - </dl> - <a name="v"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">v</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$value</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#var$value">Smarty_Internal_Templatelexer::$value</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="var-title">$value</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#var$value">Smarty_Internal_Configfilelexer::$value</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - VALUE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#constVALUE">Smarty_Internal_Configfilelexer::VALUE</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="include-title">variablefilter.htmlspecialchars.php</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html">variablefilter.htmlspecialchars.php</a> in variablefilter.htmlspecialchars.php</div> - </dd> - <dt class="field"> - <span class="var-title">$value</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Variable.html#var$value">Smarty_Variable::$value</a> in smarty_internal_data.php</div> - <div class="index-item-description">template variable</div> - </dd> - <dt class="field"> - <span class="var-title">$variable_filters</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#var$variable_filters">Smarty_Internal_Template::$variable_filters</a> in smarty_internal_template.php</div> - <div class="index-item-description">variable filters</div> - </dd> - <dt class="field"> - <span class="var-title">$valid</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#var$valid">Smarty_Template_Cached::$valid</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Cache Is Valid</div> - </dd> - </dl> - <a name="w"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">w</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwrite">Smarty_CacheResource_KeyValueStore::write()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Save values for a set of keys to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_Internal_CacheResource_File.html#methodwriteCachedContent">Smarty_Internal_CacheResource_File::writeCachedContent()</a> in smarty_internal_cacheresource_file.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html#methodwriteCachedContent">Smarty_CacheResource_KeyValueStore::writeCachedContent()</a> in smarty_cacheresource_keyvaluestore.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource.html#methodwriteCachedContent">Smarty_CacheResource::writeCachedContent()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Cacher/Smarty_CacheResource_Custom.html#methodwriteCachedContent">Smarty_CacheResource_Custom::writeCachedContent()</a> in smarty_cacheresource_custom.php</div> - <div class="index-item-description">Write the rendered template output to cache</div> - </dd> - <dt class="field"> - <span class="var-title">$write_compiled_code</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html#var$write_compiled_code">Smarty_Internal_TemplateCompilerBase::$write_compiled_code</a> in smarty_internal_templatecompilerbase.php</div> - <div class="index-item-description">flag if compiled template file shall we written</div> - </dd> - <dt class="field"> - <span class="method-title">writeFile</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/PluginsInternal/Smarty_Internal_Write_File.html#methodwriteFile">Smarty_Internal_Write_File::writeFile()</a> in smarty_internal_write_file.php</div> - <div class="index-item-description">Writes file in a safe way to disk</div> - </dd> - <dt class="field"> - <span class="method-title">writeCachedContent</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Template/Smarty_Internal_Template.html#methodwriteCachedContent">Smarty_Internal_Template::writeCachedContent()</a> in smarty_internal_template.php</div> - <div class="index-item-description">Writes the cached template output</div> - </dd> - <dt class="field"> - <span class="method-title">write</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/TemplateResources/Smarty_Template_Cached.html#methodwrite">Smarty_Template_Cached::write()</a> in smarty_cacheresource.php</div> - <div class="index-item-description">Write this cache object to handler</div> - </dd> - </dl> - <a name="y"></a> - <div class="index-letter-section"> - <div style="float: left" class="index-letter-title">y</div> - <div style="float: right"><a href="#top">top</a></div> - <div style="clear: both"></div> - </div> - <dl> - <dt class="field"> - <span class="var-title">$yyerrcnt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyerrcnt">Smarty_Internal_Configfileparser::$yyerrcnt</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyerrcnt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyerrcnt">Smarty_Internal_Templateparser::$yyerrcnt</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyExpectedTokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyExpectedTokens">Smarty_Internal_Configfileparser::$yyExpectedTokens</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyExpectedTokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyExpectedTokens">Smarty_Internal_Templateparser::$yyExpectedTokens</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyFallback</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyFallback">Smarty_Internal_Configfileparser::$yyFallback</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyFallback</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyFallback">Smarty_Internal_Templateparser::$yyFallback</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyidx</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyidx">Smarty_Internal_Templateparser::$yyidx</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyidx</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyidx">Smarty_Internal_Configfileparser::$yyidx</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyReduceMap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyReduceMap">Smarty_Internal_Configfileparser::$yyReduceMap</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyReduceMap</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyReduceMap">Smarty_Internal_Templateparser::$yyReduceMap</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleInfo</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyRuleInfo">Smarty_Internal_Configfileparser::$yyRuleInfo</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleInfo</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyRuleInfo">Smarty_Internal_Templateparser::$yyRuleInfo</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyRuleName">Smarty_Internal_Configfileparser::$yyRuleName</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyRuleName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyRuleName">Smarty_Internal_Templateparser::$yyRuleName</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yystack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yystack">Smarty_Internal_Configfileparser::$yystack</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yystack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yystack">Smarty_Internal_Templateparser::$yystack</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyTokenName">Smarty_Internal_Configfileparser::$yyTokenName</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTokenName</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyTokenName">Smarty_Internal_Templateparser::$yyTokenName</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTraceFILE</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyTraceFILE">Smarty_Internal_Configfileparser::$yyTraceFILE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTraceFILE</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyTraceFILE">Smarty_Internal_Templateparser::$yyTraceFILE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTracePrompt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yyTracePrompt">Smarty_Internal_Configfileparser::$yyTracePrompt</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yyTracePrompt</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yyTracePrompt">Smarty_Internal_Templateparser::$yyTracePrompt</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_action">Smarty_Internal_Configfileparser::$yy_action</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_action">Smarty_Internal_Templateparser::$yy_action</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_default</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_default">Smarty_Internal_Templateparser::$yy_default</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_default</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_default">Smarty_Internal_Configfileparser::$yy_default</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_lookahead</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_lookahead">Smarty_Internal_Templateparser::$yy_lookahead</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_lookahead</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_lookahead">Smarty_Internal_Configfileparser::$yy_lookahead</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_reduce_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_reduce_ofst">Smarty_Internal_Configfileparser::$yy_reduce_ofst</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_reduce_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_reduce_ofst">Smarty_Internal_Templateparser::$yy_reduce_ofst</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_shift_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#var$yy_shift_ofst">Smarty_Internal_Configfileparser::$yy_shift_ofst</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="var-title">$yy_shift_ofst</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#var$yy_shift_ofst">Smarty_Internal_Templateparser::$yy_shift_ofst</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yybegin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyybegin">Smarty_Internal_Templatelexer::yybegin()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - YYERRORSYMBOL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYERRORSYMBOL">Smarty_Internal_Configfileparser::YYERRORSYMBOL</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYERRORSYMBOL - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYERRORSYMBOL">Smarty_Internal_Templateparser::YYERRORSYMBOL</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYERRSYMDT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYERRSYMDT">Smarty_Internal_Configfileparser::YYERRSYMDT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYERRSYMDT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYERRSYMDT">Smarty_Internal_Templateparser::YYERRSYMDT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYFALLBACK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYFALLBACK">Smarty_Internal_Configfileparser::YYFALLBACK</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYFALLBACK - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYFALLBACK">Smarty_Internal_Templateparser::YYFALLBACK</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex">Smarty_Internal_Templatelexer::yylex()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex1">Smarty_Internal_Templatelexer::yylex1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex2">Smarty_Internal_Templatelexer::yylex2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex3">Smarty_Internal_Templatelexer::yylex3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyylex4">Smarty_Internal_Templatelexer::yylex4()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - YYNOCODE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYNOCODE">Smarty_Internal_Templateparser::YYNOCODE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYNOCODE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYNOCODE">Smarty_Internal_Configfileparser::YYNOCODE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYNRULE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYNRULE">Smarty_Internal_Configfileparser::YYNRULE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYNRULE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYNRULE">Smarty_Internal_Templateparser::YYNRULE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYNSTATE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYNSTATE">Smarty_Internal_Templateparser::YYNSTATE</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YYNSTATE - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYNSTATE">Smarty_Internal_Configfileparser::YYNSTATE</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypopstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyypopstate">Smarty_Internal_Templatelexer::yypopstate()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypushstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyypushstate">Smarty_Internal_Templatelexer::yypushstate()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - YYSTACKDEPTH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYYSTACKDEPTH">Smarty_Internal_Configfileparser::YYSTACKDEPTH</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YYSTACKDEPTH - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYYSTACKDEPTH">Smarty_Internal_Templateparser::YYSTACKDEPTH</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_accept</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_accept">Smarty_Internal_Configfileparser::yy_accept()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_accept</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_accept">Smarty_Internal_Templateparser::yy_accept()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_ACCEPT_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_ACCEPT_ACTION">Smarty_Internal_Configfileparser::YY_ACCEPT_ACTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_ACCEPT_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_ACCEPT_ACTION">Smarty_Internal_Templateparser::YY_ACCEPT_ACTION</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_destructor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_destructor">Smarty_Internal_Configfileparser::yy_destructor()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_destructor</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_destructor">Smarty_Internal_Templateparser::yy_destructor()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_ERROR_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_ERROR_ACTION">Smarty_Internal_Templateparser::YY_ERROR_ACTION</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_ERROR_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_ERROR_ACTION">Smarty_Internal_Configfileparser::YY_ERROR_ACTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_reduce_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_find_reduce_action">Smarty_Internal_Configfileparser::yy_find_reduce_action()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_reduce_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_find_reduce_action">Smarty_Internal_Templateparser::yy_find_reduce_action()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_shift_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_find_shift_action">Smarty_Internal_Configfileparser::yy_find_shift_action()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_find_shift_action</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_find_shift_action">Smarty_Internal_Templateparser::yy_find_shift_action()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_get_expected_tokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_get_expected_tokens">Smarty_Internal_Configfileparser::yy_get_expected_tokens()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_get_expected_tokens</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_get_expected_tokens">Smarty_Internal_Templateparser::yy_get_expected_tokens()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_is_expected_token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_is_expected_token">Smarty_Internal_Configfileparser::yy_is_expected_token()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_is_expected_token</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_is_expected_token">Smarty_Internal_Templateparser::yy_is_expected_token()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_NO_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_NO_ACTION">Smarty_Internal_Configfileparser::YY_NO_ACTION</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_NO_ACTION - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_NO_ACTION">Smarty_Internal_Templateparser::YY_NO_ACTION</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_parse_failed</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_parse_failed">Smarty_Internal_Templateparser::yy_parse_failed()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_parse_failed</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_parse_failed">Smarty_Internal_Configfileparser::yy_parse_failed()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_pop_parser_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_pop_parser_stack">Smarty_Internal_Templateparser::yy_pop_parser_stack()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_pop_parser_stack</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_pop_parser_stack">Smarty_Internal_Configfileparser::yy_pop_parser_stack()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r0</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r0">Smarty_Internal_Templateparser::yy_r0()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r0</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r0">Smarty_Internal_Configfileparser::yy_r0()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r1">Smarty_Internal_Templateparser::yy_r1()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r1">Smarty_Internal_Configfileparser::yy_r1()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_1">Smarty_Internal_Templatelexer::yy_r1_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_2">Smarty_Internal_Templatelexer::yy_r1_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_3">Smarty_Internal_Templatelexer::yy_r1_3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_5">Smarty_Internal_Templatelexer::yy_r1_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_6">Smarty_Internal_Templatelexer::yy_r1_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_7">Smarty_Internal_Templatelexer::yy_r1_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_8">Smarty_Internal_Templatelexer::yy_r1_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_9">Smarty_Internal_Templatelexer::yy_r1_9()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_10">Smarty_Internal_Templatelexer::yy_r1_10()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_11">Smarty_Internal_Templatelexer::yy_r1_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_12">Smarty_Internal_Templatelexer::yy_r1_12()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_14">Smarty_Internal_Templatelexer::yy_r1_14()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_15">Smarty_Internal_Templatelexer::yy_r1_15()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_16">Smarty_Internal_Templatelexer::yy_r1_16()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_17">Smarty_Internal_Templatelexer::yy_r1_17()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_18</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_18">Smarty_Internal_Templatelexer::yy_r1_18()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_19</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_19">Smarty_Internal_Templatelexer::yy_r1_19()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_20</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_20">Smarty_Internal_Templatelexer::yy_r1_20()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_21</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_21">Smarty_Internal_Templatelexer::yy_r1_21()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_22</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_22">Smarty_Internal_Templatelexer::yy_r1_22()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_23</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_23">Smarty_Internal_Templatelexer::yy_r1_23()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_24</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_24">Smarty_Internal_Templatelexer::yy_r1_24()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_27</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_27">Smarty_Internal_Templatelexer::yy_r1_27()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_28</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r1_28">Smarty_Internal_Templatelexer::yy_r1_28()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_1">Smarty_Internal_Templatelexer::yy_r2_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_2">Smarty_Internal_Templatelexer::yy_r2_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_3">Smarty_Internal_Templatelexer::yy_r2_3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_5">Smarty_Internal_Templatelexer::yy_r2_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_6">Smarty_Internal_Templatelexer::yy_r2_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_7">Smarty_Internal_Templatelexer::yy_r2_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_8">Smarty_Internal_Templatelexer::yy_r2_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_9">Smarty_Internal_Templatelexer::yy_r2_9()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_10">Smarty_Internal_Templatelexer::yy_r2_10()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_11">Smarty_Internal_Templatelexer::yy_r2_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_12">Smarty_Internal_Templatelexer::yy_r2_12()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_13">Smarty_Internal_Templatelexer::yy_r2_13()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_14">Smarty_Internal_Templatelexer::yy_r2_14()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_15">Smarty_Internal_Templatelexer::yy_r2_15()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_16">Smarty_Internal_Templatelexer::yy_r2_16()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_17">Smarty_Internal_Templatelexer::yy_r2_17()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_18</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_18">Smarty_Internal_Templatelexer::yy_r2_18()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_19</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_19">Smarty_Internal_Templatelexer::yy_r2_19()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_20</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_20">Smarty_Internal_Templatelexer::yy_r2_20()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_22</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_22">Smarty_Internal_Templatelexer::yy_r2_22()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_24</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_24">Smarty_Internal_Templatelexer::yy_r2_24()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_26</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_26">Smarty_Internal_Templatelexer::yy_r2_26()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_27</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_27">Smarty_Internal_Templatelexer::yy_r2_27()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_28</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_28">Smarty_Internal_Templatelexer::yy_r2_28()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_29</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_29">Smarty_Internal_Templatelexer::yy_r2_29()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_30</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_30">Smarty_Internal_Templatelexer::yy_r2_30()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_31</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_31">Smarty_Internal_Templatelexer::yy_r2_31()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_32</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_32">Smarty_Internal_Templatelexer::yy_r2_32()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_33</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_33">Smarty_Internal_Templatelexer::yy_r2_33()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_34</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_34">Smarty_Internal_Templatelexer::yy_r2_34()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_35</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_35">Smarty_Internal_Templatelexer::yy_r2_35()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_36</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_36">Smarty_Internal_Templatelexer::yy_r2_36()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_37</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_37">Smarty_Internal_Templatelexer::yy_r2_37()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_38</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_38">Smarty_Internal_Templatelexer::yy_r2_38()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_39</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_39">Smarty_Internal_Templatelexer::yy_r2_39()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_40</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_40">Smarty_Internal_Templatelexer::yy_r2_40()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_41</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_41">Smarty_Internal_Templatelexer::yy_r2_41()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_42</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_42">Smarty_Internal_Templatelexer::yy_r2_42()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_43</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_43">Smarty_Internal_Templatelexer::yy_r2_43()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_47</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_47">Smarty_Internal_Templatelexer::yy_r2_47()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_48</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_48">Smarty_Internal_Templatelexer::yy_r2_48()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_49</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_49">Smarty_Internal_Templatelexer::yy_r2_49()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_50</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_50">Smarty_Internal_Templatelexer::yy_r2_50()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_51</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_51">Smarty_Internal_Templatelexer::yy_r2_51()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_52</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_52">Smarty_Internal_Templatelexer::yy_r2_52()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_53</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_53">Smarty_Internal_Templatelexer::yy_r2_53()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_54</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_54">Smarty_Internal_Templatelexer::yy_r2_54()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_55</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_55">Smarty_Internal_Templatelexer::yy_r2_55()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_57</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_57">Smarty_Internal_Templatelexer::yy_r2_57()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_59</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_59">Smarty_Internal_Templatelexer::yy_r2_59()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_60</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_60">Smarty_Internal_Templatelexer::yy_r2_60()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_61</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_61">Smarty_Internal_Templatelexer::yy_r2_61()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_62</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_62">Smarty_Internal_Templatelexer::yy_r2_62()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_63</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_63">Smarty_Internal_Templatelexer::yy_r2_63()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_64</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_64">Smarty_Internal_Templatelexer::yy_r2_64()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_65</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_65">Smarty_Internal_Templatelexer::yy_r2_65()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_66</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_66">Smarty_Internal_Templatelexer::yy_r2_66()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_67</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_67">Smarty_Internal_Templatelexer::yy_r2_67()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_68</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_68">Smarty_Internal_Templatelexer::yy_r2_68()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_69</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_69">Smarty_Internal_Templatelexer::yy_r2_69()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_70</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_70">Smarty_Internal_Templatelexer::yy_r2_70()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_71</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_71">Smarty_Internal_Templatelexer::yy_r2_71()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_72</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_72">Smarty_Internal_Templatelexer::yy_r2_72()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_73</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_73">Smarty_Internal_Templatelexer::yy_r2_73()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_74</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_74">Smarty_Internal_Templatelexer::yy_r2_74()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_75</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_75">Smarty_Internal_Templatelexer::yy_r2_75()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_76</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r2_76">Smarty_Internal_Templatelexer::yy_r2_76()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_1">Smarty_Internal_Templatelexer::yy_r3_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_2">Smarty_Internal_Templatelexer::yy_r3_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_3">Smarty_Internal_Templatelexer::yy_r3_3()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_4">Smarty_Internal_Templatelexer::yy_r3_4()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_5">Smarty_Internal_Templatelexer::yy_r3_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_6">Smarty_Internal_Templatelexer::yy_r3_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_7">Smarty_Internal_Templatelexer::yy_r3_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_8">Smarty_Internal_Templatelexer::yy_r3_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r3_11">Smarty_Internal_Templatelexer::yy_r3_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r4">Smarty_Internal_Templateparser::yy_r4()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r4">Smarty_Internal_Configfileparser::yy_r4()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_1">Smarty_Internal_Templatelexer::yy_r4_1()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_2">Smarty_Internal_Templatelexer::yy_r4_2()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_4">Smarty_Internal_Templatelexer::yy_r4_4()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_5">Smarty_Internal_Templatelexer::yy_r4_5()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_6">Smarty_Internal_Templatelexer::yy_r4_6()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_7">Smarty_Internal_Templatelexer::yy_r4_7()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_8">Smarty_Internal_Templatelexer::yy_r4_8()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_9">Smarty_Internal_Templatelexer::yy_r4_9()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_10">Smarty_Internal_Templatelexer::yy_r4_10()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_11">Smarty_Internal_Templatelexer::yy_r4_11()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_12">Smarty_Internal_Templatelexer::yy_r4_12()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_13">Smarty_Internal_Templatelexer::yy_r4_13()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_17">Smarty_Internal_Templatelexer::yy_r4_17()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_18</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templatelexer.html#methodyy_r4_18">Smarty_Internal_Templatelexer::yy_r4_18()</a> in smarty_internal_templatelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r5">Smarty_Internal_Configfileparser::yy_r5()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r5">Smarty_Internal_Templateparser::yy_r5()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r6">Smarty_Internal_Configfileparser::yy_r6()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r6">Smarty_Internal_Templateparser::yy_r6()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r7">Smarty_Internal_Templateparser::yy_r7()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r7">Smarty_Internal_Configfileparser::yy_r7()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r8">Smarty_Internal_Templateparser::yy_r8()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r8">Smarty_Internal_Configfileparser::yy_r8()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r9">Smarty_Internal_Configfileparser::yy_r9()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r9">Smarty_Internal_Templateparser::yy_r9()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r10">Smarty_Internal_Configfileparser::yy_r10()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r10">Smarty_Internal_Templateparser::yy_r10()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r11">Smarty_Internal_Configfileparser::yy_r11()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r11</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r11">Smarty_Internal_Templateparser::yy_r11()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r12">Smarty_Internal_Templateparser::yy_r12()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r12</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r12">Smarty_Internal_Configfileparser::yy_r12()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r13">Smarty_Internal_Templateparser::yy_r13()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r13</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r13">Smarty_Internal_Configfileparser::yy_r13()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r14">Smarty_Internal_Templateparser::yy_r14()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r14</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r14">Smarty_Internal_Configfileparser::yy_r14()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r15">Smarty_Internal_Configfileparser::yy_r15()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r15</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r15">Smarty_Internal_Templateparser::yy_r15()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r16">Smarty_Internal_Templateparser::yy_r16()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r16</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_r16">Smarty_Internal_Configfileparser::yy_r16()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r17</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r17">Smarty_Internal_Templateparser::yy_r17()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r19</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r19">Smarty_Internal_Templateparser::yy_r19()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r21</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r21">Smarty_Internal_Templateparser::yy_r21()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r23</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r23">Smarty_Internal_Templateparser::yy_r23()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r24</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r24">Smarty_Internal_Templateparser::yy_r24()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r25</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r25">Smarty_Internal_Templateparser::yy_r25()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r26</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r26">Smarty_Internal_Templateparser::yy_r26()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r27</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r27">Smarty_Internal_Templateparser::yy_r27()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r28</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r28">Smarty_Internal_Templateparser::yy_r28()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r29</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r29">Smarty_Internal_Templateparser::yy_r29()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r31</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r31">Smarty_Internal_Templateparser::yy_r31()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r33</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r33">Smarty_Internal_Templateparser::yy_r33()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r34</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r34">Smarty_Internal_Templateparser::yy_r34()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r35</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r35">Smarty_Internal_Templateparser::yy_r35()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r36</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r36">Smarty_Internal_Templateparser::yy_r36()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r37</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r37">Smarty_Internal_Templateparser::yy_r37()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r38</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r38">Smarty_Internal_Templateparser::yy_r38()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r39</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r39">Smarty_Internal_Templateparser::yy_r39()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r40</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r40">Smarty_Internal_Templateparser::yy_r40()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r41</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r41">Smarty_Internal_Templateparser::yy_r41()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r42</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r42">Smarty_Internal_Templateparser::yy_r42()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r44</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r44">Smarty_Internal_Templateparser::yy_r44()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r45</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r45">Smarty_Internal_Templateparser::yy_r45()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r47</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r47">Smarty_Internal_Templateparser::yy_r47()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r48</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r48">Smarty_Internal_Templateparser::yy_r48()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r49</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r49">Smarty_Internal_Templateparser::yy_r49()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r50</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r50">Smarty_Internal_Templateparser::yy_r50()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r51</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r51">Smarty_Internal_Templateparser::yy_r51()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r52</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r52">Smarty_Internal_Templateparser::yy_r52()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r53</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r53">Smarty_Internal_Templateparser::yy_r53()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r54</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r54">Smarty_Internal_Templateparser::yy_r54()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r55</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r55">Smarty_Internal_Templateparser::yy_r55()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r56</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r56">Smarty_Internal_Templateparser::yy_r56()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r57</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r57">Smarty_Internal_Templateparser::yy_r57()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r58</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r58">Smarty_Internal_Templateparser::yy_r58()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r59</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r59">Smarty_Internal_Templateparser::yy_r59()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r60</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r60">Smarty_Internal_Templateparser::yy_r60()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r61</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r61">Smarty_Internal_Templateparser::yy_r61()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r62</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r62">Smarty_Internal_Templateparser::yy_r62()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r63</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r63">Smarty_Internal_Templateparser::yy_r63()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r64</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r64">Smarty_Internal_Templateparser::yy_r64()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r65</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r65">Smarty_Internal_Templateparser::yy_r65()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r67</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r67">Smarty_Internal_Templateparser::yy_r67()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r72</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r72">Smarty_Internal_Templateparser::yy_r72()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r73</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r73">Smarty_Internal_Templateparser::yy_r73()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r78</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r78">Smarty_Internal_Templateparser::yy_r78()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r79</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r79">Smarty_Internal_Templateparser::yy_r79()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r83</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r83">Smarty_Internal_Templateparser::yy_r83()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r84</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r84">Smarty_Internal_Templateparser::yy_r84()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r85</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r85">Smarty_Internal_Templateparser::yy_r85()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r86</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r86">Smarty_Internal_Templateparser::yy_r86()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r88</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r88">Smarty_Internal_Templateparser::yy_r88()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r89</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r89">Smarty_Internal_Templateparser::yy_r89()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r90</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r90">Smarty_Internal_Templateparser::yy_r90()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r91</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r91">Smarty_Internal_Templateparser::yy_r91()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r92</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r92">Smarty_Internal_Templateparser::yy_r92()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r93</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r93">Smarty_Internal_Templateparser::yy_r93()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r99</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r99">Smarty_Internal_Templateparser::yy_r99()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r100</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r100">Smarty_Internal_Templateparser::yy_r100()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r101</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r101">Smarty_Internal_Templateparser::yy_r101()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r104</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r104">Smarty_Internal_Templateparser::yy_r104()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r109</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r109">Smarty_Internal_Templateparser::yy_r109()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r110</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r110">Smarty_Internal_Templateparser::yy_r110()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r111</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r111">Smarty_Internal_Templateparser::yy_r111()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r112</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r112">Smarty_Internal_Templateparser::yy_r112()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r114</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r114">Smarty_Internal_Templateparser::yy_r114()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r117</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r117">Smarty_Internal_Templateparser::yy_r117()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r118</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r118">Smarty_Internal_Templateparser::yy_r118()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r119</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r119">Smarty_Internal_Templateparser::yy_r119()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r121</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r121">Smarty_Internal_Templateparser::yy_r121()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r122</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r122">Smarty_Internal_Templateparser::yy_r122()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r124</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r124">Smarty_Internal_Templateparser::yy_r124()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r125</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r125">Smarty_Internal_Templateparser::yy_r125()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r126</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r126">Smarty_Internal_Templateparser::yy_r126()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r128</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r128">Smarty_Internal_Templateparser::yy_r128()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r129</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r129">Smarty_Internal_Templateparser::yy_r129()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r130</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r130">Smarty_Internal_Templateparser::yy_r130()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r131</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r131">Smarty_Internal_Templateparser::yy_r131()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r132</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r132">Smarty_Internal_Templateparser::yy_r132()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r133</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r133">Smarty_Internal_Templateparser::yy_r133()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r134</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r134">Smarty_Internal_Templateparser::yy_r134()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r135</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r135">Smarty_Internal_Templateparser::yy_r135()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r137</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r137">Smarty_Internal_Templateparser::yy_r137()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r139</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r139">Smarty_Internal_Templateparser::yy_r139()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r140</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r140">Smarty_Internal_Templateparser::yy_r140()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r141</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r141">Smarty_Internal_Templateparser::yy_r141()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r142</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r142">Smarty_Internal_Templateparser::yy_r142()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r143</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r143">Smarty_Internal_Templateparser::yy_r143()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r144</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r144">Smarty_Internal_Templateparser::yy_r144()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r145</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r145">Smarty_Internal_Templateparser::yy_r145()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r146</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r146">Smarty_Internal_Templateparser::yy_r146()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r147</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r147">Smarty_Internal_Templateparser::yy_r147()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r148</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r148">Smarty_Internal_Templateparser::yy_r148()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r149</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r149">Smarty_Internal_Templateparser::yy_r149()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r150</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r150">Smarty_Internal_Templateparser::yy_r150()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r151</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r151">Smarty_Internal_Templateparser::yy_r151()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r152</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r152">Smarty_Internal_Templateparser::yy_r152()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r153</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r153">Smarty_Internal_Templateparser::yy_r153()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r156</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r156">Smarty_Internal_Templateparser::yy_r156()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r157</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r157">Smarty_Internal_Templateparser::yy_r157()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r159</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r159">Smarty_Internal_Templateparser::yy_r159()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r160</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r160">Smarty_Internal_Templateparser::yy_r160()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r167</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r167">Smarty_Internal_Templateparser::yy_r167()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r168</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r168">Smarty_Internal_Templateparser::yy_r168()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r169</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r169">Smarty_Internal_Templateparser::yy_r169()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r170</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r170">Smarty_Internal_Templateparser::yy_r170()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r171</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r171">Smarty_Internal_Templateparser::yy_r171()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r172</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r172">Smarty_Internal_Templateparser::yy_r172()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r173</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r173">Smarty_Internal_Templateparser::yy_r173()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r174</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r174">Smarty_Internal_Templateparser::yy_r174()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r175</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r175">Smarty_Internal_Templateparser::yy_r175()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r176</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r176">Smarty_Internal_Templateparser::yy_r176()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r177</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r177">Smarty_Internal_Templateparser::yy_r177()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r178</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r178">Smarty_Internal_Templateparser::yy_r178()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r179</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r179">Smarty_Internal_Templateparser::yy_r179()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r180</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r180">Smarty_Internal_Templateparser::yy_r180()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r181</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r181">Smarty_Internal_Templateparser::yy_r181()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r183</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r183">Smarty_Internal_Templateparser::yy_r183()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r185</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r185">Smarty_Internal_Templateparser::yy_r185()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r186</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r186">Smarty_Internal_Templateparser::yy_r186()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r188</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r188">Smarty_Internal_Templateparser::yy_r188()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r189</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r189">Smarty_Internal_Templateparser::yy_r189()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r190</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r190">Smarty_Internal_Templateparser::yy_r190()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r191</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r191">Smarty_Internal_Templateparser::yy_r191()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r192</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r192">Smarty_Internal_Templateparser::yy_r192()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r194</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r194">Smarty_Internal_Templateparser::yy_r194()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r196</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r196">Smarty_Internal_Templateparser::yy_r196()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r197</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r197">Smarty_Internal_Templateparser::yy_r197()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r198</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_r198">Smarty_Internal_Templateparser::yy_r198()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_reduce</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_reduce">Smarty_Internal_Templateparser::yy_reduce()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_reduce</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_reduce">Smarty_Internal_Configfileparser::yy_reduce()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_REDUCE_MAX">Smarty_Internal_Templateparser::YY_REDUCE_MAX</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_REDUCE_MAX">Smarty_Internal_Configfileparser::YY_REDUCE_MAX</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_REDUCE_USE_DFLT">Smarty_Internal_Configfileparser::YY_REDUCE_USE_DFLT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_REDUCE_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_REDUCE_USE_DFLT">Smarty_Internal_Templateparser::YY_REDUCE_USE_DFLT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_shift</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_shift">Smarty_Internal_Templateparser::yy_shift()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_shift</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_shift">Smarty_Internal_Configfileparser::yy_shift()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_SHIFT_MAX">Smarty_Internal_Templateparser::YY_SHIFT_MAX</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_MAX - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_SHIFT_MAX">Smarty_Internal_Configfileparser::YY_SHIFT_MAX</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_SHIFT_USE_DFLT">Smarty_Internal_Templateparser::YY_SHIFT_USE_DFLT</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SHIFT_USE_DFLT - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_SHIFT_USE_DFLT">Smarty_Internal_Configfileparser::YY_SHIFT_USE_DFLT</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_syntax_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#methodyy_syntax_error">Smarty_Internal_Templateparser::yy_syntax_error()</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_syntax_error</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#methodyy_syntax_error">Smarty_Internal_Configfileparser::yy_syntax_error()</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - YY_SZ_ACTTAB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Templateparser.html#constYY_SZ_ACTTAB">Smarty_Internal_Templateparser::YY_SZ_ACTTAB</a> in smarty_internal_templateparser.php</div> - </dd> - <dt class="field"> - YY_SZ_ACTTAB - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Compiler/Smarty_Internal_Configfileparser.html#constYY_SZ_ACTTAB">Smarty_Internal_Configfileparser::YY_SZ_ACTTAB</a> in smarty_internal_configfileparser.php</div> - </dd> - <dt class="field"> - <span class="method-title">yybegin</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyybegin">Smarty_Internal_Configfilelexer::yybegin()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex">Smarty_Internal_Configfilelexer::yylex()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex1">Smarty_Internal_Configfilelexer::yylex1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex2">Smarty_Internal_Configfilelexer::yylex2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex3">Smarty_Internal_Configfilelexer::yylex3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex4">Smarty_Internal_Configfilelexer::yylex4()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yylex5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyylex5">Smarty_Internal_Configfilelexer::yylex5()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypopstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyypopstate">Smarty_Internal_Configfilelexer::yypopstate()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yypushstate</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyypushstate">Smarty_Internal_Configfilelexer::yypushstate()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_1">Smarty_Internal_Configfilelexer::yy_r1_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_2">Smarty_Internal_Configfilelexer::yy_r1_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_3">Smarty_Internal_Configfilelexer::yy_r1_3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_4">Smarty_Internal_Configfilelexer::yy_r1_4()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_5">Smarty_Internal_Configfilelexer::yy_r1_5()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_6">Smarty_Internal_Configfilelexer::yy_r1_6()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r1_7</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r1_7">Smarty_Internal_Configfilelexer::yy_r1_7()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_1">Smarty_Internal_Configfilelexer::yy_r2_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_2">Smarty_Internal_Configfilelexer::yy_r2_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_3">Smarty_Internal_Configfilelexer::yy_r2_3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_4</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_4">Smarty_Internal_Configfilelexer::yy_r2_4()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_5</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_5">Smarty_Internal_Configfilelexer::yy_r2_5()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_6</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_6">Smarty_Internal_Configfilelexer::yy_r2_6()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_8</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_8">Smarty_Internal_Configfilelexer::yy_r2_8()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_9</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_9">Smarty_Internal_Configfilelexer::yy_r2_9()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r2_10</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r2_10">Smarty_Internal_Configfilelexer::yy_r2_10()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r3_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r3_1">Smarty_Internal_Configfilelexer::yy_r3_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r4_1">Smarty_Internal_Configfilelexer::yy_r4_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r4_2">Smarty_Internal_Configfilelexer::yy_r4_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r4_3</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r4_3">Smarty_Internal_Configfilelexer::yy_r4_3()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5_1</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r5_1">Smarty_Internal_Configfilelexer::yy_r5_1()</a> in smarty_internal_configfilelexer.php</div> - </dd> - <dt class="field"> - <span class="method-title">yy_r5_2</span> - </dt> - <dd class="index-item-body"> - <div class="index-item-details"><a href="Smarty/Config/Smarty_Internal_Configfilelexer.html#methodyy_r5_2">Smarty_Internal_Configfilelexer::yy_r5_2()</a> in smarty_internal_configfilelexer.php</div> - </dd> - </dl> - -<div class="index-letter-menu"> - <a class="index-letter" href="elementindex_Smarty.html#a">a</a> - <a class="index-letter" href="elementindex_Smarty.html#b">b</a> - <a class="index-letter" href="elementindex_Smarty.html#c">c</a> - <a class="index-letter" href="elementindex_Smarty.html#d">d</a> - <a class="index-letter" href="elementindex_Smarty.html#e">e</a> - <a class="index-letter" href="elementindex_Smarty.html#f">f</a> - <a class="index-letter" href="elementindex_Smarty.html#g">g</a> - <a class="index-letter" href="elementindex_Smarty.html#h">h</a> - <a class="index-letter" href="elementindex_Smarty.html#i">i</a> - <a class="index-letter" href="elementindex_Smarty.html#l">l</a> - <a class="index-letter" href="elementindex_Smarty.html#m">m</a> - <a class="index-letter" href="elementindex_Smarty.html#n">n</a> - <a class="index-letter" href="elementindex_Smarty.html#o">o</a> - <a class="index-letter" href="elementindex_Smarty.html#p">p</a> - <a class="index-letter" href="elementindex_Smarty.html#r">r</a> - <a class="index-letter" href="elementindex_Smarty.html#s">s</a> - <a class="index-letter" href="elementindex_Smarty.html#t">t</a> - <a class="index-letter" href="elementindex_Smarty.html#u">u</a> - <a class="index-letter" href="elementindex_Smarty.html#v">v</a> - <a class="index-letter" href="elementindex_Smarty.html#w">w</a> - <a class="index-letter" href="elementindex_Smarty.html#y">y</a> - <a class="index-letter" href="elementindex_Smarty.html#_">_</a> -</div> </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/errors.html
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title>phpDocumentor Parser Errors and Warnings</title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <a href="#Post-parsing">Post-parsing</a><br> -<a href="#cacheresource.memcache.php">cacheresource.memcache.php</a><br> -<a href="#cacheresource.mysql.php">cacheresource.mysql.php</a><br> -<a href="#index.php">index.php</a><br> -<a href="#resource.extendsall.php">resource.extendsall.php</a><br> -<a href="#resource.mysql.php">resource.mysql.php</a><br> -<a href="#resource.mysqls.php">resource.mysqls.php</a><br> -<a href="#shared.escape_special_chars.php">shared.escape_special_chars.php</a><br> -<a href="#smarty_internal_configfilelexer.php">smarty_internal_configfilelexer.php</a><br> -<a href="#smarty_internal_configfileparser.php">smarty_internal_configfileparser.php</a><br> -<a href="#smarty_internal_resource_php.php">smarty_internal_resource_php.php</a><br> -<a href="#smarty_internal_templatelexer.php">smarty_internal_templatelexer.php</a><br> -<a href="#smarty_internal_templateparser.php">smarty_internal_templateparser.php</a><br> -<a href="#smarty_security.php">smarty_security.php</a><br> -<a name="cacheresource.apc.php"></a> -<h1>cacheresource.apc.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 11</b> - DocBlock would be page-level, but precedes class "Smarty_CacheResource_Apc", use another DocBlock to document the file<br> -<h2>Errors:</h2><br> -<b>Error on line 28</b> - DocBlock has multiple @return tags, illegal. ignoring additional tag "@return boolean true on success, false on failure"<br> -<a name="cacheresource.memcache.php"></a> -<h1>cacheresource.memcache.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 14</b> - DocBlock would be page-level, but precedes class "Smarty_CacheResource_Memcache", use another DocBlock to document the file<br> -<h2>Errors:</h2><br> -<b>Error on line 34</b> - DocBlock has multiple @return tags, illegal. ignoring additional tag "@return boolean true on success, false on failure"<br> -<a name="cacheresource.mysql.php"></a> -<h1>cacheresource.mysql.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 26</b> - DocBlock would be page-level, but precedes class "Smarty_CacheResource_Mysql", use another DocBlock to document the file<br> -<b>Warning on line 80</b> - Unknown tag "@note" used<br> -<a name="index.php"></a> -<h1>index.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 7</b> - Page-level DocBlock precedes "require '../libs/Smarty.class.php'", use another DocBlock to document the source element<br> -<a name="resource.extendsall.php"></a> -<h1>resource.extendsall.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 11</b> - DocBlock would be page-level, but precedes class "Smarty_Resource_Extendsall", use another DocBlock to document the file<br> -<a name="resource.mysql.php"></a> -<h1>resource.mysql.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 22</b> - DocBlock would be page-level, but precedes class "Smarty_Resource_Mysql", use another DocBlock to document the file<br> -<b>Warning on line 69</b> - Unknown tag "@note" used<br> -<a name="resource.mysqls.php"></a> -<h1>resource.mysqls.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 25</b> - DocBlock would be page-level, but precedes class "Smarty_Resource_Mysqls", use another DocBlock to document the file<br> -<a name="shared.escape_special_chars.php"></a> -<h1>shared.escape_special_chars.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 47</b> - -duplicate function element "smarty_function_escape_special_chars" in file C:\wamp\www\smarty3.1.0\distribution\libs\plugins\shared.escape_special_chars.php will be ignored. -Use an @ignore tag on the original if you want this case to be documented.<br> -<a name="smarty_internal_configfilelexer.php"></a> -<h1>smarty_internal_configfilelexer.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 13</b> - no @package tag was used in a DocBlock for class Smarty_Internal_Configfilelexer<br> -<a name="smarty_internal_configfileparser.php"></a> -<h1>smarty_internal_configfileparser.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 12</b> - DocBlock would be page-level, but precedes class "TPC_yyToken", use another DocBlock to document the file<br> -<b>Warning on line 76</b> - no @package tag was used in a DocBlock for class TPC_yyStackEntry<br> -<b>Warning on line 87</b> - no @package tag was used in a DocBlock for class Smarty_Internal_Configfileparser<br> -<a name="smarty_internal_resource_php.php"></a> -<h1>smarty_internal_resource_php.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 12</b> - DocBlock would be page-level, but precedes class "Smarty_Internal_Resource_PHP", use another DocBlock to document the file<br> -<a name="smarty_internal_templatelexer.php"></a> -<h1>smarty_internal_templatelexer.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 13</b> - no @package tag was used in a DocBlock for class Smarty_Internal_Templatelexer<br> -<a name="smarty_internal_templateparser.php"></a> -<h1>smarty_internal_templateparser.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 12</b> - DocBlock would be page-level, but precedes class "TP_yyToken", use another DocBlock to document the file<br> -<b>Warning on line 76</b> - no @package tag was used in a DocBlock for class TP_yyStackEntry<br> -<b>Warning on line 87</b> - no @package tag was used in a DocBlock for class Smarty_Internal_Templateparser<br> -<a name="smarty_security.php"></a> -<h1>smarty_security.php</h1> -<h2>Warnings:</h2><br> -<b>Warning on line 12</b> - no @package tag was used in a DocBlock for class Smarty_Security<br> - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:24:10 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/index.html
Deleted
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <!-- Generated by phpDocumentor on Sat, 24 Sep 2011 20:23:03 +0200 --> - <title>Smarty 3.1.2</title> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> -</head> - -<FRAMESET rows='120,*'> - <FRAME src='packages.html' name='left_top' frameborder="1" bordercolor="#999999"> - <FRAMESET cols='25%,*'> - <FRAME src='li_Smarty.html' name='left_bottom' frameborder="1" bordercolor="#999999"> - <FRAME src='blank.html' name='right' frameborder="1" bordercolor="#999999"> - </FRAMESET> - <NOFRAMES> - <H2>Frame Alert</H2> - <P>This document is designed to be viewed using the frames feature. - If you see this message, you are using a non-frame-capable web client.</P> - </NOFRAMES> -</FRAMESET> -</HTML> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/li_CacheResource-examples.html
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="package-title">CacheResource-examples</div> -<div class="package-details"> - - <dl class="tree"> - - <dt class="folder-title">Description</dt> - <dd> - <a href='classtrees_CacheResource-examples.html' target='right'>Class trees</a><br /> - <a href='elementindex_CacheResource-examples.html' target='right'>Index of elements</a><br /> - </dd> - - - - <dt class="folder-title">Classes</dt> - <dd><a href='CacheResource-examples/Smarty_CacheResource_Apc.html' target='right'>Smarty_CacheResource_Apc</a></dd> - <dd><a href='CacheResource-examples/Smarty_CacheResource_Memcache.html' target='right'>Smarty_CacheResource_Memcache</a></dd> - <dd><a href='CacheResource-examples/Smarty_CacheResource_Mysql.html' target='right'>Smarty_CacheResource_Mysql</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='CacheResource-examples/_demo---plugins---cacheresource.apc.php.html' target='right'>cacheresource.apc.php</a></dd> - <dd><a href='CacheResource-examples/_demo---plugins---cacheresource.memcache.php.html' target='right'>cacheresource.memcache.php</a></dd> - <dd><a href='CacheResource-examples/_demo---plugins---cacheresource.mysql.php.html' target='right'>cacheresource.mysql.php</a></dd> - - - </dl> -</div> -<p class="notes"><a href="http://www.phpdoc.org" target="_blank">phpDocumentor v <span class="field">1.4.1</span></a></p> -</BODY> -</HTML> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/li_Example-application.html
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="package-title">Example-application</div> -<div class="package-details"> - - <dl class="tree"> - - <dt class="folder-title">Description</dt> - <dd> - <a href='classtrees_Example-application.html' target='right'>Class trees</a><br /> - <a href='elementindex_Example-application.html' target='right'>Index of elements</a><br /> - </dd> - - - - <dt class="folder-title">Classes</dt> - <dt class="folder-title">Files</dt> - <dd><a href='Example-application/_demo---index.php.html' target='right'>index.php</a></dd> - - - </dl> -</div> -<p class="notes"><a href="http://www.phpdoc.org" target="_blank">phpDocumentor v <span class="field">1.4.1</span></a></p> -</BODY> -</HTML> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/li_Resource-examples.html
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="package-title">Resource-examples</div> -<div class="package-details"> - - <dl class="tree"> - - <dt class="folder-title">Description</dt> - <dd> - <a href='classtrees_Resource-examples.html' target='right'>Class trees</a><br /> - <a href='elementindex_Resource-examples.html' target='right'>Index of elements</a><br /> - </dd> - - - - <dt class="folder-title">Classes</dt> - <dd><a href='Resource-examples/Smarty_Resource_Extendsall.html' target='right'>Smarty_Resource_Extendsall</a></dd> - <dd><a href='Resource-examples/Smarty_Resource_Mysql.html' target='right'>Smarty_Resource_Mysql</a></dd> - <dd><a href='Resource-examples/Smarty_Resource_Mysqls.html' target='right'>Smarty_Resource_Mysqls</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Resource-examples/_demo---plugins---resource.extendsall.php.html' target='right'>resource.extendsall.php</a></dd> - <dd><a href='Resource-examples/_demo---plugins---resource.mysql.php.html' target='right'>resource.mysql.php</a></dd> - <dd><a href='Resource-examples/_demo---plugins---resource.mysqls.php.html' target='right'>resource.mysqls.php</a></dd> - - - </dl> -</div> -<p class="notes"><a href="http://www.phpdoc.org" target="_blank">phpDocumentor v <span class="field">1.4.1</span></a></p> -</BODY> -</HTML> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/li_Smarty.html
Deleted
@@ -1,460 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="package-title">Smarty</div> -<div class="package-details"> - - <dl class="tree"> - - <dt class="folder-title">Description</dt> - <dd> - <a href='classtrees_Smarty.html' target='right'>Class trees</a><br /> - <a href='elementindex_Smarty.html' target='right'>Index of elements</a><br /> - </dd> - - - - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/SmartyCompilerException.html' target='right'>SmartyCompilerException</a></dd> - <dd><a href='Smarty/SmartyException.html' target='right'>SmartyException</a></dd> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/_libs---Smarty.class.php.html#functionsmartyAutoload' target='right'>smartyAutoload</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/_libs---Smarty.class.php.html' target='right'>Smarty.class.php</a></dd> - <dd><a href='Smarty/_libs---sysplugins---smarty_cacheresource.php.html' target='right'>smarty_cacheresource.php</a></dd> - - - - - <dt class="sub-package">Cacher</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/Cacher/Smarty_CacheResource.html' target='right'>Smarty_CacheResource</a></dd> - <dd><a href='Smarty/Cacher/Smarty_CacheResource_Custom.html' target='right'>Smarty_CacheResource_Custom</a></dd> - <dd><a href='Smarty/Cacher/Smarty_CacheResource_KeyValueStore.html' target='right'>Smarty_CacheResource_KeyValueStore</a></dd> - <dd><a href='Smarty/Cacher/Smarty_Internal_CacheResource_File.html' target='right'>Smarty_Internal_CacheResource_File</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_custom.php.html' target='right'>smarty_cacheresource_custom.php</a></dd> - <dd><a href='Smarty/Cacher/_libs---sysplugins---smarty_cacheresource_keyvaluestore.php.html' target='right'>smarty_cacheresource_keyvaluestore.php</a></dd> - <dd><a href='Smarty/Cacher/_libs---sysplugins---smarty_internal_cacheresource_file.php.html' target='right'>smarty_internal_cacheresource_file.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">Compiler</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/Compiler/Smarty_Internal_CompileBase.html' target='right'>Smarty_Internal_CompileBase</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Append.html' target='right'>Smarty_Internal_Compile_Append</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Assign.html' target='right'>Smarty_Internal_Compile_Assign</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Block.html' target='right'>Smarty_Internal_Compile_Block</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Blockclose.html' target='right'>Smarty_Internal_Compile_Blockclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Break.html' target='right'>Smarty_Internal_Compile_Break</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Call.html' target='right'>Smarty_Internal_Compile_Call</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Capture.html' target='right'>Smarty_Internal_Compile_Capture</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_CaptureClose.html' target='right'>Smarty_Internal_Compile_CaptureClose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Config_Load.html' target='right'>Smarty_Internal_Compile_Config_Load</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Continue.html' target='right'>Smarty_Internal_Compile_Continue</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Debug.html' target='right'>Smarty_Internal_Compile_Debug</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Else.html' target='right'>Smarty_Internal_Compile_Else</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Elseif.html' target='right'>Smarty_Internal_Compile_Elseif</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Eval.html' target='right'>Smarty_Internal_Compile_Eval</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Extends.html' target='right'>Smarty_Internal_Compile_Extends</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_For.html' target='right'>Smarty_Internal_Compile_For</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Forclose.html' target='right'>Smarty_Internal_Compile_Forclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Foreach.html' target='right'>Smarty_Internal_Compile_Foreach</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Foreachclose.html' target='right'>Smarty_Internal_Compile_Foreachclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Foreachelse.html' target='right'>Smarty_Internal_Compile_Foreachelse</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Forelse.html' target='right'>Smarty_Internal_Compile_Forelse</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Function.html' target='right'>Smarty_Internal_Compile_Function</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Functionclose.html' target='right'>Smarty_Internal_Compile_Functionclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_If.html' target='right'>Smarty_Internal_Compile_If</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Ifclose.html' target='right'>Smarty_Internal_Compile_Ifclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Include.html' target='right'>Smarty_Internal_Compile_Include</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Include_Php.html' target='right'>Smarty_Internal_Compile_Include_Php</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Insert.html' target='right'>Smarty_Internal_Compile_Insert</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Ldelim.html' target='right'>Smarty_Internal_Compile_Ldelim</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Nocache.html' target='right'>Smarty_Internal_Compile_Nocache</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Nocacheclose.html' target='right'>Smarty_Internal_Compile_Nocacheclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Block_Plugin.html' target='right'>Smarty_Internal_Compile_Private_Block_Plugin</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Function_Plugin.html' target='right'>Smarty_Internal_Compile_Private_Function_Plugin</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Modifier.html' target='right'>Smarty_Internal_Compile_Private_Modifier</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Block_Function.html' target='right'>Smarty_Internal_Compile_Private_Object_Block_Function</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Object_Function.html' target='right'>Smarty_Internal_Compile_Private_Object_Function</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Print_Expression.html' target='right'>Smarty_Internal_Compile_Private_Print_Expression</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Block.html' target='right'>Smarty_Internal_Compile_Private_Registered_Block</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Registered_Function.html' target='right'>Smarty_Internal_Compile_Private_Registered_Function</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Private_Special_Variable.html' target='right'>Smarty_Internal_Compile_Private_Special_Variable</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Rdelim.html' target='right'>Smarty_Internal_Compile_Rdelim</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Section.html' target='right'>Smarty_Internal_Compile_Section</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Sectionclose.html' target='right'>Smarty_Internal_Compile_Sectionclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Sectionelse.html' target='right'>Smarty_Internal_Compile_Sectionelse</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Setfilter.html' target='right'>Smarty_Internal_Compile_Setfilter</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Setfilterclose.html' target='right'>Smarty_Internal_Compile_Setfilterclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_While.html' target='right'>Smarty_Internal_Compile_While</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Compile_Whileclose.html' target='right'>Smarty_Internal_Compile_Whileclose</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Configfileparser.html' target='right'>Smarty_Internal_Configfileparser</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Nocache_Insert.html' target='right'>Smarty_Internal_Nocache_Insert</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_SmartyTemplateCompiler.html' target='right'>Smarty_Internal_SmartyTemplateCompiler</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_TemplateCompilerBase.html' target='right'>Smarty_Internal_TemplateCompilerBase</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Templatelexer.html' target='right'>Smarty_Internal_Templatelexer</a></dd> - <dd><a href='Smarty/Compiler/Smarty_Internal_Templateparser.html' target='right'>Smarty_Internal_Templateparser</a></dd> - <dd><a href='Smarty/Compiler/TPC_yyStackEntry.html' target='right'>TPC_yyStackEntry</a></dd> - <dd><a href='Smarty/Compiler/TPC_yyToken.html' target='right'>TPC_yyToken</a></dd> - <dd><a href='Smarty/Compiler/TP_yyStackEntry.html' target='right'>TP_yyStackEntry</a></dd> - <dd><a href='Smarty/Compiler/TP_yyToken.html' target='right'>TP_yyToken</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compilebase.php.html' target='right'>smarty_internal_compilebase.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_append.php.html' target='right'>smarty_internal_compile_append.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_assign.php.html' target='right'>smarty_internal_compile_assign.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_block.php.html' target='right'>smarty_internal_compile_block.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_break.php.html' target='right'>smarty_internal_compile_break.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_call.php.html' target='right'>smarty_internal_compile_call.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_capture.php.html' target='right'>smarty_internal_compile_capture.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_config_load.php.html' target='right'>smarty_internal_compile_config_load.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_continue.php.html' target='right'>smarty_internal_compile_continue.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_debug.php.html' target='right'>smarty_internal_compile_debug.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_eval.php.html' target='right'>smarty_internal_compile_eval.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_extends.php.html' target='right'>smarty_internal_compile_extends.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_for.php.html' target='right'>smarty_internal_compile_for.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_foreach.php.html' target='right'>smarty_internal_compile_foreach.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_function.php.html' target='right'>smarty_internal_compile_function.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_if.php.html' target='right'>smarty_internal_compile_if.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include.php.html' target='right'>smarty_internal_compile_include.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_include_php.php.html' target='right'>smarty_internal_compile_include_php.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_insert.php.html' target='right'>smarty_internal_compile_insert.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_ldelim.php.html' target='right'>smarty_internal_compile_ldelim.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_nocache.php.html' target='right'>smarty_internal_compile_nocache.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_block_plugin.php.html' target='right'>smarty_internal_compile_private_block_plugin.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_function_plugin.php.html' target='right'>smarty_internal_compile_private_function_plugin.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_modifier.php.html' target='right'>smarty_internal_compile_private_modifier.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_block_function.php.html' target='right'>smarty_internal_compile_private_object_block_function.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_object_function.php.html' target='right'>smarty_internal_compile_private_object_function.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_print_expression.php.html' target='right'>smarty_internal_compile_private_print_expression.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_block.php.html' target='right'>smarty_internal_compile_private_registered_block.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_registered_function.php.html' target='right'>smarty_internal_compile_private_registered_function.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_private_special_variable.php.html' target='right'>smarty_internal_compile_private_special_variable.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_rdelim.php.html' target='right'>smarty_internal_compile_rdelim.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_section.php.html' target='right'>smarty_internal_compile_section.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_setfilter.php.html' target='right'>smarty_internal_compile_setfilter.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_compile_while.php.html' target='right'>smarty_internal_compile_while.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_configfileparser.php.html' target='right'>smarty_internal_configfileparser.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_nocache_insert.php.html' target='right'>smarty_internal_nocache_insert.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_parsetree.php.html' target='right'>smarty_internal_parsetree.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_smartytemplatecompiler.php.html' target='right'>smarty_internal_smartytemplatecompiler.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_templatecompilerbase.php.html' target='right'>smarty_internal_templatecompilerbase.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_templatelexer.php.html' target='right'>smarty_internal_templatelexer.php</a></dd> - <dd><a href='Smarty/Compiler/_libs---sysplugins---smarty_internal_templateparser.php.html' target='right'>smarty_internal_templateparser.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">Config</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/Config/Smarty_Internal_Configfilelexer.html' target='right'>Smarty_Internal_Configfilelexer</a></dd> - <dd><a href='Smarty/Config/Smarty_Internal_Config_File_Compiler.html' target='right'>Smarty_Internal_Config_File_Compiler</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/Config/_libs---sysplugins---smarty_internal_config.php.html' target='right'>smarty_internal_config.php</a></dd> - <dd><a href='Smarty/Config/_libs---sysplugins---smarty_internal_configfilelexer.php.html' target='right'>smarty_internal_configfilelexer.php</a></dd> - <dd><a href='Smarty/Config/_libs---sysplugins---smarty_internal_config_file_compiler.php.html' target='right'>smarty_internal_config_file_compiler.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">Debug</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/Debug/Smarty_Internal_Debug.html' target='right'>Smarty_Internal_Debug</a></dd> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html#functionsmarty_modifier_debug_print_var' target='right'>smarty_modifier_debug_print_var</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/Debug/_libs---plugins---modifier.debug_print_var.php.html' target='right'>modifier.debug_print_var.php</a></dd> - <dd><a href='Smarty/Debug/_libs---sysplugins---smarty_internal_debug.php.html' target='right'>smarty_internal_debug.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsBlock</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html#functionsmarty_block_textformat' target='right'>smarty_block_textformat</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsBlock/_libs---plugins---block.textformat.php.html' target='right'>block.textformat.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsFilter</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html#functionsmarty_outputfilter_trimwhitespace' target='right'>smarty_outputfilter_trimwhitespace</a></dd> - <dd><a href='Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html#functionsmarty_variablefilter_htmlspecialchars' target='right'>smarty_variablefilter_htmlspecialchars</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsFilter/_libs---plugins---outputfilter.trimwhitespace.php.html' target='right'>outputfilter.trimwhitespace.php</a></dd> - <dd><a href='Smarty/PluginsFilter/_libs---plugins---variablefilter.htmlspecialchars.php.html' target='right'>variablefilter.htmlspecialchars.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsFunction</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.counter.php.html#functionsmarty_function_counter' target='right'>smarty_function_counter</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html#functionsmarty_function_cycle' target='right'>smarty_function_cycle</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html#functionsmarty_function_fetch' target='right'>smarty_function_fetch</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes' target='right'>smarty_function_html_checkboxes</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html#functionsmarty_function_html_checkboxes_output' target='right'>smarty_function_html_checkboxes_output</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html#functionsmarty_function_html_image' target='right'>smarty_function_html_image</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options' target='right'>smarty_function_html_options</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options_optgroup' target='right'>smarty_function_html_options_optgroup</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html#functionsmarty_function_html_options_optoutput' target='right'>smarty_function_html_options_optoutput</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios' target='right'>smarty_function_html_radios</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html#functionsmarty_function_html_radios_output' target='right'>smarty_function_html_radios_output</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html#functionsmarty_function_html_select_date' target='right'>smarty_function_html_select_date</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html#functionsmarty_function_html_select_time' target='right'>smarty_function_html_select_time</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html#functionsmarty_function_html_table' target='right'>smarty_function_html_table</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html#functionsmarty_function_html_table_cycle' target='right'>smarty_function_html_table_cycle</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html#functionsmarty_function_mailto' target='right'>smarty_function_mailto</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.math.php.html#functionsmarty_function_math' target='right'>smarty_function_math</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.counter.php.html' target='right'>function.counter.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.cycle.php.html' target='right'>function.cycle.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.fetch.php.html' target='right'>function.fetch.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_checkboxes.php.html' target='right'>function.html_checkboxes.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_image.php.html' target='right'>function.html_image.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_options.php.html' target='right'>function.html_options.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_radios.php.html' target='right'>function.html_radios.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_select_date.php.html' target='right'>function.html_select_date.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_select_time.php.html' target='right'>function.html_select_time.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.html_table.php.html' target='right'>function.html_table.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.mailto.php.html' target='right'>function.mailto.php</a></dd> - <dd><a href='Smarty/PluginsFunction/_libs---plugins---function.math.php.html' target='right'>function.math.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsInternal</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/PluginsInternal/Smarty_Internal_Filter_Handler.html' target='right'>Smarty_Internal_Filter_Handler</a></dd> - <dd><a href='Smarty/PluginsInternal/Smarty_Internal_Function_Call_Handler.html' target='right'>Smarty_Internal_Function_Call_Handler</a></dd> - <dd><a href='Smarty/PluginsInternal/Smarty_Internal_Get_Include_Path.html' target='right'>Smarty_Internal_Get_Include_Path</a></dd> - <dd><a href='Smarty/PluginsInternal/Smarty_Internal_Write_File.html' target='right'>Smarty_Internal_Write_File</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_filter_handler.php.html' target='right'>smarty_internal_filter_handler.php</a></dd> - <dd><a href='Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_function_call_handler.php.html' target='right'>smarty_internal_function_call_handler.php</a></dd> - <dd><a href='Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_get_include_path.php.html' target='right'>smarty_internal_get_include_path.php</a></dd> - <dd><a href='Smarty/PluginsInternal/_libs---sysplugins---smarty_internal_write_file.php.html' target='right'>smarty_internal_write_file.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsModifier</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html#functionsmarty_modifier_capitalize' target='right'>smarty_modifier_capitalize</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html#functionsmarty_modifier_date_format' target='right'>smarty_modifier_date_format</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html#functionsmarty_modifier_escape' target='right'>smarty_modifier_escape</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html#functionsmarty_modifier_regex_replace' target='right'>smarty_modifier_regex_replace</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html#functionsmarty_modifier_replace' target='right'>smarty_modifier_replace</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html#functionsmarty_modifier_spacify' target='right'>smarty_modifier_spacify</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html#functionsmarty_modifier_truncate' target='right'>smarty_modifier_truncate</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.capitalize.php.html' target='right'>modifier.capitalize.php</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.date_format.php.html' target='right'>modifier.date_format.php</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.escape.php.html' target='right'>modifier.escape.php</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.regex_replace.php.html' target='right'>modifier.regex_replace.php</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.replace.php.html' target='right'>modifier.replace.php</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.spacify.php.html' target='right'>modifier.spacify.php</a></dd> - <dd><a href='Smarty/PluginsModifier/_libs---plugins---modifier.truncate.php.html' target='right'>modifier.truncate.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsModifierCompiler</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html#functionsmarty_modifiercompiler_cat' target='right'>smarty_modifiercompiler_cat</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html#functionsmarty_modifiercompiler_count_characters' target='right'>smarty_modifiercompiler_count_characters</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html#functionsmarty_modifiercompiler_count_paragraphs' target='right'>smarty_modifiercompiler_count_paragraphs</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html#functionsmarty_modifiercompiler_count_sentences' target='right'>smarty_modifiercompiler_count_sentences</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html#functionsmarty_modifiercompiler_count_words' target='right'>smarty_modifiercompiler_count_words</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html#functionsmarty_modifiercompiler_default' target='right'>smarty_modifiercompiler_default</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html#functionsmarty_modifiercompiler_escape' target='right'>smarty_modifiercompiler_escape</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html#functionsmarty_modifiercompiler_from_charset' target='right'>smarty_modifiercompiler_from_charset</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html#functionsmarty_modifiercompiler_indent' target='right'>smarty_modifiercompiler_indent</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html#functionsmarty_modifiercompiler_lower' target='right'>smarty_modifiercompiler_lower</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html#functionsmarty_modifiercompiler_noprint' target='right'>smarty_modifiercompiler_noprint</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html#functionsmarty_modifiercompiler_string_format' target='right'>smarty_modifiercompiler_string_format</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html#functionsmarty_modifiercompiler_strip' target='right'>smarty_modifiercompiler_strip</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html#functionsmarty_modifiercompiler_strip_tags' target='right'>smarty_modifiercompiler_strip_tags</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html#functionsmarty_modifiercompiler_to_charset' target='right'>smarty_modifiercompiler_to_charset</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html#functionsmarty_modifiercompiler_unescape' target='right'>smarty_modifiercompiler_unescape</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html#functionsmarty_modifiercompiler_upper' target='right'>smarty_modifiercompiler_upper</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html#functionsmarty_modifiercompiler_wordwrap' target='right'>smarty_modifiercompiler_wordwrap</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.cat.php.html' target='right'>modifiercompiler.cat.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_characters.php.html' target='right'>modifiercompiler.count_characters.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_paragraphs.php.html' target='right'>modifiercompiler.count_paragraphs.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_sentences.php.html' target='right'>modifiercompiler.count_sentences.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.count_words.php.html' target='right'>modifiercompiler.count_words.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.default.php.html' target='right'>modifiercompiler.default.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.escape.php.html' target='right'>modifiercompiler.escape.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.from_charset.php.html' target='right'>modifiercompiler.from_charset.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.indent.php.html' target='right'>modifiercompiler.indent.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.lower.php.html' target='right'>modifiercompiler.lower.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.noprint.php.html' target='right'>modifiercompiler.noprint.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.string_format.php.html' target='right'>modifiercompiler.string_format.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip.php.html' target='right'>modifiercompiler.strip.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.strip_tags.php.html' target='right'>modifiercompiler.strip_tags.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.to_charset.php.html' target='right'>modifiercompiler.to_charset.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.unescape.php.html' target='right'>modifiercompiler.unescape.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.upper.php.html' target='right'>modifiercompiler.upper.php</a></dd> - <dd><a href='Smarty/PluginsModifierCompiler/_libs---plugins---modifiercompiler.wordwrap.php.html' target='right'>modifiercompiler.wordwrap.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">PluginsShared</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html#functionsmarty_function_escape_special_chars' target='right'>smarty_function_escape_special_chars</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html#functionsmarty_literal_compiler_param' target='right'>smarty_literal_compiler_param</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html#functionsmarty_make_timestamp' target='right'>smarty_make_timestamp</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html#functionsmarty_mb_from_unicode' target='right'>smarty_mb_from_unicode</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html#functionsmarty_mb_str_replace' target='right'>smarty_mb_str_replace</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html#functionsmarty_mb_to_unicode' target='right'>smarty_mb_to_unicode</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html#functionsmarty_mb_wordwrap' target='right'>smarty_mb_wordwrap</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.escape_special_chars.php.html' target='right'>shared.escape_special_chars.php</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.literal_compiler_param.php.html' target='right'>shared.literal_compiler_param.php</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.make_timestamp.php.html' target='right'>shared.make_timestamp.php</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_str_replace.php.html' target='right'>shared.mb_str_replace.php</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_unicode.php.html' target='right'>shared.mb_unicode.php</a></dd> - <dd><a href='Smarty/PluginsShared/_libs---plugins---shared.mb_wordwrap.php.html' target='right'>shared.mb_wordwrap.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">Security</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/Security/Smarty_Internal_Utility.html' target='right'>Smarty_Internal_Utility</a></dd> - <dd><a href='Smarty/Security/Smarty_Security.html' target='right'>Smarty_Security</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/Security/_libs---sysplugins---smarty_internal_utility.php.html' target='right'>smarty_internal_utility.php</a></dd> - <dd><a href='Smarty/Security/_libs---sysplugins---smarty_security.php.html' target='right'>smarty_security.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">Template</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/Template/Smarty.html' target='right'>Smarty</a></dd> - <dd><a href='Smarty/Template/SmartyBC.html' target='right'>SmartyBC</a></dd> - <dd><a href='Smarty/Template/Smarty_Data.html' target='right'>Smarty_Data</a></dd> - <dd><a href='Smarty/Template/Smarty_Internal_Data.html' target='right'>Smarty_Internal_Data</a></dd> - <dd><a href='Smarty/Template/Smarty_Internal_Template.html' target='right'>Smarty_Internal_Template</a></dd> - <dd><a href='Smarty/Template/Smarty_Internal_TemplateBase.html' target='right'>Smarty_Internal_TemplateBase</a></dd> - <dd><a href='Smarty/Template/Smarty_Variable.html' target='right'>Smarty_Variable</a></dd> - <dd><a href='Smarty/Template/Undefined_Smarty_Variable.html' target='right'>Undefined_Smarty_Variable</a></dd> - <dt class="folder-title">Functions</dt> - <dd><a href='Smarty/Template/_libs---SmartyBC.class.php.html#functionsmarty_php_tag' target='right'>smarty_php_tag</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/Template/_libs---SmartyBC.class.php.html' target='right'>SmartyBC.class.php</a></dd> - <dd><a href='Smarty/Template/_libs---sysplugins---smarty_internal_data.php.html' target='right'>smarty_internal_data.php</a></dd> - <dd><a href='Smarty/Template/_libs---sysplugins---smarty_internal_template.php.html' target='right'>smarty_internal_template.php</a></dd> - <dd><a href='Smarty/Template/_libs---sysplugins---smarty_internal_templatebase.php.html' target='right'>smarty_internal_templatebase.php</a></dd> - </dl> - </dd> - - - - - <dt class="sub-package">TemplateResources</dt> - <dd> - <dl class="tree"> - <dt class="folder-title">Classes</dt> - <dd><a href='Smarty/TemplateResources/Smarty_Config_Source.html' target='right'>Smarty_Config_Source</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_Eval.html' target='right'>Smarty_Internal_Resource_Eval</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_Extends.html' target='right'>Smarty_Internal_Resource_Extends</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_File.html' target='right'>Smarty_Internal_Resource_File</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_PHP.html' target='right'>Smarty_Internal_Resource_PHP</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_Registered.html' target='right'>Smarty_Internal_Resource_Registered</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_Stream.html' target='right'>Smarty_Internal_Resource_Stream</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Internal_Resource_String.html' target='right'>Smarty_Internal_Resource_String</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Resource.html' target='right'>Smarty_Resource</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Resource_Custom.html' target='right'>Smarty_Resource_Custom</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Resource_Recompiled.html' target='right'>Smarty_Resource_Recompiled</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Resource_Uncompiled.html' target='right'>Smarty_Resource_Uncompiled</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Template_Cached.html' target='right'>Smarty_Template_Cached</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Template_Compiled.html' target='right'>Smarty_Template_Compiled</a></dd> - <dd><a href='Smarty/TemplateResources/Smarty_Template_Source.html' target='right'>Smarty_Template_Source</a></dd> - <dt class="folder-title">Files</dt> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_config_source.php.html' target='right'>smarty_config_source.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_eval.php.html' target='right'>smarty_internal_resource_eval.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_extends.php.html' target='right'>smarty_internal_resource_extends.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_file.php.html' target='right'>smarty_internal_resource_file.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_php.php.html' target='right'>smarty_internal_resource_php.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_registered.php.html' target='right'>smarty_internal_resource_registered.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_stream.php.html' target='right'>smarty_internal_resource_stream.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_internal_resource_string.php.html' target='right'>smarty_internal_resource_string.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_resource.php.html' target='right'>smarty_resource.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_resource_custom.php.html' target='right'>smarty_resource_custom.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_resource_recompiled.php.html' target='right'>smarty_resource_recompiled.php</a></dd> - <dd><a href='Smarty/TemplateResources/_libs---sysplugins---smarty_resource_uncompiled.php.html' target='right'>smarty_resource_uncompiled.php</a></dd> - </dl> - </dd> - - - </dl> -</div> -<p class="notes"><a href="http://www.phpdoc.org" target="_blank">phpDocumentor v <span class="field">1.4.1</span></a></p> -</BODY> -</HTML> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/media
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/media/banner.css
Deleted
@@ -1,32 +0,0 @@ -body -{ - background-color: #CCCCFF; - margin: 0px; - padding: 0px; -} - -/* Banner (top bar) classes */ - -.banner { } - -.banner-menu -{ - clear: both; - padding: .5em; - border-top: 2px solid #6666AA; -} - -.banner-title -{ - text-align: right; - font-size: 20pt; - font-weight: bold; - margin: .2em; -} - -.package-selector -{ - background-color: #AAAADD; - border: 1px solid black; - color: yellow; -}
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/media/stylesheet.css
Deleted
@@ -1,144 +0,0 @@ -a { color: #336699; text-decoration: none; } -a:hover { color: #6699CC; text-decoration: underline; } -a:active { color: #6699CC; text-decoration: underline; } - -body { background : #FFFFFF; } -body, table { font-family: Georgia, Times New Roman, Times, serif; font-size: 10pt } -p, li { line-height: 140% } -a img { border: 0px; } -dd { margin-left: 0px; padding-left: 1em; } - -/* Page layout/boxes */ - -.info-box {} -.info-box-title { margin: 1em 0em 0em 0em; padding: .25em; font-weight: normal; font-size: 14pt; border: 2px solid #999999; background-color: #CCCCFF } -.info-box-body { border: 1px solid #999999; padding: .5em; } -.nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; } - -.oddrow { background-color: #F8F8F8; border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} -.evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} - -.page-body { max-width: 800px; margin: auto; } -.tree dl { margin: 0px } - -/* Index formatting classes */ - -.index-item-body { margin-top: .5em; margin-bottom: .5em} -.index-item-description { margin-top: .25em } -.index-item-details { font-weight: normal; font-style: italic; font-size: 8pt } -.index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em} -.index-letter-title { font-size: 12pt; font-weight: bold } -.index-letter-menu { text-align: center; margin: 1em } -.index-letter { font-size: 12pt } - -/* Docbook classes */ - -.description {} -.short-description { font-weight: bold; color: #666666; } -.tags { padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; } -.parameters { padding-left: 0em; margin-left: 3em; font-style: italic; list-style-type: square; } -.redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; } -.package { } -.package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black } -.package-details { font-size: 85%; } -.sub-package { font-weight: bold; font-size: 120% } -.tutorial { border-width: thin; border-color: #0066ff } -.tutorial-nav-box { width: 100%; border: 1px solid #999999; background-color: #F8F8F8; } -.nav-button-disabled { color: #999999; } -.nav-button:active, -.nav-button:focus, -.nav-button:hover { background-color: #DDDDDD; outline: 1px solid #999999; text-decoration: none } -.folder-title { font-style: italic } - -/* Generic formatting */ - -.field { font-weight: bold; } -.detail { font-size: 8pt; } -.notes { font-style: italic; font-size: 8pt; } -.separator { background-color: #999999; height: 2px; } -.warning { color: #FF6600; } -.disabled { font-style: italic; color: #999999; } - -/* Code elements */ - -.line-number { } - -.class-table { width: 100%; } -.class-table-header { border-bottom: 1px dotted #666666; text-align: left} -.class-name { color: #000000; font-weight: bold; } - -.method-summary { padding-left: 1em; font-size: 8pt } -.method-header { } -.method-definition { margin-bottom: .3em } -.method-title { font-weight: bold; } -.method-name { font-weight: bold; } -.method-signature { font-size: 85%; color: #666666; margin: .5em 0em } -.method-result { font-style: italic; } - -.var-summary { padding-left: 1em; font-size: 8pt; } -.var-header { } -.var-title { margin-bottom: .3em } -.var-type { font-style: italic; } -.var-name { font-weight: bold; } -.var-default {} -.var-description { font-weight: normal; color: #000000; } - -.include-title { } -.include-type { font-style: italic; } -.include-name { font-weight: bold; } - -.const-title { } -.const-name { font-weight: bold; } - -/* Syntax highlighting */ - -.src-code { border: 1px solid #336699; padding: 1em; background-color: #EEEEEE; } -.src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } - -.src-comm { color: green; } -.src-id { } -.src-inc { color: #0000FF; } -.src-key { color: #0000FF; } -.src-num { color: #CC0000; } -.src-str { color: #66cccc; } -.src-sym { font-weight: bold; } -.src-var { } - -.src-php { font-weight: bold; } - -.src-doc { color: #009999 } -.src-doc-close-template { color: #0000FF } -.src-doc-coretag { color: #0099FF; font-weight: bold } -.src-doc-inlinetag { color: #0099FF } -.src-doc-internal { color: #6699cc } -.src-doc-tag { color: #0080CC } -.src-doc-template { color: #0000FF } -.src-doc-type { font-style: italic } -.src-doc-var { font-style: italic } - -.tute-tag { color: #009999 } -.tute-attribute-name { color: #0000FF } -.tute-attribute-value { color: #0099FF } -.tute-entity { font-weight: bold; } -.tute-comment { font-style: italic } -.tute-inline-tag { color: #636311; font-weight: bold } - -/* tutorial */ - -.authors { } -.author { font-style: italic; font-weight: bold } -.author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } -.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } -*[class="example"] { line-height : 0.5em } -.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } -*[class="listing"] { line-height : 0.5em } -.release-info { font-size: 85%; font-style: italic; margin: 1em 0em } -.ref-title-box { } -.ref-title { } -.ref-purpose { font-style: italic; color: #666666 } -.ref-synopsis { } -.title { font-weight: bold; margin: 1em 0em 0em 0em; padding: .25em; border: 2px solid #999999; background-color: #CCCCFF } -.cmd-synopsis { margin: 1em 0em } -.cmd-title { font-weight: bold } -.toc { margin-left: 2em; padding-left: 0em } -
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/packages.html
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <link rel="stylesheet" href="media/banner.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <div class="banner"> - <div class="banner-title">Smarty</div> - <div class="banner-menu"> - <table cellpadding="0" cellspacing="0" style="width: 100%"> - <tr> - <td> - - <a href="ric_README.html" target="right">README</a> - - </td> - <td style="width: 2em"> </td> - <td style="text-align: right"> - - <a href="li_Smarty.html" target="left_bottom">Smarty</a> - - | <a href="li_CacheResource-examples.html" target="left_bottom">CacheResource-examples</a> - - | <a href="li_Example-application.html" target="left_bottom">Example-application</a> - - | <a href="li_Resource-examples.html" target="left_bottom">Resource-examples</a> - - </td> - </tr> - </table> - </div> - </div> - </body> - </html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/Smarty3Doc/ric_README.html
Deleted
@@ -1,593 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <!-- template designed by Marco Von Ballmoos --> - <title></title> - <link rel="stylesheet" href="media/stylesheet.css" /> - <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> - </head> - <body> - <h1 align="center">README</h1> -<pre> -Smarty 3.x - -Author: Monte Ohrt <monte at ohrt dot com > -Author: Uwe Tews - -AN INTRODUCTION TO SMARTY 3 - -NOTICE FOR 3.1 release: - -Please see the SMARTY_3.1_NOTES.txt file that comes with the distribution. - -NOTICE for 3.0.5 release: - -Smarty now follows the PHP error_reporting level by default. If PHP does not mask E_NOTICE and you try to access an unset template variable, you will now get an E_NOTICE warning. To revert to the old behavior: - -$smarty->error_reporting = E_ALL & ~E_NOTICE; - -NOTICE for 3.0 release: - -IMPORTANT: Some API adjustments have been made between the RC4 and 3.0 release. -We felt it is better to make these now instead of after a 3.0 release, then have to -immediately deprecate APIs in 3.1. Online documentation has been updated -to reflect these changes. Specifically: - ----- API CHANGES RC4 -> 3.0 ---- - -$smarty->register->* -$smarty->unregister->* -$smarty->utility->* -$samrty->cache->* - -Have all been changed to local method calls such as: - -$smarty->clearAllCache() -$smarty->registerFoo() -$smarty->unregisterFoo() -$smarty->testInstall() -etc. - -Registration of function, block, compiler, and modifier plugins have been -consolidated under two API calls: - -$smarty->registerPlugin(...) -$smarty->unregisterPlugin(...) - -Registration of pre, post, output and variable filters have been -consolidated under two API calls: - -$smarty->registerFilter(...) -$smarty->unregisterFilter(...) - -Please refer to the online documentation for all specific changes: - -http://www.smarty.net/documentation - ----- - -The Smarty 3 API has been refactored to a syntax geared -for consistency and modularity. The Smarty 2 API syntax is still supported, but -will throw a deprecation notice. You can disable the notices, but it is highly -recommended to adjust your syntax to Smarty 3, as the Smarty 2 syntax must run -through an extra rerouting wrapper. - -Basically, all Smarty methods now follow the "fooBarBaz" camel case syntax. Also, -all Smarty properties now have getters and setters. So for example, the property -$smarty->cache_dir can be set with $smarty->setCacheDir('foo/') and can be -retrieved with $smarty->getCacheDir(). - -Some of the Smarty 3 APIs have been revoked such as the "is*" methods that were -just duplicate functions of the now available "get*" methods. - -Here is a rundown of the Smarty 3 API: - -$smarty->fetch($template, $cache_id = null, $compile_id = null, $parent = null) -$smarty->display($template, $cache_id = null, $compile_id = null, $parent = null) -$smarty->isCached($template, $cache_id = null, $compile_id = null) -$smarty->createData($parent = null) -$smarty->createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) -$smarty->enableSecurity() -$smarty->disableSecurity() -$smarty->setTemplateDir($template_dir) -$smarty->addTemplateDir($template_dir) -$smarty->templateExists($resource_name) -$smarty->loadPlugin($plugin_name, $check = true) -$smarty->loadFilter($type, $name) -$smarty->setExceptionHandler($handler) -$smarty->addPluginsDir($plugins_dir) -$smarty->getGlobal($varname = null) -$smarty->getRegisteredObject($name) -$smarty->getDebugTemplate() -$smarty->setDebugTemplate($tpl_name) -$smarty->assign($tpl_var, $value = null, $nocache = false) -$smarty->assignGlobal($varname, $value = null, $nocache = false) -$smarty->assignByRef($tpl_var, &$value, $nocache = false) -$smarty->append($tpl_var, $value = null, $merge = false, $nocache = false) -$smarty->appendByRef($tpl_var, &$value, $merge = false) -$smarty->clearAssign($tpl_var) -$smarty->clearAllAssign() -$smarty->configLoad($config_file, $sections = null) -$smarty->getVariable($variable, $_ptr = null, $search_parents = true, $error_enable = true) -$smarty->getConfigVariable($variable) -$smarty->getStreamVariable($variable) -$smarty->getConfigVars($varname = null) -$smarty->clearConfig($varname = null) -$smarty->getTemplateVars($varname = null, $_ptr = null, $search_parents = true) -$smarty->clearAllCache($exp_time = null, $type = null) -$smarty->clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null) - -$smarty->registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = array()) - -$smarty->registerObject($object_name, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) - -$smarty->registerFilter($type, $function_name) -$smarty->registerResource($resource_type, $function_names) -$smarty->registerDefaultPluginHandler($function_name) -$smarty->registerDefaultTemplateHandler($function_name) - -$smarty->unregisterPlugin($type, $tag) -$smarty->unregisterObject($object_name) -$smarty->unregisterFilter($type, $function_name) -$smarty->unregisterResource($resource_type) - -$smarty->compileAllTemplates($extention = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null) -$smarty->clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) -$smarty->testInstall() - -// then all the getters/setters, available for all properties. Here are a few: - -$caching = $smarty->getCaching(); // get $smarty->caching -$smarty->setCaching(true); // set $smarty->caching -$smarty->setDeprecationNotices(false); // set $smarty->deprecation_notices -$smarty->setCacheId($id); // set $smarty->cache_id -$debugging = $smarty->getDebugging(); // get $smarty->debugging - - -FILE STRUCTURE - -The Smarty 3 file structure is similar to Smarty 2: - -/libs/ - Smarty.class.php -/libs/sysplugins/ - internal.* -/libs/plugins/ - function.mailto.php - modifier.escape.php - ... - -A lot of Smarty 3 core functionality lies in the sysplugins directory; you do -not need to change any files here. The /libs/plugins/ folder is where Smarty -plugins are located. You can add your own here, or create a separate plugin -directory, just the same as Smarty 2. You will still need to create your own -/cache/, /templates/, /templates_c/, /configs/ folders. Be sure /cache/ and -/templates_c/ are writable. - -The typical way to use Smarty 3 should also look familiar: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('foo','bar'); -$smarty->display('index.tpl'); - - -However, Smarty 3 works completely different on the inside. Smarty 3 is mostly -backward compatible with Smarty 2, except for the following items: - -*) Smarty 3 is PHP 5 only. It will not work with PHP 4. -*) The {php} tag is disabled by default. Enable with $smarty->allow_php_tag=true. -*) Delimiters surrounded by whitespace are no longer treated as Smarty tags. - Therefore, { foo } will not compile as a tag, you must use {foo}. This change - Makes Javascript/CSS easier to work with, eliminating the need for {literal}. - This can be disabled by setting $smarty->auto_literal = false; -*) The Smarty 3 API is a bit different. Many Smarty 2 API calls are deprecated - but still work. You will want to update your calls to Smarty 3 for maximum - efficiency. - - -There are many things that are new to Smarty 3. Here are the notable items: - -LEXER/PARSER -============ - -Smarty 3 now uses a lexing tokenizer for its parser/compiler. Basically, this -means Smarty has some syntax additions that make life easier such as in-template -math, shorter/intuitive function parameter options, infinite function recursion, -more accurate error handling, etc. - - -WHAT IS NEW IN SMARTY TEMPLATE SYNTAX -===================================== - -Smarty 3 allows expressions almost anywhere. Expressions can include PHP -functions as long as they are not disabled by the security policy, object -methods and properties, etc. The {math} plugin is no longer necessary but -is still supported for BC. - -Examples: -{$x+$y} will output the sum of x and y. -{$foo = strlen($bar)} function in assignment -{assign var=foo value= $x+$y} in attributes -{$foo = myfunct( ($x+$y)*3 )} as function parameter -{$foo[$x+3]} as array index - -Smarty tags can be used as values within other tags. -Example: {$foo={counter}+3} - -Smarty tags can also be used inside double quoted strings. -Example: {$foo="this is message {counter}"} - -You can define arrays within templates. -Examples: -{assign var=foo value=[1,2,3]} -{assign var=foo value=['y'=>'yellow','b'=>'blue']} -Arrays can be nested. -{assign var=foo value=[1,[9,8],3]} - -There is a new short syntax supported for assigning variables. -Example: {$foo=$bar+2} - -You can assign a value to a specific array element. If the variable exists but -is not an array, it is converted to an array before the new values are assigned. -Examples: -{$foo['bar']=1} -{$foo['bar']['blar']=1} - -You can append values to an array. If the variable exists but is not an array, -it is converted to an array before the new values are assigned. -Example: {$foo[]=1} - -You can use a PHP-like syntax for accessing array elements, as well as the -original "dot" notation. -Examples: -{$foo[1]} normal access -{$foo['bar']} -{$foo['bar'][1]} -{$foo[$x+$x]} index may contain any expression -{$foo[$bar[1]]} nested index -{$foo[section_name]} smarty section access, not array access! - -The original "dot" notation stays, and with improvements. -Examples: -{$foo.a.b.c} => $foo['a']['b']['c'] -{$foo.a.$b.c} => $foo['a'][$b]['c'] with variable index -{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] with expression as index -{$foo.a.{$b.c}} => $foo['a'][$b['c']] with nested index - -note that { and } are used to address ambiguties when nesting the dot syntax. - -Variable names themselves can be variable and contain expressions. -Examples: -$foo normal variable -$foo_{$bar} variable name containing other variable -$foo_{$x+$y} variable name containing expressions -$foo_{$bar}_buh_{$blar} variable name with multiple segments -{$foo_{$x}} will output the variable $foo_1 if $x has a value of 1. - -Object method chaining is implemented. -Example: {$object->method1($x)->method2($y)} - -{for} tag added for looping (replacement for {section} tag): -{for $x=0, $y=count($foo); $x<$y; $x++} .... {/for} -Any number of statements can be used separated by comma as the first -inital expression at {for}. - -{for $x = $start to $end step $step} ... {/for}is in the SVN now . -You can use also -{for $x = $start to $end} ... {/for} -In this case the step value will be automaticall 1 or -1 depending on the start and end values. -Instead of $start and $end you can use any valid expression. -Inside the loop the following special vars can be accessed: -$x@iteration = number of iteration -$x@total = total number of iterations -$x@first = true on first iteration -$x@last = true on last iteration - - -The Smarty 2 {section} syntax is still supported. - -New shorter {foreach} syntax to loop over an array. -Example: {foreach $myarray as $var}...{/foreach} - -Within the foreach loop, properties are access via: - -$var@key foreach $var array key -$var@iteration foreach current iteration count (1,2,3...) -$var@index foreach current index count (0,1,2...) -$var@total foreach $var array total -$var@first true on first iteration -$var@last true on last iteration - -The Smarty 2 {foreach} tag syntax is still supported. - -NOTE: {$bar[foo]} still indicates a variable inside of a {section} named foo. -If you want to access an array element with index foo, you must use quotes -such as {$bar['foo']}, or use the dot syntax {$bar.foo}. - -while block tag is now implemented: -{while $foo}...{/while} -{while $x lt 10}...{/while} - -Direct access to PHP functions: -Just as you can use PHP functions as modifiers directly, you can now access -PHP functions directly, provided they are permitted by security settings: -{time()} - -There is a new {function}...{/function} block tag to implement a template function. -This enables reuse of code sequences like a plugin function. It can call itself recursively. -Template function must be called with the new {call name=foo...} tag. - -Example: - -Template file: -{function name=menu level=0} - <ul class="level{$level}"> - {foreach $data as $entry} - {if is_array($entry)} - <li>{$entry@key}</li> - {call name=menu data=$entry level=$level+1} - {else} - <li>{$entry}</li> - {/if} - {/foreach} - </ul> -{/function} - -{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => - ['item3-3-1','item3-3-2']],'item4']} - -{call name=menu data=$menu} - - -Generated output: - * item1 - * item2 - * item3 - o item3-1 - o item3-2 - o item3-3 - + item3-3-1 - + item3-3-2 - * item4 - -The function tag itself must have the "name" attribute. This name is the tag -name when calling the function. The function tag may have any number of -additional attributes. These will be default settings for local variables. - -New {nocache} block function: -{nocache}...{/nocache} will declare a section of the template to be non-cached -when template caching is enabled. - -New nocache attribute: -You can declare variable/function output as non-cached with the nocache attribute. -Examples: - -{$foo nocache=true} -{$foo nocache} /* same */ - -{foo bar="baz" nocache=true} -{foo bar="baz" nocache} /* same */ - -{time() nocache=true} -{time() nocache} /* same */ - -Or you can also assign the variable in your script as nocache: -$smarty->assign('foo',$something,true); // third param is nocache setting -{$foo} /* non-cached */ - -$smarty.current_dir returns the directory name of the current template. - -You can use strings directly as templates with the "string" resource type. -Examples: -$smarty->display('string:This is my template, {$foo}!'); // php -{include file="string:This is my template, {$foo}!"} // template - - - -VARIABLE SCOPE / VARIABLE STORAGE -================================= - -In Smarty 2, all assigned variables were stored within the Smarty object. -Therefore, all variables assigned in PHP were accessible by all subsequent -fetch and display template calls. - -In Smarty 3, we have the choice to assign variables to the main Smarty object, -to user-created data objects, and to user-created template objects. -These objects can be chained. The object at the end of a chain can access all -variables belonging to that template and all variables within the parent objects. -The Smarty object can only be the root of a chain, but a chain can be isolated -from the Smarty object. - -All known Smarty assignment interfaces will work on the data and template objects. - -Besides the above mentioned objects, there is also a special storage area for -global variables. - -A Smarty data object can be created as follows: -$data = $smarty->createData(); // create root data object -$data->assign('foo','bar'); // assign variables as usual -$data->config_load('my.conf'); // load config file - -$data= $smarty->createData($smarty); // create data object having a parent link to -the Smarty object - -$data2= $smarty->createData($data); // create data object having a parent link to -the $data data object - -A template object can be created by using the createTemplate method. It has the -same parameter assignments as the fetch() or display() method. -Function definition: -function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) - -The first parameter can be a template name, a smarty object or a data object. - -Examples: -$tpl = $smarty->createTemplate('mytpl.tpl'); // create template object not linked to any parent -$tpl->assign('foo','bar'); // directly assign variables -$tpl->config_load('my.conf'); // load config file - -$tpl = $smarty->createTemplate('mytpl.tpl',$smarty); // create template having a parent link to the Smarty object -$tpl = $smarty->createTemplate('mytpl.tpl',$data); // create template having a parent link to the $data object - -The standard fetch() and display() methods will implicitly create a template object. -If the $parent parameter is not specified in these method calls, the template object -is will link back to the Smarty object as it's parent. - -If a template is called by an {include...} tag from another template, the -subtemplate links back to the calling template as it's parent. - -All variables assigned locally or from a parent template are accessible. If the -template creates or modifies a variable by using the {assign var=foo...} or -{$foo=...} tags, these new values are only known locally (local scope). When the -template exits, none of the new variables or modifications can be seen in the -parent template(s). This is same behavior as in Smarty 2. - -With Smarty 3, we can assign variables with a scope attribute which allows the -availablility of these new variables or modifications globally (ie in the parent -templates.) - -Possible scopes are local, parent, root and global. -Examples: -{assign var=foo value='bar'} // no scope is specified, the default 'local' -{$foo='bar'} // same, local scope -{assign var=foo value='bar' scope='local'} // same, local scope - -{assign var=foo value='bar' scope='parent'} // Values will be available to the parent object -{$foo='bar' scope='parent'} // (normally the calling template) - -{assign var=foo value='bar' scope='root'} // Values will be exported up to the root object, so they can -{$foo='bar' scope='root'} // be seen from all templates using the same root. - -{assign var=foo value='bar' scope='global'} // Values will be exported to global variable storage, -{$foo='bar' scope='global'} // they are available to any and all templates. - - -The scope attribute can also be attached to the {include...} tag. In this case, -the specified scope will be the default scope for all assignments within the -included template. - - -PLUGINS -======= - -Smarty3 are following the same coding rules as in Smarty2. -The only difference is that the template object is passed as additional third parameter. - -smarty_plugintype_name (array $params, object $smarty, object $template) - -The Smarty 2 plugins are still compatible as long as they do not make use of specific Smarty2 internals. - - -TEMPLATE INHERITANCE: -===================== - -With template inheritance you can define blocks, which are areas that can be -overriden by child templates, so your templates could look like this: - -parent.tpl: -<html> - <head> - <title>{block name='title'}My site name{/block}</title> - </head> - <body> - <h1>{block name='page-title'}Default page title{/block}</h1> - <div id="content"> - {block name='content'} - Default content - {/block} - </div> - </body> -</html> - -child.tpl: -{extends file='parent.tpl'} -{block name='title'} -Child title -{/block} - -grandchild.tpl: -{extends file='child.tpl'} -{block name='title'}Home - {$smarty.block.parent}{/block} -{block name='page-title'}My home{/block} -{block name='content'} - {foreach $images as $img} - <img src="{$img.url}" alt="{$img.description}" /> - {/foreach} -{/block} - -We redefined all the blocks here, however in the title block we used {$smarty.block.parent}, -which tells Smarty to insert the default content from the parent template in its place. -The content block was overriden to display the image files, and page-title has also be -overriden to display a completely different title. - -If we render grandchild.tpl we will get this: -<html> - <head> - <title>Home - Child title</title> - </head> - <body> - <h1>My home</h1> - <div id="content"> - <img src="/example.jpg" alt="image" /> - <img src="/example2.jpg" alt="image" /> - <img src="/example3.jpg" alt="image" /> - </div> - </body> -</html> - -NOTE: In the child templates everything outside the {extends} or {block} tag sections -is ignored. - -The inheritance tree can be as big as you want (meaning you can extend a file that -extends another one that extends another one and so on..), but be aware that all files -have to be checked for modifications at runtime so the more inheritance the more overhead you add. - -Instead of defining the parent/child relationships with the {extends} tag in the child template you -can use the resource as follow: - -$smarty->display('extends:parent.tpl|child.tpl|grandchild.tpl'); - -Child {block} tags may optionally have a append or prepend attribute. In this case the parent block content -is appended or prepended to the child block content. - -{block name='title' append} My title {/block} - - -PHP STREAMS: -============ - -(see online documentation) - -VARIBLE FILTERS: -================ - -(see online documentation) - - -STATIC CLASS ACCESS AND NAMESPACE SUPPORT -========================================= - -You can register a class with optional namespace for the use in the template like: - -$smarty->register->templateClass('foo','name\name2\myclass'); - -In the template you can use it like this: -{foo::method()} etc. - - -======================= - -Please look through it and send any questions/suggestions/etc to the forums. - -http://www.phpinsider.com/smarty-forum/viewtopic.php?t=14168 - -Monte and Uwe - -</pre> - <p class="notes" id="credit"> - Documentation generated on Sat, 24 Sep 2011 20:23:00 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a> - </p> - </body> -</html> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/dev_settings.php
Deleted
@@ -1,11 +0,0 @@ -<?php - -if (file_exists(dirname(__FILE__)."/local_dev_settings.php")) { - require_once(dirname(__FILE__)."/local_dev_settings.php"); -} - -if (!isset($smarty_dev_php_cli_bin)) { - $smarty_dev_php_cli_bin = "php"; -} - -?>
View file
Smarty-3.1.13.tar.gz/development/lexer
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/lexer/Create_Config_Parser.php
Deleted
@@ -1,28 +0,0 @@ -<?php -require_once(dirname(__FILE__)."/../dev_settings.php"); -// Create Lexer -require_once './LexerGenerator.php'; -$lex = new PHP_LexerGenerator('smarty_internal_configfilelexer.plex'); -$contents = file_get_contents('smarty_internal_configfilelexer.php'); -file_put_contents('smarty_internal_configfilelexer.php', $contents."\n"); -copy('smarty_internal_configfilelexer.php','../../distribution/libs/sysplugins/smarty_internal_configfilelexer.php'); - - -// Create Parser -passthru("$smarty_dev_php_cli_bin ./ParserGenerator/cli.php smarty_internal_configfileparser.y"); - -$contents = file_get_contents('smarty_internal_configfileparser.php'); -$contents = '<?php -/** -* Smarty Internal Plugin Configfileparser -* -* This is the config file parser. -* It is generated from the internal.configfileparser.y file -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ -'.substr($contents,6); -file_put_contents('smarty_internal_configfileparser.php', $contents."?>"); -copy('smarty_internal_configfileparser.php','../../distribution/libs/sysplugins/smarty_internal_configfileparser.php'); -?>
View file
Smarty-3.1.13.tar.gz/development/lexer/Create_Template_Parser.php
Deleted
@@ -1,32 +0,0 @@ -<?php -require_once(dirname(__FILE__)."/../dev_settings.php"); -ini_set('max_execution_time',300); -ini_set('xdebug.max_nesting_level',300); - -// Create Lexer -require_once './LexerGenerator.php'; -$lex = new PHP_LexerGenerator('smarty_internal_templatelexer.plex'); -$contents = file_get_contents('smarty_internal_templatelexer.php'); -$contents = str_replace(array('SMARTYldel','SMARTYrdel'),array('".$this->ldel."','".$this->rdel."'),$contents); -file_put_contents('smarty_internal_templatelexer.php', $contents); -copy('smarty_internal_templatelexer.php','../../distribution/libs/sysplugins/smarty_internal_templatelexer.php'); - -// Create Parser -passthru("$smarty_dev_php_cli_bin ./ParserGenerator/cli.php smarty_internal_templateparser.y"); - -$contents = file_get_contents('smarty_internal_templateparser.php'); -$contents = '<?php -/** -* Smarty Internal Plugin Templateparser -* -* This is the template parser. -* It is generated from the internal.templateparser.y file -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ -'.substr($contents,6); -file_put_contents('smarty_internal_templateparser.php', $contents."?>"); -copy('smarty_internal_templateparser.php','../../distribution/libs/sysplugins/smarty_internal_templateparser.php'); - -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/Exception.php
Deleted
@@ -1,397 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ -/** - * PEAR_Exception - * - * PHP versions 4 and 5 - * - * LICENSE: This source file is subject to version 3.0 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_0.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. - * - * @category pear - * @package PEAR - * @author Tomas V. V. Cox <cox@idecnet.com> - * @author Hans Lellelid <hans@velum.net> - * @author Bertrand Mansion <bmansion@mamasam.com> - * @author Greg Beaver <cellog@php.net> - * @copyright 1997-2008 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ - * @link http://pear.php.net/package/PEAR - * @since File available since Release 1.3.3 - */ - - -/** - * Base PEAR_Exception Class - * - * 1) Features: - * - * - Nestable exceptions (throw new PEAR_Exception($msg, $prev_exception)) - * - Definable triggers, shot when exceptions occur - * - Pretty and informative error messages - * - Added more context info available (like class, method or cause) - * - cause can be a PEAR_Exception or an array of mixed - * PEAR_Exceptions/PEAR_ErrorStack warnings - * - callbacks for specific exception classes and their children - * - * 2) Ideas: - * - * - Maybe a way to define a 'template' for the output - * - * 3) Inherited properties from PHP Exception Class: - * - * protected $message - * protected $code - * protected $line - * protected $file - * private $trace - * - * 4) Inherited methods from PHP Exception Class: - * - * __clone - * __construct - * getMessage - * getCode - * getFile - * getLine - * getTraceSafe - * getTraceSafeAsString - * __toString - * - * 5) Usage example - * - * <code> - * require_once 'PEAR/Exception.php'; - * - * class Test { - * function foo() { - * throw new PEAR_Exception('Error Message', ERROR_CODE); - * } - * } - * - * function myLogger($pear_exception) { - * echo $pear_exception->getMessage(); - * } - * // each time a exception is thrown the 'myLogger' will be called - * // (its use is completely optional) - * PEAR_Exception::addObserver('myLogger'); - * $test = new Test; - * try { - * $test->foo(); - * } catch (PEAR_Exception $e) { - * print $e; - * } - * </code> - * - * @category pear - * @package PEAR - * @author Tomas V.V.Cox <cox@idecnet.com> - * @author Hans Lellelid <hans@velum.net> - * @author Bertrand Mansion <bmansion@mamasam.com> - * @author Greg Beaver <cellog@php.net> - * @copyright 1997-2008 The PHP Group - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.7.2 - * @link http://pear.php.net/package/PEAR - * @since Class available since Release 1.3.3 - * - */ -class PEAR_Exception extends Exception -{ - const OBSERVER_PRINT = -2; - const OBSERVER_TRIGGER = -4; - const OBSERVER_DIE = -8; - protected $cause; - private static $_observers = array(); - private static $_uniqueid = 0; - private $_trace; - - /** - * Supported signatures: - * - PEAR_Exception(string $message); - * - PEAR_Exception(string $message, int $code); - * - PEAR_Exception(string $message, Exception $cause); - * - PEAR_Exception(string $message, Exception $cause, int $code); - * - PEAR_Exception(string $message, PEAR_Error $cause); - * - PEAR_Exception(string $message, PEAR_Error $cause, int $code); - * - PEAR_Exception(string $message, array $causes); - * - PEAR_Exception(string $message, array $causes, int $code); - * @param string exception message - * @param int|Exception|PEAR_Error|array|null exception cause - * @param int|null exception code or null - */ - public function __construct($message, $p2 = null, $p3 = null) - { - if (is_int($p2)) { - $code = $p2; - $this->cause = null; - } elseif (is_object($p2) || is_array($p2)) { - // using is_object allows both Exception and PEAR_Error - if (is_object($p2) && !($p2 instanceof Exception)) { - if (!class_exists('PEAR_Error',false) || !($p2 instanceof PEAR_Error)) { - throw new PEAR_Exception('exception cause must be Exception, ' . - 'array, or PEAR_Error'); - } - } - $code = $p3; - if (is_array($p2) && isset($p2['message'])) { - // fix potential problem of passing in a single warning - $p2 = array($p2); - } - $this->cause = $p2; - } else { - $code = null; - $this->cause = null; - } - parent::__construct($message, $code); - $this->signal(); - } - - /** - * @param mixed $callback - A valid php callback, see php func is_callable() - * - A PEAR_Exception::OBSERVER_* constant - * - An array(const PEAR_Exception::OBSERVER_*, - * mixed $options) - * @param string $label The name of the observer. Use this if you want - * to remove it later with removeObserver() - */ - public static function addObserver($callback, $label = 'default') - { - self::$_observers[$label] = $callback; - } - - public static function removeObserver($label = 'default') - { - unset(self::$_observers[$label]); - } - - /** - * @return int unique identifier for an observer - */ - public static function getUniqueId() - { - return self::$_uniqueid++; - } - - private function signal() - { - foreach (self::$_observers as $func) { - if (is_callable($func)) { - call_user_func($func, $this); - continue; - } - settype($func, 'array'); - switch ($func[0]) { - case self::OBSERVER_PRINT : - $f = (isset($func[1])) ? $func[1] : '%s'; - printf($f, $this->getMessage()); - break; - case self::OBSERVER_TRIGGER : - $f = (isset($func[1])) ? $func[1] : E_USER_NOTICE; - trigger_error($this->getMessage(), $f); - break; - case self::OBSERVER_DIE : - $f = (isset($func[1])) ? $func[1] : '%s'; - die(printf($f, $this->getMessage())); - break; - default: - trigger_error('invalid observer type', E_USER_WARNING); - } - } - } - - /** - * Return specific error information that can be used for more detailed - * error messages or translation. - * - * This method may be overridden in child exception classes in order - * to add functionality not present in PEAR_Exception and is a placeholder - * to define API - * - * The returned array must be an associative array of parameter => value like so: - * <pre> - * array('name' => $name, 'context' => array(...)) - * </pre> - * @return array - */ - public function getErrorData() - { - return array(); - } - - /** - * Returns the exception that caused this exception to be thrown - * @access public - * @return Exception|array The context of the exception - */ - public function getCause() - { - return $this->cause; - } - - /** - * Function must be public to call on caused exceptions - * @param array - */ - public function getCauseMessage(&$causes) - { - $trace = $this->getTraceSafe(); - $cause = array('class' => get_class($this), - 'message' => $this->message, - 'file' => 'unknown', - 'line' => 'unknown'); - if (isset($trace[0])) { - if (isset($trace[0]['file'])) { - $cause['file'] = $trace[0]['file']; - $cause['line'] = $trace[0]['line']; - } - } - $causes[] = $cause; - if ($this->cause instanceof PEAR_Exception) { - $this->cause->getCauseMessage($causes); - } elseif ($this->cause instanceof Exception) { - $causes[] = array('class' => get_class($this->cause), - 'message' => $this->cause->getMessage(), - 'file' => $this->cause->getFile(), - 'line' => $this->cause->getLine()); - } elseif (class_exists('PEAR_Error',false) && $this->cause instanceof PEAR_Error) { - $causes[] = array('class' => get_class($this->cause), - 'message' => $this->cause->getMessage(), - 'file' => 'unknown', - 'line' => 'unknown'); - } elseif (is_array($this->cause)) { - foreach ($this->cause as $cause) { - if ($cause instanceof PEAR_Exception) { - $cause->getCauseMessage($causes); - } elseif ($cause instanceof Exception) { - $causes[] = array('class' => get_class($cause), - 'message' => $cause->getMessage(), - 'file' => $cause->getFile(), - 'line' => $cause->getLine()); - } elseif (class_exists('PEAR_Error',false) && $cause instanceof PEAR_Error) { - $causes[] = array('class' => get_class($cause), - 'message' => $cause->getMessage(), - 'file' => 'unknown', - 'line' => 'unknown'); - } elseif (is_array($cause) && isset($cause['message'])) { - // PEAR_ErrorStack warning - $causes[] = array( - 'class' => $cause['package'], - 'message' => $cause['message'], - 'file' => isset($cause['context']['file']) ? - $cause['context']['file'] : - 'unknown', - 'line' => isset($cause['context']['line']) ? - $cause['context']['line'] : - 'unknown', - ); - } - } - } - } - - public function getTraceSafe() - { - if (!isset($this->_trace)) { - $this->_trace = $this->getTrace(); - if (empty($this->_trace)) { - $backtrace = debug_backtrace(); - $this->_trace = array($backtrace[count($backtrace)-1]); - } - } - return $this->_trace; - } - - public function getErrorClass() - { - $trace = $this->getTraceSafe(); - return $trace[0]['class']; - } - - public function getErrorMethod() - { - $trace = $this->getTraceSafe(); - return $trace[0]['function']; - } - - public function __toString() - { - if (isset($_SERVER['REQUEST_URI'])) { - return $this->toHtml(); - } - return $this->toText(); - } - - public function toHtml() - { - $trace = $this->getTraceSafe(); - $causes = array(); - $this->getCauseMessage($causes); - $html = '<table border="1" cellspacing="0">' . "\n"; - foreach ($causes as $i => $cause) { - $html .= '<tr><td colspan="3" bgcolor="#ff9999">' - . str_repeat('-', $i) . ' <b>' . $cause['class'] . '</b>: ' - . htmlspecialchars($cause['message']) . ' in <b>' . $cause['file'] . '</b> ' - . 'on line <b>' . $cause['line'] . '</b>' - . "</td></tr>\n"; - } - $html .= '<tr><td colspan="3" bgcolor="#aaaaaa" align="center"><b>Exception trace</b></td></tr>' . "\n" - . '<tr><td align="center" bgcolor="#cccccc" width="20"><b>#</b></td>' - . '<td align="center" bgcolor="#cccccc"><b>Function</b></td>' - . '<td align="center" bgcolor="#cccccc"><b>Location</b></td></tr>' . "\n"; - - foreach ($trace as $k => $v) { - $html .= '<tr><td align="center">' . $k . '</td>' - . '<td>'; - if (!empty($v['class'])) { - $html .= $v['class'] . $v['type']; - } - $html .= $v['function']; - $args = array(); - if (!empty($v['args'])) { - foreach ($v['args'] as $arg) { - if (is_null($arg)) $args[] = 'null'; - elseif (is_array($arg)) $args[] = 'Array'; - elseif (is_object($arg)) $args[] = 'Object('.get_class($arg).')'; - elseif (is_bool($arg)) $args[] = $arg ? 'true' : 'false'; - elseif (is_int($arg) || is_double($arg)) $args[] = $arg; - else { - $arg = (string)$arg; - $str = htmlspecialchars(substr($arg, 0, 16)); - if (strlen($arg) > 16) $str .= '…'; - $args[] = "'" . $str . "'"; - } - } - } - $html .= '(' . implode(', ',$args) . ')' - . '</td>' - . '<td>' . (isset($v['file']) ? $v['file'] : 'unknown') - . ':' . (isset($v['line']) ? $v['line'] : 'unknown') - . '</td></tr>' . "\n"; - } - $html .= '<tr><td align="center">' . ($k+1) . '</td>' - . '<td>{main}</td>' - . '<td> </td></tr>' . "\n" - . '</table>'; - return $html; - } - - public function toText() - { - $causes = array(); - $this->getCauseMessage($causes); - $causeMsg = ''; - foreach ($causes as $i => $cause) { - $causeMsg .= str_repeat(' ', $i) . $cause['class'] . ': ' - . $cause['message'] . ' in ' . $cause['file'] - . ' on line ' . $cause['line'] . "\n"; - } - return $causeMsg . $this->getTraceAsString(); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/development/lexer/Lempar Original.php
Deleted
@@ -1,923 +0,0 @@ -<?php -/* Driver template for the PHP_ParserGenerator parser generator. (PHP port of LEMON) -*/ - -/** - * This can be used to store both the string representation of - * a token, and any useful meta-data associated with the token. - * - * meta-data should be stored as an array - */ -class ParseyyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof ParseyyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof ParseyyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof ParseyyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof ParseyyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -/** The following structure represents a single element of the - * parser's stack. Information stored includes: - * - * + The state number for the parser at this level of the stack. - * - * + The value of the token stored at this level of the stack. - * (In other words, the "major" token.) - * - * + The semantic value stored at this level of the stack. This is - * the information used by the action routines in the grammar. - * It is sometimes called the "minor" token. - */ -class ParseyyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - -// code external to the class is included here -%% - -// declare_class is output here -%% -{ -/* First off, code is included which follows the "include_class" declaration -** in the input file. */ -%% - -/* Next is all token values, as class constants -*/ -/* -** These constants (all generated automatically by the parser generator) -** specify the various kinds of tokens (terminals) that the parser -** understands. -** -** Each symbol here is a terminal symbol in the grammar. -*/ -%% - -/* Next are that tables used to determine what action to take based on the -** current state and lookahead token. These tables are used to implement -** functions that take a state number and lookahead value and return an -** action integer. -** -** Suppose the action integer is N. Then the action is determined as -** follows -** -** 0 <= N < self::YYNSTATE Shift N. That is, -** push the lookahead -** token onto the stack -** and goto state N. -** -** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE. -** -** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred. -** -** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its -** input. (and concludes parsing) -** -** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused -** slots in the yy_action[] table. -** -** The action table is constructed as a single large static array $yy_action. -** Given state S and lookahead X, the action is computed as -** -** self::$yy_action[self::$yy_shift_ofst[S] + X ] -** -** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value -** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if -** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that -** the action is not in the table and that self::$yy_default[S] should be used instead. -** -** The formula above is for computing the action when the lookahead is -** a terminal symbol. If the lookahead is a non-terminal (as occurs after -** a reduce action) then the static $yy_reduce_ofst array is used in place of -** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of -** self::YY_SHIFT_USE_DFLT. -** -** The following are the tables generated in this section: -** -** self::$yy_action A single table containing all actions. -** self::$yy_lookahead A table containing the lookahead for each entry in -** yy_action. Used to detect hash collisions. -** self::$yy_shift_ofst For each state, the offset into self::$yy_action for -** shifting terminals. -** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for -** shifting non-terminals after a reduce. -** self::$yy_default Default action for each state. -*/ -%% -/* The next thing included is series of defines which control -** various aspects of the generated parser. -** self::YYNOCODE is a number which corresponds -** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash -** table. -** self::YYFALLBACK If defined, this indicates that one or more tokens -** have fall-back values which should be used if the -** original value of the token will not parse. -** self::YYSTACKDEPTH is the maximum depth of the parser's stack. -** self::YYNSTATE the combined number of states. -** self::YYNRULE the number of rules in the grammar -** self::YYERRORSYMBOL is the code number of the error symbol. If not -** defined, then do no error processing. -*/ -%% - /** The next table maps tokens into fallback tokens. If a construct - * like the following: - * - * %fallback ID X Y Z. - * - * appears in the grammer, then ID becomes a fallback token for X, Y, - * and Z. Whenever one of the tokens X, Y, or Z is input to the parser - * but it does not parse, the type of the token is changed to ID and - * the parse is retried before an error is thrown. - */ - static public $yyFallback = array( -%% - ); - /** - * Turn parser tracing on by giving a stream to which to write the trace - * and a prompt to preface each trace message. Tracing is turned off - * by making either argument NULL - * - * Inputs: - * - * - A stream resource to which trace output should be written. - * If NULL, then tracing is turned off. - * - A prefix string written at the beginning of every - * line of trace output. If NULL, then tracing is - * turned off. - * - * Outputs: - * - * - None. - * @param resource - * @param string - */ - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - /** - * Output debug information to output (php://output stream) - */ - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = '<br>'; - } - - /** - * @var resource|0 - */ - static public $yyTraceFILE; - /** - * String to prepend to debug output - * @var string|0 - */ - static public $yyTracePrompt; - /** - * @var int - */ - public $yyidx; /* Index of top element in stack */ - /** - * @var int - */ - public $yyerrcnt; /* Shifts left before out of the error */ - /** - * @var array - */ - public $yystack = array(); /* The parser's stack */ - - /** - * For tracing shifts, the names of all terminals and nonterminals - * are required. The following table supplies these names - * @var array - */ - public $yyTokenName = array( -%% - ); - - /** - * For tracing reduce actions, the names of all rules are required. - * @var array - */ - static public $yyRuleName = array( -%% - ); - - /** - * This function returns the symbolic name associated with a token - * value. - * @param int - * @return string - */ - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count(self::$yyTokenName)) { - return self::$yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - /** - * The following function deletes the value associated with a - * symbol. The symbol can be either a terminal or nonterminal. - * @param int the symbol code - * @param mixed the symbol's value - */ - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - /* Here is inserted the actions which take place when a - ** terminal or non-terminal is destroyed. This can happen - ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is - ** being destroyed before it is finished parsing. - ** - ** Note: during a reduce, the only symbols destroyed are those - ** which appear on the RHS of the rule, but which are not used - ** inside the C code. - */ -%% - default: break; /* If no destructor action specified: do nothing */ - } - } - - /** - * Pop the parser's stack once. - * - * If there is a destructor routine associated with the token which - * is popped from the stack, then call it. - * - * Return the major token number for the symbol popped. - * @param ParseyyParser - * @return int - */ - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . self::$yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - /** - * Deallocate and destroy a parser. Destructors are all called for - * all stack elements before shutting the parser down. - */ - function __destruct() - { - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - /** - * Based on the current state and parser stack, get a list of all - * possible lookahead tokens - * @param int - * @return array - */ - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected += self::$yyExpectedTokens[$nextstate]; - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new ParseyyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - return array_unique($expected); - } - - /** - * Based on the parser state and current parser stack, determine whether - * the lookahead token is possible. - * - * The parser will convert the token value to an error token if not. This - * catches some unusual edge cases where the parser would fail. - * @param int - * @return bool - */ - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new ParseyyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - /** - * Find the appropriate action for a parser given the terminal - * look-ahead token iLookAhead. - * - * If the look-ahead token is YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return YY_NO_ACTION. - * @param int The look-ahead token - */ - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - self::$yyTokenName[$iLookAhead] . " => " . - self::$yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Find the appropriate action for a parser given the non-terminal - * look-ahead token $iLookAhead. - * - * If the look-ahead token is self::YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return self::YY_NO_ACTION. - * @param int Current state number - * @param int The look-ahead token - */ - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Perform a shift action. - * @param int The new state to shift in - * @param int The major token to shift in - * @param mixed the minor token to shift in - */ - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will execute if the parser - ** stack ever overflows */ -%% - return; - } - $yytos = new ParseyyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - self::$yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - /** - * The following table contains information about every rule that - * is used during the reduce. - * - * <pre> - * array( - * array( - * int $lhs; Symbol on the left-hand side of the rule - * int $nrhs; Number of right-hand side symbols in the rule - * ),... - * ); - * </pre> - */ - static public $yyRuleInfo = array( -%% - ); - - /** - * The following table contains a mapping of reduce action to method name - * that handles the reduction. - * - * If a rule is not set, it has no handler. - */ - static public $yyReduceMap = array( -%% - ); - /* Beginning here are the reduction cases. A typical example - ** follows: - ** #line <lineno> <grammarfile> - ** function yy_r0($yymsp){ ... } // User supplied code - ** #line <lineno> <thisfile> - */ -%% - - /** - * placeholder for the left hand side in a reduce operation. - * - * For a parser with a rule like this: - * <pre> - * rule(A) ::= B. { A = 1; } - * </pre> - * - * The parser will translate to something like: - * - * <code> - * function yy_r0(){$this->_retvalue = 1;} - * </code> - */ - private $_retvalue; - - /** - * Perform a reduce action and the shift that must immediately - * follow the reduce. - * - * For a rule such as: - * - * <pre> - * A ::= B blah C. { dosomething(); } - * </pre> - * - * This function will first call the action, if any, ("dosomething();" in our - * example), and then it will pop three states from the stack, - * one for each entry on the right-hand side of the expression - * (B, blah, and C in our example rule), and then push the result of the action - * back on to the stack with the resulting state reduced to (as described in the .out - * file) - * @param int Number of the rule by which to reduce - */ - function yy_reduce($yyruleno) - { - //int $yygoto; /* The next state */ - //int $yyact; /* The next action */ - //mixed $yygotominor; /* The LHS of the rule reduced */ - //ParseyyStackEntry $yymsp; /* The top of the parser's stack */ - //int $yysize; /* Amount to pop the stack */ - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - /* If we are not debugging and the reduce action popped at least - ** one element off the stack, then we can push the new element back - ** onto the stack here, and skip the stack overflow test in yy_shift(). - ** That gives a significant speed improvement. */ - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new ParseyyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - /** - * The following code executes when the parse fails - * - * Code from %parse_fail is inserted here - */ - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser fails */ -%% - } - - /** - * The following code executes when a syntax error first occurs. - * - * %syntax_error code is inserted here - * @param int The major type of the error token - * @param mixed The minor type of the error token - */ - function yy_syntax_error($yymajor, $TOKEN) - { -%% - } - - /** - * The following is executed when the parser accepts - * - * %parse_accept code is inserted here - */ - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser accepts */ -%% - } - - /** - * The main parser program. - * - * The first argument is the major token number. The second is - * the token value string as scanned from the input. - * - * @param int the token number - * @param mixed the token value - * @param mixed any extra arguments that should be passed to handlers - */ - function doParse($yymajor, $yytokenvalue) - { -// $yyact; /* The parser action. */ -// $yyendofinput; /* True if we are at the end of input */ - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - /* (re)initialize the parser, if necessary */ - if ($this->yyidx === null || $this->yyidx < 0) { - /* if ($yymajor == 0) return; // not sure why this was here... */ - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new ParseyyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - /* A syntax error has occurred. - ** The response to an error depends upon whether or not the - ** grammar defines an error token "ERROR". - ** - ** This is what we do if the grammar does define ERROR: - ** - ** * Call the %syntax_error function. - ** - ** * Begin popping the stack until we enter a state where - ** it is legal to shift the error symbol, then shift - ** the error symbol. - ** - ** * Set the error count to three. - ** - ** * Begin accepting and shifting new tokens. No new error - ** processing will occur until three tokens have been - ** shifted successfully. - ** - */ - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - /* YYERRORSYMBOL is not defined */ - /* This is what we do if the grammar does not define ERROR: - ** - ** * Report an error message, and throw away the input token. - ** - ** * If the input token is $, then fail the parse. - ** - ** As before, subsequent error messages are suppressed until - ** three input tokens have been successfully shifted. - */ - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/Lempar.php
Deleted
@@ -1,561 +0,0 @@ -<?php -class ParseyyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof ParseyyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof ParseyyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof ParseyyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof ParseyyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -class ParseyyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - -%% - -%% -{ -%% - -%% - -%% -%% - static public $yyFallback = array( -%% - ); - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = '<br>'; - } - - static public $yyTraceFILE; - static public $yyTracePrompt; - public $yyidx; /* Index of top element in stack */ - public $yyerrcnt; /* Shifts left before out of the error */ - public $yystack = array(); /* The parser's stack */ - - public $yyTokenName = array( -%% - ); - - static public $yyRuleName = array( -%% - ); - - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { - return $this->yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { -%% - default: break; /* If no destructor action specified: do nothing */ - } - } - - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - function __destruct() - { - while ($this->yystack !== Array()) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]); - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new ParseyyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new ParseyyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - $this->yyTokenName[$iLookAhead] . " => " . - $this->yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } -%% - return; - } - $yytos = new ParseyyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - $this->yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - static public $yyRuleInfo = array( -%% - ); - - static public $yyReduceMap = array( -%% - ); -%% - - private $_retvalue; - - function yy_reduce($yyruleno) - { - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new ParseyyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } -%% - } - - function yy_syntax_error($yymajor, $TOKEN) - { -%% - } - - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } -%% - } - - function doParse($yymajor, $yytokenvalue) - { - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - if ($this->yyidx === null || $this->yyidx < 0) { - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new ParseyyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator.php
Deleted
@@ -1,332 +0,0 @@ -<?php -/** - * PHP_LexerGenerator, a php 5 lexer generator. - * - * This lexer generator translates a file in a format similar to - * re2c ({@link http://re2c.org}) and translates it into a PHP 5-based lexer - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_LexerGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: LexerGenerator.php 294970 2010-02-12 03:46:38Z clockwerx $ - * @since File available since Release 0.1.0 - */ -/** - * The Lexer generation parser - */ -require_once './LexerGenerator/Parser.php'; -/** - * Hand-written lexer for lex2php format files - */ -require_once './LexerGenerator/Lexer.php'; - -/** - * The basic home class for the lexer generator. A lexer scans text and - * organizes it into tokens for usage by a parser. - * - * Sample Usage: - * <code> - * require_once 'PHP/LexerGenerator.php'; - * $lex = new PHP_LexerGenerator('/path/to/lexerfile.plex'); - * </code> - * - * A file named "/path/to/lexerfile.php" will be created. - * - * File format consists of a PHP file containing specially - * formatted comments like so: - * - * <code> - * /*!lex2php - * {@*} - * </code> - * - * All lexer definition files must contain at least two lex2php comment blocks: - * - 1 regex declaration block - * - 1 or more rule declaration blocks - * - * The first lex2php comment is the regex declaration block and must contain - * several processor instruction as well as defining a name for all - * regular expressions. Processor instructions start with - * a "%" symbol and must be: - * - * - %counter - * - %input - * - %token - * - %value - * - %line - * - * token and counter should define the class variables used to define lexer input - * and the index into the input. token and value should be used to define the class - * variables used to store the token number and its textual value. Finally, line - * should be used to define the class variable used to define the current line number - * of scanning. - * - * For example: - * <code> - * /*!lex2php - * %counter {$this->N} - * %input {$this->data} - * %token {$this->token} - * %value {$this->value} - * %line {%this->linenumber} - * {@*} - * </code> - * - * Patterns consist of an identifier containing an letters or an underscore, and - * a descriptive match pattern. - * - * Descriptive match patterns may either be regular expressions (regexes) or - * quoted literal strings. Here are some examples: - * - * <pre> - * pattern = "quoted literal" - * ANOTHER = /[a-zA-Z_]+/ - * COMPLEX = @<([a-zA-Z_]+)( +(([a-zA-Z_]+)=((["\'])([^\6]*)\6))+){0,1}>[^<]*</\1>@ - * </pre> - * - * Quoted strings must escape the \ and " characters with \" and \\. - * - * Regex patterns must be in Perl-compatible regular expression format (preg). - * special characters (like \t \n or \x3H) can only be used in regexes, all - * \ will be escaped in literal strings. - * - * Sub-patterns may be defined and back-references (like \1) may be used. Any sub- - * patterns detected will be passed to the token handler in the variable - * $yysubmatches. - * - * In addition, lookahead expressions, and once-only expressions are allowed. - * Lookbehind expressions are impossible (scanning always occurs from the - * current position forward), and recursion (?R) can't work and is not allowed. - * - * <code> - * /*!lex2php - * %counter {$this->N} - * %input {$this->data} - * %token {$this->token} - * %value {$this->value} - * %line {%this->linenumber} - * alpha = /[a-zA-Z]/ - * alphaplus = /[a-zA-Z]+/ - * number = /[0-9]/ - * numerals = /[0-9]+/ - * whitespace = /[ \t\n]+/ - * blah = "$\"" - * blahblah = /a\$/ - * GAMEEND = @(?:1\-0|0\-1|1/2\-1/2)@ - * PAWNMOVE = /P?[a-h]([2-7]|[18]\=(Q|R|B|N))|P?[a-h]x[a-h]([2-7]|[18]\=(Q|R|B|N))/ - * {@*} - * </code> - * - * All regexes must be delimited. Any legal preg delimiter can be used (as in @ or / in - * the example above) - * - * Rule lex2php blocks each define a lexer state. You can optionally name the state - * with the %statename processor instruction. State names can be used to transfer to - * a new lexer state with the yybegin() method - * - * <code> - * /*!lexphp - * %statename INITIAL - * blah { - * $this->yybegin(self::INBLAH); - * // note - $this->yybegin(2) would also work - * } - * {@*} - * /*!lex2php - * %statename INBLAH - * ANYTHING { - * $this->yybegin(self::INITIAL); - * // note - $this->yybegin(1) would also work - * } - * {@*} - * </code> - * - * You can maintain a parser state stack simply by using yypushstate() and - * yypopstate() instead of yybegin(): - * - * <code> - * /*!lexphp - * %statename INITIAL - * blah { - * $this->yypushstate(self::INBLAH); - * } - * {@*} - * /*!lex2php - * %statename INBLAH - * ANYTHING { - * $this->yypopstate(); - * // now INBLAH doesn't care where it was called from - * } - * {@*} - * </code> - * - * Code blocks can choose to skip the current token and cycle to the next token by - * returning "false" - * - * <code> - * /*!lex2php - * WHITESPACE { - * return false; - * } - * {@*} - * </code> - * - * If you wish to re-process the current token in a new state, simply return true. - * If you forget to change lexer state, this will cause an unterminated loop, - * so be careful! - * - * <code> - * /*!lex2php - * "(" { - * $this->yypushstate(self::INPARAMS); - * return true; - * } - * {@*} - * </code> - * - * Lastly, if you wish to cycle to the next matching rule, return any value other than - * true, false or null: - * - * <code> - * /*!lex2php - * "{@" ALPHA { - * if ($this->value == '{@internal') { - * return 'more'; - * } - * ... - * } - * "{@internal" { - * ... - * } - * {@*} - * </code> - * - * Note that this procedure is exceptionally inefficient, and it would be far better - * to take advantage of PHP_LexerGenerator's top-down precedence and instead code: - * - * <code> - * /*!lex2php - * "{@internal" { - * ... - * } - * "{@" ALPHA { - * ... - * } - * {@*} - * </code> - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version @package_version@ - * @since Class available since Release 0.1.0 - * @example TestLexer.plex Example lexer source - * @example TestLexer.php Example lexer generated php code - * @example usage.php Example usage of PHP_LexerGenerator - * @example Lexer.plex File_ChessPGN lexer source (complex) - * @example Lexer.php File_ChessPGN lexer generated php code - */ - -class PHP_LexerGenerator -{ - /** - * Plex file lexer. - * @var PHP_LexerGenerator_Lexer - */ - private $_lex; - - /** - * Plex file parser. - * @var PHP_LexerGenerator_Parser - */ - private $_parser; - - /** - * Path to the output PHP file. - * @var string - */ - private $_outfile; - - /** - * Debug flag. When set, Parser trace information is generated. - * @var boolean - */ - public $debug = false; - - /** - * Create a lexer generator and optionally generate a lexer file. - * - * @param string Optional plex file {@see PHP_LexerGenerator::create}. - * @param string Optional output file {@see PHP_LexerGenerator::create}. - */ - function __construct($lexerfile = '', $outfile = '') - { - if ($lexerfile) { - $this -> create($lexerfile, $outfile); - } - } - - /** - * Create a lexer file from its skeleton plex file. - * - * @param string Path to the plex file. - * @param string Optional path to output file. Default is lexerfile with - * extension of ".php". - */ - function create($lexerfile, $outfile = '') - { - $this->_lex = new PHP_LexerGenerator_Lexer(file_get_contents($lexerfile)); - $info = pathinfo($lexerfile); - if ($outfile) { - $this->outfile = $outfile; - } else { - $this->outfile = $info['dirname'] . DIRECTORY_SEPARATOR . - substr($info['basename'], 0, - strlen($info['basename']) - strlen($info['extension'])) . 'php'; - } - $this->_parser = new PHP_LexerGenerator_Parser($this->outfile, $this->_lex); - if ($this -> debug) { - $this->_parser->PrintTrace(); - } - while ($this->_lex->advance($this->_parser)) { - $this->_parser->doParse($this->_lex->token, $this->_lex->value); - } - $this->_parser->doParse(0, 0); - } -} -//$a = new PHP_LexerGenerator('/development/File_ChessPGN/ChessPGN/Lexer.plex'); -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Exception.php
Deleted
@@ -1,55 +0,0 @@ -<?php -/** - * PHP_LexerGenerator, a php 5 lexer generator. - * - * Exception classes for the lexer generator - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_LexerGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - */ -require_once './Exception.php'; -/** - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version @package_version@ - * @since File available since Release 0.1.0 - */ -class PHP_LexerGenerator_Exception extends PEAR_Exception {} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Lexer.php
Deleted
@@ -1,533 +0,0 @@ -<?php -/** - * PHP_LexerGenerator, a php 5 lexer generator. - * - * This lexer generator translates a file in a format similar to - * re2c ({@link http://re2c.org}) and translates it into a PHP 5-based lexer - * - * PHP version 5 - * - * LICENSE: This source file is subject to version 3.01 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_01.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. - * - * @category php - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: Lexer.php 246683 2007-11-22 04:43:52Z instance $ - * @since File available since Release 0.1.0 - */ -require_once './LexerGenerator/Parser.php'; -/** - * Token scanner for plex files. - * - * This scanner detects comments beginning with "/*!lex2php" and - * then returns their components (processing instructions, patterns, strings - * action code, and regexes) - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version @package_version@ - * @since Class available since Release 0.1.0 - */ -class PHP_LexerGenerator_Lexer -{ - private $data; - private $N; - private $state; - /** - * Current line number in input - * @var int - */ - public $line; - /** - * Number of scanning errors detected - * @var int - */ - public $errors = 0; - /** - * integer identifier of the current token - * @var int - */ - public $token; - /** - * string content of current token - * @var string - */ - public $value; - - const CODE = PHP_LexerGenerator_Parser::CODE; - const COMMENTEND = PHP_LexerGenerator_Parser::COMMENTEND; - const COMMENTSTART = PHP_LexerGenerator_Parser::COMMENTSTART; - const PATTERN = PHP_LexerGenerator_Parser::PATTERN; - const PHPCODE = PHP_LexerGenerator_Parser::PHPCODE; - const PI = PHP_LexerGenerator_Parser::PI; - const QUOTE = PHP_LexerGenerator_Parser::QUOTE; - const SINGLEQUOTE = PHP_LexerGenerator_Parser::SINGLEQUOTE; - const SUBPATTERN = PHP_LexerGenerator_Parser::SUBPATTERN; - - /** - * prepare scanning - * @param string the input - */ - function __construct($data) - { - $this->data = str_replace("\r\n", "\n", $data); - $this->N = 0; - $this->line = 1; - $this->state = 'Start'; - $this->errors = 0; - } - - /** - * Output an error message - * @param string - */ - private function error($msg) - { - echo 'Error on line ' . $this->line . ': ' . $msg; - $this->errors++; - } - - /** - * Initial scanning state lexer - * @return boolean - */ - private function lexStart() - { - if ($this->N >= strlen($this->data)) { - return false; - } - $a = strpos($this->data, '/*!lex2php' . "\n", $this->N); - if ($a === false) { - $this->value = substr($this->data, $this->N); - $this->N = strlen($this->data); - $this->token = self::PHPCODE; - return true; - } - if ($a > $this->N) { - $this->value = substr($this->data, $this->N, $a - $this->N); - $this->N = $a; - $this->token = self::PHPCODE; - return true; - } - $this->value = '/*!lex2php' . "\n"; - $this->N += 11; // strlen("/*lex2php\n") - $this->token = self::COMMENTSTART; - $this->state = 'Declare'; - return true; - } - - /** - * lexer for top-level canning state after the initial declaration comment - * @return boolean - */ - private function lexStartNonDeclare() - { - if ($this->N >= strlen($this->data)) { - return false; - } - $a = strpos($this->data, '/*!lex2php' . "\n", $this->N); - if ($a === false) { - $this->value = substr($this->data, $this->N); - $this->N = strlen($this->data); - $this->token = self::PHPCODE; - return true; - } - if ($a > $this->N) { - $this->value = substr($this->data, $this->N, $a - $this->N); - $this->N = $a; - $this->token = self::PHPCODE; - return true; - } - $this->value = '/*!lex2php' . "\n"; - $this->N += 11; // strlen("/*lex2php\n") - $this->token = self::COMMENTSTART; - $this->state = 'Rule'; - return true; - } - - /** - * lexer for declaration comment state - * @return boolean - */ - private function lexDeclare() - { - while (true) { - $this -> skipWhitespaceEol(); - if ( - $this->N + 1 >= strlen($this->data) - || $this->data[$this->N] != '/' - || $this->data[$this->N + 1] != '/' - ) { - break; - } - // Skip single-line comment - while ( - $this->N < strlen($this->data) - && $this->data[$this->N] != "\n" - ) { - ++$this->N; - } - } - if ($this->data[$this->N] == '*' && $this->data[$this->N + 1] == '/') { - $this->state = 'StartNonDeclare'; - $this->value = '*/'; - $this->N += 2; - $this->token = self::COMMENTEND; - return true; - } - if (preg_match('/\G%([a-z]+)/', $this->data, $token, null, $this->N)) { - $this->value = $token[1]; - $this->N += strlen($token[1]) + 1; - $this->state = 'DeclarePI'; - $this->token = self::PI; - return true; - } - if (preg_match('/\G[a-zA-Z_][a-zA-Z0-9_]*/', $this->data, $token, null, $this->N)) { - $this->value = $token[0]; - $this->token = self::PATTERN; - $this->N += strlen($token[0]); - $this->state = 'DeclareEquals'; - return true; - } - $this->error('expecting declaration of sub-patterns'); - return false; - } - - /** - * lexer for processor instructions within declaration comment - * @return boolean - */ - private function lexDeclarePI() - { - $this -> skipWhitespace(); - if ($this->data[$this->N] == "\n") { - $this->N++; - $this->state = 'Declare'; - $this->line++; - return $this->lexDeclare(); - } - if ($this->data[$this->N] == '{') { - return $this->lexCode(); - } - if (!preg_match("/\G[^\n]+/", $this->data, $token, null, $this->N)) { - $this->error('Unexpected end of file'); - return false; - } - $this->value = $token[0]; - $this->N += strlen($this->value); - $this->token = self::SUBPATTERN; - return true; - } - - /** - * lexer for processor instructions inside rule comments - * @return boolean - */ - private function lexDeclarePIRule() - { - $this -> skipWhitespace(); - if ($this->data[$this->N] == "\n") { - $this->N++; - $this->state = 'Rule'; - $this->line++; - return $this->lexRule(); - } - if ($this->data[$this->N] == '{') { - return $this->lexCode(); - } - if (!preg_match("/\G[^\n]+/", $this->data, $token, null, $this->N)) { - $this->error('Unexpected end of file'); - return false; - } - $this->value = $token[0]; - $this->N += strlen($this->value); - $this->token = self::SUBPATTERN; - return true; - } - - /** - * lexer for the state representing scanning between a pattern and the "=" sign - * @return boolean - */ - private function lexDeclareEquals() - { - $this -> skipWhitespace(); - if ($this->N >= strlen($this->data)) { - $this->error('unexpected end of input, expecting "=" for sub-pattern declaration'); - } - if ($this->data[$this->N] != '=') { - $this->error('expecting "=" for sub-pattern declaration'); - return false; - } - $this->N++; - $this->state = 'DeclareRightside'; - $this -> skipWhitespace(); - if ($this->N >= strlen($this->data)) { - $this->error('unexpected end of file, expecting right side of sub-pattern declaration'); - return false; - } - return $this->lexDeclareRightside(); - } - - /** - * lexer for the right side of a pattern, detects quotes or regexes - * @return boolean - */ - private function lexDeclareRightside() - { - if ($this->data[$this->N] == "\n") { - $this->state = 'lexDeclare'; - $this->N++; - $this->line++; - return $this->lexDeclare(); - } - if ($this->data[$this->N] == '"') { - return $this->lexQuote(); - } - if ($this->data[$this->N] == '\'') { - return $this->lexQuote('\''); - } - $this -> skipWhitespace(); - // match a pattern - $test = $this->data[$this->N]; - $token = $this->N + 1; - $a = 0; - do { - if ($a++) { - $token++; - } - $token = strpos($this->data, $test, $token); - } while ($token !== false && ($this->data[$token - 1] == '\\' - && $this->data[$token - 2] != '\\')); - if ($token === false) { - $this->error('Unterminated regex pattern (started with "' . $test . '"'); - return false; - } - if (substr_count($this->data, "\n", $this->N, $token - $this->N)) { - $this->error('Regex pattern extends over multiple lines'); - return false; - } - $this->value = substr($this->data, $this->N + 1, $token - $this->N - 1); - // unescape the regex marker - // we will re-escape when creating the final regex - $this->value = str_replace('\\' . $test, $test, $this->value); - $this->N = $token + 1; - $this->token = self::SUBPATTERN; - return true; - } - - /** - * lexer for quoted literals - * @return boolean - */ - private function lexQuote($quote = '"') - { - $token = $this->N + 1; - $a = 0; - do { - if ($a++) { - $token++; - } - $token = strpos($this->data, $quote, $token); - } while ($token !== false && $token < strlen($this->data) && - ($this->data[$token - 1] == '\\' && $this->data[$token - 2] != '\\')); - if ($token === false) { - $this->error('unterminated quote'); - return false; - } - if (substr_count($this->data, "\n", $this->N, $token - $this->N)) { - $this->error('quote extends over multiple lines'); - return false; - } - $this->value = substr($this->data, $this->N + 1, $token - $this->N - 1); - $this->value = str_replace('\\'.$quote, $quote, $this->value); - $this->value = str_replace('\\\\', '\\', $this->value); - $this->N = $token + 1; - if ($quote == '\'' ) { - $this->token = self::SINGLEQUOTE; - } else { - $this->token = self::QUOTE; - } - return true; - } - - /** - * lexer for rules - * @return boolean - */ - private function lexRule() - { - while ( - $this->N < strlen($this->data) - && ( - $this->data[$this->N] == ' ' - || $this->data[$this->N] == "\t" - || $this->data[$this->N] == "\n" - ) || ( - $this->N < strlen($this->data) - 1 - && $this->data[$this->N] == '/' - && $this->data[$this->N + 1] == '/' - ) - ) { - if ( $this->data[$this->N] == '/' && $this->data[$this->N + 1] == '/' ) { - // Skip single line comments - $next_newline = strpos($this->data, "\n", $this->N) + 1; - if ($next_newline) { - $this->N = $next_newline; - } else { - $this->N = sizeof($this->data); - } - $this->line++; - } else { - if ($this->data[$this->N] == "\n") { - $this->line++; - } - $this->N++; // skip all whitespace - } - } - - if ($this->N >= strlen($this->data)) { - $this->error('unexpected end of input, expecting rule declaration'); - } - if ($this->data[$this->N] == '*' && $this->data[$this->N + 1] == '/') { - $this->state = 'StartNonDeclare'; - $this->value = '*/'; - $this->N += 2; - $this->token = self::COMMENTEND; - return true; - } - if ($this->data[$this->N] == '\'') { - return $this->lexQuote('\''); - } - if (preg_match('/\G%([a-zA-Z_]+)/', $this->data, $token, null, $this->N)) { - $this->value = $token[1]; - $this->N += strlen($token[1]) + 1; - $this->state = 'DeclarePIRule'; - $this->token = self::PI; - return true; - } - if ($this->data[$this->N] == "{") { - return $this->lexCode(); - } - if ($this->data[$this->N] == '"') { - return $this->lexQuote(); - } - if (preg_match('/\G[a-zA-Z_][a-zA-Z0-9_]*/', $this->data, $token, null, $this->N)) { - $this->value = $token[0]; - $this->N += strlen($token[0]); - $this->token = self::SUBPATTERN; - return true; - } else { - $this->error('expecting token rule (quotes or sub-patterns)'); - return false; - } - } - - /** - * lexer for php code blocks - * @return boolean - */ - private function lexCode() - { - $cp = $this->N + 1; - for ($level = 1; $cp < strlen($this->data) && ($level > 1 || $this->data[$cp] != '}'); $cp++) { - if ($this->data[$cp] == '{') { - $level++; - } elseif ($this->data[$cp] == '}') { - $level--; - } elseif ($this->data[$cp] == '/' && $this->data[$cp + 1] == '/') { - /* Skip C++ style comments */ - $cp += 2; - $z = strpos($this->data, "\n", $cp); - if ($z === false) { - $cp = strlen($this->data); - break; - } - $cp = $z; - } elseif ($this->data[$cp] == "'" || $this->data[$cp] == '"') { - /* String a character literals */ - $startchar = $this->data[$cp]; - $prevc = 0; - for ($cp++; $cp < strlen($this->data) && ($this->data[$cp] != $startchar || $prevc === '\\'); $cp++) { - if ($prevc === '\\') { - $prevc = 0; - } else { - $prevc = $this->data[$cp]; - } - } - } - } - if ($cp >= strlen($this->data)) { - $this->error("PHP code starting on this line is not terminated before the end of the file."); - $this->error++; - return false; - } else { - $this->value = substr($this->data, $this->N + 1, $cp - $this->N - 1); - $this->token = self::CODE; - $this->N = $cp + 1; - return true; - } - } - - /** - * Skip whitespace characters - */ - private function skipWhitespace() { - while ( - $this->N < strlen($this->data) - && ( - $this->data[$this->N] == ' ' - || $this->data[$this->N] == "\t" - ) - ) { - $this->N++; // skip whitespace - } - } - - /** - * Skip whitespace and EOL characters - */ - private function skipWhitespaceEol() { - while ( - $this->N < strlen($this->data) - && ( - $this->data[$this->N] == ' ' - || $this->data[$this->N] == "\t" - || $this->data[$this->N] == "\n" - ) - ) { - if ($this->data[$this->N] == "\n") { - ++$this -> line; - } - $this->N++; // skip whitespace - } - } - - /** - * Primary scanner - * - * In addition to lexing, this properly increments the line number of lexing. - * This calls the proper sub-lexer based on the parser state - * @param unknown_type $parser - * @return unknown - */ - public function advance($parser) - { - if ($this->N >= strlen($this->data)) { - return false; - } - if ($this->{'lex' . $this->state}()) { - $this->line += substr_count($this->value, "\n"); - return true; - } - return false; - } -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Parser.php
Deleted
@@ -1,1997 +0,0 @@ -<?php -/* Driver template for the PHP_PHP_LexerGenerator_ParserrGenerator parser generator. (PHP port of LEMON) -*/ - -/** - * This can be used to store both the string representation of - * a token, and any useful meta-data associated with the token. - * - * meta-data should be stored as an array - */ -class PHP_LexerGenerator_ParseryyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof PHP_LexerGenerator_ParseryyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof PHP_LexerGenerator_ParseryyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof PHP_LexerGenerator_ParseryyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof PHP_LexerGenerator_ParseryyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -/** The following structure represents a single element of the - * parser's stack. Information stored includes: - * - * + The state number for the parser at this level of the stack. - * - * + The value of the token stored at this level of the stack. - * (In other words, the "major" token.) - * - * + The semantic value stored at this level of the stack. This is - * the information used by the action routines in the grammar. - * It is sometimes called the "minor" token. - */ -class PHP_LexerGenerator_ParseryyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - -// code external to the class is included here -#line 3 "Parser.y" - -/* ?><?php {//*/ -/** - * PHP_LexerGenerator, a php 5 lexer generator. - * - * This lexer generator translates a file in a format similar to - * re2c ({@link http://re2c.org}) and translates it into a PHP 5-based lexer - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_LexerGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Parser.php 246683 2007-11-22 04:43:52Z instance $ - * @since File available since Release 0.1.0 - */ -/** - * For regular expression validation - */ -require_once './LexerGenerator/Regex/Lexer.php'; -require_once './LexerGenerator/Regex/Parser.php'; -require_once './LexerGenerator/Exception.php'; -/** - * Token parser for plex files. - * - * This parser converts tokens pulled from {@link PHP_LexerGenerator_Lexer} - * into abstract patterns and rules, then creates the output file - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version @package_version@ - * @since Class available since Release 0.1.0 - */ -#line 166 "Parser.php" - -// declare_class is output here -#line 2 "Parser.y" -class PHP_LexerGenerator_Parser#line 171 "Parser.php" -{ -/* First off, code is included which follows the "include_class" declaration -** in the input file. */ -#line 82 "Parser.y" - - private $patterns; - private $out; - private $lex; - private $input; - private $counter; - private $token; - private $value; - private $line; - private $matchlongest; - private $_regexLexer; - private $_regexParser; - private $_patternIndex = 0; - private $_outRuleIndex = 1; - private $caseinsensitive; - private $patternFlags; - private $unicode; - - public $transTable = array( - 1 => self::PHPCODE, - 2 => self::COMMENTSTART, - 3 => self::COMMENTEND, - 4 => self::QUOTE, - 5 => self::SINGLEQUOTE, - 6 => self::PATTERN, - 7 => self::CODE, - 8 => self::SUBPATTERN, - 9 => self::PI, - ); - - function __construct($outfile, $lex) - { - $this->out = fopen($outfile, 'wb'); - if (!$this->out) { - throw new Exception('unable to open lexer output file "' . $outfile . '"'); - } - $this->lex = $lex; - $this->_regexLexer = new PHP_LexerGenerator_Regex_Lexer(''); - $this->_regexParser = new PHP_LexerGenerator_Regex_Parser($this->_regexLexer); - } - - function doLongestMatch($rules, $statename, $ruleindex) - { - fwrite($this->out, ' - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - do { - $rules = array('); - foreach ($rules as $rule) { - fwrite($this->out, ' - \'/\G' . $rule['pattern'] . '/' . $this->patternFlags . ' \','); - } - fwrite($this->out, ' - ); - $match = false; - foreach ($rules as $index => $rule) { - if (preg_match($rule, substr(' . $this->input . ', ' . - $this->counter . '), $yymatches)) { - if ($match) { - if (strlen($yymatches[0]) > strlen($match[0][0])) { - $match = array($yymatches, $index); // matches, token - } - } else { - $match = array($yymatches, $index); - } - } - } - if (!$match) { - throw new Exception(\'Unexpected input at line \' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - ' . $this->token . ' = $match[1]; - ' . $this->value . ' = $match[0][0]; - $yysubmatches = $match[0]; - array_shift($yysubmatches); - if (!$yysubmatches) { - $yysubmatches = array(); - } - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - if ($r === null) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else {'); - fwrite($this->out, ' - $yy_yymore_patterns = array_slice($rules, $this->token, true); - // yymore is needed - do { - if (!isset($yy_yymore_patterns[' . $this->token . '])) { - throw new Exception(\'cannot do yymore for the last token\'); - } - $match = false; - foreach ($yy_yymore_patterns[' . $this->token . '] as $index => $rule) { - if (preg_match(\'/\' . $rule . \'/' . $this->patternFlags . '\', - ' . $this->input . ', $yymatches, null, ' . $this->counter . ')) { - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - if ($match) { - if (strlen($yymatches[0]) > strlen($match[0][0])) { - $match = array($yymatches, $index); // matches, token - } - } else { - $match = array($yymatches, $index); - } - } - } - if (!$match) { - throw new Exception(\'Unexpected input at line \' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - ' . $this->token . ' = $match[1]; - ' . $this->value . ' = $match[0][0]; - $yysubmatches = $match[0]; - array_shift($yysubmatches); - if (!$yysubmatches) { - $yysubmatches = array(); - } - ' . $this->line . ' = substr_count(' . $this->value . ', "\n"); - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}(); - } while ($r !== null || !$r); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } else { - // accept - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - return true; - } - } - } while (true); -'); - } - - function doFirstMatch($rules, $statename, $ruleindex) - { - $patterns = array(); - $pattern = '/'; - $ruleMap = array(); - $tokenindex = array(); - $actualindex = 1; - $i = 0; - foreach ($rules as $rule) { - $ruleMap[$i++] = $actualindex; - $tokenindex[$actualindex] = $rule['subpatterns']; - $actualindex += $rule['subpatterns'] + 1; - $patterns[] = '\G(' . $rule['pattern'] . ')'; - } - // Re-index tokencount from zero. - $tokencount = array_values($tokenindex); - $tokenindex = var_export($tokenindex, true); - $tokenindex = explode("\n", $tokenindex); - // indent for prettiness - $tokenindex = implode("\n ", $tokenindex); - $pattern .= implode('|', $patterns); - $pattern .= '/' . $this->patternFlags; - fwrite($this->out, ' - $tokenMap = ' . $tokenindex . '; - if (' . $this->counter . ' >= ($this->mbstring_overload ? mb_strlen(' . $this->input . ',\'latin1\'): strlen(' . $this->input . '))) { - return false; // end of input - } - '); - fwrite($this->out, '$yy_global_pattern = "' . - $pattern . 'iS";' . "\n"); - fwrite($this->out, ' - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr(' . $this->input . ', ' . - $this->counter . - ',2000000000,\'latin1\'), $yymatches) : preg_match($yy_global_pattern,' . $this->input . ', $yymatches, null, ' . - $this->counter . - ')) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception(\'Error: lexing failed because a rule matched\' . - \' an empty string. Input "\' . substr(' . $this->input . ', - ' . $this->counter . ', 5) . \'... state ' . $statename . '\'); - } - next($yymatches); // skip global match - ' . $this->token . ' = key($yymatches); // token number - if ($tokenMap[' . $this->token . ']) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, ' . $this->token . ' + 1, - $tokenMap[' . $this->token . ']); - } else { - $yysubmatches = array(); - } - ' . $this->value . ' = current($yymatches); // token value - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - if ($r === null) { - ' . $this->counter . ' += ($this->mbstring_overload ? mb_strlen(' . $this->value . ',\'latin1\'): strlen(' . $this->value . ')); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += ($this->mbstring_overload ? mb_strlen(' . $this->value . ',\'latin1\'): strlen(' . $this->value . ')); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= ($this->mbstring_overload ? mb_strlen(' . $this->input . ',\'latin1\'): strlen(' . $this->input . '))) { - return false; // end of input - } - // skip this token - continue; - }'); -// } else {'); -/** fwrite($this->out, ' $yy_yymore_patterns = array(' . "\n"); - $extra = 0; - for($i = 0; count($patterns); $i++) { - unset($patterns[$i]); - $extra += $tokencount[0]; - array_shift($tokencount); - fwrite($this->out, ' ' . $ruleMap[$i] . ' => array(' . $extra . ', "' . - implode('|', $patterns) . "\"),\n"); - } - fwrite($this->out, ' );' . "\n"); - fwrite($this->out, ' - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[' . $this->token . '][1])) { - throw new Exception(\'cannot do yymore for the last token\'); - } - $yysubmatches = array(); - if (preg_match(\'/\' . $yy_yymore_patterns[' . $this->token . '][1] . \'/' . $this->patternFlags . '\', - ' . $this->input . ', $yymatches, null, ' . $this->counter .')) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - next($yymatches); // skip global match - ' . $this->token . ' += key($yymatches) + $yy_yymore_patterns[' . $this->token . '][0]; // token number - ' . $this->value . ' = current($yymatches); // token value - ' . $this->line . ' = substr_count(' . $this->value . ', "\n"); - if ($tokenMap[' . $this->token . ']) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, ' . $this->token . ' + 1, - $tokenMap[' . $this->token . ']); - } else { - $yysubmatches = array(); - } - } - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += ($this->mbstring_overload ? mb_strlen(' . $this->value . ',\'latin1\'): strlen(' . $this->value . ')); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= ($this->mbstring_overload ? mb_strlen(' . $this->input . ',\'latin1\'): strlen(' . $this->input . '))) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - ' . $this->counter . ' += ($this->mbstring_overload ? mb_strlen(' . $this->value . ',\'latin1\'): strlen(' . $this->value . ')); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - return true; - } - } -*/ - fwrite($this->out, ' } else { - throw new Exception(\'Unexpected input at line\' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - break; - } while (true); -'); - } - - function makeCaseInsensitve($string) - { - return preg_replace('/[a-z]/ie', "'[\\0'.strtoupper('\\0').']'", strtolower($string)); - } - - function outputRules($rules, $statename) - { - if (!$statename) { - $statename = $this -> _outRuleIndex; - } - fwrite($this->out, ' - function yylex' . $this -> _outRuleIndex . '() - {'); - if ($this->matchlongest) { - $ruleMap = array(); - foreach ($rules as $i => $rule) { - $ruleMap[$i] = $i; - } - $this->doLongestMatch($rules, $statename, $this -> _outRuleIndex); - } else { - $ruleMap = array(); - $actualindex = 1; - $i = 0; - foreach ($rules as $rule) { - $ruleMap[$i++] = $actualindex; - $actualindex += $rule['subpatterns'] + 1; - } - $this->doFirstMatch($rules, $statename, $this -> _outRuleIndex); - } - fwrite($this->out, ' - } // end function - -'); - if (is_string($statename)) { - fwrite($this->out, ' - const ' . $statename . ' = ' . $this -> _outRuleIndex . '; -'); - } - foreach ($rules as $i => $rule) { - fwrite($this->out, ' function yy_r' . $this -> _outRuleIndex . '_' . $ruleMap[$i] . '($yy_subpatterns) - { -' . $rule['code'] . -' } -'); - } - $this -> _outRuleIndex++; // for next set of rules - } - - function error($msg) - { - echo 'Error on line ' . $this->lex->line . ': ' , $msg; - } - - function _validatePattern($pattern, $update = false) - { - $this->_regexLexer->reset($pattern, $this->lex->line); - $this->_regexParser->reset($this->_patternIndex, $update); - try { - while ($this->_regexLexer->yylex()) { - $this->_regexParser->doParse( - $this->_regexLexer->token, $this->_regexLexer->value); - } - $this->_regexParser->doParse(0, 0); - } catch (PHP_LexerGenerator_Exception $e) { - $this->error($e->getMessage()); - throw new PHP_LexerGenerator_Exception('Invalid pattern "' . $pattern . '"'); - } - return $this->_regexParser->result; - } -#line 529 "Parser.php" - -/* Next is all token values, as class constants -*/ -/* -** These constants (all generated automatically by the parser generator) -** specify the various kinds of tokens (terminals) that the parser -** understands. -** -** Each symbol here is a terminal symbol in the grammar. -*/ - const PHPCODE = 1; - const COMMENTSTART = 2; - const COMMENTEND = 3; - const PI = 4; - const SUBPATTERN = 5; - const CODE = 6; - const PATTERN = 7; - const QUOTE = 8; - const SINGLEQUOTE = 9; - const YY_NO_ACTION = 99; - const YY_ACCEPT_ACTION = 98; - const YY_ERROR_ACTION = 97; - -/* Next are that tables used to determine what action to take based on the -** current state and lookahead token. These tables are used to implement -** functions that take a state number and lookahead value and return an -** action integer. -** -** Suppose the action integer is N. Then the action is determined as -** follows -** -** 0 <= N < self::YYNSTATE Shift N. That is, -** push the lookahead -** token onto the stack -** and goto state N. -** -** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE. -** -** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred. -** -** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its -** input. (and concludes parsing) -** -** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused -** slots in the yy_action[] table. -** -** The action table is constructed as a single large static array $yy_action. -** Given state S and lookahead X, the action is computed as -** -** self::$yy_action[self::$yy_shift_ofst[S] + X ] -** -** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value -** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if -** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that -** the action is not in the table and that self::$yy_default[S] should be used instead. -** -** The formula above is for computing the action when the lookahead is -** a terminal symbol. If the lookahead is a non-terminal (as occurs after -** a reduce action) then the static $yy_reduce_ofst array is used in place of -** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of -** self::YY_SHIFT_USE_DFLT. -** -** The following are the tables generated in this section: -** -** self::$yy_action A single table containing all actions. -** self::$yy_lookahead A table containing the lookahead for each entry in -** yy_action. Used to detect hash collisions. -** self::$yy_shift_ofst For each state, the offset into self::$yy_action for -** shifting terminals. -** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for -** shifting non-terminals after a reduce. -** self::$yy_default Default action for each state. -*/ - const YY_SZ_ACTTAB = 91; -static public $yy_action = array( - /* 0 */ 25, 50, 49, 31, 49, 54, 53, 54, 53, 35, - /* 10 */ 11, 49, 18, 22, 54, 53, 14, 59, 51, 28, - /* 20 */ 55, 57, 58, 59, 47, 1, 55, 57, 32, 15, - /* 30 */ 49, 29, 49, 54, 53, 54, 53, 30, 52, 49, - /* 40 */ 42, 46, 54, 53, 98, 56, 5, 13, 38, 18, - /* 50 */ 49, 43, 40, 54, 53, 12, 39, 18, 3, 37, - /* 60 */ 36, 17, 7, 8, 2, 10, 33, 18, 9, 2, - /* 70 */ 41, 44, 1, 24, 16, 34, 45, 27, 60, 48, - /* 80 */ 4, 1, 2, 1, 20, 19, 21, 26, 23, 6, - /* 90 */ 7, - ); - static public $yy_lookahead = array( - /* 0 */ 3, 1, 5, 4, 5, 8, 9, 8, 9, 3, - /* 10 */ 19, 5, 21, 4, 8, 9, 7, 5, 6, 14, - /* 20 */ 8, 9, 3, 5, 6, 20, 8, 9, 3, 7, - /* 30 */ 5, 4, 5, 8, 9, 8, 9, 3, 1, 5, - /* 40 */ 5, 6, 8, 9, 11, 12, 13, 19, 5, 21, - /* 50 */ 5, 8, 9, 8, 9, 19, 5, 21, 5, 8, - /* 60 */ 9, 1, 2, 1, 2, 19, 14, 21, 1, 2, - /* 70 */ 5, 6, 20, 15, 16, 14, 2, 14, 1, 1, - /* 80 */ 5, 20, 2, 20, 18, 21, 18, 17, 4, 13, - /* 90 */ 2, -); - const YY_SHIFT_USE_DFLT = -4; - const YY_SHIFT_MAX = 35; - static public $yy_shift_ofst = array( - /* 0 */ 60, 27, -1, 45, 45, 62, 67, 84, 80, 80, - /* 10 */ 34, 25, -3, 6, 51, 51, 9, 88, 12, 18, - /* 20 */ 43, 43, 65, 35, 19, 0, 22, 74, 74, 75, - /* 30 */ 78, 53, 77, 74, 74, 37, -); - const YY_REDUCE_USE_DFLT = -10; - const YY_REDUCE_MAX = 17; - static public $yy_reduce_ofst = array( - /* 0 */ 33, 28, -9, 46, 36, 52, 63, 58, 61, 5, - /* 10 */ 64, 64, 64, 64, 66, 68, 70, 76, -); - static public $yyExpectedTokens = array( - /* 0 */ array(1, 2, ), - /* 1 */ array(4, 5, 8, 9, ), - /* 2 */ array(4, 5, 8, 9, ), - /* 3 */ array(5, 8, 9, ), - /* 4 */ array(5, 8, 9, ), - /* 5 */ array(1, 2, ), - /* 6 */ array(1, 2, ), - /* 7 */ array(4, ), - /* 8 */ array(2, ), - /* 9 */ array(2, ), - /* 10 */ array(3, 5, 8, 9, ), - /* 11 */ array(3, 5, 8, 9, ), - /* 12 */ array(3, 5, 8, 9, ), - /* 13 */ array(3, 5, 8, 9, ), - /* 14 */ array(5, 8, 9, ), - /* 15 */ array(5, 8, 9, ), - /* 16 */ array(4, 7, ), - /* 17 */ array(2, ), - /* 18 */ array(5, 6, 8, 9, ), - /* 19 */ array(5, 6, 8, 9, ), - /* 20 */ array(5, 8, 9, ), - /* 21 */ array(5, 8, 9, ), - /* 22 */ array(5, 6, ), - /* 23 */ array(5, 6, ), - /* 24 */ array(3, ), - /* 25 */ array(1, ), - /* 26 */ array(7, ), - /* 27 */ array(2, ), - /* 28 */ array(2, ), - /* 29 */ array(5, ), - /* 30 */ array(1, ), - /* 31 */ array(5, ), - /* 32 */ array(1, ), - /* 33 */ array(2, ), - /* 34 */ array(2, ), - /* 35 */ array(1, ), - /* 36 */ array(), - /* 37 */ array(), - /* 38 */ array(), - /* 39 */ array(), - /* 40 */ array(), - /* 41 */ array(), - /* 42 */ array(), - /* 43 */ array(), - /* 44 */ array(), - /* 45 */ array(), - /* 46 */ array(), - /* 47 */ array(), - /* 48 */ array(), - /* 49 */ array(), - /* 50 */ array(), - /* 51 */ array(), - /* 52 */ array(), - /* 53 */ array(), - /* 54 */ array(), - /* 55 */ array(), - /* 56 */ array(), - /* 57 */ array(), - /* 58 */ array(), - /* 59 */ array(), - /* 60 */ array(), -); - static public $yy_default = array( - /* 0 */ 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, - /* 10 */ 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, - /* 20 */ 72, 73, 97, 97, 97, 79, 67, 64, 65, 97, - /* 30 */ 75, 97, 74, 62, 63, 78, 92, 91, 96, 93, - /* 40 */ 95, 70, 68, 94, 71, 82, 69, 84, 77, 87, - /* 50 */ 81, 83, 80, 86, 85, 88, 61, 89, 66, 90, - /* 60 */ 76, -); -/* The next thing included is series of defines which control -** various aspects of the generated parser. -** self::YYNOCODE is a number which corresponds -** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash -** table. -** self::YYFALLBACK If defined, this indicates that one or more tokens -** have fall-back values which should be used if the -** original value of the token will not parse. -** self::YYSTACKDEPTH is the maximum depth of the parser's stack. -** self::YYNSTATE the combined number of states. -** self::YYNRULE the number of rules in the grammar -** self::YYERRORSYMBOL is the code number of the error symbol. If not -** defined, then do no error processing. -*/ - const YYNOCODE = 23; - const YYSTACKDEPTH = 100; - const YYNSTATE = 61; - const YYNRULE = 36; - const YYERRORSYMBOL = 10; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - /** The next table maps tokens into fallback tokens. If a construct - * like the following: - * - * %fallback ID X Y Z. - * - * appears in the grammer, then ID becomes a fallback token for X, Y, - * and Z. Whenever one of the tokens X, Y, or Z is input to the parser - * but it does not parse, the type of the token is changed to ID and - * the parse is retried before an error is thrown. - */ - static public $yyFallback = array( - ); - /** - * Turn parser tracing on by giving a stream to which to write the trace - * and a prompt to preface each trace message. Tracing is turned off - * by making either argument NULL - * - * Inputs: - * - * - A stream resource to which trace output should be written. - * If NULL, then tracing is turned off. - * - A prefix string written at the beginning of every - * line of trace output. If NULL, then tracing is - * turned off. - * - * Outputs: - * - * - None. - * @param resource - * @param string - */ - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - /** - * Output debug information to output (php://output stream) - */ - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = ''; - } - - /** - * @var resource|0 - */ - static public $yyTraceFILE; - /** - * String to prepend to debug output - * @var string|0 - */ - static public $yyTracePrompt; - /** - * @var int - */ - public $yyidx; /* Index of top element in stack */ - /** - * @var int - */ - public $yyerrcnt; /* Shifts left before out of the error */ - /** - * @var array - */ - public $yystack = array(); /* The parser's stack */ - - /** - * For tracing shifts, the names of all terminals and nonterminals - * are required. The following table supplies these names - * @var array - */ - static public $yyTokenName = array( - '$', 'PHPCODE', 'COMMENTSTART', 'COMMENTEND', - 'PI', 'SUBPATTERN', 'CODE', 'PATTERN', - 'QUOTE', 'SINGLEQUOTE', 'error', 'start', - 'lexfile', 'declare', 'rules', 'declarations', - 'processing_instructions', 'pattern_declarations', 'subpattern', 'rule', - 'reset_rules', 'rule_subpattern', - ); - - /** - * For tracing reduce actions, the names of all rules are required. - * @var array - */ - static public $yyRuleName = array( - /* 0 */ "start ::= lexfile", - /* 1 */ "lexfile ::= declare rules", - /* 2 */ "lexfile ::= declare PHPCODE rules", - /* 3 */ "lexfile ::= PHPCODE declare rules", - /* 4 */ "lexfile ::= PHPCODE declare PHPCODE rules", - /* 5 */ "declare ::= COMMENTSTART declarations COMMENTEND", - /* 6 */ "declarations ::= processing_instructions pattern_declarations", - /* 7 */ "processing_instructions ::= PI SUBPATTERN", - /* 8 */ "processing_instructions ::= PI CODE", - /* 9 */ "processing_instructions ::= processing_instructions PI SUBPATTERN", - /* 10 */ "processing_instructions ::= processing_instructions PI CODE", - /* 11 */ "pattern_declarations ::= PATTERN subpattern", - /* 12 */ "pattern_declarations ::= pattern_declarations PATTERN subpattern", - /* 13 */ "rules ::= COMMENTSTART rule COMMENTEND", - /* 14 */ "rules ::= COMMENTSTART PI SUBPATTERN rule COMMENTEND", - /* 15 */ "rules ::= COMMENTSTART rule COMMENTEND PHPCODE", - /* 16 */ "rules ::= COMMENTSTART PI SUBPATTERN rule COMMENTEND PHPCODE", - /* 17 */ "rules ::= reset_rules rule COMMENTEND", - /* 18 */ "rules ::= reset_rules PI SUBPATTERN rule COMMENTEND", - /* 19 */ "rules ::= reset_rules rule COMMENTEND PHPCODE", - /* 20 */ "rules ::= reset_rules PI SUBPATTERN rule COMMENTEND PHPCODE", - /* 21 */ "reset_rules ::= rules COMMENTSTART", - /* 22 */ "rule ::= rule_subpattern CODE", - /* 23 */ "rule ::= rule rule_subpattern CODE", - /* 24 */ "rule_subpattern ::= QUOTE", - /* 25 */ "rule_subpattern ::= SINGLEQUOTE", - /* 26 */ "rule_subpattern ::= SUBPATTERN", - /* 27 */ "rule_subpattern ::= rule_subpattern QUOTE", - /* 28 */ "rule_subpattern ::= rule_subpattern SINGLEQUOTE", - /* 29 */ "rule_subpattern ::= rule_subpattern SUBPATTERN", - /* 30 */ "subpattern ::= QUOTE", - /* 31 */ "subpattern ::= SINGLEQUOTE", - /* 32 */ "subpattern ::= SUBPATTERN", - /* 33 */ "subpattern ::= subpattern QUOTE", - /* 34 */ "subpattern ::= subpattern SINGLEQUOTE", - /* 35 */ "subpattern ::= subpattern SUBPATTERN", - ); - - /** - * This function returns the symbolic name associated with a token - * value. - * @param int - * @return string - */ - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count(self::$yyTokenName)) { - return self::$yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - /** - * The following function deletes the value associated with a - * symbol. The symbol can be either a terminal or nonterminal. - * @param int the symbol code - * @param mixed the symbol's value - */ - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - /* Here is inserted the actions which take place when a - ** terminal or non-terminal is destroyed. This can happen - ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is - ** being destroyed before it is finished parsing. - ** - ** Note: during a reduce, the only symbols destroyed are those - ** which appear on the RHS of the rule, but which are not used - ** inside the C code. - */ - default: break; /* If no destructor action specified: do nothing */ - } - } - - /** - * Pop the parser's stack once. - * - * If there is a destructor routine associated with the token which - * is popped from the stack, then call it. - * - * Return the major token number for the symbol popped. - * @param PHP_LexerGenerator_ParseryyParser - * @return int - */ - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . self::$yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - /** - * Deallocate and destroy a parser. Destructors are all called for - * all stack elements before shutting the parser down. - */ - function __destruct() - { - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - /** - * Based on the current state and parser stack, get a list of all - * possible lookahead tokens - * @param int - * @return array - */ - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected += self::$yyExpectedTokens[$nextstate]; - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - return array_unique($expected); - } - - /** - * Based on the parser state and current parser stack, determine whether - * the lookahead token is possible. - * - * The parser will convert the token value to an error token if not. This - * catches some unusual edge cases where the parser would fail. - * @param int - * @return bool - */ - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - /** - * Find the appropriate action for a parser given the terminal - * look-ahead token iLookAhead. - * - * If the look-ahead token is YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return YY_NO_ACTION. - * @param int The look-ahead token - */ - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - self::$yyTokenName[$iLookAhead] . " => " . - self::$yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Find the appropriate action for a parser given the non-terminal - * look-ahead token $iLookAhead. - * - * If the look-ahead token is self::YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return self::YY_NO_ACTION. - * @param int Current state number - * @param int The look-ahead token - */ - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Perform a shift action. - * @param int The new state to shift in - * @param int The major token to shift in - * @param mixed the minor token to shift in - */ - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will execute if the parser - ** stack ever overflows */ - return; - } - $yytos = new PHP_LexerGenerator_ParseryyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - self::$yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - /** - * The following table contains information about every rule that - * is used during the reduce. - * - * <pre> - * array( - * array( - * int $lhs; Symbol on the left-hand side of the rule - * int $nrhs; Number of right-hand side symbols in the rule - * ),... - * ); - * </pre> - */ - static public $yyRuleInfo = array( - array( 'lhs' => 11, 'rhs' => 1 ), - array( 'lhs' => 12, 'rhs' => 2 ), - array( 'lhs' => 12, 'rhs' => 3 ), - array( 'lhs' => 12, 'rhs' => 3 ), - array( 'lhs' => 12, 'rhs' => 4 ), - array( 'lhs' => 13, 'rhs' => 3 ), - array( 'lhs' => 15, 'rhs' => 2 ), - array( 'lhs' => 16, 'rhs' => 2 ), - array( 'lhs' => 16, 'rhs' => 2 ), - array( 'lhs' => 16, 'rhs' => 3 ), - array( 'lhs' => 16, 'rhs' => 3 ), - array( 'lhs' => 17, 'rhs' => 2 ), - array( 'lhs' => 17, 'rhs' => 3 ), - array( 'lhs' => 14, 'rhs' => 3 ), - array( 'lhs' => 14, 'rhs' => 5 ), - array( 'lhs' => 14, 'rhs' => 4 ), - array( 'lhs' => 14, 'rhs' => 6 ), - array( 'lhs' => 14, 'rhs' => 3 ), - array( 'lhs' => 14, 'rhs' => 5 ), - array( 'lhs' => 14, 'rhs' => 4 ), - array( 'lhs' => 14, 'rhs' => 6 ), - array( 'lhs' => 20, 'rhs' => 2 ), - array( 'lhs' => 19, 'rhs' => 2 ), - array( 'lhs' => 19, 'rhs' => 3 ), - array( 'lhs' => 21, 'rhs' => 1 ), - array( 'lhs' => 21, 'rhs' => 1 ), - array( 'lhs' => 21, 'rhs' => 1 ), - array( 'lhs' => 21, 'rhs' => 2 ), - array( 'lhs' => 21, 'rhs' => 2 ), - array( 'lhs' => 21, 'rhs' => 2 ), - array( 'lhs' => 18, 'rhs' => 1 ), - array( 'lhs' => 18, 'rhs' => 1 ), - array( 'lhs' => 18, 'rhs' => 1 ), - array( 'lhs' => 18, 'rhs' => 2 ), - array( 'lhs' => 18, 'rhs' => 2 ), - array( 'lhs' => 18, 'rhs' => 2 ), - ); - - /** - * The following table contains a mapping of reduce action to method name - * that handles the reduction. - * - * If a rule is not set, it has no handler. - */ - static public $yyReduceMap = array( - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, - 5 => 5, - 6 => 6, - 7 => 7, - 8 => 7, - 9 => 9, - 10 => 9, - 11 => 11, - 12 => 12, - 13 => 13, - 14 => 14, - 15 => 15, - 16 => 16, - 17 => 17, - 18 => 18, - 19 => 19, - 20 => 20, - 21 => 21, - 22 => 22, - 23 => 23, - 24 => 24, - 25 => 25, - 26 => 26, - 27 => 27, - 28 => 28, - 29 => 29, - 30 => 30, - 31 => 31, - 32 => 32, - 33 => 33, - 34 => 34, - 35 => 35, - ); - /* Beginning here are the reduction cases. A typical example - ** follows: - ** #line <lineno> <grammarfile> - ** function yy_r0($yymsp){ ... } // User supplied code - ** #line <lineno> <thisfile> - */ -#line 438 "Parser.y" - function yy_r1(){ - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1352 "Parser.php" -#line 472 "Parser.y" - function yy_r2(){ - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - if (strlen($this->yystack[$this->yyidx + -1]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -1]->minor); - } - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1391 "Parser.php" -#line 509 "Parser.y" - function yy_r3(){ - if (strlen($this->yystack[$this->yyidx + -2]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -2]->minor); - } - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1430 "Parser.php" -#line 546 "Parser.y" - function yy_r4(){ - if (strlen($this->yystack[$this->yyidx + -3]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -3]->minor); - } - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - if (strlen($this->yystack[$this->yyidx + -1]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -1]->minor); - } - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1472 "Parser.php" -#line 587 "Parser.y" - function yy_r5(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - $this->patterns = $this->yystack[$this->yyidx + -1]->minor['patterns']; - $this->_patternIndex = 1; - } -#line 1479 "Parser.php" -#line 593 "Parser.y" - function yy_r6(){ - $expected = array( - 'counter' => true, - 'input' => true, - 'token' => true, - 'value' => true, - 'line' => true, - ); - foreach ($this->yystack[$this->yyidx + -1]->minor as $pi) { - if (isset($expected[$pi['pi']])) { - unset($expected[$pi['pi']]); - continue; - } - if (count($expected)) { - throw new Exception('Processing Instructions "' . - implode(', ', array_keys($expected)) . '" must be defined'); - } - } - $expected = array( - 'caseinsensitive' => true, - 'counter' => true, - 'input' => true, - 'token' => true, - 'value' => true, - 'line' => true, - 'matchlongest' => true, - 'unicode' => true, - ); - foreach ($this->yystack[$this->yyidx + -1]->minor as $pi) { - if (isset($expected[$pi['pi']])) { - $this->{$pi['pi']} = $pi['definition']; - if ($pi['pi'] == 'matchlongest') { - $this->matchlongest = true; - } - continue; - } - $this->error('Unknown processing instruction %' . $pi['pi'] . - ', should be one of "' . implode(', ', array_keys($expected)) . '"'); - } - $this->patternFlags = ($this->caseinsensitive ? 'i' : '') - . ($this->unicode ? 'u' : ''); - $this->_retvalue = array('patterns' => $this->yystack[$this->yyidx + 0]->minor, 'pis' => $this->yystack[$this->yyidx + -1]->minor); - $this->_patternIndex = 1; - } -#line 1525 "Parser.php" -#line 638 "Parser.y" - function yy_r7(){ - $this->_retvalue = array(array('pi' => $this->yystack[$this->yyidx + -1]->minor, 'definition' => $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1530 "Parser.php" -#line 644 "Parser.y" - function yy_r9(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - $this->_retvalue[] = array('pi' => $this->yystack[$this->yyidx + -1]->minor, 'definition' => $this->yystack[$this->yyidx + 0]->minor); - } -#line 1536 "Parser.php" -#line 653 "Parser.y" - function yy_r11(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor => $this->yystack[$this->yyidx + 0]->minor); - // reset internal indicator of where we are in a pattern - $this->_patternIndex = 0; - } -#line 1543 "Parser.php" -#line 658 "Parser.y" - function yy_r12(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - if (isset($this->_retvalue[$this->yystack[$this->yyidx + -1]->minor])) { - throw new Exception('Pattern "' . $this->yystack[$this->yyidx + -1]->minor . '" is already defined as "' . - $this->_retvalue[$this->yystack[$this->yyidx + -1]->minor] . '", cannot redefine as "' . $this->yystack[$this->yyidx + 0]->minor->string . '"'); - } - $this->_retvalue[$this->yystack[$this->yyidx + -1]->minor] = $this->yystack[$this->yyidx + 0]->minor; - // reset internal indicator of where we are in a pattern declaration - $this->_patternIndex = 0; - } -#line 1555 "Parser.php" -#line 669 "Parser.y" - function yy_r13(){ - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => '')); - } -#line 1560 "Parser.php" -#line 672 "Parser.y" - function yy_r14(){ - if ($this->yystack[$this->yyidx + -3]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . $this->yystack[$this->yyidx + -3]->minor . ').'); - } - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => $this->yystack[$this->yyidx + -2]->minor)); - } -#line 1569 "Parser.php" -#line 679 "Parser.y" - function yy_r15(){ - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => '')); - } -#line 1574 "Parser.php" -#line 682 "Parser.y" - function yy_r16(){ - if ($this->yystack[$this->yyidx + -4]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . $this->yystack[$this->yyidx + -4]->minor . ').'); - } - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => $this->yystack[$this->yyidx + -3]->minor)); - $this->_patternIndex = 1; - } -#line 1584 "Parser.php" -#line 690 "Parser.y" - function yy_r17(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => ''); - $this->_patternIndex = 1; - } -#line 1591 "Parser.php" -#line 695 "Parser.y" - function yy_r18(){ - if ($this->yystack[$this->yyidx + -3]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . $this->yystack[$this->yyidx + -3]->minor . ').'); - } - $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => $this->yystack[$this->yyidx + -2]->minor); - } -#line 1601 "Parser.php" -#line 703 "Parser.y" - function yy_r19(){ - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => ''); - } -#line 1607 "Parser.php" -#line 707 "Parser.y" - function yy_r20(){ - if ($this->yystack[$this->yyidx + -4]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . $this->yystack[$this->yyidx + -4]->minor . ').'); - } - $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => $this->yystack[$this->yyidx + -3]->minor); - } -#line 1617 "Parser.php" -#line 716 "Parser.y" - function yy_r21(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - $this->_patternIndex = 1; - } -#line 1623 "Parser.php" -#line 721 "Parser.y" - function yy_r22(){ - $name = $this->yystack[$this->yyidx + -1]->minor[1]; - $this->yystack[$this->yyidx + -1]->minor = $this->yystack[$this->yyidx + -1]->minor[0]; - $this->yystack[$this->yyidx + -1]->minor = $this->_validatePattern($this->yystack[$this->yyidx + -1]->minor); - $this->_patternIndex += $this->yystack[$this->yyidx + -1]->minor['subpatterns'] + 1; - if (@preg_match('/' . str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor['pattern']) . '/', '')) { - $this->error('Rule "' . $name . '" can match the empty string, this will break lexing'); - } - $this->_retvalue = array(array('pattern' => str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor->string), 'code' => $this->yystack[$this->yyidx + 0]->minor, 'subpatterns' => $this->yystack[$this->yyidx + -1]->minor['subpatterns'])); - } -#line 1635 "Parser.php" -#line 731 "Parser.y" - function yy_r23(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - $name = $this->yystack[$this->yyidx + -1]->minor[1]; - $this->yystack[$this->yyidx + -1]->minor = $this->yystack[$this->yyidx + -1]->minor[0]; - $this->yystack[$this->yyidx + -1]->minor = $this->_validatePattern($this->yystack[$this->yyidx + -1]->minor); - $this->_patternIndex += $this->yystack[$this->yyidx + -1]->minor['subpatterns'] + 1; - if (@preg_match('/' . str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor['pattern']) . '/', '')) { - $this->error('Rule "' . $name . '" can match the empty string, this will break lexing'); - } - $this->_retvalue[] = array('pattern' => str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor->string), 'code' => $this->yystack[$this->yyidx + 0]->minor, 'subpatterns' => $this->yystack[$this->yyidx + -1]->minor['subpatterns']); - } -#line 1648 "Parser.php" -#line 743 "Parser.y" - function yy_r24(){ - $this->_retvalue = array(preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'), $this->yystack[$this->yyidx + 0]->minor); - } -#line 1653 "Parser.php" -#line 746 "Parser.y" - function yy_r25(){ - $this->_retvalue = array($this->makeCaseInsensitve(preg_quote($this->yystack[$this->yyidx + 0]->minor, '/')), $this->yystack[$this->yyidx + 0]->minor); - } -#line 1658 "Parser.php" -#line 749 "Parser.y" - function yy_r26(){ - if (!isset($this->patterns[$this->yystack[$this->yyidx + 0]->minor])) { - $this->error('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - throw new Exception('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - } - $this->_retvalue = array($this->patterns[$this->yystack[$this->yyidx + 0]->minor], $this->yystack[$this->yyidx + 0]->minor); - } -#line 1667 "Parser.php" -#line 756 "Parser.y" - function yy_r27(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor[0] . preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'), $this->yystack[$this->yyidx + -1]->minor[1] . ' ' . $this->yystack[$this->yyidx + 0]->minor); - } -#line 1672 "Parser.php" -#line 759 "Parser.y" - function yy_r28(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor[0] . $this->makeCaseInsensitve(preg_quote($this->yystack[$this->yyidx + 0]->minor, '/')), $this->yystack[$this->yyidx + -1]->minor[1] . ' ' . $this->yystack[$this->yyidx + 0]->minor); - } -#line 1677 "Parser.php" -#line 762 "Parser.y" - function yy_r29(){ - if (!isset($this->patterns[$this->yystack[$this->yyidx + 0]->minor])) { - $this->error('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - throw new Exception('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - } - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor[0] . $this->patterns[$this->yystack[$this->yyidx + 0]->minor], $this->yystack[$this->yyidx + -1]->minor[1] . ' ' . $this->yystack[$this->yyidx + 0]->minor); - } -#line 1686 "Parser.php" -#line 770 "Parser.y" - function yy_r30(){ - $this->_retvalue = preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'); - } -#line 1691 "Parser.php" -#line 773 "Parser.y" - function yy_r31(){ - $this->_retvalue = $this->makeCaseInsensitve(preg_quote($this->yystack[$this->yyidx + 0]->minor, '/')); - } -#line 1696 "Parser.php" -#line 776 "Parser.y" - function yy_r32(){ - // increment internal sub-pattern counter - // adjust back-references in pattern based on previous pattern - $test = $this->_validatePattern($this->yystack[$this->yyidx + 0]->minor, true); - $this->_patternIndex += $test['subpatterns']; - $this->_retvalue = $test['pattern']; - } -#line 1705 "Parser.php" -#line 783 "Parser.y" - function yy_r33(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'); - } -#line 1710 "Parser.php" -#line 786 "Parser.y" - function yy_r34(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->makeCaseInsensitve(preg_quote($this->yystack[$this->yyidx + 0]->minor, '/')); - } -#line 1715 "Parser.php" -#line 789 "Parser.y" - function yy_r35(){ - // increment internal sub-pattern counter - // adjust back-references in pattern based on previous pattern - $test = $this->_validatePattern($this->yystack[$this->yyidx + 0]->minor, true); - $this->_patternIndex += $test['subpatterns']; - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $test['pattern']; - } -#line 1724 "Parser.php" - - /** - * placeholder for the left hand side in a reduce operation. - * - * For a parser with a rule like this: - * <pre> - * rule(A) ::= B. { A = 1; } - * </pre> - * - * The parser will translate to something like: - * - * <code> - * function yy_r0(){$this->_retvalue = 1;} - * </code> - */ - private $_retvalue; - - /** - * Perform a reduce action and the shift that must immediately - * follow the reduce. - * - * For a rule such as: - * - * <pre> - * A ::= B blah C. { dosomething(); } - * </pre> - * - * This function will first call the action, if any, ("dosomething();" in our - * example), and then it will pop three states from the stack, - * one for each entry on the right-hand side of the expression - * (B, blah, and C in our example rule), and then push the result of the action - * back on to the stack with the resulting state reduced to (as described in the .out - * file) - * @param int Number of the rule by which to reduce - */ - function yy_reduce($yyruleno) - { - //int $yygoto; /* The next state */ - //int $yyact; /* The next action */ - //mixed $yygotominor; /* The LHS of the rule reduced */ - //PHP_LexerGenerator_ParseryyStackEntry $yymsp; /* The top of the parser's stack */ - //int $yysize; /* Amount to pop the stack */ - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - /* If we are not debugging and the reduce action popped at least - ** one element off the stack, then we can push the new element back - ** onto the stack here, and skip the stack overflow test in yy_shift(). - ** That gives a significant speed improvement. */ - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - /** - * The following code executes when the parse fails - * - * Code from %parse_fail is inserted here - */ - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser fails */ - } - - /** - * The following code executes when a syntax error first occurs. - * - * %syntax_error code is inserted here - * @param int The major type of the error token - * @param mixed The minor type of the error token - */ - function yy_syntax_error($yymajor, $TOKEN) - { -#line 70 "Parser.y" - - echo "Syntax Error on line " . $this->lex->line . ": token '" . - $this->lex->value . "' while parsing rule:"; - foreach ($this->yystack as $entry) { - echo $this->tokenName($entry->major) . ' '; - } - foreach ($this->yy_get_expected_tokens($yymajor) as $token) { - $expect[] = self::$yyTokenName[$token]; - } - throw new Exception('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN - . '), expected one of: ' . implode(',', $expect)); -#line 1849 "Parser.php" - } - - /** - * The following is executed when the parser accepts - * - * %parse_accept code is inserted here - */ - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser accepts */ - } - - /** - * The main parser program. - * - * The first argument is the major token number. The second is - * the token value string as scanned from the input. - * - * @param int the token number - * @param mixed the token value - * @param mixed any extra arguments that should be passed to handlers - */ - function doParse($yymajor, $yytokenvalue) - { -// $yyact; /* The parser action. */ -// $yyendofinput; /* True if we are at the end of input */ - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - /* (re)initialize the parser, if necessary */ - if ($this->yyidx === null || $this->yyidx < 0) { - /* if ($yymajor == 0) return; // not sure why this was here... */ - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - /* A syntax error has occurred. - ** The response to an error depends upon whether or not the - ** grammar defines an error token "ERROR". - ** - ** This is what we do if the grammar does define ERROR: - ** - ** * Call the %syntax_error function. - ** - ** * Begin popping the stack until we enter a state where - ** it is legal to shift the error symbol, then shift - ** the error symbol. - ** - ** * Set the error count to three. - ** - ** * Begin accepting and shifting new tokens. No new error - ** processing will occur until three tokens have been - ** shifted successfully. - ** - */ - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - /* YYERRORSYMBOL is not defined */ - /* This is what we do if the grammar does not define ERROR: - ** - ** * Report an error message, and throw away the input token. - ** - ** * If the input token is $, then fail the parse. - ** - ** As before, subsequent error messages are suppressed until - ** three input tokens have been successfully shifted. - */ - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Parser.y
Deleted
@@ -1,795 +0,0 @@ -%name PHP_LexerGenerator_Parser -%declare_class {class PHP_LexerGenerator_Parser} -%include { -/* ?><?php {//*/ -/** - * PHP_LexerGenerator, a php 5 lexer generator. - * - * This lexer generator translates a file in a format similar to - * re2c ({@link http://re2c.org}) and translates it into a PHP 5-based lexer - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_LexerGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Parser.y 246683 2007-11-22 04:43:52Z instance $ - * @since File available since Release 0.1.0 - */ -/** - * For regular expression validation - */ -require_once 'PHP/LexerGenerator/Regex/Lexer.php'; -require_once 'PHP/LexerGenerator/Regex/Parser.php'; -require_once 'PHP/LexerGenerator/Exception.php'; -/** - * Token parser for plex files. - * - * This parser converts tokens pulled from {@link PHP_LexerGenerator_Lexer} - * into abstract patterns and rules, then creates the output file - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version @package_version@ - * @since Class available since Release 0.1.0 - */ -} -%syntax_error { - echo "Syntax Error on line " . $this->lex->line . ": token '" . - $this->lex->value . "' while parsing rule:"; - foreach ($this->yystack as $entry) { - echo $this->tokenName($entry->major) . ' '; - } - foreach ($this->yy_get_expected_tokens($yymajor) as $token) { - $expect[] = self::$yyTokenName[$token]; - } - throw new Exception('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN - . '), expected one of: ' . implode(',', $expect)); -} -%include_class { - private $patterns; - private $out; - private $lex; - private $input; - private $counter; - private $token; - private $value; - private $line; - private $matchlongest; - private $_regexLexer; - private $_regexParser; - private $_patternIndex = 0; - private $_outRuleIndex = 1; - private $caseinsensitive; - private $patternFlags; - private $unicode; - - public $transTable = array( - 1 => self::PHPCODE, - 2 => self::COMMENTSTART, - 3 => self::COMMENTEND, - 4 => self::QUOTE, - 5 => self::SINGLEQUOTE, - 6 => self::PATTERN, - 7 => self::CODE, - 8 => self::SUBPATTERN, - 9 => self::PI, - ); - - function __construct($outfile, $lex) - { - $this->out = fopen($outfile, 'wb'); - if (!$this->out) { - throw new Exception('unable to open lexer output file "' . $outfile . '"'); - } - $this->lex = $lex; - $this->_regexLexer = new PHP_LexerGenerator_Regex_Lexer(''); - $this->_regexParser = new PHP_LexerGenerator_Regex_Parser($this->_regexLexer); - } - - function doLongestMatch($rules, $statename, $ruleindex) - { - fwrite($this->out, ' - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - do { - $rules = array('); - foreach ($rules as $rule) { - fwrite($this->out, ' - \'/\G' . $rule['pattern'] . '/' . $this->patternFlags . ' \','); - } - fwrite($this->out, ' - ); - $match = false; - foreach ($rules as $index => $rule) { - if (preg_match($rule, substr(' . $this->input . ', ' . - $this->counter . '), $yymatches)) { - if ($match) { - if (strlen($yymatches[0]) > strlen($match[0][0])) { - $match = array($yymatches, $index); // matches, token - } - } else { - $match = array($yymatches, $index); - } - } - } - if (!$match) { - throw new Exception(\'Unexpected input at line \' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - ' . $this->token . ' = $match[1]; - ' . $this->value . ' = $match[0][0]; - $yysubmatches = $match[0]; - array_shift($yysubmatches); - if (!$yysubmatches) { - $yysubmatches = array(); - } - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - if ($r === null) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else {'); - fwrite($this->out, ' - $yy_yymore_patterns = array_slice($rules, $this->token, true); - // yymore is needed - do { - if (!isset($yy_yymore_patterns[' . $this->token . '])) { - throw new Exception(\'cannot do yymore for the last token\'); - } - $match = false; - foreach ($yy_yymore_patterns[' . $this->token . '] as $index => $rule) { - if (preg_match(\'/\' . $rule . \'/' . $this->patternFlags . '\', - ' . $this->input . ', $yymatches, null, ' . $this->counter . ')) { - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - if ($match) { - if (strlen($yymatches[0]) > strlen($match[0][0])) { - $match = array($yymatches, $index); // matches, token - } - } else { - $match = array($yymatches, $index); - } - } - } - if (!$match) { - throw new Exception(\'Unexpected input at line \' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - ' . $this->token . ' = $match[1]; - ' . $this->value . ' = $match[0][0]; - $yysubmatches = $match[0]; - array_shift($yysubmatches); - if (!$yysubmatches) { - $yysubmatches = array(); - } - ' . $this->line . ' = substr_count(' . $this->value . ', "\n"); - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}(); - } while ($r !== null || !$r); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } else { - // accept - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - return true; - } - } - } while (true); -'); - } - - function doFirstMatch($rules, $statename, $ruleindex) - { - $patterns = array(); - $pattern = '/'; - $ruleMap = array(); - $tokenindex = array(); - $actualindex = 1; - $i = 0; - foreach ($rules as $rule) { - $ruleMap[$i++] = $actualindex; - $tokenindex[$actualindex] = $rule['subpatterns']; - $actualindex += $rule['subpatterns'] + 1; - $patterns[] = '\G(' . $rule['pattern'] . ')'; - } - // Re-index tokencount from zero. - $tokencount = array_values($tokenindex); - $tokenindex = var_export($tokenindex, true); - $tokenindex = explode("\n", $tokenindex); - // indent for prettiness - $tokenindex = implode("\n ", $tokenindex); - $pattern .= implode('|', $patterns); - $pattern .= '/' . $this->patternFlags; - fwrite($this->out, ' - $tokenMap = ' . $tokenindex . '; - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - '); - fwrite($this->out, '$yy_global_pattern = \'' . - $pattern . '\';' . "\n"); - fwrite($this->out, ' - do { - if (preg_match($yy_global_pattern,' . $this->input . ', $yymatches, null, ' . - $this->counter . - ')) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception(\'Error: lexing failed because a rule matched\' . - \' an empty string. Input "\' . substr(' . $this->input . ', - ' . $this->counter . ', 5) . \'... state ' . $statename . '\'); - } - next($yymatches); // skip global match - ' . $this->token . ' = key($yymatches); // token number - if ($tokenMap[' . $this->token . ']) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, ' . $this->token . ' + 1, - $tokenMap[' . $this->token . ']); - } else { - $yysubmatches = array(); - } - ' . $this->value . ' = current($yymatches); // token value - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - if ($r === null) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else {'); - fwrite($this->out, ' - $yy_yymore_patterns = array(' . "\n"); - $extra = 0; - for($i = 0; count($patterns); $i++) { - unset($patterns[$i]); - $extra += $tokencount[0]; - array_shift($tokencount); - fwrite($this->out, ' ' . $ruleMap[$i] . ' => array(' . $extra . ', "' . - implode('|', $patterns) . "\"),\n"); - } - fwrite($this->out, ' );' . "\n"); - fwrite($this->out, ' - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[' . $this->token . '][1])) { - throw new Exception(\'cannot do yymore for the last token\'); - } - $yysubmatches = array(); - if (preg_match(\'/\' . $yy_yymore_patterns[' . $this->token . '][1] . \'/' . $this->patternFlags . '\', - ' . $this->input . ', $yymatches, null, ' . $this->counter .')) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - next($yymatches); // skip global match - ' . $this->token . ' += key($yymatches) + $yy_yymore_patterns[' . $this->token . '][0]; // token number - ' . $this->value . ' = current($yymatches); // token value - ' . $this->line . ' = substr_count(' . $this->value . ', "\n"); - if ($tokenMap[' . $this->token . ']) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, ' . $this->token . ' + 1, - $tokenMap[' . $this->token . ']); - } else { - $yysubmatches = array(); - } - } - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - ' . $this->counter . ' += strlen(' . $this->value . '); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - return true; - } - } - } else { - throw new Exception(\'Unexpected input at line\' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - break; - } while (true); -'); - } - - function makeCaseInsensitve($string) - { - return preg_replace('/[a-z]/ie', "'[\\0'.strtoupper('\\0').']'", strtolower($string)); - } - - function outputRules($rules, $statename) - { - if (!$statename) { - $statename = $this -> _outRuleIndex; - } - fwrite($this->out, ' - function yylex' . $this -> _outRuleIndex . '() - {'); - if ($this->matchlongest) { - $ruleMap = array(); - foreach ($rules as $i => $rule) { - $ruleMap[$i] = $i; - } - $this->doLongestMatch($rules, $statename, $this -> _outRuleIndex); - } else { - $ruleMap = array(); - $actualindex = 1; - $i = 0; - foreach ($rules as $rule) { - $ruleMap[$i++] = $actualindex; - $actualindex += $rule['subpatterns'] + 1; - } - $this->doFirstMatch($rules, $statename, $this -> _outRuleIndex); - } - fwrite($this->out, ' - } // end function - -'); - if (is_string($statename)) { - fwrite($this->out, ' - const ' . $statename . ' = ' . $this -> _outRuleIndex . '; -'); - } - foreach ($rules as $i => $rule) { - fwrite($this->out, ' function yy_r' . $this -> _outRuleIndex . '_' . $ruleMap[$i] . '($yy_subpatterns) - { -' . $rule['code'] . -' } -'); - } - $this -> _outRuleIndex++; // for next set of rules - } - - function error($msg) - { - echo 'Error on line ' . $this->lex->line . ': ' , $msg; - } - - function _validatePattern($pattern, $update = false) - { - $this->_regexLexer->reset($pattern, $this->lex->line); - $this->_regexParser->reset($this->_patternIndex, $update); - try { - while ($this->_regexLexer->yylex()) { - $this->_regexParser->doParse( - $this->_regexLexer->token, $this->_regexLexer->value); - } - $this->_regexParser->doParse(0, 0); - } catch (PHP_LexerGenerator_Exception $e) { - $this->error($e->getMessage()); - throw new PHP_LexerGenerator_Exception('Invalid pattern "' . $pattern . '"'); - } - return $this->_regexParser->result; - } -} - -start ::= lexfile. - -lexfile ::= declare rules(B). { - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - foreach (B as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } -} -lexfile ::= declare(D) PHPCODE(B) rules(C). { - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - if (strlen(B)) { - fwrite($this->out, B); - } - foreach (C as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } -} -lexfile ::= PHPCODE(B) declare(D) rules(C). { - if (strlen(B)) { - fwrite($this->out, B); - } - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - foreach (C as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } -} -lexfile ::= PHPCODE(A) declare(D) PHPCODE(B) rules(C). { - if (strlen(A)) { - fwrite($this->out, A); - } - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - if (strlen(B)) { - fwrite($this->out, B); - } - foreach (C as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } -} - -declare(A) ::= COMMENTSTART declarations(B) COMMENTEND. { - A = B; - $this->patterns = B['patterns']; - $this->_patternIndex = 1; -} - -declarations(A) ::= processing_instructions(B) pattern_declarations(C). { - $expected = array( - 'counter' => true, - 'input' => true, - 'token' => true, - 'value' => true, - 'line' => true, - ); - foreach (B as $pi) { - if (isset($expected[$pi['pi']])) { - unset($expected[$pi['pi']]); - continue; - } - if (count($expected)) { - throw new Exception('Processing Instructions "' . - implode(', ', array_keys($expected)) . '" must be defined'); - } - } - $expected = array( - 'caseinsensitive' => true, - 'counter' => true, - 'input' => true, - 'token' => true, - 'value' => true, - 'line' => true, - 'matchlongest' => true, - 'unicode' => true, - ); - foreach (B as $pi) { - if (isset($expected[$pi['pi']])) { - $this->{$pi['pi']} = $pi['definition']; - if ($pi['pi'] == 'matchlongest') { - $this->matchlongest = true; - } - continue; - } - $this->error('Unknown processing instruction %' . $pi['pi'] . - ', should be one of "' . implode(', ', array_keys($expected)) . '"'); - } - $this->patternFlags = ($this->caseinsensitive ? 'i' : '') - . ($this->unicode ? 'u' : ''); - A = array('patterns' => C, 'pis' => B); - $this->_patternIndex = 1; -} - -processing_instructions(A) ::= PI(B) SUBPATTERN(C). { - A = array(array('pi' => B, 'definition' => C)); -} -processing_instructions(A) ::= PI(B) CODE(C). { - A = array(array('pi' => B, 'definition' => C)); -} -processing_instructions(A) ::= processing_instructions(P) PI(B) SUBPATTERN(C). { - A = P; - A[] = array('pi' => B, 'definition' => C); -} -processing_instructions(A) ::= processing_instructions(P) PI(B) CODE(C). { - A = P; - A[] = array('pi' => B, 'definition' => C); -} - -pattern_declarations(A) ::= PATTERN(B) subpattern(C). { - A = array(B => C); - // reset internal indicator of where we are in a pattern - $this->_patternIndex = 0; -} -pattern_declarations(A) ::= pattern_declarations(B) PATTERN(C) subpattern(D). { - A = B; - if (isset(A[C])) { - throw new Exception('Pattern "' . C . '" is already defined as "' . - A[C] . '", cannot redefine as "' . D->string . '"'); - } - A[C] = D; - // reset internal indicator of where we are in a pattern declaration - $this->_patternIndex = 0; -} - -rules(A) ::= COMMENTSTART rule(B) COMMENTEND. { - A = array(array('rules' => B, 'code' => '', 'statename' => '')); -} -rules(A) ::= COMMENTSTART PI(P) SUBPATTERN(S) rule(B) COMMENTEND. { - if (P != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . P . ').'); - } - A = array(array('rules' => B, 'code' => '', 'statename' => S)); -} -rules(A) ::= COMMENTSTART rule(B) COMMENTEND PHPCODE(C). { - A = array(array('rules' => B, 'code' => C, 'statename' => '')); -} -rules(A) ::= COMMENTSTART PI(P) SUBPATTERN(S) rule(B) COMMENTEND PHPCODE(C). { - if (P != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . P . ').'); - } - A = array(array('rules' => B, 'code' => C, 'statename' => S)); - $this->_patternIndex = 1; -} -rules(A) ::= reset_rules(R) rule(B) COMMENTEND. { - A = R; - A[] = array('rules' => B, 'code' => '', 'statename' => ''); - $this->_patternIndex = 1; -} -rules(A) ::= reset_rules(R) PI(P) SUBPATTERN(S) rule(B) COMMENTEND. { - if (P != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . P . ').'); - } - A = R; - A[] = array('rules' => B, 'code' => '', 'statename' => S); -} -rules(A) ::= reset_rules(R) rule(B) COMMENTEND PHPCODE(C). { - A = R; - A[] = array('rules' => B, 'code' => C, 'statename' => ''); -} -rules(A) ::= reset_rules(R) PI(P) SUBPATTERN(S) rule(B) COMMENTEND PHPCODE(C). { - if (P != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections (found ' . P . ').'); - } - A = R; - A[] = array('rules' => B, 'code' => C, 'statename' => S); -} - -reset_rules(A) ::= rules(R) COMMENTSTART. { - A = R; - $this->_patternIndex = 1; -} - -rule(A) ::= rule_subpattern(B) CODE(C). { - $name = B[1]; - B = B[0]; - B = $this->_validatePattern(B); - $this->_patternIndex += B['subpatterns'] + 1; - if (@preg_match('/' . str_replace('/', '\\/', B['pattern']) . '/', '')) { - $this->error('Rule "' . $name . '" can match the empty string, this will break lexing'); - } - A = array(array('pattern' => str_replace('/', '\\/', B->string), 'code' => C, 'subpatterns' => B['subpatterns'])); -} -rule(A) ::= rule(R) rule_subpattern(B) CODE(C).{ - A = R; - $name = B[1]; - B = B[0]; - B = $this->_validatePattern(B); - $this->_patternIndex += B['subpatterns'] + 1; - if (@preg_match('/' . str_replace('/', '\\/', B['pattern']) . '/', '')) { - $this->error('Rule "' . $name . '" can match the empty string, this will break lexing'); - } - A[] = array('pattern' => str_replace('/', '\\/', B->string), 'code' => C, 'subpatterns' => B['subpatterns']); -} - -rule_subpattern(A) ::= QUOTE(B). { - A = array(preg_quote(B, '/'), B); -} -rule_subpattern(A) ::= SINGLEQUOTE(B). { - A = array($this->makeCaseInsensitve(preg_quote(B, '/')), B); -} -rule_subpattern(A) ::= SUBPATTERN(B). { - if (!isset($this->patterns[B])) { - $this->error('Undefined pattern "' . B . '" used in rules'); - throw new Exception('Undefined pattern "' . B . '" used in rules'); - } - A = array($this->patterns[B], B); -} -rule_subpattern(A) ::= rule_subpattern(B) QUOTE(C). { - A = array(B[0] . preg_quote(C, '/'), B[1] . ' ' . C); -} -rule_subpattern(A) ::= rule_subpattern(B) SINGLEQUOTE(C). { - A = array(B[0] . $this->makeCaseInsensitve(preg_quote(C, '/')), B[1] . ' ' . C); -} -rule_subpattern(A) ::= rule_subpattern(B) SUBPATTERN(C). { - if (!isset($this->patterns[C])) { - $this->error('Undefined pattern "' . C . '" used in rules'); - throw new Exception('Undefined pattern "' . C . '" used in rules'); - } - A = array(B[0] . $this->patterns[C], B[1] . ' ' . C); -} - -subpattern(A) ::= QUOTE(B). { - A = preg_quote(B, '/'); -} -subpattern(A) ::= SINGLEQUOTE(B). { - A = $this->makeCaseInsensitve(preg_quote(B, '/')); -} -subpattern(A) ::= SUBPATTERN(B). { - // increment internal sub-pattern counter - // adjust back-references in pattern based on previous pattern - $test = $this->_validatePattern(B, true); - $this->_patternIndex += $test['subpatterns']; - A = $test['pattern']; -} -subpattern(A) ::= subpattern(B) QUOTE(C). { - A = B . preg_quote(C, '/'); -} -subpattern(A) ::= subpattern(B) SINGLEQUOTE(C). { - A = B . $this->makeCaseInsensitve(preg_quote(C, '/')); -} -subpattern(A) ::= subpattern(B) SUBPATTERN(C). { - // increment internal sub-pattern counter - // adjust back-references in pattern based on previous pattern - $test = $this->_validatePattern(C, true); - $this->_patternIndex += $test['subpatterns']; - A = B . $test['pattern']; -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/ParserOriginal.php
Deleted
@@ -1,1937 +0,0 @@ -<?php -/* Driver template for the PHP_PHP_LexerGenerator_ParserrGenerator parser generator. (PHP port of LEMON) -*/ - -/** - * This can be used to store both the string representation of - * a token, and any useful meta-data associated with the token. - * - * meta-data should be stored as an array - */ -class PHP_LexerGenerator_ParseryyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof PHP_LexerGenerator_ParseryyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof PHP_LexerGenerator_ParseryyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof PHP_LexerGenerator_ParseryyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof PHP_LexerGenerator_ParseryyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -/** The following structure represents a single element of the - * parser's stack. Information stored includes: - * - * + The state number for the parser at this level of the stack. - * - * + The value of the token stored at this level of the stack. - * (In other words, the "major" token.) - * - * + The semantic value stored at this level of the stack. This is - * the information used by the action routines in the grammar. - * It is sometimes called the "minor" token. - */ -class PHP_LexerGenerator_ParseryyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - -// code external to the class is included here -#line 3 "Parser.y" - -/* ?><?php {//*/ -/** - * PHP_LexerGenerator, a php 5 lexer generator. - * - * This lexer generator translates a file in a format similar to - * re2c ({@link http://re2c.org}) and translates it into a PHP 5-based lexer - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_LexerGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Parser.php,v 1.9 2007/08/18 23:50:28 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * For regular expression validation - */ -require_once './LexerGenerator/Regex/Lexer.php'; -require_once './LexerGenerator/Regex/Parser.php'; -require_once './LexerGenerator/Exception.php'; -/** - * Token parser for plex files. - * - * This parser converts tokens pulled from {@link PHP_LexerGenerator_Lexer} - * into abstract patterns and rules, then creates the output file - * @package PHP_LexerGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version 0.3.4 - * @since Class available since Release 0.1.0 - */ -#line 166 "Parser.php" - -// declare_class is output here -#line 2 "Parser.y" -class PHP_LexerGenerator_Parser#line 171 "Parser.php" -{ -/* First off, code is included which follows the "include_class" declaration -** in the input file. */ -#line 78 "Parser.y" - - private $patterns; - private $out; - private $lex; - private $input; - private $counter; - private $token; - private $value; - private $line; - private $matchlongest; - private $_regexLexer; - private $_regexParser; - private $_patternIndex = 0; - - public $transTable = array( - 1 => self::PHPCODE, - 2 => self::COMMENTSTART, - 3 => self::COMMENTEND, - 4 => self::QUOTE, - 5 => self::PATTERN, - 6 => self::CODE, - 7 => self::SUBPATTERN, - 8 => self::PI, - ); - - function __construct($outfile, $lex) - { - $this->out = fopen($outfile, 'wb'); - if (!$this->out) { - throw new Exception('unable to open lexer output file "' . $outfile . '"'); - } - $this->lex = $lex; - $this->_regexLexer = new PHP_LexerGenerator_Regex_Lexer(''); - $this->_regexParser = new PHP_LexerGenerator_Regex_Parser($this->_regexLexer); - } - - function doLongestMatch($rules, $statename, $ruleindex) - { - fwrite($this->out, ' - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - do { - $rules = array('); - foreach ($rules as $rule) { - fwrite($this->out, ' - \'/^' . $rule['pattern'] . '/\','); - } - fwrite($this->out, ' - ); - $match = false; - foreach ($rules as $index => $rule) { - if (preg_match($rule, substr(' . $this->input . ', ' . - $this->counter . '), $yymatches)) { - if ($match) { - if (strlen($yymatches[0]) > strlen($match[0][0])) { - $match = array($yymatches, $index); // matches, token - } - } else { - $match = array($yymatches, $index); - } - } - } - if (!$match) { - throw new Exception(\'Unexpected input at line\' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - ' . $this->token . ' = $match[1]; - ' . $this->value . ' = $match[0][0]; - $yysubmatches = $match[0]; - array_shift($yysubmatches); - if (!$yysubmatches) { - $yysubmatches = array(); - } - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - if ($r === null) { - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else {'); - fwrite($this->out, ' - $yy_yymore_patterns = array_slice($rules, $this->token, true); - // yymore is needed - do { - if (!isset($yy_yymore_patterns[' . $this->token . '])) { - throw new Exception(\'cannot do yymore for the last token\'); - } - $match = false; - foreach ($yy_yymore_patterns[' . $this->token . '] as $index => $rule) { - if (preg_match(\'/\' . $rule . \'/\', - substr(' . $this->input . ', ' . $this->counter . '), $yymatches)) { - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - if ($match) { - if (strlen($yymatches[0]) > strlen($match[0][0])) { - $match = array($yymatches, $index); // matches, token - } - } else { - $match = array($yymatches, $index); - } - } - } - if (!$match) { - throw new Exception(\'Unexpected input at line\' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - ' . $this->token . ' = $match[1]; - ' . $this->value . ' = $match[0][0]; - $yysubmatches = $match[0]; - array_shift($yysubmatches); - if (!$yysubmatches) { - $yysubmatches = array(); - } - ' . $this->line . ' = substr_count(' . $this->value . ', "\n"); - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}(); - } while ($r !== null || !$r); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } else { - // accept - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - return true; - } - } - } while (true); -'); - } - - function doFirstMatch($rules, $statename, $ruleindex) - { - $patterns = array(); - $pattern = '/'; - $ruleMap = array(); - $tokenindex = array(); - $actualindex = 1; - $i = 0; - foreach ($rules as $rule) { - $ruleMap[$i++] = $actualindex; - $tokenindex[$actualindex] = $rule['subpatterns']; - $actualindex += $rule['subpatterns'] + 1; - $patterns[] = '^(' . $rule['pattern'] . ')'; - } - $tokencount = $tokenindex; - $tokenindex = var_export($tokenindex, true); - $tokenindex = explode("\n", $tokenindex); - // indent for prettiness - $tokenindex = implode("\n ", $tokenindex); - $pattern .= implode('|', $patterns); - $pattern .= '/'; - fwrite($this->out, ' - $tokenMap = ' . $tokenindex . '; - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - '); - fwrite($this->out, '$yy_global_pattern = "' . - $pattern . '";' . "\n"); - fwrite($this->out, ' - do { - if (preg_match($yy_global_pattern, substr(' . $this->input . ', ' . - $this->counter . - '), $yymatches)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception(\'Error: lexing failed because a rule matched\' . - \'an empty string. Input "\' . substr(' . $this->input . ', - ' . $this->counter . ', 5) . \'... state ' . $statename . '\'); - } - next($yymatches); // skip global match - ' . $this->token . ' = key($yymatches); // token number - if ($tokenMap[' . $this->token . ']) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, ' . $this->token . ' + 1, - $tokenMap[' . $this->token . ']); - } else { - $yysubmatches = array(); - } - ' . $this->value . ' = current($yymatches); // token value - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - if ($r === null) { - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else {'); - fwrite($this->out, ' $yy_yymore_patterns = array(' . "\n"); - $extra = 0; - for($i = 0; count($patterns); $i++) { - unset($patterns[$i]); - $extra += $tokencount[0]; - array_shift($tokencount); - fwrite($this->out, ' ' . $ruleMap[$i] . ' => array(' . $extra . ', "' . - implode('|', $patterns) . "\"),\n"); - } - fwrite($this->out, ' );' . "\n"); - fwrite($this->out, ' - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[' . $this->token . '][1])) { - throw new Exception(\'cannot do yymore for the last token\'); - } - $yysubmatches = array(); - if (preg_match(\'/\' . $yy_yymore_patterns[' . $this->token . '][1] . \'/\', - substr(' . $this->input . ', ' . $this->counter . '), $yymatches)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, \'strlen\'); // remove empty sub-patterns - next($yymatches); // skip global match - ' . $this->token . ' += key($yymatches) + $yy_yymore_patterns[' . $this->token . '][0]; // token number - ' . $this->value . ' = current($yymatches); // token value - ' . $this->line . ' = substr_count(' . $this->value . ', "\n"); - if ($tokenMap[' . $this->token . ']) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, ' . $this->token . ' + 1, - $tokenMap[' . $this->token . ']); - } else { - $yysubmatches = array(); - } - } - $r = $this->{\'yy_r' . $ruleindex . '_\' . ' . $this->token . '}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - if (' . $this->counter . ' >= strlen(' . $this->input . ')) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - ' . $this->counter . ' += strlen($this->value); - ' . $this->line . ' += substr_count(' . $this->value . ', "\n"); - return true; - } - } - } else { - throw new Exception(\'Unexpected input at line\' . ' . $this->line . ' . - \': \' . ' . $this->input . '[' . $this->counter . ']); - } - break; - } while (true); -'); - } - - function outputRules($rules, $statename) - { - static $ruleindex = 1; - if (!$statename) { - $statename = $ruleindex; - } - fwrite($this->out, ' - function yylex' . $ruleindex . '() - {'); - if ($this->matchlongest) { - $ruleMap = array(); - foreach ($rules as $i => $rule) { - $ruleMap[$i] = $i; - } - $this->doLongestMatch($rules, $statename, $ruleindex); - } else { - $ruleMap = array(); - $actualindex = 1; - $i = 0; - foreach ($rules as $rule) { - $ruleMap[$i++] = $actualindex; - $actualindex += $rule['subpatterns'] + 1; - } - $this->doFirstMatch($rules, $statename, $ruleindex); - } - fwrite($this->out, ' - } // end function - -'); - if (is_string($statename)) { - fwrite($this->out, ' - const ' . $statename . ' = ' . $ruleindex . '; -'); - } - foreach ($rules as $i => $rule) { - fwrite($this->out, ' function yy_r' . $ruleindex . '_' . $ruleMap[$i] . '($yy_subpatterns) - { -' . $rule['code'] . -' } -'); - } - $ruleindex++; // for next set of rules - } - - function error($msg) - { - echo 'Error on line ' . $this->lex->line . ': ' , $msg; - } - - function _validatePattern($pattern, $update = false) - { - $this->_regexLexer->reset($pattern, $this->lex->line); - $this->_regexParser->reset($this->_patternIndex, $update); - try { - while ($this->_regexLexer->yylex()) { - $this->_regexParser->doParse( - $this->_regexLexer->token, $this->_regexLexer->value); - } - $this->_regexParser->doParse(0, 0); - } catch (PHP_LexerGenerator_Exception $e) { - $this->error($e->getMessage()); - throw new PHP_LexerGenerator_Exception('Invalid pattern "' . $pattern . '"'); - } - return $this->_regexParser->result; - } -#line 518 "Parser.php" - -/* Next is all token values, as class constants -*/ -/* -** These constants (all generated automatically by the parser generator) -** specify the various kinds of tokens (terminals) that the parser -** understands. -** -** Each symbol here is a terminal symbol in the grammar. -*/ - const PHPCODE = 1; - const COMMENTSTART = 2; - const COMMENTEND = 3; - const PI = 4; - const SUBPATTERN = 5; - const CODE = 6; - const PATTERN = 7; - const QUOTE = 8; - const YY_NO_ACTION = 91; - const YY_ACCEPT_ACTION = 90; - const YY_ERROR_ACTION = 89; - -/* Next are that tables used to determine what action to take based on the -** current state and lookahead token. These tables are used to implement -** functions that take a state number and lookahead value and return an -** action integer. -** -** Suppose the action integer is N. Then the action is determined as -** follows -** -** 0 <= N < self::YYNSTATE Shift N. That is, -** push the lookahead -** token onto the stack -** and goto state N. -** -** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE. -** -** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred. -** -** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its -** input. (and concludes parsing) -** -** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused -** slots in the yy_action[] table. -** -** The action table is constructed as a single large static array $yy_action. -** Given state S and lookahead X, the action is computed as -** -** self::$yy_action[self::$yy_shift_ofst[S] + X ] -** -** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value -** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if -** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that -** the action is not in the table and that self::$yy_default[S] should be used instead. -** -** The formula above is for computing the action when the lookahead is -** a terminal symbol. If the lookahead is a non-terminal (as occurs after -** a reduce action) then the static $yy_reduce_ofst array is used in place of -** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of -** self::YY_SHIFT_USE_DFLT. -** -** The following are the tables generated in this section: -** -** self::$yy_action A single table containing all actions. -** self::$yy_lookahead A table containing the lookahead for each entry in -** yy_action. Used to detect hash collisions. -** self::$yy_shift_ofst For each state, the offset into self::$yy_action for -** shifting terminals. -** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for -** shifting non-terminals after a reduce. -** self::$yy_default Default action for each state. -*/ - const YY_SZ_ACTTAB = 80; -static public $yy_action = array( - /* 0 */ 35, 24, 50, 50, 48, 51, 51, 54, 47, 43, - /* 10 */ 53, 54, 45, 31, 53, 32, 30, 50, 50, 1, - /* 20 */ 51, 51, 34, 50, 17, 8, 51, 90, 52, 6, - /* 30 */ 3, 29, 50, 50, 25, 51, 51, 11, 38, 18, - /* 40 */ 1, 41, 42, 39, 10, 36, 18, 12, 37, 18, - /* 50 */ 20, 7, 2, 16, 13, 15, 18, 27, 9, 2, - /* 60 */ 5, 28, 14, 1, 44, 40, 33, 49, 56, 46, - /* 70 */ 26, 19, 1, 55, 2, 21, 4, 23, 22, 8, - ); - static public $yy_lookahead = array( - /* 0 */ 3, 3, 5, 5, 1, 8, 8, 5, 6, 2, - /* 10 */ 8, 5, 6, 13, 8, 3, 3, 5, 5, 19, - /* 20 */ 8, 8, 4, 5, 1, 2, 8, 10, 11, 12, - /* 30 */ 5, 4, 5, 5, 13, 8, 8, 18, 5, 20, - /* 40 */ 19, 8, 5, 6, 18, 5, 20, 18, 8, 20, - /* 50 */ 4, 1, 2, 7, 18, 7, 20, 13, 1, 2, - /* 60 */ 5, 14, 15, 19, 5, 6, 13, 1, 1, 1, - /* 70 */ 16, 20, 19, 3, 2, 17, 12, 4, 17, 2, -); - const YY_SHIFT_USE_DFLT = -4; - const YY_SHIFT_MAX = 35; - static public $yy_shift_ofst = array( - /* 0 */ 23, 27, 18, 28, 50, 28, 57, 72, 73, 72, - /* 10 */ 13, 12, -3, -2, 46, 40, 40, 77, 2, 6, - /* 20 */ 59, 33, 33, 37, 3, 7, 48, 7, 70, 55, - /* 30 */ 68, 7, 67, 7, 25, 66, -); - const YY_REDUCE_USE_DFLT = -1; - const YY_REDUCE_MAX = 17; - static public $yy_reduce_ofst = array( - /* 0 */ 17, 29, 19, 26, 21, 36, 53, 44, 47, 0, - /* 10 */ 51, 51, 51, 51, 54, 58, 61, 64, -); - static public $yyExpectedTokens = array( - /* 0 */ array(1, 2, ), - /* 1 */ array(4, 5, 8, ), - /* 2 */ array(4, 5, 8, ), - /* 3 */ array(5, 8, ), - /* 4 */ array(1, 2, ), - /* 5 */ array(5, 8, ), - /* 6 */ array(1, 2, ), - /* 7 */ array(2, ), - /* 8 */ array(4, ), - /* 9 */ array(2, ), - /* 10 */ array(3, 5, 8, ), - /* 11 */ array(3, 5, 8, ), - /* 12 */ array(3, 5, 8, ), - /* 13 */ array(3, 5, 8, ), - /* 14 */ array(4, 7, ), - /* 15 */ array(5, 8, ), - /* 16 */ array(5, 8, ), - /* 17 */ array(2, ), - /* 18 */ array(5, 6, 8, ), - /* 19 */ array(5, 6, 8, ), - /* 20 */ array(5, 6, ), - /* 21 */ array(5, 8, ), - /* 22 */ array(5, 8, ), - /* 23 */ array(5, 6, ), - /* 24 */ array(1, ), - /* 25 */ array(2, ), - /* 26 */ array(7, ), - /* 27 */ array(2, ), - /* 28 */ array(3, ), - /* 29 */ array(5, ), - /* 30 */ array(1, ), - /* 31 */ array(2, ), - /* 32 */ array(1, ), - /* 33 */ array(2, ), - /* 34 */ array(5, ), - /* 35 */ array(1, ), - /* 36 */ array(), - /* 37 */ array(), - /* 38 */ array(), - /* 39 */ array(), - /* 40 */ array(), - /* 41 */ array(), - /* 42 */ array(), - /* 43 */ array(), - /* 44 */ array(), - /* 45 */ array(), - /* 46 */ array(), - /* 47 */ array(), - /* 48 */ array(), - /* 49 */ array(), - /* 50 */ array(), - /* 51 */ array(), - /* 52 */ array(), - /* 53 */ array(), - /* 54 */ array(), - /* 55 */ array(), - /* 56 */ array(), -); - static public $yy_default = array( - /* 0 */ 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, - /* 10 */ 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, - /* 20 */ 89, 69, 68, 89, 75, 60, 63, 61, 89, 89, - /* 30 */ 71, 59, 70, 58, 89, 74, 86, 85, 88, 65, - /* 40 */ 67, 87, 64, 78, 66, 80, 73, 79, 77, 76, - /* 50 */ 82, 81, 57, 83, 84, 62, 72, -); -/* The next thing included is series of defines which control -** various aspects of the generated parser. -** self::YYNOCODE is a number which corresponds -** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash -** table. -** self::YYFALLBACK If defined, this indicates that one or more tokens -** have fall-back values which should be used if the -** original value of the token will not parse. -** self::YYSTACKDEPTH is the maximum depth of the parser's stack. -** self::YYNSTATE the combined number of states. -** self::YYNRULE the number of rules in the grammar -** self::YYERRORSYMBOL is the code number of the error symbol. If not -** defined, then do no error processing. -*/ - const YYNOCODE = 22; - const YYSTACKDEPTH = 100; - const YYNSTATE = 57; - const YYNRULE = 32; - const YYERRORSYMBOL = 9; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - /** The next table maps tokens into fallback tokens. If a construct - * like the following: - * - * %fallback ID X Y Z. - * - * appears in the grammer, then ID becomes a fallback token for X, Y, - * and Z. Whenever one of the tokens X, Y, or Z is input to the parser - * but it does not parse, the type of the token is changed to ID and - * the parse is retried before an error is thrown. - */ - static public $yyFallback = array( - ); - /** - * Turn parser tracing on by giving a stream to which to write the trace - * and a prompt to preface each trace message. Tracing is turned off - * by making either argument NULL - * - * Inputs: - * - * - A stream resource to which trace output should be written. - * If NULL, then tracing is turned off. - * - A prefix string written at the beginning of every - * line of trace output. If NULL, then tracing is - * turned off. - * - * Outputs: - * - * - None. - * @param resource - * @param string - */ - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - /** - * Output debug information to output (php://output stream) - */ - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = ''; - } - - /** - * @var resource|0 - */ - static public $yyTraceFILE; - /** - * String to prepend to debug output - * @var string|0 - */ - static public $yyTracePrompt; - /** - * @var int - */ - public $yyidx; /* Index of top element in stack */ - /** - * @var int - */ - public $yyerrcnt; /* Shifts left before out of the error */ - /** - * @var array - */ - public $yystack = array(); /* The parser's stack */ - - /** - * For tracing shifts, the names of all terminals and nonterminals - * are required. The following table supplies these names - * @var array - */ - static public $yyTokenName = array( - '$', 'PHPCODE', 'COMMENTSTART', 'COMMENTEND', - 'PI', 'SUBPATTERN', 'CODE', 'PATTERN', - 'QUOTE', 'error', 'start', 'lexfile', - 'declare', 'rules', 'declarations', 'processing_instructions', - 'pattern_declarations', 'subpattern', 'rule', 'reset_rules', - 'rule_subpattern', - ); - - /** - * For tracing reduce actions, the names of all rules are required. - * @var array - */ - static public $yyRuleName = array( - /* 0 */ "start ::= lexfile", - /* 1 */ "lexfile ::= declare rules", - /* 2 */ "lexfile ::= declare PHPCODE rules", - /* 3 */ "lexfile ::= PHPCODE declare rules", - /* 4 */ "lexfile ::= PHPCODE declare PHPCODE rules", - /* 5 */ "declare ::= COMMENTSTART declarations COMMENTEND", - /* 6 */ "declarations ::= processing_instructions pattern_declarations", - /* 7 */ "processing_instructions ::= PI SUBPATTERN", - /* 8 */ "processing_instructions ::= PI CODE", - /* 9 */ "processing_instructions ::= processing_instructions PI SUBPATTERN", - /* 10 */ "processing_instructions ::= processing_instructions PI CODE", - /* 11 */ "pattern_declarations ::= PATTERN subpattern", - /* 12 */ "pattern_declarations ::= pattern_declarations PATTERN subpattern", - /* 13 */ "rules ::= COMMENTSTART rule COMMENTEND", - /* 14 */ "rules ::= COMMENTSTART PI SUBPATTERN rule COMMENTEND", - /* 15 */ "rules ::= COMMENTSTART rule COMMENTEND PHPCODE", - /* 16 */ "rules ::= COMMENTSTART PI SUBPATTERN rule COMMENTEND PHPCODE", - /* 17 */ "rules ::= reset_rules rule COMMENTEND", - /* 18 */ "rules ::= reset_rules PI SUBPATTERN rule COMMENTEND", - /* 19 */ "rules ::= reset_rules rule COMMENTEND PHPCODE", - /* 20 */ "rules ::= reset_rules PI SUBPATTERN rule COMMENTEND PHPCODE", - /* 21 */ "reset_rules ::= rules COMMENTSTART", - /* 22 */ "rule ::= rule_subpattern CODE", - /* 23 */ "rule ::= rule rule_subpattern CODE", - /* 24 */ "rule_subpattern ::= QUOTE", - /* 25 */ "rule_subpattern ::= SUBPATTERN", - /* 26 */ "rule_subpattern ::= rule_subpattern QUOTE", - /* 27 */ "rule_subpattern ::= rule_subpattern SUBPATTERN", - /* 28 */ "subpattern ::= QUOTE", - /* 29 */ "subpattern ::= SUBPATTERN", - /* 30 */ "subpattern ::= subpattern QUOTE", - /* 31 */ "subpattern ::= subpattern SUBPATTERN", - ); - - /** - * This function returns the symbolic name associated with a token - * value. - * @param int - * @return string - */ - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count(self::$yyTokenName)) { - return self::$yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - /** - * The following function deletes the value associated with a - * symbol. The symbol can be either a terminal or nonterminal. - * @param int the symbol code - * @param mixed the symbol's value - */ - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - /* Here is inserted the actions which take place when a - ** terminal or non-terminal is destroyed. This can happen - ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is - ** being destroyed before it is finished parsing. - ** - ** Note: during a reduce, the only symbols destroyed are those - ** which appear on the RHS of the rule, but which are not used - ** inside the C code. - */ - default: break; /* If no destructor action specified: do nothing */ - } - } - - /** - * Pop the parser's stack once. - * - * If there is a destructor routine associated with the token which - * is popped from the stack, then call it. - * - * Return the major token number for the symbol popped. - * @param PHP_LexerGenerator_ParseryyParser - * @return int - */ - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . self::$yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - /** - * Deallocate and destroy a parser. Destructors are all called for - * all stack elements before shutting the parser down. - */ - function __destruct() - { - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - /** - * Based on the current state and parser stack, get a list of all - * possible lookahead tokens - * @param int - * @return array - */ - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected += self::$yyExpectedTokens[$nextstate]; - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - return array_unique($expected); - } - - /** - * Based on the parser state and current parser stack, determine whether - * the lookahead token is possible. - * - * The parser will convert the token value to an error token if not. This - * catches some unusual edge cases where the parser would fail. - * @param int - * @return bool - */ - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - /** - * Find the appropriate action for a parser given the terminal - * look-ahead token iLookAhead. - * - * If the look-ahead token is YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return YY_NO_ACTION. - * @param int The look-ahead token - */ - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - self::$yyTokenName[$iLookAhead] . " => " . - self::$yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Find the appropriate action for a parser given the non-terminal - * look-ahead token $iLookAhead. - * - * If the look-ahead token is self::YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return self::YY_NO_ACTION. - * @param int Current state number - * @param int The look-ahead token - */ - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Perform a shift action. - * @param int The new state to shift in - * @param int The major token to shift in - * @param mixed the minor token to shift in - */ - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will execute if the parser - ** stack ever overflows */ - return; - } - $yytos = new PHP_LexerGenerator_ParseryyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - self::$yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - /** - * The following table contains information about every rule that - * is used during the reduce. - * - * <pre> - * array( - * array( - * int $lhs; Symbol on the left-hand side of the rule - * int $nrhs; Number of right-hand side symbols in the rule - * ),... - * ); - * </pre> - */ - static public $yyRuleInfo = array( - array( 'lhs' => 10, 'rhs' => 1 ), - array( 'lhs' => 11, 'rhs' => 2 ), - array( 'lhs' => 11, 'rhs' => 3 ), - array( 'lhs' => 11, 'rhs' => 3 ), - array( 'lhs' => 11, 'rhs' => 4 ), - array( 'lhs' => 12, 'rhs' => 3 ), - array( 'lhs' => 14, 'rhs' => 2 ), - array( 'lhs' => 15, 'rhs' => 2 ), - array( 'lhs' => 15, 'rhs' => 2 ), - array( 'lhs' => 15, 'rhs' => 3 ), - array( 'lhs' => 15, 'rhs' => 3 ), - array( 'lhs' => 16, 'rhs' => 2 ), - array( 'lhs' => 16, 'rhs' => 3 ), - array( 'lhs' => 13, 'rhs' => 3 ), - array( 'lhs' => 13, 'rhs' => 5 ), - array( 'lhs' => 13, 'rhs' => 4 ), - array( 'lhs' => 13, 'rhs' => 6 ), - array( 'lhs' => 13, 'rhs' => 3 ), - array( 'lhs' => 13, 'rhs' => 5 ), - array( 'lhs' => 13, 'rhs' => 4 ), - array( 'lhs' => 13, 'rhs' => 6 ), - array( 'lhs' => 19, 'rhs' => 2 ), - array( 'lhs' => 18, 'rhs' => 2 ), - array( 'lhs' => 18, 'rhs' => 3 ), - array( 'lhs' => 20, 'rhs' => 1 ), - array( 'lhs' => 20, 'rhs' => 1 ), - array( 'lhs' => 20, 'rhs' => 2 ), - array( 'lhs' => 20, 'rhs' => 2 ), - array( 'lhs' => 17, 'rhs' => 1 ), - array( 'lhs' => 17, 'rhs' => 1 ), - array( 'lhs' => 17, 'rhs' => 2 ), - array( 'lhs' => 17, 'rhs' => 2 ), - ); - - /** - * The following table contains a mapping of reduce action to method name - * that handles the reduction. - * - * If a rule is not set, it has no handler. - */ - static public $yyReduceMap = array( - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, - 5 => 5, - 6 => 6, - 7 => 7, - 8 => 7, - 9 => 9, - 10 => 9, - 11 => 11, - 12 => 12, - 13 => 13, - 14 => 14, - 15 => 15, - 16 => 16, - 17 => 17, - 18 => 18, - 19 => 19, - 20 => 20, - 21 => 21, - 22 => 22, - 23 => 23, - 24 => 24, - 25 => 25, - 26 => 26, - 27 => 27, - 28 => 28, - 29 => 29, - 30 => 30, - 31 => 31, - ); - /* Beginning here are the reduction cases. A typical example - ** follows: - ** #line <lineno> <grammarfile> - ** function yy_r0($yymsp){ ... } // User supplied code - ** #line <lineno> <thisfile> - */ -#line 423 "Parser.y" - function yy_r1(){ - fwrite($this->out, ' - public $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1319 "Parser.php" -#line 457 "Parser.y" - function yy_r2(){ - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - if (strlen($this->yystack[$this->yyidx + -1]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -1]->minor); - } - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1358 "Parser.php" -#line 494 "Parser.y" - function yy_r3(){ - if (strlen($this->yystack[$this->yyidx + -2]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -2]->minor); - } - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1397 "Parser.php" -#line 531 "Parser.y" - function yy_r4(){ - if (strlen($this->yystack[$this->yyidx + -3]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -3]->minor); - } - fwrite($this->out, ' - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{\'yylex\' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - -'); - if (strlen($this->yystack[$this->yyidx + -1]->minor)) { - fwrite($this->out, $this->yystack[$this->yyidx + -1]->minor); - } - foreach ($this->yystack[$this->yyidx + 0]->minor as $rule) { - $this->outputRules($rule['rules'], $rule['statename']); - if ($rule['code']) { - fwrite($this->out, $rule['code']); - } - } - } -#line 1439 "Parser.php" -#line 572 "Parser.y" - function yy_r5(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - $this->patterns = $this->yystack[$this->yyidx + -1]->minor['patterns']; - $this->_patternIndex = 1; - } -#line 1446 "Parser.php" -#line 578 "Parser.y" - function yy_r6(){ - $expected = array( - 'counter' => true, - 'input' => true, - 'token' => true, - 'value' => true, - 'line' => true, - ); - foreach ($this->yystack[$this->yyidx + -1]->minor as $pi) { - if (isset($expected[$pi['pi']])) { - unset($expected[$pi['pi']]); - continue; - } - if (count($expected)) { - throw new Exception('Processing Instructions "' . - implode(', ', array_keys($expected)) . '" must be defined'); - } - } - $expected = array( - 'counter' => true, - 'input' => true, - 'token' => true, - 'value' => true, - 'line' => true, - 'matchlongest' => true, - ); - foreach ($this->yystack[$this->yyidx + -1]->minor as $pi) { - if (isset($expected[$pi['pi']])) { - $this->{$pi['pi']} = $pi['definition']; - if ($pi['pi'] == 'matchlongest') { - $this->matchlongest = true; - } - continue; - } - $this->error('Unknown processing instruction %' . $pi['pi'] . - ', should be one of "' . implode(', ', array_keys($expected)) . '"'); - } - $this->_retvalue = array('patterns' => $this->yystack[$this->yyidx + 0]->minor, 'pis' => $this->yystack[$this->yyidx + -1]->minor); - $this->_patternIndex = 1; - } -#line 1488 "Parser.php" -#line 619 "Parser.y" - function yy_r7(){ - $this->_retvalue = array(array('pi' => $this->yystack[$this->yyidx + -1]->minor, 'definition' => $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1493 "Parser.php" -#line 625 "Parser.y" - function yy_r9(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - $this->_retvalue[] = array('pi' => $this->yystack[$this->yyidx + -1]->minor, 'definition' => $this->yystack[$this->yyidx + 0]->minor); - } -#line 1499 "Parser.php" -#line 634 "Parser.y" - function yy_r11(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor => $this->yystack[$this->yyidx + 0]->minor); - // reset internal indicator of where we are in a pattern - $this->_patternIndex = 0; - } -#line 1506 "Parser.php" -#line 639 "Parser.y" - function yy_r12(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - if (isset($this->_retvalue[$this->yystack[$this->yyidx + -1]->minor])) { - throw new Exception('Pattern "' . $this->yystack[$this->yyidx + -1]->minor . '" is already defined as "' . - $this->_retvalue[$this->yystack[$this->yyidx + -1]->minor] . '", cannot redefine as "' . $this->yystack[$this->yyidx + 0]->minor->string . '"'); - } - $this->_retvalue[$this->yystack[$this->yyidx + -1]->minor] = $this->yystack[$this->yyidx + 0]->minor; - // reset internal indicator of where we are in a pattern declaration - $this->_patternIndex = 0; - } -#line 1518 "Parser.php" -#line 650 "Parser.y" - function yy_r13(){ - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => '')); - } -#line 1523 "Parser.php" -#line 653 "Parser.y" - function yy_r14(){ - if ($this->yystack[$this->yyidx + -3]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections'); - } - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => $this->yystack[$this->yyidx + -2]->minor)); - } -#line 1532 "Parser.php" -#line 660 "Parser.y" - function yy_r15(){ - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => '')); - } -#line 1537 "Parser.php" -#line 663 "Parser.y" - function yy_r16(){ - if ($this->yystack[$this->yyidx + -4]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections'); - } - $this->_retvalue = array(array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => $this->yystack[$this->yyidx + -3]->minor)); - $this->_patternIndex = 1; - } -#line 1547 "Parser.php" -#line 671 "Parser.y" - function yy_r17(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => ''); - $this->_patternIndex = 1; - } -#line 1554 "Parser.php" -#line 676 "Parser.y" - function yy_r18(){ - if ($this->yystack[$this->yyidx + -3]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections'); - } - $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -1]->minor, 'code' => '', 'statename' => $this->yystack[$this->yyidx + -2]->minor); - } -#line 1564 "Parser.php" -#line 684 "Parser.y" - function yy_r19(){ - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => ''); - } -#line 1570 "Parser.php" -#line 688 "Parser.y" - function yy_r20(){ - if ($this->yystack[$this->yyidx + -4]->minor != 'statename') { - throw new Exception('Error: only %statename processing instruction ' . - 'is allowed in rule sections'); - } - $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor; - $this->_retvalue[] = array('rules' => $this->yystack[$this->yyidx + -2]->minor, 'code' => $this->yystack[$this->yyidx + 0]->minor, 'statename' => $this->yystack[$this->yyidx + -3]->minor); - } -#line 1580 "Parser.php" -#line 697 "Parser.y" - function yy_r21(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - $this->_patternIndex = 1; - } -#line 1586 "Parser.php" -#line 702 "Parser.y" - function yy_r22(){ - $name = $this->yystack[$this->yyidx + -1]->minor[1]; - $this->yystack[$this->yyidx + -1]->minor = $this->yystack[$this->yyidx + -1]->minor[0]; - $this->yystack[$this->yyidx + -1]->minor = $this->_validatePattern($this->yystack[$this->yyidx + -1]->minor); - $this->_patternIndex += $this->yystack[$this->yyidx + -1]->minor['subpatterns'] + 1; - if (@preg_match('/' . str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor['pattern']) . '/', '')) { - $this->error('Rule "' . $name . '" can match the empty string, this will break lexing'); - } - $this->_retvalue = array(array('pattern' => str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor->string), 'code' => $this->yystack[$this->yyidx + 0]->minor, 'subpatterns' => $this->yystack[$this->yyidx + -1]->minor['subpatterns'])); - } -#line 1598 "Parser.php" -#line 712 "Parser.y" - function yy_r23(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - $name = $this->yystack[$this->yyidx + -1]->minor[1]; - $this->yystack[$this->yyidx + -1]->minor = $this->yystack[$this->yyidx + -1]->minor[0]; - $this->yystack[$this->yyidx + -1]->minor = $this->_validatePattern($this->yystack[$this->yyidx + -1]->minor); - $this->_patternIndex += $this->yystack[$this->yyidx + -1]->minor['subpatterns'] + 1; - if (@preg_match('/' . str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor['pattern']) . '/', '')) { - $this->error('Rule "' . $name . '" can match the empty string, this will break lexing'); - } - $this->_retvalue[] = array('pattern' => str_replace('/', '\\/', $this->yystack[$this->yyidx + -1]->minor->string), 'code' => $this->yystack[$this->yyidx + 0]->minor, 'subpatterns' => $this->yystack[$this->yyidx + -1]->minor['subpatterns']); - } -#line 1611 "Parser.php" -#line 724 "Parser.y" - function yy_r24(){ - $this->_retvalue = array(preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'), $this->yystack[$this->yyidx + 0]->minor); - } -#line 1616 "Parser.php" -#line 727 "Parser.y" - function yy_r25(){ - if (!isset($this->patterns[$this->yystack[$this->yyidx + 0]->minor])) { - $this->error('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - throw new Exception('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - } - $this->_retvalue = array($this->patterns[$this->yystack[$this->yyidx + 0]->minor], $this->yystack[$this->yyidx + 0]->minor); - } -#line 1625 "Parser.php" -#line 734 "Parser.y" - function yy_r26(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor[0] . preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'), $this->yystack[$this->yyidx + -1]->minor[1] . ' ' . $this->yystack[$this->yyidx + 0]->minor); - } -#line 1630 "Parser.php" -#line 737 "Parser.y" - function yy_r27(){ - if (!isset($this->patterns[$this->yystack[$this->yyidx + 0]->minor])) { - $this->error('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - throw new Exception('Undefined pattern "' . $this->yystack[$this->yyidx + 0]->minor . '" used in rules'); - } - $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor[0] . $this->patterns[$this->yystack[$this->yyidx + 0]->minor], $this->yystack[$this->yyidx + -1]->minor[1] . ' ' . $this->yystack[$this->yyidx + 0]->minor); - } -#line 1639 "Parser.php" -#line 745 "Parser.y" - function yy_r28(){ - $this->_retvalue = preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'); - } -#line 1644 "Parser.php" -#line 748 "Parser.y" - function yy_r29(){ - // increment internal sub-pattern counter - // adjust back-references in pattern based on previous pattern - $test = $this->_validatePattern($this->yystack[$this->yyidx + 0]->minor, true); - $this->_patternIndex += $test['subpatterns']; - $this->_retvalue = $test['pattern']; - } -#line 1653 "Parser.php" -#line 755 "Parser.y" - function yy_r30(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . preg_quote($this->yystack[$this->yyidx + 0]->minor, '/'); - } -#line 1658 "Parser.php" -#line 758 "Parser.y" - function yy_r31(){ - // increment internal sub-pattern counter - // adjust back-references in pattern based on previous pattern - $test = $this->_validatePattern($this->yystack[$this->yyidx + 0]->minor, true); - $this->_patternIndex += $test['subpatterns']; - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $test['pattern']; - } -#line 1667 "Parser.php" - - /** - * placeholder for the left hand side in a reduce operation. - * - * For a parser with a rule like this: - * <pre> - * rule(A) ::= B. { A = 1; } - * </pre> - * - * The parser will translate to something like: - * - * <code> - * function yy_r0(){$this->_retvalue = 1;} - * </code> - */ - private $_retvalue; - - /** - * Perform a reduce action and the shift that must immediately - * follow the reduce. - * - * For a rule such as: - * - * <pre> - * A ::= B blah C. { dosomething(); } - * </pre> - * - * This function will first call the action, if any, ("dosomething();" in our - * example), and then it will pop three states from the stack, - * one for each entry on the right-hand side of the expression - * (B, blah, and C in our example rule), and then push the result of the action - * back on to the stack with the resulting state reduced to (as described in the .out - * file) - * @param int Number of the rule by which to reduce - */ - function yy_reduce($yyruleno) - { - //int $yygoto; /* The next state */ - //int $yyact; /* The next action */ - //mixed $yygotominor; /* The LHS of the rule reduced */ - //PHP_LexerGenerator_ParseryyStackEntry $yymsp; /* The top of the parser's stack */ - //int $yysize; /* Amount to pop the stack */ - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - /* If we are not debugging and the reduce action popped at least - ** one element off the stack, then we can push the new element back - ** onto the stack here, and skip the stack overflow test in yy_shift(). - ** That gives a significant speed improvement. */ - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - /** - * The following code executes when the parse fails - * - * Code from %parse_fail is inserted here - */ - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser fails */ - } - - /** - * The following code executes when a syntax error first occurs. - * - * %syntax_error code is inserted here - * @param int The major type of the error token - * @param mixed The minor type of the error token - */ - function yy_syntax_error($yymajor, $TOKEN) - { -#line 66 "Parser.y" - - echo "Syntax Error on line " . $this->lex->line . ": token '" . - $this->lex->value . "' while parsing rule:"; - foreach ($this->yystack as $entry) { - echo $this->tokenName($entry->major) . ' '; - } - foreach ($this->yy_get_expected_tokens($yymajor) as $token) { - $expect[] = self::$yyTokenName[$token]; - } - throw new Exception('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN - . '), expected one of: ' . implode(',', $expect)); -#line 1792 "Parser.php" - } - - /** - * The following is executed when the parser accepts - * - * %parse_accept code is inserted here - */ - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser accepts */ - } - - /** - * The main parser program. - * - * The first argument is the major token number. The second is - * the token value string as scanned from the input. - * - * @param int the token number - * @param mixed the token value - * @param mixed any extra arguments that should be passed to handlers - */ - function doParse($yymajor, $yytokenvalue) - { -// $yyact; /* The parser action. */ -// $yyendofinput; /* True if we are at the end of input */ - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - /* (re)initialize the parser, if necessary */ - if ($this->yyidx === null || $this->yyidx < 0) { - /* if ($yymajor == 0) return; // not sure why this was here... */ - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new PHP_LexerGenerator_ParseryyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - /* A syntax error has occurred. - ** The response to an error depends upon whether or not the - ** grammar defines an error token "ERROR". - ** - ** This is what we do if the grammar does define ERROR: - ** - ** * Call the %syntax_error function. - ** - ** * Begin popping the stack until we enter a state where - ** it is legal to shift the error symbol, then shift - ** the error symbol. - ** - ** * Set the error count to three. - ** - ** * Begin accepting and shifting new tokens. No new error - ** processing will occur until three tokens have been - ** shifted successfully. - ** - */ - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - /* YYERRORSYMBOL is not defined */ - /* This is what we do if the grammar does not define ERROR: - ** - ** * Report an error message, and throw away the input token. - ** - ** * If the input token is $, then fail the parse. - ** - ** As before, subsequent error messages are suppressed until - ** three input tokens have been successfully shifted. - */ - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Regex
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Regex/Lexer.php
Deleted
@@ -1,1028 +0,0 @@ -<?php -require_once './LexerGenerator/Regex/Parser.php'; -class PHP_LexerGenerator_Regex_Lexer -{ - const MATCHSTART = PHP_LexerGenerator_Regex_Parser::MATCHSTART; - const MATCHEND = PHP_LexerGenerator_Regex_Parser::MATCHEND; - const CONTROLCHAR = PHP_LexerGenerator_Regex_Parser::CONTROLCHAR; - const OPENCHARCLASS = PHP_LexerGenerator_Regex_Parser::OPENCHARCLASS; - const FULLSTOP = PHP_LexerGenerator_Regex_Parser::FULLSTOP; - const TEXT = PHP_LexerGenerator_Regex_Parser::TEXT; - const BACKREFERENCE = PHP_LexerGenerator_Regex_Parser::BACKREFERENCE; - const OPENASSERTION = PHP_LexerGenerator_Regex_Parser::OPENASSERTION; - const COULDBEBACKREF = PHP_LexerGenerator_Regex_Parser::COULDBEBACKREF; - const NEGATE = PHP_LexerGenerator_Regex_Parser::NEGATE; - const HYPHEN = PHP_LexerGenerator_Regex_Parser::HYPHEN; - const CLOSECHARCLASS = PHP_LexerGenerator_Regex_Parser::CLOSECHARCLASS; - const BAR = PHP_LexerGenerator_Regex_Parser::BAR; - const MULTIPLIER = PHP_LexerGenerator_Regex_Parser::MULTIPLIER; - const INTERNALOPTIONS = PHP_LexerGenerator_Regex_Parser::INTERNALOPTIONS; - const COLON = PHP_LexerGenerator_Regex_Parser::COLON; - const OPENPAREN = PHP_LexerGenerator_Regex_Parser::OPENPAREN; - const CLOSEPAREN = PHP_LexerGenerator_Regex_Parser::CLOSEPAREN; - const PATTERNNAME = PHP_LexerGenerator_Regex_Parser::PATTERNNAME; - const POSITIVELOOKBEHIND = PHP_LexerGenerator_Regex_Parser::POSITIVELOOKBEHIND; - const NEGATIVELOOKBEHIND = PHP_LexerGenerator_Regex_Parser::NEGATIVELOOKBEHIND; - const POSITIVELOOKAHEAD = PHP_LexerGenerator_Regex_Parser::POSITIVELOOKAHEAD; - const NEGATIVELOOKAHEAD = PHP_LexerGenerator_Regex_Parser::NEGATIVELOOKAHEAD; - const ONCEONLY = PHP_LexerGenerator_Regex_Parser::ONCEONLY; - const COMMENT = PHP_LexerGenerator_Regex_Parser::COMMENT; - const RECUR = PHP_LexerGenerator_Regex_Parser::RECUR; - const ESCAPEDBACKSLASH = PHP_LexerGenerator_Regex_Parser::ESCAPEDBACKSLASH; - private $input; - private $N; - public $token; - public $value; - public $line; - - function __construct($data) - { - $this->input = $data; - $this->N = 0; - } - - function reset($data, $line) - { - $this->input = $data; - $this->N = 0; - // passed in from parent parser - $this->line = $line; - $this->yybegin(self::INITIAL); - } - - - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{'yylex' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - - - - function yylex1() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 0, - 12 => 0, - 13 => 0, - 14 => 0, - 15 => 0, - 16 => 0, - 17 => 0, - 18 => 0, - 19 => 0, - 20 => 0, - 21 => 0, - 22 => 0, - 23 => 0, - ); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - $yy_global_pattern = '/\G(\\\\\\\\)|\G([^[\\\\^$.|()?*+{}]+)|\G(\\\\[][{}*.^$|?()+])|\G(\\[)|\G(\\|)|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)/'; - - do { - if (preg_match($yy_global_pattern,$this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->input, - $this->N, 5) . '... state INITIAL'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r1_' . $this->token}($yysubmatches); - if ($r === null) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - $yy_yymore_patterns = array( - 1 => array(0, "\G([^[\\\\^$.|()?*+{}]+)|\G(\\\\[][{}*.^$|?()+])|\G(\\[)|\G(\\|)|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 2 => array(0, "\G(\\\\[][{}*.^$|?()+])|\G(\\[)|\G(\\|)|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 3 => array(0, "\G(\\[)|\G(\\|)|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 4 => array(0, "\G(\\|)|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 5 => array(0, "\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 6 => array(0, "\G(\\\\[0-9][0-9])|\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 7 => array(0, "\G(\\\\[abBGcedDsSwW0C]|\\\\c\\\\)|\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 8 => array(0, "\G(\\^)|\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 9 => array(0, "\G(\\\\A)|\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 10 => array(0, "\G(\\))|\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 11 => array(0, "\G(\\$)|\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 12 => array(0, "\G(\\*\\?|\\+\\?|[*?+]|\\{[0-9]+\\}|\\{[0-9]+,\\}|\\{[0-9]+,[0-9]+\\})|\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 13 => array(0, "\G(\\\\[zZ])|\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 14 => array(0, "\G(\\(\\?)|\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 15 => array(0, "\G(\\()|\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 16 => array(0, "\G(\\.)|\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 17 => array(0, "\G(\\\\[1-9])|\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 18 => array(0, "\G(\\\\p\\{\\^?..?\\}|\\\\P\\{..?\\}|\\\\X)|\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 19 => array(0, "\G(\\\\p\\{C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 20 => array(0, "\G(\\\\p\\{\\^C[cfnos]?|L[lmotu]?|M[cen]?|N[dlo]?|P[cdefios]?|S[ckmo]?|Z[lps]?\\})|\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 21 => array(0, "\G(\\\\p[CLMNPSZ])|\G(\\\\)"), - 22 => array(0, "\G(\\\\)"), - 23 => array(0, ""), - ); - - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[$this->token][1])) { - throw new Exception('cannot do yymore for the last token'); - } - $yysubmatches = array(); - if (preg_match('/' . $yy_yymore_patterns[$this->token][1] . '/', - $this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - next($yymatches); // skip global match - $this->token += key($yymatches) + $yy_yymore_patterns[$this->token][0]; // token number - $this->value = current($yymatches); // token value - $this->line = substr_count($this->value, "\n"); - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - } - $r = $this->{'yy_r1_' . $this->token}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - return true; - } - } - } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->input[$this->N]); - } - break; - } while (true); - - } // end function - - - const INITIAL = 1; - function yy_r1_1($yy_subpatterns) - { - - $this->token = self::ESCAPEDBACKSLASH; - } - function yy_r1_2($yy_subpatterns) - { - - $this->token = self::TEXT; - } - function yy_r1_3($yy_subpatterns) - { - - $this->token = self::CONTROLCHAR; - } - function yy_r1_4($yy_subpatterns) - { - - $this->token = self::OPENCHARCLASS; - $this->yybegin(self::CHARACTERCLASSSTART); - } - function yy_r1_5($yy_subpatterns) - { - - $this->token = self::BAR; - } - function yy_r1_6($yy_subpatterns) - { - - $this->token = self::TEXT; - } - function yy_r1_7($yy_subpatterns) - { - - $this->token = self::COULDBEBACKREF; - } - function yy_r1_8($yy_subpatterns) - { - - $this->token = self::CONTROLCHAR; - } - function yy_r1_9($yy_subpatterns) - { - - $this->token = self::MATCHSTART; - } - function yy_r1_10($yy_subpatterns) - { - - $this->token = self::MATCHSTART; - } - function yy_r1_11($yy_subpatterns) - { - - $this->token = self::CLOSEPAREN; - $this->yybegin(self::INITIAL); - } - function yy_r1_12($yy_subpatterns) - { - - $this->token = self::MATCHEND; - } - function yy_r1_13($yy_subpatterns) - { - - $this->token = self::MULTIPLIER; - } - function yy_r1_14($yy_subpatterns) - { - - $this->token = self::MATCHEND; - } - function yy_r1_15($yy_subpatterns) - { - - $this->token = self::OPENASSERTION; - $this->yybegin(self::ASSERTION); - } - function yy_r1_16($yy_subpatterns) - { - - $this->token = self::OPENPAREN; - } - function yy_r1_17($yy_subpatterns) - { - - $this->token = self::FULLSTOP; - } - function yy_r1_18($yy_subpatterns) - { - - $this->token = self::BACKREFERENCE; - } - function yy_r1_19($yy_subpatterns) - { - - $this->token = self::CONTROLCHAR; - } - function yy_r1_20($yy_subpatterns) - { - - $this->token = self::CONTROLCHAR; - } - function yy_r1_21($yy_subpatterns) - { - - $this->token = self::CONTROLCHAR; - } - function yy_r1_22($yy_subpatterns) - { - - $this->token = self::CONTROLCHAR; - } - function yy_r1_23($yy_subpatterns) - { - - return false; - } - - - function yylex2() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - ); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - $yy_global_pattern = '/\G(\\^)|\G(\\])|\G(.)/'; - - do { - if (preg_match($yy_global_pattern,$this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->input, - $this->N, 5) . '... state CHARACTERCLASSSTART'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r2_' . $this->token}($yysubmatches); - if ($r === null) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - $yy_yymore_patterns = array( - 1 => array(0, "\G(\\])|\G(.)"), - 2 => array(0, "\G(.)"), - 3 => array(0, ""), - ); - - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[$this->token][1])) { - throw new Exception('cannot do yymore for the last token'); - } - $yysubmatches = array(); - if (preg_match('/' . $yy_yymore_patterns[$this->token][1] . '/', - $this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - next($yymatches); // skip global match - $this->token += key($yymatches) + $yy_yymore_patterns[$this->token][0]; // token number - $this->value = current($yymatches); // token value - $this->line = substr_count($this->value, "\n"); - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - } - $r = $this->{'yy_r2_' . $this->token}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - return true; - } - } - } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->input[$this->N]); - } - break; - } while (true); - - } // end function - - - const CHARACTERCLASSSTART = 2; - function yy_r2_1($yy_subpatterns) - { - - $this->token = self::NEGATE; - } - function yy_r2_2($yy_subpatterns) - { - - $this->yybegin(self::CHARACTERCLASS); - $this->token = self::TEXT; - } - function yy_r2_3($yy_subpatterns) - { - - $this->yybegin(self::CHARACTERCLASS); - return true; - } - - - function yylex3() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 0, - ); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - $yy_global_pattern = '/\G(\\\\\\\\)|\G(\\])|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)/'; - - do { - if (preg_match($yy_global_pattern,$this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->input, - $this->N, 5) . '... state CHARACTERCLASS'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r3_' . $this->token}($yysubmatches); - if ($r === null) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - $yy_yymore_patterns = array( - 1 => array(0, "\G(\\])|\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 2 => array(0, "\G(\\\\[frnt]|\\\\x[0-9a-fA-F][0-9a-fA-F]?|\\\\[0-7][0-7][0-7]|\\\\x\\{[0-9a-fA-F]+\\})|\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 3 => array(0, "\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 4 => array(0, "\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 5 => array(0, "\G(\\\\[1-9])|\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 6 => array(0, "\G(\\\\[]\.\-\^])|\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 7 => array(0, "\G(-(?!]))|\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 8 => array(0, "\G([^\-\\\\])|\G(\\\\)|\G(.)"), - 9 => array(0, "\G(\\\\)|\G(.)"), - 10 => array(0, "\G(.)"), - 11 => array(0, ""), - ); - - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[$this->token][1])) { - throw new Exception('cannot do yymore for the last token'); - } - $yysubmatches = array(); - if (preg_match('/' . $yy_yymore_patterns[$this->token][1] . '/', - $this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - next($yymatches); // skip global match - $this->token += key($yymatches) + $yy_yymore_patterns[$this->token][0]; // token number - $this->value = current($yymatches); // token value - $this->line = substr_count($this->value, "\n"); - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - } - $r = $this->{'yy_r3_' . $this->token}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - return true; - } - } - } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->input[$this->N]); - } - break; - } while (true); - - } // end function - - - const CHARACTERCLASS = 3; - function yy_r3_1($yy_subpatterns) - { - - $this->token = self::ESCAPEDBACKSLASH; - } - function yy_r3_2($yy_subpatterns) - { - - $this->yybegin(self::INITIAL); - $this->token = self::CLOSECHARCLASS; - } - function yy_r3_3($yy_subpatterns) - { - - $this->token = self::TEXT; - } - function yy_r3_4($yy_subpatterns) - { - - $this->token = self::TEXT; - } - function yy_r3_5($yy_subpatterns) - { - - $this->token = self::COULDBEBACKREF; - } - function yy_r3_6($yy_subpatterns) - { - - $this->token = self::BACKREFERENCE; - } - function yy_r3_7($yy_subpatterns) - { - - $this->token = self::TEXT; - } - function yy_r3_8($yy_subpatterns) - { - - $this->token = self::HYPHEN; - $this->yybegin(self::RANGE); - } - function yy_r3_9($yy_subpatterns) - { - - $this->token = self::TEXT; - } - function yy_r3_10($yy_subpatterns) - { - - return false; // ignore escaping of normal text - } - function yy_r3_11($yy_subpatterns) - { - - $this->token = self::TEXT; - } - - - function yylex4() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - ); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - $yy_global_pattern = '/\G(\\\\\\\\)|\G(\\\\\\])|\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G([^\-\\\\])|\G(\\\\)/'; - - do { - if (preg_match($yy_global_pattern,$this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->input, - $this->N, 5) . '... state RANGE'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r4_' . $this->token}($yysubmatches); - if ($r === null) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - $yy_yymore_patterns = array( - 1 => array(0, "\G(\\\\\\])|\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G([^\-\\\\])|\G(\\\\)"), - 2 => array(0, "\G(\\\\[bacedDsSwW0C]|\\\\c\\\\|\\\\x\\{[0-9a-fA-F]+\\}|\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]?)|\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G([^\-\\\\])|\G(\\\\)"), - 3 => array(0, "\G(\\\\[0-9][0-9])|\G(\\\\[1-9])|\G([^\-\\\\])|\G(\\\\)"), - 4 => array(0, "\G(\\\\[1-9])|\G([^\-\\\\])|\G(\\\\)"), - 5 => array(0, "\G([^\-\\\\])|\G(\\\\)"), - 6 => array(0, "\G(\\\\)"), - 7 => array(0, ""), - ); - - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[$this->token][1])) { - throw new Exception('cannot do yymore for the last token'); - } - $yysubmatches = array(); - if (preg_match('/' . $yy_yymore_patterns[$this->token][1] . '/', - $this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - next($yymatches); // skip global match - $this->token += key($yymatches) + $yy_yymore_patterns[$this->token][0]; // token number - $this->value = current($yymatches); // token value - $this->line = substr_count($this->value, "\n"); - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - } - $r = $this->{'yy_r4_' . $this->token}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - return true; - } - } - } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->input[$this->N]); - } - break; - } while (true); - - } // end function - - - const RANGE = 4; - function yy_r4_1($yy_subpatterns) - { - - $this->token = self::ESCAPEDBACKSLASH; - } - function yy_r4_2($yy_subpatterns) - { - - $this->token = self::TEXT; - $this->yybegin(self::CHARACTERCLASS); - } - function yy_r4_3($yy_subpatterns) - { - - $this->token = self::TEXT; - $this->yybegin(self::CHARACTERCLASS); - } - function yy_r4_4($yy_subpatterns) - { - - $this->token = self::COULDBEBACKREF; - } - function yy_r4_5($yy_subpatterns) - { - - $this->token = self::BACKREFERENCE; - } - function yy_r4_6($yy_subpatterns) - { - - $this->token = self::TEXT; - $this->yybegin(self::CHARACTERCLASS); - } - function yy_r4_7($yy_subpatterns) - { - - return false; // ignore escaping of normal text - } - - - function yylex5() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 0, - 12 => 0, - 13 => 0, - ); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - $yy_global_pattern = '/\G([imsxUX]+-[imsxUX]+|[imsxUX]+|-[imsxUX]+)|\G(:)|\G(\\))|\G(P<[^>]+>)|\G(<=)|\G(<!)|\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)/'; - - do { - if (preg_match($yy_global_pattern,$this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->input, - $this->N, 5) . '... state ASSERTION'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r5_' . $this->token}($yysubmatches); - if ($r === null) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - $yy_yymore_patterns = array( - 1 => array(0, "\G(:)|\G(\\))|\G(P<[^>]+>)|\G(<=)|\G(<!)|\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 2 => array(0, "\G(\\))|\G(P<[^>]+>)|\G(<=)|\G(<!)|\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 3 => array(0, "\G(P<[^>]+>)|\G(<=)|\G(<!)|\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 4 => array(0, "\G(<=)|\G(<!)|\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 5 => array(0, "\G(<!)|\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 6 => array(0, "\G(=)|\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 7 => array(0, "\G(!)|\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 8 => array(0, "\G(>)|\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 9 => array(0, "\G(\\(\\?)|\G(#[^)]+)|\G(R)|\G(.)"), - 10 => array(0, "\G(#[^)]+)|\G(R)|\G(.)"), - 11 => array(0, "\G(R)|\G(.)"), - 12 => array(0, "\G(.)"), - 13 => array(0, ""), - ); - - // yymore is needed - do { - if (!strlen($yy_yymore_patterns[$this->token][1])) { - throw new Exception('cannot do yymore for the last token'); - } - $yysubmatches = array(); - if (preg_match('/' . $yy_yymore_patterns[$this->token][1] . '/', - $this->input, $yymatches, null, $this->N)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - next($yymatches); // skip global match - $this->token += key($yymatches) + $yy_yymore_patterns[$this->token][0]; // token number - $this->value = current($yymatches); // token value - $this->line = substr_count($this->value, "\n"); - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - } - $r = $this->{'yy_r5_' . $this->token}($yysubmatches); - } while ($r !== null && !is_bool($r)); - if ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - if ($this->N >= strlen($this->input)) { - return false; // end of input - } - // skip this token - continue; - } else { - // accept - $this->N += strlen($this->value); - $this->line += substr_count($this->value, "\n"); - return true; - } - } - } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->input[$this->N]); - } - break; - } while (true); - - } // end function - - - const ASSERTION = 5; - function yy_r5_1($yy_subpatterns) - { - - $this->token = self::INTERNALOPTIONS; - } - function yy_r5_2($yy_subpatterns) - { - - $this->token = self::COLON; - $this->yybegin(self::INITIAL); - } - function yy_r5_3($yy_subpatterns) - { - - $this->token = self::CLOSEPAREN; - $this->yybegin(self::INITIAL); - } - function yy_r5_4($yy_subpatterns) - { - - $this->token = self::PATTERNNAME; - $this->yybegin(self::INITIAL); - } - function yy_r5_5($yy_subpatterns) - { - - $this->token = self::POSITIVELOOKBEHIND; - $this->yybegin(self::INITIAL); - } - function yy_r5_6($yy_subpatterns) - { - - $this->token = self::NEGATIVELOOKBEHIND; - $this->yybegin(self::INITIAL); - } - function yy_r5_7($yy_subpatterns) - { - - $this->token = self::POSITIVELOOKAHEAD; - $this->yybegin(self::INITIAL); - } - function yy_r5_8($yy_subpatterns) - { - - $this->token = self::NEGATIVELOOKAHEAD; - $this->yybegin(self::INITIAL); - } - function yy_r5_9($yy_subpatterns) - { - - $this->token = self::ONCEONLY; - $this->yybegin(self::INITIAL); - } - function yy_r5_10($yy_subpatterns) - { - - $this->token = self::OPENASSERTION; - } - function yy_r5_11($yy_subpatterns) - { - - $this->token = self::COMMENT; - $this->yybegin(self::INITIAL); - } - function yy_r5_12($yy_subpatterns) - { - - $this->token = self::RECUR; - } - function yy_r5_13($yy_subpatterns) - { - - $this->yybegin(self::INITIAL); - return true; - } - -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/Regex/Parser.php
Deleted
@@ -1,1933 +0,0 @@ -<?php -/* Driver template for the PHP_PHP_LexerGenerator_Regex_rGenerator parser generator. (PHP port of LEMON) -*/ - -/** - * This can be used to store both the string representation of - * a token, and any useful meta-data associated with the token. - * - * meta-data should be stored as an array - */ -class PHP_LexerGenerator_Regex_yyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof PHP_LexerGenerator_Regex_yyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof PHP_LexerGenerator_Regex_yyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof PHP_LexerGenerator_Regex_yyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof PHP_LexerGenerator_Regex_yyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -/** The following structure represents a single element of the - * parser's stack. Information stored includes: - * - * + The state number for the parser at this level of the stack. - * - * + The value of the token stored at this level of the stack. - * (In other words, the "major" token.) - * - * + The semantic value stored at this level of the stack. This is - * the information used by the action routines in the grammar. - * It is sometimes called the "minor" token. - */ -class PHP_LexerGenerator_Regex_yyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - -// code external to the class is included here -#line 2 "Parser.y" - -require_once './LexerGenerator/Exception.php'; -#line 102 "Parser.php" - -// declare_class is output here -#line 5 "Parser.y" -class PHP_LexerGenerator_Regex_Parser#line 107 "Parser.php" -{ -/* First off, code is included which follows the "include_class" declaration -** in the input file. */ -#line 21 "Parser.y" - - private $_lex; - private $_subpatterns; - private $_updatePattern; - private $_patternIndex; - public $result; - function __construct($lex) - { - $this->result = new PHP_LexerGenerator_ParseryyToken(''); - $this->_lex = $lex; - $this->_subpatterns = 0; - $this->_patternIndex = 1; - } - - function reset($patternIndex, $updatePattern = false) - { - $this->_updatePattern = $updatePattern; - $this->_patternIndex = $patternIndex; - $this->_subpatterns = 0; - $this->result = new PHP_LexerGenerator_ParseryyToken(''); - } -#line 134 "Parser.php" - -/* Next is all token values, as class constants -*/ -/* -** These constants (all generated automatically by the parser generator) -** specify the various kinds of tokens (terminals) that the parser -** understands. -** -** Each symbol here is a terminal symbol in the grammar. -*/ - const OPENPAREN = 1; - const OPENASSERTION = 2; - const BAR = 3; - const MULTIPLIER = 4; - const MATCHSTART = 5; - const MATCHEND = 6; - const OPENCHARCLASS = 7; - const CLOSECHARCLASS = 8; - const NEGATE = 9; - const TEXT = 10; - const ESCAPEDBACKSLASH = 11; - const HYPHEN = 12; - const BACKREFERENCE = 13; - const COULDBEBACKREF = 14; - const CONTROLCHAR = 15; - const FULLSTOP = 16; - const INTERNALOPTIONS = 17; - const CLOSEPAREN = 18; - const COLON = 19; - const POSITIVELOOKAHEAD = 20; - const NEGATIVELOOKAHEAD = 21; - const POSITIVELOOKBEHIND = 22; - const NEGATIVELOOKBEHIND = 23; - const PATTERNNAME = 24; - const ONCEONLY = 25; - const COMMENT = 26; - const RECUR = 27; - const YY_NO_ACTION = 230; - const YY_ACCEPT_ACTION = 229; - const YY_ERROR_ACTION = 228; - -/* Next are that tables used to determine what action to take based on the -** current state and lookahead token. These tables are used to implement -** functions that take a state number and lookahead value and return an -** action integer. -** -** Suppose the action integer is N. Then the action is determined as -** follows -** -** 0 <= N < self::YYNSTATE Shift N. That is, -** push the lookahead -** token onto the stack -** and goto state N. -** -** self::YYNSTATE <= N < self::YYNSTATE+self::YYNRULE Reduce by rule N-YYNSTATE. -** -** N == self::YYNSTATE+self::YYNRULE A syntax error has occurred. -** -** N == self::YYNSTATE+self::YYNRULE+1 The parser accepts its -** input. (and concludes parsing) -** -** N == self::YYNSTATE+self::YYNRULE+2 No such action. Denotes unused -** slots in the yy_action[] table. -** -** The action table is constructed as a single large static array $yy_action. -** Given state S and lookahead X, the action is computed as -** -** self::$yy_action[self::$yy_shift_ofst[S] + X ] -** -** If the index value self::$yy_shift_ofst[S]+X is out of range or if the value -** self::$yy_lookahead[self::$yy_shift_ofst[S]+X] is not equal to X or if -** self::$yy_shift_ofst[S] is equal to self::YY_SHIFT_USE_DFLT, it means that -** the action is not in the table and that self::$yy_default[S] should be used instead. -** -** The formula above is for computing the action when the lookahead is -** a terminal symbol. If the lookahead is a non-terminal (as occurs after -** a reduce action) then the static $yy_reduce_ofst array is used in place of -** the static $yy_shift_ofst array and self::YY_REDUCE_USE_DFLT is used in place of -** self::YY_SHIFT_USE_DFLT. -** -** The following are the tables generated in this section: -** -** self::$yy_action A single table containing all actions. -** self::$yy_lookahead A table containing the lookahead for each entry in -** yy_action. Used to detect hash collisions. -** self::$yy_shift_ofst For each state, the offset into self::$yy_action for -** shifting terminals. -** self::$yy_reduce_ofst For each state, the offset into self::$yy_action for -** shifting non-terminals after a reduce. -** self::$yy_default Default action for each state. -*/ - const YY_SZ_ACTTAB = 354; -static public $yy_action = array( - /* 0 */ 229, 45, 15, 23, 104, 106, 107, 109, 108, 118, - /* 10 */ 119, 129, 128, 130, 36, 15, 23, 104, 106, 107, - /* 20 */ 109, 108, 118, 119, 129, 128, 130, 39, 15, 23, - /* 30 */ 104, 106, 107, 109, 108, 118, 119, 129, 128, 130, - /* 40 */ 25, 15, 23, 104, 106, 107, 109, 108, 118, 119, - /* 50 */ 129, 128, 130, 32, 15, 23, 104, 106, 107, 109, - /* 60 */ 108, 118, 119, 129, 128, 130, 28, 15, 23, 104, - /* 70 */ 106, 107, 109, 108, 118, 119, 129, 128, 130, 35, - /* 80 */ 15, 23, 104, 106, 107, 109, 108, 118, 119, 129, - /* 90 */ 128, 130, 92, 15, 23, 104, 106, 107, 109, 108, - /* 100 */ 118, 119, 129, 128, 130, 38, 15, 23, 104, 106, - /* 110 */ 107, 109, 108, 118, 119, 129, 128, 130, 40, 15, - /* 120 */ 23, 104, 106, 107, 109, 108, 118, 119, 129, 128, - /* 130 */ 130, 33, 15, 23, 104, 106, 107, 109, 108, 118, - /* 140 */ 119, 129, 128, 130, 30, 15, 23, 104, 106, 107, - /* 150 */ 109, 108, 118, 119, 129, 128, 130, 37, 15, 23, - /* 160 */ 104, 106, 107, 109, 108, 118, 119, 129, 128, 130, - /* 170 */ 34, 15, 23, 104, 106, 107, 109, 108, 118, 119, - /* 180 */ 129, 128, 130, 16, 23, 104, 106, 107, 109, 108, - /* 190 */ 118, 119, 129, 128, 130, 54, 24, 22, 72, 76, - /* 200 */ 85, 84, 82, 81, 80, 97, 134, 125, 93, 12, - /* 210 */ 12, 26, 83, 2, 5, 1, 11, 4, 10, 13, - /* 220 */ 49, 50, 9, 17, 46, 98, 14, 12, 18, 113, - /* 230 */ 124, 52, 43, 79, 44, 57, 42, 41, 9, 17, - /* 240 */ 127, 12, 53, 91, 18, 126, 12, 52, 43, 120, - /* 250 */ 44, 57, 42, 41, 9, 17, 47, 12, 31, 117, - /* 260 */ 18, 88, 99, 52, 43, 75, 44, 57, 42, 41, - /* 270 */ 9, 17, 51, 19, 67, 69, 18, 101, 87, 52, - /* 280 */ 43, 12, 44, 57, 42, 41, 132, 64, 63, 103, - /* 290 */ 62, 58, 66, 65, 59, 12, 60, 68, 90, 111, - /* 300 */ 116, 122, 61, 100, 60, 68, 12, 111, 116, 122, - /* 310 */ 71, 5, 1, 11, 4, 67, 69, 12, 101, 87, - /* 320 */ 12, 102, 12, 12, 112, 6, 105, 131, 78, 7, - /* 330 */ 8, 95, 77, 74, 70, 56, 123, 48, 133, 73, - /* 340 */ 27, 114, 86, 55, 115, 89, 110, 121, 3, 94, - /* 350 */ 21, 29, 96, 20, - ); - static public $yy_lookahead = array( - /* 0 */ 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - /* 10 */ 39, 40, 41, 42, 30, 31, 32, 33, 34, 35, - /* 20 */ 36, 37, 38, 39, 40, 41, 42, 30, 31, 32, - /* 30 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - /* 40 */ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - /* 50 */ 40, 41, 42, 30, 31, 32, 33, 34, 35, 36, - /* 60 */ 37, 38, 39, 40, 41, 42, 30, 31, 32, 33, - /* 70 */ 34, 35, 36, 37, 38, 39, 40, 41, 42, 30, - /* 80 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - /* 90 */ 41, 42, 30, 31, 32, 33, 34, 35, 36, 37, - /* 100 */ 38, 39, 40, 41, 42, 30, 31, 32, 33, 34, - /* 110 */ 35, 36, 37, 38, 39, 40, 41, 42, 30, 31, - /* 120 */ 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - /* 130 */ 42, 30, 31, 32, 33, 34, 35, 36, 37, 38, - /* 140 */ 39, 40, 41, 42, 30, 31, 32, 33, 34, 35, - /* 150 */ 36, 37, 38, 39, 40, 41, 42, 30, 31, 32, - /* 160 */ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - /* 170 */ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - /* 180 */ 40, 41, 42, 31, 32, 33, 34, 35, 36, 37, - /* 190 */ 38, 39, 40, 41, 42, 1, 2, 32, 33, 34, - /* 200 */ 35, 36, 37, 38, 39, 40, 41, 42, 18, 3, - /* 210 */ 3, 17, 10, 19, 20, 21, 22, 23, 24, 25, - /* 220 */ 26, 27, 1, 2, 18, 18, 5, 3, 7, 10, - /* 230 */ 11, 10, 11, 4, 13, 14, 15, 16, 1, 2, - /* 240 */ 10, 3, 18, 6, 7, 15, 3, 10, 11, 4, - /* 250 */ 13, 14, 15, 16, 1, 2, 18, 3, 12, 6, - /* 260 */ 7, 18, 4, 10, 11, 4, 13, 14, 15, 16, - /* 270 */ 1, 2, 18, 9, 10, 11, 7, 13, 14, 10, - /* 280 */ 11, 3, 13, 14, 15, 16, 4, 10, 11, 4, - /* 290 */ 13, 14, 15, 16, 8, 3, 10, 11, 18, 13, - /* 300 */ 14, 15, 8, 4, 10, 11, 3, 13, 14, 15, - /* 310 */ 18, 20, 21, 22, 23, 10, 11, 3, 13, 14, - /* 320 */ 3, 18, 3, 3, 18, 19, 10, 11, 4, 36, - /* 330 */ 37, 4, 18, 4, 12, 18, 4, 18, 18, 4, - /* 340 */ 12, 4, 4, 10, 4, 4, 4, 4, 18, 4, - /* 350 */ 43, 12, 4, 43, -); - const YY_SHIFT_USE_DFLT = -1; - const YY_SHIFT_MAX = 70; - static public $yy_shift_ofst = array( - /* 0 */ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, - /* 10 */ 221, 221, 221, 221, 269, 253, 237, 194, 264, 305, - /* 20 */ 286, 294, 277, 277, 291, 320, 306, 316, 317, 219, - /* 30 */ 224, 230, 238, 206, 207, 319, 243, 314, 303, 254, - /* 40 */ 292, 345, 348, 261, 282, 278, 285, 324, 327, 280, - /* 50 */ 190, 229, 245, 343, 333, 330, 342, 337, 329, 332, - /* 60 */ 328, 340, 335, 338, 341, 299, 258, 339, 246, 322, - /* 70 */ 202, -); - const YY_REDUCE_USE_DFLT = -30; - const YY_REDUCE_MAX = 19; - static public $yy_reduce_ofst = array( - /* 0 */ -29, 127, 114, 101, 140, 88, 10, -3, 23, 36, - /* 10 */ 49, 75, 62, -16, 152, 165, 165, 293, 310, 307, -); - static public $yyExpectedTokens = array( - /* 0 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 1 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 2 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 3 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 4 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 5 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 6 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 7 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 8 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 9 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 10 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 11 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 12 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 13 */ array(1, 2, 5, 7, 10, 11, 13, 14, 15, 16, ), - /* 14 */ array(1, 2, 7, 10, 11, 13, 14, 15, 16, ), - /* 15 */ array(1, 2, 6, 7, 10, 11, 13, 14, 15, 16, ), - /* 16 */ array(1, 2, 6, 7, 10, 11, 13, 14, 15, 16, ), - /* 17 */ array(1, 2, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, ), - /* 18 */ array(9, 10, 11, 13, 14, ), - /* 19 */ array(10, 11, 13, 14, ), - /* 20 */ array(8, 10, 11, 13, 14, 15, ), - /* 21 */ array(8, 10, 11, 13, 14, 15, ), - /* 22 */ array(10, 11, 13, 14, 15, 16, ), - /* 23 */ array(10, 11, 13, 14, 15, 16, ), - /* 24 */ array(20, 21, 22, 23, ), - /* 25 */ array(3, 18, ), - /* 26 */ array(18, 19, ), - /* 27 */ array(10, 11, ), - /* 28 */ array(3, 18, ), - /* 29 */ array(10, 11, ), - /* 30 */ array(3, 18, ), - /* 31 */ array(10, 15, ), - /* 32 */ array(3, 18, ), - /* 33 */ array(3, 18, ), - /* 34 */ array(3, 18, ), - /* 35 */ array(3, 18, ), - /* 36 */ array(3, 18, ), - /* 37 */ array(3, 18, ), - /* 38 */ array(3, 18, ), - /* 39 */ array(3, 18, ), - /* 40 */ array(3, 18, ), - /* 41 */ array(4, ), - /* 42 */ array(4, ), - /* 43 */ array(4, ), - /* 44 */ array(4, ), - /* 45 */ array(3, ), - /* 46 */ array(4, ), - /* 47 */ array(4, ), - /* 48 */ array(4, ), - /* 49 */ array(18, ), - /* 50 */ array(18, ), - /* 51 */ array(4, ), - /* 52 */ array(4, ), - /* 53 */ array(4, ), - /* 54 */ array(10, ), - /* 55 */ array(18, ), - /* 56 */ array(4, ), - /* 57 */ array(4, ), - /* 58 */ array(4, ), - /* 59 */ array(4, ), - /* 60 */ array(12, ), - /* 61 */ array(4, ), - /* 62 */ array(4, ), - /* 63 */ array(4, ), - /* 64 */ array(4, ), - /* 65 */ array(4, ), - /* 66 */ array(4, ), - /* 67 */ array(12, ), - /* 68 */ array(12, ), - /* 69 */ array(12, ), - /* 70 */ array(10, ), - /* 71 */ array(), - /* 72 */ array(), - /* 73 */ array(), - /* 74 */ array(), - /* 75 */ array(), - /* 76 */ array(), - /* 77 */ array(), - /* 78 */ array(), - /* 79 */ array(), - /* 80 */ array(), - /* 81 */ array(), - /* 82 */ array(), - /* 83 */ array(), - /* 84 */ array(), - /* 85 */ array(), - /* 86 */ array(), - /* 87 */ array(), - /* 88 */ array(), - /* 89 */ array(), - /* 90 */ array(), - /* 91 */ array(), - /* 92 */ array(), - /* 93 */ array(), - /* 94 */ array(), - /* 95 */ array(), - /* 96 */ array(), - /* 97 */ array(), - /* 98 */ array(), - /* 99 */ array(), - /* 100 */ array(), - /* 101 */ array(), - /* 102 */ array(), - /* 103 */ array(), - /* 104 */ array(), - /* 105 */ array(), - /* 106 */ array(), - /* 107 */ array(), - /* 108 */ array(), - /* 109 */ array(), - /* 110 */ array(), - /* 111 */ array(), - /* 112 */ array(), - /* 113 */ array(), - /* 114 */ array(), - /* 115 */ array(), - /* 116 */ array(), - /* 117 */ array(), - /* 118 */ array(), - /* 119 */ array(), - /* 120 */ array(), - /* 121 */ array(), - /* 122 */ array(), - /* 123 */ array(), - /* 124 */ array(), - /* 125 */ array(), - /* 126 */ array(), - /* 127 */ array(), - /* 128 */ array(), - /* 129 */ array(), - /* 130 */ array(), - /* 131 */ array(), - /* 132 */ array(), - /* 133 */ array(), - /* 134 */ array(), -); - static public $yy_default = array( - /* 0 */ 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, - /* 10 */ 228, 228, 228, 228, 228, 139, 137, 228, 228, 228, - /* 20 */ 228, 228, 152, 141, 228, 228, 228, 228, 228, 228, - /* 30 */ 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, - /* 40 */ 228, 185, 187, 189, 191, 135, 212, 215, 221, 228, - /* 50 */ 228, 213, 183, 209, 228, 228, 223, 193, 205, 163, - /* 60 */ 176, 164, 203, 201, 195, 197, 199, 167, 175, 168, - /* 70 */ 228, 217, 153, 204, 206, 190, 154, 218, 216, 214, - /* 80 */ 159, 158, 157, 169, 156, 155, 202, 173, 225, 196, - /* 90 */ 226, 136, 140, 227, 186, 222, 188, 160, 220, 200, - /* 100 */ 198, 172, 219, 211, 142, 180, 143, 144, 146, 145, - /* 110 */ 224, 181, 207, 170, 194, 166, 182, 138, 147, 148, - /* 120 */ 184, 210, 174, 165, 171, 162, 177, 178, 150, 149, - /* 130 */ 151, 179, 192, 208, 161, -); -/* The next thing included is series of defines which control -** various aspects of the generated parser. -** self::YYNOCODE is a number which corresponds -** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash -** table. -** self::YYFALLBACK If defined, this indicates that one or more tokens -** have fall-back values which should be used if the -** original value of the token will not parse. -** self::YYSTACKDEPTH is the maximum depth of the parser's stack. -** self::YYNSTATE the combined number of states. -** self::YYNRULE the number of rules in the grammar -** self::YYERRORSYMBOL is the code number of the error symbol. If not -** defined, then do no error processing. -*/ - const YYNOCODE = 45; - const YYSTACKDEPTH = 100; - const YYNSTATE = 135; - const YYNRULE = 93; - const YYERRORSYMBOL = 28; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - /** The next table maps tokens into fallback tokens. If a construct - * like the following: - * - * %fallback ID X Y Z. - * - * appears in the grammer, then ID becomes a fallback token for X, Y, - * and Z. Whenever one of the tokens X, Y, or Z is input to the parser - * but it does not parse, the type of the token is changed to ID and - * the parse is retried before an error is thrown. - */ - static public $yyFallback = array( - ); - /** - * Turn parser tracing on by giving a stream to which to write the trace - * and a prompt to preface each trace message. Tracing is turned off - * by making either argument NULL - * - * Inputs: - * - * - A stream resource to which trace output should be written. - * If NULL, then tracing is turned off. - * - A prefix string written at the beginning of every - * line of trace output. If NULL, then tracing is - * turned off. - * - * Outputs: - * - * - None. - * @param resource - * @param string - */ - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - /** - * Output debug information to output (php://output stream) - */ - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = ''; - } - - /** - * @var resource|0 - */ - static public $yyTraceFILE; - /** - * String to prepend to debug output - * @var string|0 - */ - static public $yyTracePrompt; - /** - * @var int - */ - public $yyidx; /* Index of top element in stack */ - /** - * @var int - */ - public $yyerrcnt; /* Shifts left before out of the error */ - /** - * @var array - */ - public $yystack = array(); /* The parser's stack */ - - /** - * For tracing shifts, the names of all terminals and nonterminals - * are required. The following table supplies these names - * @var array - */ - static public $yyTokenName = array( - '$', 'OPENPAREN', 'OPENASSERTION', 'BAR', - 'MULTIPLIER', 'MATCHSTART', 'MATCHEND', 'OPENCHARCLASS', - 'CLOSECHARCLASS', 'NEGATE', 'TEXT', 'ESCAPEDBACKSLASH', - 'HYPHEN', 'BACKREFERENCE', 'COULDBEBACKREF', 'CONTROLCHAR', - 'FULLSTOP', 'INTERNALOPTIONS', 'CLOSEPAREN', 'COLON', - 'POSITIVELOOKAHEAD', 'NEGATIVELOOKAHEAD', 'POSITIVELOOKBEHIND', 'NEGATIVELOOKBEHIND', - 'PATTERNNAME', 'ONCEONLY', 'COMMENT', 'RECUR', - 'error', 'start', 'pattern', 'basic_pattern', - 'basic_text', 'character_class', 'assertion', 'grouping', - 'lookahead', 'lookbehind', 'subpattern', 'onceonly', - 'comment', 'recur', 'conditional', 'character_class_contents', - ); - - /** - * For tracing reduce actions, the names of all rules are required. - * @var array - */ - static public $yyRuleName = array( - /* 0 */ "start ::= pattern", - /* 1 */ "pattern ::= MATCHSTART basic_pattern MATCHEND", - /* 2 */ "pattern ::= MATCHSTART basic_pattern", - /* 3 */ "pattern ::= basic_pattern MATCHEND", - /* 4 */ "pattern ::= basic_pattern", - /* 5 */ "pattern ::= pattern BAR pattern", - /* 6 */ "basic_pattern ::= basic_text", - /* 7 */ "basic_pattern ::= character_class", - /* 8 */ "basic_pattern ::= assertion", - /* 9 */ "basic_pattern ::= grouping", - /* 10 */ "basic_pattern ::= lookahead", - /* 11 */ "basic_pattern ::= lookbehind", - /* 12 */ "basic_pattern ::= subpattern", - /* 13 */ "basic_pattern ::= onceonly", - /* 14 */ "basic_pattern ::= comment", - /* 15 */ "basic_pattern ::= recur", - /* 16 */ "basic_pattern ::= conditional", - /* 17 */ "basic_pattern ::= basic_pattern basic_text", - /* 18 */ "basic_pattern ::= basic_pattern character_class", - /* 19 */ "basic_pattern ::= basic_pattern assertion", - /* 20 */ "basic_pattern ::= basic_pattern grouping", - /* 21 */ "basic_pattern ::= basic_pattern lookahead", - /* 22 */ "basic_pattern ::= basic_pattern lookbehind", - /* 23 */ "basic_pattern ::= basic_pattern subpattern", - /* 24 */ "basic_pattern ::= basic_pattern onceonly", - /* 25 */ "basic_pattern ::= basic_pattern comment", - /* 26 */ "basic_pattern ::= basic_pattern recur", - /* 27 */ "basic_pattern ::= basic_pattern conditional", - /* 28 */ "character_class ::= OPENCHARCLASS character_class_contents CLOSECHARCLASS", - /* 29 */ "character_class ::= OPENCHARCLASS NEGATE character_class_contents CLOSECHARCLASS", - /* 30 */ "character_class ::= OPENCHARCLASS character_class_contents CLOSECHARCLASS MULTIPLIER", - /* 31 */ "character_class ::= OPENCHARCLASS NEGATE character_class_contents CLOSECHARCLASS MULTIPLIER", - /* 32 */ "character_class_contents ::= TEXT", - /* 33 */ "character_class_contents ::= ESCAPEDBACKSLASH", - /* 34 */ "character_class_contents ::= ESCAPEDBACKSLASH HYPHEN TEXT", - /* 35 */ "character_class_contents ::= TEXT HYPHEN TEXT", - /* 36 */ "character_class_contents ::= TEXT HYPHEN ESCAPEDBACKSLASH", - /* 37 */ "character_class_contents ::= BACKREFERENCE", - /* 38 */ "character_class_contents ::= COULDBEBACKREF", - /* 39 */ "character_class_contents ::= character_class_contents CONTROLCHAR", - /* 40 */ "character_class_contents ::= character_class_contents ESCAPEDBACKSLASH", - /* 41 */ "character_class_contents ::= character_class_contents TEXT", - /* 42 */ "character_class_contents ::= character_class_contents ESCAPEDBACKSLASH HYPHEN CONTROLCHAR", - /* 43 */ "character_class_contents ::= character_class_contents ESCAPEDBACKSLASH HYPHEN TEXT", - /* 44 */ "character_class_contents ::= character_class_contents TEXT HYPHEN ESCAPEDBACKSLASH", - /* 45 */ "character_class_contents ::= character_class_contents TEXT HYPHEN TEXT", - /* 46 */ "character_class_contents ::= character_class_contents BACKREFERENCE", - /* 47 */ "character_class_contents ::= character_class_contents COULDBEBACKREF", - /* 48 */ "basic_text ::= TEXT", - /* 49 */ "basic_text ::= TEXT MULTIPLIER", - /* 50 */ "basic_text ::= FULLSTOP", - /* 51 */ "basic_text ::= FULLSTOP MULTIPLIER", - /* 52 */ "basic_text ::= CONTROLCHAR", - /* 53 */ "basic_text ::= CONTROLCHAR MULTIPLIER", - /* 54 */ "basic_text ::= ESCAPEDBACKSLASH", - /* 55 */ "basic_text ::= ESCAPEDBACKSLASH MULTIPLIER", - /* 56 */ "basic_text ::= BACKREFERENCE", - /* 57 */ "basic_text ::= BACKREFERENCE MULTIPLIER", - /* 58 */ "basic_text ::= COULDBEBACKREF", - /* 59 */ "basic_text ::= COULDBEBACKREF MULTIPLIER", - /* 60 */ "basic_text ::= basic_text TEXT", - /* 61 */ "basic_text ::= basic_text TEXT MULTIPLIER", - /* 62 */ "basic_text ::= basic_text FULLSTOP", - /* 63 */ "basic_text ::= basic_text FULLSTOP MULTIPLIER", - /* 64 */ "basic_text ::= basic_text CONTROLCHAR", - /* 65 */ "basic_text ::= basic_text CONTROLCHAR MULTIPLIER", - /* 66 */ "basic_text ::= basic_text ESCAPEDBACKSLASH", - /* 67 */ "basic_text ::= basic_text ESCAPEDBACKSLASH MULTIPLIER", - /* 68 */ "basic_text ::= basic_text BACKREFERENCE", - /* 69 */ "basic_text ::= basic_text BACKREFERENCE MULTIPLIER", - /* 70 */ "basic_text ::= basic_text COULDBEBACKREF", - /* 71 */ "basic_text ::= basic_text COULDBEBACKREF MULTIPLIER", - /* 72 */ "assertion ::= OPENASSERTION INTERNALOPTIONS CLOSEPAREN", - /* 73 */ "assertion ::= OPENASSERTION INTERNALOPTIONS COLON pattern CLOSEPAREN", - /* 74 */ "grouping ::= OPENASSERTION COLON pattern CLOSEPAREN", - /* 75 */ "grouping ::= OPENASSERTION COLON pattern CLOSEPAREN MULTIPLIER", - /* 76 */ "conditional ::= OPENASSERTION OPENPAREN TEXT CLOSEPAREN pattern CLOSEPAREN MULTIPLIER", - /* 77 */ "conditional ::= OPENASSERTION OPENPAREN TEXT CLOSEPAREN pattern CLOSEPAREN", - /* 78 */ "conditional ::= OPENASSERTION lookahead pattern CLOSEPAREN", - /* 79 */ "conditional ::= OPENASSERTION lookahead pattern CLOSEPAREN MULTIPLIER", - /* 80 */ "conditional ::= OPENASSERTION lookbehind pattern CLOSEPAREN", - /* 81 */ "conditional ::= OPENASSERTION lookbehind pattern CLOSEPAREN MULTIPLIER", - /* 82 */ "lookahead ::= OPENASSERTION POSITIVELOOKAHEAD pattern CLOSEPAREN", - /* 83 */ "lookahead ::= OPENASSERTION NEGATIVELOOKAHEAD pattern CLOSEPAREN", - /* 84 */ "lookbehind ::= OPENASSERTION POSITIVELOOKBEHIND pattern CLOSEPAREN", - /* 85 */ "lookbehind ::= OPENASSERTION NEGATIVELOOKBEHIND pattern CLOSEPAREN", - /* 86 */ "subpattern ::= OPENASSERTION PATTERNNAME pattern CLOSEPAREN", - /* 87 */ "subpattern ::= OPENASSERTION PATTERNNAME pattern CLOSEPAREN MULTIPLIER", - /* 88 */ "subpattern ::= OPENPAREN pattern CLOSEPAREN", - /* 89 */ "subpattern ::= OPENPAREN pattern CLOSEPAREN MULTIPLIER", - /* 90 */ "onceonly ::= OPENASSERTION ONCEONLY pattern CLOSEPAREN", - /* 91 */ "comment ::= OPENASSERTION COMMENT CLOSEPAREN", - /* 92 */ "recur ::= OPENASSERTION RECUR CLOSEPAREN", - ); - - /** - * This function returns the symbolic name associated with a token - * value. - * @param int - * @return string - */ - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count(self::$yyTokenName)) { - return self::$yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - /** - * The following function deletes the value associated with a - * symbol. The symbol can be either a terminal or nonterminal. - * @param int the symbol code - * @param mixed the symbol's value - */ - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - /* Here is inserted the actions which take place when a - ** terminal or non-terminal is destroyed. This can happen - ** when the symbol is popped from the stack during a - ** reduce or during error processing or when a parser is - ** being destroyed before it is finished parsing. - ** - ** Note: during a reduce, the only symbols destroyed are those - ** which appear on the RHS of the rule, but which are not used - ** inside the C code. - */ - default: break; /* If no destructor action specified: do nothing */ - } - } - - /** - * Pop the parser's stack once. - * - * If there is a destructor routine associated with the token which - * is popped from the stack, then call it. - * - * Return the major token number for the symbol popped. - * @param PHP_LexerGenerator_Regex_yyParser - * @return int - */ - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . self::$yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - /** - * Deallocate and destroy a parser. Destructors are all called for - * all stack elements before shutting the parser down. - */ - function __destruct() - { - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - /** - * Based on the current state and parser stack, get a list of all - * possible lookahead tokens - * @param int - * @return array - */ - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected += self::$yyExpectedTokens[$nextstate]; - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new PHP_LexerGenerator_Regex_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - return array_unique($expected); - } - - /** - * Based on the parser state and current parser stack, determine whether - * the lookahead token is possible. - * - * The parser will convert the token value to an error token if not. This - * catches some unusual edge cases where the parser would fail. - * @param int - * @return bool - */ - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new PHP_LexerGenerator_Regex_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - /** - * Find the appropriate action for a parser given the terminal - * look-ahead token iLookAhead. - * - * If the look-ahead token is YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return YY_NO_ACTION. - * @param int The look-ahead token - */ - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - self::$yyTokenName[$iLookAhead] . " => " . - self::$yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Find the appropriate action for a parser given the non-terminal - * look-ahead token $iLookAhead. - * - * If the look-ahead token is self::YYNOCODE, then check to see if the action is - * independent of the look-ahead. If it is, return the action, otherwise - * return self::YY_NO_ACTION. - * @param int Current state number - * @param int The look-ahead token - */ - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - /** - * Perform a shift action. - * @param int The new state to shift in - * @param int The major token to shift in - * @param mixed the minor token to shift in - */ - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will execute if the parser - ** stack ever overflows */ - return; - } - $yytos = new PHP_LexerGenerator_Regex_yyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - self::$yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - /** - * The following table contains information about every rule that - * is used during the reduce. - * - * <pre> - * array( - * array( - * int $lhs; Symbol on the left-hand side of the rule - * int $nrhs; Number of right-hand side symbols in the rule - * ),... - * ); - * </pre> - */ - static public $yyRuleInfo = array( - array( 'lhs' => 29, 'rhs' => 1 ), - array( 'lhs' => 30, 'rhs' => 3 ), - array( 'lhs' => 30, 'rhs' => 2 ), - array( 'lhs' => 30, 'rhs' => 2 ), - array( 'lhs' => 30, 'rhs' => 1 ), - array( 'lhs' => 30, 'rhs' => 3 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 1 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 31, 'rhs' => 2 ), - array( 'lhs' => 33, 'rhs' => 3 ), - array( 'lhs' => 33, 'rhs' => 4 ), - array( 'lhs' => 33, 'rhs' => 4 ), - array( 'lhs' => 33, 'rhs' => 5 ), - array( 'lhs' => 43, 'rhs' => 1 ), - array( 'lhs' => 43, 'rhs' => 1 ), - array( 'lhs' => 43, 'rhs' => 3 ), - array( 'lhs' => 43, 'rhs' => 3 ), - array( 'lhs' => 43, 'rhs' => 3 ), - array( 'lhs' => 43, 'rhs' => 1 ), - array( 'lhs' => 43, 'rhs' => 1 ), - array( 'lhs' => 43, 'rhs' => 2 ), - array( 'lhs' => 43, 'rhs' => 2 ), - array( 'lhs' => 43, 'rhs' => 2 ), - array( 'lhs' => 43, 'rhs' => 4 ), - array( 'lhs' => 43, 'rhs' => 4 ), - array( 'lhs' => 43, 'rhs' => 4 ), - array( 'lhs' => 43, 'rhs' => 4 ), - array( 'lhs' => 43, 'rhs' => 2 ), - array( 'lhs' => 43, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 1 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 1 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 1 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 1 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 1 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 1 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 3 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 3 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 3 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 3 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 3 ), - array( 'lhs' => 32, 'rhs' => 2 ), - array( 'lhs' => 32, 'rhs' => 3 ), - array( 'lhs' => 34, 'rhs' => 3 ), - array( 'lhs' => 34, 'rhs' => 5 ), - array( 'lhs' => 35, 'rhs' => 4 ), - array( 'lhs' => 35, 'rhs' => 5 ), - array( 'lhs' => 42, 'rhs' => 7 ), - array( 'lhs' => 42, 'rhs' => 6 ), - array( 'lhs' => 42, 'rhs' => 4 ), - array( 'lhs' => 42, 'rhs' => 5 ), - array( 'lhs' => 42, 'rhs' => 4 ), - array( 'lhs' => 42, 'rhs' => 5 ), - array( 'lhs' => 36, 'rhs' => 4 ), - array( 'lhs' => 36, 'rhs' => 4 ), - array( 'lhs' => 37, 'rhs' => 4 ), - array( 'lhs' => 37, 'rhs' => 4 ), - array( 'lhs' => 38, 'rhs' => 4 ), - array( 'lhs' => 38, 'rhs' => 5 ), - array( 'lhs' => 38, 'rhs' => 3 ), - array( 'lhs' => 38, 'rhs' => 4 ), - array( 'lhs' => 39, 'rhs' => 4 ), - array( 'lhs' => 40, 'rhs' => 3 ), - array( 'lhs' => 41, 'rhs' => 3 ), - ); - - /** - * The following table contains a mapping of reduce action to method name - * that handles the reduction. - * - * If a rule is not set, it has no handler. - */ - static public $yyReduceMap = array( - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, - 6 => 4, - 7 => 4, - 9 => 4, - 10 => 4, - 12 => 4, - 13 => 4, - 14 => 4, - 15 => 4, - 16 => 4, - 5 => 5, - 17 => 17, - 18 => 17, - 20 => 17, - 21 => 17, - 23 => 17, - 24 => 17, - 25 => 17, - 26 => 17, - 27 => 17, - 28 => 28, - 29 => 29, - 30 => 30, - 31 => 31, - 32 => 32, - 48 => 32, - 50 => 32, - 33 => 33, - 54 => 33, - 34 => 34, - 35 => 35, - 36 => 36, - 37 => 37, - 56 => 37, - 38 => 38, - 58 => 38, - 39 => 39, - 64 => 39, - 40 => 40, - 66 => 40, - 41 => 41, - 60 => 41, - 62 => 41, - 42 => 42, - 43 => 43, - 44 => 44, - 45 => 45, - 46 => 46, - 68 => 46, - 47 => 47, - 70 => 47, - 49 => 49, - 51 => 49, - 52 => 52, - 53 => 53, - 55 => 55, - 57 => 57, - 59 => 59, - 61 => 61, - 63 => 61, - 65 => 65, - 67 => 67, - 69 => 69, - 71 => 71, - 72 => 72, - 73 => 73, - 74 => 74, - 75 => 75, - 76 => 76, - 77 => 77, - 78 => 78, - 79 => 79, - 80 => 80, - 84 => 80, - 81 => 81, - 82 => 82, - 83 => 83, - 85 => 85, - 86 => 86, - 87 => 87, - 88 => 88, - 89 => 89, - 90 => 90, - 91 => 91, - 92 => 92, - ); - /* Beginning here are the reduction cases. A typical example - ** follows: - ** #line <lineno> <grammarfile> - ** function yy_r0($yymsp){ ... } // User supplied code - ** #line <lineno> <thisfile> - */ -#line 47 "Parser.y" - function yy_r0(){ - $this->yystack[$this->yyidx + 0]->minor->string = str_replace('"', '\\"', $this->yystack[$this->yyidx + 0]->minor->string); - $x = $this->yystack[$this->yyidx + 0]->minor->metadata; - $x['subpatterns'] = $this->_subpatterns; - $this->yystack[$this->yyidx + 0]->minor->metadata = $x; - $this->_subpatterns = 0; - $this->result = $this->yystack[$this->yyidx + 0]->minor; - } -#line 1259 "Parser.php" -#line 56 "Parser.y" - function yy_r1(){ - throw new PHP_LexerGenerator_Exception('Cannot include start match "' . - $this->yystack[$this->yyidx + -2]->minor . '" or end match "' . $this->yystack[$this->yyidx + 0]->minor . '"'); - } -#line 1265 "Parser.php" -#line 60 "Parser.y" - function yy_r2(){ - throw new PHP_LexerGenerator_Exception('Cannot include start match "' . - B . '"'); - } -#line 1271 "Parser.php" -#line 64 "Parser.y" - function yy_r3(){ - throw new PHP_LexerGenerator_Exception('Cannot include end match "' . $this->yystack[$this->yyidx + 0]->minor . '"'); - } -#line 1276 "Parser.php" -#line 67 "Parser.y" - function yy_r4(){$this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -#line 1279 "Parser.php" -#line 68 "Parser.y" - function yy_r5(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor->string . '|' . $this->yystack[$this->yyidx + 0]->minor->string, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor['pattern'] . '|' . $this->yystack[$this->yyidx + 0]->minor['pattern'])); - } -#line 1285 "Parser.php" -#line 84 "Parser.y" - function yy_r17(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor->string, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor['pattern'] . $this->yystack[$this->yyidx + 0]->minor['pattern'])); - } -#line 1291 "Parser.php" -#line 123 "Parser.y" - function yy_r28(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('[' . $this->yystack[$this->yyidx + -1]->minor->string . ']', array( - 'pattern' => '[' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ']')); - } -#line 1297 "Parser.php" -#line 127 "Parser.y" - function yy_r29(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('[^' . $this->yystack[$this->yyidx + -1]->minor->string . ']', array( - 'pattern' => '[^' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ']')); - } -#line 1303 "Parser.php" -#line 131 "Parser.y" - function yy_r30(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('[' . $this->yystack[$this->yyidx + -2]->minor->string . ']' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '[' . $this->yystack[$this->yyidx + -2]->minor['pattern'] . ']' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1309 "Parser.php" -#line 135 "Parser.y" - function yy_r31(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('[^' . $this->yystack[$this->yyidx + -2]->minor->string . ']' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '[^' . $this->yystack[$this->yyidx + -2]->minor['pattern'] . ']' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1315 "Parser.php" -#line 140 "Parser.y" - function yy_r32(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1321 "Parser.php" -#line 144 "Parser.y" - function yy_r33(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1327 "Parser.php" -#line 148 "Parser.y" - function yy_r34(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1333 "Parser.php" -#line 152 "Parser.y" - function yy_r35(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1339 "Parser.php" -#line 156 "Parser.y" - function yy_r36(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor . '-\\\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1345 "Parser.php" -#line 160 "Parser.y" - function yy_r37(){ - if (((int) substr($this->yystack[$this->yyidx + 0]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception('Back-reference refers to non-existent ' . - 'sub-pattern ' . substr($this->yystack[$this->yyidx + 0]->minor, 1)); - } - $this->yystack[$this->yyidx + 0]->minor = substr($this->yystack[$this->yyidx + 0]->minor, 1); - // adjust back-reference for containing () - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex), array( - 'pattern' => '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + 0]->minor))); - } -#line 1357 "Parser.php" -#line 170 "Parser.y" - function yy_r38(){ - if (((int) substr($this->yystack[$this->yyidx + 0]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception($this->yystack[$this->yyidx + 0]->minor . ' will be interpreted as an invalid' . - ' back-reference, use "\\0' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . ' for octal'); - } - $this->yystack[$this->yyidx + 0]->minor = substr($this->yystack[$this->yyidx + 0]->minor, 1); - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex), array( - 'pattern' => '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + 0]->minor))); - } -#line 1368 "Parser.php" -#line 179 "Parser.y" - function yy_r39(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor->string . '\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor['pattern'] . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1374 "Parser.php" -#line 183 "Parser.y" - function yy_r40(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor->string . '\\\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor['pattern'] . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1380 "Parser.php" -#line 187 "Parser.y" - function yy_r41(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor->string . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor['pattern'] . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1386 "Parser.php" -#line 191 "Parser.y" - function yy_r42(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -3]->minor->string . '\\\\' . $this->yystack[$this->yyidx + -2]->minor . '-\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -3]->minor['pattern'] . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1392 "Parser.php" -#line 195 "Parser.y" - function yy_r43(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -3]->minor->string . '\\\\' . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -3]->minor['pattern'] . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1398 "Parser.php" -#line 199 "Parser.y" - function yy_r44(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -3]->minor->string . $this->yystack[$this->yyidx + -2]->minor . '-\\\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -3]->minor['pattern'] . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1404 "Parser.php" -#line 203 "Parser.y" - function yy_r45(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -3]->minor->string . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -3]->minor['pattern'] . $this->yystack[$this->yyidx + -2]->minor . '-' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1410 "Parser.php" -#line 207 "Parser.y" - function yy_r46(){ - if (((int) substr($this->yystack[$this->yyidx + 0]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception('Back-reference refers to non-existent ' . - 'sub-pattern ' . substr($this->yystack[$this->yyidx + 0]->minor, 1)); - } - $this->yystack[$this->yyidx + 0]->minor = substr($this->yystack[$this->yyidx + 0]->minor, 1); - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor->string . '\\\\' . ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex), array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor['pattern'] . '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + 0]->minor))); - } -#line 1421 "Parser.php" -#line 216 "Parser.y" - function yy_r47(){ - if (((int) substr($this->yystack[$this->yyidx + 0]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception($this->yystack[$this->yyidx + 0]->minor . ' will be interpreted as an invalid' . - ' back-reference, use "\\0' . substr($this->yystack[$this->yyidx + 0]->minor, 1) . ' for octal'); - } - $this->yystack[$this->yyidx + 0]->minor = substr($this->yystack[$this->yyidx + 0]->minor, 1); - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor->string . '\\\\' . ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex), array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor['pattern'] . '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + 0]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + 0]->minor))); - } -#line 1432 "Parser.php" -#line 230 "Parser.y" - function yy_r49(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1438 "Parser.php" -#line 242 "Parser.y" - function yy_r52(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1444 "Parser.php" -#line 246 "Parser.y" - function yy_r53(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\' . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1450 "Parser.php" -#line 254 "Parser.y" - function yy_r55(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1456 "Parser.php" -#line 268 "Parser.y" - function yy_r57(){ - if (((int) substr($this->yystack[$this->yyidx + -1]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception('Back-reference refers to non-existent ' . - 'sub-pattern ' . substr($this->yystack[$this->yyidx + -1]->minor, 1)); - } - $this->yystack[$this->yyidx + -1]->minor = substr($this->yystack[$this->yyidx + -1]->minor, 1); - // adjust back-reference for containing () - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1468 "Parser.php" -#line 287 "Parser.y" - function yy_r59(){ - if (((int) substr($this->yystack[$this->yyidx + -1]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception($this->yystack[$this->yyidx + -1]->minor . ' will be interpreted as an invalid' . - ' back-reference, use "\\0' . substr($this->yystack[$this->yyidx + -1]->minor, 1) . ' for octal'); - } - $this->yystack[$this->yyidx + -1]->minor = substr($this->yystack[$this->yyidx + -1]->minor, 1); - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('\\\\' . ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1479 "Parser.php" -#line 300 "Parser.y" - function yy_r61(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor->string . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor['pattern'] . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1485 "Parser.php" -#line 316 "Parser.y" - function yy_r65(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor->string . '\\' . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor['pattern'] . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1491 "Parser.php" -#line 324 "Parser.y" - function yy_r67(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor->string . '\\\\' . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor['pattern'] . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1497 "Parser.php" -#line 337 "Parser.y" - function yy_r69(){ - if (((int) substr($this->yystack[$this->yyidx + -1]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception('Back-reference refers to non-existent ' . - 'sub-pattern ' . substr($this->yystack[$this->yyidx + -1]->minor, 1)); - } - $this->yystack[$this->yyidx + -1]->minor = substr($this->yystack[$this->yyidx + -1]->minor, 1); - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor->string . '\\\\' . ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor['pattern'] . '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1508 "Parser.php" -#line 355 "Parser.y" - function yy_r71(){ - if (((int) substr($this->yystack[$this->yyidx + -1]->minor, 1)) > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception($this->yystack[$this->yyidx + -1]->minor . ' will be interpreted as an invalid' . - ' back-reference, use "\\0' . substr($this->yystack[$this->yyidx + -1]->minor, 1) . ' for octal'); - } - $this->yystack[$this->yyidx + -1]->minor = substr($this->yystack[$this->yyidx + -1]->minor, 1); - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken($this->yystack[$this->yyidx + -2]->minor->string . '\\\\' . ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => $this->yystack[$this->yyidx + -2]->minor['pattern'] . '\\' . ($this->_updatePattern ? ($this->yystack[$this->yyidx + -1]->minor + $this->_patternIndex) : $this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1519 "Parser.php" -#line 365 "Parser.y" - function yy_r72(){ - throw new PHP_LexerGenerator_Exception('Error: cannot set preg options directly with "' . - $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + 0]->minor . '"'); - } -#line 1525 "Parser.php" -#line 369 "Parser.y" - function yy_r73(){ - throw new PHP_LexerGenerator_Exception('Error: cannot set preg options directly with "' . - $this->yystack[$this->yyidx + -4]->minor . $this->yystack[$this->yyidx + -3]->minor . $this->yystack[$this->yyidx + -2]->minor . $this->yystack[$this->yyidx + -1]->minor['pattern'] . $this->yystack[$this->yyidx + 0]->minor . '"'); - } -#line 1531 "Parser.php" -#line 374 "Parser.y" - function yy_r74(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?:' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(?:' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1537 "Parser.php" -#line 378 "Parser.y" - function yy_r75(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?:' . $this->yystack[$this->yyidx + -2]->minor->string . ')' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '(?:' . $this->yystack[$this->yyidx + -2]->minor['pattern'] . ')' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1543 "Parser.php" -#line 383 "Parser.y" - function yy_r76(){ - if ($this->yystack[$this->yyidx + -4]->minor != 'R') { - if (!preg_match('/[1-9][0-9]*/', $this->yystack[$this->yyidx + -4]->minor)) { - throw new PHP_LexerGenerator_Exception('Invalid sub-pattern conditional: "(?(' . $this->yystack[$this->yyidx + -4]->minor . ')"'); - } - if ($this->yystack[$this->yyidx + -4]->minor > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception('sub-pattern conditional . "' . $this->yystack[$this->yyidx + -4]->minor . '" refers to non-existent sub-pattern'); - } - } else { - throw new PHP_LexerGenerator_Exception('Recursive conditional (?(' . $this->yystack[$this->yyidx + -4]->minor . ')" cannot work in this lexer'); - } - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?(' . $this->yystack[$this->yyidx + -4]->minor . ')' . $this->yystack[$this->yyidx + -2]->minor->string . ')' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '(?(' . $this->yystack[$this->yyidx + -4]->minor . ')' . $this->yystack[$this->yyidx + -2]->minor['pattern'] . ')' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1559 "Parser.php" -#line 397 "Parser.y" - function yy_r77(){ - if ($this->yystack[$this->yyidx + -3]->minor != 'R') { - if (!preg_match('/[1-9][0-9]*/', $this->yystack[$this->yyidx + -3]->minor)) { - throw new PHP_LexerGenerator_Exception('Invalid sub-pattern conditional: "(?(' . $this->yystack[$this->yyidx + -3]->minor . ')"'); - } - if ($this->yystack[$this->yyidx + -3]->minor > $this->_subpatterns) { - throw new PHP_LexerGenerator_Exception('sub-pattern conditional . "' . $this->yystack[$this->yyidx + -3]->minor . '" refers to non-existent sub-pattern'); - } - } else { - throw new PHP_LexerGenerator_Exception('Recursive conditional (?(' . $this->yystack[$this->yyidx + -3]->minor . ')" cannot work in this lexer'); - } - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?(' . $this->yystack[$this->yyidx + -3]->minor . ')' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(?(' . $this->yystack[$this->yyidx + -3]->minor . ')' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1575 "Parser.php" -#line 411 "Parser.y" - function yy_r78(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?' . $this->yystack[$this->yyidx + -2]->minor->string . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(?' . $this->yystack[$this->yyidx + -2]->minor['pattern'] . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1581 "Parser.php" -#line 415 "Parser.y" - function yy_r79(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?' . $this->yystack[$this->yyidx + -3]->minor->string . $this->yystack[$this->yyidx + -2]->minor->string . ')' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '(?' . $this->yystack[$this->yyidx + -3]->minor['pattern'] . $this->yystack[$this->yyidx + -2]->minor['pattern'] . ')' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1587 "Parser.php" -#line 419 "Parser.y" - function yy_r80(){ - throw new PHP_LexerGenerator_Exception('Look-behind assertions cannot be used: "(?<=' . - $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')'); - } -#line 1593 "Parser.php" -#line 423 "Parser.y" - function yy_r81(){ - throw new PHP_LexerGenerator_Exception('Look-behind assertions cannot be used: "(?<=' . - $this->yystack[$this->yyidx + -2]->minor['pattern'] . ')'); - } -#line 1599 "Parser.php" -#line 428 "Parser.y" - function yy_r82(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?=' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern'=> '(?=' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1605 "Parser.php" -#line 432 "Parser.y" - function yy_r83(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?!' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(?!' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1611 "Parser.php" -#line 441 "Parser.y" - function yy_r85(){ - throw new PHP_LexerGenerator_Exception('Look-behind assertions cannot be used: "(?<!' . - $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')'); - } -#line 1617 "Parser.php" -#line 446 "Parser.y" - function yy_r86(){ - throw new PHP_LexerGenerator_Exception('Cannot use named sub-patterns: "(' . - $this->yystack[$this->yyidx + -2]->minor['pattern'] . ')'); - } -#line 1623 "Parser.php" -#line 450 "Parser.y" - function yy_r87(){ - throw new PHP_LexerGenerator_Exception('Cannot use named sub-patterns: "(' . - $this->yystack[$this->yyidx + -3]->minor['pattern'] . ')'); - } -#line 1629 "Parser.php" -#line 454 "Parser.y" - function yy_r88(){ - $this->_subpatterns++; - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1636 "Parser.php" -#line 459 "Parser.y" - function yy_r89(){ - $this->_subpatterns++; - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(' . $this->yystack[$this->yyidx + -2]->minor->string . ')' . $this->yystack[$this->yyidx + 0]->minor, array( - 'pattern' => '(' . $this->yystack[$this->yyidx + -2]->minor['pattern'] . ')' . $this->yystack[$this->yyidx + 0]->minor)); - } -#line 1643 "Parser.php" -#line 465 "Parser.y" - function yy_r90(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(?>' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(?>' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1649 "Parser.php" -#line 470 "Parser.y" - function yy_r91(){ - $this->_retvalue = new PHP_LexerGenerator_ParseryyToken('(' . $this->yystack[$this->yyidx + -1]->minor->string . ')', array( - 'pattern' => '(' . $this->yystack[$this->yyidx + -1]->minor['pattern'] . ')')); - } -#line 1655 "Parser.php" -#line 475 "Parser.y" - function yy_r92(){ - throw new Exception('(?R) cannot work in this lexer'); - } -#line 1660 "Parser.php" - - /** - * placeholder for the left hand side in a reduce operation. - * - * For a parser with a rule like this: - * <pre> - * rule(A) ::= B. { A = 1; } - * </pre> - * - * The parser will translate to something like: - * - * <code> - * function yy_r0(){$this->_retvalue = 1;} - * </code> - */ - private $_retvalue; - - /** - * Perform a reduce action and the shift that must immediately - * follow the reduce. - * - * For a rule such as: - * - * <pre> - * A ::= B blah C. { dosomething(); } - * </pre> - * - * This function will first call the action, if any, ("dosomething();" in our - * example), and then it will pop three states from the stack, - * one for each entry on the right-hand side of the expression - * (B, blah, and C in our example rule), and then push the result of the action - * back on to the stack with the resulting state reduced to (as described in the .out - * file) - * @param int Number of the rule by which to reduce - */ - function yy_reduce($yyruleno) - { - //int $yygoto; /* The next state */ - //int $yyact; /* The next action */ - //mixed $yygotominor; /* The LHS of the rule reduced */ - //PHP_LexerGenerator_Regex_yyStackEntry $yymsp; /* The top of the parser's stack */ - //int $yysize; /* Amount to pop the stack */ - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - /* If we are not debugging and the reduce action popped at least - ** one element off the stack, then we can push the new element back - ** onto the stack here, and skip the stack overflow test in yy_shift(). - ** That gives a significant speed improvement. */ - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new PHP_LexerGenerator_Regex_yyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - /** - * The following code executes when the parse fails - * - * Code from %parse_fail is inserted here - */ - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser fails */ - } - - /** - * The following code executes when a syntax error first occurs. - * - * %syntax_error code is inserted here - * @param int The major type of the error token - * @param mixed The minor type of the error token - */ - function yy_syntax_error($yymajor, $TOKEN) - { -#line 6 "Parser.y" - -/* ?><?php */ - // we need to add auto-escaping of all stuff that needs it for result. - // and then validate the original regex only - echo "Syntax Error on line " . $this->_lex->line . ": token '" . - $this->_lex->value . "' while parsing rule:"; - foreach ($this->yystack as $entry) { - echo $this->tokenName($entry->major) . ' '; - } - foreach ($this->yy_get_expected_tokens($yymajor) as $token) { - $expect[] = self::$yyTokenName[$token]; - } - throw new Exception('Unexpected ' . $this->tokenName($yymajor) . '(' . $TOKEN - . '), expected one of: ' . implode(',', $expect)); -#line 1788 "Parser.php" - } - - /** - * The following is executed when the parser accepts - * - * %parse_accept code is inserted here - */ - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } - /* Here code is inserted which will be executed whenever the - ** parser accepts */ - } - - /** - * The main parser program. - * - * The first argument is the major token number. The second is - * the token value string as scanned from the input. - * - * @param int the token number - * @param mixed the token value - * @param mixed any extra arguments that should be passed to handlers - */ - function doParse($yymajor, $yytokenvalue) - { -// $yyact; /* The parser action. */ -// $yyendofinput; /* True if we are at the end of input */ - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - /* (re)initialize the parser, if necessary */ - if ($this->yyidx === null || $this->yyidx < 0) { - /* if ($yymajor == 0) return; // not sure why this was here... */ - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new PHP_LexerGenerator_Regex_yyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - /* A syntax error has occurred. - ** The response to an error depends upon whether or not the - ** grammar defines an error token "ERROR". - ** - ** This is what we do if the grammar does define ERROR: - ** - ** * Call the %syntax_error function. - ** - ** * Begin popping the stack until we enter a state where - ** it is legal to shift the error symbol, then shift - ** the error symbol. - ** - ** * Set the error count to three. - ** - ** * Begin accepting and shifting new tokens. No new error - ** processing will occur until three tokens have been - ** shifted successfully. - ** - */ - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, self::$yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - /* YYERRORSYMBOL is not defined */ - /* This is what we do if the grammar does not define ERROR: - ** - ** * Report an error message, and throw away the input token. - ** - ** * If the input token is $, then fail the parse. - ** - ** As before, subsequent error messages are suppressed until - ** three input tokens have been successfully shifted. - */ - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/LexerGenerator/cli.php
Deleted
@@ -1,4 +0,0 @@ -<?php -require_once './LexerGenerator.php'; -$a = new PHP_LexerGenerator($_SERVER['argv'][1]); -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator.php
Deleted
@@ -1,760 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * There are a few PHP-specific changes to the lemon parser generator. - * - * - %extra_argument is removed, as class constructor can be used to - * pass in extra information - * - %token_type and company are irrelevant in PHP, and so are removed - * - %declare_class is added to define the parser class name and any - * implements/extends information - * - %include_class is added to allow insertion of extra class information - * such as constants, a class constructor, etc. - * - * Other changes make the parser more robust, and also make reporting - * syntax errors simpler. Detection of expected tokens eliminates some - * problematic edge cases where an unexpected token could cause the parser - * to simply accept input. - * - * Otherwise, the file format is identical to the Lemon parser generator - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: ParserGenerator.php,v 1.2 2006/12/16 04:01:58 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/**#@+ - * Basic components of the parser generator - */ -require_once './ParserGenerator/Action.php'; -require_once './ParserGenerator/ActionTable.php'; -require_once './ParserGenerator/Config.php'; -require_once './ParserGenerator/Data.php'; -require_once './ParserGenerator/Symbol.php'; -require_once './ParserGenerator/Rule.php'; -require_once './ParserGenerator/Parser.php'; -require_once './ParserGenerator/PropagationLink.php'; -require_once './ParserGenerator/State.php'; -/**#@-*/ -/** - * The basic home class for the parser generator - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - * @example Lempar.php - * @example examples/Parser.y Sample parser file format (PHP_LexerGenerator's parser) - * @example examples/Parser.php Sample parser file format PHP code (PHP_LexerGenerator's parser) - */ -class PHP_ParserGenerator -{ - /** - * Set this to 1 to turn on debugging of Lemon's parsing of - * grammar files. - */ - const DEBUG = 0; - const MAXRHS = 1000; - const OPT_FLAG = 1, OPT_INT = 2, OPT_DBL = 3, OPT_STR = 4, - OPT_FFLAG = 5, OPT_FINT = 6, OPT_FDBL = 7, OPT_FSTR = 8; - public $azDefine = array(); - private static $options = array( - 'b' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'basisflag', - 'message' => 'Print only the basis in report.' - ), - 'c' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'compress', - 'message' => 'Don\'t compress the action table.' - ), - 'D' => array( - 'type' => self::OPT_FSTR, - 'arg' => 'handle_D_option', - 'message' => 'Define an %ifdef macro.' - ), - 'g' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'rpflag', - 'message' => 'Print grammar without actions.' - ), - 'm' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'mhflag', - 'message' => 'Output a makeheaders compatible file' - ), - 'q' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'quiet', - 'message' => '(Quiet) Don\'t print the report file.' - ), - 's' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'statistics', - 'message' => 'Print parser stats to standard output.' - ), - 'x' => array( - 'type' => self::OPT_FLAG, - 'arg' => 'version', - 'message' => 'Print the version number.' - ) - ); - - private $basisflag = 0; - private $compress = 0; - private $rpflag = 0; - private $mhflag = 0; - private $quiet = 0; - private $statistics = 0; - private $version = 0; - private $size; - /** - * Process a flag command line argument. - * @param int - * @param array - * @return int - */ - function handleflags($i, $argv) - { - if (!isset($argv[1]) || !isset(self::$options[$argv[$i][1]])) { - throw new Exception('Command line syntax error: undefined option "' . $argv[$i] . '"'); - } - $v = self::$options[$argv[$i][1]] == '-'; - if (self::$options[$argv[$i][1]]['type'] == self::OPT_FLAG) { - $this->{self::$options[$argv[$i][1]]['arg']} = 1; - } elseif (self::$options[$argv[$i][1]]['type'] == self::OPT_FFLAG) { - $this->{self::$options[$argv[$i][1]]['arg']}($v); - } elseif (self::$options[$argv[$i][1]]['type'] == self::OPT_FSTR) { - $this->{self::$options[$argv[$i][1]]['arg']}(substr($v, 2)); - } else { - throw new Exception('Command line syntax error: missing argument on switch: "' . $argv[$i] . '"'); - } - return 0; - } - - /** - * Process a command line switch which has an argument. - * @param int - * @param array - * @param array - * @return int - */ - function handleswitch($i, $argv) - { - $lv = 0; - $dv = 0.0; - $sv = $end = $cp = ''; - $j = 0; // int - $errcnt = 0; - $cp = strstr($argv[$i],'='); - if (!$cp) { - throw new Exception('INTERNAL ERROR: handleswitch passed bad argument, no "=" in arg'); - } - $argv[$i] = substr($argv[$i], 0, strlen($argv[$i]) - strlen($cp)); - if (!isset(self::$options[$argv[$i]])) { - throw new Exception('Command line syntax error: undefined option "' . $argv[$i] . - $cp . '"'); - } - $cp = substr($cp, 1); - switch (self::$options[$argv[$i]]['type']) { - case self::OPT_FLAG: - case self::OPT_FFLAG: - throw new Exception('Command line syntax error: option requires an argument "' . - $argv[$i] . '=' . $cp . '"'); - case self::OPT_DBL: - case self::OPT_FDBL: - $dv = (double) $cp; - break; - case self::OPT_INT: - case self::OPT_FINT: - $lv = (int) $cp; - break; - case self::OPT_STR: - case self::OPT_FSTR: - $sv = $cp; - break; - } - switch(self::$options[$argv[$i]]['type']) { - case self::OPT_FLAG: - case self::OPT_FFLAG: - break; - case self::OPT_DBL: - $this->{self::$options[$argv[$i]]['arg']} = $dv; - break; - case self::OPT_FDBL: - $this->{self::$options[$argv[$i]]['arg']}($dv); - break; - case self::OPT_INT: - $this->{self::$options[$argv[$i]]['arg']} = $lv; - break; - case self::OPT_FINT: - $this->{self::$options[$argv[$i]]['arg']}($lv); - break; - case self::OPT_STR: - $this->{self::$options[$argv[$i]]['arg']} = $sv; - break; - case self::OPT_FSTR: - $this->{self::$options[$argv[$i]]['arg']}($sv); - break; - } - return 0; - } - - /** - * @param array arguments - * @param array valid options - * @return int - */ - function OptInit($a) - { - $errcnt = 0; - $argv = $a; - try { - if (is_array($argv) && count($argv) && self::$options) { - for($i = 1; $i < count($argv); $i++) { - if ($argv[$i][0] == '+' || $argv[$i][0] == '-') { - $errcnt += $this->handleflags($i, $argv); - } elseif (strstr($argv[$i],'=')) { - $errcnt += $this->handleswitch($i, $argv); - } - } - } - } catch (Exception $e) { - OptPrint(); - echo $e->getMessage(); - exit(1); - } - return 0; - } - - /** - * Return the index of the N-th non-switch argument. Return -1 - * if N is out of range. - * @param int - * @return int - */ - private function argindex($n, $a) - { - $dashdash = 0; - if (!is_array($a) || !count($a)) { - return -1; - } - for ($i=1; $i < count($a); $i++) { - if ($dashdash || !($a[$i][0] == '-' || $a[$i][0] == '+' || - strchr($a[$i], '='))) { - if ($n == 0) { - return $i; - } - $n--; - } - if ($_SERVER['argv'][$i] == '--') { - $dashdash = 1; - } - } - return -1; - } - - /** - * Return the value of the non-option argument as indexed by $i - * - * @param int - * @param array the value of $argv - * @return 0|string - */ - private function OptArg($i, $a) - { - if (-1 == ($ind = $this->argindex($i, $a))) { - return 0; - } - return $a[$ind]; - } - - /** - * @return int number of arguments - */ - function OptNArgs($a) - { - $cnt = $dashdash = 0; - if (is_array($a) && count($a)) { - for($i = 1; $i < count($a); $i++) { - if ($dashdash || !($a[$i][0] == '-' || $a[$i][0] == '+' || - strchr($a[$i], '='))) { - $cnt++; - } - if ($a[$i] == "--") { - $dashdash = 1; - } - } - } - return $cnt; - } - - /** - * Print out command-line options - */ - function OptPrint() - { - $max = 0; - foreach (self::$options as $label => $info) { - $len = strlen($label) + 1; - switch ($info['type']) { - case self::OPT_FLAG: - case self::OPT_FFLAG: - break; - case self::OPT_INT: - case self::OPT_FINT: - $len += 9; /* length of "<integer>" */ - break; - case self::OPT_DBL: - case self::OPT_FDBL: - $len += 6; /* length of "<real>" */ - break; - case self::OPT_STR: - case self::OPT_FSTR: - $len += 8; /* length of "<string>" */ - break; - } - if ($len > $max) { - $max = $len; - } - } - foreach (self::$options as $label => $info) { - switch ($info['type']) { - case self::OPT_FLAG: - case self::OPT_FFLAG: - echo " -$label"; - echo str_repeat(' ', $max - strlen($label)); - echo " $info[message]\n"; - break; - case self::OPT_INT: - case self::OPT_FINT: - echo " $label=<integer>" . str_repeat(' ', $max - strlen($label) - 9); - echo " $info[message]\n"; - break; - case self::OPT_DBL: - case self::OPT_FDBL: - echo " $label=<real>" . str_repeat(' ', $max - strlen($label) - 6); - echo " $info[message]\n"; - break; - case self::OPT_STR: - case self::OPT_FSTR: - echo " $label=<string>" . str_repeat(' ', $max - strlen($label) - 8); - echo " $info[message]\n"; - break; - } - } - } - - /** - * This routine is called with the argument to each -D command-line option. - * Add the macro defined to the azDefine array. - * @param string - */ - private function handle_D_option($z) - { - if ($a = strstr($z, '=')) { - $z = substr($a, 1); // strip first = - } - $this->azDefine[] = $z; - } - - /**************** From the file "main.c" ************************************/ -/* -** Main program file for the LEMON parser generator. -*/ - - - /* The main program. Parse the command line and do it... */ - function main() - { - $lem = new PHP_ParserGenerator_Data; - - $this->OptInit($_SERVER['argv']); - if ($this->version) { - echo "Lemon version 1.0/PHP_ParserGenerator port version 0.1.5\n"; - exit(0); - } - if ($this->OptNArgs($_SERVER['argv']) != 1) { - echo "Exactly one filename argument is required.\n"; - exit(1); - } - $lem->errorcnt = 0; - - /* Initialize the machine */ - $lem->argv0 = $_SERVER['argv'][0]; - $lem->filename = $this->OptArg(0, $_SERVER['argv']); - $a = pathinfo($lem->filename); - if (isset($a['extension'])) { - $ext = '.' . $a['extension']; - $lem->filenosuffix = substr($lem->filename, 0, strlen($lem->filename) - strlen($ext)); - } else { - $lem->filenosuffix = $lem->filename; - } - $lem->basisflag = $this->basisflag; - $lem->has_fallback = 0; - $lem->nconflict = 0; - $lem->name = $lem->include_code = $lem->include_classcode = $lem->arg = - $lem->tokentype = $lem->start = 0; - $lem->vartype = 0; - $lem->stacksize = 0; - $lem->error = $lem->overflow = $lem->failure = $lem->accept = $lem->tokendest = - $lem->tokenprefix = $lem->outname = $lem->extracode = 0; - $lem->vardest = 0; - $lem->tablesize = 0; - PHP_ParserGenerator_Symbol::Symbol_new("$"); - $lem->errsym = PHP_ParserGenerator_Symbol::Symbol_new("error"); - - /* Parse the input file */ - $parser = new PHP_ParserGenerator_Parser($this); - $parser->Parse($lem); - if ($lem->errorcnt) { - exit($lem->errorcnt); - } - if ($lem->rule === 0) { - printf("Empty grammar.\n"); - exit(1); - } - - /* Count and index the symbols of the grammar */ - $lem->nsymbol = PHP_ParserGenerator_Symbol::Symbol_count(); - PHP_ParserGenerator_Symbol::Symbol_new("{default}"); - $lem->symbols = PHP_ParserGenerator_Symbol::Symbol_arrayof(); - for ($i = 0; $i <= $lem->nsymbol; $i++) { - $lem->symbols[$i]->index = $i; - } - usort($lem->symbols, array('PHP_ParserGenerator_Symbol', 'sortSymbols')); - for ($i = 0; $i <= $lem->nsymbol; $i++) { - $lem->symbols[$i]->index = $i; - } - // find the first lower-case symbol - for($i = 1; ord($lem->symbols[$i]->name[0]) < ord ('Z'); $i++); - $lem->nterminal = $i; - - /* Generate a reprint of the grammar, if requested on the command line */ - if ($this->rpflag) { - $this->Reprint(); - } else { - /* Initialize the size for all follow and first sets */ - $this->SetSize($lem->nterminal); - - /* Find the precedence for every production rule (that has one) */ - $lem->FindRulePrecedences(); - - /* Compute the lambda-nonterminals and the first-sets for every - ** nonterminal */ - $lem->FindFirstSets(); - - /* Compute all LR(0) states. Also record follow-set propagation - ** links so that the follow-set can be computed later */ - $lem->nstate = 0; - $lem->FindStates(); - $lem->sorted = PHP_ParserGenerator_State::State_arrayof(); - - /* Tie up loose ends on the propagation links */ - $lem->FindLinks(); - - /* Compute the follow set of every reducible configuration */ - $lem->FindFollowSets(); - - /* Compute the action tables */ - $lem->FindActions(); - - /* Compress the action tables */ - if ($this->compress===0) { - $lem->CompressTables(); - } - - /* Reorder and renumber the states so that states with fewer choices - ** occur at the end. */ - $lem->ResortStates(); - - /* Generate a report of the parser generated. (the "y.output" file) */ - if (!$this->quiet) { - $lem->ReportOutput(); - } - - /* Generate the source code for the parser */ - $lem->ReportTable($this->mhflag); - - /* Produce a header file for use by the scanner. (This step is - ** omitted if the "-m" option is used because makeheaders will - ** generate the file for us.) */ -// if (!$this->mhflag) { -// $this->ReportHeader(); -// } - } - if ($this->statistics) { - printf("Parser statistics: %d terminals, %d nonterminals, %d rules\n", - $lem->nterminal, $lem->nsymbol - $lem->nterminal, $lem->nrule); - printf(" %d states, %d parser table entries, %d conflicts\n", - $lem->nstate, $lem->tablesize, $lem->nconflict); - } - if ($lem->nconflict) { - printf("%d parsing conflicts.\n", $lem->nconflict); - } - exit($lem->errorcnt + $lem->nconflict); - return ($lem->errorcnt + $lem->nconflict); - } - - function SetSize($n) - { - $this->size = $n + 1; - } - - /** - * Merge in a merge sort for a linked list - * Inputs: - * - a: A sorted, null-terminated linked list. (May be null). - * - b: A sorted, null-terminated linked list. (May be null). - * - cmp: A pointer to the comparison function. - * - offset: Offset in the structure to the "next" field. - * - * Return Value: - * A pointer to the head of a sorted list containing the elements - * of both a and b. - * - * Side effects: - * The "next" pointers for elements in the lists a and b are - * changed. - */ - static function merge($a, $b, $cmp, $offset) - { - if($a === 0) { - $head = $b; - } elseif ($b === 0) { - $head = $a; - } else { - if (call_user_func($cmp, $a, $b) < 0) { - $ptr = $a; - $a = $a->$offset; - } else { - $ptr = $b; - $b = $b->$offset; - } - $head = $ptr; - while ($a && $b) { - if (call_user_func($cmp, $a, $b) < 0) { - $ptr->$offset = $a; - $ptr = $a; - $a = $a->$offset; - } else { - $ptr->$offset = $b; - $ptr = $b; - $b = $b->$offset; - } - } - if ($a !== 0) { - $ptr->$offset = $a; - } else { - $ptr->$offset = $b; - } - } - return $head; - } - - /* - ** Inputs: - ** list: Pointer to a singly-linked list of structures. - ** next: Pointer to pointer to the second element of the list. - ** cmp: A comparison function. - ** - ** Return Value: - ** A pointer to the head of a sorted list containing the elements - ** orginally in list. - ** - ** Side effects: - ** The "next" pointers for elements in list are changed. - */ - #define LISTSIZE 30 - static function msort($list, $next, $cmp) - { - if ($list === 0) { - return $list; - } - if ($list->$next === 0) { - return $list; - } - $set = array_fill(0, 30, 0); - while ($list) { - $ep = $list; - $list = $list->$next; - $ep->$next = 0; - for ($i = 0; $i < 29 && $set[$i] !== 0; $i++) { - $ep = self::merge($ep, $set[$i], $cmp, $next); - $set[$i] = 0; - } - $set[$i] = $ep; - } - $ep = 0; - for ($i = 0; $i < 30; $i++) { - if ($set[$i] !== 0) { - $ep = self::merge($ep, $set[$i], $cmp, $next); - } - } - return $ep; - } - - /* Find a good place to break "msg" so that its length is at least "min" - ** but no more than "max". Make the point as close to max as possible. - */ - static function findbreak($msg, $min, $max) - { - if ($min >= strlen($msg)) { - return strlen($msg); - } - for ($i = $spot = $min; $i <= $max && $i < strlen($msg); $i++) { - $c = $msg[$i]; - if ($c == '-' && $i < $max - 1) { - $spot = $i + 1; - } - if ($c == ' ') { - $spot = $i; - } - } - return $spot; - } - - static function ErrorMsg($filename, $lineno, $format) - { - /* Prepare a prefix to be prepended to every output line */ - if ($lineno > 0) { - $prefix = sprintf("%20s:%d: ", $filename, $lineno); - } else { - $prefix = sprintf("%20s: ", $filename); - } - $prefixsize = strlen($prefix); - $availablewidth = 79 - $prefixsize; - - /* Generate the error message */ - $ap = func_get_args(); - array_shift($ap); // $filename - array_shift($ap); // $lineno - array_shift($ap); // $format - $errmsg = vsprintf($format, $ap); - $linewidth = strlen($errmsg); - /* Remove trailing "\n"s from the error message. */ - while ($linewidth > 0 && in_array($errmsg[$linewidth-1], array("\n", "\r"), true)) { - --$linewidth; - $errmsg = substr($errmsg, 0, strlen($errmsg) - 1); - } - - /* Print the error message */ - $base = 0; - $errmsg = str_replace(array("\r", "\n", "\t"), array(' ', ' ', ' '), $errmsg); - while (strlen($errmsg)) { - $end = $restart = self::findbreak($errmsg, 0, $availablewidth); - if (strlen($errmsg) <= 79 && $end < strlen($errmsg) && $end <= 79) { - $end = $restart = strlen($errmsg); - } - while (isset($errmsg[$restart]) && $errmsg[$restart] == ' ') { - $restart++; - } - printf("%s%.${end}s\n", $prefix, $errmsg); - $errmsg = substr($errmsg, $restart); - } - } - - /** - * Duplicate the input file without comments and without actions - * on rules - */ - function Reprint() - { - printf("// Reprint of input file \"%s\".\n// Symbols:\n", $this->filename); - $maxlen = 10; - for ($i = 0; $i < $this->nsymbol; $i++) { - $sp = $this->symbols[$i]; - $len = strlen($sp->name); - if ($len > $maxlen ) { - $maxlen = $len; - } - } - $ncolumns = 76 / ($maxlen + 5); - if ($ncolumns < 1) { - $ncolumns = 1; - } - $skip = ($this->nsymbol + $ncolumns - 1) / $ncolumns; - for ($i = 0; $i < $skip; $i++) { - print "//"; - for ($j = $i; $j < $this->nsymbol; $j += $skip) { - $sp = $this->symbols[$j]; - //assert( sp->index==j ); - printf(" %3d %-${maxlen}.${maxlen}s", $j, $sp->name); - } - print "\n"; - } - for ($rp = $this->rule; $rp; $rp = $rp->next) { - printf("%s", $rp->lhs->name); -/* if ($rp->lhsalias) { - printf("(%s)", $rp->lhsalias); - }*/ - print " ::="; - for ($i = 0; $i < $rp->nrhs; $i++) { - $sp = $rp->rhs[$i]; - printf(" %s", $sp->name); - if ($sp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for ($j = 1; $j < $sp->nsubsym; $j++) { - printf("|%s", $sp->subsym[$j]->name); - } - } -/* if ($rp->rhsalias[$i]) { - printf("(%s)", $rp->rhsalias[$i]); - }*/ - } - print "."; - if ($rp->precsym) { - printf(" [%s]", $rp->precsym->name); - } -/* if ($rp->code) { - print "\n " . $rp->code); - }*/ - print "\n"; - } - } -} -//$a = new PHP_ParserGenerator; -//$_SERVER['argv'] = array('lemon', '-s', '/development/lemon/PHP_Parser.y'); -//$_SERVER['argv'] = array('lemon', '-s', '/development/File_ChessPGN/ChessPGN/Parser.y'); -//$a->main();
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/Action.php
Deleted
@@ -1,241 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Action.php,v 1.2 2007/03/04 17:52:05 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * Every shift or reduce operation is stored as one of the following objects. - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_Action { - const SHIFT = 1, - ACCEPT = 2, - REDUCE = 3, - ERROR = 4, - /** - * Was a reduce, but part of a conflict - */ - CONFLICT = 5, - /** - * Was a shift. Precedence resolved conflict - */ - SH_RESOLVED = 6, - /** - * Was a reduce. Precedence resolved conflict - */ - RD_RESOLVED = 7, - /** - * Deleted by compression - * @see PHP_ParserGenerator::CompressTables() - */ - NOT_USED = 8; - /** - * The look-ahead symbol that triggers this action - * @var PHP_ParserGenerator_Symbol - */ - public $sp; /* The look-ahead symbol */ - /** - * This defines the kind of action, and must be one - * of the class constants. - * - * - {@link PHP_ParserGenerator_Action::SHIFT} - * - {@link PHP_ParserGenerator_Action::ACCEPT} - * - {@link PHP_ParserGenerator_Action::REDUCE} - * - {@link PHP_ParserGenerator_Action::ERROR} - * - {@link PHP_ParserGenerator_Action::CONFLICT} - * - {@link PHP_ParserGenerator_Action::SH_RESOLVED} - * - {@link PHP_ParserGenerator_Action:: RD_RESOLVED} - * - {@link PHP_ParserGenerator_Action::NOT_USED} - */ - public $type; - /** - * The new state, if this is a shift, - * the parser rule index, if this is a reduce. - * - * @var PHP_ParserGenerator_State|PHP_ParserGenerator_Rule - */ - public $x; - /** - * The next action for this state. - * @var PHP_ParserGenerator_Action - */ - public $next; - - /** - * Compare two actions - * - * This is used by {@link Action_sort()} to compare actions - */ - static function actioncmp(PHP_ParserGenerator_Action $ap1, - PHP_ParserGenerator_Action $ap2) - { - $rc = $ap1->sp->index - $ap2->sp->index; - if ($rc === 0) { - $rc = $ap1->type - $ap2->type; - } - if ($rc === 0) { - if ($ap1->type == self::SHIFT) { - if ($ap1->x->statenum != $ap2->x->statenum) { - throw new Exception('Shift conflict: ' . $ap1->sp->name . - ' shifts both to state ' . $ap1->x->statenum . ' (rule ' . - $ap1->x->cfp->rp->lhs->name . ' on line ' . - $ap1->x->cfp->rp->ruleline . ') and to state ' . - $ap2->x->statenum . ' (rule ' . - $ap2->x->cfp->rp->lhs->name . ' on line ' . - $ap2->x->cfp->rp->ruleline . ')'); - } - } - if ($ap1->type != self::REDUCE && - $ap1->type != self::RD_RESOLVED && - $ap1->type != self::CONFLICT) { - throw new Exception('action has not been processed: ' . - $ap1->sp->name . ' on line ' . $ap1->x->cfp->rp->ruleline . - ', rule ' . $ap1->x->cfp->rp->lhs->name); - } - if ($ap2->type != self::REDUCE && - $ap2->type != self::RD_RESOLVED && - $ap2->type != self::CONFLICT) { - throw new Exception('action has not been processed: ' . - $ap2->sp->name . ' on line ' . $ap2->x->cfp->rp->ruleline . - ', rule ' . $ap2->x->cfp->rp->lhs->name); - } - $rc = $ap1->x->index - $ap2->x->index; - } - return $rc; - } - - function display($processed = false) - { - $map = array( - self::ACCEPT => 'ACCEPT', - self::CONFLICT => 'CONFLICT', - self::REDUCE => 'REDUCE', - self::SHIFT => 'SHIFT' - ); - $sep = isset($_SERVER['_']) ? "\n" : "<br>"; - echo $map[$this->type] . ' for ' . $this->sp->name; - if ($this->type == self::REDUCE) { - echo ' - rule ' . $this->x->lhs->name . $sep; - } elseif ($this->type == self::SHIFT) { - echo ' - state ' . $this->x->statenum . ', basis ' . $this->x->cfp->rp->lhs->name . $sep; - } else { - echo $sep; - } - } - - /** - * create linked list of PHP_ParserGenerator_Actions - * - * @param PHP_ParserGenerator_Action|null - * @param int one of the class constants from PHP_ParserGenerator_Action - * @param PHP_ParserGenerator_Symbol - * @param PHP_ParserGenerator_State|PHP_ParserGenerator_Rule - */ - static function Action_add(&$app, $type, PHP_ParserGenerator_Symbol $sp, $arg) - { - $new = new PHP_ParserGenerator_Action; - $new->next = $app; - $app = $new; - $new->type = $type; - $new->sp = $sp; - $new->x = $arg; - echo ' Adding '; - $new->display(); - } - - /** - * Sort parser actions - * @see PHP_ParserGenerator_Data::FindActions() - */ - static function Action_sort(PHP_ParserGenerator_Action $ap) - { - $ap = PHP_ParserGenerator::msort($ap, 'next', array('PHP_ParserGenerator_Action', 'actioncmp')); - return $ap; - } - - /** - * Print an action to the given file descriptor. Return FALSE if - * nothing was actually printed. - * @see PHP_ParserGenerator_Data::ReportOutput() - */ - function PrintAction($fp, $indent) - { - if (!$fp) { - $fp = STDOUT; - } - $result = 1; - switch ($this->type) - { - case self::SHIFT: - fprintf($fp, "%${indent}s shift %d", $this->sp->name, $this->x->statenum); - break; - case self::REDUCE: - fprintf($fp, "%${indent}s reduce %d", $this->sp->name, $this->x->index); - break; - case self::ACCEPT: - fprintf($fp, "%${indent}s accept", $this->sp->name); - break; - case self::ERROR: - fprintf($fp, "%${indent}s error", $this->sp->name); - break; - case self::CONFLICT: - fprintf($fp, "%${indent}s reduce %-3d ** Parsing conflict **", $this->sp->name, $this->x->index); - break; - case self::SH_RESOLVED: - case self::RD_RESOLVED: - case self::NOT_USED: - $result = 0; - break; - } - return $result; - } -} -?>
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/ActionTable.php
Deleted
@@ -1,293 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: ActionTable.php,v 1.1 2006/07/18 00:53:10 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * The state of the yy_action table under construction is an instance of - * the following structure - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_ActionTable -{ - /** - * Number of used slots in {@link $aAction} - * @var int - */ - public $nAction = 0; - /** - * The $yy_action table under construction. - * - * Each entry is of format: - * <code> - * array( - * 'lookahead' => -1, // Value of the lookahead token (symbol index) - * 'action' => -1 // Action to take on the given lookahead (action index) - * ); - * </code> - * @see PHP_ParserGenerator_Data::compute_action() - * @var array - */ - public $aAction = - array(array( - 'lookahead' => -1, - 'action' => -1 - )); - /** - * A single new transaction set. - * - * @see $aAction format of the internal array is described here - * @var array - */ - public $aLookahead = - array(array( - 'lookahead' => 0, - 'action' => 0 - )); - /** - * The smallest (minimum) value of any lookahead token in {@link $aLookahead} - * - * The lowest non-terminal is always introduced earlier in the parser file, - * and is therefore a more significant token. - * @var int - */ - public $mnLookahead = 0; - /** - * The action associated with the smallest lookahead token. - * @see $mnLookahead - * @var int - */ - public $mnAction = 0; - /** - * The largest (maximum) value of any lookahead token in {@link $aLookahead} - * @var int - */ - public $mxLookahead = 0; - /** - * The number of slots used in {@link $aLookahead}. - * - * This is the same as count($aLookahead), but there was no pressing reason - * to change this when porting from C. - * @see $mnLookahead - * @var int - */ - public $nLookahead = 0; - - /** - * Add a new action to the current transaction set - * @param int - * @param int - */ - function acttab_action($lookahead, $action) - { - if ($this->nLookahead === 0) { - $this->aLookahead = array(); - $this->mxLookahead = $lookahead; - $this->mnLookahead = $lookahead; - $this->mnAction = $action; - } else { - if ($this->mxLookahead < $lookahead) { - $this->mxLookahead = $lookahead; - } - if ($this->mnLookahead > $lookahead) { - $this->mnLookahead = $lookahead; - $this->mnAction = $action; - } - } - $this->aLookahead[$this->nLookahead] = array( - 'lookahead' => $lookahead, - 'action' => $action); - $this->nLookahead++; - } - - /** - * Add the transaction set built up with prior calls to acttab_action() - * into the current action table. Then reset the transaction set back - * to an empty set in preparation for a new round of acttab_action() calls. - * - * Return the offset into the action table of the new transaction. - * @return int Return the offset that should be added to the lookahead in - * order to get the index into $yy_action of the action. This will be used - * in generation of $yy_ofst tables (reduce and shift) - * @throws Exception - */ - function acttab_insert() - { - if ($this->nLookahead <= 0) { - throw new Exception('nLookahead is not set up?'); - } - - /* Scan the existing action table looking for an offset where we can - ** insert the current transaction set. Fall out of the loop when that - ** offset is found. In the worst case, we fall out of the loop when - ** i reaches $this->nAction, which means we append the new transaction set. - ** - ** i is the index in $this->aAction[] where $this->mnLookahead is inserted. - */ - for ($i = 0; $i < $this->nAction + $this->mnLookahead; $i++) { - if (!isset($this->aAction[$i])) { - $this->aAction[$i] = array( - 'lookahead' => -1, - 'action' => -1, - ); - } - if ($this->aAction[$i]['lookahead'] < 0) { - for ($j = 0; $j < $this->nLookahead; $j++) { - if (!isset($this->aLookahead[$j])) { - $this->aLookahead[$j] = array( - 'lookahead' => 0, - 'action' => 0, - ); - } - $k = $this->aLookahead[$j]['lookahead'] - - $this->mnLookahead + $i; - if ($k < 0) { - break; - } - if (!isset($this->aAction[$k])) { - $this->aAction[$k] = array( - 'lookahead' => -1, - 'action' => -1, - ); - } - if ($this->aAction[$k]['lookahead'] >= 0) { - break; - } - } - if ($j < $this->nLookahead ) { - continue; - } - for ($j = 0; $j < $this->nAction; $j++) { - if (!isset($this->aAction[$j])) { - $this->aAction[$j] = array( - 'lookahead' => -1, - 'action' => -1, - ); - } - if ($this->aAction[$j]['lookahead'] == $j + - $this->mnLookahead - $i) { - break; - } - } - if ($j == $this->nAction) { - break; /* Fits in empty slots */ - } - } elseif ($this->aAction[$i]['lookahead'] == $this->mnLookahead) { - if ($this->aAction[$i]['action'] != $this->mnAction) { - continue; - } - for ($j = 0; $j < $this->nLookahead; $j++) { - $k = $this->aLookahead[$j]['lookahead'] - - $this->mnLookahead + $i; - if ($k < 0 || $k >= $this->nAction) { - break; - } - if (!isset($this->aAction[$k])) { - $this->aAction[$k] = array( - 'lookahead' => -1, - 'action' => -1, - ); - } - if ($this->aLookahead[$j]['lookahead'] != - $this->aAction[$k]['lookahead']) { - break; - } - if ($this->aLookahead[$j]['action'] != - $this->aAction[$k]['action']) { - break; - } - } - if ($j < $this->nLookahead) { - continue; - } - $n = 0; - for ($j = 0; $j < $this->nAction; $j++) { - if (!isset($this->aAction[$j])) { - $this->aAction[$j] = array( - 'lookahead' => -1, - 'action' => -1, - ); - } - if ($this->aAction[$j]['lookahead'] < 0) { - continue; - } - if ($this->aAction[$j]['lookahead'] == $j + - $this->mnLookahead - $i) { - $n++; - } - } - if ($n == $this->nLookahead) { - break; /* Same as a prior transaction set */ - } - } - } - /* Insert transaction set at index i. */ - for ($j = 0; $j < $this->nLookahead; $j++) { - if (!isset($this->aLookahead[$j])) { - $this->aLookahead[$j] = array( - 'lookahead' => 0, - 'action' => 0, - ); - } - $k = $this->aLookahead[$j]['lookahead'] - $this->mnLookahead + $i; - $this->aAction[$k] = $this->aLookahead[$j]; - if ($k >= $this->nAction) { - $this->nAction = $k + 1; - } - } - $this->nLookahead = 0; - $this->aLookahead = array(); - - /* Return the offset that is added to the lookahead in order to get the - ** index into yy_action of the action */ - return $i - $this->mnLookahead; - } -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/Config.php
Deleted
@@ -1,571 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Config.php,v 1.1 2006/07/18 00:53:10 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** -/** A configuration is a production rule of the grammar together with - * a mark (dot) showing how much of that rule has been processed so far. - * - * Configurations also contain a follow-set which is a list of terminal - * symbols which are allowed to immediately follow the end of the rule. - * Every configuration is recorded as an instance of the following class. - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_Config { - const COMPLETE = 1; - const INCOMPLETE = 2; - /** - * The parser rule upon with the configuration is based. - * - * A parser rule is something like: - * <pre> - * blah ::= FOO bar. - * </pre> - * @var PHP_ParserGenerator_Rule - */ - public $rp; - /** - * The parse point. - * - * This is the index into the right-hand side of a rule that is - * represented by this configuration. In other words, possible - * dots for this rule: - * - * <pre> - * blah ::= FOO bar. - * </pre> - * - * are (represented by "[here]"): - * - * <pre> - * blah ::= [here] FOO bar. - * blah ::= FOO [here] bar. - * blah ::= FOO bar [here]. - * </pre> - * @var int - */ - public $dot; - /** - * Follow-set for this configuration only - * - * This is the list of terminals and non-terminals that - * can follow this configuration. - * @var array - */ - public $fws; - /** - * Follow-set forward propagation links. - * @var PHP_ParserGenerator_PropagationLink - */ - public $fplp; - /** - * Follow-set backwards propagation links - * @var PHP_ParserGenerator_PropagationLink - */ - public $bplp; - /** - * State that contains this configuration - * @var PHP_ParserGenerator_State - */ - public $stp; - /* enum { - COMPLETE, /* The status is used during followset and - INCOMPLETE /* shift computations - } */ - /** - * Status during followset and shift computations. - * - * One of PHP_ParserGenerator_Config::COMPLETE or - * PHP_ParserGenerator_Config::INCOMPLETE. - * @var int - */ - public $status; - /** - * Next configuration in the state. - * - * Index of next PHP_ParserGenerator_Config object. - * @var int - */ - public $next; - /** - * Index of the next basis configuration PHP_ParserGenerator_Config object - * @var int - */ - public $bp; - - /** - * Top of the list of configurations for the current state. - * @var PHP_ParserGenerator_Config - */ - static public $current; - /** - * Last on the list of configurations for the current state. - * @var PHP_ParserGenerator_Config - */ - static public $currentend; - - /** - * Top of the list of basis configurations for the current state. - * @var PHP_ParserGenerator_Config - */ - static public $basis; - /** - * Last on the list of basis configurations for the current state. - * @var PHP_ParserGenerator_Config - */ - static public $basisend; - - /** - * Associative array representation of the linked list of configurations - * found in {@link $current} - * - * @var array - */ - static public $x4a = array(); - - /** - * Return a pointer to a new configuration - * @return PHP_ParserGenerator_Config - */ - private static function newconfig() - { - return new PHP_ParserGenerator_Config; - } - - /** - * Display the current configuration for the .out file - * - * @param PHP_ParserGenerator_Config $cfp - * @see PHP_ParserGenerator_Data::ReportOutput() - */ - static function Configshow(PHP_ParserGenerator_Config $cfp) - { - $fp = fopen('php://output', 'w'); - while ($cfp) { - if ($cfp->dot == $cfp->rp->nrhs) { - $buf = sprintf('(%d)', $cfp->rp->index); - fprintf($fp, ' %5s ', $buf); - } else { - fwrite($fp,' '); - } - $cfp->ConfigPrint($fp); - fwrite($fp, "\n"); - if (0) { - //SetPrint(fp,cfp->fws,$this); - //PlinkPrint(fp,cfp->fplp,"To "); - //PlinkPrint(fp,cfp->bplp,"From"); - } - $cfp = $cfp->next; - } - fwrite($fp, "\n"); - fclose($fp); - } - - /** - * Initialize the configuration list builder for a new state. - */ - static function Configlist_init() - { - self::$current = 0; - self::$currentend = &self::$current; - self::$basis = 0; - self::$basisend = &self::$basis; - self::$x4a = array(); - } - - /** - * Remove all data from the table. - * - * Pass each data to the function $f as it is removed if - * $f is a valid callback. - * @param callback|null - * @see Configtable_clear() - */ - static function Configtable_reset($f) - { - self::$current = 0; - self::$currentend = &self::$current; - self::$basis = 0; - self::$basisend = &self::$basis; - self::Configtable_clear(0); - } - - /** - * Remove all data from the associative array representation - * of configurations. - * - * Pass each data to the function $f as it is removed if - * $f is a valid callback. - * @param callback|null - */ - static function Configtable_clear($f) - { - if (!count(self::$x4a)) { - return; - } - if ($f) { - for ($i = 0; $i < count(self::$x4a); $i++) { - call_user_func($f, self::$x4a[$i]->data); - } - } - self::$x4a = array(); - } - - /** - * Reset the configuration list builder for a new state. - * @see Configtable_clear() - */ - static function Configlist_reset() - { - self::Configtable_clear(0); - } - - /** - * Add another configuration to the configuration list for this parser state. - * @param PHP_ParserGenerator_Rule the rule - * @param int Index into the right-hand side of the rule where the dot goes - * @return PHP_ParserGenerator_Config - */ - static function Configlist_add($rp, $dot) - { - $model = new PHP_ParserGenerator_Config; - $model->rp = $rp; - $model->dot = $dot; - $cfp = self::Configtable_find($model); - if ($cfp === 0) { - $cfp = self::newconfig(); - $cfp->rp = $rp; - $cfp->dot = $dot; - $cfp->fws = array(); - $cfp->stp = 0; - $cfp->fplp = $cfp->bplp = 0; - $cfp->next = 0; - $cfp->bp = 0; - self::$currentend = $cfp; - self::$currentend = &$cfp->next; - self::Configtable_insert($cfp); - } - return $cfp; - } - - /** - * Add a basis configuration to the configuration list for this parser state. - * - * Basis configurations are the root for a configuration. This method also - * inserts the configuration into the regular list of configurations for this - * reason. - * @param PHP_ParserGenerator_Rule the rule - * @param int Index into the right-hand side of the rule where the dot goes - * @return PHP_ParserGenerator_Config - */ - static function Configlist_addbasis($rp, $dot) - { - $model = new PHP_ParserGenerator_Config; - $model->rp = $rp; - $model->dot = $dot; - $cfp = self::Configtable_find($model); - if ($cfp === 0) { - $cfp = self::newconfig(); - $cfp->rp = $rp; - $cfp->dot = $dot; - $cfp->fws = array(); - $cfp->stp = 0; - $cfp->fplp = $cfp->bplp = 0; - $cfp->next = 0; - $cfp->bp = 0; - self::$currentend = $cfp; - self::$currentend = &$cfp->next; - self::$basisend = $cfp; - self::$basisend = &$cfp->bp; - self::Configtable_insert($cfp); - } - return $cfp; - } - - /** - * Compute the closure of the configuration list. - * - * This calculates all of the possible continuations of - * each configuration, ensuring that each state accounts - * for every configuration that could arrive at that state. - */ - static function Configlist_closure(PHP_ParserGenerator_Data $lemp) - { - for ($cfp = self::$current; $cfp; $cfp = $cfp->next) { - $rp = $cfp->rp; - $dot = $cfp->dot; - if ($dot >= $rp->nrhs) { - continue; - } - $sp = $rp->rhs[$dot]; - if ($sp->type == PHP_ParserGenerator_Symbol::NONTERMINAL) { - if ($sp->rule === 0 && $sp !== $lemp->errsym) { - PHP_ParserGenerator::ErrorMsg($lemp->filename, $rp->line, - "Nonterminal \"%s\" has no rules.", $sp->name); - $lemp->errorcnt++; - } - for ($newrp = $sp->rule; $newrp; $newrp = $newrp->nextlhs) { - $newcfp = self::Configlist_add($newrp, 0); - for ($i = $dot + 1; $i < $rp->nrhs; $i++) { - $xsp = $rp->rhs[$i]; - if ($xsp->type == PHP_ParserGenerator_Symbol::TERMINAL) { - $newcfp->fws[$xsp->index] = 1; - break; - } elseif ($xsp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for ($k = 0; $k < $xsp->nsubsym; $k++) { - $newcfp->fws[$xsp->subsym[$k]->index] = 1; - } - break; - } else { - $a = array_diff_key($xsp->firstset, $newcfp->fws); - $newcfp->fws += $a; - if ($xsp->lambda === false) { - break; - } - } - } - if ($i == $rp->nrhs) { - PHP_ParserGenerator_PropagationLink::Plink_add($cfp->fplp, $newcfp); - } - } - } - } - } - - /** - * Sort the configuration list - * @uses Configcmp() - */ - static function Configlist_sort() - { - $a = 0; - //self::Configshow(self::$current); - self::$current = PHP_ParserGenerator::msort(self::$current,'next', array('PHP_ParserGenerator_Config', 'Configcmp')); - //self::Configshow(self::$current); - self::$currentend = &$a; - self::$currentend = 0; - } - - /** - * Sort the configuration list - * @uses Configcmp - */ - static function Configlist_sortbasis() - { - $a = 0; - self::$basis = PHP_ParserGenerator::msort(self::$current,'bp', array('PHP_ParserGenerator_Config', 'Configcmp')); - self::$basisend = &$a; - self::$basisend = 0; - } - - /** - * Return a pointer to the head of the configuration list and - * reset the list - * @see $current - * @return PHP_ParserGenerator_Config - */ - static function Configlist_return() - { - $old = self::$current; - self::$current = 0; - self::$currentend = &self::$current; - return $old; - } - - /** - * Return a pointer to the head of the basis list and - * reset the list - * @see $basis - * @return PHP_ParserGenerator_Config - */ - static function Configlist_basis() - { - $old = self::$basis; - self::$basis = 0; - self::$basisend = &self::$basis; - return $old; - } - - /** - * Free all elements of the given configuration list - * @param PHP_ParserGenerator_Config - */ - static function Configlist_eat($cfp) - { - $nextcfp = null; - for(; $cfp; $cfp = $nextcfp){ - $nextcfp = $cfp->next; - if ($cfp->fplp !=0) { - throw new Exception('fplp of configuration non-zero?'); - } - if ($cfp->bplp !=0) { - throw new Exception('bplp of configuration non-zero?'); - } - if ($cfp->fws) { - $cfp->fws = array(); - } - } - } - - /** - * Compare two configurations for sorting purposes. - * - * Configurations based on higher precedence rules - * (those earlier in the file) are chosen first. Two - * configurations that are the same rule are sorted by - * dot (see {@link $dot}), and those configurations - * with a dot closer to the left-hand side are chosen first. - * @param unknown_type $a - * @param unknown_type $b - * @return unknown - */ - static function Configcmp($a, $b) - { - $x = $a->rp->index - $b->rp->index; - if (!$x) { - $x = $a->dot - $b->dot; - } - return $x; - } - - /** - * Print out information on this configuration. - * - * @param resource $fp - * @see PHP_ParserGenerator_Data::ReportOutput() - */ - function ConfigPrint($fp) - { - $rp = $this->rp; - fprintf($fp, "%s ::=", $rp->lhs->name); - for ($i = 0; $i <= $rp->nrhs; $i++) { - if ($i === $this->dot) { - fwrite($fp,' *'); - } - if ($i === $rp->nrhs) { - break; - } - $sp = $rp->rhs[$i]; - fprintf($fp,' %s', $sp->name); - if ($sp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for ($j = 1; $j < $sp->nsubsym; $j++) { - fprintf($fp, '|%s', $sp->subsym[$j]->name); - } - } - } - } - - /** - * Hash a configuration for the associative array {@link $x4a} - */ - private static function confighash(PHP_ParserGenerator_Config $a) - { - $h = 0; - $h = $h * 571 + $a->rp->index * 37 + $a->dot; - return $h; - } - - /** - * Insert a new record into the array. Return TRUE if successful. - * Prior data with the same key is NOT overwritten - */ - static function Configtable_insert(PHP_ParserGenerator_Config $data) - { - $h = self::confighash($data); - if (isset(self::$x4a[$h])) { - $np = self::$x4a[$h]; - } else { - $np = 0; - } - while ($np) { - if (self::Configcmp($np->data, $data) == 0) { - /* An existing entry with the same key is found. */ - /* Fail because overwrite is not allows. */ - return 0; - } - $np = $np->next; - } - /* Insert the new data */ - $np = array('data' => $data, 'next' => 0, 'from' => 0); - $np = new PHP_ParserGenerator_StateNode; - $np->data = $data; - if (isset(self::$x4a[$h])) { - self::$x4a[$h]->from = $np->next; - $np->next = self::$x4a[$h]; - } - $np->from = $np; - self::$x4a[$h] = $np; - return 1; - } - - /** - * Return a pointer to data assigned to the given key. Return NULL - * if no such key. - * @return PHP_ParserGenerator_Config|0 - */ - static function Configtable_find(PHP_ParserGenerator_Config $key) - { - $h = self::confighash($key); - if (!isset(self::$x4a[$h])) { - return 0; - } - $np = self::$x4a[$h]; - while ($np) { - if (self::Configcmp($np->data, $key) == 0) { - break; - } - $np = $np->next; - } - return $np ? $np->data : 0; - } -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/Data.php
Deleted
@@ -1,1854 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Data.php,v 1.2 2007/03/04 17:52:05 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** -/** - * The state vector for the entire parser generator is recorded in - * this class. - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ - -class PHP_ParserGenerator_Data -{ - /** - * Used for terminal and non-terminal offsets into the action table - * when their default should be used instead - */ - const NO_OFFSET = -2147483647; - /** - * Table of states sorted by state number - * @var array array of {@link PHP_ParserGenerator_State} objects - */ - public $sorted; - /** - * List of all rules - * @var PHP_ParserGenerator_Rule - */ - public $rule; - /** - * Number of states - * @var int - */ - public $nstate; - /** - * Number of rules - * @var int - */ - public $nrule; - /** - * Number of terminal and nonterminal symbols - * @var int - */ - public $nsymbol; - /** - * Number of terminal symbols (tokens) - * @var int - */ - public $nterminal; - /** - * Sorted array of pointers to symbols - * @var array array of {@link PHP_ParserGenerator_Symbol} objects - */ - public $symbols = array(); - /** - * Number of errors - * @var int - */ - public $errorcnt; - /** - * The error symbol - * @var PHP_ParserGenerator_Symbol - */ - public $errsym; - /** - * Name of the generated parser - * @var string - */ - public $name; - /** - * Unused relic from the C version - * - * Type of terminal symbols in the parser stack - * @var string - */ - public $tokentype; - /** - * Unused relic from the C version - * - * The default type of non-terminal symbols - * @var string - */ - public $vartype; - /** - * Name of the start symbol for the grammar - * @var string - */ - public $start; - /** - * Size of the parser stack - * - * This is 100 by default, but is set with the %stack_size directive - * @var int - */ - public $stacksize; - /** - * Code to put at the start of the parser file - * - * This is set by the %include directive - * @var string - */ - public $include_code; - /** - * Line number for start of include code - * @var int - */ - public $includeln; - /** - * Code to put in the parser class - * - * This is set by the %include_class directive - * @var string - */ - public $include_classcode; - /** - * Line number for start of include code - * @var int - */ - public $include_classln; - /** - * any extends/implements code - * - * This is set by the %declare_class directive - * @var string - */ - /** - * Line number for class declaration code - * @var int - */ - public $declare_classcode; - /** - * Line number for start of class declaration code - * @var int - */ - public $declare_classln; - /** - * Code to execute when a syntax error is seen - * - * This is set by the %syntax_error directive - * @var string - */ - public $error; - /** - * Line number for start of error code - * @var int - */ - public $errorln; - /** - * Code to execute on a stack overflow - * - * This is set by the %stack_overflow directive - */ - public $overflow; - /** - * Line number for start of overflow code - * @var int - */ - public $overflowln; - /** - * Code to execute on parser failure - * - * This is set by the %parse_failure directive - * @var string - */ - public $failure; - /** - * Line number for start of failure code - * @var int - */ - public $failureln; - /** - * Code to execute when the parser acccepts (completes parsing) - * - * This is set by the %parse_accept directive - * @var string - */ - public $accept; - /** - * Line number for the start of accept code - * @var int - */ - public $acceptln; - /** - * Code appended to the generated file - * - * This is set by the %code directive - * @var string - */ - public $extracode; - /** - * Line number for the start of the extra code - * @var int - */ - public $extracodeln; - /** - * Code to execute to destroy token data - * - * This is set by the %token_destructor directive - * @var string - */ - public $tokendest; - /** - * Line number for token destroyer code - * @var int - */ - public $tokendestln; - /** - * Code for the default non-terminal destructor - * - * This is set by the %default_destructor directive - * @var string - */ - public $vardest; - /** - * Line number for default non-terminal destructor code - * @var int - */ - public $vardestln; - /** - * Name of the input file - * @var string - */ - public $filename; - /** - * Name of the input file without its extension - * @var string - */ - public $filenosuffix; - /** - * Name of the current output file - * @var string - */ - public $outname; - /** - * A prefix added to token names - * @var string - */ - public $tokenprefix; - /** - * Number of parsing conflicts - * @var int - */ - public $nconflict; - /** - * Size of the parse tables - * @var int - */ - public $tablesize; - /** - * Public only basis configurations - */ - public $basisflag; - /** - * True if any %fallback is seen in the grammer - * @var boolean - */ - public $has_fallback; - /** - * Name of the program - * @var string - */ - public $argv0; - - /* Find a precedence symbol of every rule in the grammar. - * - * Those rules which have a precedence symbol coded in the input - * grammar using the "[symbol]" construct will already have the - * $rp->precsym field filled. Other rules take as their precedence - * symbol the first RHS symbol with a defined precedence. If there - * are not RHS symbols with a defined precedence, the precedence - * symbol field is left blank. - */ - function FindRulePrecedences() - { - for ($rp = $this->rule; $rp; $rp = $rp->next) { - if ($rp->precsym === 0) { - for ($i = 0; $i < $rp->nrhs && $rp->precsym === 0; $i++) { - $sp = $rp->rhs[$i]; - if ($sp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for ($j = 0; $j < $sp->nsubsym; $j++) { - if ($sp->subsym[$j]->prec >= 0) { - $rp->precsym = $sp->subsym[$j]; - break; - } - } - } elseif ($sp->prec >= 0) { - $rp->precsym = $rp->rhs[$i]; - } - } - } - } - } - - /** - * Find all nonterminals which will generate the empty string. - * Then go back and compute the first sets of every nonterminal. - * The first set is the set of all terminal symbols which can begin - * a string generated by that nonterminal. - */ - function FindFirstSets() - { - for ($i = 0; $i < $this->nsymbol; $i++) { - $this->symbols[$i]->lambda = false; - } - for($i = $this->nterminal; $i < $this->nsymbol; $i++) { - $this->symbols[$i]->firstset = array(); - } - - /* First compute all lambdas */ - do{ - $progress = 0; - for ($rp = $this->rule; $rp; $rp = $rp->next) { - if ($rp->lhs->lambda) { - continue; - } - for ($i = 0; $i < $rp->nrhs; $i++) { - $sp = $rp->rhs[$i]; - if ($sp->type != PHP_ParserGenerator_Symbol::TERMINAL || $sp->lambda === false) { - break; - } - } - if ($i === $rp->nrhs) { - $rp->lhs->lambda = true; - $progress = 1; - } - } - } while ($progress); - - /* Now compute all first sets */ - do { - $progress = 0; - for ($rp = $this->rule; $rp; $rp = $rp->next) { - $s1 = $rp->lhs; - for ($i = 0; $i < $rp->nrhs; $i++) { - $s2 = $rp->rhs[$i]; - if ($s2->type == PHP_ParserGenerator_Symbol::TERMINAL) { - //progress += SetAdd(s1->firstset,s2->index); - $progress += isset($s1->firstset[$s2->index]) ? 0 : 1; - $s1->firstset[$s2->index] = 1; - break; - } elseif ($s2->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for ($j = 0; $j < $s2->nsubsym; $j++) { - //progress += SetAdd(s1->firstset,s2->subsym[j]->index); - $progress += isset($s1->firstset[$s2->subsym[$j]->index]) ? 0 : 1; - $s1->firstset[$s2->subsym[$j]->index] = 1; - } - break; - } elseif ($s1 === $s2) { - if ($s1->lambda === false) { - break; - } - } else { - //progress += SetUnion(s1->firstset,s2->firstset); - $test = array_diff_key($s2->firstset, $s1->firstset); - if (count($test)) { - $progress++; - $s1->firstset += $test; - } - if ($s2->lambda === false) { - break; - } - } - } - } - } while ($progress); - } - - /** - * Compute all LR(0) states for the grammar. Links - * are added to between some states so that the LR(1) follow sets - * can be computed later. - */ - function FindStates() - { - PHP_ParserGenerator_Config::Configlist_init(); - - /* Find the start symbol */ - if ($this->start) { - $sp = PHP_ParserGenerator_Symbol::Symbol_find($this->start); - if ($sp == 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, 0, - "The specified start symbol \"%s\" is not " . - "in a nonterminal of the grammar. \"%s\" will be used as the start " . - "symbol instead.", $this->start, $this->rule->lhs->name); - $this->errorcnt++; - $sp = $this->rule->lhs; - } - } else { - $sp = $this->rule->lhs; - } - - /* Make sure the start symbol doesn't occur on the right-hand side of - ** any rule. Report an error if it does. (YACC would generate a new - ** start symbol in this case.) */ - for ($rp = $this->rule; $rp; $rp = $rp->next) { - for ($i = 0; $i < $rp->nrhs; $i++) { - if ($rp->rhs[$i]->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - foreach ($rp->rhs[$i]->subsym as $subsp) { - if ($subsp === $sp) { - PHP_ParserGenerator::ErrorMsg($this->filename, 0, - "The start symbol \"%s\" occurs on the " . - "right-hand side of a rule. This will result in a parser which " . - "does not work properly.", $sp->name); - $this->errorcnt++; - } - } - } elseif ($rp->rhs[$i] === $sp) { - PHP_ParserGenerator::ErrorMsg($this->filename, 0, - "The start symbol \"%s\" occurs on the " . - "right-hand side of a rule. This will result in a parser which " . - "does not work properly.", $sp->name); - $this->errorcnt++; - } - } - } - - /* The basis configuration set for the first state - ** is all rules which have the start symbol as their - ** left-hand side */ - for ($rp = $sp->rule; $rp; $rp = $rp->nextlhs) { - $newcfp = PHP_ParserGenerator_Config::Configlist_addbasis($rp, 0); - $newcfp->fws[0] = 1; - } - - /* Compute the first state. All other states will be - ** computed automatically during the computation of the first one. - ** The returned pointer to the first state is not used. */ - $newstp = array(); - $newstp = $this->getstate(); - if (is_array($newstp)) { - $this->buildshifts($newstp[0]); /* Recursively compute successor states */ - } - } - - /** - * @return PHP_ParserGenerator_State - */ - private function getstate() - { - /* Extract the sorted basis of the new state. The basis was constructed - ** by prior calls to "Configlist_addbasis()". */ - PHP_ParserGenerator_Config::Configlist_sortbasis(); - $bp = PHP_ParserGenerator_Config::Configlist_basis(); - - /* Get a state with the same basis */ - $stp = PHP_ParserGenerator_State::State_find($bp); - if ($stp) { - /* A state with the same basis already exists! Copy all the follow-set - ** propagation links from the state under construction into the - ** preexisting state, then return a pointer to the preexisting state */ - for($x = $bp, $y = $stp->bp; $x && $y; $x = $x->bp, $y = $y->bp) { - PHP_ParserGenerator_PropagationLink::Plink_copy($y->bplp, $x->bplp); - PHP_ParserGenerator_PropagationLink::Plink_delete($x->fplp); - $x->fplp = $x->bplp = 0; - } - $cfp = PHP_ParserGenerator_Config::Configlist_return(); - PHP_ParserGenerator_Config::Configlist_eat($cfp); - } else { - /* This really is a new state. Construct all the details */ - PHP_ParserGenerator_Config::Configlist_closure($this); /* Compute the configuration closure */ - PHP_ParserGenerator_Config::Configlist_sort(); /* Sort the configuration closure */ - $cfp = PHP_ParserGenerator_Config::Configlist_return(); /* Get a pointer to the config list */ - $stp = new PHP_ParserGenerator_State; /* A new state structure */ - $stp->bp = $bp; /* Remember the configuration basis */ - $stp->cfp = $cfp; /* Remember the configuration closure */ - $stp->statenum = $this->nstate++; /* Every state gets a sequence number */ - $stp->ap = 0; /* No actions, yet. */ - PHP_ParserGenerator_State::State_insert($stp, $stp->bp); /* Add to the state table */ - // this can't work, recursion is too deep, move it into FindStates() - //$this->buildshifts($stp); /* Recursively compute successor states */ - return array($stp); - } - return $stp; - } - - /** - * Construct all successor states to the given state. A "successor" - * state is any state which can be reached by a shift action. - * @param PHP_ParserGenerator_Data - * @param PHP_ParserGenerator_State The state from which successors are computed - */ - private function buildshifts(PHP_ParserGenerator_State $stp) - { -// struct config *cfp; /* For looping thru the config closure of "stp" */ -// struct config *bcfp; /* For the inner loop on config closure of "stp" */ -// struct config *new; /* */ -// struct symbol *sp; /* Symbol following the dot in configuration "cfp" */ -// struct symbol *bsp; /* Symbol following the dot in configuration "bcfp" */ -// struct state *newstp; /* A pointer to a successor state */ - - /* Each configuration becomes complete after it contibutes to a successor - ** state. Initially, all configurations are incomplete */ - $cfp = $stp->cfp; - for ($cfp = $stp->cfp; $cfp; $cfp = $cfp->next) { - $cfp->status = PHP_ParserGenerator_Config::INCOMPLETE; - } - - /* Loop through all configurations of the state "stp" */ - for ($cfp = $stp->cfp; $cfp; $cfp = $cfp->next) { - if ($cfp->status == PHP_ParserGenerator_Config::COMPLETE) { - continue; /* Already used by inner loop */ - } - if ($cfp->dot >= $cfp->rp->nrhs) { - continue; /* Can't shift this config */ - } - PHP_ParserGenerator_Config::Configlist_reset(); /* Reset the new config set */ - $sp = $cfp->rp->rhs[$cfp->dot]; /* Symbol after the dot */ - - /* For every configuration in the state "stp" which has the symbol "sp" - ** following its dot, add the same configuration to the basis set under - ** construction but with the dot shifted one symbol to the right. */ - $bcfp = $cfp; - for ($bcfp = $cfp; $bcfp; $bcfp = $bcfp->next) { - if ($bcfp->status == PHP_ParserGenerator_Config::COMPLETE) { - continue; /* Already used */ - } - if ($bcfp->dot >= $bcfp->rp->nrhs) { - continue; /* Can't shift this one */ - } - $bsp = $bcfp->rp->rhs[$bcfp->dot]; /* Get symbol after dot */ - if (!PHP_ParserGenerator_Symbol::same_symbol($bsp, $sp)) { - continue; /* Must be same as for "cfp" */ - } - $bcfp->status = PHP_ParserGenerator_Config::COMPLETE; /* Mark this config as used */ - $new = PHP_ParserGenerator_Config::Configlist_addbasis($bcfp->rp, $bcfp->dot + 1); - PHP_ParserGenerator_PropagationLink::Plink_add($new->bplp, $bcfp); - } - - /* Get a pointer to the state described by the basis configuration set - ** constructed in the preceding loop */ - $newstp = $this->getstate(); - if (is_array($newstp)) { - $this->buildshifts($newstp[0]); /* Recursively compute successor states */ - $newstp = $newstp[0]; - } - - /* The state "newstp" is reached from the state "stp" by a shift action - ** on the symbol "sp" */ - if ($sp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for($i = 0; $i < $sp->nsubsym; $i++) { - PHP_ParserGenerator_Action::Action_add($stp->ap, PHP_ParserGenerator_Action::SHIFT, $sp->subsym[$i], - $newstp); - } - } else { - PHP_ParserGenerator_Action::Action_add($stp->ap, PHP_ParserGenerator_Action::SHIFT, $sp, $newstp); - } - } - } - - /** - * Construct the propagation links - */ - function FindLinks() - { - /* Housekeeping detail: - ** Add to every propagate link a pointer back to the state to - ** which the link is attached. */ - foreach ($this->sorted as $info) { - $info->key->stp = $info->data; - } - - /* Convert all backlinks into forward links. Only the forward - ** links are used in the follow-set computation. */ - for ($i = 0; $i < $this->nstate; $i++) { - $stp = $this->sorted[$i]; - for ($cfp = $stp->data->cfp; $cfp; $cfp = $cfp->next) { - for ($plp = $cfp->bplp; $plp; $plp = $plp->next) { - $other = $plp->cfp; - PHP_ParserGenerator_PropagationLink::Plink_add($other->fplp, $cfp); - } - } - } - } - - /** - * Compute the reduce actions, and resolve conflicts. - */ - function FindActions() - { - /* Add all of the reduce actions - ** A reduce action is added for each element of the followset of - ** a configuration which has its dot at the extreme right. - */ - for ($i = 0; $i < $this->nstate; $i++) { /* Loop over all states */ - $stp = $this->sorted[$i]->data; - for ($cfp = $stp->cfp; $cfp; $cfp = $cfp->next) { - /* Loop over all configurations */ - if ($cfp->rp->nrhs == $cfp->dot) { /* Is dot at extreme right? */ - for ($j = 0; $j < $this->nterminal; $j++) { - if (isset($cfp->fws[$j])) { - /* Add a reduce action to the state "stp" which will reduce by the - ** rule "cfp->rp" if the lookahead symbol is "$this->symbols[j]" */ - PHP_ParserGenerator_Action::Action_add($stp->ap, PHP_ParserGenerator_Action::REDUCE, - $this->symbols[$j], $cfp->rp); - } - } - } - } - } - - /* Add the accepting token */ - if ($this->start instanceof PHP_ParserGenerator_Symbol) { - $sp = PHP_ParserGenerator_Symbol::Symbol_find($this->start); - if ($sp === 0) { - $sp = $this->rule->lhs; - } - } else { - $sp = $this->rule->lhs; - } - /* Add to the first state (which is always the starting state of the - ** finite state machine) an action to ACCEPT if the lookahead is the - ** start nonterminal. */ - PHP_ParserGenerator_Action::Action_add($this->sorted[0]->data->ap, PHP_ParserGenerator_Action::ACCEPT, $sp, 0); - - /* Resolve conflicts */ - for ($i = 0; $i < $this->nstate; $i++) { - // struct action *ap, *nap; - // struct state *stp; - $stp = $this->sorted[$i]->data; - if (!$stp->ap) { - throw new Exception('state has no actions associated'); - } - echo 'processing state ' . $stp->statenum . " actions:\n"; - for ($ap = $stp->ap; $ap !== 0 && $ap->next !== 0; $ap = $ap->next) { - echo ' Action '; - $ap->display(true); - } - $stp->ap = PHP_ParserGenerator_Action::Action_sort($stp->ap); - for ($ap = $stp->ap; $ap !== 0 && $ap->next !== 0; $ap = $ap->next) { - for ($nap = $ap->next; $nap !== 0 && $nap->sp === $ap->sp ; $nap = $nap->next) { - /* The two actions "ap" and "nap" have the same lookahead. - ** Figure out which one should be used */ - $this->nconflict += $this->resolve_conflict($ap, $nap, $this->errsym); - } - } - } - - /* Report an error for each rule that can never be reduced. */ - for ($rp = $this->rule; $rp; $rp = $rp->next) { - $rp->canReduce = false; - } - for ($i = 0; $i < $this->nstate; $i++) { - for ($ap = $this->sorted[$i]->data->ap; $ap !== 0; $ap = $ap->next) { - if ($ap->type == PHP_ParserGenerator_Action::REDUCE) { - $ap->x->canReduce = true; - } - } - } - for ($rp = $this->rule; $rp !== 0; $rp = $rp->next) { - if ($rp->canReduce) { - continue; - } - PHP_ParserGenerator::ErrorMsg($this->filename, $rp->ruleline, "This rule can not be reduced (is not connected to the start symbol).\n"); - $this->errorcnt++; - } - } - - /** Resolve a conflict between the two given actions. If the - * conflict can't be resolve, return non-zero. - * - * NO LONGER TRUE: - * To resolve a conflict, first look to see if either action - * is on an error rule. In that case, take the action which - * is not associated with the error rule. If neither or both - * actions are associated with an error rule, then try to - * use precedence to resolve the conflict. - * - * If either action is a SHIFT, then it must be apx. This - * function won't work if apx->type==REDUCE and apy->type==SHIFT. - * @param PHP_ParserGenerator_Action - * @param PHP_ParserGenerator_Action - * @param PHP_ParserGenerator_Symbol|null The error symbol (if defined. NULL otherwise) - */ - function resolve_conflict($apx, $apy, $errsym) - { - $errcnt = 0; - if ($apx->sp !== $apy->sp) { - throw new Exception('no conflict but resolve_conflict called'); - } - if ($apx->type == PHP_ParserGenerator_Action::SHIFT && $apy->type == PHP_ParserGenerator_Action::REDUCE) { - $spx = $apx->sp; - $spy = $apy->x->precsym; - if ($spy === 0 || $spx->prec < 0 || $spy->prec < 0) { - /* Not enough precedence information. */ - $apy->type = PHP_ParserGenerator_Action::CONFLICT; - $errcnt++; - } elseif ($spx->prec > $spy->prec) { /* Lower precedence wins */ - $apy->type = PHP_ParserGenerator_Action::RD_RESOLVED; - } elseif ($spx->prec < $spy->prec) { - $apx->type = PHP_ParserGenerator_Action::SH_RESOLVED; - } elseif ($spx->prec === $spy->prec && $spx->assoc == PHP_ParserGenerator_Symbol::RIGHT) { - /* Use operator */ - $apy->type = PHP_ParserGenerator_Action::RD_RESOLVED; /* associativity */ - } elseif ($spx->prec === $spy->prec && $spx->assoc == PHP_ParserGenerator_Symbol::LEFT) { - /* to break tie */ - $apx->type = PHP_ParserGenerator_Action::SH_RESOLVED; - } else { - if ($spx->prec !== $spy->prec || $spx->assoc !== PHP_ParserGenerator_Symbol::NONE) { - throw new Exception('$spx->prec !== $spy->prec || $spx->assoc !== PHP_ParserGenerator_Symbol::NONE'); - } - $apy->type = PHP_ParserGenerator_Action::CONFLICT; - $errcnt++; - } - } elseif ($apx->type == PHP_ParserGenerator_Action::REDUCE && $apy->type == PHP_ParserGenerator_Action::REDUCE) { - $spx = $apx->x->precsym; - $spy = $apy->x->precsym; - if ($spx === 0 || $spy === 0 || $spx->prec < 0 || - $spy->prec < 0 || $spx->prec === $spy->prec) { - $apy->type = PHP_ParserGenerator_Action::CONFLICT; - $errcnt++; - } elseif ($spx->prec > $spy->prec) { - $apy->type = PHP_ParserGenerator_Action::RD_RESOLVED; - } elseif ($spx->prec < $spy->prec) { - $apx->type = PHP_ParserGenerator_Action::RD_RESOLVED; - } - } else { - if ($apx->type!== PHP_ParserGenerator_Action::SH_RESOLVED && - $apx->type!== PHP_ParserGenerator_Action::RD_RESOLVED && - $apx->type!== PHP_ParserGenerator_Action::CONFLICT && - $apy->type!== PHP_ParserGenerator_Action::SH_RESOLVED && - $apy->type!== PHP_ParserGenerator_Action::RD_RESOLVED && - $apy->type!== PHP_ParserGenerator_Action::CONFLICT) { - throw new Exception('$apx->type!== PHP_ParserGenerator_Action::SH_RESOLVED && - $apx->type!== PHP_ParserGenerator_Action::RD_RESOLVED && - $apx->type!== PHP_ParserGenerator_Action::CONFLICT && - $apy->type!== PHP_ParserGenerator_Action::SH_RESOLVED && - $apy->type!== PHP_ParserGenerator_Action::RD_RESOLVED && - $apy->type!== PHP_ParserGenerator_Action::CONFLICT'); - } - /* The REDUCE/SHIFT case cannot happen because SHIFTs come before - ** REDUCEs on the list. If we reach this point it must be because - ** the parser conflict had already been resolved. */ - } - return $errcnt; - } - - /** - * Reduce the size of the action tables, if possible, by making use - * of defaults. - * - * In this version, we take the most frequent REDUCE action and make - * it the default. - */ - function CompressTables() - { - for ($i = 0; $i < $this->nstate; $i++) { - $stp = $this->sorted[$i]->data; - $nbest = 0; - $rbest = 0; - - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($ap->type != PHP_ParserGenerator_Action::REDUCE) { - continue; - } - $rp = $ap->x; - if ($rp === $rbest) { - continue; - } - $n = 1; - for ($ap2 = $ap->next; $ap2; $ap2 = $ap2->next) { - if ($ap2->type != PHP_ParserGenerator_Action::REDUCE) { - continue; - } - $rp2 = $ap2->x; - if ($rp2 === $rbest) { - continue; - } - if ($rp2 === $rp) { - $n++; - } - } - if ($n > $nbest) { - $nbest = $n; - $rbest = $rp; - } - } - - /* Do not make a default if the number of rules to default - ** is not at least 1 */ - if ($nbest < 1) { - continue; - } - - - /* Combine matching REDUCE actions into a single default */ - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($ap->type == PHP_ParserGenerator_Action::REDUCE && $ap->x === $rbest) { - break; - } - } - if ($ap === 0) { - throw new Exception('$ap is not an object'); - } - $ap->sp = PHP_ParserGenerator_Symbol::Symbol_new("{default}"); - for ($ap = $ap->next; $ap; $ap = $ap->next) { - if ($ap->type == PHP_ParserGenerator_Action::REDUCE && $ap->x === $rbest) { - $ap->type = PHP_ParserGenerator_Action::NOT_USED; - } - } - $stp->ap = PHP_ParserGenerator_Action::Action_sort($stp->ap); - } - } - - /** - * Renumber and resort states so that states with fewer choices - * occur at the end. Except, keep state 0 as the first state. - */ - function ResortStates() - { - for ($i = 0; $i < $this->nstate; $i++) { - $stp = $this->sorted[$i]->data; - $stp->nTknAct = $stp->nNtAct = 0; - $stp->iDflt = $this->nstate + $this->nrule; - $stp->iTknOfst = PHP_ParserGenerator_Data::NO_OFFSET; - $stp->iNtOfst = PHP_ParserGenerator_Data::NO_OFFSET; - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($this->compute_action($ap) >= 0) { - if ($ap->sp->index < $this->nterminal) { - $stp->nTknAct++; - } elseif ($ap->sp->index < $this->nsymbol) { - $stp->nNtAct++; - } else { - $stp->iDflt = $this->compute_action($ap); - } - } - } - $this->sorted[$i] = $stp; - } - $save = $this->sorted[0]; - unset($this->sorted[0]); - usort($this->sorted, array('PHP_ParserGenerator_State', 'stateResortCompare')); - array_unshift($this->sorted, $save); - for($i = 0; $i < $this->nstate; $i++) { - $this->sorted[$i]->statenum = $i; - } - } - - /** - * Given an action, compute the integer value for that action - * which is to be put in the action table of the generated machine. - * Return negative if no action should be generated. - * @param PHP_ParserGenerator_Action - */ - function compute_action($ap) - { - switch ($ap->type) { - case PHP_ParserGenerator_Action::SHIFT: - $act = $ap->x->statenum; - break; - case PHP_ParserGenerator_Action::REDUCE: - $act = $ap->x->index + $this->nstate; - break; - case PHP_ParserGenerator_Action::ERROR: - $act = $this->nstate + $this->nrule; - break; - case PHP_ParserGenerator_Action::ACCEPT: - $act = $this->nstate + $this->nrule + 1; - break; - default: - $act = -1; - break; - } - return $act; - } - - /** - * Generate the "Parse.out" log file - */ - function ReportOutput() - { - $fp = fopen($this->filenosuffix . ".out", "wb"); - if (!$fp) { - return; - } - for ($i = 0; $i < $this->nstate; $i++) { - $stp = $this->sorted[$i]; - fprintf($fp, "State %d:\n", $stp->statenum); - if ($this->basisflag) { - $cfp = $stp->bp; - } else { - $cfp = $stp->cfp; - } - while ($cfp) { - if ($cfp->dot == $cfp->rp->nrhs) { - $buf = sprintf('(%d)', $cfp->rp->index); - fprintf($fp, ' %5s ', $buf); - } else { - fwrite($fp,' '); - } - $cfp->ConfigPrint($fp); - fwrite($fp, "\n"); - if (0) { - //SetPrint(fp,cfp->fws,$this); - //PlinkPrint(fp,cfp->fplp,"To "); - //PlinkPrint(fp,cfp->bplp,"From"); - } - if ($this->basisflag) { - $cfp = $cfp->bp; - } else { - $cfp = $cfp->next; - } - } - fwrite($fp, "\n"); - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($ap->PrintAction($fp, 30)) { - fprintf($fp,"\n"); - } - } - fwrite($fp,"\n"); - } - fclose($fp); - } - - /** - * The next function finds the template file and opens it, returning - * a pointer to the opened file. - * @return resource - */ - private function tplt_open() - { - $templatename = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "Lempar.php"; - $buf = $this->filenosuffix . '.lt'; - if (file_exists($buf) && is_readable($buf)) { - $tpltname = $buf; - } elseif (file_exists($templatename) && is_readable($templatename)) { - $tpltname = $templatename; - } elseif ($fp = @fopen($templatename, 'rb', true)) { - return $fp; - } - if (!isset($tpltname)) { - echo "Can't find the parser driver template file \"%s\".\n", - $templatename; - $this->errorcnt++; - return 0; - } - $in = @fopen($tpltname,"rb"); - if (!$in) { - printf("Can't open the template file \"%s\".\n", $tpltname); - $this->errorcnt++; - return 0; - } - return $in; - } - -#define LINESIZE 1000 - /**#@+ - * The next cluster of routines are for reading the template file - * and writing the results to the generated parser - */ - /** - * The first function transfers data from "in" to "out" until - * a line is seen which begins with "%%". The line number is - * tracked. - * - * if name!=0, then any word that begin with "Parse" is changed to - * begin with *name instead. - */ - private function tplt_xfer($name, $in, $out, &$lineno) - { - while (($line = fgets($in, 1024)) && ($line[0] != '%' || $line[1] != '%')) { - $lineno++; - $iStart = 0; - if ($name) { - for ($i = 0; $i < strlen($line); $i++) { - if ($line[$i] == 'P' && substr($line, $i, 5) == "Parse" - && ($i === 0 || preg_match('/[^a-zA-Z]/', $line[$i - 1]))) { - if ($i > $iStart) { - fwrite($out, substr($line, $iStart, $i - $iStart)); - } - fwrite($out, $name); - $i += 4; - $iStart = $i + 1; - } - } - } - fwrite($out, substr($line, $iStart)); - } - } - - /** - * Print a #line directive line to the output file. - */ - private function tplt_linedir($out, $lineno, $filename) - { - fwrite($out, '#line ' . $lineno . ' "' . $filename . "\"\n"); - } - - /** - * Print a string to the file and keep the linenumber up to date - */ - private function tplt_print($out, $str, $strln, &$lineno) - { - if ($str == '') { - return; - } - $this->tplt_linedir($out, $strln, $this->filename); - $lineno++; - fwrite($out, $str); - $lineno += count(explode("\n", $str)) - 1; - $this->tplt_linedir($out, $lineno + 2, $this->outname); - $lineno += 2; - } - /**#@-*/ - - /** - * Compute all followsets. - * - * A followset is the set of all symbols which can come immediately - * after a configuration. - */ - function FindFollowSets() - { - for ($i = 0; $i < $this->nstate; $i++) { - for ($cfp = $this->sorted[$i]->data->cfp; $cfp; $cfp = $cfp->next) { - $cfp->status = PHP_ParserGenerator_Config::INCOMPLETE; - } - } - - do { - $progress = 0; - for ($i = 0; $i < $this->nstate; $i++) { - for ($cfp = $this->sorted[$i]->data->cfp; $cfp; $cfp = $cfp->next) { - if ($cfp->status == PHP_ParserGenerator_Config::COMPLETE) { - continue; - } - for ($plp = $cfp->fplp; $plp; $plp = $plp->next) { - $a = array_diff_key($cfp->fws, $plp->cfp->fws); - if (count($a)) { - $plp->cfp->fws += $a; - $plp->cfp->status = PHP_ParserGenerator_Config::INCOMPLETE; - $progress = 1; - } - } - $cfp->status = PHP_ParserGenerator_Config::COMPLETE; - } - } - } while ($progress); - } - - /** - * Generate C source code for the parser - * @param int Output in makeheaders format if true - */ - function ReportTable($mhflag) - { -// FILE *out, *in; -// char line[LINESIZE]; -// int lineno; -// struct state *stp; -// struct action *ap; -// struct rule *rp; -// struct acttab *pActtab; -// int i, j, n; -// char *name; -// int mnTknOfst, mxTknOfst; -// int mnNtOfst, mxNtOfst; -// struct axset *ax; - - $in = $this->tplt_open(); - if (!$in) { - return; - } - $out = fopen($this->filenosuffix . ".php", "wb"); - if (!$out) { - fclose($in); - return; - } - $this->outname = $this->filenosuffix . ".php"; - $lineno = 1; - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the include code, if any */ - $this->tplt_print($out, $this->include_code, $this->includeln, $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the class declaration code */ - $this->tplt_print($out, $this->declare_classcode, $this->declare_classln, - $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the internal parser class include code, if any */ - $this->tplt_print($out, $this->include_classcode, $this->include_classln, - $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate #defines for all tokens */ - //if ($mhflag) { - //fprintf($out, "#if INTERFACE\n"); - $lineno++; - if ($this->tokenprefix) { - $prefix = $this->tokenprefix; - } else { - $prefix = ''; - } - for ($i = 1; $i < $this->nterminal; $i++) { - fprintf($out, " const %s%-30s = %2d;\n", $prefix, $this->symbols[$i]->name, $i); - $lineno++; - } - //fwrite($out, "#endif\n"); - $lineno++; - //} - fwrite($out, " const YY_NO_ACTION = " . - ($this->nstate + $this->nrule + 2) . ";\n"); - $lineno++; - fwrite($out, " const YY_ACCEPT_ACTION = " . - ($this->nstate + $this->nrule + 1) . ";\n"); - $lineno++; - fwrite($out, " const YY_ERROR_ACTION = " . - ($this->nstate + $this->nrule) . ";\n"); - $lineno++; - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the action table and its associates: - ** - ** yy_action[] A single table containing all actions. - ** yy_lookahead[] A table containing the lookahead for each entry in - ** yy_action. Used to detect hash collisions. - ** yy_shift_ofst[] For each state, the offset into yy_action for - ** shifting terminals. - ** yy_reduce_ofst[] For each state, the offset into yy_action for - ** shifting non-terminals after a reduce. - ** yy_default[] Default action for each state. - */ - - /* Compute the actions on all states and count them up */ - - $ax = array(); - for ($i = 0; $i < $this->nstate; $i++) { - $stp = $this->sorted[$i]; - $ax[$i * 2] = array(); - $ax[$i * 2]['stp'] = $stp; - $ax[$i * 2]['isTkn'] = 1; - $ax[$i * 2]['nAction'] = $stp->nTknAct; - $ax[$i * 2 + 1] = array(); - $ax[$i * 2 + 1]['stp'] = $stp; - $ax[$i * 2 + 1]['isTkn'] = 0; - $ax[$i * 2 + 1]['nAction'] = $stp->nNtAct; - } - $mxTknOfst = $mnTknOfst = 0; - $mxNtOfst = $mnNtOfst = 0; - - /* Compute the action table. In order to try to keep the size of the - ** action table to a minimum, the heuristic of placing the largest action - ** sets first is used. - */ - - usort($ax, array('PHP_ParserGenerator_Data', 'axset_compare')); - $pActtab = new PHP_ParserGenerator_ActionTable; - for ($i = 0; $i < $this->nstate * 2 && $ax[$i]['nAction'] > 0; $i++) { - $stp = $ax[$i]['stp']; - if ($ax[$i]['isTkn']) { - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($ap->sp->index >= $this->nterminal) { - continue; - } - $action = $this->compute_action($ap); - if ($action < 0) { - continue; - } - $pActtab->acttab_action($ap->sp->index, $action); - } - $stp->iTknOfst = $pActtab->acttab_insert(); - if ($stp->iTknOfst < $mnTknOfst) { - $mnTknOfst = $stp->iTknOfst; - } - if ($stp->iTknOfst > $mxTknOfst) { - $mxTknOfst = $stp->iTknOfst; - } - } else { - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($ap->sp->index < $this->nterminal) { - continue; - } - if ($ap->sp->index == $this->nsymbol) { - continue; - } - $action = $this->compute_action($ap); - if ($action < 0) { - continue; - } - $pActtab->acttab_action($ap->sp->index, $action); - } - $stp->iNtOfst = $pActtab->acttab_insert(); - if ($stp->iNtOfst < $mnNtOfst) { - $mnNtOfst = $stp->iNtOfst; - } - if ($stp->iNtOfst > $mxNtOfst) { - $mxNtOfst = $stp->iNtOfst; - } - } - } - /* Output the yy_action table */ - - fprintf($out, " const YY_SZ_ACTTAB = %d;\n", $pActtab->nAction); - $lineno++; - fwrite($out, "static public \$yy_action = array(\n"); - $lineno++; - $n = $pActtab->nAction; - for($i = $j = 0; $i < $n; $i++) { - $action = $pActtab->aAction[$i]['action']; - if ($action < 0) { - $action = $this->nsymbol + $this->nrule + 2; - } - // change next line - if ($j === 0) { - fprintf($out, " /* %5d */ ", $i); - } - fprintf($out, " %4d,", $action); - if ($j == 9 || $i == $n - 1) { - fwrite($out, "\n"); - $lineno++; - $j = 0; - } else { - $j++; - } - } - fwrite($out, " );\n"); $lineno++; - - /* Output the yy_lookahead table */ - - fwrite($out, " static public \$yy_lookahead = array(\n"); - $lineno++; - for ($i = $j = 0; $i < $n; $i++) { - $la = $pActtab->aAction[$i]['lookahead']; - if ($la < 0) { - $la = $this->nsymbol; - } - // change next line - if ($j === 0) { - fprintf($out, " /* %5d */ ", $i); - } - fprintf($out, " %4d,", $la); - if ($j == 9 || $i == $n - 1) { - fwrite($out, "\n"); - $lineno++; - $j = 0; - } else { - $j++; - } - } - fwrite($out, ");\n"); - $lineno++; - - /* Output the yy_shift_ofst[] table */ - fprintf($out, " const YY_SHIFT_USE_DFLT = %d;\n", $mnTknOfst - 1); - $lineno++; - $n = $this->nstate; - while ($n > 0 && $this->sorted[$n - 1]->iTknOfst == PHP_ParserGenerator_Data::NO_OFFSET) { - $n--; - } - fprintf($out, " const YY_SHIFT_MAX = %d;\n", $n - 1); - $lineno++; - fwrite($out, " static public \$yy_shift_ofst = array(\n"); - $lineno++; - for ($i = $j = 0; $i < $n; $i++) { - $stp = $this->sorted[$i]; - $ofst = $stp->iTknOfst; - if ($ofst === PHP_ParserGenerator_Data::NO_OFFSET) { - $ofst = $mnTknOfst - 1; - } - // change next line - if ($j === 0) { - fprintf($out, " /* %5d */ ", $i); - } - fprintf($out, " %4d,", $ofst); - if ($j == 9 || $i == $n - 1) { - fwrite($out, "\n"); - $lineno++; - $j = 0; - } else { - $j++; - } - } - fwrite($out, ");\n"); - $lineno++; - - - /* Output the yy_reduce_ofst[] table */ - - fprintf($out, " const YY_REDUCE_USE_DFLT = %d;\n", $mnNtOfst - 1); - $lineno++; - $n = $this->nstate; - while ($n > 0 && $this->sorted[$n - 1]->iNtOfst == PHP_ParserGenerator_Data::NO_OFFSET) { - $n--; - } - fprintf($out, " const YY_REDUCE_MAX = %d;\n", $n - 1); - $lineno++; - fwrite($out, " static public \$yy_reduce_ofst = array(\n"); - $lineno++; - for ($i = $j = 0; $i < $n; $i++) { - $stp = $this->sorted[$i]; - $ofst = $stp->iNtOfst; - if ($ofst == PHP_ParserGenerator_Data::NO_OFFSET) { - $ofst = $mnNtOfst - 1; - } - // change next line - if ($j == 0) { - fprintf($out, " /* %5d */ ", $i); - } - fprintf($out, " %4d,", $ofst); - if ($j == 9 || $i == $n - 1) { - fwrite($out, "\n"); - $lineno++; - $j = 0; - } else { - $j++; - } - } - fwrite($out, ");\n"); - $lineno++; - - /* Output the expected tokens table */ - - fwrite($out, " static public \$yyExpectedTokens = array(\n"); - $lineno++; - for ($i = 0; $i < $this->nstate; $i++) { - $stp = $this->sorted[$i]; - fwrite($out, " /* $i */ array("); - for ($ap = $stp->ap; $ap; $ap = $ap->next) { - if ($ap->sp->index < $this->nterminal) { - if ($ap->type == PHP_ParserGenerator_Action::SHIFT || - $ap->type == PHP_ParserGenerator_Action::REDUCE) { - fwrite($out, $ap->sp->index . ', '); - } - } - } - fwrite($out, "),\n"); - $lineno++; - } - fwrite($out, ");\n"); - $lineno++; - - /* Output the default action table */ - - fwrite($out, " static public \$yy_default = array(\n"); - $lineno++; - $n = $this->nstate; - for ($i = $j = 0; $i < $n; $i++) { - $stp = $this->sorted[$i]; - // change next line - if ($j == 0) { - fprintf($out, " /* %5d */ ", $i); - } - fprintf($out, " %4d,", $stp->iDflt); - if ($j == 9 || $i == $n - 1) { - fprintf($out, "\n"); $lineno++; - $j = 0; - } else { - $j++; - } - } - fwrite($out, ");\n"); - $lineno++; - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the defines */ - fprintf($out, " const YYNOCODE = %d;\n", $this->nsymbol + 1); - $lineno++; - if ($this->stacksize) { - if($this->stacksize <= 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, 0, - "Illegal stack size: [%s]. The stack size should be an integer constant.", - $this->stacksize); - $this->errorcnt++; - $this->stacksize = "100"; - } - fprintf($out, " const YYSTACKDEPTH = %s;\n", $this->stacksize); - $lineno++; - } else { - fwrite($out," const YYSTACKDEPTH = 100;\n"); - $lineno++; - } - fprintf($out, " const YYNSTATE = %d;\n", $this->nstate); - $lineno++; - fprintf($out, " const YYNRULE = %d;\n", $this->nrule); - $lineno++; - fprintf($out, " const YYERRORSYMBOL = %d;\n", $this->errsym->index); - $lineno++; - fprintf($out, " const YYERRSYMDT = 'yy%d';\n", $this->errsym->dtnum); - $lineno++; - if ($this->has_fallback) { - fwrite($out, " const YYFALLBACK = 1;\n"); - } else { - fwrite($out, " const YYFALLBACK = 0;\n"); - } - $lineno++; - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the table of fallback tokens. - */ - - if ($this->has_fallback) { - for ($i = 0; $i < $this->nterminal; $i++) { - $p = $this->symbols[$i]; - if ($p->fallback === 0) { - // change next line - fprintf($out, " 0, /* %10s => nothing */\n", $p->name); - } else { - // change next line - fprintf($out, " %3d, /* %10s => %s */\n", - $p->fallback->index, $p->name, $p->fallback->name); - } - $lineno++; - } - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - - /* Generate a table containing the symbolic name of every symbol - ($yyTokenName) - */ - - for ($i = 0; $i < $this->nsymbol; $i++) { - fprintf($out," %-15s", "'" . $this->symbols[$i]->name . "',"); - if (($i & 3) == 3) { - fwrite($out,"\n"); - $lineno++; - } - } - if (($i & 3) != 0) { - fwrite($out, "\n"); - $lineno++; - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate a table containing a text string that describes every - ** rule in the rule set of the grammer. This information is used - ** when tracing REDUCE actions. - */ - - for ($i = 0, $rp = $this->rule; $rp; $rp = $rp->next, $i++) { - if ($rp->index !== $i) { - throw new Exception('rp->index != i and should be'); - } - // change next line - fprintf($out, " /* %3d */ \"%s ::=", $i, $rp->lhs->name); - for ($j = 0; $j < $rp->nrhs; $j++) { - $sp = $rp->rhs[$j]; - fwrite($out,' ' . $sp->name); - if ($sp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - for($k = 1; $k < $sp->nsubsym; $k++) { - fwrite($out, '|' . $sp->subsym[$k]->name); - } - } - } - fwrite($out, "\",\n"); - $lineno++; - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate code which executes every time a symbol is popped from - ** the stack while processing errors or while destroying the parser. - ** (In other words, generate the %destructor actions) - */ - - if ($this->tokendest) { - for ($i = 0; $i < $this->nsymbol; $i++) { - $sp = $this->symbols[$i]; - if ($sp === 0 || $sp->type != PHP_ParserGenerator_Symbol::TERMINAL) { - continue; - } - fprintf($out, " case %d:\n", $sp->index); - $lineno++; - } - for ($i = 0; $i < $this->nsymbol && - $this->symbols[$i]->type != PHP_ParserGenerator_Symbol::TERMINAL; $i++); - if ($i < $this->nsymbol) { - $this->emit_destructor_code($out, $this->symbols[$i], $lineno); - fprintf($out, " break;\n"); - $lineno++; - } - } - if ($this->vardest) { - $dflt_sp = 0; - for ($i = 0; $i < $this->nsymbol; $i++) { - $sp = $this->symbols[$i]; - if ($sp === 0 || $sp->type == PHP_ParserGenerator_Symbol::TERMINAL || - $sp->index <= 0 || $sp->destructor != 0) { - continue; - } - fprintf($out, " case %d:\n", $sp->index); - $lineno++; - $dflt_sp = $sp; - } - if ($dflt_sp != 0) { - $this->emit_destructor_code($out, $dflt_sp, $lineno); - fwrite($out, " break;\n"); - $lineno++; - } - } - for ($i = 0; $i < $this->nsymbol; $i++) { - $sp = $this->symbols[$i]; - if ($sp === 0 || $sp->type == PHP_ParserGenerator_Symbol::TERMINAL || - $sp->destructor === 0) { - continue; - } - fprintf($out, " case %d:\n", $sp->index); - $lineno++; - - /* Combine duplicate destructors into a single case */ - - for ($j = $i + 1; $j < $this->nsymbol; $j++) { - $sp2 = $this->symbols[$j]; - if ($sp2 && $sp2->type != PHP_ParserGenerator_Symbol::TERMINAL && $sp2->destructor - && $sp2->dtnum == $sp->dtnum - && $sp->destructor == $sp2->destructor) { - fprintf($out, " case %d:\n", $sp2->index); - $lineno++; - $sp2->destructor = 0; - } - } - - $this->emit_destructor_code($out, $this->symbols[$i], $lineno); - fprintf($out, " break;\n"); - $lineno++; - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate code which executes whenever the parser stack overflows */ - - $this->tplt_print($out, $this->overflow, $this->overflowln, $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate the table of rule information - ** - ** Note: This code depends on the fact that rules are number - ** sequentually beginning with 0. - */ - - for ($rp = $this->rule; $rp; $rp = $rp->next) { - fprintf($out, " array( 'lhs' => %d, 'rhs' => %d ),\n", - $rp->lhs->index, $rp->nrhs); - $lineno++; - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - - /* Generate code which executes during each REDUCE action */ - - for ($rp = $this->rule; $rp; $rp = $rp->next) { - if ($rp->code) { - $this->translate_code($rp); - } - } - - /* Generate the method map for each REDUCE action */ - - for ($rp = $this->rule; $rp; $rp = $rp->next) { - if ($rp->code === 0) { - continue; - } - fwrite($out, ' ' . $rp->index . ' => ' . $rp->index . ",\n"); - $lineno++; - for ($rp2 = $rp->next; $rp2; $rp2 = $rp2->next) { - if ($rp2->code === $rp->code) { - fwrite($out, ' ' . $rp2->index . ' => ' . - $rp->index . ",\n"); - $lineno++; - $rp2->code = 0; - } - } - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - for ($rp = $this->rule; $rp; $rp = $rp->next) { - if ($rp->code === 0) { - continue; - } - $this->emit_code($out, $rp, $lineno); - } - $this->tplt_xfer($this->name, $in, $out, $lineno); - - - /* Generate code which executes if a parse fails */ - - $this->tplt_print($out, $this->failure, $this->failureln, $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate code which executes when a syntax error occurs */ - - $this->tplt_print($out, $this->error, $this->errorln, $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Generate code which executes when the parser accepts its input */ - - $this->tplt_print($out, $this->accept, $this->acceptln, $lineno); - $this->tplt_xfer($this->name, $in, $out, $lineno); - - /* Append any addition code the user desires */ - - $this->tplt_print($out, $this->extracode, $this->extracodeln, $lineno); - - fclose($in); - fclose($out); - } - - /** - * Generate code which executes when the rule "rp" is reduced. Write - * the code to "out". Make sure lineno stays up-to-date. - */ - function emit_code($out, PHP_ParserGenerator_Rule $rp, &$lineno) - { - $linecnt = 0; - - /* Generate code to do the reduce action */ - if ($rp->code) { - $this->tplt_linedir($out, $rp->line, $this->filename); - fwrite($out, " function yy_r$rp->index(){" . $rp->code); - $linecnt += count(explode("\n", $rp->code)) - 1; - $lineno += 3 + $linecnt; - fwrite($out, " }\n"); - $this->tplt_linedir($out, $lineno, $this->outname); - } /* End if( rp->code ) */ - } - - /** - * Append text to a dynamically allocated string. If zText is 0 then - * reset the string to be empty again. Always return the complete text - * of the string (which is overwritten with each call). - * - * n bytes of zText are stored. If n==0 then all of zText is stored. - * - * If n==-1, then the previous character is overwritten. - * @param string - * @param int - */ - function append_str($zText, $n) - { - static $z = ''; - $zInt = ''; - - if ($zText === '') { - $ret = $z; - $z = ''; - return $ret; - } - if ($n <= 0) { - if ($n < 0) { - if (!strlen($z)) { - throw new Exception('z is zero-length'); - } - $z = substr($z, 0, strlen($z) - 1); - if (!$z) { - $z = ''; - } - } - $n = strlen($zText); - } - $i = 0; - $z .= substr($zText, 0, $n); - return $z; - } - - /** - * zCode is a string that is the action associated with a rule. Expand - * the symbols in this string so that the refer to elements of the parser - * stack. - */ - function translate_code(PHP_ParserGenerator_Rule $rp) - { - $lhsused = 0; /* True if the LHS element has been used */ - $used = array(); /* True for each RHS element which is used */ - - for($i = 0; $i < $rp->nrhs; $i++) { - $used[$i] = 0; - } - - $this->append_str('', 0); - for ($i = 0; $i < strlen($rp->code); $i++) { - $cp = $rp->code[$i]; - if (preg_match('/[A-Za-z]/', $cp) && - ($i === 0 || (!preg_match('/[A-Za-z0-9_]/', $rp->code[$i - 1])))) { - //*xp = 0; - // previous line is in essence a temporary substr, so - // we will simulate it - $test = substr($rp->code, $i); - preg_match('/[A-Za-z0-9_]+/', $test, $matches); - $tempcp = $matches[0]; - $j = strlen($tempcp) + $i; - if ($rp->lhsalias && $tempcp == $rp->lhsalias) { - $this->append_str("\$this->_retvalue", 0); - $cp = $rp->code[$j]; - $i = $j; - $lhsused = 1; - } else { - for ($ii = 0; $ii < $rp->nrhs; $ii++) { - if ($rp->rhsalias[$ii] && $tempcp == $rp->rhsalias[$ii]) { - if ($ii !== 0 && $rp->code[$ii - 1] == '@') { - /* If the argument is of the form @X then substitute - ** the token number of X, not the value of X */ - $this->append_str("\$this->yystack[\$this->yyidx + " . - ($ii - $rp->nrhs + 1) . "]->major", -1); - } else { - $sp = $rp->rhs[$ii]; - if ($sp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - $dtnum = $sp->subsym[0]->dtnum; - } else { - $dtnum = $sp->dtnum; - } - $this->append_str("\$this->yystack[\$this->yyidx + " . - ($ii - $rp->nrhs + 1) . "]->minor", 0); - } - $cp = $rp->code[$j]; - $i = $j; - $used[$ii] = 1; - break; - } - } - } - } - $this->append_str($cp, 1); - } /* End loop */ - - /* Check to make sure the LHS has been used */ - if ($rp->lhsalias && !$lhsused) { - PHP_ParserGenerator::ErrorMsg($this->filename, $rp->ruleline, - "Label \"%s\" for \"%s(%s)\" is never used.", - $rp->lhsalias, $rp->lhs->name, $rp->lhsalias); - $this->errorcnt++; - } - - /* Generate destructor code for RHS symbols which are not used in the - ** reduce code */ - for($i = 0; $i < $rp->nrhs; $i++) { - if ($rp->rhsalias[$i] && !isset($used[$i])) { - PHP_ParserGenerator::ErrorMsg($this->filename, $rp->ruleline, - "Label %s for \"%s(%s)\" is never used.", - $rp->rhsalias[$i], $rp->rhs[$i]->name, $rp->rhsalias[$i]); - $this->errorcnt++; - } elseif ($rp->rhsalias[$i] == 0) { - if ($rp->rhs[$i]->type == PHP_ParserGenerator_Symbol::TERMINAL) { - $hasdestructor = $this->tokendest != 0; - }else{ - $hasdestructor = $this->vardest !== 0 || $rp->rhs[$i]->destructor !== 0; - } - if ($hasdestructor) { - $this->append_str(" \$this->yy_destructor(" . - ($rp->rhs[$i]->index) . ", \$this->yystack[\$this->yyidx + " . - ($i - $rp->nrhs + 1) . "]->minor);\n", 0); - } else { - /* No destructor defined for this term */ - } - } - } - $cp = $this->append_str('', 0); - $rp->code = $cp; - } - - /** - * The following routine emits code for the destructor for the - * symbol sp - */ - function emit_destructor_code($out, PHP_ParserGenerator_Symbol $sp, &$lineno) -// FILE *out; -// struct symbol *sp; -// struct lemon *lemp; -// int *lineno; - { - $cp = 0; - - $linecnt = 0; - if ($sp->type == PHP_ParserGenerator_Symbol::TERMINAL) { - $cp = $this->tokendest; - if ($cp === 0) { - return; - } - $this->tplt_linedir($out, $this->tokendestln, $this->filename); - fwrite($out, "{"); - } elseif ($sp->destructor) { - $cp = $sp->destructor; - $this->tplt_linedir($out, $sp->destructorln, $this->filename); - fwrite($out, "{"); - } elseif ($this->vardest) { - $cp = $this->vardest; - if ($cp === 0) { - return; - } - $this->tplt_linedir($out, $this->vardestln, $this->filename); - fwrite($out, "{"); - } else { - throw new Exception('emit_destructor'); /* Cannot happen */ - } - for ($i = 0; $i < strlen($cp); $i++) { - if ($cp[$i]=='$' && $cp[$i + 1]=='$' ) { - fprintf($out, "(yypminor->yy%d)", $sp->dtnum); - $i++; - continue; - } - if ($cp[$i] == "\n") { - $linecnt++; - } - fwrite($out, $cp[$i]); - } - $lineno += 3 + $linecnt; - fwrite($out, "}\n"); - $this->tplt_linedir($out, $lineno, $this->outname); - } - - /** - * Compare to axset structures for sorting purposes - */ - static function axset_compare($a, $b) - { - return $b['nAction'] - $a['nAction']; - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/Parser.php
Deleted
@@ -1,845 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: This source file is subject to version 3.01 of the PHP license - * that is available through the world-wide-web at the following URI: - * http://www.php.net/license/3_01.txt. If you did not receive a copy of - * the PHP License and are unable to obtain it through the web, please - * send a note to license@php.net so we can mail you a copy immediately. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: Parser.php,v 1.2 2007/03/02 16:36:24 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * The grammar parser for lemon grammar files. - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_Parser -{ - const INITIALIZE = 1; - const WAITING_FOR_DECL_OR_RULE = 2; - const WAITING_FOR_DECL_KEYWORD = 3; - const WAITING_FOR_DECL_ARG = 4; - const WAITING_FOR_PRECEDENCE_SYMBOL = 5; - const WAITING_FOR_ARROW = 6; - const IN_RHS = 7; - const LHS_ALIAS_1 = 8; - const LHS_ALIAS_2 = 9; - const LHS_ALIAS_3 = 10; - const RHS_ALIAS_1 = 11; - const RHS_ALIAS_2 = 12; - const PRECEDENCE_MARK_1 = 13; - const PRECEDENCE_MARK_2 = 14; - const RESYNC_AFTER_RULE_ERROR = 15; - const RESYNC_AFTER_DECL_ERROR = 16; - const WAITING_FOR_DESTRUCTOR_SYMBOL = 17; - const WAITING_FOR_DATATYPE_SYMBOL = 18; - const WAITING_FOR_FALLBACK_ID = 19; - - /** - * Name of the input file - * - * @var string - */ - public $filename; - /** - * Linenumber at which current token starts - * @var int - */ - public $tokenlineno; - /** - * Number of parsing errors so far - * @var int - */ - public $errorcnt; - /** - * Index of current token within the input string - * @var int - */ - public $tokenstart; - /** - * Global state vector - * @var PHP_ParserGenerator_Data - */ - public $gp; - /** - * Parser state (one of the class constants for this class) - * - * - PHP_ParserGenerator_Parser::INITIALIZE, - * - PHP_ParserGenerator_Parser::WAITING_FOR_DECL_OR_RULE, - * - PHP_ParserGenerator_Parser::WAITING_FOR_DECL_KEYWORD, - * - PHP_ParserGenerator_Parser::WAITING_FOR_DECL_ARG, - * - PHP_ParserGenerator_Parser::WAITING_FOR_PRECEDENCE_SYMBOL, - * - PHP_ParserGenerator_Parser::WAITING_FOR_ARROW, - * - PHP_ParserGenerator_Parser::IN_RHS, - * - PHP_ParserGenerator_Parser::LHS_ALIAS_1, - * - PHP_ParserGenerator_Parser::LHS_ALIAS_2, - * - PHP_ParserGenerator_Parser::LHS_ALIAS_3, - * - PHP_ParserGenerator_Parser::RHS_ALIAS_1, - * - PHP_ParserGenerator_Parser::RHS_ALIAS_2, - * - PHP_ParserGenerator_Parser::PRECEDENCE_MARK_1, - * - PHP_ParserGenerator_Parser::PRECEDENCE_MARK_2, - * - PHP_ParserGenerator_Parser::RESYNC_AFTER_RULE_ERROR, - * - PHP_ParserGenerator_Parser::RESYNC_AFTER_DECL_ERROR, - * - PHP_ParserGenerator_Parser::WAITING_FOR_DESTRUCTOR_SYMBOL, - * - PHP_ParserGenerator_Parser::WAITING_FOR_DATATYPE_SYMBOL, - * - PHP_ParserGenerator_Parser::WAITING_FOR_FALLBACK_ID - * @var int - */ - public $state; - /** - * The fallback token - * @var PHP_ParserGenerator_Symbol - */ - public $fallback; - /** - * Left-hand side of the current rule - * @var PHP_ParserGenerator_Symbol - */ - public $lhs; - /** - * Alias for the LHS - * @var string - */ - public $lhsalias; - /** - * Number of right-hand side symbols seen - * @var int - */ - public $nrhs; - /** - * Right-hand side symbols - * @var array array of {@link PHP_ParserGenerator_Symbol} objects - */ - public $rhs = array(); - /** - * Aliases for each RHS symbol name (or NULL) - * @var array array of strings - */ - public $alias = array(); - /** - * Previous rule parsed - * @var PHP_ParserGenerator_Rule - */ - public $prevrule; - /** - * Keyword of a declaration - * - * This is one of the %keyword keywords in the grammar file - * @var string - */ - public $declkeyword; - /** - * Where the declaration argument should be put - * - * This is assigned as a reference to an internal variable - * @var mixed - */ - public $declargslot = array(); - /** - * Where the declaration linenumber is put - * - * This is assigned as a reference to an internal variable - * @var mixed - */ - public $decllnslot; - /*enum e_assoc*/ - public $declassoc; /* Assign this association to decl arguments */ - public $preccounter; /* Assign this precedence to decl arguments */ - /** - * @var PHP_ParserGenerator_Rule - */ - public $firstrule; /* Pointer to first rule in the grammar */ - /** - * @var PHP_ParserGenerator_Rule - */ - public $lastrule; /* Pointer to the most recently parsed rule */ - - /** - * @var PHP_ParserGenerator - */ - private $lemon; - - function __construct(PHP_ParserGenerator $lem) - { - $this->lemon = $lem; - } - - /** - * Run the preprocessor over the input file text. The Lemon variable - * $azDefine contains the names of all defined - * macros. This routine looks for "%ifdef" and "%ifndef" and "%endif" and - * comments them out. Text in between is also commented out as appropriate. - * @param string - */ - private function preprocess_input(&$z) - { - $start = 0; - $lineno = $exclude = 0; - for ($i=0; $i < strlen($z); $i++) { - if ($z[$i] == "\n") { - $lineno++; - } - if ($z[$i] != '%' || ($i > 0 && $z[$i-1] != "\n")) { - continue; - } - if (substr($z, $i, 6) === "%endif" && trim($z[$i+6]) === '') { - if ($exclude) { - $exclude--; - if ($exclude === 0) { - for ($j = $start; $j < $i; $j++) { - if ($z[$j] != "\n") $z[$j] = ' '; - } - } - } - for ($j = $i; $j < strlen($z) && $z[$j] != "\n"; $j++) { - $z[$j] = ' '; - } - } elseif (substr($z, $i, 6) === "%ifdef" && trim($z[$i+6]) === '' || - substr($z, $i, 7) === "%ifndef" && trim($z[$i+7]) === '') { - if ($exclude) { - $exclude++; - } else { - $j = $i; - $n = strtok(substr($z, $j), " \t"); - $exclude = 1; - if (isset($this->lemon->azDefine[$n])) { - $exclude = 0; - } - if ($z[$i + 3]=='n') { - // this is a rather obtuse way of checking whether this is %ifndef - $exclude = !$exclude; - } - if ($exclude) { - $start = $i; - $start_lineno = $lineno; - } - } - //for ($j = $i; $j < strlen($z) && $z[$j] != "\n"; $j++) $z[$j] = ' '; - $j = strpos(substr($z, $i), "\n"); - if ($j === false) { - $z = substr($z, 0, $i); // remove instead of adding ' ' - } else { - $z = substr($z, 0, $i) . substr($z, $i + $j); // remove instead of adding ' ' - } - } - } - if ($exclude) { - throw new Exception("unterminated %ifdef starting on line $start_lineno\n"); - } - } - - /** - * In spite of its name, this function is really a scanner. - * - * It reads in the entire input file (all at once) then tokenizes it. - * Each token is passed to the function "parseonetoken" which builds all - * the appropriate data structures in the global state vector "gp". - * @param PHP_ParserGenerator_Data - */ - function Parse(PHP_ParserGenerator_Data $gp) - { - $startline = 0; - - $this->gp = $gp; - $this->filename = $gp->filename; - $this->errorcnt = 0; - $this->state = self::INITIALIZE; - - /* Begin by reading the input file */ - $filebuf = file_get_contents($this->filename); - if (!$filebuf) { - PHP_ParserGenerator::ErrorMsg($this->filename, 0, "Can't open this file for reading."); - $gp->errorcnt++; - return; - } - if (filesize($this->filename) != strlen($filebuf)) { - ErrorMsg($this->filename, 0, "Can't read in all %d bytes of this file.", - filesize($this->filename)); - $gp->errorcnt++; - return; - } - - /* Make an initial pass through the file to handle %ifdef and %ifndef */ - $this->preprocess_input($filebuf); - - /* Now scan the text of the input file */ - $lineno = 1; - for ($cp = 0, $c = $filebuf[0]; $cp < strlen($filebuf); $cp++) { - $c = $filebuf[$cp]; - if ($c == "\n") $lineno++; /* Keep track of the line number */ - if (trim($c) === '') { - continue; - } /* Skip all white space */ - if ($filebuf[$cp] == '/' && ($cp + 1 < strlen($filebuf)) && $filebuf[$cp + 1] == '/') { - /* Skip C++ style comments */ - $cp += 2; - $z = strpos(substr($filebuf, $cp), "\n"); - if ($z === false) { - $cp = strlen($filebuf); - break; - } - $lineno++; - $cp += $z; - continue; - } - if ($filebuf[$cp] == '/' && ($cp + 1 < strlen($filebuf)) && $filebuf[$cp + 1] == '*') { - /* Skip C style comments */ - $cp += 2; - $z = strpos(substr($filebuf, $cp), '*/'); - if ($z !== false) { - $lineno += count(explode("\n", substr($filebuf, $cp, $z))) - 1; - } - $cp += $z + 1; - continue; - } - $this->tokenstart = $cp; /* Mark the beginning of the token */ - $this->tokenlineno = $lineno; /* Linenumber on which token begins */ - if ($filebuf[$cp] == '"') { /* String literals */ - $cp++; - $oldcp = $cp; - $test = strpos(substr($filebuf, $cp), '"'); - if ($test === false) { - PHP_ParserGenerator::ErrorMsg($this->filename, $startline, - "String starting on this line is not terminated before the end of the file."); - $this->errorcnt++; - $nextcp = $cp = strlen($filebuf); - } else { - $cp += $test; - $nextcp = $cp + 1; - } - $lineno += count(explode("\n", substr($filebuf, $oldcp, $cp - $oldcp))) - 1; - } elseif ($filebuf[$cp] == '{') { /* A block of C code */ - $cp++; - for ($level = 1; $cp < strlen($filebuf) && ($level > 1 || $filebuf[$cp] != '}'); $cp++) { - if ($filebuf[$cp] == "\n") { - $lineno++; - } elseif ($filebuf[$cp] == '{') { - $level++; - } elseif ($filebuf[$cp] == '}') { - $level--; - } elseif ($filebuf[$cp] == '/' && $filebuf[$cp + 1] == '*') { - /* Skip comments */ - $cp += 2; - $z = strpos(substr($filebuf, $cp), '*/'); - if ($z !== false) { - $lineno += count(explode("\n", substr($filebuf, $cp, $z))) - 1; - } - $cp += $z + 2; - } elseif ($filebuf[$cp] == '/' && $filebuf[$cp + 1] == '/') { - /* Skip C++ style comments too */ - $cp += 2; - $z = strpos(substr($filebuf, $cp), "\n"); - if ($z === false) { - $cp = strlen($filebuf); - break; - } else { - $lineno++; - } - $cp += $z; - } elseif ($filebuf[$cp] == "'" || $filebuf[$cp] == '"') { - /* String a character literals */ - $startchar = $filebuf[$cp]; - $prevc = 0; - for ($cp++; $cp < strlen($filebuf) && ($filebuf[$cp] != $startchar || $prevc === '\\'); $cp++) { - if ($filebuf[$cp] == "\n") { - $lineno++; - } - if ($prevc === '\\') { - $prevc = 0; - } else { - $prevc = $filebuf[$cp]; - } - } - } - } - if ($cp >= strlen($filebuf)) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "PHP code starting on this line is not terminated before the end of the file."); - $this->errorcnt++; - $nextcp = $cp; - } else { - $nextcp = $cp + 1; - } - } elseif (preg_match('/[a-zA-Z0-9]/', $filebuf[$cp])) { - /* Identifiers */ - preg_match('/[a-zA-Z0-9_]+/', substr($filebuf, $cp), $preg_results); - $cp += strlen($preg_results[0]); - $nextcp = $cp; - } elseif ($filebuf[$cp] == ':' && $filebuf[$cp + 1] == ':' && - $filebuf[$cp + 2] == '=') { - /* The operator "::=" */ - $cp += 3; - $nextcp = $cp; - } elseif (($filebuf[$cp] == '/' || $filebuf[$cp] == '|') && - preg_match('/[a-zA-Z]/', $filebuf[$cp + 1])) { - $cp += 2; - preg_match('/[a-zA-Z0-9_]+/', substr($filebuf, $cp), $preg_results); - $cp += strlen($preg_results[0]); - $nextcp = $cp; - } else { - /* All other (one character) operators */ - $cp ++; - $nextcp = $cp; - } - $this->parseonetoken(substr($filebuf, $this->tokenstart, - $cp - $this->tokenstart)); /* Parse the token */ - $cp = $nextcp - 1; - } - $gp->rule = $this->firstrule; - $gp->errorcnt = $this->errorcnt; - } - - /** - * Parse a single token - * @param string token - */ - function parseonetoken($token) - { - $x = $token; - $this->a = 0; // for referencing in WAITING_FOR_DECL_KEYWORD - if (PHP_ParserGenerator::DEBUG) { - printf("%s:%d: Token=[%s] state=%d\n", - $this->filename, $this->tokenlineno, $token, $this->state); - } - switch ($this->state) { - case self::INITIALIZE: - $this->prevrule = 0; - $this->preccounter = 0; - $this->firstrule = $this->lastrule = 0; - $this->gp->nrule = 0; - /* Fall thru to next case */ - case self::WAITING_FOR_DECL_OR_RULE: - if ($x[0] == '%') { - $this->state = self::WAITING_FOR_DECL_KEYWORD; - } elseif (preg_match('/[a-z]/', $x[0])) { - $this->lhs = PHP_ParserGenerator_Symbol::Symbol_new($x); - $this->nrhs = 0; - $this->lhsalias = 0; - $this->state = self::WAITING_FOR_ARROW; - } elseif ($x[0] == '{') { - if ($this->prevrule === 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "There is no prior rule opon which to attach the code - fragment which begins on this line."); - $this->errorcnt++; - } elseif ($this->prevrule->code != 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Code fragment beginning on this line is not the first \ - to follow the previous rule."); - $this->errorcnt++; - } else { - $this->prevrule->line = $this->tokenlineno; - $this->prevrule->code = substr($x, 1); - } - } elseif ($x[0] == '[') { - $this->state = self::PRECEDENCE_MARK_1; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Token \"%s\" should be either \"%%\" or a nonterminal name.", - $x); - $this->errorcnt++; - } - break; - case self::PRECEDENCE_MARK_1: - if (!preg_match('/[A-Z]/', $x[0])) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "The precedence symbol must be a terminal."); - $this->errorcnt++; - } elseif ($this->prevrule === 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "There is no prior rule to assign precedence \"[%s]\".", $x); - $this->errorcnt++; - } elseif ($this->prevrule->precsym != 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Precedence mark on this line is not the first to follow the previous rule."); - $this->errorcnt++; - } else { - $this->prevrule->precsym = PHP_ParserGenerator_Symbol::Symbol_new($x); - } - $this->state = self::PRECEDENCE_MARK_2; - break; - case self::PRECEDENCE_MARK_2: - if ($x[0] != ']') { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Missing \"]\" on precedence mark."); - $this->errorcnt++; - } - $this->state = self::WAITING_FOR_DECL_OR_RULE; - break; - case self::WAITING_FOR_ARROW: - if ($x[0] == ':' && $x[1] == ':' && $x[2] == '=') { - $this->state = self::IN_RHS; - } elseif ($x[0] == '(') { - $this->state = self::LHS_ALIAS_1; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Expected to see a \":\" following the LHS symbol \"%s\".", - $this->lhs->name); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::LHS_ALIAS_1: - if (preg_match('/[A-Za-z]/', $x[0])) { - $this->lhsalias = $x; - $this->state = self::LHS_ALIAS_2; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "\"%s\" is not a valid alias for the LHS \"%s\"\n", - $x, $this->lhs->name); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::LHS_ALIAS_2: - if ($x[0] == ')') { - $this->state = self::LHS_ALIAS_3; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Missing \")\" following LHS alias name \"%s\".",$this->lhsalias); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::LHS_ALIAS_3: - if ($x == '::=') { - $this->state = self::IN_RHS; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Missing \"->\" following: \"%s(%s)\".", - $this->lhs->name, $this->lhsalias); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::IN_RHS: - if ($x[0] == '.') { - $rp = new PHP_ParserGenerator_Rule; - $rp->ruleline = $this->tokenlineno; - for ($i = 0; $i < $this->nrhs; $i++) { - $rp->rhs[$i] = $this->rhs[$i]; - $rp->rhsalias[$i] = $this->alias[$i]; - } - if (count(array_unique($rp->rhsalias)) != count($rp->rhsalias)) { - $used = array(); - foreach ($rp->rhsalias as $i => $symbol) { - if (!is_string($symbol)) { - continue; - } - if (isset($used[$symbol])) { - PHP_ParserGenerator::ErrorMsg($this->filename, - $this->tokenlineno, - "RHS symbol \"%s\" used multiple times.", - $symbol); - $this->errorcnt++; - } else { - $used[$symbol] = $i; - } - } - } - $rp->lhs = $this->lhs; - $rp->lhsalias = $this->lhsalias; - $rp->nrhs = $this->nrhs; - $rp->code = 0; - $rp->precsym = 0; - $rp->index = $this->gp->nrule++; - $rp->nextlhs = $rp->lhs->rule; - $rp->lhs->rule = $rp; - $rp->next = 0; - if ($this->firstrule === 0) { - $this->firstrule = $this->lastrule = $rp; - } else { - $this->lastrule->next = $rp; - $this->lastrule = $rp; - } - $this->prevrule = $rp; - $this->state = self::WAITING_FOR_DECL_OR_RULE; - } elseif (preg_match('/[a-zA-Z]/', $x[0])) { - if ($this->nrhs >= PHP_ParserGenerator::MAXRHS) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Too many symbols on RHS or rule beginning at \"%s\".", - $x); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } else { - if (isset($this->rhs[$this->nrhs - 1])) { - $msp = $this->rhs[$this->nrhs - 1]; - if ($msp->type == PHP_ParserGenerator_Symbol::MULTITERMINAL) { - $inf = array_reduce($msp->subsym, - array($this, '_printmulti'), ''); - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - 'WARNING: symbol ' . $x . ' will not' . - ' be part of previous multiterminal %s', - substr($inf, 0, strlen($inf) - 1) - ); - } - } - $this->rhs[$this->nrhs] = PHP_ParserGenerator_Symbol::Symbol_new($x); - $this->alias[$this->nrhs] = 0; - $this->nrhs++; - } - } elseif (($x[0] == '|' || $x[0] == '/') && $this->nrhs > 0) { - $msp = $this->rhs[$this->nrhs - 1]; - if ($msp->type != PHP_ParserGenerator_Symbol::MULTITERMINAL) { - $origsp = $msp; - $msp = new PHP_ParserGenerator_Symbol; - $msp->type = PHP_ParserGenerator_Symbol::MULTITERMINAL; - $msp->nsubsym = 1; - $msp->subsym = array($origsp); - $msp->name = $origsp->name; - $this->rhs[$this->nrhs - 1] = $msp; - } - $msp->nsubsym++; - $msp->subsym[$msp->nsubsym - 1] = PHP_ParserGenerator_Symbol::Symbol_new(substr($x, 1)); - if (preg_match('/[a-z]/', $x[1]) || - preg_match('/[a-z]/', $msp->subsym[0]->name[0])) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Cannot form a compound containing a non-terminal"); - $this->errorcnt++; - } - } elseif ($x[0] == '(' && $this->nrhs > 0) { - $this->state = self::RHS_ALIAS_1; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Illegal character on RHS of rule: \"%s\".", $x); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::RHS_ALIAS_1: - if (preg_match('/[A-Za-z]/', $x[0])) { - $this->alias[$this->nrhs - 1] = $x; - $this->state = self::RHS_ALIAS_2; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "\"%s\" is not a valid alias for the RHS symbol \"%s\"\n", - $x, $this->rhs[$this->nrhs - 1]->name); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::RHS_ALIAS_2: - if ($x[0] == ')') { - $this->state = self::IN_RHS; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Missing \")\" following LHS alias name \"%s\".", $this->lhsalias); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_RULE_ERROR; - } - break; - case self::WAITING_FOR_DECL_KEYWORD: - if(preg_match('/[A-Za-z]/', $x[0])) { - $this->declkeyword = $x; - $this->declargslot = &$this->a; - $this->decllnslot = &$this->a; - $this->state = self::WAITING_FOR_DECL_ARG; - if ('name' == $x) { - $this->declargslot = &$this->gp->name; - } elseif ('include' == $x) { - $this->declargslot = &$this->gp->include_code; - $this->decllnslot = &$this->gp->includeln; - } elseif ('include_class' == $x) { - $this->declargslot = &$this->gp->include_classcode; - $this->decllnslot = &$this->gp->include_classln; - } elseif ('declare_class' == $x) { - $this->declargslot = &$this->gp->declare_classcode; - $this->decllnslot = &$this->gp->declare_classln; - } elseif ('code' == $x) { - $this->declargslot = &$this->gp->extracode; - $this->decllnslot = &$this->gp->extracodeln; - } elseif ('token_destructor' == $x) { - $this->declargslot = &$this->gp->tokendest; - $this->decllnslot = &$this->gp->tokendestln; - } elseif ('default_destructor' == $x) { - $this->declargslot = &$this->gp->vardest; - $this->decllnslot = &$this->gp->vardestln; - } elseif ('token_prefix' == $x) { - $this->declargslot = &$this->gp->tokenprefix; - } elseif ('syntax_error' == $x) { - $this->declargslot = &$this->gp->error; - $this->decllnslot = &$this->gp->errorln; - } elseif ('parse_accept' == $x) { - $this->declargslot = &$this->gp->accept; - $this->decllnslot = &$this->gp->acceptln; - } elseif ('parse_failure' == $x) { - $this->declargslot = &$this->gp->failure; - $this->decllnslot = &$this->gp->failureln; - } elseif ('stack_overflow' == $x) { - $this->declargslot = &$this->gp->overflow; - $this->decllnslot = &$this->gp->overflowln; - } elseif ('token_type' == $x) { - $this->declargslot = &$this->gp->tokentype; - } elseif ('default_type' == $x) { - $this->declargslot = &$this->gp->vartype; - } elseif ('stack_size' == $x) { - $this->declargslot = &$this->gp->stacksize; - } elseif ('start_symbol' == $x) { - $this->declargslot = &$this->gp->start; - } elseif ('left' == $x) { - $this->preccounter++; - $this->declassoc = PHP_ParserGenerator_Symbol::LEFT; - $this->state = self::WAITING_FOR_PRECEDENCE_SYMBOL; - } elseif ('right' == $x) { - $this->preccounter++; - $this->declassoc = PHP_ParserGenerator_Symbol::RIGHT; - $this->state = self::WAITING_FOR_PRECEDENCE_SYMBOL; - } elseif ('nonassoc' == $x) { - $this->preccounter++; - $this->declassoc = PHP_ParserGenerator_Symbol::NONE; - $this->state = self::WAITING_FOR_PRECEDENCE_SYMBOL; - } elseif ('destructor' == $x) { - $this->state = self::WAITING_FOR_DESTRUCTOR_SYMBOL; - } elseif ('type' == $x) { - $this->state = self::WAITING_FOR_DATATYPE_SYMBOL; - } elseif ('fallback' == $x) { - $this->fallback = 0; - $this->state = self::WAITING_FOR_FALLBACK_ID; - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Unknown declaration keyword: \"%%%s\".", $x); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_DECL_ERROR; - } - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Illegal declaration keyword: \"%s\".", $x); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_DECL_ERROR; - } - break; - case self::WAITING_FOR_DESTRUCTOR_SYMBOL: - if (!preg_match('/[A-Za-z]/', $x[0])) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Symbol name missing after %destructor keyword"); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_DECL_ERROR; - } else { - $sp = PHP_ParserGenerator_Symbol::Symbol_new($x); - $this->declargslot = &$sp->destructor; - $this->decllnslot = &$sp->destructorln; - $this->state = self::WAITING_FOR_DECL_ARG; - } - break; - case self::WAITING_FOR_DATATYPE_SYMBOL: - if (!preg_match('/[A-Za-z]/', $x[0])) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Symbol name missing after %destructor keyword"); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_DECL_ERROR; - } else { - $sp = PHP_ParserGenerator_Symbol::Symbol_new($x); - $this->declargslot = &$sp->datatype; - $this->state = self::WAITING_FOR_DECL_ARG; - } - break; - case self::WAITING_FOR_PRECEDENCE_SYMBOL: - if ($x[0] == '.') { - $this->state = self::WAITING_FOR_DECL_OR_RULE; - } elseif (preg_match('/[A-Z]/', $x[0])) { - $sp = PHP_ParserGenerator_Symbol::Symbol_new($x); - if ($sp->prec >= 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Symbol \"%s\" has already been given a precedence.", $x); - $this->errorcnt++; - } else { - $sp->prec = $this->preccounter; - $sp->assoc = $this->declassoc; - } - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Can't assign a precedence to \"%s\".", $x); - $this->errorcnt++; - } - break; - case self::WAITING_FOR_DECL_ARG: - if (preg_match('/[A-Za-z0-9{"]/', $x[0])) { - if ($this->declargslot != 0) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "The argument \"%s\" to declaration \"%%%s\" is not the first.", - $x[0] == '"' ? substr($x, 1) : $x, $this->declkeyword); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_DECL_ERROR; - } else { - $this->declargslot = ($x[0] == '"' || $x[0] == '{') ? substr($x, 1) : $x; - $this->a = 1; - if (!$this->decllnslot) { - $this->decllnslot = $this->tokenlineno; - } - $this->state = self::WAITING_FOR_DECL_OR_RULE; - } - } else { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "Illegal argument to %%%s: %s",$this->declkeyword, $x); - $this->errorcnt++; - $this->state = self::RESYNC_AFTER_DECL_ERROR; - } - break; - case self::WAITING_FOR_FALLBACK_ID: - if ($x[0] == '.') { - $this->state = self::WAITING_FOR_DECL_OR_RULE; - } elseif (!preg_match('/[A-Z]/', $x[0])) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "%%fallback argument \"%s\" should be a token", $x); - $this->errorcnt++; - } else { - $sp = PHP_ParserGenerator_Symbol::Symbol_new($x); - if ($this->fallback === 0) { - $this->fallback = $sp; - } elseif (is_object($sp->fallback)) { - PHP_ParserGenerator::ErrorMsg($this->filename, $this->tokenlineno, - "More than one fallback assigned to token %s", $x); - $this->errorcnt++; - } else { - $sp->fallback = $this->fallback; - $this->gp->has_fallback = 1; - } - } - break; - case self::RESYNC_AFTER_RULE_ERROR: - /* if ($x[0] == '.') $this->state = self::WAITING_FOR_DECL_OR_RULE; - ** break; */ - case self::RESYNC_AFTER_DECL_ERROR: - if ($x[0] == '.') { - $this->state = self::WAITING_FOR_DECL_OR_RULE; - } - if ($x[0] == '%') { - $this->state = self::WAITING_FOR_DECL_KEYWORD; - } - break; - } - } - - /** - * return a descriptive string for a multi-terminal token. - * - * @param string $a - * @param string $b - * @return string - */ - private function _printmulti($a, $b) - { - if (!$a) { - $a = ''; - } - $a .= $b->name . '|'; - return $a; - } -} \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/PropagationLink.php
Deleted
@@ -1,117 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: PropagationLink.php,v 1.1 2006/07/18 00:53:10 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * A followset propagation link indicates that the contents of one - * configuration followset should be propagated to another whenever - * the first changes. - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ - -class PHP_ParserGenerator_PropagationLink { - /** - * The configuration that defines this propagation link - * @var PHP_ParserGenerator_Config - */ - public $cfp; - /** - * The next propagation link - * @var PHP_ParserGenerator_PropagationLink|0 - */ - public $next = 0; - - /** - * Add a propagation link to the current list - * - * This prepends the configuration passed in to the first parameter - * which is either 0 or a PHP_ParserGenerator_PropagationLink defining - * an existing list. - * @param PHP_ParserGenerator_PropagationLink|null - * @param PHP_ParserGenerator_Config - */ - static function Plink_add(&$plpp, PHP_ParserGenerator_Config $cfp) - { - $new = new PHP_ParserGenerator_PropagationLink; - $new->next = $plpp; - $plpp = $new; - $new->cfp = $cfp; - } - - /** - * Transfer every propagation link on the list "from" to the list "to" - */ - static function Plink_copy(PHP_ParserGenerator_PropagationLink &$to, - PHP_ParserGenerator_PropagationLink $from) - { - while ($from) { - $nextpl = $from->next; - $from->next = $to; - $to = $from; - $from = $nextpl; - } - } - - /** - * Delete every propagation link on the list - * @param PHP_ParserGenerator_PropagationLink|0 - */ - static function Plink_delete($plp) - { - while ($plp) { - $nextpl = $plp->next; - $plp->next = 0; - $plp = $nextpl; - } - } -} -
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/Rule.php
Deleted
@@ -1,140 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Rule.php,v 1.1 2006/07/18 00:53:10 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * Each production rule in the grammar is stored in this class - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_Rule { - /** - * Left-hand side of the rule - * @var array an array of {@link PHP_ParserGenerator_Symbol} objects - */ - public $lhs; - /** - * Alias for the LHS (NULL if none) - * - * @var array - */ - public $lhsalias = array(); - /** - * Line number for the rule - * @var int - */ - public $ruleline; - /** - * Number of right-hand side symbols - */ - public $nrhs; - /** - * The right-hand side symbols - * @var array an array of {@link PHP_ParserGenerator_Symbol} objects - */ - public $rhs; - /** - * Aliases for each right-hand side symbol, or null if no alis. - * - * In this rule: - * <pre> - * foo ::= BAR(A) baz(B). - * </pre> - * - * The right-hand side aliases are A for BAR, and B for baz. - * @var array aliases are indexed by the right-hand side symbol index. - */ - public $rhsalias = array(); - /** - * Line number at which code begins - * @var int - */ - public $line; - /** - * The code executed when this rule is reduced - * - * <pre> - * foo(R) ::= BAR(A) baz(B). {R = A + B;} - * </pre> - * - * In the rule above, the code is "R = A + B;" - * @var string|0 - */ - public $code; - /** - * Precedence symbol for this rule - * @var PHP_ParserGenerator_Symbol - */ - public $precsym; - /** - * An index number for this rule - * - * Used in both naming of reduce functions and determining which rule code - * to use for reduce actions - * @var int - */ - public $index; - /** - * True if this rule is ever reduced - * @var boolean - */ - public $canReduce; - /** - * Next rule with the same left-hand side - * @var PHP_ParserGenerator_Rule|0 - */ - public $nextlhs; - /** - * Next rule in the global list - * @var PHP_ParserGenerator_Rule|0 - */ - public $next; -}
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/State.php
Deleted
@@ -1,277 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: State.php,v 1.1 2006/07/18 00:53:10 cellog Exp $ - * @since File available since Release 0.1.0 - */ - -/** - * The structure used to represent a state in the associative array - * for a PHP_ParserGenerator_Config. - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_StateNode -{ - public $key; - public $data; - public $from = 0; - public $next = 0; -} - -/** - * Each state of the generated parser's finite state machine - * is encoded as an instance of this class - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_State { - /** - * The basis configurations for this state - * @var PHP_ParserGenerator_Config - */ - public $bp; - /** - * All configurations in this state - * @var PHP_ParserGenerator_Config - */ - public $cfp; - /** - * Sequential number for this state - * - * @var int - */ - public $statenum; - /** - * Linked list of actions for this state. - * @var PHP_ParserGenerator_Action - */ - public $ap; - /** - * Number of terminal (token) actions - * - * @var int - */ - public $nTknAct, - /** - * Number of non-terminal actions - * - * @var int - */ - $nNtAct; - /** - * The offset into the $yy_action table for terminal tokens. - * - * @var int - */ - public $iTknOfst, - /** - * The offset into the $yy_action table for non-terminals. - * - * @var int - */ - $iNtOfst; - /** - * Default action - * - * @var int - */ - public $iDflt; - /** - * Associative array of PHP_ParserGenerator_State objects - * - * @var array - */ - public static $x3a = array(); - /** - * Array of PHP_ParserGenerator_State objects - * - * @var array - */ - public static $states = array(); - - /** - * Compare two states for sorting purposes. The smaller state is the - * one with the most non-terminal actions. If they have the same number - * of non-terminal actions, then the smaller is the one with the most - * token actions. - */ - static function stateResortCompare($a, $b) - { - $n = $b->nNtAct - $a->nNtAct; - if ($n === 0) { - $n = $b->nTknAct - $a->nTknAct; - } - return $n; - } - - /** - * Compare two states based on their configurations - * - * @param PHP_ParserGenerator_Config|0 $a - * @param PHP_ParserGenerator_Config|0 $b - * @return int - */ - static function statecmp($a, $b) - { - for ($rc = 0; $rc == 0 && $a && $b; $a = $a->bp, $b = $b->bp) { - $rc = $a->rp->index - $b->rp->index; - if ($rc === 0) { - $rc = $a->dot - $b->dot; - } - } - if ($rc == 0) { - if ($a) { - $rc = 1; - } - if ($b) { - $rc = -1; - } - } - return $rc; - } - - /** - * Hash a state based on its configuration - * @return int - */ - private static function statehash(PHP_ParserGenerator_Config $a) - { - $h = 0; - while ($a) { - $h = $h * 571 + $a->rp->index * 37 + $a->dot; - $a = $a->bp; - } - return (int) $h; - } - - /** - * Return a pointer to data assigned to the given key. Return NULL - * if no such key. - * @param PHP_ParserGenerator_Config - * @return null|PHP_ParserGenerator_State - */ - static function State_find(PHP_ParserGenerator_Config $key) - { - if (!count(self::$x3a)) { - return 0; - } - $h = self::statehash($key); - if (!isset(self::$x3a[$h])) { - return 0; - } - $np = self::$x3a[$h]; - while ($np) { - if (self::statecmp($np->key, $key) == 0) { - break; - } - $np = $np->next; - } - return $np ? $np->data : 0; - } - - /** - * Insert a new record into the array. Return TRUE if successful. - * Prior data with the same key is NOT overwritten - * - * @param PHP_ParserGenerator_State $state - * @param PHP_ParserGenerator_Config $key - * @return unknown - */ - static function State_insert(PHP_ParserGenerator_State $state, - PHP_ParserGenerator_Config $key) - { - $h = self::statehash($key); - if (isset(self::$x3a[$h])) { - $np = self::$x3a[$h]; - } else { - $np = 0; - } - while ($np) { - if (self::statecmp($np->key, $key) == 0) { - /* An existing entry with the same key is found. */ - /* Fail because overwrite is not allows. */ - return 0; - } - $np = $np->next; - } - /* Insert the new data */ - $np = new PHP_ParserGenerator_StateNode; - $np->key = $key; - $np->data = $state; - self::$states[] = $np; - // the original lemon code sets the from link always to itself - // setting up a faulty double-linked list - // however, the from links are never used, so I suspect a copy/paste - // error from a standard algorithm that was never caught - if (isset(self::$x3a[$h])) { - self::$x3a[$h]->from = $np; // lemon has $np->next here - } else { - self::$x3a[$h] = 0; // dummy to avoid notice - } - $np->next = self::$x3a[$h]; - self::$x3a[$h] = $np; - $np->from = self::$x3a[$h]; - return 1; - } - - /** - * Get an array indexed by state number - * - * @return array - */ - static function State_arrayof() - { - return self::$states; - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/Symbol.php
Deleted
@@ -1,284 +0,0 @@ -<?php -/** - * PHP_ParserGenerator, a php 5 parser generator. - * - * This is a direct port of the Lemon parser generator, found at - * {@link http://www.hwaci.com/sw/lemon/} - * - * PHP version 5 - * - * LICENSE: - * - * Copyright (c) 2006, Gregory Beaver <cellog@php.net> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the distribution. - * * Neither the name of the PHP_ParserGenerator nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category php - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: Symbol.php,v 1.1 2006/07/18 00:53:10 cellog Exp $ - * @since File available since Release 0.1.0 - */ -/** - * Symbols (terminals and nonterminals) of the grammar are stored in this class - * - * @package PHP_ParserGenerator - * @author Gregory Beaver <cellog@php.net> - * @copyright 2006 Gregory Beaver - * @license http://www.opensource.org/licenses/bsd-license.php New BSD License - * @version 0.1.5 - * @since Class available since Release 0.1.0 - */ -class PHP_ParserGenerator_Symbol -{ - /** - * Symbols that start with a capital letter like FOO. - * - * These are tokens directly from the lexer - */ - const TERMINAL = 1; - /** - * Symbols that start with a lower-case letter like foo. - * - * These are grammar rules like "foo ::= BLAH." - */ - const NONTERMINAL = 2; - /** - * Multiple terminal symbols. - * - * These are a grammar rule that consists of several terminals like - * FOO|BAR|BAZ. Note that non-terminals cannot be in a multi-terminal, - * and a multi-terminal acts like a single terminal. - * - * "FOO|BAR FOO|BAZ" is actually two multi-terminals, FOO|BAR and FOO|BAZ. - */ - const MULTITERMINAL = 3; - - const LEFT = 1; - const RIGHT = 2; - const NONE = 3; - const UNK = 4; - /** - * Name of the symbol - * - * @var string - */ - public $name; - /** - * Index of this symbol. - * - * This will ultimately end up representing the symbol in the generated - * parser - * @var int - */ - public $index; - /** - * Symbol type - * - * One of PHP_ParserGenerator_Symbol::TERMINAL, - * PHP_ParserGenerator_Symbol::NONTERMINAL or - * PHP_ParserGenerator_Symbol::MULTITERMINAL - * @var int - */ - public $type; - /** - * Linked list of rules that use this symbol, if it is a non-terminal. - * @var PHP_ParserGenerator_Rule - */ - public $rule; - /** - * Fallback token in case this token doesn't parse - * @var PHP_ParserGenerator_Symbol - */ - public $fallback; - /** - * Precendence, if defined. - * - * -1 if no unusual precedence - * @var int - */ - public $prec = -1; - /** - * Associativity if precedence is defined. - * - * One of PHP_ParserGenerator_Symbol::LEFT, - * PHP_ParserGenerator_Symbol::RIGHT, PHP_ParserGenerator_Symbol::NONE - * or PHP_ParserGenerator_Symbol::UNK - * @var unknown_type - */ - public $assoc; - /** - * First-set for all rules of this symbol - * - * @var array - */ - public $firstset; - /** - * True if this symbol is a non-terminal and can generate an empty - * result. - * - * For instance "foo ::= ." - * @var boolean - */ - public $lambda; - /** - * Code that executes whenever this symbol is popped from the stack during - * error processing. - * - * @var string|0 - */ - public $destructor = 0; - /** - * Line number of destructor code - * @var int - */ - public $destructorln; - /** - * Unused relic of the C version of Lemon. - * - * The data type of information held by this object. Only used - * if this is a non-terminal - * @var string - */ - public $datatype; - /** - * Unused relic of the C version of Lemon. - * - * The data type number. In the parser, the value - * stack is a union. The .yy%d element of this - * union is the correct data type for this object - * @var string - */ - public $dtnum; - /**#@+ - * The following fields are used by MULTITERMINALs only - */ - /** - * Number of terminal symbols in the MULTITERMINAL - * - * This is of course the same as count($this->subsym) - * @var int - */ - public $nsubsym; - /** - * Array of terminal symbols in the MULTITERMINAL - * @var array an array of {@link PHP_ParserGenerator_Symbol} objects - */ - public $subsym = array(); - /**#@-*/ - /** - * Singleton storage of symbols - * - * @var array an array of PHP_ParserGenerator_Symbol objects - */ - private static $symbol_table = array(); - /** - * Return a pointer to the (terminal or nonterminal) symbol "x". - * Create a new symbol if this is the first time "x" has been seen. - * (this is a singleton) - * @param string - * @return PHP_ParserGenerator_Symbol - */ - public static function Symbol_new($x) - { - if (isset(self::$symbol_table[$x])) { - return self::$symbol_table[$x]; - } - $sp = new PHP_ParserGenerator_Symbol; - $sp->name = $x; - $sp->type = preg_match('/[A-Z]/', $x[0]) ? self::TERMINAL : self::NONTERMINAL; - $sp->rule = 0; - $sp->fallback = 0; - $sp->prec = -1; - $sp->assoc = self::UNK; - $sp->firstset = array(); - $sp->lambda = false; - $sp->destructor = 0; - $sp->datatype = 0; - self::$symbol_table[$sp->name] = $sp; - return $sp; - } - - /** - * Return the number of unique symbols - * @return int - */ - public static function Symbol_count() - { - return count(self::$symbol_table); - } - - public static function Symbol_arrayof() - { - return array_values(self::$symbol_table); - } - - public static function Symbol_find($x) - { - if (isset(self::$symbol_table[$x])) { - return self::$symbol_table[$x]; - } - return 0; - } - - /** - * Sort function helper for symbols - * - * Symbols that begin with upper case letters (terminals or tokens) - * must sort before symbols that begin with lower case letters - * (non-terminals). Other than that, the order does not matter. - * - * We find experimentally that leaving the symbols in their original - * order (the order they appeared in the grammar file) gives the - * smallest parser tables in SQLite. - * @param PHP_ParserGenerator_Symbol - * @param PHP_ParserGenerator_Symbol - */ - public static function sortSymbols($a, $b) - { - $i1 = $a->index + 10000000*(ord($a->name[0]) > ord('Z')); - $i2 = $b->index + 10000000*(ord($b->name[0]) > ord('Z')); - return $i1 - $i2; - } - - /** - * Return true if two symbols are the same. - */ - public static function same_symbol(PHP_ParserGenerator_Symbol $a, PHP_ParserGenerator_Symbol $b) - { - if ($a === $b) return 1; - if ($a->type != self::MULTITERMINAL) return 0; - if ($b->type != self::MULTITERMINAL) return 0; - if ($a->nsubsym != $b->nsubsym) return 0; - for ($i = 0; $i < $a->nsubsym; $i++) { - if ($a->subsym[$i] != $b->subsym[$i]) return 0; - } - return 1; - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/ParserGenerator/cli.php
Deleted
@@ -1,7 +0,0 @@ -<?php -require_once './ParserGenerator.php'; -ini_set('max_execution_time',300); -ini_set('xdebug.max_nesting_level',300); -$me = new PHP_ParserGenerator; -$me->main(); -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_configfilelexer.php
Deleted
@@ -1,622 +0,0 @@ -<?php -/** -* Smarty Internal Plugin Configfilelexer -* -* This is the lexer to break the config file source into tokens -* @package Smarty -* @subpackage Config -* @author Uwe Tews -*/ -/** -* Smarty Internal Plugin Configfilelexer -*/ -class Smarty_Internal_Configfilelexer -{ - - public $data; - public $counter; - public $token; - public $value; - public $node; - public $line; - private $state = 1; - public $smarty_token_names = array ( // Text for parser error messages - ); - - - function __construct($data, $smarty) - { - // set instance object - self::instance($this); - $this->data = $data . "\n"; //now all lines are \n-terminated - $this->counter = 0; - $this->line = 1; - $this->smarty = $smarty; - $this->mbstring_overload = ini_get('mbstring.func_overload') & 2; - } - public static function &instance($new_instance = null) - { - static $instance = null; - if (isset($new_instance) && is_object($new_instance)) - $instance = $new_instance; - return $instance; - } - - - - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{'yylex' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - - - - - function yylex1() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(#|;)|\G(\\[)|\G(\\])|\G(=)|\G([ \t\r]+)|\G(\n)|\G([0-9]*[a-zA-Z_]\\w*)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state START'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r1_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const START = 1; - function yy_r1_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_COMMENTSTART; - $this->yypushstate(self::COMMENT); - } - function yy_r1_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_OPENB; - $this->yypushstate(self::SECTION); - } - function yy_r1_3($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_CLOSEB; - } - function yy_r1_4($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_EQUAL; - $this->yypushstate(self::VALUE); - } - function yy_r1_5($yy_subpatterns) - { - - return false; - } - function yy_r1_6($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; - } - function yy_r1_7($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_ID; - } - function yy_r1_8($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_OTHER; - } - - - - function yylex2() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G([ \t\r]+)|\G(\\d+\\.\\d+(?=[ \t\r]*[\n#;]))|\G(\\d+(?=[ \t\r]*[\n#;]))|\G(\"\"\")|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*'(?=[ \t\r]*[\n#;]))|\G(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"(?=[ \t\r]*[\n#;]))|\G([a-zA-Z]+(?=[ \t\r]*[\n#;]))|\G([^\n]+?(?=[ \t\r]*\n))|\G(\n)/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state VALUE'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r2_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const VALUE = 2; - function yy_r2_1($yy_subpatterns) - { - - return false; - } - function yy_r2_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_FLOAT; - $this->yypopstate(); - } - function yy_r2_3($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_INT; - $this->yypopstate(); - } - function yy_r2_4($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES; - $this->yypushstate(self::TRIPPLE); - } - function yy_r2_5($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING; - $this->yypopstate(); - } - function yy_r2_6($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING; - $this->yypopstate(); - } - function yy_r2_7($yy_subpatterns) - { - - if (!$this->smarty->config_booleanize || !in_array(strtolower($this->value), Array("true", "false", "on", "off", "yes", "no")) ) { - $this->yypopstate(); - $this->yypushstate(self::NAKED_STRING_VALUE); - return true; //reprocess in new state - } else { - $this->token = Smarty_Internal_Configfileparser::TPC_BOOL; - $this->yypopstate(); - } - } - function yy_r2_8($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - $this->yypopstate(); - } - function yy_r2_9($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - $this->value = ""; - $this->yypopstate(); - } - - - - function yylex3() - { - $tokenMap = array ( - 1 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G([^\n]+?(?=[ \t\r]*\n))/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state NAKED_STRING_VALUE'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r3_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const NAKED_STRING_VALUE = 3; - function yy_r3_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - $this->yypopstate(); - } - - - - function yylex4() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G([ \t\r]+)|\G([^\n]+?(?=[ \t\r]*\n))|\G(\n)/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state COMMENT'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r4_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const COMMENT = 4; - function yy_r4_1($yy_subpatterns) - { - - return false; - } - function yy_r4_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - } - function yy_r4_3($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; - $this->yypopstate(); - } - - - - function yylex5() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(\\.)|\G(.*?(?=[\.=[\]\r\n]))/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state SECTION'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r5_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const SECTION = 5; - function yy_r5_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_DOT; - } - function yy_r5_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_SECTION; - $this->yypopstate(); - } - - - function yylex6() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(\"\"\"(?=[ \t\r]*[\n#;]))|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state TRIPPLE'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r6_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const TRIPPLE = 6; - function yy_r6_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES_END; - $this->yypopstate(); - $this->yypushstate(self::START); - } - function yy_r6_2($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/\"\"\"[ \t\r]*[\n#;]/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } else { - $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_TEXT; - } - - -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_configfilelexer.plex
Deleted
@@ -1,221 +0,0 @@ -<?php -/** -* Smarty Internal Plugin Configfilelexer -* -* This is the lexer to break the config file source into tokens -* @package Smarty -* @subpackage Config -* @author Uwe Tews -*/ -/** -* Smarty Internal Plugin Configfilelexer -*/ -class Smarty_Internal_Configfilelexer -{ - - public $data; - public $counter; - public $token; - public $value; - public $node; - public $line; - private $state = 1; - public $smarty_token_names = array ( // Text for parser error messages - ); - - - function __construct($data, $smarty) - { - // set instance object - self::instance($this); - $this->data = $data . "\n"; //now all lines are \n-terminated - $this->counter = 0; - $this->line = 1; - $this->smarty = $smarty; - $this->mbstring_overload = ini_get('mbstring.func_overload') & 2; - } - public static function &instance($new_instance = null) - { - static $instance = null; - if (isset($new_instance) && is_object($new_instance)) - $instance = $new_instance; - return $instance; - } - - -/*!lex2php -%input $this->data -%counter $this->counter -%token $this->token -%value $this->value -%line $this->line -commentstart = /#|;/ -openB = /\[/ -closeB = /\]/ -section = /.*?(?=[\.=\[\]\r\n])/ -equal = /=/ -whitespace = /[ \t\r]+/ -dot = /\./ -id = /[0-9]*[a-zA-Z_]\w*/ -newline = /\n/ -single_quoted_string = /'[^'\\]*(?:\\.[^'\\]*)*'(?=[ \t\r]*[\n#;])/ -double_quoted_string = /"[^"\\]*(?:\\.[^"\\]*)*"(?=[ \t\r]*[\n#;])/ -tripple_quotes = /"""/ -tripple_quotes_end = /"""(?=[ \t\r]*[\n#;])/ -text = /[\S\s]/ -float = /\d+\.\d+(?=[ \t\r]*[\n#;])/ -int = /\d+(?=[ \t\r]*[\n#;])/ -maybe_bool = /[a-zA-Z]+(?=[ \t\r]*[\n#;])/ -naked_string = /[^\n]+?(?=[ \t\r]*\n)/ -*/ - -/*!lex2php -%statename START - -commentstart { - $this->token = Smarty_Internal_Configfileparser::TPC_COMMENTSTART; - $this->yypushstate(self::COMMENT); -} -openB { - $this->token = Smarty_Internal_Configfileparser::TPC_OPENB; - $this->yypushstate(self::SECTION); -} -closeB { - $this->token = Smarty_Internal_Configfileparser::TPC_CLOSEB; -} -equal { - $this->token = Smarty_Internal_Configfileparser::TPC_EQUAL; - $this->yypushstate(self::VALUE); -} -whitespace { - return false; -} -newline { - $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; -} -id { - $this->token = Smarty_Internal_Configfileparser::TPC_ID; -} -text { - $this->token = Smarty_Internal_Configfileparser::TPC_OTHER; -} - -*/ - -/*!lex2php -%statename VALUE - -whitespace { - return false; -} -float { - $this->token = Smarty_Internal_Configfileparser::TPC_FLOAT; - $this->yypopstate(); -} -int { - $this->token = Smarty_Internal_Configfileparser::TPC_INT; - $this->yypopstate(); -} -tripple_quotes { - $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES; - $this->yypushstate(self::TRIPPLE); -} -single_quoted_string { - $this->token = Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING; - $this->yypopstate(); -} -double_quoted_string { - $this->token = Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING; - $this->yypopstate(); -} -maybe_bool { - if (!$this->smarty->config_booleanize || !in_array(strtolower($this->value), Array("true", "false", "on", "off", "yes", "no")) ) { - $this->yypopstate(); - $this->yypushstate(self::NAKED_STRING_VALUE); - return true; //reprocess in new state - } else { - $this->token = Smarty_Internal_Configfileparser::TPC_BOOL; - $this->yypopstate(); - } -} -naked_string { - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - $this->yypopstate(); -} -newline { - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - $this->value = ""; - $this->yypopstate(); -} - -*/ - -/*!lex2php -%statename NAKED_STRING_VALUE - -naked_string { - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; - $this->yypopstate(); -} - -*/ - -/*!lex2php -%statename COMMENT - -whitespace { - return false; -} -naked_string { - $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING; -} -newline { - $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE; - $this->yypopstate(); -} - -*/ - -/*!lex2php -%statename SECTION - -dot { - $this->token = Smarty_Internal_Configfileparser::TPC_DOT; -} -section { - $this->token = Smarty_Internal_Configfileparser::TPC_SECTION; - $this->yypopstate(); -} - -*/ -/*!lex2php -%statename TRIPPLE - -tripple_quotes_end { - $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES_END; - $this->yypopstate(); - $this->yypushstate(self::START); -} -text { - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/\"\"\"[ \t\r]*[\n#;]/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } else { - $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_TEXT; -} -*/ - -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_configfileparser.php
Deleted
@@ -1,921 +0,0 @@ -<?php -/** -* Smarty Internal Plugin Configfileparser -* -* This is the config file parser. -* It is generated from the internal.configfileparser.y file -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ - -class TPC_yyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof TPC_yyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof TPC_yyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof TPC_yyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof TPC_yyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -class TPC_yyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - - -#line 12 "smarty_internal_configfileparser.y" -class Smarty_Internal_Configfileparser#line 79 "smarty_internal_configfileparser.php" -{ -#line 14 "smarty_internal_configfileparser.y" - - // states whether the parse was successful or not - public $successful = true; - public $retvalue = 0; - private $lex; - private $internalError = false; - - function __construct($lex, $compiler) { - // set instance object - self::instance($this); - $this->lex = $lex; - $this->smarty = $compiler->smarty; - $this->compiler = $compiler; - } - public static function &instance($new_instance = null) - { - static $instance = null; - if (isset($new_instance) && is_object($new_instance)) - $instance = $new_instance; - return $instance; - } - - private function parse_bool($str) { - if (in_array(strtolower($str) ,array('on','yes','true'))) { - $res = true; - } else { - $res = false; - } - return $res; - } - - private static $escapes_single = Array('\\' => '\\', - '\'' => '\''); - private static function parse_single_quoted_string($qstr) { - $escaped_string = substr($qstr, 1, strlen($qstr)-2); //remove outer quotes - - $ss = preg_split('/(\\\\.)/', $escaped_string, -1, PREG_SPLIT_DELIM_CAPTURE); - - $str = ""; - foreach ($ss as $s) { - if (strlen($s) === 2 && $s[0] === '\\') { - if (isset(self::$escapes_single[$s[1]])) { - $s = self::$escapes_single[$s[1]]; - } - } - - $str .= $s; - } - - return $str; - } - - private static function parse_double_quoted_string($qstr) { - $inner_str = substr($qstr, 1, strlen($qstr)-2); - return stripcslashes($inner_str); - } - - private static function parse_tripple_double_quoted_string($qstr) { - return stripcslashes($qstr); - } - - private function set_var(Array $var, Array &$target_array) { - $key = $var["key"]; - $value = $var["value"]; - - if ($this->smarty->config_overwrite || !isset($target_array['vars'][$key])) { - $target_array['vars'][$key] = $value; - } else { - settype($target_array['vars'][$key], 'array'); - $target_array['vars'][$key][] = $value; - } - } - - private function add_global_vars(Array $vars) { - if (!isset($this->compiler->config_data['vars'])) { - $this->compiler->config_data['vars'] = Array(); - } - foreach ($vars as $var) { - $this->set_var($var, $this->compiler->config_data); - } - } - - private function add_section_vars($section_name, Array $vars) { - if (!isset($this->compiler->config_data['sections'][$section_name]['vars'])) { - $this->compiler->config_data['sections'][$section_name]['vars'] = Array(); - } - foreach ($vars as $var) { - $this->set_var($var, $this->compiler->config_data['sections'][$section_name]); - } - } -#line 173 "smarty_internal_configfileparser.php" - - const TPC_OPENB = 1; - const TPC_SECTION = 2; - const TPC_CLOSEB = 3; - const TPC_DOT = 4; - const TPC_ID = 5; - const TPC_EQUAL = 6; - const TPC_FLOAT = 7; - const TPC_INT = 8; - const TPC_BOOL = 9; - const TPC_SINGLE_QUOTED_STRING = 10; - const TPC_DOUBLE_QUOTED_STRING = 11; - const TPC_TRIPPLE_QUOTES = 12; - const TPC_TRIPPLE_TEXT = 13; - const TPC_TRIPPLE_QUOTES_END = 14; - const TPC_NAKED_STRING = 15; - const TPC_OTHER = 16; - const TPC_NEWLINE = 17; - const TPC_COMMENTSTART = 18; - const YY_NO_ACTION = 60; - const YY_ACCEPT_ACTION = 59; - const YY_ERROR_ACTION = 58; - - const YY_SZ_ACTTAB = 38; -static public $yy_action = array( - /* 0 */ 29, 30, 34, 33, 24, 13, 19, 25, 35, 21, - /* 10 */ 59, 8, 3, 1, 20, 12, 14, 31, 20, 12, - /* 20 */ 15, 17, 23, 18, 27, 26, 4, 5, 6, 32, - /* 30 */ 2, 11, 28, 22, 16, 9, 7, 10, - ); - static public $yy_lookahead = array( - /* 0 */ 7, 8, 9, 10, 11, 12, 5, 27, 15, 16, - /* 10 */ 20, 21, 23, 23, 17, 18, 13, 14, 17, 18, - /* 20 */ 15, 2, 17, 4, 25, 26, 6, 3, 3, 14, - /* 30 */ 23, 1, 24, 17, 2, 25, 22, 25, -); - const YY_SHIFT_USE_DFLT = -8; - const YY_SHIFT_MAX = 19; - static public $yy_shift_ofst = array( - /* 0 */ -8, 1, 1, 1, -7, -3, -3, 30, -8, -8, - /* 10 */ -8, 19, 5, 3, 15, 16, 24, 25, 32, 20, -); - const YY_REDUCE_USE_DFLT = -21; - const YY_REDUCE_MAX = 10; - static public $yy_reduce_ofst = array( - /* 0 */ -10, -1, -1, -1, -20, 10, 12, 8, 14, 7, - /* 10 */ -11, -); - static public $yyExpectedTokens = array( - /* 0 */ array(), - /* 1 */ array(5, 17, 18, ), - /* 2 */ array(5, 17, 18, ), - /* 3 */ array(5, 17, 18, ), - /* 4 */ array(7, 8, 9, 10, 11, 12, 15, 16, ), - /* 5 */ array(17, 18, ), - /* 6 */ array(17, 18, ), - /* 7 */ array(1, ), - /* 8 */ array(), - /* 9 */ array(), - /* 10 */ array(), - /* 11 */ array(2, 4, ), - /* 12 */ array(15, 17, ), - /* 13 */ array(13, 14, ), - /* 14 */ array(14, ), - /* 15 */ array(17, ), - /* 16 */ array(3, ), - /* 17 */ array(3, ), - /* 18 */ array(2, ), - /* 19 */ array(6, ), - /* 20 */ array(), - /* 21 */ array(), - /* 22 */ array(), - /* 23 */ array(), - /* 24 */ array(), - /* 25 */ array(), - /* 26 */ array(), - /* 27 */ array(), - /* 28 */ array(), - /* 29 */ array(), - /* 30 */ array(), - /* 31 */ array(), - /* 32 */ array(), - /* 33 */ array(), - /* 34 */ array(), - /* 35 */ array(), -); - static public $yy_default = array( - /* 0 */ 44, 37, 41, 40, 58, 58, 58, 36, 39, 44, - /* 10 */ 44, 58, 58, 58, 58, 58, 58, 58, 58, 58, - /* 20 */ 55, 54, 57, 56, 50, 45, 43, 42, 38, 46, - /* 30 */ 47, 52, 51, 49, 48, 53, -); - const YYNOCODE = 29; - const YYSTACKDEPTH = 100; - const YYNSTATE = 36; - const YYNRULE = 22; - const YYERRORSYMBOL = 19; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - static public $yyFallback = array( - ); - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = '<br>'; - } - - static public $yyTraceFILE; - static public $yyTracePrompt; - public $yyidx; /* Index of top element in stack */ - public $yyerrcnt; /* Shifts left before out of the error */ - public $yystack = array(); /* The parser's stack */ - - public $yyTokenName = array( - '$', 'OPENB', 'SECTION', 'CLOSEB', - 'DOT', 'ID', 'EQUAL', 'FLOAT', - 'INT', 'BOOL', 'SINGLE_QUOTED_STRING', 'DOUBLE_QUOTED_STRING', - 'TRIPPLE_QUOTES', 'TRIPPLE_TEXT', 'TRIPPLE_QUOTES_END', 'NAKED_STRING', - 'OTHER', 'NEWLINE', 'COMMENTSTART', 'error', - 'start', 'global_vars', 'sections', 'var_list', - 'section', 'newline', 'var', 'value', - ); - - static public $yyRuleName = array( - /* 0 */ "start ::= global_vars sections", - /* 1 */ "global_vars ::= var_list", - /* 2 */ "sections ::= sections section", - /* 3 */ "sections ::=", - /* 4 */ "section ::= OPENB SECTION CLOSEB newline var_list", - /* 5 */ "section ::= OPENB DOT SECTION CLOSEB newline var_list", - /* 6 */ "var_list ::= var_list newline", - /* 7 */ "var_list ::= var_list var", - /* 8 */ "var_list ::=", - /* 9 */ "var ::= ID EQUAL value", - /* 10 */ "value ::= FLOAT", - /* 11 */ "value ::= INT", - /* 12 */ "value ::= BOOL", - /* 13 */ "value ::= SINGLE_QUOTED_STRING", - /* 14 */ "value ::= DOUBLE_QUOTED_STRING", - /* 15 */ "value ::= TRIPPLE_QUOTES TRIPPLE_TEXT TRIPPLE_QUOTES_END", - /* 16 */ "value ::= TRIPPLE_QUOTES TRIPPLE_QUOTES_END", - /* 17 */ "value ::= NAKED_STRING", - /* 18 */ "value ::= OTHER", - /* 19 */ "newline ::= NEWLINE", - /* 20 */ "newline ::= COMMENTSTART NEWLINE", - /* 21 */ "newline ::= COMMENTSTART NAKED_STRING NEWLINE", - ); - - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { - return $this->yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - default: break; /* If no destructor action specified: do nothing */ - } - } - - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - function __destruct() - { - while ($this->yystack !== Array()) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]); - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new TPC_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new TPC_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - $this->yyTokenName[$iLookAhead] . " => " . - $this->yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } -#line 125 "smarty_internal_configfileparser.y" - - $this->internalError = true; - $this->compiler->trigger_config_file_error("Stack overflow in configfile parser"); -#line 593 "smarty_internal_configfileparser.php" - return; - } - $yytos = new TPC_yyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - $this->yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - static public $yyRuleInfo = array( - array( 'lhs' => 20, 'rhs' => 2 ), - array( 'lhs' => 21, 'rhs' => 1 ), - array( 'lhs' => 22, 'rhs' => 2 ), - array( 'lhs' => 22, 'rhs' => 0 ), - array( 'lhs' => 24, 'rhs' => 5 ), - array( 'lhs' => 24, 'rhs' => 6 ), - array( 'lhs' => 23, 'rhs' => 2 ), - array( 'lhs' => 23, 'rhs' => 2 ), - array( 'lhs' => 23, 'rhs' => 0 ), - array( 'lhs' => 26, 'rhs' => 3 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 27, 'rhs' => 3 ), - array( 'lhs' => 27, 'rhs' => 2 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 27, 'rhs' => 1 ), - array( 'lhs' => 25, 'rhs' => 1 ), - array( 'lhs' => 25, 'rhs' => 2 ), - array( 'lhs' => 25, 'rhs' => 3 ), - ); - - static public $yyReduceMap = array( - 0 => 0, - 2 => 0, - 3 => 0, - 19 => 0, - 20 => 0, - 21 => 0, - 1 => 1, - 4 => 4, - 5 => 5, - 6 => 6, - 7 => 7, - 8 => 8, - 9 => 9, - 10 => 10, - 11 => 11, - 12 => 12, - 13 => 13, - 14 => 14, - 15 => 15, - 16 => 16, - 17 => 17, - 18 => 17, - ); -#line 131 "smarty_internal_configfileparser.y" - function yy_r0(){ - $this->_retvalue = null; - } -#line 666 "smarty_internal_configfileparser.php" -#line 136 "smarty_internal_configfileparser.y" - function yy_r1(){ - $this->add_global_vars($this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = null; - } -#line 671 "smarty_internal_configfileparser.php" -#line 149 "smarty_internal_configfileparser.y" - function yy_r4(){ - $this->add_section_vars($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); - $this->_retvalue = null; - } -#line 677 "smarty_internal_configfileparser.php" -#line 154 "smarty_internal_configfileparser.y" - function yy_r5(){ - if ($this->smarty->config_read_hidden) { - $this->add_section_vars($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + 0]->minor); - } - $this->_retvalue = null; - } -#line 685 "smarty_internal_configfileparser.php" -#line 162 "smarty_internal_configfileparser.y" - function yy_r6(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - } -#line 690 "smarty_internal_configfileparser.php" -#line 166 "smarty_internal_configfileparser.y" - function yy_r7(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor, Array($this->yystack[$this->yyidx + 0]->minor)); - } -#line 695 "smarty_internal_configfileparser.php" -#line 170 "smarty_internal_configfileparser.y" - function yy_r8(){ - $this->_retvalue = Array(); - } -#line 700 "smarty_internal_configfileparser.php" -#line 176 "smarty_internal_configfileparser.y" - function yy_r9(){ - $this->_retvalue = Array("key" => $this->yystack[$this->yyidx + -2]->minor, "value" => $this->yystack[$this->yyidx + 0]->minor); - } -#line 705 "smarty_internal_configfileparser.php" -#line 181 "smarty_internal_configfileparser.y" - function yy_r10(){ - $this->_retvalue = (float) $this->yystack[$this->yyidx + 0]->minor; - } -#line 710 "smarty_internal_configfileparser.php" -#line 185 "smarty_internal_configfileparser.y" - function yy_r11(){ - $this->_retvalue = (int) $this->yystack[$this->yyidx + 0]->minor; - } -#line 715 "smarty_internal_configfileparser.php" -#line 189 "smarty_internal_configfileparser.y" - function yy_r12(){ - $this->_retvalue = $this->parse_bool($this->yystack[$this->yyidx + 0]->minor); - } -#line 720 "smarty_internal_configfileparser.php" -#line 193 "smarty_internal_configfileparser.y" - function yy_r13(){ - $this->_retvalue = self::parse_single_quoted_string($this->yystack[$this->yyidx + 0]->minor); - } -#line 725 "smarty_internal_configfileparser.php" -#line 197 "smarty_internal_configfileparser.y" - function yy_r14(){ - $this->_retvalue = self::parse_double_quoted_string($this->yystack[$this->yyidx + 0]->minor); - } -#line 730 "smarty_internal_configfileparser.php" -#line 201 "smarty_internal_configfileparser.y" - function yy_r15(){ - $this->_retvalue = self::parse_tripple_double_quoted_string($this->yystack[$this->yyidx + -1]->minor); - } -#line 735 "smarty_internal_configfileparser.php" -#line 205 "smarty_internal_configfileparser.y" - function yy_r16(){ - $this->_retvalue = ''; - } -#line 740 "smarty_internal_configfileparser.php" -#line 209 "smarty_internal_configfileparser.y" - function yy_r17(){ - $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; - } -#line 745 "smarty_internal_configfileparser.php" - - private $_retvalue; - - function yy_reduce($yyruleno) - { - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new TPC_yyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - } - - function yy_syntax_error($yymajor, $TOKEN) - { -#line 118 "smarty_internal_configfileparser.y" - - $this->internalError = true; - $this->yymajor = $yymajor; - $this->compiler->trigger_config_file_error(); -#line 808 "smarty_internal_configfileparser.php" - } - - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } -#line 110 "smarty_internal_configfileparser.y" - - $this->successful = !$this->internalError; - $this->internalError = false; - $this->retvalue = $this->_retvalue; - //echo $this->retvalue."\n\n"; -#line 826 "smarty_internal_configfileparser.php" - } - - function doParse($yymajor, $yytokenvalue) - { - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - if ($this->yyidx === null || $this->yyidx < 0) { - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new TPC_yyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_configfileparser.y
Deleted
@@ -1,231 +0,0 @@ -/** -* Smarty Internal Plugin Configfileparser -* -* This is the config file parser -* -* -* @package Smarty -* @subpackage Config -* @author Uwe Tews -*/ -%name TPC_ -%declare_class {class Smarty_Internal_Configfileparser} -%include_class -{ - // states whether the parse was successful or not - public $successful = true; - public $retvalue = 0; - private $lex; - private $internalError = false; - - function __construct($lex, $compiler) { - // set instance object - self::instance($this); - $this->lex = $lex; - $this->smarty = $compiler->smarty; - $this->compiler = $compiler; - } - public static function &instance($new_instance = null) - { - static $instance = null; - if (isset($new_instance) && is_object($new_instance)) - $instance = $new_instance; - return $instance; - } - - private function parse_bool($str) { - if (in_array(strtolower($str) ,array('on','yes','true'))) { - $res = true; - } else { - $res = false; - } - return $res; - } - - private static $escapes_single = Array('\\' => '\\', - '\'' => '\''); - private static function parse_single_quoted_string($qstr) { - $escaped_string = substr($qstr, 1, strlen($qstr)-2); //remove outer quotes - - $ss = preg_split('/(\\\\.)/', $escaped_string, -1, PREG_SPLIT_DELIM_CAPTURE); - - $str = ""; - foreach ($ss as $s) { - if (strlen($s) === 2 && $s[0] === '\\') { - if (isset(self::$escapes_single[$s[1]])) { - $s = self::$escapes_single[$s[1]]; - } - } - - $str .= $s; - } - - return $str; - } - - private static function parse_double_quoted_string($qstr) { - $inner_str = substr($qstr, 1, strlen($qstr)-2); - return stripcslashes($inner_str); - } - - private static function parse_tripple_double_quoted_string($qstr) { - return stripcslashes($qstr); - } - - private function set_var(Array $var, Array &$target_array) { - $key = $var["key"]; - $value = $var["value"]; - - if ($this->smarty->config_overwrite || !isset($target_array['vars'][$key])) { - $target_array['vars'][$key] = $value; - } else { - settype($target_array['vars'][$key], 'array'); - $target_array['vars'][$key][] = $value; - } - } - - private function add_global_vars(Array $vars) { - if (!isset($this->compiler->config_data['vars'])) { - $this->compiler->config_data['vars'] = Array(); - } - foreach ($vars as $var) { - $this->set_var($var, $this->compiler->config_data); - } - } - - private function add_section_vars($section_name, Array $vars) { - if (!isset($this->compiler->config_data['sections'][$section_name]['vars'])) { - $this->compiler->config_data['sections'][$section_name]['vars'] = Array(); - } - foreach ($vars as $var) { - $this->set_var($var, $this->compiler->config_data['sections'][$section_name]); - } - } -} - - -%token_prefix TPC_ - -%parse_accept -{ - $this->successful = !$this->internalError; - $this->internalError = false; - $this->retvalue = $this->_retvalue; - //echo $this->retvalue."\n\n"; -} - -%syntax_error -{ - $this->internalError = true; - $this->yymajor = $yymajor; - $this->compiler->trigger_config_file_error(); -} - -%stack_overflow -{ - $this->internalError = true; - $this->compiler->trigger_config_file_error("Stack overflow in configfile parser"); -} - -// Complete config file -start(res) ::= global_vars sections. { - res = null; -} - -// Global vars -global_vars(res) ::= var_list(vl). { - $this->add_global_vars(vl); res = null; -} - -// Sections -sections(res) ::= sections section. { - res = null; -} - -sections(res) ::= . { - res = null; -} - -section(res) ::= OPENB SECTION(i) CLOSEB newline var_list(vars). { - $this->add_section_vars(i, vars); - res = null; -} - -section(res) ::= OPENB DOT SECTION(i) CLOSEB newline var_list(vars). { - if ($this->smarty->config_read_hidden) { - $this->add_section_vars(i, vars); - } - res = null; -} - -// Var list -var_list(res) ::= var_list(vl) newline. { - res = vl; -} - -var_list(res) ::= var_list(vl) var(v). { - res = array_merge(vl, Array(v)); -} - -var_list(res) ::= . { - res = Array(); -} - - -// Var -var(res) ::= ID(id) EQUAL value(v). { - res = Array("key" => id, "value" => v); -} - - -value(res) ::= FLOAT(i). { - res = (float) i; -} - -value(res) ::= INT(i). { - res = (int) i; -} - -value(res) ::= BOOL(i). { - res = $this->parse_bool(i); -} - -value(res) ::= SINGLE_QUOTED_STRING(i). { - res = self::parse_single_quoted_string(i); -} - -value(res) ::= DOUBLE_QUOTED_STRING(i). { - res = self::parse_double_quoted_string(i); -} - -value(res) ::= TRIPPLE_QUOTES(i) TRIPPLE_TEXT(c) TRIPPLE_QUOTES_END(ii). { - res = self::parse_tripple_double_quoted_string(c); -} - -value(res) ::= TRIPPLE_QUOTES(i) TRIPPLE_QUOTES_END(ii). { - res = ''; -} - -value(res) ::= NAKED_STRING(i). { - res = i; -} - -// NOTE: this is not a valid rule -// It is added hier to produce a usefull error message on a missing '='; -value(res) ::= OTHER(i). { - res = i; -} - - -// Newline and comments -newline(res) ::= NEWLINE. { - res = null; -} - -newline(res) ::= COMMENTSTART NEWLINE. { - res = null; -} - -newline(res) ::= COMMENTSTART NAKED_STRING NEWLINE. { - res = null; -}
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_templatelexer.php
Deleted
@@ -1,1203 +0,0 @@ -<?php -/** -* Smarty Internal Plugin Templatelexer -* -* This is the lexer to break the template source into tokens -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ -/** -* Smarty Internal Plugin Templatelexer -*/ -class Smarty_Internal_Templatelexer -{ - public $data; - public $counter; - public $token; - public $value; - public $node; - public $line; - public $taglineno; - public $state = 1; - private $heredoc_id_stack = Array(); - public $smarty_token_names = array ( // Text for parser error messages - 'IDENTITY' => '===', - 'NONEIDENTITY' => '!==', - 'EQUALS' => '==', - 'NOTEQUALS' => '!=', - 'GREATEREQUAL' => '(>=,ge)', - 'LESSEQUAL' => '(<=,le)', - 'GREATERTHAN' => '(>,gt)', - 'LESSTHAN' => '(<,lt)', - 'MOD' => '(%,mod)', - 'NOT' => '(!,not)', - 'LAND' => '(&&,and)', - 'LOR' => '(||,or)', - 'LXOR' => 'xor', - 'OPENP' => '(', - 'CLOSEP' => ')', - 'OPENB' => '[', - 'CLOSEB' => ']', - 'PTR' => '->', - 'APTR' => '=>', - 'EQUAL' => '=', - 'NUMBER' => 'number', - 'UNIMATH' => '+" , "-', - 'MATH' => '*" , "/" , "%', - 'INCDEC' => '++" , "--', - 'SPACE' => ' ', - 'DOLLAR' => '$', - 'SEMICOLON' => ';', - 'COLON' => ':', - 'DOUBLECOLON' => '::', - 'AT' => '@', - 'HATCH' => '#', - 'QUOTE' => '"', - 'BACKTICK' => '`', - 'VERT' => '|', - 'DOT' => '.', - 'COMMA' => '","', - 'ANDSYM' => '"&"', - 'QMARK' => '"?"', - 'ID' => 'identifier', - 'TEXT' => 'text', - 'FAKEPHPSTARTTAG' => 'Fake PHP start tag', - 'PHPSTARTTAG' => 'PHP start tag', - 'PHPENDTAG' => 'PHP end tag', - 'LITERALSTART' => 'Literal start', - 'LITERALEND' => 'Literal end', - 'LDELSLASH' => 'closing tag', - 'COMMENT' => 'comment', - 'AS' => 'as', - 'TO' => 'to', - ); - - - function __construct($data,$compiler) - { -// $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data); - $this->data = $data; - $this->counter = 0; - $this->line = 1; - $this->smarty = $compiler->smarty; - $this->compiler = $compiler; - $this->ldel = preg_quote($this->smarty->left_delimiter,'/'); - $this->ldel_length = strlen($this->smarty->left_delimiter); - $this->rdel = preg_quote($this->smarty->right_delimiter,'/'); - $this->rdel_length = strlen($this->smarty->right_delimiter); - $this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter; - $this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter; - $this->mbstring_overload = ini_get('mbstring.func_overload') & 2; - } - - - private $_yy_state = 1; - private $_yy_stack = array(); - - function yylex() - { - return $this->{'yylex' . $this->_yy_state}(); - } - - function yypushstate($state) - { - array_push($this->_yy_stack, $this->_yy_state); - $this->_yy_state = $state; - } - - function yypopstate() - { - $this->_yy_state = array_pop($this->_yy_stack); - } - - function yybegin($state) - { - $this->_yy_state = $state; - } - - - - function yylex1() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 1, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 1, - 13 => 0, - 14 => 0, - 15 => 0, - 16 => 0, - 17 => 0, - 18 => 0, - 19 => 0, - 20 => 0, - 21 => 0, - 22 => 0, - 23 => 0, - 24 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."[$]smarty\\.block\\.child".$this->rdel.")|\G(\\{\\})|\G(".$this->ldel."\\*([\S\s]*?)\\*".$this->rdel.")|\G(".$this->ldel."strip".$this->rdel.")|\G(".$this->ldel."\\s{1,}strip\\s{1,}".$this->rdel.")|\G(".$this->ldel."\/strip".$this->rdel.")|\G(".$this->ldel."\\s{1,}\/strip\\s{1,}".$this->rdel.")|\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s*setfilter\\s+)|\G(".$this->ldel."\\s{1,})|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(".$this->rdel.")|\G(<%)|\G(%>)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state TEXT'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r1_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const TEXT = 1; - function yy_r1_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILD; - } - function yy_r1_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r1_3($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_COMMENT; - } - function yy_r1_5($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_STRIPON; - } - function yy_r1_6($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPON; - } - } - function yy_r1_7($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_STRIPOFF; - } - function yy_r1_8($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPOFF; - } - } - function yy_r1_9($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; - $this->yypushstate(self::LITERAL); - } - function yy_r1_10($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_11($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_13($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_14($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_15($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_16($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r1_17($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r1_18($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r1_19($yy_subpatterns) - { - - if (in_array($this->value, Array('<?', '<?=', '<?php'))) { - $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; - } elseif ($this->value == '<?xml') { - $this->token = Smarty_Internal_Templateparser::TP_XMLTAG; - } else { - $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; - $this->value = substr($this->value, 0, 2); - } - } - function yy_r1_20($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; - } - function yy_r1_21($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r1_22($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; - } - function yy_r1_23($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; - } - function yy_r1_24($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/{$this->ldel}|<\?|\?>|<%|%>/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - - - function yylex2() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 1, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 0, - 12 => 0, - 13 => 0, - 14 => 0, - 15 => 0, - 16 => 0, - 17 => 0, - 18 => 0, - 19 => 0, - 20 => 1, - 22 => 1, - 24 => 1, - 26 => 0, - 27 => 0, - 28 => 0, - 29 => 0, - 30 => 0, - 31 => 0, - 32 => 0, - 33 => 0, - 34 => 0, - 35 => 0, - 36 => 0, - 37 => 0, - 38 => 0, - 39 => 0, - 40 => 0, - 41 => 0, - 42 => 0, - 43 => 3, - 47 => 0, - 48 => 0, - 49 => 0, - 50 => 0, - 51 => 0, - 52 => 0, - 53 => 0, - 54 => 0, - 55 => 1, - 57 => 1, - 59 => 0, - 60 => 0, - 61 => 0, - 62 => 0, - 63 => 0, - 64 => 0, - 65 => 0, - 66 => 0, - 67 => 0, - 68 => 0, - 69 => 0, - 70 => 0, - 71 => 0, - 72 => 0, - 73 => 0, - 74 => 0, - 75 => 0, - 76 => 0, - 77 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s{1,})|\G(\\s{1,}".$this->rdel.")|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(".$this->rdel.")|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*===\\s*)|\G(\\s*!==\\s*)|\G(\\s*==\\s*|\\s+eq\\s+)|\G(\\s*!=\\s*|\\s*<>\\s*|\\s+(ne|neq)\\s+)|\G(\\s*>=\\s*|\\s+(ge|gte)\\s+)|\G(\\s*<=\\s*|\\s+(le|lte)\\s+)|\G(\\s*>\\s*|\\s+gt\\s+)|\G(\\s*<\\s*|\\s+lt\\s+)|\G(\\s+mod\\s+)|\G(!\\s*|not\\s+)|\G(\\s*&&\\s*|\\s*and\\s+)|\G(\\s*\\|\\|\\s*|\\s*or\\s+)|\G(\\s*xor\\s+)|\G(\\s+is\\s+odd\\s+by\\s+)|\G(\\s+is\\s+not\\s+odd\\s+by\\s+)|\G(\\s+is\\s+odd)|\G(\\s+is\\s+not\\s+odd)|\G(\\s+is\\s+even\\s+by\\s+)|\G(\\s+is\\s+not\\s+even\\s+by\\s+)|\G(\\s+is\\s+even)|\G(\\s+is\\s+not\\s+even)|\G(\\s+is\\s+div\\s+by\\s+)|\G(\\s+is\\s+not\\s+div\\s+by\\s+)|\G(\\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\\)\\s*)|\G(\\s*\\(\\s*)|\G(\\s*\\))|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*->\\s*)|\G(\\s*=>\\s*)|\G(\\s*=\\s*)|\G(\\+\\+|--)|\G(\\s*(\\+|-)\\s*)|\G(\\s*(\\*|\/|%)\\s*)|\G(\\$)|\G(\\s*;)|\G(::)|\G(\\s*:\\s*)|\G(@)|\G(#)|\G(\")|\G(`)|\G(\\|)|\G(\\.)|\G(\\s*,\\s*)|\G(\\s*&\\s*)|\G(\\s*\\?\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*=\\s*)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G(\\s+)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state SMARTY'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r2_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const SMARTY = 2; - function yy_r2_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; - } - function yy_r2_2($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_3($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_5($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_6($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_7($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r2_8($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_RDEL; - $this->yypopstate(); - } - function yy_r2_9($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r2_10($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r2_11($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_RDEL; - $this->yypopstate(); - } - function yy_r2_12($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISIN; - } - function yy_r2_13($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_AS; - } - function yy_r2_14($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TO; - } - function yy_r2_15($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_STEP; - } - function yy_r2_16($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; - } - function yy_r2_17($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_IDENTITY; - } - function yy_r2_18($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_NONEIDENTITY; - } - function yy_r2_19($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_EQUALS; - } - function yy_r2_20($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_NOTEQUALS; - } - function yy_r2_22($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_GREATEREQUAL; - } - function yy_r2_24($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LESSEQUAL; - } - function yy_r2_26($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_GREATERTHAN; - } - function yy_r2_27($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LESSTHAN; - } - function yy_r2_28($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_MOD; - } - function yy_r2_29($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_NOT; - } - function yy_r2_30($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LAND; - } - function yy_r2_31($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LOR; - } - function yy_r2_32($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LXOR; - } - function yy_r2_33($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISODDBY; - } - function yy_r2_34($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTODDBY; - } - function yy_r2_35($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISODD; - } - function yy_r2_36($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTODD; - } - function yy_r2_37($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISEVENBY; - } - function yy_r2_38($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVENBY; - } - function yy_r2_39($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISEVEN; - } - function yy_r2_40($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVEN; - } - function yy_r2_41($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISDIVBY; - } - function yy_r2_42($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ISNOTDIVBY; - } - function yy_r2_43($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; - } - function yy_r2_47($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_OPENP; - } - function yy_r2_48($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; - } - function yy_r2_49($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_OPENB; - } - function yy_r2_50($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; - } - function yy_r2_51($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_PTR; - } - function yy_r2_52($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_APTR; - } - function yy_r2_53($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_EQUAL; - } - function yy_r2_54($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_INCDEC; - } - function yy_r2_55($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; - } - function yy_r2_57($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_MATH; - } - function yy_r2_59($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; - } - function yy_r2_60($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; - } - function yy_r2_61($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; - } - function yy_r2_62($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_COLON; - } - function yy_r2_63($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_AT; - } - function yy_r2_64($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_HATCH; - } - function yy_r2_65($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_QUOTE; - $this->yypushstate(self::DOUBLEQUOTEDSTRING); - } - function yy_r2_66($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->yypopstate(); - } - function yy_r2_67($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_VERT; - } - function yy_r2_68($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOT; - } - function yy_r2_69($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_COMMA; - } - function yy_r2_70($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ANDSYM; - } - function yy_r2_71($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_QMARK; - } - function yy_r2_72($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_HEX; - } - function yy_r2_73($yy_subpatterns) - { - - // resolve conflicts with shorttag and right_delimiter starting with '=' - if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->rdel_length) == $this->smarty->right_delimiter) { - preg_match("/\s+/",$this->value,$match); - $this->value = $match[0]; - $this->token = Smarty_Internal_Templateparser::TP_SPACE; - } else { - $this->token = Smarty_Internal_Templateparser::TP_ATTR; - } - } - function yy_r2_74($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ID; - } - function yy_r2_75($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_INTEGER; - } - function yy_r2_76($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_SPACE; - } - function yy_r2_77($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - - - - function yylex3() - { - $tokenMap = array ( - 1 => 0, - 2 => 0, - 3 => 0, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."\\s*literal\\s*".$this->rdel.")|\G(".$this->ldel."\\s*\/literal\\s*".$this->rdel.")|\G(<\\?(?:php\\w+|=|[a-zA-Z]+)?)|\G(\\?>)|\G(<%)|\G(%>)|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state LITERAL'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r3_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const LITERAL = 3; - function yy_r3_1($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; - $this->yypushstate(self::LITERAL); - } - function yy_r3_2($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; - $this->yypopstate(); - } - function yy_r3_3($yy_subpatterns) - { - - if (in_array($this->value, Array('<?', '<?=', '<?php'))) { - $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; - } else { - $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; - $this->value = substr($this->value, 0, 2); - } - } - function yy_r3_4($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; - } - function yy_r3_5($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; - } - function yy_r3_6($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; - } - function yy_r3_7($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/{$this->ldel}\/?literal{$this->rdel}|<\?|<%|\?>|%>/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } else { - $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_LITERAL; - } - - - function yylex4() - { - $tokenMap = array ( - 1 => 0, - 2 => 1, - 4 => 0, - 5 => 0, - 6 => 0, - 7 => 0, - 8 => 0, - 9 => 0, - 10 => 0, - 11 => 0, - 12 => 0, - 13 => 3, - 17 => 0, - ); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - $yy_global_pattern = "/\G(".$this->ldel."\\s{1,}\/)|\G(".$this->ldel."\\s*(if|elseif|else if|while)\\s+)|\G(".$this->ldel."\\s*for\\s+)|\G(".$this->ldel."\\s*foreach(?![^\s]))|\G(".$this->ldel."\\s{1,})|\G(".$this->ldel."\/)|\G(".$this->ldel.")|\G(\")|\G(`\\$)|\G(\\$[0-9]*[a-zA-Z_]\\w*)|\G(\\$)|\G(([^\"\\\\]*?)((?:\\\\.[^\"\\\\]*?)*?)(?=(".$this->ldel."|\\$|`\\$|\")))|\G([\S\s])/iS"; - - do { - if ($this->mbstring_overload ? preg_match($yy_global_pattern, mb_substr($this->data, $this->counter,2000000000,'latin1'), $yymatches) : preg_match($yy_global_pattern,$this->data, $yymatches, null, $this->counter)) { - $yysubmatches = $yymatches; - $yymatches = array_filter($yymatches, 'strlen'); // remove empty sub-patterns - if (!count($yymatches)) { - throw new Exception('Error: lexing failed because a rule matched' . - ' an empty string. Input "' . substr($this->data, - $this->counter, 5) . '... state DOUBLEQUOTEDSTRING'); - } - next($yymatches); // skip global match - $this->token = key($yymatches); // token number - if ($tokenMap[$this->token]) { - // extract sub-patterns for passing to lex function - $yysubmatches = array_slice($yysubmatches, $this->token + 1, - $tokenMap[$this->token]); - } else { - $yysubmatches = array(); - } - $this->value = current($yymatches); // token value - $r = $this->{'yy_r4_' . $this->token}($yysubmatches); - if ($r === null) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - // accept this token - return true; - } elseif ($r === true) { - // we have changed state - // process this token in the new state - return $this->yylex(); - } elseif ($r === false) { - $this->counter += ($this->mbstring_overload ? mb_strlen($this->value,'latin1'): strlen($this->value)); - $this->line += substr_count($this->value, "\n"); - if ($this->counter >= ($this->mbstring_overload ? mb_strlen($this->data,'latin1'): strlen($this->data))) { - return false; // end of input - } - // skip this token - continue; - } } else { - throw new Exception('Unexpected input at line' . $this->line . - ': ' . $this->data[$this->counter]); - } - break; - } while (true); - - } // end function - - - const DOUBLEQUOTEDSTRING = 4; - function yy_r4_1($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_2($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_4($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_5($yy_subpatterns) - { - - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_6($yy_subpatterns) - { - - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - } - function yy_r4_7($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r4_8($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r4_9($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_QUOTE; - $this->yypopstate(); - } - function yy_r4_10($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->value = substr($this->value,0,-1); - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } - function yy_r4_11($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; - } - function yy_r4_12($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r4_13($yy_subpatterns) - { - - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - function yy_r4_17($yy_subpatterns) - { - - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } - -}
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_templatelexer.plex
Deleted
@@ -1,726 +0,0 @@ -<?php -/** -* Smarty Internal Plugin Templatelexer -* -* This is the lexer to break the template source into tokens -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ -/** -* Smarty Internal Plugin Templatelexer -*/ -class Smarty_Internal_Templatelexer -{ - public $data; - public $counter; - public $token; - public $value; - public $node; - public $line; - public $taglineno; - public $state = 1; - private $heredoc_id_stack = Array(); - public $smarty_token_names = array ( // Text for parser error messages - 'IDENTITY' => '===', - 'NONEIDENTITY' => '!==', - 'EQUALS' => '==', - 'NOTEQUALS' => '!=', - 'GREATEREQUAL' => '(>=,ge)', - 'LESSEQUAL' => '(<=,le)', - 'GREATERTHAN' => '(>,gt)', - 'LESSTHAN' => '(<,lt)', - 'MOD' => '(%,mod)', - 'NOT' => '(!,not)', - 'LAND' => '(&&,and)', - 'LOR' => '(||,or)', - 'LXOR' => 'xor', - 'OPENP' => '(', - 'CLOSEP' => ')', - 'OPENB' => '[', - 'CLOSEB' => ']', - 'PTR' => '->', - 'APTR' => '=>', - 'EQUAL' => '=', - 'NUMBER' => 'number', - 'UNIMATH' => '+" , "-', - 'MATH' => '*" , "/" , "%', - 'INCDEC' => '++" , "--', - 'SPACE' => ' ', - 'DOLLAR' => '$', - 'SEMICOLON' => ';', - 'COLON' => ':', - 'DOUBLECOLON' => '::', - 'AT' => '@', - 'HATCH' => '#', - 'QUOTE' => '"', - 'BACKTICK' => '`', - 'VERT' => '|', - 'DOT' => '.', - 'COMMA' => '","', - 'ANDSYM' => '"&"', - 'QMARK' => '"?"', - 'ID' => 'identifier', - 'TEXT' => 'text', - 'FAKEPHPSTARTTAG' => 'Fake PHP start tag', - 'PHPSTARTTAG' => 'PHP start tag', - 'PHPENDTAG' => 'PHP end tag', - 'LITERALSTART' => 'Literal start', - 'LITERALEND' => 'Literal end', - 'LDELSLASH' => 'closing tag', - 'COMMENT' => 'comment', - 'AS' => 'as', - 'TO' => 'to', - ); - - - function __construct($data,$compiler) - { -// $this->data = preg_replace("/(\r\n|\r|\n)/", "\n", $data); - $this->data = $data; - $this->counter = 0; - $this->line = 1; - $this->smarty = $compiler->smarty; - $this->compiler = $compiler; - $this->ldel = preg_quote($this->smarty->left_delimiter,'/'); - $this->ldel_length = strlen($this->smarty->left_delimiter); - $this->rdel = preg_quote($this->smarty->right_delimiter,'/'); - $this->rdel_length = strlen($this->smarty->right_delimiter); - $this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter; - $this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter; - $this->mbstring_overload = ini_get('mbstring.func_overload') & 2; - } - -/*!lex2php -%input $this->data -%counter $this->counter -%token $this->token -%value $this->value -%line $this->line -linebreak = /[\t ]*[\r\n]+[\t ]*/ -text = /[\S\s]/ -textdoublequoted = /([^"\\]*?)((?:\\.[^"\\]*?)*?)(?=(SMARTYldel|\$|`\$|"))/ -dollarid = /\$[0-9]*[a-zA-Z_]\w*/ -all = /[\S\s]+/ -emptyjava = /\{\}/ -phpstarttag = /<\?(?:php\w+|=|[a-zA-Z]+)?/ -phpendtag = /\?>/ -aspstarttag = /<%/ -aspendtag = /%>/ -ldels = /SMARTYldel\s{1,}/ -rdels = /\s{1,}SMARTYrdel/ -ldelslash = /SMARTYldel\// -ldelspaceslash = /SMARTYldel\s{1,}\// -ldel = /SMARTYldel/ -rdel = /SMARTYrdel/ -smartyblockchild = /SMARTYldel[\$]smarty\.block\.childSMARTYrdel/ -integer = /\d+/ -hex = /0[xX][0-9a-fA-F]+/ -math = /\s*(\*|\/|\%)\s*/ -comment = /SMARTYldel\*([\S\s]*?)\*SMARTYrdel/ -incdec = /\+\+|\-\-/ -unimath = /\s*(\+|\-)\s*/ -openP = /\s*\(\s*/ -closeP = /\s*\)/ -openB = /\[\s*/ -closeB = /\s*\]/ -dollar = /\$/ -dot = /\./ -comma = /\s*\,\s*/ -doublecolon = /\:\:/ -colon = /\s*\:\s*/ -at = /@/ -hatch = /#/ -semicolon = /\s*\;/ -equal = /\s*=\s*/ -space = /\s+/ -ptr = /\s*\->\s*/ -aptr = /\s*=>\s*/ -singlequotestring = /'[^'\\]*(?:\\.[^'\\]*)*'/ -backtick = /`/ -backtickdollar = /`\$/ -vert = /\|/ -andsym = /\s*\&\s*/ -qmark = /\s*\?\s*/ -constant = /([_]+[A-Z0-9][0-9A-Z_]*|[A-Z][0-9A-Z_]*)(?![0-9A-Z_]*[a-z])/ -attr = /\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\s*=\s*/ -id = /[0-9]*[a-zA-Z_]\w*/ -literalstart = /SMARTYldel\s*literal\s*SMARTYrdel/ -literalend = /SMARTYldel\s*\/literal\s*SMARTYrdel/ -stripstart = /SMARTYldelstripSMARTYrdel/ -stripend = /SMARTYldel\/stripSMARTYrdel/ -stripspacestart = /SMARTYldel\s{1,}strip\s{1,}SMARTYrdel/ -stripspaceend = /SMARTYldel\s{1,}\/strip\s{1,}SMARTYrdel/ -equals = /\s*==\s*|\s+eq\s+/ -notequals = /\s*!=\s*|\s*<>\s*|\s+(ne|neq)\s+/ -greaterthan = /\s*>\s*|\s+gt\s+/ -lessthan = /\s*<\s*|\s+lt\s+/ -greaterequal = /\s*>=\s*|\s+(ge|gte)\s+/ -lessequal = /\s*<=\s*|\s+(le|lte)\s+/ -mod = /\s+mod\s+/ -identity = /\s*===\s*/ -noneidentity = /\s*!==\s*/ -isoddby = /\s+is\s+odd\s+by\s+/ -isnotoddby = /\s+is\s+not\s+odd\s+by\s+/ -isodd = /\s+is\s+odd/ -isnotodd = /\s+is\s+not\s+odd/ -isevenby = /\s+is\s+even\s+by\s+/ -isnotevenby = /\s+is\s+not\s+even\s+by\s+/ -iseven = /\s+is\s+even/ -isnoteven = /\s+is\s+not\s+even/ -isdivby = /\s+is\s+div\s+by\s+/ -isnotdivby = /\s+is\s+not\s+div\s+by\s+/ -isin = /\s+is\s+in\s+/ -as = /\s+as\s+/ -to = /\s+to\s+/ -step = /\s+step\s+/ -ldelif = /SMARTYldel\s*(if|elseif|else if|while)\s+/ -ldelfor = /SMARTYldel\s*for\s+/ -ldelforeach = /SMARTYldel\s*foreach(?![^\s])/ -ldelsetfilter = /SMARTYldel\s*setfilter\s+/ -instanceof = /\s+instanceof\s+/ -not = /!\s*|not\s+/ -land = /\s*\&\&\s*|\s*and\s+/ -lor = /\s*\|\|\s*|\s*or\s+/ -lxor = /\s*xor\s+/ -typecast = /\((int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)\)\s*/ -double_quote = /"/ -single_quote = /'/ -*/ -/*!lex2php -%statename TEXT -smartyblockchild { - $this->token = Smarty_Internal_Templateparser::TP_SMARTYBLOCKCHILD; -} -emptyjava { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} -comment { - $this->token = Smarty_Internal_Templateparser::TP_COMMENT; -} -stripstart { - $this->token = Smarty_Internal_Templateparser::TP_STRIPON; -} -stripspacestart { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPON; - } -} -stripend { - $this->token = Smarty_Internal_Templateparser::TP_STRIPOFF; -} -stripspaceend { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_STRIPOFF; - } -} -literalstart { - $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; - $this->yypushstate(self::LITERAL); -} -ldelspaceslash { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelif { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelfor { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelforeach { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelsetfilter { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSETFILTER; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldels { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelslash { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -ldel { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -phpstarttag { - if (in_array($this->value, Array('<?', '<?=', '<?php'))) { - $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; - } elseif ($this->value == '<?xml') { - $this->token = Smarty_Internal_Templateparser::TP_XMLTAG; - } else { - $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; - $this->value = substr($this->value, 0, 2); - } - } -phpendtag { - $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; -} -rdel { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} -aspstarttag { - $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; -} -aspendtag { - $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; -} -text { - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/{$this->ldel}|<\?|\?>|<%|%>/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} - - -*/ -/*!lex2php -%statename SMARTY -singlequotestring { - $this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING; -} -ldelspaceslash { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelif { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelfor { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelforeach { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldels { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -rdels { - $this->token = Smarty_Internal_Templateparser::TP_RDEL; - $this->yypopstate(); -} -ldelslash { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -ldel { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -rdel { - $this->token = Smarty_Internal_Templateparser::TP_RDEL; - $this->yypopstate(); -} -isin { - $this->token = Smarty_Internal_Templateparser::TP_ISIN; -} -as { - $this->token = Smarty_Internal_Templateparser::TP_AS; -} -to { - $this->token = Smarty_Internal_Templateparser::TP_TO; -} -step { - $this->token = Smarty_Internal_Templateparser::TP_STEP; -} -instanceof { - $this->token = Smarty_Internal_Templateparser::TP_INSTANCEOF; -} -identity{ - $this->token = Smarty_Internal_Templateparser::TP_IDENTITY; -} -noneidentity{ - $this->token = Smarty_Internal_Templateparser::TP_NONEIDENTITY; -} -equals{ - $this->token = Smarty_Internal_Templateparser::TP_EQUALS; -} -notequals{ - $this->token = Smarty_Internal_Templateparser::TP_NOTEQUALS; -} -greaterequal{ - $this->token = Smarty_Internal_Templateparser::TP_GREATEREQUAL; -} -lessequal{ - $this->token = Smarty_Internal_Templateparser::TP_LESSEQUAL; -} -greaterthan{ - $this->token = Smarty_Internal_Templateparser::TP_GREATERTHAN; -} -lessthan{ - $this->token = Smarty_Internal_Templateparser::TP_LESSTHAN; -} -mod{ - $this->token = Smarty_Internal_Templateparser::TP_MOD; -} -not{ - $this->token = Smarty_Internal_Templateparser::TP_NOT; -} -land { - $this->token = Smarty_Internal_Templateparser::TP_LAND; -} -lor { - $this->token = Smarty_Internal_Templateparser::TP_LOR; -} -lxor { - $this->token = Smarty_Internal_Templateparser::TP_LXOR; -} -isoddby { - $this->token = Smarty_Internal_Templateparser::TP_ISODDBY; -} -isnotoddby { - $this->token = Smarty_Internal_Templateparser::TP_ISNOTODDBY; -} - -isodd { - $this->token = Smarty_Internal_Templateparser::TP_ISODD; -} -isnotodd { - $this->token = Smarty_Internal_Templateparser::TP_ISNOTODD; -} -isevenby { - $this->token = Smarty_Internal_Templateparser::TP_ISEVENBY; -} -isnotevenby { - $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVENBY; -} -iseven{ - $this->token = Smarty_Internal_Templateparser::TP_ISEVEN; -} -isnoteven { - $this->token = Smarty_Internal_Templateparser::TP_ISNOTEVEN; -} -isdivby { - $this->token = Smarty_Internal_Templateparser::TP_ISDIVBY; -} -isnotdivby { - $this->token = Smarty_Internal_Templateparser::TP_ISNOTDIVBY; -} -typecast { - $this->token = Smarty_Internal_Templateparser::TP_TYPECAST; -} -openP { - $this->token = Smarty_Internal_Templateparser::TP_OPENP; -} -closeP { - $this->token = Smarty_Internal_Templateparser::TP_CLOSEP; -} -openB { - $this->token = Smarty_Internal_Templateparser::TP_OPENB; -} - -closeB { - $this->token = Smarty_Internal_Templateparser::TP_CLOSEB; -} -ptr { - $this->token = Smarty_Internal_Templateparser::TP_PTR; -} -aptr { - $this->token = Smarty_Internal_Templateparser::TP_APTR; -} -equal { - $this->token = Smarty_Internal_Templateparser::TP_EQUAL; -} -incdec { - $this->token = Smarty_Internal_Templateparser::TP_INCDEC; -} -unimath { - $this->token = Smarty_Internal_Templateparser::TP_UNIMATH; -} -math { - $this->token = Smarty_Internal_Templateparser::TP_MATH; -} -dollar { - $this->token = Smarty_Internal_Templateparser::TP_DOLLAR; -} -semicolon { - $this->token = Smarty_Internal_Templateparser::TP_SEMICOLON; -} -doublecolon { - $this->token = Smarty_Internal_Templateparser::TP_DOUBLECOLON; -} -colon { - $this->token = Smarty_Internal_Templateparser::TP_COLON; -} -at { - $this->token = Smarty_Internal_Templateparser::TP_AT; -} -hatch { - $this->token = Smarty_Internal_Templateparser::TP_HATCH; -} -double_quote { - $this->token = Smarty_Internal_Templateparser::TP_QUOTE; - $this->yypushstate(self::DOUBLEQUOTEDSTRING); -} -backtick { - $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->yypopstate(); -} -vert { - $this->token = Smarty_Internal_Templateparser::TP_VERT; -} -dot { - $this->token = Smarty_Internal_Templateparser::TP_DOT; -} -comma { - $this->token = Smarty_Internal_Templateparser::TP_COMMA; -} -andsym { - $this->token = Smarty_Internal_Templateparser::TP_ANDSYM; -} -qmark { - $this->token = Smarty_Internal_Templateparser::TP_QMARK; -} -hex { - $this->token = Smarty_Internal_Templateparser::TP_HEX; -} -attr { - // resolve conflicts with shorttag and right_delimiter starting with '=' - if (substr($this->data, $this->counter + strlen($this->value) - 1, $this->rdel_length) == $this->smarty->right_delimiter) { - preg_match("/\s+/",$this->value,$match); - $this->value = $match[0]; - $this->token = Smarty_Internal_Templateparser::TP_SPACE; - } else { - $this->token = Smarty_Internal_Templateparser::TP_ATTR; - } -} -id { - $this->token = Smarty_Internal_Templateparser::TP_ID; -} -integer { - $this->token = Smarty_Internal_Templateparser::TP_INTEGER; -} -space { - $this->token = Smarty_Internal_Templateparser::TP_SPACE; -} -text { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} -*/ - -/*!lex2php -%statename LITERAL -literalstart { - $this->token = Smarty_Internal_Templateparser::TP_LITERALSTART; - $this->yypushstate(self::LITERAL); -} -literalend { - $this->token = Smarty_Internal_Templateparser::TP_LITERALEND; - $this->yypopstate(); -} - -phpstarttag { - if (in_array($this->value, Array('<?', '<?=', '<?php'))) { - $this->token = Smarty_Internal_Templateparser::TP_PHPSTARTTAG; - } else { - $this->token = Smarty_Internal_Templateparser::TP_FAKEPHPSTARTTAG; - $this->value = substr($this->value, 0, 2); - } -} -phpendtag { - $this->token = Smarty_Internal_Templateparser::TP_PHPENDTAG; -} -aspstarttag { - $this->token = Smarty_Internal_Templateparser::TP_ASPSTARTTAG; -} -aspendtag { - $this->token = Smarty_Internal_Templateparser::TP_ASPENDTAG; -} -text { - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - preg_match("/{$this->ldel}\/?literal{$this->rdel}|<\?|<%|\?>|%>/",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); - if (isset($match[0][1])) { - $to = $match[0][1]; - } else { - $this->compiler->trigger_template_error ("missing or misspelled literal closing tag"); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_LITERAL; -} -*/ -/*!lex2php -%statename DOUBLEQUOTEDSTRING -ldelspaceslash { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelif { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELIF; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelfor { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOR; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelforeach { - if ($this->smarty->auto_literal && trim(substr($this->value,$this->ldel_length,1)) == '') { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDELFOREACH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldels { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; - } else { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; - } -} -ldelslash { - $this->token = Smarty_Internal_Templateparser::TP_LDELSLASH; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -ldel { - $this->token = Smarty_Internal_Templateparser::TP_LDEL; - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -double_quote { - $this->token = Smarty_Internal_Templateparser::TP_QUOTE; - $this->yypopstate(); -} -backtickdollar { - $this->token = Smarty_Internal_Templateparser::TP_BACKTICK; - $this->value = substr($this->value,0,-1); - $this->yypushstate(self::SMARTY); - $this->taglineno = $this->line; -} -dollarid { - $this->token = Smarty_Internal_Templateparser::TP_DOLLARID; -} - -dollar { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} -textdoublequoted { - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} -text { - if ($this->mbstring_overload) { - $to = mb_strlen($this->data,'latin1'); - } else { - $to = strlen($this->data); - } - if ($this->mbstring_overload) { - $this->value = mb_substr($this->data,$this->counter,$to-$this->counter,'latin1'); - } else { - $this->value = substr($this->data,$this->counter,$to-$this->counter); - } - $this->token = Smarty_Internal_Templateparser::TP_TEXT; -} -*/ -} -?> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_templateparser.php
Deleted
@@ -1,3254 +0,0 @@ -<?php -/** -* Smarty Internal Plugin Templateparser -* -* This is the template parser. -* It is generated from the internal.templateparser.y file -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ - -class TP_yyToken implements ArrayAccess -{ - public $string = ''; - public $metadata = array(); - - function __construct($s, $m = array()) - { - if ($s instanceof TP_yyToken) { - $this->string = $s->string; - $this->metadata = $s->metadata; - } else { - $this->string = (string) $s; - if ($m instanceof TP_yyToken) { - $this->metadata = $m->metadata; - } elseif (is_array($m)) { - $this->metadata = $m; - } - } - } - - function __toString() - { - return $this->_string; - } - - function offsetExists($offset) - { - return isset($this->metadata[$offset]); - } - - function offsetGet($offset) - { - return $this->metadata[$offset]; - } - - function offsetSet($offset, $value) - { - if ($offset === null) { - if (isset($value[0])) { - $x = ($value instanceof TP_yyToken) ? - $value->metadata : $value; - $this->metadata = array_merge($this->metadata, $x); - return; - } - $offset = count($this->metadata); - } - if ($value === null) { - return; - } - if ($value instanceof TP_yyToken) { - if ($value->metadata) { - $this->metadata[$offset] = $value->metadata; - } - } elseif ($value) { - $this->metadata[$offset] = $value; - } - } - - function offsetUnset($offset) - { - unset($this->metadata[$offset]); - } -} - -class TP_yyStackEntry -{ - public $stateno; /* The state-number */ - public $major; /* The major token value. This is the code - ** number for the token at this stack level */ - public $minor; /* The user-supplied minor token value. This - ** is the value of the token */ -}; - - -#line 12 "smarty_internal_templateparser.y" -class Smarty_Internal_Templateparser#line 79 "smarty_internal_templateparser.php" -{ -#line 14 "smarty_internal_templateparser.y" - - const Err1 = "Security error: Call to private object member not allowed"; - const Err2 = "Security error: Call to dynamic object member not allowed"; - const Err3 = "PHP in template not allowed. Use SmartyBC to enable it"; - // states whether the parse was successful or not - public $successful = true; - public $retvalue = 0; - private $lex; - private $internalError = false; - private $strip = false; - - function __construct($lex, $compiler) { - $this->lex = $lex; - $this->compiler = $compiler; - $this->smarty = $this->compiler->smarty; - $this->template = $this->compiler->template; - $this->compiler->has_variable_string = false; - $this->compiler->prefix_code = array(); - $this->prefix_number = 0; - $this->block_nesting_level = 0; - if ($this->security = isset($this->smarty->security_policy)) { - $this->php_handling = $this->smarty->security_policy->php_handling; - } else { - $this->php_handling = $this->smarty->php_handling; - } - $this->is_xml = false; - $this->asp_tags = (ini_get('asp_tags') != '0'); - $this->current_buffer = $this->root_buffer = new _smarty_template_buffer($this); - } - - public static function escape_start_tag($tag_text) { - $tag = preg_replace('/\A<\?(.*)\z/', '<<?php ?>?\1', $tag_text, -1 , $count); //Escape tag - return $tag; - } - - public static function escape_end_tag($tag_text) { - return '?<?php ?>>'; - } - - public function compileVariable($variable) { - if (strpos($variable,'(') == 0) { - // not a variable variable - $var = trim($variable,'\''); - $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable($var, null, true, false)->nocache; - $this->template->properties['variables'][$var] = $this->compiler->tag_nocache|$this->compiler->nocache; - } -// return '(isset($_smarty_tpl->tpl_vars['. $variable .'])?$_smarty_tpl->tpl_vars['. $variable .']->value:$_smarty_tpl->getVariable('. $variable .')->value)'; - return '$_smarty_tpl->tpl_vars['. $variable .']->value'; - } -#line 132 "smarty_internal_templateparser.php" - - const TP_VERT = 1; - const TP_COLON = 2; - const TP_COMMENT = 3; - const TP_PHPSTARTTAG = 4; - const TP_PHPENDTAG = 5; - const TP_ASPSTARTTAG = 6; - const TP_ASPENDTAG = 7; - const TP_FAKEPHPSTARTTAG = 8; - const TP_XMLTAG = 9; - const TP_TEXT = 10; - const TP_STRIPON = 11; - const TP_STRIPOFF = 12; - const TP_LITERALSTART = 13; - const TP_LITERALEND = 14; - const TP_LITERAL = 15; - const TP_LDEL = 16; - const TP_RDEL = 17; - const TP_DOLLAR = 18; - const TP_ID = 19; - const TP_EQUAL = 20; - const TP_PTR = 21; - const TP_LDELIF = 22; - const TP_LDELFOR = 23; - const TP_SEMICOLON = 24; - const TP_INCDEC = 25; - const TP_TO = 26; - const TP_STEP = 27; - const TP_LDELFOREACH = 28; - const TP_SPACE = 29; - const TP_AS = 30; - const TP_APTR = 31; - const TP_LDELSETFILTER = 32; - const TP_SMARTYBLOCKCHILD = 33; - const TP_LDELSLASH = 34; - const TP_ATTR = 35; - const TP_INTEGER = 36; - const TP_COMMA = 37; - const TP_OPENP = 38; - const TP_CLOSEP = 39; - const TP_MATH = 40; - const TP_UNIMATH = 41; - const TP_ANDSYM = 42; - const TP_ISIN = 43; - const TP_ISDIVBY = 44; - const TP_ISNOTDIVBY = 45; - const TP_ISEVEN = 46; - const TP_ISNOTEVEN = 47; - const TP_ISEVENBY = 48; - const TP_ISNOTEVENBY = 49; - const TP_ISODD = 50; - const TP_ISNOTODD = 51; - const TP_ISODDBY = 52; - const TP_ISNOTODDBY = 53; - const TP_INSTANCEOF = 54; - const TP_QMARK = 55; - const TP_NOT = 56; - const TP_TYPECAST = 57; - const TP_HEX = 58; - const TP_DOT = 59; - const TP_SINGLEQUOTESTRING = 60; - const TP_DOUBLECOLON = 61; - const TP_AT = 62; - const TP_HATCH = 63; - const TP_OPENB = 64; - const TP_CLOSEB = 65; - const TP_EQUALS = 66; - const TP_NOTEQUALS = 67; - const TP_GREATERTHAN = 68; - const TP_LESSTHAN = 69; - const TP_GREATEREQUAL = 70; - const TP_LESSEQUAL = 71; - const TP_IDENTITY = 72; - const TP_NONEIDENTITY = 73; - const TP_MOD = 74; - const TP_LAND = 75; - const TP_LOR = 76; - const TP_LXOR = 77; - const TP_QUOTE = 78; - const TP_BACKTICK = 79; - const TP_DOLLARID = 80; - const YY_NO_ACTION = 597; - const YY_ACCEPT_ACTION = 596; - const YY_ERROR_ACTION = 595; - - const YY_SZ_ACTTAB = 2383; -static public $yy_action = array( - /* 0 */ 225, 275, 263, 276, 259, 257, 260, 390, 356, 359, - /* 10 */ 353, 193, 18, 127, 42, 317, 381, 351, 196, 350, - /* 20 */ 6, 108, 24, 98, 128, 190, 134, 318, 41, 41, - /* 30 */ 249, 329, 231, 18, 43, 43, 317, 26, 298, 50, - /* 40 */ 47, 48, 44, 10, 13, 305, 306, 12, 11, 340, - /* 50 */ 341, 40, 20, 387, 308, 307, 309, 374, 254, 248, - /* 60 */ 252, 217, 193, 385, 291, 375, 376, 377, 373, 372, - /* 70 */ 368, 367, 369, 370, 371, 378, 379, 225, 312, 255, - /* 80 */ 225, 225, 118, 2, 207, 76, 135, 596, 95, 281, - /* 90 */ 271, 264, 2, 366, 315, 386, 461, 383, 232, 294, - /* 100 */ 303, 388, 313, 389, 227, 41, 144, 225, 461, 245, - /* 110 */ 282, 43, 218, 358, 461, 144, 50, 47, 48, 44, - /* 120 */ 10, 13, 305, 306, 12, 11, 340, 341, 40, 20, - /* 130 */ 105, 177, 522, 46, 46, 41, 19, 522, 143, 297, - /* 140 */ 325, 43, 375, 376, 377, 373, 372, 368, 367, 369, - /* 150 */ 370, 371, 378, 379, 225, 312, 293, 206, 225, 141, - /* 160 */ 124, 225, 54, 119, 123, 225, 459, 38, 173, 246, - /* 170 */ 319, 315, 386, 347, 455, 232, 294, 303, 459, 313, - /* 180 */ 139, 321, 41, 31, 459, 41, 41, 2, 43, 188, - /* 190 */ 2, 43, 43, 50, 47, 48, 44, 10, 13, 305, - /* 200 */ 306, 12, 11, 340, 341, 40, 20, 225, 136, 301, - /* 210 */ 144, 194, 350, 144, 46, 202, 206, 328, 198, 375, - /* 220 */ 376, 377, 373, 372, 368, 367, 369, 370, 371, 378, - /* 230 */ 379, 21, 9, 28, 185, 41, 318, 225, 265, 271, - /* 240 */ 264, 43, 206, 27, 173, 206, 50, 47, 48, 44, - /* 250 */ 10, 13, 305, 306, 12, 11, 340, 341, 40, 20, - /* 260 */ 225, 178, 18, 212, 330, 317, 17, 32, 8, 14, - /* 270 */ 325, 267, 375, 376, 377, 373, 372, 368, 367, 369, - /* 280 */ 370, 371, 378, 379, 136, 363, 363, 207, 41, 4, - /* 290 */ 46, 5, 131, 233, 43, 25, 186, 289, 318, 50, - /* 300 */ 47, 48, 44, 10, 13, 305, 306, 12, 11, 340, - /* 310 */ 341, 40, 20, 225, 100, 161, 18, 355, 361, 317, - /* 320 */ 26, 109, 360, 346, 325, 375, 376, 377, 373, 372, - /* 330 */ 368, 367, 369, 370, 371, 378, 379, 106, 201, 172, - /* 340 */ 25, 206, 288, 25, 18, 261, 181, 317, 325, 45, - /* 350 */ 339, 129, 50, 47, 48, 44, 10, 13, 305, 306, - /* 360 */ 12, 11, 340, 341, 40, 20, 225, 104, 162, 18, - /* 370 */ 16, 205, 317, 206, 248, 238, 43, 325, 375, 376, - /* 380 */ 377, 373, 372, 368, 367, 369, 370, 371, 378, 379, - /* 390 */ 255, 354, 243, 229, 206, 342, 18, 239, 242, 241, - /* 400 */ 248, 266, 300, 330, 240, 50, 47, 48, 44, 10, - /* 410 */ 13, 305, 306, 12, 11, 340, 341, 40, 20, 225, - /* 420 */ 165, 176, 184, 18, 18, 18, 253, 215, 251, 325, - /* 430 */ 325, 375, 376, 377, 373, 372, 368, 367, 369, 370, - /* 440 */ 371, 378, 379, 304, 268, 159, 207, 207, 247, 206, - /* 450 */ 148, 41, 195, 350, 325, 27, 33, 43, 50, 47, - /* 460 */ 48, 44, 10, 13, 305, 306, 12, 11, 340, 341, - /* 470 */ 40, 20, 163, 225, 328, 199, 133, 29, 187, 23, - /* 480 */ 250, 325, 101, 225, 375, 376, 377, 373, 372, 368, - /* 490 */ 367, 369, 370, 371, 378, 379, 225, 298, 207, 334, - /* 500 */ 225, 45, 312, 103, 299, 192, 154, 364, 18, 302, - /* 510 */ 135, 317, 285, 35, 173, 203, 320, 3, 236, 6, - /* 520 */ 108, 41, 232, 294, 303, 134, 313, 43, 130, 249, - /* 530 */ 329, 231, 250, 225, 280, 50, 47, 48, 44, 10, - /* 540 */ 13, 305, 306, 12, 11, 340, 341, 40, 20, 336, - /* 550 */ 36, 166, 212, 230, 332, 228, 338, 8, 132, 330, - /* 560 */ 325, 375, 376, 377, 373, 372, 368, 367, 369, 370, - /* 570 */ 371, 378, 379, 225, 312, 345, 37, 362, 141, 312, - /* 580 */ 94, 77, 135, 156, 236, 182, 173, 135, 122, 204, - /* 590 */ 315, 386, 365, 225, 232, 294, 303, 137, 313, 232, - /* 600 */ 294, 303, 125, 313, 41, 222, 333, 180, 277, 337, - /* 610 */ 43, 225, 50, 47, 48, 44, 10, 13, 305, 306, - /* 620 */ 12, 11, 340, 341, 40, 20, 136, 335, 316, 5, - /* 630 */ 22, 197, 269, 34, 173, 148, 126, 116, 375, 376, - /* 640 */ 377, 373, 372, 368, 367, 369, 370, 371, 378, 379, - /* 650 */ 225, 312, 298, 225, 292, 141, 312, 258, 77, 135, - /* 660 */ 153, 183, 318, 301, 135, 175, 284, 315, 386, 461, - /* 670 */ 117, 232, 294, 303, 325, 313, 232, 294, 303, 382, - /* 680 */ 313, 461, 220, 110, 329, 298, 318, 461, 329, 50, - /* 690 */ 47, 48, 44, 10, 13, 305, 306, 12, 11, 340, - /* 700 */ 341, 40, 20, 225, 30, 191, 46, 189, 314, 107, - /* 710 */ 329, 329, 146, 97, 102, 375, 376, 377, 373, 372, - /* 720 */ 368, 367, 369, 370, 371, 378, 379, 298, 298, 298, - /* 730 */ 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, - /* 740 */ 329, 329, 50, 47, 48, 44, 10, 13, 305, 306, - /* 750 */ 12, 11, 340, 341, 40, 20, 225, 329, 329, 329, - /* 760 */ 329, 329, 329, 329, 329, 114, 160, 115, 375, 376, - /* 770 */ 377, 373, 372, 368, 367, 369, 370, 371, 378, 379, - /* 780 */ 298, 298, 298, 329, 329, 329, 329, 329, 329, 329, - /* 790 */ 329, 329, 329, 329, 283, 50, 47, 48, 44, 10, - /* 800 */ 13, 305, 306, 12, 11, 340, 341, 40, 20, 329, - /* 810 */ 225, 329, 329, 329, 329, 329, 329, 329, 329, 329, - /* 820 */ 329, 375, 376, 377, 373, 372, 368, 367, 369, 370, - /* 830 */ 371, 378, 379, 200, 329, 329, 329, 329, 329, 329, - /* 840 */ 329, 329, 329, 329, 329, 329, 329, 329, 329, 50, - /* 850 */ 47, 48, 44, 10, 13, 305, 306, 12, 11, 340, - /* 860 */ 341, 40, 20, 225, 329, 329, 329, 329, 329, 329, - /* 870 */ 329, 329, 329, 329, 329, 375, 376, 377, 373, 372, - /* 880 */ 368, 367, 369, 370, 371, 378, 379, 329, 329, 329, - /* 890 */ 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, - /* 900 */ 329, 329, 50, 47, 48, 44, 10, 13, 305, 306, - /* 910 */ 12, 11, 340, 341, 40, 20, 329, 329, 329, 329, - /* 920 */ 329, 329, 329, 329, 329, 329, 329, 290, 375, 376, - /* 930 */ 377, 373, 372, 368, 367, 369, 370, 371, 378, 379, - /* 940 */ 225, 312, 329, 225, 329, 141, 312, 329, 77, 135, - /* 950 */ 152, 329, 329, 329, 135, 158, 208, 315, 386, 458, - /* 960 */ 329, 232, 294, 303, 325, 313, 232, 294, 303, 329, - /* 970 */ 313, 458, 223, 329, 329, 329, 318, 458, 329, 50, - /* 980 */ 47, 48, 44, 10, 13, 305, 306, 12, 11, 340, - /* 990 */ 341, 40, 20, 225, 329, 329, 46, 329, 329, 329, - /* 1000 */ 329, 329, 329, 329, 329, 375, 376, 377, 373, 372, - /* 1010 */ 368, 367, 369, 370, 371, 378, 379, 329, 329, 329, - /* 1020 */ 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, - /* 1030 */ 329, 329, 50, 47, 48, 44, 10, 13, 305, 306, - /* 1040 */ 12, 11, 340, 341, 40, 20, 329, 329, 329, 329, - /* 1050 */ 329, 329, 329, 329, 329, 329, 329, 329, 375, 376, - /* 1060 */ 377, 373, 372, 368, 367, 369, 370, 371, 378, 379, - /* 1070 */ 329, 329, 329, 50, 47, 48, 44, 10, 13, 305, - /* 1080 */ 306, 12, 11, 340, 341, 40, 20, 329, 329, 329, - /* 1090 */ 329, 329, 329, 329, 329, 329, 329, 329, 329, 375, - /* 1100 */ 376, 377, 373, 372, 368, 367, 369, 370, 371, 378, - /* 1110 */ 379, 329, 329, 329, 329, 329, 42, 329, 145, 211, - /* 1120 */ 329, 329, 6, 108, 329, 279, 329, 312, 134, 329, - /* 1130 */ 329, 150, 249, 329, 231, 135, 235, 41, 39, 329, - /* 1140 */ 329, 52, 329, 43, 311, 329, 312, 232, 294, 303, - /* 1150 */ 147, 313, 329, 170, 135, 329, 51, 49, 331, 237, - /* 1160 */ 296, 329, 325, 106, 1, 278, 232, 294, 303, 329, - /* 1170 */ 313, 155, 329, 42, 318, 145, 216, 329, 96, 6, - /* 1180 */ 108, 18, 329, 226, 317, 134, 329, 313, 329, 249, - /* 1190 */ 329, 231, 329, 235, 41, 39, 256, 329, 52, 329, - /* 1200 */ 43, 329, 312, 329, 329, 329, 141, 329, 329, 66, - /* 1210 */ 119, 238, 329, 51, 49, 331, 237, 296, 315, 386, - /* 1220 */ 106, 1, 232, 294, 303, 329, 313, 270, 329, 329, - /* 1230 */ 42, 329, 140, 92, 329, 96, 6, 108, 18, 41, - /* 1240 */ 169, 317, 134, 329, 273, 43, 249, 329, 231, 325, - /* 1250 */ 235, 41, 39, 244, 329, 52, 41, 43, 329, 312, - /* 1260 */ 329, 318, 43, 141, 329, 329, 67, 135, 225, 329, - /* 1270 */ 51, 49, 331, 237, 296, 315, 386, 106, 1, 224, - /* 1280 */ 294, 303, 329, 313, 310, 329, 329, 42, 329, 145, - /* 1290 */ 213, 329, 96, 6, 108, 329, 41, 329, 329, 134, - /* 1300 */ 329, 323, 43, 249, 329, 231, 329, 235, 329, 39, - /* 1310 */ 329, 329, 52, 41, 329, 329, 312, 329, 329, 43, - /* 1320 */ 141, 46, 329, 86, 135, 329, 329, 51, 49, 331, - /* 1330 */ 237, 296, 315, 386, 106, 1, 232, 294, 303, 329, - /* 1340 */ 313, 274, 329, 329, 42, 329, 142, 216, 329, 96, - /* 1350 */ 6, 108, 329, 41, 329, 329, 134, 329, 348, 43, - /* 1360 */ 249, 329, 231, 329, 235, 329, 7, 329, 329, 52, - /* 1370 */ 41, 329, 329, 312, 329, 329, 43, 141, 329, 329, - /* 1380 */ 90, 135, 329, 329, 51, 49, 331, 237, 296, 315, - /* 1390 */ 386, 106, 1, 232, 294, 303, 329, 313, 295, 329, - /* 1400 */ 329, 42, 329, 138, 216, 329, 96, 6, 108, 329, - /* 1410 */ 41, 329, 329, 134, 329, 322, 43, 249, 329, 231, - /* 1420 */ 329, 235, 329, 39, 329, 329, 52, 41, 329, 329, - /* 1430 */ 312, 329, 329, 43, 141, 329, 329, 87, 135, 329, - /* 1440 */ 329, 51, 49, 331, 237, 296, 315, 386, 106, 1, - /* 1450 */ 232, 294, 303, 329, 313, 384, 329, 329, 42, 329, - /* 1460 */ 131, 216, 329, 96, 6, 108, 329, 41, 329, 329, - /* 1470 */ 134, 329, 380, 43, 249, 329, 231, 329, 235, 329, - /* 1480 */ 15, 329, 329, 52, 41, 329, 329, 312, 329, 329, - /* 1490 */ 43, 141, 329, 329, 79, 135, 329, 329, 51, 49, - /* 1500 */ 331, 237, 296, 315, 386, 106, 1, 232, 294, 303, - /* 1510 */ 329, 313, 272, 329, 329, 42, 329, 145, 210, 329, - /* 1520 */ 96, 6, 108, 329, 41, 329, 329, 134, 329, 349, - /* 1530 */ 43, 249, 329, 231, 329, 221, 329, 39, 329, 329, - /* 1540 */ 52, 41, 329, 329, 312, 329, 329, 43, 141, 329, - /* 1550 */ 329, 70, 135, 329, 329, 51, 49, 331, 237, 296, - /* 1560 */ 315, 386, 106, 1, 232, 294, 303, 329, 313, 324, - /* 1570 */ 329, 329, 42, 329, 145, 209, 329, 96, 6, 108, - /* 1580 */ 329, 41, 329, 329, 134, 329, 326, 43, 249, 329, - /* 1590 */ 231, 329, 235, 329, 39, 329, 329, 52, 41, 329, - /* 1600 */ 329, 312, 329, 329, 43, 141, 329, 329, 74, 135, - /* 1610 */ 329, 329, 51, 49, 331, 237, 296, 315, 386, 106, - /* 1620 */ 1, 232, 294, 303, 329, 313, 262, 329, 329, 42, - /* 1630 */ 329, 131, 214, 329, 96, 6, 108, 329, 41, 329, - /* 1640 */ 329, 134, 329, 327, 43, 249, 329, 231, 329, 235, - /* 1650 */ 329, 15, 329, 329, 52, 41, 329, 329, 312, 329, - /* 1660 */ 329, 43, 141, 329, 329, 53, 135, 329, 329, 51, - /* 1670 */ 49, 331, 237, 296, 315, 386, 106, 329, 232, 294, - /* 1680 */ 303, 329, 313, 286, 329, 329, 42, 329, 131, 216, - /* 1690 */ 329, 96, 6, 108, 329, 41, 329, 329, 134, 329, - /* 1700 */ 343, 43, 249, 329, 231, 329, 235, 329, 15, 329, - /* 1710 */ 329, 52, 41, 329, 329, 312, 329, 329, 43, 118, - /* 1720 */ 329, 329, 76, 135, 329, 329, 51, 49, 331, 237, - /* 1730 */ 296, 315, 386, 106, 329, 232, 294, 303, 329, 313, - /* 1740 */ 329, 329, 329, 329, 504, 329, 329, 329, 96, 329, - /* 1750 */ 357, 504, 329, 504, 504, 364, 504, 504, 329, 329, - /* 1760 */ 329, 35, 504, 329, 504, 2, 504, 6, 108, 329, - /* 1770 */ 198, 174, 329, 134, 329, 329, 329, 249, 329, 231, - /* 1780 */ 325, 504, 329, 21, 9, 329, 329, 329, 144, 329, - /* 1790 */ 329, 329, 504, 329, 312, 99, 179, 206, 141, 329, - /* 1800 */ 329, 58, 135, 329, 329, 325, 504, 329, 21, 9, - /* 1810 */ 315, 386, 329, 312, 232, 294, 303, 141, 313, 329, - /* 1820 */ 71, 135, 206, 344, 37, 362, 329, 329, 329, 315, - /* 1830 */ 386, 329, 329, 232, 294, 303, 312, 313, 329, 329, - /* 1840 */ 141, 329, 329, 72, 135, 329, 329, 312, 329, 329, - /* 1850 */ 329, 141, 315, 386, 65, 135, 232, 294, 303, 329, - /* 1860 */ 313, 329, 329, 315, 386, 329, 329, 232, 294, 303, - /* 1870 */ 329, 313, 329, 329, 312, 198, 167, 329, 141, 329, - /* 1880 */ 329, 69, 135, 329, 329, 325, 329, 329, 21, 9, - /* 1890 */ 315, 386, 329, 329, 232, 294, 303, 312, 313, 329, - /* 1900 */ 329, 141, 206, 329, 85, 135, 329, 312, 329, 329, - /* 1910 */ 329, 149, 329, 315, 386, 135, 312, 232, 294, 303, - /* 1920 */ 141, 313, 329, 81, 135, 329, 329, 232, 294, 303, - /* 1930 */ 329, 313, 315, 386, 329, 329, 232, 294, 303, 312, - /* 1940 */ 313, 329, 329, 141, 329, 329, 82, 135, 329, 329, - /* 1950 */ 312, 329, 329, 329, 141, 315, 386, 63, 135, 232, - /* 1960 */ 294, 303, 329, 313, 329, 329, 315, 386, 329, 329, - /* 1970 */ 232, 294, 303, 329, 313, 329, 312, 329, 329, 329, - /* 1980 */ 141, 329, 329, 73, 135, 329, 329, 312, 329, 329, - /* 1990 */ 329, 141, 315, 386, 83, 135, 232, 294, 303, 329, - /* 2000 */ 313, 329, 329, 315, 386, 329, 312, 232, 294, 303, - /* 2010 */ 141, 313, 329, 89, 135, 329, 329, 329, 329, 329, - /* 2020 */ 329, 329, 315, 386, 329, 312, 232, 294, 303, 111, - /* 2030 */ 313, 329, 68, 135, 329, 329, 312, 329, 329, 329, - /* 2040 */ 141, 315, 386, 62, 135, 232, 294, 303, 329, 313, - /* 2050 */ 329, 329, 315, 386, 329, 329, 232, 294, 303, 329, - /* 2060 */ 313, 329, 312, 329, 329, 329, 141, 329, 329, 61, - /* 2070 */ 135, 329, 329, 312, 329, 329, 329, 141, 315, 386, - /* 2080 */ 91, 135, 232, 294, 303, 329, 313, 329, 329, 315, - /* 2090 */ 386, 329, 312, 232, 294, 303, 141, 313, 329, 78, - /* 2100 */ 135, 329, 329, 329, 329, 329, 329, 329, 315, 386, - /* 2110 */ 329, 312, 232, 294, 303, 141, 313, 329, 66, 135, - /* 2120 */ 329, 329, 312, 329, 329, 329, 141, 315, 386, 80, - /* 2130 */ 135, 232, 294, 303, 329, 313, 329, 329, 315, 386, - /* 2140 */ 329, 329, 232, 294, 303, 329, 313, 329, 312, 329, - /* 2150 */ 329, 329, 113, 329, 329, 88, 135, 329, 329, 312, - /* 2160 */ 329, 329, 329, 112, 315, 386, 84, 135, 232, 294, - /* 2170 */ 303, 329, 313, 329, 329, 315, 386, 329, 312, 232, - /* 2180 */ 294, 303, 141, 313, 329, 57, 135, 329, 329, 329, - /* 2190 */ 329, 329, 329, 329, 315, 386, 329, 312, 232, 294, - /* 2200 */ 303, 93, 313, 329, 59, 121, 329, 329, 312, 329, - /* 2210 */ 329, 329, 141, 315, 386, 75, 135, 232, 294, 303, - /* 2220 */ 329, 313, 329, 329, 315, 386, 329, 329, 232, 294, - /* 2230 */ 303, 329, 313, 329, 312, 329, 329, 329, 141, 329, - /* 2240 */ 329, 60, 135, 329, 329, 312, 329, 329, 329, 141, - /* 2250 */ 315, 386, 64, 135, 232, 294, 303, 329, 313, 329, - /* 2260 */ 329, 315, 386, 329, 312, 232, 294, 303, 120, 313, - /* 2270 */ 329, 55, 135, 329, 329, 329, 329, 329, 329, 329, - /* 2280 */ 315, 386, 329, 312, 232, 294, 303, 93, 313, 329, - /* 2290 */ 56, 121, 225, 329, 312, 329, 198, 164, 157, 315, - /* 2300 */ 386, 329, 135, 219, 294, 303, 325, 313, 352, 21, - /* 2310 */ 9, 287, 234, 329, 232, 294, 303, 329, 313, 329, - /* 2320 */ 41, 329, 329, 206, 312, 329, 43, 329, 151, 2, - /* 2330 */ 329, 329, 135, 329, 329, 329, 329, 329, 329, 329, - /* 2340 */ 198, 168, 329, 329, 232, 294, 303, 329, 313, 329, - /* 2350 */ 325, 329, 144, 21, 9, 198, 171, 329, 329, 329, - /* 2360 */ 329, 329, 329, 329, 329, 325, 329, 206, 21, 9, - /* 2370 */ 329, 329, 329, 329, 329, 329, 329, 329, 329, 329, - /* 2380 */ 329, 329, 206, - ); - static public $yy_lookahead = array( - /* 0 */ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, - /* 10 */ 12, 13, 16, 98, 16, 19, 17, 17, 113, 114, - /* 20 */ 22, 23, 16, 97, 18, 19, 28, 112, 29, 29, - /* 30 */ 32, 33, 34, 16, 35, 35, 19, 20, 112, 40, - /* 40 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 50 */ 51, 52, 53, 4, 5, 6, 7, 8, 62, 93, - /* 60 */ 94, 95, 13, 14, 15, 66, 67, 68, 69, 70, - /* 70 */ 71, 72, 73, 74, 75, 76, 77, 1, 85, 62, - /* 80 */ 1, 1, 89, 38, 117, 92, 93, 82, 83, 84, - /* 90 */ 85, 86, 38, 17, 101, 102, 17, 17, 105, 106, - /* 100 */ 107, 86, 109, 88, 59, 29, 61, 1, 29, 30, - /* 110 */ 65, 35, 119, 120, 35, 61, 40, 41, 42, 43, - /* 120 */ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, - /* 130 */ 90, 91, 59, 54, 54, 29, 16, 64, 18, 19, - /* 140 */ 100, 35, 66, 67, 68, 69, 70, 71, 72, 73, - /* 150 */ 74, 75, 76, 77, 1, 85, 36, 117, 1, 89, - /* 160 */ 18, 1, 92, 93, 94, 1, 17, 20, 21, 20, - /* 170 */ 17, 101, 102, 17, 17, 105, 106, 107, 29, 109, - /* 180 */ 38, 17, 29, 31, 35, 29, 29, 38, 35, 90, - /* 190 */ 38, 35, 35, 40, 41, 42, 43, 44, 45, 46, - /* 200 */ 47, 48, 49, 50, 51, 52, 53, 1, 61, 111, - /* 210 */ 61, 113, 114, 61, 54, 90, 117, 118, 90, 66, - /* 220 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - /* 230 */ 77, 103, 104, 27, 110, 29, 112, 1, 84, 85, - /* 240 */ 86, 35, 117, 20, 21, 117, 40, 41, 42, 43, - /* 250 */ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, - /* 260 */ 1, 91, 16, 59, 25, 19, 20, 31, 64, 16, - /* 270 */ 100, 25, 66, 67, 68, 69, 70, 71, 72, 73, - /* 280 */ 74, 75, 76, 77, 61, 85, 85, 117, 29, 37, - /* 290 */ 54, 38, 18, 19, 35, 37, 110, 39, 112, 40, - /* 300 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 310 */ 51, 52, 53, 1, 90, 91, 16, 65, 79, 19, - /* 320 */ 20, 121, 122, 122, 100, 66, 67, 68, 69, 70, - /* 330 */ 71, 72, 73, 74, 75, 76, 77, 63, 24, 91, - /* 340 */ 37, 117, 39, 37, 16, 39, 90, 19, 100, 2, - /* 350 */ 19, 37, 40, 41, 42, 43, 44, 45, 46, 47, - /* 360 */ 48, 49, 50, 51, 52, 53, 1, 90, 91, 16, - /* 370 */ 29, 19, 19, 117, 93, 94, 35, 100, 66, 67, - /* 380 */ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - /* 390 */ 62, 79, 96, 62, 117, 17, 16, 18, 19, 19, - /* 400 */ 93, 94, 19, 25, 39, 40, 41, 42, 43, 44, - /* 410 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 1, - /* 420 */ 91, 91, 90, 16, 16, 16, 19, 19, 19, 100, - /* 430 */ 100, 66, 67, 68, 69, 70, 71, 72, 73, 74, - /* 440 */ 75, 76, 77, 108, 29, 91, 117, 117, 30, 117, - /* 450 */ 115, 29, 113, 114, 100, 20, 96, 35, 40, 41, - /* 460 */ 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - /* 470 */ 52, 53, 91, 1, 118, 99, 18, 26, 110, 20, - /* 480 */ 2, 100, 97, 1, 66, 67, 68, 69, 70, 71, - /* 490 */ 72, 73, 74, 75, 76, 77, 1, 112, 117, 17, - /* 500 */ 1, 2, 85, 99, 19, 110, 89, 10, 16, 19, - /* 510 */ 93, 19, 17, 16, 21, 99, 17, 38, 59, 22, - /* 520 */ 23, 29, 105, 106, 107, 28, 109, 35, 18, 32, - /* 530 */ 33, 34, 2, 1, 65, 40, 41, 42, 43, 44, - /* 540 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 17, - /* 550 */ 20, 91, 59, 21, 36, 19, 19, 64, 19, 25, - /* 560 */ 100, 66, 67, 68, 69, 70, 71, 72, 73, 74, - /* 570 */ 75, 76, 77, 1, 85, 78, 79, 80, 89, 85, - /* 580 */ 19, 92, 93, 89, 59, 63, 21, 93, 19, 17, - /* 590 */ 101, 102, 17, 1, 105, 106, 107, 18, 109, 105, - /* 600 */ 106, 107, 18, 109, 29, 116, 36, 63, 19, 17, - /* 610 */ 35, 1, 40, 41, 42, 43, 44, 45, 46, 47, - /* 620 */ 48, 49, 50, 51, 52, 53, 61, 17, 108, 38, - /* 630 */ 2, 19, 39, 55, 21, 115, 18, 97, 66, 67, - /* 640 */ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - /* 650 */ 1, 85, 112, 1, 100, 89, 85, 115, 92, 93, - /* 660 */ 89, 110, 112, 111, 93, 91, 17, 101, 102, 17, - /* 670 */ 97, 105, 106, 107, 100, 109, 105, 106, 107, 14, - /* 680 */ 109, 29, 116, 87, 123, 112, 112, 35, 123, 40, - /* 690 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 700 */ 51, 52, 53, 1, 2, 110, 54, 110, 114, 110, - /* 710 */ 123, 123, 97, 97, 97, 66, 67, 68, 69, 70, - /* 720 */ 71, 72, 73, 74, 75, 76, 77, 112, 112, 112, - /* 730 */ 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, - /* 740 */ 123, 123, 40, 41, 42, 43, 44, 45, 46, 47, - /* 750 */ 48, 49, 50, 51, 52, 53, 1, 123, 123, 123, - /* 760 */ 123, 123, 123, 123, 123, 97, 97, 97, 66, 67, - /* 770 */ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - /* 780 */ 112, 112, 112, 123, 123, 123, 123, 123, 123, 123, - /* 790 */ 123, 123, 123, 123, 39, 40, 41, 42, 43, 44, - /* 800 */ 45, 46, 47, 48, 49, 50, 51, 52, 53, 123, - /* 810 */ 1, 123, 123, 123, 123, 123, 123, 123, 123, 123, - /* 820 */ 123, 66, 67, 68, 69, 70, 71, 72, 73, 74, - /* 830 */ 75, 76, 77, 24, 123, 123, 123, 123, 123, 123, - /* 840 */ 123, 123, 123, 123, 123, 123, 123, 123, 123, 40, - /* 850 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 860 */ 51, 52, 53, 1, 123, 123, 123, 123, 123, 123, - /* 870 */ 123, 123, 123, 123, 123, 66, 67, 68, 69, 70, - /* 880 */ 71, 72, 73, 74, 75, 76, 77, 123, 123, 123, - /* 890 */ 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, - /* 900 */ 123, 123, 40, 41, 42, 43, 44, 45, 46, 47, - /* 910 */ 48, 49, 50, 51, 52, 53, 123, 123, 123, 123, - /* 920 */ 123, 123, 123, 123, 123, 123, 123, 65, 66, 67, - /* 930 */ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - /* 940 */ 1, 85, 123, 1, 123, 89, 85, 123, 92, 93, - /* 950 */ 89, 123, 123, 123, 93, 91, 17, 101, 102, 17, - /* 960 */ 123, 105, 106, 107, 100, 109, 105, 106, 107, 123, - /* 970 */ 109, 29, 116, 123, 123, 123, 112, 35, 123, 40, - /* 980 */ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - /* 990 */ 51, 52, 53, 1, 123, 123, 54, 123, 123, 123, - /* 1000 */ 123, 123, 123, 123, 123, 66, 67, 68, 69, 70, - /* 1010 */ 71, 72, 73, 74, 75, 76, 77, 123, 123, 123, - /* 1020 */ 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, - /* 1030 */ 123, 123, 40, 41, 42, 43, 44, 45, 46, 47, - /* 1040 */ 48, 49, 50, 51, 52, 53, 123, 123, 123, 123, - /* 1050 */ 123, 123, 123, 123, 123, 123, 123, 123, 66, 67, - /* 1060 */ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - /* 1070 */ 123, 123, 123, 40, 41, 42, 43, 44, 45, 46, - /* 1080 */ 47, 48, 49, 50, 51, 52, 53, 123, 123, 123, - /* 1090 */ 123, 123, 123, 123, 123, 123, 123, 123, 123, 66, - /* 1100 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - /* 1110 */ 77, 123, 123, 123, 123, 123, 16, 123, 18, 19, - /* 1120 */ 123, 123, 22, 23, 123, 17, 123, 85, 28, 123, - /* 1130 */ 123, 89, 32, 33, 34, 93, 36, 29, 38, 123, - /* 1140 */ 123, 41, 123, 35, 102, 123, 85, 105, 106, 107, - /* 1150 */ 89, 109, 123, 91, 93, 123, 56, 57, 58, 59, - /* 1160 */ 60, 123, 100, 63, 64, 65, 105, 106, 107, 123, - /* 1170 */ 109, 93, 123, 16, 112, 18, 19, 123, 78, 22, - /* 1180 */ 23, 16, 123, 105, 19, 28, 123, 109, 123, 32, - /* 1190 */ 33, 34, 123, 36, 29, 38, 31, 123, 41, 123, - /* 1200 */ 35, 123, 85, 123, 123, 123, 89, 123, 123, 92, - /* 1210 */ 93, 94, 123, 56, 57, 58, 59, 60, 101, 102, - /* 1220 */ 63, 64, 105, 106, 107, 123, 109, 17, 123, 123, - /* 1230 */ 16, 123, 18, 19, 123, 78, 22, 23, 16, 29, - /* 1240 */ 91, 19, 28, 123, 17, 35, 32, 33, 34, 100, - /* 1250 */ 36, 29, 38, 31, 123, 41, 29, 35, 123, 85, - /* 1260 */ 123, 112, 35, 89, 123, 123, 92, 93, 1, 123, - /* 1270 */ 56, 57, 58, 59, 60, 101, 102, 63, 64, 105, - /* 1280 */ 106, 107, 123, 109, 17, 123, 123, 16, 123, 18, - /* 1290 */ 19, 123, 78, 22, 23, 123, 29, 123, 123, 28, - /* 1300 */ 123, 17, 35, 32, 33, 34, 123, 36, 123, 38, - /* 1310 */ 123, 123, 41, 29, 123, 123, 85, 123, 123, 35, - /* 1320 */ 89, 54, 123, 92, 93, 123, 123, 56, 57, 58, - /* 1330 */ 59, 60, 101, 102, 63, 64, 105, 106, 107, 123, - /* 1340 */ 109, 17, 123, 123, 16, 123, 18, 19, 123, 78, - /* 1350 */ 22, 23, 123, 29, 123, 123, 28, 123, 17, 35, - /* 1360 */ 32, 33, 34, 123, 36, 123, 38, 123, 123, 41, - /* 1370 */ 29, 123, 123, 85, 123, 123, 35, 89, 123, 123, - /* 1380 */ 92, 93, 123, 123, 56, 57, 58, 59, 60, 101, - /* 1390 */ 102, 63, 64, 105, 106, 107, 123, 109, 17, 123, - /* 1400 */ 123, 16, 123, 18, 19, 123, 78, 22, 23, 123, - /* 1410 */ 29, 123, 123, 28, 123, 17, 35, 32, 33, 34, - /* 1420 */ 123, 36, 123, 38, 123, 123, 41, 29, 123, 123, - /* 1430 */ 85, 123, 123, 35, 89, 123, 123, 92, 93, 123, - /* 1440 */ 123, 56, 57, 58, 59, 60, 101, 102, 63, 64, - /* 1450 */ 105, 106, 107, 123, 109, 17, 123, 123, 16, 123, - /* 1460 */ 18, 19, 123, 78, 22, 23, 123, 29, 123, 123, - /* 1470 */ 28, 123, 17, 35, 32, 33, 34, 123, 36, 123, - /* 1480 */ 38, 123, 123, 41, 29, 123, 123, 85, 123, 123, - /* 1490 */ 35, 89, 123, 123, 92, 93, 123, 123, 56, 57, - /* 1500 */ 58, 59, 60, 101, 102, 63, 64, 105, 106, 107, - /* 1510 */ 123, 109, 17, 123, 123, 16, 123, 18, 19, 123, - /* 1520 */ 78, 22, 23, 123, 29, 123, 123, 28, 123, 17, - /* 1530 */ 35, 32, 33, 34, 123, 36, 123, 38, 123, 123, - /* 1540 */ 41, 29, 123, 123, 85, 123, 123, 35, 89, 123, - /* 1550 */ 123, 92, 93, 123, 123, 56, 57, 58, 59, 60, - /* 1560 */ 101, 102, 63, 64, 105, 106, 107, 123, 109, 17, - /* 1570 */ 123, 123, 16, 123, 18, 19, 123, 78, 22, 23, - /* 1580 */ 123, 29, 123, 123, 28, 123, 17, 35, 32, 33, - /* 1590 */ 34, 123, 36, 123, 38, 123, 123, 41, 29, 123, - /* 1600 */ 123, 85, 123, 123, 35, 89, 123, 123, 92, 93, - /* 1610 */ 123, 123, 56, 57, 58, 59, 60, 101, 102, 63, - /* 1620 */ 64, 105, 106, 107, 123, 109, 17, 123, 123, 16, - /* 1630 */ 123, 18, 19, 123, 78, 22, 23, 123, 29, 123, - /* 1640 */ 123, 28, 123, 17, 35, 32, 33, 34, 123, 36, - /* 1650 */ 123, 38, 123, 123, 41, 29, 123, 123, 85, 123, - /* 1660 */ 123, 35, 89, 123, 123, 92, 93, 123, 123, 56, - /* 1670 */ 57, 58, 59, 60, 101, 102, 63, 123, 105, 106, - /* 1680 */ 107, 123, 109, 17, 123, 123, 16, 123, 18, 19, - /* 1690 */ 123, 78, 22, 23, 123, 29, 123, 123, 28, 123, - /* 1700 */ 17, 35, 32, 33, 34, 123, 36, 123, 38, 123, - /* 1710 */ 123, 41, 29, 123, 123, 85, 123, 123, 35, 89, - /* 1720 */ 123, 123, 92, 93, 123, 123, 56, 57, 58, 59, - /* 1730 */ 60, 101, 102, 63, 123, 105, 106, 107, 123, 109, - /* 1740 */ 123, 123, 123, 123, 17, 123, 123, 123, 78, 123, - /* 1750 */ 120, 24, 123, 26, 27, 10, 29, 30, 123, 123, - /* 1760 */ 123, 16, 35, 123, 37, 38, 39, 22, 23, 123, - /* 1770 */ 90, 91, 123, 28, 123, 123, 123, 32, 33, 34, - /* 1780 */ 100, 54, 123, 103, 104, 123, 123, 123, 61, 123, - /* 1790 */ 123, 123, 65, 123, 85, 90, 91, 117, 89, 123, - /* 1800 */ 123, 92, 93, 123, 123, 100, 79, 123, 103, 104, - /* 1810 */ 101, 102, 123, 85, 105, 106, 107, 89, 109, 123, - /* 1820 */ 92, 93, 117, 78, 79, 80, 123, 123, 123, 101, - /* 1830 */ 102, 123, 123, 105, 106, 107, 85, 109, 123, 123, - /* 1840 */ 89, 123, 123, 92, 93, 123, 123, 85, 123, 123, - /* 1850 */ 123, 89, 101, 102, 92, 93, 105, 106, 107, 123, - /* 1860 */ 109, 123, 123, 101, 102, 123, 123, 105, 106, 107, - /* 1870 */ 123, 109, 123, 123, 85, 90, 91, 123, 89, 123, - /* 1880 */ 123, 92, 93, 123, 123, 100, 123, 123, 103, 104, - /* 1890 */ 101, 102, 123, 123, 105, 106, 107, 85, 109, 123, - /* 1900 */ 123, 89, 117, 123, 92, 93, 123, 85, 123, 123, - /* 1910 */ 123, 89, 123, 101, 102, 93, 85, 105, 106, 107, - /* 1920 */ 89, 109, 123, 92, 93, 123, 123, 105, 106, 107, - /* 1930 */ 123, 109, 101, 102, 123, 123, 105, 106, 107, 85, - /* 1940 */ 109, 123, 123, 89, 123, 123, 92, 93, 123, 123, - /* 1950 */ 85, 123, 123, 123, 89, 101, 102, 92, 93, 105, - /* 1960 */ 106, 107, 123, 109, 123, 123, 101, 102, 123, 123, - /* 1970 */ 105, 106, 107, 123, 109, 123, 85, 123, 123, 123, - /* 1980 */ 89, 123, 123, 92, 93, 123, 123, 85, 123, 123, - /* 1990 */ 123, 89, 101, 102, 92, 93, 105, 106, 107, 123, - /* 2000 */ 109, 123, 123, 101, 102, 123, 85, 105, 106, 107, - /* 2010 */ 89, 109, 123, 92, 93, 123, 123, 123, 123, 123, - /* 2020 */ 123, 123, 101, 102, 123, 85, 105, 106, 107, 89, - /* 2030 */ 109, 123, 92, 93, 123, 123, 85, 123, 123, 123, - /* 2040 */ 89, 101, 102, 92, 93, 105, 106, 107, 123, 109, - /* 2050 */ 123, 123, 101, 102, 123, 123, 105, 106, 107, 123, - /* 2060 */ 109, 123, 85, 123, 123, 123, 89, 123, 123, 92, - /* 2070 */ 93, 123, 123, 85, 123, 123, 123, 89, 101, 102, - /* 2080 */ 92, 93, 105, 106, 107, 123, 109, 123, 123, 101, - /* 2090 */ 102, 123, 85, 105, 106, 107, 89, 109, 123, 92, - /* 2100 */ 93, 123, 123, 123, 123, 123, 123, 123, 101, 102, - /* 2110 */ 123, 85, 105, 106, 107, 89, 109, 123, 92, 93, - /* 2120 */ 123, 123, 85, 123, 123, 123, 89, 101, 102, 92, - /* 2130 */ 93, 105, 106, 107, 123, 109, 123, 123, 101, 102, - /* 2140 */ 123, 123, 105, 106, 107, 123, 109, 123, 85, 123, - /* 2150 */ 123, 123, 89, 123, 123, 92, 93, 123, 123, 85, - /* 2160 */ 123, 123, 123, 89, 101, 102, 92, 93, 105, 106, - /* 2170 */ 107, 123, 109, 123, 123, 101, 102, 123, 85, 105, - /* 2180 */ 106, 107, 89, 109, 123, 92, 93, 123, 123, 123, - /* 2190 */ 123, 123, 123, 123, 101, 102, 123, 85, 105, 106, - /* 2200 */ 107, 89, 109, 123, 92, 93, 123, 123, 85, 123, - /* 2210 */ 123, 123, 89, 101, 102, 92, 93, 105, 106, 107, - /* 2220 */ 123, 109, 123, 123, 101, 102, 123, 123, 105, 106, - /* 2230 */ 107, 123, 109, 123, 85, 123, 123, 123, 89, 123, - /* 2240 */ 123, 92, 93, 123, 123, 85, 123, 123, 123, 89, - /* 2250 */ 101, 102, 92, 93, 105, 106, 107, 123, 109, 123, - /* 2260 */ 123, 101, 102, 123, 85, 105, 106, 107, 89, 109, - /* 2270 */ 123, 92, 93, 123, 123, 123, 123, 123, 123, 123, - /* 2280 */ 101, 102, 123, 85, 105, 106, 107, 89, 109, 123, - /* 2290 */ 92, 93, 1, 123, 85, 123, 90, 91, 89, 101, - /* 2300 */ 102, 123, 93, 105, 106, 107, 100, 109, 17, 103, - /* 2310 */ 104, 102, 21, 123, 105, 106, 107, 123, 109, 123, - /* 2320 */ 29, 123, 123, 117, 85, 123, 35, 123, 89, 38, - /* 2330 */ 123, 123, 93, 123, 123, 123, 123, 123, 123, 123, - /* 2340 */ 90, 91, 123, 123, 105, 106, 107, 123, 109, 123, - /* 2350 */ 100, 123, 61, 103, 104, 90, 91, 123, 123, 123, - /* 2360 */ 123, 123, 123, 123, 123, 100, 123, 117, 103, 104, - /* 2370 */ 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, - /* 2380 */ 123, 123, 117, -); - const YY_SHIFT_USE_DFLT = -5; - const YY_SHIFT_MAX = 256; - static public $yy_shift_ofst = array( - /* 0 */ -2, 1271, 1157, 1157, 1271, 1157, 1328, 1328, 1100, 1157, - /* 10 */ 1157, 1157, 1157, 1157, 1157, 1157, 1499, 1157, 1157, 1157, - /* 20 */ 1157, 1157, 1556, 1157, 1157, 1157, 1157, 1157, 1157, 1157, - /* 30 */ 1157, 1157, 1157, 1157, 1385, 1214, 1157, 1157, 1157, 1157, - /* 40 */ 1157, 1499, 1214, 1157, 1442, 1442, 1613, 1670, 1670, 1670, - /* 50 */ 1670, 1670, 1670, 206, 153, 76, -1, 259, 259, 259, - /* 60 */ 809, 939, 755, 862, 702, 649, 365, 312, 418, 495, - /* 70 */ 572, 992, 992, 992, 992, 992, 992, 992, 992, 992, - /* 80 */ 992, 992, 992, 992, 992, 992, 992, 992, 992, 992, - /* 90 */ 1033, 1033, 2291, 1267, 106, -2, 1745, 1222, 1165, 157, - /* 100 */ 157, 492, 492, 499, 106, 106, 274, 493, 142, 497, - /* 110 */ 49, 79, 942, 652, 246, 17, 328, 300, 236, 223, - /* 120 */ 80, 147, 532, 1227, 353, 353, 353, 422, 407, 142, - /* 130 */ 353, 353, 610, 353, 341, 565, 379, 353, 380, 142, - /* 140 */ 408, 160, 409, 353, 379, 409, 353, 472, 613, 472, - /* 150 */ 472, 472, 472, 472, 472, 613, 472, -5, 1284, 1210, - /* 160 */ -4, 1108, 0, 156, 575, 1683, 1552, 1512, 1569, 1609, - /* 170 */ 1666, 1324, 1626, 6, 1495, 1398, 1381, 1341, 1438, 1455, - /* 180 */ 73, 482, 73, 204, 592, 204, 204, 204, 164, 204, - /* 190 */ 253, 204, 204, 665, 613, 613, 613, 479, 472, 347, - /* 200 */ 415, 415, 472, 347, -5, -5, -5, -5, -5, 1727, - /* 210 */ 149, 45, 120, 152, 54, 530, 54, 314, 252, 378, - /* 220 */ 306, 459, 258, 303, 239, 331, 522, 536, 469, 537, - /* 230 */ 539, 569, 534, 544, 561, 525, 518, 570, 593, 612, - /* 240 */ 578, 628, 591, 579, 510, 584, 589, 458, 435, 352, - /* 250 */ 485, 478, 451, 479, 490, 383, 618, -); - const YY_REDUCE_USE_DFLT = -96; - const YY_REDUCE_MAX = 208; - static public $yy_reduce_ofst = array( - /* 0 */ 5, -7, 489, 566, 1630, 856, 70, 1117, 1865, 1854, - /* 10 */ 1831, 1812, 1891, 1902, 1977, 1951, 1940, 1921, 1789, 1762, - /* 20 */ 1402, 1345, 1288, 1231, 1459, 1516, 1751, 1728, 1709, 1573, - /* 30 */ 1988, 2007, 2123, 2149, 2160, 2198, 2179, 1174, 2093, 2026, - /* 40 */ 2037, 2063, 2112, 2074, 1042, 2209, 1822, 2239, 1061, 861, - /* 50 */ 494, 417, 571, 2265, 2250, 2206, 1705, 1785, 1680, 1705, - /* 60 */ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - /* 70 */ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - /* 80 */ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - /* 90 */ 128, 128, 277, 224, 40, 154, 200, 864, 1062, 170, - /* 100 */ 330, 574, 1149, 99, 329, 381, 1078, 98, -34, 201, - /* 110 */ 15, 125, 125, 125, -85, 124, 124, 124, 125, -95, - /* 120 */ 125, -95, 332, 354, 573, 616, 617, 460, 615, 307, - /* 130 */ 385, 540, 256, -74, 248, -95, 335, 668, 540, 281, - /* 140 */ 540, 125, 670, 669, 520, 540, 186, 125, 339, 125, - /* 150 */ 125, 125, 125, 125, 125, -95, 125, 125, 554, 554, - /* 160 */ 550, 554, 554, 554, 554, 554, 554, 554, 554, 554, - /* 170 */ 554, 554, 554, 542, 554, 554, 554, 554, 554, 554, - /* 180 */ 595, -33, 551, 552, -33, 552, 552, 552, -33, 552, - /* 190 */ 597, 552, 552, 596, 594, 594, 594, 599, -33, 356, - /* 200 */ 296, 360, -33, 356, 395, 404, 376, 416, 368, -); - static public $yyExpectedTokens = array( - /* 0 */ array(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 22, 23, 28, 32, 33, 34, ), - /* 1 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 2 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 3 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 4 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 5 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 6 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 7 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 8 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 65, 78, ), - /* 9 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 10 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 11 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 12 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 13 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 14 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 15 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 16 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 17 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 18 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 19 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 20 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 21 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 22 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 23 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 24 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 25 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 26 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 27 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 28 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 29 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 30 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 31 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 32 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 33 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 34 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 35 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 36 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 37 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 38 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 39 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 40 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 41 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 42 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 43 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 44 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 45 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 64, 78, ), - /* 46 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 47 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 48 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 49 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 50 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 51 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 52 */ array(16, 18, 19, 22, 23, 28, 32, 33, 34, 36, 38, 41, 56, 57, 58, 59, 60, 63, 78, ), - /* 53 */ array(1, 27, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 54 */ array(1, 17, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 55 */ array(1, 17, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 56 */ array(1, 17, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 57 */ array(1, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 58 */ array(1, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 59 */ array(1, 29, 35, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 60 */ array(1, 24, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 61 */ array(1, 17, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 62 */ array(1, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 63 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 64 */ array(1, 2, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 65 */ array(1, 17, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 66 */ array(1, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 67 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79, ), - /* 68 */ array(1, 30, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 69 */ array(1, 17, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 70 */ array(1, 17, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 71 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 72 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 73 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 74 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 75 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 76 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 77 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 78 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 79 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 80 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 81 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 82 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 83 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 84 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 85 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 86 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 87 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 88 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 89 */ array(1, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 90 */ array(40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 91 */ array(40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, ), - /* 92 */ array(1, 17, 21, 29, 35, 38, 61, ), - /* 93 */ array(1, 17, 29, 35, 54, ), - /* 94 */ array(1, 29, 35, ), - /* 95 */ array(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 22, 23, 28, 32, 33, 34, ), - /* 96 */ array(10, 16, 22, 23, 28, 32, 33, 34, 78, 79, 80, ), - /* 97 */ array(16, 19, 29, 31, 35, ), - /* 98 */ array(16, 19, 29, 31, 35, ), - /* 99 */ array(1, 17, 29, 35, ), - /* 100 */ array(1, 17, 29, 35, ), - /* 101 */ array(16, 19, 29, 35, ), - /* 102 */ array(16, 19, 29, 35, ), - /* 103 */ array(1, 2, 17, ), - /* 104 */ array(1, 29, 35, ), - /* 105 */ array(1, 29, 35, ), - /* 106 */ array(18, 19, 63, ), - /* 107 */ array(21, 59, 64, ), - /* 108 */ array(18, 38, ), - /* 109 */ array(10, 16, 22, 23, 28, 32, 33, 34, 78, 79, 80, ), - /* 110 */ array(4, 5, 6, 7, 8, 13, 14, 15, ), - /* 111 */ array(1, 17, 29, 30, 35, 54, ), - /* 112 */ array(1, 17, 29, 35, 54, ), - /* 113 */ array(1, 17, 29, 35, 54, ), - /* 114 */ array(16, 19, 20, 25, ), - /* 115 */ array(16, 19, 20, 62, ), - /* 116 */ array(16, 19, 62, ), - /* 117 */ array(16, 19, 20, ), - /* 118 */ array(1, 31, 54, ), - /* 119 */ array(20, 21, 61, ), - /* 120 */ array(1, 17, 54, ), - /* 121 */ array(20, 21, 61, ), - /* 122 */ array(1, 17, 21, ), - /* 123 */ array(17, 29, 35, ), - /* 124 */ array(16, 19, ), - /* 125 */ array(16, 19, ), - /* 126 */ array(16, 19, ), - /* 127 */ array(29, 35, ), - /* 128 */ array(16, 19, ), - /* 129 */ array(18, 38, ), - /* 130 */ array(16, 19, ), - /* 131 */ array(16, 19, ), - /* 132 */ array(1, 17, ), - /* 133 */ array(16, 19, ), - /* 134 */ array(29, 35, ), - /* 135 */ array(21, 61, ), - /* 136 */ array(18, 19, ), - /* 137 */ array(16, 19, ), - /* 138 */ array(16, 19, ), - /* 139 */ array(18, 38, ), - /* 140 */ array(16, 19, ), - /* 141 */ array(1, 54, ), - /* 142 */ array(16, 19, ), - /* 143 */ array(16, 19, ), - /* 144 */ array(18, 19, ), - /* 145 */ array(16, 19, ), - /* 146 */ array(16, 19, ), - /* 147 */ array(1, ), - /* 148 */ array(21, ), - /* 149 */ array(1, ), - /* 150 */ array(1, ), - /* 151 */ array(1, ), - /* 152 */ array(1, ), - /* 153 */ array(1, ), - /* 154 */ array(1, ), - /* 155 */ array(21, ), - /* 156 */ array(1, ), - /* 157 */ array(), - /* 158 */ array(17, 29, 35, ), - /* 159 */ array(17, 29, 35, ), - /* 160 */ array(16, 19, 62, ), - /* 161 */ array(17, 29, 35, ), - /* 162 */ array(17, 29, 35, ), - /* 163 */ array(17, 29, 35, ), - /* 164 */ array(17, 29, 35, ), - /* 165 */ array(17, 29, 35, ), - /* 166 */ array(17, 29, 35, ), - /* 167 */ array(17, 29, 35, ), - /* 168 */ array(17, 29, 35, ), - /* 169 */ array(17, 29, 35, ), - /* 170 */ array(17, 29, 35, ), - /* 171 */ array(17, 29, 35, ), - /* 172 */ array(17, 29, 35, ), - /* 173 */ array(16, 18, 19, ), - /* 174 */ array(17, 29, 35, ), - /* 175 */ array(17, 29, 35, ), - /* 176 */ array(17, 29, 35, ), - /* 177 */ array(17, 29, 35, ), - /* 178 */ array(17, 29, 35, ), - /* 179 */ array(17, 29, 35, ), - /* 180 */ array(59, 64, ), - /* 181 */ array(1, 17, ), - /* 182 */ array(59, 64, ), - /* 183 */ array(59, 64, ), - /* 184 */ array(1, 17, ), - /* 185 */ array(59, 64, ), - /* 186 */ array(59, 64, ), - /* 187 */ array(59, 64, ), - /* 188 */ array(1, 17, ), - /* 189 */ array(59, 64, ), - /* 190 */ array(16, 38, ), - /* 191 */ array(59, 64, ), - /* 192 */ array(59, 64, ), - /* 193 */ array(14, ), - /* 194 */ array(21, ), - /* 195 */ array(21, ), - /* 196 */ array(21, ), - /* 197 */ array(38, ), - /* 198 */ array(1, ), - /* 199 */ array(2, ), - /* 200 */ array(29, ), - /* 201 */ array(29, ), - /* 202 */ array(1, ), - /* 203 */ array(2, ), - /* 204 */ array(), - /* 205 */ array(), - /* 206 */ array(), - /* 207 */ array(), - /* 208 */ array(), - /* 209 */ array(17, 24, 26, 27, 29, 30, 35, 37, 38, 39, 54, 61, 65, 79, ), - /* 210 */ array(17, 20, 29, 35, 38, 61, ), - /* 211 */ array(38, 59, 61, 65, ), - /* 212 */ array(16, 18, 19, 36, ), - /* 213 */ array(31, 38, 61, ), - /* 214 */ array(38, 61, ), - /* 215 */ array(2, 20, ), - /* 216 */ array(38, 61, ), - /* 217 */ array(24, 37, ), - /* 218 */ array(37, 65, ), - /* 219 */ array(17, 25, ), - /* 220 */ array(37, 39, ), - /* 221 */ array(20, 59, ), - /* 222 */ array(37, 39, ), - /* 223 */ array(37, 39, ), - /* 224 */ array(25, 79, ), - /* 225 */ array(19, 62, ), - /* 226 */ array(63, ), - /* 227 */ array(19, ), - /* 228 */ array(65, ), - /* 229 */ array(19, ), - /* 230 */ array(19, ), - /* 231 */ array(19, ), - /* 232 */ array(25, ), - /* 233 */ array(63, ), - /* 234 */ array(19, ), - /* 235 */ array(59, ), - /* 236 */ array(36, ), - /* 237 */ array(36, ), - /* 238 */ array(39, ), - /* 239 */ array(19, ), - /* 240 */ array(55, ), - /* 241 */ array(2, ), - /* 242 */ array(38, ), - /* 243 */ array(18, ), - /* 244 */ array(18, ), - /* 245 */ array(18, ), - /* 246 */ array(19, ), - /* 247 */ array(18, ), - /* 248 */ array(20, ), - /* 249 */ array(19, ), - /* 250 */ array(19, ), - /* 251 */ array(2, ), - /* 252 */ array(26, ), - /* 253 */ array(38, ), - /* 254 */ array(19, ), - /* 255 */ array(19, ), - /* 256 */ array(18, ), - /* 257 */ array(), - /* 258 */ array(), - /* 259 */ array(), - /* 260 */ array(), - /* 261 */ array(), - /* 262 */ array(), - /* 263 */ array(), - /* 264 */ array(), - /* 265 */ array(), - /* 266 */ array(), - /* 267 */ array(), - /* 268 */ array(), - /* 269 */ array(), - /* 270 */ array(), - /* 271 */ array(), - /* 272 */ array(), - /* 273 */ array(), - /* 274 */ array(), - /* 275 */ array(), - /* 276 */ array(), - /* 277 */ array(), - /* 278 */ array(), - /* 279 */ array(), - /* 280 */ array(), - /* 281 */ array(), - /* 282 */ array(), - /* 283 */ array(), - /* 284 */ array(), - /* 285 */ array(), - /* 286 */ array(), - /* 287 */ array(), - /* 288 */ array(), - /* 289 */ array(), - /* 290 */ array(), - /* 291 */ array(), - /* 292 */ array(), - /* 293 */ array(), - /* 294 */ array(), - /* 295 */ array(), - /* 296 */ array(), - /* 297 */ array(), - /* 298 */ array(), - /* 299 */ array(), - /* 300 */ array(), - /* 301 */ array(), - /* 302 */ array(), - /* 303 */ array(), - /* 304 */ array(), - /* 305 */ array(), - /* 306 */ array(), - /* 307 */ array(), - /* 308 */ array(), - /* 309 */ array(), - /* 310 */ array(), - /* 311 */ array(), - /* 312 */ array(), - /* 313 */ array(), - /* 314 */ array(), - /* 315 */ array(), - /* 316 */ array(), - /* 317 */ array(), - /* 318 */ array(), - /* 319 */ array(), - /* 320 */ array(), - /* 321 */ array(), - /* 322 */ array(), - /* 323 */ array(), - /* 324 */ array(), - /* 325 */ array(), - /* 326 */ array(), - /* 327 */ array(), - /* 328 */ array(), - /* 329 */ array(), - /* 330 */ array(), - /* 331 */ array(), - /* 332 */ array(), - /* 333 */ array(), - /* 334 */ array(), - /* 335 */ array(), - /* 336 */ array(), - /* 337 */ array(), - /* 338 */ array(), - /* 339 */ array(), - /* 340 */ array(), - /* 341 */ array(), - /* 342 */ array(), - /* 343 */ array(), - /* 344 */ array(), - /* 345 */ array(), - /* 346 */ array(), - /* 347 */ array(), - /* 348 */ array(), - /* 349 */ array(), - /* 350 */ array(), - /* 351 */ array(), - /* 352 */ array(), - /* 353 */ array(), - /* 354 */ array(), - /* 355 */ array(), - /* 356 */ array(), - /* 357 */ array(), - /* 358 */ array(), - /* 359 */ array(), - /* 360 */ array(), - /* 361 */ array(), - /* 362 */ array(), - /* 363 */ array(), - /* 364 */ array(), - /* 365 */ array(), - /* 366 */ array(), - /* 367 */ array(), - /* 368 */ array(), - /* 369 */ array(), - /* 370 */ array(), - /* 371 */ array(), - /* 372 */ array(), - /* 373 */ array(), - /* 374 */ array(), - /* 375 */ array(), - /* 376 */ array(), - /* 377 */ array(), - /* 378 */ array(), - /* 379 */ array(), - /* 380 */ array(), - /* 381 */ array(), - /* 382 */ array(), - /* 383 */ array(), - /* 384 */ array(), - /* 385 */ array(), - /* 386 */ array(), - /* 387 */ array(), - /* 388 */ array(), - /* 389 */ array(), - /* 390 */ array(), -); - static public $yy_default = array( - /* 0 */ 394, 578, 549, 549, 595, 549, 595, 595, 595, 595, - /* 10 */ 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, - /* 20 */ 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, - /* 30 */ 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, - /* 40 */ 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, - /* 50 */ 595, 595, 595, 455, 595, 595, 595, 455, 455, 455, - /* 60 */ 595, 595, 595, 595, 595, 595, 595, 595, 460, 595, - /* 70 */ 595, 466, 465, 484, 547, 579, 581, 548, 580, 489, - /* 80 */ 488, 480, 479, 481, 457, 485, 462, 476, 460, 437, - /* 90 */ 492, 493, 504, 468, 455, 391, 595, 455, 455, 475, - /* 100 */ 512, 455, 455, 595, 455, 455, 595, 561, 595, 595, - /* 110 */ 595, 468, 468, 468, 595, 522, 522, 522, 468, 513, - /* 120 */ 468, 513, 595, 595, 595, 595, 595, 455, 595, 595, - /* 130 */ 595, 595, 595, 595, 455, 513, 595, 595, 595, 595, - /* 140 */ 595, 468, 595, 595, 595, 595, 522, 473, 558, 491, - /* 150 */ 478, 472, 497, 495, 496, 513, 471, 556, 595, 595, - /* 160 */ 523, 595, 595, 595, 595, 595, 595, 595, 595, 595, - /* 170 */ 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, - /* 180 */ 516, 595, 518, 519, 595, 520, 540, 542, 595, 539, - /* 190 */ 522, 517, 541, 410, 562, 559, 536, 522, 475, 551, - /* 200 */ 594, 594, 512, 550, 522, 555, 555, 555, 522, 470, - /* 210 */ 504, 504, 595, 504, 490, 534, 504, 595, 595, 494, - /* 220 */ 595, 500, 595, 595, 494, 595, 595, 595, 595, 595, - /* 230 */ 595, 595, 494, 595, 595, 500, 502, 595, 595, 595, - /* 240 */ 506, 534, 560, 595, 595, 595, 595, 595, 595, 595, - /* 250 */ 595, 534, 463, 534, 595, 595, 595, 401, 543, 400, - /* 260 */ 402, 546, 445, 398, 397, 393, 464, 438, 593, 467, - /* 270 */ 435, 395, 440, 434, 439, 396, 399, 456, 531, 420, - /* 280 */ 529, 392, 528, 506, 527, 535, 444, 557, 545, 544, - /* 290 */ 530, 412, 453, 526, 505, 419, 507, 525, 532, 470, - /* 300 */ 514, 521, 524, 508, 510, 482, 483, 416, 415, 417, - /* 310 */ 418, 477, 511, 515, 538, 469, 509, 534, 533, 432, - /* 320 */ 446, 447, 443, 442, 436, 454, 433, 441, 554, 448, - /* 330 */ 498, 499, 501, 503, 452, 451, 449, 450, 552, 553, - /* 340 */ 486, 487, 589, 430, 582, 583, 584, 431, 429, 426, - /* 350 */ 537, 427, 428, 406, 587, 575, 404, 577, 576, 405, - /* 360 */ 585, 586, 588, 591, 592, 425, 424, 569, 568, 570, - /* 370 */ 571, 572, 567, 566, 414, 563, 564, 565, 573, 574, - /* 380 */ 422, 590, 407, 423, 421, 408, 474, 413, 411, 409, - /* 390 */ 403, -); - const YYNOCODE = 124; - const YYSTACKDEPTH = 100; - const YYNSTATE = 391; - const YYNRULE = 204; - const YYERRORSYMBOL = 81; - const YYERRSYMDT = 'yy0'; - const YYFALLBACK = 0; - static public $yyFallback = array( - ); - static function Trace($TraceFILE, $zTracePrompt) - { - if (!$TraceFILE) { - $zTracePrompt = 0; - } elseif (!$zTracePrompt) { - $TraceFILE = 0; - } - self::$yyTraceFILE = $TraceFILE; - self::$yyTracePrompt = $zTracePrompt; - } - - static function PrintTrace() - { - self::$yyTraceFILE = fopen('php://output', 'w'); - self::$yyTracePrompt = '<br>'; - } - - static public $yyTraceFILE; - static public $yyTracePrompt; - public $yyidx; /* Index of top element in stack */ - public $yyerrcnt; /* Shifts left before out of the error */ - public $yystack = array(); /* The parser's stack */ - - public $yyTokenName = array( - '$', 'VERT', 'COLON', 'COMMENT', - 'PHPSTARTTAG', 'PHPENDTAG', 'ASPSTARTTAG', 'ASPENDTAG', - 'FAKEPHPSTARTTAG', 'XMLTAG', 'TEXT', 'STRIPON', - 'STRIPOFF', 'LITERALSTART', 'LITERALEND', 'LITERAL', - 'LDEL', 'RDEL', 'DOLLAR', 'ID', - 'EQUAL', 'PTR', 'LDELIF', 'LDELFOR', - 'SEMICOLON', 'INCDEC', 'TO', 'STEP', - 'LDELFOREACH', 'SPACE', 'AS', 'APTR', - 'LDELSETFILTER', 'SMARTYBLOCKCHILD', 'LDELSLASH', 'ATTR', - 'INTEGER', 'COMMA', 'OPENP', 'CLOSEP', - 'MATH', 'UNIMATH', 'ANDSYM', 'ISIN', - 'ISDIVBY', 'ISNOTDIVBY', 'ISEVEN', 'ISNOTEVEN', - 'ISEVENBY', 'ISNOTEVENBY', 'ISODD', 'ISNOTODD', - 'ISODDBY', 'ISNOTODDBY', 'INSTANCEOF', 'QMARK', - 'NOT', 'TYPECAST', 'HEX', 'DOT', - 'SINGLEQUOTESTRING', 'DOUBLECOLON', 'AT', 'HATCH', - 'OPENB', 'CLOSEB', 'EQUALS', 'NOTEQUALS', - 'GREATERTHAN', 'LESSTHAN', 'GREATEREQUAL', 'LESSEQUAL', - 'IDENTITY', 'NONEIDENTITY', 'MOD', 'LAND', - 'LOR', 'LXOR', 'QUOTE', 'BACKTICK', - 'DOLLARID', 'error', 'start', 'template', - 'template_element', 'smartytag', 'literal', 'literal_elements', - 'literal_element', 'value', 'modifierlist', 'attributes', - 'expr', 'varindexed', 'statement', 'statements', - 'optspace', 'varvar', 'foraction', 'modparameters', - 'attribute', 'ternary', 'array', 'ifcond', - 'lop', 'variable', 'function', 'doublequoted_with_quotes', - 'static_class_access', 'object', 'arrayindex', 'indexdef', - 'varvarele', 'objectchain', 'objectelement', 'method', - 'params', 'modifier', 'modparameter', 'arrayelements', - 'arrayelement', 'doublequoted', 'doublequotedcontent', - ); - - static public $yyRuleName = array( - /* 0 */ "start ::= template", - /* 1 */ "template ::= template_element", - /* 2 */ "template ::= template template_element", - /* 3 */ "template ::=", - /* 4 */ "template_element ::= smartytag", - /* 5 */ "template_element ::= COMMENT", - /* 6 */ "template_element ::= literal", - /* 7 */ "template_element ::= PHPSTARTTAG", - /* 8 */ "template_element ::= PHPENDTAG", - /* 9 */ "template_element ::= ASPSTARTTAG", - /* 10 */ "template_element ::= ASPENDTAG", - /* 11 */ "template_element ::= FAKEPHPSTARTTAG", - /* 12 */ "template_element ::= XMLTAG", - /* 13 */ "template_element ::= TEXT", - /* 14 */ "template_element ::= STRIPON", - /* 15 */ "template_element ::= STRIPOFF", - /* 16 */ "literal ::= LITERALSTART LITERALEND", - /* 17 */ "literal ::= LITERALSTART literal_elements LITERALEND", - /* 18 */ "literal_elements ::= literal_elements literal_element", - /* 19 */ "literal_elements ::=", - /* 20 */ "literal_element ::= literal", - /* 21 */ "literal_element ::= LITERAL", - /* 22 */ "literal_element ::= PHPSTARTTAG", - /* 23 */ "literal_element ::= FAKEPHPSTARTTAG", - /* 24 */ "literal_element ::= PHPENDTAG", - /* 25 */ "literal_element ::= ASPSTARTTAG", - /* 26 */ "literal_element ::= ASPENDTAG", - /* 27 */ "smartytag ::= LDEL value RDEL", - /* 28 */ "smartytag ::= LDEL value modifierlist attributes RDEL", - /* 29 */ "smartytag ::= LDEL value attributes RDEL", - /* 30 */ "smartytag ::= LDEL expr modifierlist attributes RDEL", - /* 31 */ "smartytag ::= LDEL expr attributes RDEL", - /* 32 */ "smartytag ::= LDEL DOLLAR ID EQUAL value RDEL", - /* 33 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr RDEL", - /* 34 */ "smartytag ::= LDEL DOLLAR ID EQUAL expr attributes RDEL", - /* 35 */ "smartytag ::= LDEL varindexed EQUAL expr attributes RDEL", - /* 36 */ "smartytag ::= LDEL ID attributes RDEL", - /* 37 */ "smartytag ::= LDEL ID RDEL", - /* 38 */ "smartytag ::= LDEL ID PTR ID attributes RDEL", - /* 39 */ "smartytag ::= LDEL ID modifierlist attributes RDEL", - /* 40 */ "smartytag ::= LDEL ID PTR ID modifierlist attributes RDEL", - /* 41 */ "smartytag ::= LDELIF expr RDEL", - /* 42 */ "smartytag ::= LDELIF expr attributes RDEL", - /* 43 */ "smartytag ::= LDELIF statement RDEL", - /* 44 */ "smartytag ::= LDELIF statement attributes RDEL", - /* 45 */ "smartytag ::= LDELFOR statements SEMICOLON optspace expr SEMICOLON optspace DOLLAR varvar foraction attributes RDEL", - /* 46 */ "foraction ::= EQUAL expr", - /* 47 */ "foraction ::= INCDEC", - /* 48 */ "smartytag ::= LDELFOR statement TO expr attributes RDEL", - /* 49 */ "smartytag ::= LDELFOR statement TO expr STEP expr attributes RDEL", - /* 50 */ "smartytag ::= LDELFOREACH attributes RDEL", - /* 51 */ "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar attributes RDEL", - /* 52 */ "smartytag ::= LDELFOREACH SPACE value AS DOLLAR varvar APTR DOLLAR varvar attributes RDEL", - /* 53 */ "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar attributes RDEL", - /* 54 */ "smartytag ::= LDELFOREACH SPACE expr AS DOLLAR varvar APTR DOLLAR varvar attributes RDEL", - /* 55 */ "smartytag ::= LDELSETFILTER ID modparameters RDEL", - /* 56 */ "smartytag ::= LDELSETFILTER ID modparameters modifierlist RDEL", - /* 57 */ "smartytag ::= SMARTYBLOCKCHILD", - /* 58 */ "smartytag ::= LDELSLASH ID RDEL", - /* 59 */ "smartytag ::= LDELSLASH ID modifierlist RDEL", - /* 60 */ "smartytag ::= LDELSLASH ID PTR ID RDEL", - /* 61 */ "smartytag ::= LDELSLASH ID PTR ID modifierlist RDEL", - /* 62 */ "attributes ::= attributes attribute", - /* 63 */ "attributes ::= attribute", - /* 64 */ "attributes ::=", - /* 65 */ "attribute ::= SPACE ID EQUAL ID", - /* 66 */ "attribute ::= ATTR expr", - /* 67 */ "attribute ::= ATTR value", - /* 68 */ "attribute ::= SPACE ID", - /* 69 */ "attribute ::= SPACE expr", - /* 70 */ "attribute ::= SPACE value", - /* 71 */ "attribute ::= SPACE INTEGER EQUAL expr", - /* 72 */ "statements ::= statement", - /* 73 */ "statements ::= statements COMMA statement", - /* 74 */ "statement ::= DOLLAR varvar EQUAL expr", - /* 75 */ "statement ::= varindexed EQUAL expr", - /* 76 */ "statement ::= OPENP statement CLOSEP", - /* 77 */ "expr ::= value", - /* 78 */ "expr ::= ternary", - /* 79 */ "expr ::= DOLLAR ID COLON ID", - /* 80 */ "expr ::= expr MATH value", - /* 81 */ "expr ::= expr UNIMATH value", - /* 82 */ "expr ::= expr ANDSYM value", - /* 83 */ "expr ::= array", - /* 84 */ "expr ::= expr modifierlist", - /* 85 */ "expr ::= expr ifcond expr", - /* 86 */ "expr ::= expr ISIN array", - /* 87 */ "expr ::= expr ISIN value", - /* 88 */ "expr ::= expr lop expr", - /* 89 */ "expr ::= expr ISDIVBY expr", - /* 90 */ "expr ::= expr ISNOTDIVBY expr", - /* 91 */ "expr ::= expr ISEVEN", - /* 92 */ "expr ::= expr ISNOTEVEN", - /* 93 */ "expr ::= expr ISEVENBY expr", - /* 94 */ "expr ::= expr ISNOTEVENBY expr", - /* 95 */ "expr ::= expr ISODD", - /* 96 */ "expr ::= expr ISNOTODD", - /* 97 */ "expr ::= expr ISODDBY expr", - /* 98 */ "expr ::= expr ISNOTODDBY expr", - /* 99 */ "expr ::= value INSTANCEOF ID", - /* 100 */ "expr ::= value INSTANCEOF value", - /* 101 */ "ternary ::= OPENP expr CLOSEP QMARK DOLLAR ID COLON expr", - /* 102 */ "ternary ::= OPENP expr CLOSEP QMARK expr COLON expr", - /* 103 */ "value ::= variable", - /* 104 */ "value ::= UNIMATH value", - /* 105 */ "value ::= NOT value", - /* 106 */ "value ::= TYPECAST value", - /* 107 */ "value ::= variable INCDEC", - /* 108 */ "value ::= HEX", - /* 109 */ "value ::= INTEGER", - /* 110 */ "value ::= INTEGER DOT INTEGER", - /* 111 */ "value ::= INTEGER DOT", - /* 112 */ "value ::= DOT INTEGER", - /* 113 */ "value ::= ID", - /* 114 */ "value ::= function", - /* 115 */ "value ::= OPENP expr CLOSEP", - /* 116 */ "value ::= SINGLEQUOTESTRING", - /* 117 */ "value ::= doublequoted_with_quotes", - /* 118 */ "value ::= ID DOUBLECOLON static_class_access", - /* 119 */ "value ::= varindexed DOUBLECOLON static_class_access", - /* 120 */ "value ::= smartytag", - /* 121 */ "value ::= value modifierlist", - /* 122 */ "variable ::= varindexed", - /* 123 */ "variable ::= DOLLAR varvar AT ID", - /* 124 */ "variable ::= object", - /* 125 */ "variable ::= HATCH ID HATCH", - /* 126 */ "variable ::= HATCH ID HATCH arrayindex", - /* 127 */ "variable ::= HATCH variable HATCH", - /* 128 */ "variable ::= HATCH variable HATCH arrayindex", - /* 129 */ "varindexed ::= DOLLAR varvar arrayindex", - /* 130 */ "arrayindex ::= arrayindex indexdef", - /* 131 */ "arrayindex ::=", - /* 132 */ "indexdef ::= DOT DOLLAR varvar", - /* 133 */ "indexdef ::= DOT DOLLAR varvar AT ID", - /* 134 */ "indexdef ::= DOT ID", - /* 135 */ "indexdef ::= DOT INTEGER", - /* 136 */ "indexdef ::= DOT LDEL expr RDEL", - /* 137 */ "indexdef ::= OPENB ID CLOSEB", - /* 138 */ "indexdef ::= OPENB ID DOT ID CLOSEB", - /* 139 */ "indexdef ::= OPENB expr CLOSEB", - /* 140 */ "indexdef ::= OPENB CLOSEB", - /* 141 */ "varvar ::= varvarele", - /* 142 */ "varvar ::= varvar varvarele", - /* 143 */ "varvarele ::= ID", - /* 144 */ "varvarele ::= LDEL expr RDEL", - /* 145 */ "object ::= varindexed objectchain", - /* 146 */ "objectchain ::= objectelement", - /* 147 */ "objectchain ::= objectchain objectelement", - /* 148 */ "objectelement ::= PTR ID arrayindex", - /* 149 */ "objectelement ::= PTR DOLLAR varvar arrayindex", - /* 150 */ "objectelement ::= PTR LDEL expr RDEL arrayindex", - /* 151 */ "objectelement ::= PTR ID LDEL expr RDEL arrayindex", - /* 152 */ "objectelement ::= PTR method", - /* 153 */ "function ::= ID OPENP params CLOSEP", - /* 154 */ "method ::= ID OPENP params CLOSEP", - /* 155 */ "method ::= DOLLAR ID OPENP params CLOSEP", - /* 156 */ "params ::= params COMMA expr", - /* 157 */ "params ::= expr", - /* 158 */ "params ::=", - /* 159 */ "modifierlist ::= modifierlist modifier modparameters", - /* 160 */ "modifierlist ::= modifier modparameters", - /* 161 */ "modifier ::= VERT AT ID", - /* 162 */ "modifier ::= VERT ID", - /* 163 */ "modparameters ::= modparameters modparameter", - /* 164 */ "modparameters ::=", - /* 165 */ "modparameter ::= COLON value", - /* 166 */ "modparameter ::= COLON array", - /* 167 */ "static_class_access ::= method", - /* 168 */ "static_class_access ::= method objectchain", - /* 169 */ "static_class_access ::= ID", - /* 170 */ "static_class_access ::= DOLLAR ID arrayindex", - /* 171 */ "static_class_access ::= DOLLAR ID arrayindex objectchain", - /* 172 */ "ifcond ::= EQUALS", - /* 173 */ "ifcond ::= NOTEQUALS", - /* 174 */ "ifcond ::= GREATERTHAN", - /* 175 */ "ifcond ::= LESSTHAN", - /* 176 */ "ifcond ::= GREATEREQUAL", - /* 177 */ "ifcond ::= LESSEQUAL", - /* 178 */ "ifcond ::= IDENTITY", - /* 179 */ "ifcond ::= NONEIDENTITY", - /* 180 */ "ifcond ::= MOD", - /* 181 */ "lop ::= LAND", - /* 182 */ "lop ::= LOR", - /* 183 */ "lop ::= LXOR", - /* 184 */ "array ::= OPENB arrayelements CLOSEB", - /* 185 */ "arrayelements ::= arrayelement", - /* 186 */ "arrayelements ::= arrayelements COMMA arrayelement", - /* 187 */ "arrayelements ::=", - /* 188 */ "arrayelement ::= value APTR expr", - /* 189 */ "arrayelement ::= ID APTR expr", - /* 190 */ "arrayelement ::= expr", - /* 191 */ "doublequoted_with_quotes ::= QUOTE QUOTE", - /* 192 */ "doublequoted_with_quotes ::= QUOTE doublequoted QUOTE", - /* 193 */ "doublequoted ::= doublequoted doublequotedcontent", - /* 194 */ "doublequoted ::= doublequotedcontent", - /* 195 */ "doublequotedcontent ::= BACKTICK variable BACKTICK", - /* 196 */ "doublequotedcontent ::= BACKTICK expr BACKTICK", - /* 197 */ "doublequotedcontent ::= DOLLARID", - /* 198 */ "doublequotedcontent ::= LDEL variable RDEL", - /* 199 */ "doublequotedcontent ::= LDEL expr RDEL", - /* 200 */ "doublequotedcontent ::= smartytag", - /* 201 */ "doublequotedcontent ::= TEXT", - /* 202 */ "optspace ::= SPACE", - /* 203 */ "optspace ::=", - ); - - function tokenName($tokenType) - { - if ($tokenType === 0) { - return 'End of Input'; - } - if ($tokenType > 0 && $tokenType < count($this->yyTokenName)) { - return $this->yyTokenName[$tokenType]; - } else { - return "Unknown"; - } - } - - static function yy_destructor($yymajor, $yypminor) - { - switch ($yymajor) { - default: break; /* If no destructor action specified: do nothing */ - } - } - - function yy_pop_parser_stack() - { - if (!count($this->yystack)) { - return; - } - $yytos = array_pop($this->yystack); - if (self::$yyTraceFILE && $this->yyidx >= 0) { - fwrite(self::$yyTraceFILE, - self::$yyTracePrompt . 'Popping ' . $this->yyTokenName[$yytos->major] . - "\n"); - } - $yymajor = $yytos->major; - self::yy_destructor($yymajor, $yytos->minor); - $this->yyidx--; - return $yymajor; - } - - function __destruct() - { - while ($this->yystack !== Array()) { - $this->yy_pop_parser_stack(); - } - if (is_resource(self::$yyTraceFILE)) { - fclose(self::$yyTraceFILE); - } - } - - function yy_get_expected_tokens($token) - { - $state = $this->yystack[$this->yyidx]->stateno; - $expected = self::$yyExpectedTokens[$state]; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return $expected; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return array_unique($expected); - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate])) { - $expected = array_merge($expected, self::$yyExpectedTokens[$nextstate]); - if (in_array($token, - self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new TP_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return array_unique($expected); - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return $expected; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return array_unique($expected); - } - - function yy_is_expected_token($token) - { - if ($token === 0) { - return true; // 0 is not part of this - } - $state = $this->yystack[$this->yyidx]->stateno; - if (in_array($token, self::$yyExpectedTokens[$state], true)) { - return true; - } - $stack = $this->yystack; - $yyidx = $this->yyidx; - do { - $yyact = $this->yy_find_shift_action($token); - if ($yyact >= self::YYNSTATE && $yyact < self::YYNSTATE + self::YYNRULE) { - // reduce action - $done = 0; - do { - if ($done++ == 100) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // too much recursion prevents proper detection - // so give up - return true; - } - $yyruleno = $yyact - self::YYNSTATE; - $this->yyidx -= self::$yyRuleInfo[$yyruleno]['rhs']; - $nextstate = $this->yy_find_reduce_action( - $this->yystack[$this->yyidx]->stateno, - self::$yyRuleInfo[$yyruleno]['lhs']); - if (isset(self::$yyExpectedTokens[$nextstate]) && - in_array($token, self::$yyExpectedTokens[$nextstate], true)) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - if ($nextstate < self::YYNSTATE) { - // we need to shift a non-terminal - $this->yyidx++; - $x = new TP_yyStackEntry; - $x->stateno = $nextstate; - $x->major = self::$yyRuleInfo[$yyruleno]['lhs']; - $this->yystack[$this->yyidx] = $x; - continue 2; - } elseif ($nextstate == self::YYNSTATE + self::YYNRULE + 1) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - if (!$token) { - // end of input: this is valid - return true; - } - // the last token was just ignored, we can't accept - // by ignoring input, this is in essence ignoring a - // syntax error! - return false; - } elseif ($nextstate === self::YY_NO_ACTION) { - $this->yyidx = $yyidx; - $this->yystack = $stack; - // input accepted, but not shifted (I guess) - return true; - } else { - $yyact = $nextstate; - } - } while (true); - } - break; - } while (true); - $this->yyidx = $yyidx; - $this->yystack = $stack; - return true; - } - - function yy_find_shift_action($iLookAhead) - { - $stateno = $this->yystack[$this->yyidx]->stateno; - - /* if ($this->yyidx < 0) return self::YY_NO_ACTION; */ - if (!isset(self::$yy_shift_ofst[$stateno])) { - // no shift actions - return self::$yy_default[$stateno]; - } - $i = self::$yy_shift_ofst[$stateno]; - if ($i === self::YY_SHIFT_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - if (count(self::$yyFallback) && $iLookAhead < count(self::$yyFallback) - && ($iFallback = self::$yyFallback[$iLookAhead]) != 0) { - if (self::$yyTraceFILE) { - fwrite(self::$yyTraceFILE, self::$yyTracePrompt . "FALLBACK " . - $this->yyTokenName[$iLookAhead] . " => " . - $this->yyTokenName[$iFallback] . "\n"); - } - return $this->yy_find_shift_action($iFallback); - } - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - function yy_find_reduce_action($stateno, $iLookAhead) - { - /* $stateno = $this->yystack[$this->yyidx]->stateno; */ - - if (!isset(self::$yy_reduce_ofst[$stateno])) { - return self::$yy_default[$stateno]; - } - $i = self::$yy_reduce_ofst[$stateno]; - if ($i == self::YY_REDUCE_USE_DFLT) { - return self::$yy_default[$stateno]; - } - if ($iLookAhead == self::YYNOCODE) { - return self::YY_NO_ACTION; - } - $i += $iLookAhead; - if ($i < 0 || $i >= self::YY_SZ_ACTTAB || - self::$yy_lookahead[$i] != $iLookAhead) { - return self::$yy_default[$stateno]; - } else { - return self::$yy_action[$i]; - } - } - - function yy_shift($yyNewState, $yyMajor, $yypMinor) - { - $this->yyidx++; - if ($this->yyidx >= self::YYSTACKDEPTH) { - $this->yyidx--; - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sStack Overflow!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } -#line 84 "smarty_internal_templateparser.y" - - $this->internalError = true; - $this->compiler->trigger_template_error("Stack overflow in template parser"); -#line 1724 "smarty_internal_templateparser.php" - return; - } - $yytos = new TP_yyStackEntry; - $yytos->stateno = $yyNewState; - $yytos->major = $yyMajor; - $yytos->minor = $yypMinor; - array_push($this->yystack, $yytos); - if (self::$yyTraceFILE && $this->yyidx > 0) { - fprintf(self::$yyTraceFILE, "%sShift %d\n", self::$yyTracePrompt, - $yyNewState); - fprintf(self::$yyTraceFILE, "%sStack:", self::$yyTracePrompt); - for($i = 1; $i <= $this->yyidx; $i++) { - fprintf(self::$yyTraceFILE, " %s", - $this->yyTokenName[$this->yystack[$i]->major]); - } - fwrite(self::$yyTraceFILE,"\n"); - } - } - - static public $yyRuleInfo = array( - array( 'lhs' => 82, 'rhs' => 1 ), - array( 'lhs' => 83, 'rhs' => 1 ), - array( 'lhs' => 83, 'rhs' => 2 ), - array( 'lhs' => 83, 'rhs' => 0 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 84, 'rhs' => 1 ), - array( 'lhs' => 86, 'rhs' => 2 ), - array( 'lhs' => 86, 'rhs' => 3 ), - array( 'lhs' => 87, 'rhs' => 2 ), - array( 'lhs' => 87, 'rhs' => 0 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 88, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 3 ), - array( 'lhs' => 85, 'rhs' => 5 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 5 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 6 ), - array( 'lhs' => 85, 'rhs' => 6 ), - array( 'lhs' => 85, 'rhs' => 7 ), - array( 'lhs' => 85, 'rhs' => 6 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 3 ), - array( 'lhs' => 85, 'rhs' => 6 ), - array( 'lhs' => 85, 'rhs' => 5 ), - array( 'lhs' => 85, 'rhs' => 7 ), - array( 'lhs' => 85, 'rhs' => 3 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 3 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 12 ), - array( 'lhs' => 98, 'rhs' => 2 ), - array( 'lhs' => 98, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 6 ), - array( 'lhs' => 85, 'rhs' => 8 ), - array( 'lhs' => 85, 'rhs' => 3 ), - array( 'lhs' => 85, 'rhs' => 8 ), - array( 'lhs' => 85, 'rhs' => 11 ), - array( 'lhs' => 85, 'rhs' => 8 ), - array( 'lhs' => 85, 'rhs' => 11 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 5 ), - array( 'lhs' => 85, 'rhs' => 1 ), - array( 'lhs' => 85, 'rhs' => 3 ), - array( 'lhs' => 85, 'rhs' => 4 ), - array( 'lhs' => 85, 'rhs' => 5 ), - array( 'lhs' => 85, 'rhs' => 6 ), - array( 'lhs' => 91, 'rhs' => 2 ), - array( 'lhs' => 91, 'rhs' => 1 ), - array( 'lhs' => 91, 'rhs' => 0 ), - array( 'lhs' => 100, 'rhs' => 4 ), - array( 'lhs' => 100, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 2 ), - array( 'lhs' => 100, 'rhs' => 4 ), - array( 'lhs' => 95, 'rhs' => 1 ), - array( 'lhs' => 95, 'rhs' => 3 ), - array( 'lhs' => 94, 'rhs' => 4 ), - array( 'lhs' => 94, 'rhs' => 3 ), - array( 'lhs' => 94, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 1 ), - array( 'lhs' => 92, 'rhs' => 1 ), - array( 'lhs' => 92, 'rhs' => 4 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 1 ), - array( 'lhs' => 92, 'rhs' => 2 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 2 ), - array( 'lhs' => 92, 'rhs' => 2 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 2 ), - array( 'lhs' => 92, 'rhs' => 2 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 92, 'rhs' => 3 ), - array( 'lhs' => 101, 'rhs' => 8 ), - array( 'lhs' => 101, 'rhs' => 7 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 3 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 3 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 3 ), - array( 'lhs' => 89, 'rhs' => 3 ), - array( 'lhs' => 89, 'rhs' => 1 ), - array( 'lhs' => 89, 'rhs' => 2 ), - array( 'lhs' => 105, 'rhs' => 1 ), - array( 'lhs' => 105, 'rhs' => 4 ), - array( 'lhs' => 105, 'rhs' => 1 ), - array( 'lhs' => 105, 'rhs' => 3 ), - array( 'lhs' => 105, 'rhs' => 4 ), - array( 'lhs' => 105, 'rhs' => 3 ), - array( 'lhs' => 105, 'rhs' => 4 ), - array( 'lhs' => 93, 'rhs' => 3 ), - array( 'lhs' => 110, 'rhs' => 2 ), - array( 'lhs' => 110, 'rhs' => 0 ), - array( 'lhs' => 111, 'rhs' => 3 ), - array( 'lhs' => 111, 'rhs' => 5 ), - array( 'lhs' => 111, 'rhs' => 2 ), - array( 'lhs' => 111, 'rhs' => 2 ), - array( 'lhs' => 111, 'rhs' => 4 ), - array( 'lhs' => 111, 'rhs' => 3 ), - array( 'lhs' => 111, 'rhs' => 5 ), - array( 'lhs' => 111, 'rhs' => 3 ), - array( 'lhs' => 111, 'rhs' => 2 ), - array( 'lhs' => 97, 'rhs' => 1 ), - array( 'lhs' => 97, 'rhs' => 2 ), - array( 'lhs' => 112, 'rhs' => 1 ), - array( 'lhs' => 112, 'rhs' => 3 ), - array( 'lhs' => 109, 'rhs' => 2 ), - array( 'lhs' => 113, 'rhs' => 1 ), - array( 'lhs' => 113, 'rhs' => 2 ), - array( 'lhs' => 114, 'rhs' => 3 ), - array( 'lhs' => 114, 'rhs' => 4 ), - array( 'lhs' => 114, 'rhs' => 5 ), - array( 'lhs' => 114, 'rhs' => 6 ), - array( 'lhs' => 114, 'rhs' => 2 ), - array( 'lhs' => 106, 'rhs' => 4 ), - array( 'lhs' => 115, 'rhs' => 4 ), - array( 'lhs' => 115, 'rhs' => 5 ), - array( 'lhs' => 116, 'rhs' => 3 ), - array( 'lhs' => 116, 'rhs' => 1 ), - array( 'lhs' => 116, 'rhs' => 0 ), - array( 'lhs' => 90, 'rhs' => 3 ), - array( 'lhs' => 90, 'rhs' => 2 ), - array( 'lhs' => 117, 'rhs' => 3 ), - array( 'lhs' => 117, 'rhs' => 2 ), - array( 'lhs' => 99, 'rhs' => 2 ), - array( 'lhs' => 99, 'rhs' => 0 ), - array( 'lhs' => 118, 'rhs' => 2 ), - array( 'lhs' => 118, 'rhs' => 2 ), - array( 'lhs' => 108, 'rhs' => 1 ), - array( 'lhs' => 108, 'rhs' => 2 ), - array( 'lhs' => 108, 'rhs' => 1 ), - array( 'lhs' => 108, 'rhs' => 3 ), - array( 'lhs' => 108, 'rhs' => 4 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 103, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 104, 'rhs' => 1 ), - array( 'lhs' => 102, 'rhs' => 3 ), - array( 'lhs' => 119, 'rhs' => 1 ), - array( 'lhs' => 119, 'rhs' => 3 ), - array( 'lhs' => 119, 'rhs' => 0 ), - array( 'lhs' => 120, 'rhs' => 3 ), - array( 'lhs' => 120, 'rhs' => 3 ), - array( 'lhs' => 120, 'rhs' => 1 ), - array( 'lhs' => 107, 'rhs' => 2 ), - array( 'lhs' => 107, 'rhs' => 3 ), - array( 'lhs' => 121, 'rhs' => 2 ), - array( 'lhs' => 121, 'rhs' => 1 ), - array( 'lhs' => 122, 'rhs' => 3 ), - array( 'lhs' => 122, 'rhs' => 3 ), - array( 'lhs' => 122, 'rhs' => 1 ), - array( 'lhs' => 122, 'rhs' => 3 ), - array( 'lhs' => 122, 'rhs' => 3 ), - array( 'lhs' => 122, 'rhs' => 1 ), - array( 'lhs' => 122, 'rhs' => 1 ), - array( 'lhs' => 96, 'rhs' => 1 ), - array( 'lhs' => 96, 'rhs' => 0 ), - ); - - static public $yyReduceMap = array( - 0 => 0, - 1 => 1, - 2 => 1, - 4 => 4, - 5 => 5, - 6 => 6, - 7 => 7, - 8 => 8, - 9 => 9, - 10 => 10, - 11 => 11, - 12 => 12, - 13 => 13, - 14 => 14, - 15 => 15, - 16 => 16, - 19 => 16, - 203 => 16, - 17 => 17, - 76 => 17, - 18 => 18, - 104 => 18, - 106 => 18, - 107 => 18, - 130 => 18, - 168 => 18, - 20 => 20, - 21 => 20, - 47 => 20, - 69 => 20, - 70 => 20, - 77 => 20, - 78 => 20, - 83 => 20, - 103 => 20, - 108 => 20, - 109 => 20, - 114 => 20, - 116 => 20, - 117 => 20, - 124 => 20, - 141 => 20, - 167 => 20, - 169 => 20, - 185 => 20, - 190 => 20, - 202 => 20, - 22 => 22, - 23 => 22, - 24 => 24, - 25 => 25, - 26 => 26, - 27 => 27, - 28 => 28, - 29 => 29, - 31 => 29, - 30 => 30, - 32 => 32, - 33 => 32, - 34 => 34, - 35 => 35, - 36 => 36, - 37 => 37, - 38 => 38, - 39 => 39, - 40 => 40, - 41 => 41, - 42 => 42, - 44 => 42, - 43 => 43, - 45 => 45, - 46 => 46, - 48 => 48, - 49 => 49, - 50 => 50, - 51 => 51, - 52 => 52, - 53 => 53, - 54 => 54, - 55 => 55, - 56 => 56, - 57 => 57, - 58 => 58, - 59 => 59, - 60 => 60, - 61 => 61, - 62 => 62, - 63 => 63, - 72 => 63, - 157 => 63, - 161 => 63, - 165 => 63, - 166 => 63, - 64 => 64, - 158 => 64, - 164 => 64, - 65 => 65, - 66 => 66, - 67 => 66, - 68 => 68, - 71 => 71, - 73 => 73, - 74 => 74, - 75 => 74, - 79 => 79, - 80 => 80, - 81 => 80, - 82 => 80, - 84 => 84, - 121 => 84, - 85 => 85, - 88 => 85, - 99 => 85, - 86 => 86, - 87 => 87, - 89 => 89, - 90 => 90, - 91 => 91, - 96 => 91, - 92 => 92, - 95 => 92, - 93 => 93, - 98 => 93, - 94 => 94, - 97 => 94, - 100 => 100, - 101 => 101, - 102 => 102, - 105 => 105, - 110 => 110, - 111 => 111, - 112 => 112, - 113 => 113, - 115 => 115, - 118 => 118, - 119 => 119, - 120 => 120, - 122 => 122, - 123 => 123, - 125 => 125, - 126 => 126, - 127 => 127, - 128 => 128, - 129 => 129, - 131 => 131, - 187 => 131, - 132 => 132, - 133 => 133, - 134 => 134, - 135 => 135, - 136 => 136, - 139 => 136, - 137 => 137, - 138 => 138, - 140 => 140, - 142 => 142, - 143 => 143, - 144 => 144, - 145 => 145, - 146 => 146, - 147 => 147, - 148 => 148, - 149 => 149, - 150 => 150, - 151 => 151, - 152 => 152, - 153 => 153, - 154 => 154, - 155 => 155, - 156 => 156, - 159 => 159, - 160 => 160, - 162 => 162, - 163 => 163, - 170 => 170, - 171 => 171, - 172 => 172, - 173 => 173, - 174 => 174, - 175 => 175, - 176 => 176, - 177 => 177, - 178 => 178, - 179 => 179, - 180 => 180, - 181 => 181, - 182 => 182, - 183 => 183, - 184 => 184, - 186 => 186, - 188 => 188, - 189 => 189, - 191 => 191, - 192 => 192, - 193 => 193, - 194 => 194, - 195 => 195, - 196 => 195, - 198 => 195, - 197 => 197, - 199 => 199, - 200 => 200, - 201 => 201, - ); -#line 95 "smarty_internal_templateparser.y" - function yy_r0(){ - $this->_retvalue = $this->root_buffer->to_smarty_php(); - } -#line 2160 "smarty_internal_templateparser.php" -#line 103 "smarty_internal_templateparser.y" - function yy_r1(){ - $this->current_buffer->append_subtree($this->yystack[$this->yyidx + 0]->minor); - } -#line 2165 "smarty_internal_templateparser.php" -#line 119 "smarty_internal_templateparser.y" - function yy_r4(){ - if ($this->compiler->has_code) { - $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); - $this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode($tmp.$this->yystack[$this->yyidx + 0]->minor,true)); - } else { - $this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + 0]->minor); - } - $this->compiler->has_variable_string = false; - $this->block_nesting_level = count($this->compiler->_tag_stack); - } -#line 2177 "smarty_internal_templateparser.php" -#line 131 "smarty_internal_templateparser.y" - function yy_r5(){ - $this->_retvalue = new _smarty_tag($this, ''); - } -#line 2182 "smarty_internal_templateparser.php" -#line 136 "smarty_internal_templateparser.y" - function yy_r6(){ - $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 2187 "smarty_internal_templateparser.php" -#line 141 "smarty_internal_templateparser.y" - function yy_r7(){ - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if (!($this->smarty instanceof SmartyBC)) { - $this->compiler->trigger_template_error (self::Err3); - } - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('<?php', true)); - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - $this->_retvalue = new _smarty_text($this, ''); - } - } -#line 2203 "smarty_internal_templateparser.php" -#line 157 "smarty_internal_templateparser.y" - function yy_r8(){ - if ($this->is_xml) { - $this->compiler->tag_nocache = true; - $this->is_xml = false; - $save = $this->template->has_nocache_code; - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true)); - $this->template->has_nocache_code = $save; - } elseif ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, '?<?php ?>>'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars('?>', ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('?>', true)); - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - $this->_retvalue = new _smarty_text($this, ''); - } - } -#line 2222 "smarty_internal_templateparser.php" -#line 176 "smarty_internal_templateparser.y" - function yy_r9(){ - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, '<<?php ?>%'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars($this->yystack[$this->yyidx + 0]->minor, ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if ($this->asp_tags) { - if (!($this->smarty instanceof SmartyBC)) { - $this->compiler->trigger_template_error (self::Err3); - } - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('<%', true)); - } else { - $this->_retvalue = new _smarty_text($this, '<<?php ?>%'); - } - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - if ($this->asp_tags) { - $this->_retvalue = new _smarty_text($this, ''); - } else { - $this->_retvalue = new _smarty_text($this, '<<?php ?>%'); - } - } - } -#line 2246 "smarty_internal_templateparser.php" -#line 200 "smarty_internal_templateparser.y" - function yy_r10(){ - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - $this->_retvalue = new _smarty_text($this, '%<?php ?>>'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - $this->_retvalue = new _smarty_text($this, htmlspecialchars('%>', ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if ($this->asp_tags) { - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode('%>', true)); - } else { - $this->_retvalue = new _smarty_text($this, '%<?php ?>>'); - } - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - if ($this->asp_tags) { - $this->_retvalue = new _smarty_text($this, ''); - } else { - $this->_retvalue = new _smarty_text($this, '%<?php ?>>'); - } - } - } -#line 2267 "smarty_internal_templateparser.php" -#line 220 "smarty_internal_templateparser.y" - function yy_r11(){ - if ($this->strip) { - $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor))); - } else { - $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); - } - } -#line 2276 "smarty_internal_templateparser.php" -#line 229 "smarty_internal_templateparser.y" - function yy_r12(){ - $this->compiler->tag_nocache = true; - $this->is_xml = true; - $save = $this->template->has_nocache_code; - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true)); - $this->template->has_nocache_code = $save; - } -#line 2285 "smarty_internal_templateparser.php" -#line 238 "smarty_internal_templateparser.y" - function yy_r13(){ - if ($this->strip) { - $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor)); - } else { - $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); - } - } -#line 2294 "smarty_internal_templateparser.php" -#line 247 "smarty_internal_templateparser.y" - function yy_r14(){ - $this->strip = true; - $this->_retvalue = new _smarty_text($this, ''); - } -#line 2300 "smarty_internal_templateparser.php" -#line 252 "smarty_internal_templateparser.y" - function yy_r15(){ - $this->strip = false; - $this->_retvalue = new _smarty_text($this, ''); - } -#line 2306 "smarty_internal_templateparser.php" -#line 258 "smarty_internal_templateparser.y" - function yy_r16(){ - $this->_retvalue = ''; - } -#line 2311 "smarty_internal_templateparser.php" -#line 262 "smarty_internal_templateparser.y" - function yy_r17(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - } -#line 2316 "smarty_internal_templateparser.php" -#line 266 "smarty_internal_templateparser.y" - function yy_r18(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2321 "smarty_internal_templateparser.php" -#line 274 "smarty_internal_templateparser.y" - function yy_r20(){ - $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; - } -#line 2326 "smarty_internal_templateparser.php" -#line 282 "smarty_internal_templateparser.y" - function yy_r22(){ - $this->_retvalue = self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor); - } -#line 2331 "smarty_internal_templateparser.php" -#line 290 "smarty_internal_templateparser.y" - function yy_r24(){ - $this->_retvalue = self::escape_end_tag($this->yystack[$this->yyidx + 0]->minor); - } -#line 2336 "smarty_internal_templateparser.php" -#line 294 "smarty_internal_templateparser.y" - function yy_r25(){ - $this->_retvalue = '<<?php ?>%'; - } -#line 2341 "smarty_internal_templateparser.php" -#line 298 "smarty_internal_templateparser.y" - function yy_r26(){ - $this->_retvalue = '%<?php ?>>'; - } -#line 2346 "smarty_internal_templateparser.php" -#line 307 "smarty_internal_templateparser.y" - function yy_r27(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2351 "smarty_internal_templateparser.php" -#line 311 "smarty_internal_templateparser.y" - function yy_r28(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -3]->minor, 'modifierlist'=>$this->yystack[$this->yyidx + -2]->minor)); - } -#line 2356 "smarty_internal_templateparser.php" -#line 315 "smarty_internal_templateparser.y" - function yy_r29(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -2]->minor)); - } -#line 2361 "smarty_internal_templateparser.php" -#line 319 "smarty_internal_templateparser.y" - function yy_r30(){ - $this->_retvalue = $this->compiler->compileTag('private_print_expression',$this->yystack[$this->yyidx + -1]->minor,array('value'=>$this->yystack[$this->yyidx + -3]->minor,'modifierlist'=>$this->yystack[$this->yyidx + -2]->minor)); - } -#line 2366 "smarty_internal_templateparser.php" -#line 332 "smarty_internal_templateparser.y" - function yy_r32(){ - $this->_retvalue = $this->compiler->compileTag('assign',array(array('value'=>$this->yystack[$this->yyidx + -1]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -3]->minor."'"))); - } -#line 2371 "smarty_internal_templateparser.php" -#line 340 "smarty_internal_templateparser.y" - function yy_r34(){ - $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -2]->minor),array('var'=>"'".$this->yystack[$this->yyidx + -4]->minor."'")),$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2376 "smarty_internal_templateparser.php" -#line 344 "smarty_internal_templateparser.y" - function yy_r35(){ - $this->_retvalue = $this->compiler->compileTag('assign',array_merge(array(array('value'=>$this->yystack[$this->yyidx + -2]->minor),array('var'=>$this->yystack[$this->yyidx + -4]->minor['var'])),$this->yystack[$this->yyidx + -1]->minor),array('smarty_internal_index'=>$this->yystack[$this->yyidx + -4]->minor['smarty_internal_index'])); - } -#line 2381 "smarty_internal_templateparser.php" -#line 349 "smarty_internal_templateparser.y" - function yy_r36(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor,$this->yystack[$this->yyidx + -1]->minor); - } -#line 2386 "smarty_internal_templateparser.php" -#line 353 "smarty_internal_templateparser.y" - function yy_r37(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor,array()); - } -#line 2391 "smarty_internal_templateparser.php" -#line 358 "smarty_internal_templateparser.y" - function yy_r38(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor,$this->yystack[$this->yyidx + -1]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor)); - } -#line 2396 "smarty_internal_templateparser.php" -#line 363 "smarty_internal_templateparser.y" - function yy_r39(){ - $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor,$this->yystack[$this->yyidx + -1]->minor).'<?php echo '; - $this->_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -2]->minor,'value'=>'ob_get_clean()')).'?>'; - } -#line 2402 "smarty_internal_templateparser.php" -#line 369 "smarty_internal_templateparser.y" - function yy_r40(){ - $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -5]->minor,$this->yystack[$this->yyidx + -1]->minor,array('object_methode'=>$this->yystack[$this->yyidx + -3]->minor)).'<?php echo '; - $this->_retvalue .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>$this->yystack[$this->yyidx + -2]->minor,'value'=>'ob_get_clean()')).'?>'; - } -#line 2408 "smarty_internal_templateparser.php" -#line 375 "smarty_internal_templateparser.y" - function yy_r41(){ - $tag = trim(substr($this->yystack[$this->yyidx + -2]->minor,$this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2414 "smarty_internal_templateparser.php" -#line 380 "smarty_internal_templateparser.y" - function yy_r42(){ - $tag = trim(substr($this->yystack[$this->yyidx + -3]->minor,$this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,$this->yystack[$this->yyidx + -1]->minor,array('if condition'=>$this->yystack[$this->yyidx + -2]->minor)); - } -#line 2420 "smarty_internal_templateparser.php" -#line 385 "smarty_internal_templateparser.y" - function yy_r43(){ - $tag = trim(substr($this->yystack[$this->yyidx + -2]->minor,$this->lex->ldel_length)); - $this->_retvalue = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2426 "smarty_internal_templateparser.php" -#line 396 "smarty_internal_templateparser.y" - function yy_r45(){ - $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -10]->minor),array('ifexp'=>$this->yystack[$this->yyidx + -7]->minor),array('var'=>$this->yystack[$this->yyidx + -3]->minor),array('step'=>$this->yystack[$this->yyidx + -2]->minor))),1); - } -#line 2431 "smarty_internal_templateparser.php" -#line 400 "smarty_internal_templateparser.y" - function yy_r46(){ - $this->_retvalue = '='.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2436 "smarty_internal_templateparser.php" -#line 408 "smarty_internal_templateparser.y" - function yy_r48(){ - $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -4]->minor),array('to'=>$this->yystack[$this->yyidx + -2]->minor))),0); - } -#line 2441 "smarty_internal_templateparser.php" -#line 412 "smarty_internal_templateparser.y" - function yy_r49(){ - $this->_retvalue = $this->compiler->compileTag('for',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('start'=>$this->yystack[$this->yyidx + -6]->minor),array('to'=>$this->yystack[$this->yyidx + -4]->minor),array('step'=>$this->yystack[$this->yyidx + -2]->minor))),0); - } -#line 2446 "smarty_internal_templateparser.php" -#line 417 "smarty_internal_templateparser.y" - function yy_r50(){ - $this->_retvalue = $this->compiler->compileTag('foreach',$this->yystack[$this->yyidx + -1]->minor); - } -#line 2451 "smarty_internal_templateparser.php" -#line 422 "smarty_internal_templateparser.y" - function yy_r51(){ - $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor)))); - } -#line 2456 "smarty_internal_templateparser.php" -#line 426 "smarty_internal_templateparser.y" - function yy_r52(){ - $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -8]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor),array('key'=>$this->yystack[$this->yyidx + -5]->minor)))); - } -#line 2461 "smarty_internal_templateparser.php" -#line 430 "smarty_internal_templateparser.y" - function yy_r53(){ - $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -5]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor)))); - } -#line 2466 "smarty_internal_templateparser.php" -#line 434 "smarty_internal_templateparser.y" - function yy_r54(){ - $this->_retvalue = $this->compiler->compileTag('foreach',array_merge($this->yystack[$this->yyidx + -1]->minor,array(array('from'=>$this->yystack[$this->yyidx + -8]->minor),array('item'=>$this->yystack[$this->yyidx + -2]->minor),array('key'=>$this->yystack[$this->yyidx + -5]->minor)))); - } -#line 2471 "smarty_internal_templateparser.php" -#line 439 "smarty_internal_templateparser.y" - function yy_r55(){ - $this->_retvalue = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array(array_merge(array($this->yystack[$this->yyidx + -2]->minor),$this->yystack[$this->yyidx + -1]->minor)))); - } -#line 2476 "smarty_internal_templateparser.php" -#line 443 "smarty_internal_templateparser.y" - function yy_r56(){ - $this->_retvalue = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array_merge(array(array_merge(array($this->yystack[$this->yyidx + -3]->minor),$this->yystack[$this->yyidx + -2]->minor)),$this->yystack[$this->yyidx + -1]->minor))); - } -#line 2481 "smarty_internal_templateparser.php" -#line 448 "smarty_internal_templateparser.y" - function yy_r57(){ - $this->_retvalue = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler); - } -#line 2486 "smarty_internal_templateparser.php" -#line 454 "smarty_internal_templateparser.y" - function yy_r58(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -1]->minor.'close',array()); - } -#line 2491 "smarty_internal_templateparser.php" -#line 458 "smarty_internal_templateparser.y" - function yy_r59(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -2]->minor.'close',array(),array('modifier_list'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2496 "smarty_internal_templateparser.php" -#line 463 "smarty_internal_templateparser.y" - function yy_r60(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -3]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2501 "smarty_internal_templateparser.php" -#line 467 "smarty_internal_templateparser.y" - function yy_r61(){ - $this->_retvalue = $this->compiler->compileTag($this->yystack[$this->yyidx + -4]->minor.'close',array(),array('object_methode'=>$this->yystack[$this->yyidx + -2]->minor, 'modifier_list'=>$this->yystack[$this->yyidx + -1]->minor)); - } -#line 2506 "smarty_internal_templateparser.php" -#line 475 "smarty_internal_templateparser.y" - function yy_r62(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - $this->_retvalue[] = $this->yystack[$this->yyidx + 0]->minor; - } -#line 2512 "smarty_internal_templateparser.php" -#line 481 "smarty_internal_templateparser.y" - function yy_r63(){ - $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); - } -#line 2517 "smarty_internal_templateparser.php" -#line 486 "smarty_internal_templateparser.y" - function yy_r64(){ - $this->_retvalue = array(); - } -#line 2522 "smarty_internal_templateparser.php" -#line 491 "smarty_internal_templateparser.y" - function yy_r65(){ - if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'true'); - } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'false'); - } elseif (preg_match('~^null$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>'null'); - } else { - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>"'".$this->yystack[$this->yyidx + 0]->minor."'"); - } - } -#line 2535 "smarty_internal_templateparser.php" -#line 503 "smarty_internal_templateparser.y" - function yy_r66(){ - $this->_retvalue = array(trim($this->yystack[$this->yyidx + -1]->minor," =\n\r\t")=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2540 "smarty_internal_templateparser.php" -#line 511 "smarty_internal_templateparser.y" - function yy_r68(){ - $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; - } -#line 2545 "smarty_internal_templateparser.php" -#line 523 "smarty_internal_templateparser.y" - function yy_r71(){ - $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2550 "smarty_internal_templateparser.php" -#line 536 "smarty_internal_templateparser.y" - function yy_r73(){ - $this->yystack[$this->yyidx + -2]->minor[]=$this->yystack[$this->yyidx + 0]->minor; - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor; - } -#line 2556 "smarty_internal_templateparser.php" -#line 541 "smarty_internal_templateparser.y" - function yy_r74(){ - $this->_retvalue = array('var' => $this->yystack[$this->yyidx + -2]->minor, 'value'=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2561 "smarty_internal_templateparser.php" -#line 569 "smarty_internal_templateparser.y" - function yy_r79(){ - $this->_retvalue = '$_smarty_tpl->getStreamVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'://'. $this->yystack[$this->yyidx + 0]->minor . '\')'; - } -#line 2566 "smarty_internal_templateparser.php" -#line 574 "smarty_internal_templateparser.y" - function yy_r80(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor . trim($this->yystack[$this->yyidx + -1]->minor) . $this->yystack[$this->yyidx + 0]->minor; - } -#line 2571 "smarty_internal_templateparser.php" -#line 593 "smarty_internal_templateparser.y" - function yy_r84(){ - $this->_retvalue = $this->compiler->compileTag('private_modifier',array(),array('value'=>$this->yystack[$this->yyidx + -1]->minor,'modifierlist'=>$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2576 "smarty_internal_templateparser.php" -#line 599 "smarty_internal_templateparser.y" - function yy_r85(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2581 "smarty_internal_templateparser.php" -#line 603 "smarty_internal_templateparser.y" - function yy_r86(){ - $this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2586 "smarty_internal_templateparser.php" -#line 607 "smarty_internal_templateparser.y" - function yy_r87(){ - $this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2591 "smarty_internal_templateparser.php" -#line 615 "smarty_internal_templateparser.y" - function yy_r89(){ - $this->_retvalue = '!('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2596 "smarty_internal_templateparser.php" -#line 619 "smarty_internal_templateparser.y" - function yy_r90(){ - $this->_retvalue = '('.$this->yystack[$this->yyidx + -2]->minor.' % '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2601 "smarty_internal_templateparser.php" -#line 623 "smarty_internal_templateparser.y" - function yy_r91(){ - $this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 2606 "smarty_internal_templateparser.php" -#line 627 "smarty_internal_templateparser.y" - function yy_r92(){ - $this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 2611 "smarty_internal_templateparser.php" -#line 631 "smarty_internal_templateparser.y" - function yy_r93(){ - $this->_retvalue = '!(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2616 "smarty_internal_templateparser.php" -#line 635 "smarty_internal_templateparser.y" - function yy_r94(){ - $this->_retvalue = '(1 & '.$this->yystack[$this->yyidx + -2]->minor.' / '.$this->yystack[$this->yyidx + 0]->minor.')'; - } -#line 2621 "smarty_internal_templateparser.php" -#line 659 "smarty_internal_templateparser.y" - function yy_r100(){ - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->yystack[$this->yyidx + 0]->minor.';?>'; - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.'$_tmp'.$this->prefix_number; - } -#line 2628 "smarty_internal_templateparser.php" -#line 668 "smarty_internal_templateparser.y" - function yy_r101(){ - $this->_retvalue = $this->yystack[$this->yyidx + -6]->minor.' ? '. $this->compileVariable("'".$this->yystack[$this->yyidx + -2]->minor."'") . ' : '.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2633 "smarty_internal_templateparser.php" -#line 672 "smarty_internal_templateparser.y" - function yy_r102(){ - $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2638 "smarty_internal_templateparser.php" -#line 687 "smarty_internal_templateparser.y" - function yy_r105(){ - $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2643 "smarty_internal_templateparser.php" -#line 708 "smarty_internal_templateparser.y" - function yy_r110(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2648 "smarty_internal_templateparser.php" -#line 712 "smarty_internal_templateparser.y" - function yy_r111(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'; - } -#line 2653 "smarty_internal_templateparser.php" -#line 716 "smarty_internal_templateparser.y" - function yy_r112(){ - $this->_retvalue = '.'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2658 "smarty_internal_templateparser.php" -#line 721 "smarty_internal_templateparser.y" - function yy_r113(){ - if (preg_match('~^true$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = 'true'; - } elseif (preg_match('~^false$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = 'false'; - } elseif (preg_match('~^null$~i', $this->yystack[$this->yyidx + 0]->minor)) { - $this->_retvalue = 'null'; - } else { - $this->_retvalue = "'".$this->yystack[$this->yyidx + 0]->minor."'"; - } - } -#line 2671 "smarty_internal_templateparser.php" -#line 739 "smarty_internal_templateparser.y" - function yy_r115(){ - $this->_retvalue = "(". $this->yystack[$this->yyidx + -1]->minor .")"; - } -#line 2676 "smarty_internal_templateparser.php" -#line 754 "smarty_internal_templateparser.y" - function yy_r118(){ - if (!$this->security || isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor]) || $this->smarty->security_policy->isTrustedStaticClass($this->yystack[$this->yyidx + -2]->minor, $this->compiler)) { - if (isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor])) { - $this->_retvalue = $this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor].'::'.$this->yystack[$this->yyidx + 0]->minor; - } else { - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; - } - } else { - $this->compiler->trigger_template_error ("static class '".$this->yystack[$this->yyidx + -2]->minor."' is undefined or not allowed by security setting"); - } - } -#line 2689 "smarty_internal_templateparser.php" -#line 766 "smarty_internal_templateparser.y" - function yy_r119(){ - if ($this->yystack[$this->yyidx + -2]->minor['var'] == '\'smarty\'') { - $this->_retvalue = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index']).'::'.$this->yystack[$this->yyidx + 0]->minor; - } else { - $this->_retvalue = $this->compileVariable($this->yystack[$this->yyidx + -2]->minor['var']).$this->yystack[$this->yyidx + -2]->minor['smarty_internal_index'].'::'.$this->yystack[$this->yyidx + 0]->minor; - } - } -#line 2698 "smarty_internal_templateparser.php" -#line 775 "smarty_internal_templateparser.y" - function yy_r120(){ - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php ob_start();?>'.$this->yystack[$this->yyidx + 0]->minor.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; - $this->_retvalue = '$_tmp'.$this->prefix_number; - } -#line 2705 "smarty_internal_templateparser.php" -#line 790 "smarty_internal_templateparser.y" - function yy_r122(){ - if ($this->yystack[$this->yyidx + 0]->minor['var'] == '\'smarty\'') { - $smarty_var = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']); - $this->_retvalue = $smarty_var; - } else { - // used for array reset,next,prev,end,current - $this->last_variable = $this->yystack[$this->yyidx + 0]->minor['var']; - $this->last_index = $this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; - $this->_retvalue = $this->compileVariable($this->yystack[$this->yyidx + 0]->minor['var']).$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; - } - } -#line 2718 "smarty_internal_templateparser.php" -#line 803 "smarty_internal_templateparser.y" - function yy_r123(){ - $this->_retvalue = '$_smarty_tpl->tpl_vars['. $this->yystack[$this->yyidx + -2]->minor .']->'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2723 "smarty_internal_templateparser.php" -#line 813 "smarty_internal_templateparser.y" - function yy_r125(){ - $this->_retvalue = '$_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -1]->minor .'\')'; - } -#line 2728 "smarty_internal_templateparser.php" -#line 817 "smarty_internal_templateparser.y" - function yy_r126(){ - $this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable(\''. $this->yystack[$this->yyidx + -2]->minor .'\')) ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' :null)'; - } -#line 2733 "smarty_internal_templateparser.php" -#line 821 "smarty_internal_templateparser.y" - function yy_r127(){ - $this->_retvalue = '$_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -1]->minor .')'; - } -#line 2738 "smarty_internal_templateparser.php" -#line 825 "smarty_internal_templateparser.y" - function yy_r128(){ - $this->_retvalue = '(is_array($tmp = $_smarty_tpl->getConfigVariable('. $this->yystack[$this->yyidx + -2]->minor .')) ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' : null)'; - } -#line 2743 "smarty_internal_templateparser.php" -#line 829 "smarty_internal_templateparser.y" - function yy_r129(){ - $this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); - } -#line 2748 "smarty_internal_templateparser.php" -#line 842 "smarty_internal_templateparser.y" - function yy_r131(){ - return; - } -#line 2753 "smarty_internal_templateparser.php" -#line 848 "smarty_internal_templateparser.y" - function yy_r132(){ - $this->_retvalue = '['.$this->compileVariable($this->yystack[$this->yyidx + 0]->minor).']'; - } -#line 2758 "smarty_internal_templateparser.php" -#line 852 "smarty_internal_templateparser.y" - function yy_r133(){ - $this->_retvalue = '['.$this->compileVariable($this->yystack[$this->yyidx + -2]->minor).'->'.$this->yystack[$this->yyidx + 0]->minor.']'; - } -#line 2763 "smarty_internal_templateparser.php" -#line 856 "smarty_internal_templateparser.y" - function yy_r134(){ - $this->_retvalue = "['". $this->yystack[$this->yyidx + 0]->minor ."']"; - } -#line 2768 "smarty_internal_templateparser.php" -#line 860 "smarty_internal_templateparser.y" - function yy_r135(){ - $this->_retvalue = "[". $this->yystack[$this->yyidx + 0]->minor ."]"; - } -#line 2773 "smarty_internal_templateparser.php" -#line 864 "smarty_internal_templateparser.y" - function yy_r136(){ - $this->_retvalue = "[". $this->yystack[$this->yyidx + -1]->minor ."]"; - } -#line 2778 "smarty_internal_templateparser.php" -#line 869 "smarty_internal_templateparser.y" - function yy_r137(){ - $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; - } -#line 2783 "smarty_internal_templateparser.php" -#line 873 "smarty_internal_templateparser.y" - function yy_r138(){ - $this->_retvalue = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; - } -#line 2788 "smarty_internal_templateparser.php" -#line 883 "smarty_internal_templateparser.y" - function yy_r140(){ - $this->_retvalue = '[]'; - } -#line 2793 "smarty_internal_templateparser.php" -#line 896 "smarty_internal_templateparser.y" - function yy_r142(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2798 "smarty_internal_templateparser.php" -#line 901 "smarty_internal_templateparser.y" - function yy_r143(){ - $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; - } -#line 2803 "smarty_internal_templateparser.php" -#line 906 "smarty_internal_templateparser.y" - function yy_r144(){ - $this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 2808 "smarty_internal_templateparser.php" -#line 913 "smarty_internal_templateparser.y" - function yy_r145(){ - if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { - $this->_retvalue = $this->compiler->compileTag('private_special_variable',array(),$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor; - } else { - $this->_retvalue = $this->compileVariable($this->yystack[$this->yyidx + -1]->minor['var']).$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; - } - } -#line 2817 "smarty_internal_templateparser.php" -#line 922 "smarty_internal_templateparser.y" - function yy_r146(){ - $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; - } -#line 2822 "smarty_internal_templateparser.php" -#line 927 "smarty_internal_templateparser.y" - function yy_r147(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2827 "smarty_internal_templateparser.php" -#line 932 "smarty_internal_templateparser.y" - function yy_r148(){ - if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) == '_') { - $this->compiler->trigger_template_error (self::Err1); - } - $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2835 "smarty_internal_templateparser.php" -#line 939 "smarty_internal_templateparser.y" - function yy_r149(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->_retvalue = '->{'.$this->compileVariable($this->yystack[$this->yyidx + -1]->minor).$this->yystack[$this->yyidx + 0]->minor.'}'; - } -#line 2843 "smarty_internal_templateparser.php" -#line 946 "smarty_internal_templateparser.y" - function yy_r150(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; - } -#line 2851 "smarty_internal_templateparser.php" -#line 953 "smarty_internal_templateparser.y" - function yy_r151(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; - } -#line 2859 "smarty_internal_templateparser.php" -#line 961 "smarty_internal_templateparser.y" - function yy_r152(){ - $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2864 "smarty_internal_templateparser.php" -#line 969 "smarty_internal_templateparser.y" - function yy_r153(){ - if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction($this->yystack[$this->yyidx + -3]->minor, $this->compiler)) { - if (strcasecmp($this->yystack[$this->yyidx + -3]->minor,'isset') === 0 || strcasecmp($this->yystack[$this->yyidx + -3]->minor,'empty') === 0 || strcasecmp($this->yystack[$this->yyidx + -3]->minor,'array') === 0 || is_callable($this->yystack[$this->yyidx + -3]->minor)) { - $func_name = strtolower($this->yystack[$this->yyidx + -3]->minor); - if ($func_name == 'isset') { - if (count($this->yystack[$this->yyidx + -1]->minor) == 0) { - $this->compiler->trigger_template_error ('Illegal number of paramer in "isset()"'); - } - $par = implode(',',$this->yystack[$this->yyidx + -1]->minor); - if (strncasecmp($par,'$_smarty_tpl->getConfigVariable',strlen('$_smarty_tpl->getConfigVariable')) === 0) { - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.str_replace(')',', false)',$par).';?>'; - $isset_par = '$_tmp'.$this->prefix_number; - } else { - $isset_par=str_replace("')->value","',null,true,false)->value",$par); - } - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". $isset_par .")"; - } elseif (in_array($func_name,array('empty','reset','current','end','prev','next'))){ - if (count($this->yystack[$this->yyidx + -1]->minor) != 1) { - $this->compiler->trigger_template_error ('Illegal number of paramer in "empty()"'); - } - if ($func_name == 'empty') { - $this->_retvalue = $func_name.'('.str_replace("')->value","',null,true,false)->value",$this->yystack[$this->yyidx + -1]->minor[0]).')'; - } else { - $this->_retvalue = $func_name.'('.$this->yystack[$this->yyidx + -1]->minor[0].')'; - } - } else { - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". implode(',',$this->yystack[$this->yyidx + -1]->minor) .")"; - } - } else { - $this->compiler->trigger_template_error ("unknown function \"" . $this->yystack[$this->yyidx + -3]->minor . "\""); - } - } - } -#line 2900 "smarty_internal_templateparser.php" -#line 1007 "smarty_internal_templateparser.y" - function yy_r154(){ - if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) == '_') { - $this->compiler->trigger_template_error (self::Err1); - } - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . "(". implode(',',$this->yystack[$this->yyidx + -1]->minor) .")"; - } -#line 2908 "smarty_internal_templateparser.php" -#line 1014 "smarty_internal_templateparser.y" - function yy_r155(){ - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->compileVariable("'".$this->yystack[$this->yyidx + -3]->minor."'").';?>'; - $this->_retvalue = '$_tmp'.$this->prefix_number.'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; - } -#line 2918 "smarty_internal_templateparser.php" -#line 1025 "smarty_internal_templateparser.y" - function yy_r156(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array($this->yystack[$this->yyidx + 0]->minor)); - } -#line 2923 "smarty_internal_templateparser.php" -#line 1042 "smarty_internal_templateparser.y" - function yy_r159(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor))); - } -#line 2928 "smarty_internal_templateparser.php" -#line 1046 "smarty_internal_templateparser.y" - function yy_r160(){ - $this->_retvalue = array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor)); - } -#line 2933 "smarty_internal_templateparser.php" -#line 1054 "smarty_internal_templateparser.y" - function yy_r162(){ - $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); - } -#line 2938 "smarty_internal_templateparser.php" -#line 1062 "smarty_internal_templateparser.y" - function yy_r163(){ - $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); - } -#line 2943 "smarty_internal_templateparser.php" -#line 1096 "smarty_internal_templateparser.y" - function yy_r170(){ - $this->_retvalue = '$'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2948 "smarty_internal_templateparser.php" -#line 1101 "smarty_internal_templateparser.y" - function yy_r171(){ - $this->_retvalue = '$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; - } -#line 2953 "smarty_internal_templateparser.php" -#line 1107 "smarty_internal_templateparser.y" - function yy_r172(){ - $this->_retvalue = '=='; - } -#line 2958 "smarty_internal_templateparser.php" -#line 1111 "smarty_internal_templateparser.y" - function yy_r173(){ - $this->_retvalue = '!='; - } -#line 2963 "smarty_internal_templateparser.php" -#line 1115 "smarty_internal_templateparser.y" - function yy_r174(){ - $this->_retvalue = '>'; - } -#line 2968 "smarty_internal_templateparser.php" -#line 1119 "smarty_internal_templateparser.y" - function yy_r175(){ - $this->_retvalue = '<'; - } -#line 2973 "smarty_internal_templateparser.php" -#line 1123 "smarty_internal_templateparser.y" - function yy_r176(){ - $this->_retvalue = '>='; - } -#line 2978 "smarty_internal_templateparser.php" -#line 1127 "smarty_internal_templateparser.y" - function yy_r177(){ - $this->_retvalue = '<='; - } -#line 2983 "smarty_internal_templateparser.php" -#line 1131 "smarty_internal_templateparser.y" - function yy_r178(){ - $this->_retvalue = '==='; - } -#line 2988 "smarty_internal_templateparser.php" -#line 1135 "smarty_internal_templateparser.y" - function yy_r179(){ - $this->_retvalue = '!=='; - } -#line 2993 "smarty_internal_templateparser.php" -#line 1139 "smarty_internal_templateparser.y" - function yy_r180(){ - $this->_retvalue = '%'; - } -#line 2998 "smarty_internal_templateparser.php" -#line 1143 "smarty_internal_templateparser.y" - function yy_r181(){ - $this->_retvalue = '&&'; - } -#line 3003 "smarty_internal_templateparser.php" -#line 1147 "smarty_internal_templateparser.y" - function yy_r182(){ - $this->_retvalue = '||'; - } -#line 3008 "smarty_internal_templateparser.php" -#line 1151 "smarty_internal_templateparser.y" - function yy_r183(){ - $this->_retvalue = ' XOR '; - } -#line 3013 "smarty_internal_templateparser.php" -#line 1158 "smarty_internal_templateparser.y" - function yy_r184(){ - $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; - } -#line 3018 "smarty_internal_templateparser.php" -#line 1166 "smarty_internal_templateparser.y" - function yy_r186(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; - } -#line 3023 "smarty_internal_templateparser.php" -#line 1174 "smarty_internal_templateparser.y" - function yy_r188(){ - $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 3028 "smarty_internal_templateparser.php" -#line 1178 "smarty_internal_templateparser.y" - function yy_r189(){ - $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; - } -#line 3033 "smarty_internal_templateparser.php" -#line 1190 "smarty_internal_templateparser.y" - function yy_r191(){ - $this->_retvalue = "''"; - } -#line 3038 "smarty_internal_templateparser.php" -#line 1194 "smarty_internal_templateparser.y" - function yy_r192(){ - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php(); - } -#line 3043 "smarty_internal_templateparser.php" -#line 1199 "smarty_internal_templateparser.y" - function yy_r193(){ - $this->yystack[$this->yyidx + -1]->minor->append_subtree($this->yystack[$this->yyidx + 0]->minor); - $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; - } -#line 3049 "smarty_internal_templateparser.php" -#line 1204 "smarty_internal_templateparser.y" - function yy_r194(){ - $this->_retvalue = new _smarty_doublequoted($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 3054 "smarty_internal_templateparser.php" -#line 1208 "smarty_internal_templateparser.y" - function yy_r195(){ - $this->_retvalue = new _smarty_code($this, '(string)'.$this->yystack[$this->yyidx + -1]->minor); - } -#line 3059 "smarty_internal_templateparser.php" -#line 1216 "smarty_internal_templateparser.y" - function yy_r197(){ - $this->_retvalue = new _smarty_code($this, '(string)$_smarty_tpl->tpl_vars[\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\']->value'); - } -#line 3064 "smarty_internal_templateparser.php" -#line 1224 "smarty_internal_templateparser.y" - function yy_r199(){ - $this->_retvalue = new _smarty_code($this, '(string)('.$this->yystack[$this->yyidx + -1]->minor.')'); - } -#line 3069 "smarty_internal_templateparser.php" -#line 1228 "smarty_internal_templateparser.y" - function yy_r200(){ - $this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 3074 "smarty_internal_templateparser.php" -#line 1232 "smarty_internal_templateparser.y" - function yy_r201(){ - $this->_retvalue = new _smarty_dq_content($this, $this->yystack[$this->yyidx + 0]->minor); - } -#line 3079 "smarty_internal_templateparser.php" - - private $_retvalue; - - function yy_reduce($yyruleno) - { - $yymsp = $this->yystack[$this->yyidx]; - if (self::$yyTraceFILE && $yyruleno >= 0 - && $yyruleno < count(self::$yyRuleName)) { - fprintf(self::$yyTraceFILE, "%sReduce (%d) [%s].\n", - self::$yyTracePrompt, $yyruleno, - self::$yyRuleName[$yyruleno]); - } - - $this->_retvalue = $yy_lefthand_side = null; - if (array_key_exists($yyruleno, self::$yyReduceMap)) { - // call the action - $this->_retvalue = null; - $this->{'yy_r' . self::$yyReduceMap[$yyruleno]}(); - $yy_lefthand_side = $this->_retvalue; - } - $yygoto = self::$yyRuleInfo[$yyruleno]['lhs']; - $yysize = self::$yyRuleInfo[$yyruleno]['rhs']; - $this->yyidx -= $yysize; - for($i = $yysize; $i; $i--) { - // pop all of the right-hand side parameters - array_pop($this->yystack); - } - $yyact = $this->yy_find_reduce_action($this->yystack[$this->yyidx]->stateno, $yygoto); - if ($yyact < self::YYNSTATE) { - if (!self::$yyTraceFILE && $yysize) { - $this->yyidx++; - $x = new TP_yyStackEntry; - $x->stateno = $yyact; - $x->major = $yygoto; - $x->minor = $yy_lefthand_side; - $this->yystack[$this->yyidx] = $x; - } else { - $this->yy_shift($yyact, $yygoto, $yy_lefthand_side); - } - } elseif ($yyact == self::YYNSTATE + self::YYNRULE + 1) { - $this->yy_accept(); - } - } - - function yy_parse_failed() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sFail!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $this->yy_pop_parser_stack(); - } - } - - function yy_syntax_error($yymajor, $TOKEN) - { -#line 77 "smarty_internal_templateparser.y" - - $this->internalError = true; - $this->yymajor = $yymajor; - $this->compiler->trigger_template_error(); -#line 3142 "smarty_internal_templateparser.php" - } - - function yy_accept() - { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sAccept!\n", self::$yyTracePrompt); - } - while ($this->yyidx >= 0) { - $stack = $this->yy_pop_parser_stack(); - } -#line 69 "smarty_internal_templateparser.y" - - $this->successful = !$this->internalError; - $this->internalError = false; - $this->retvalue = $this->_retvalue; - //echo $this->retvalue."\n\n"; -#line 3160 "smarty_internal_templateparser.php" - } - - function doParse($yymajor, $yytokenvalue) - { - $yyerrorhit = 0; /* True if yymajor has invoked an error */ - - if ($this->yyidx === null || $this->yyidx < 0) { - $this->yyidx = 0; - $this->yyerrcnt = -1; - $x = new TP_yyStackEntry; - $x->stateno = 0; - $x->major = 0; - $this->yystack = array(); - array_push($this->yystack, $x); - } - $yyendofinput = ($yymajor==0); - - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sInput %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - - do { - $yyact = $this->yy_find_shift_action($yymajor); - if ($yymajor < self::YYERRORSYMBOL && - !$this->yy_is_expected_token($yymajor)) { - // force a syntax error - $yyact = self::YY_ERROR_ACTION; - } - if ($yyact < self::YYNSTATE) { - $this->yy_shift($yyact, $yymajor, $yytokenvalue); - $this->yyerrcnt--; - if ($yyendofinput && $this->yyidx >= 0) { - $yymajor = 0; - } else { - $yymajor = self::YYNOCODE; - } - } elseif ($yyact < self::YYNSTATE + self::YYNRULE) { - $this->yy_reduce($yyact - self::YYNSTATE); - } elseif ($yyact == self::YY_ERROR_ACTION) { - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sSyntax Error!\n", - self::$yyTracePrompt); - } - if (self::YYERRORSYMBOL) { - if ($this->yyerrcnt < 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $yymx = $this->yystack[$this->yyidx]->major; - if ($yymx == self::YYERRORSYMBOL || $yyerrorhit ){ - if (self::$yyTraceFILE) { - fprintf(self::$yyTraceFILE, "%sDiscard input token %s\n", - self::$yyTracePrompt, $this->yyTokenName[$yymajor]); - } - $this->yy_destructor($yymajor, $yytokenvalue); - $yymajor = self::YYNOCODE; - } else { - while ($this->yyidx >= 0 && - $yymx != self::YYERRORSYMBOL && - ($yyact = $this->yy_find_shift_action(self::YYERRORSYMBOL)) >= self::YYNSTATE - ){ - $this->yy_pop_parser_stack(); - } - if ($this->yyidx < 0 || $yymajor==0) { - $this->yy_destructor($yymajor, $yytokenvalue); - $this->yy_parse_failed(); - $yymajor = self::YYNOCODE; - } elseif ($yymx != self::YYERRORSYMBOL) { - $u2 = 0; - $this->yy_shift($yyact, self::YYERRORSYMBOL, $u2); - } - } - $this->yyerrcnt = 3; - $yyerrorhit = 1; - } else { - if ($this->yyerrcnt <= 0) { - $this->yy_syntax_error($yymajor, $yytokenvalue); - } - $this->yyerrcnt = 3; - $this->yy_destructor($yymajor, $yytokenvalue); - if ($yyendofinput) { - $this->yy_parse_failed(); - } - $yymajor = self::YYNOCODE; - } - } else { - $this->yy_accept(); - $yymajor = self::YYNOCODE; - } - } while ($yymajor != self::YYNOCODE && $this->yyidx >= 0); - } -}
View file
Smarty-3.1.13.tar.gz/development/lexer/smarty_internal_templateparser.y
Deleted
@@ -1,1246 +0,0 @@ -/** -* Smarty Internal Plugin Templateparser -* -* This is the template parser -* -* -* @package Smarty -* @subpackage Compiler -* @author Uwe Tews -*/ -%name TP_ -%declare_class {class Smarty_Internal_Templateparser} -%include_class -{ - const Err1 = "Security error: Call to private object member not allowed"; - const Err2 = "Security error: Call to dynamic object member not allowed"; - const Err3 = "PHP in template not allowed. Use SmartyBC to enable it"; - // states whether the parse was successful or not - public $successful = true; - public $retvalue = 0; - private $lex; - private $internalError = false; - private $strip = false; - - function __construct($lex, $compiler) { - $this->lex = $lex; - $this->compiler = $compiler; - $this->smarty = $this->compiler->smarty; - $this->template = $this->compiler->template; - $this->compiler->has_variable_string = false; - $this->compiler->prefix_code = array(); - $this->prefix_number = 0; - $this->block_nesting_level = 0; - if ($this->security = isset($this->smarty->security_policy)) { - $this->php_handling = $this->smarty->security_policy->php_handling; - } else { - $this->php_handling = $this->smarty->php_handling; - } - $this->is_xml = false; - $this->asp_tags = (ini_get('asp_tags') != '0'); - $this->current_buffer = $this->root_buffer = new _smarty_template_buffer($this); - } - - public static function escape_start_tag($tag_text) { - $tag = preg_replace('/\A<\?(.*)\z/', '<<?php ?>?\1', $tag_text, -1 , $count); //Escape tag - return $tag; - } - - public static function escape_end_tag($tag_text) { - return '?<?php ?>>'; - } - - public function compileVariable($variable) { - if (strpos($variable,'(') == 0) { - // not a variable variable - $var = trim($variable,'\''); - $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable($var, null, true, false)->nocache; - $this->template->properties['variables'][$var] = $this->compiler->tag_nocache|$this->compiler->nocache; - } -// return '(isset($_smarty_tpl->tpl_vars['. $variable .'])?$_smarty_tpl->tpl_vars['. $variable .']->value:$_smarty_tpl->getVariable('. $variable .')->value)'; - return '$_smarty_tpl->tpl_vars['. $variable .']->value'; - } -} - - -%token_prefix TP_ - -%parse_accept -{ - $this->successful = !$this->internalError; - $this->internalError = false; - $this->retvalue = $this->_retvalue; - //echo $this->retvalue."\n\n"; -} - -%syntax_error -{ - $this->internalError = true; - $this->yymajor = $yymajor; - $this->compiler->trigger_template_error(); -} - -%stack_overflow -{ - $this->internalError = true; - $this->compiler->trigger_template_error("Stack overflow in template parser"); -} - -%left VERT. -%left COLON. - -// -// complete template -// -start(res) ::= template. { - res = $this->root_buffer->to_smarty_php(); -} - -// -// loop over template elements -// - // single template element -template ::= template_element(e). { - $this->current_buffer->append_subtree(e); -} - - // loop of elements -template ::= template template_element(e). { - $this->current_buffer->append_subtree(e); -} - - // empty template -template ::= . - -// -// template elements -// - // Smarty tag -template_element(res)::= smartytag(st). { - if ($this->compiler->has_code) { - $tmp =''; foreach ($this->compiler->prefix_code as $code) {$tmp.=$code;} $this->compiler->prefix_code=array(); - res = new _smarty_tag($this, $this->compiler->processNocacheCode($tmp.st,true)); - } else { - res = new _smarty_tag($this, st); - } - $this->compiler->has_variable_string = false; - $this->block_nesting_level = count($this->compiler->_tag_stack); -} - - // comments -template_element(res)::= COMMENT. { - res = new _smarty_tag($this, ''); -} - - // Literal -template_element(res) ::= literal(l). { - res = new _smarty_text($this, l); -} - - // '<?php' tag -template_element(res)::= PHPSTARTTAG(st). { - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - res = new _smarty_text($this, self::escape_start_tag(st)); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - res = new _smarty_text($this, htmlspecialchars(st, ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if (!($this->smarty instanceof SmartyBC)) { - $this->compiler->trigger_template_error (self::Err3); - } - res = new _smarty_text($this, $this->compiler->processNocacheCode('<?php', true)); - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - res = new _smarty_text($this, ''); - } -} - - // '?>' tag -template_element(res)::= PHPENDTAG. { - if ($this->is_xml) { - $this->compiler->tag_nocache = true; - $this->is_xml = false; - $save = $this->template->has_nocache_code; - res = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true)); - $this->template->has_nocache_code = $save; - } elseif ($this->php_handling == Smarty::PHP_PASSTHRU) { - res = new _smarty_text($this, '?<?php ?>>'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - res = new _smarty_text($this, htmlspecialchars('?>', ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - res = new _smarty_text($this, $this->compiler->processNocacheCode('?>', true)); - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - res = new _smarty_text($this, ''); - } -} - - // '<%' tag -template_element(res)::= ASPSTARTTAG(st). { - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - res = new _smarty_text($this, '<<?php ?>%'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - res = new _smarty_text($this, htmlspecialchars(st, ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if ($this->asp_tags) { - if (!($this->smarty instanceof SmartyBC)) { - $this->compiler->trigger_template_error (self::Err3); - } - res = new _smarty_text($this, $this->compiler->processNocacheCode('<%', true)); - } else { - res = new _smarty_text($this, '<<?php ?>%'); - } - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - if ($this->asp_tags) { - res = new _smarty_text($this, ''); - } else { - res = new _smarty_text($this, '<<?php ?>%'); - } - } -} - - // '%>' tag -template_element(res)::= ASPENDTAG(et). { - if ($this->php_handling == Smarty::PHP_PASSTHRU) { - res = new _smarty_text($this, '%<?php ?>>'); - } elseif ($this->php_handling == Smarty::PHP_QUOTE) { - res = new _smarty_text($this, htmlspecialchars('%>', ENT_QUOTES)); - } elseif ($this->php_handling == Smarty::PHP_ALLOW) { - if ($this->asp_tags) { - res = new _smarty_text($this, $this->compiler->processNocacheCode('%>', true)); - } else { - res = new _smarty_text($this, '%<?php ?>>'); - } - } elseif ($this->php_handling == Smarty::PHP_REMOVE) { - if ($this->asp_tags) { - res = new _smarty_text($this, ''); - } else { - res = new _smarty_text($this, '%<?php ?>>'); - } - } -} - -template_element(res)::= FAKEPHPSTARTTAG(o). { - if ($this->strip) { - res = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', self::escape_start_tag(o))); - } else { - res = new _smarty_text($this, self::escape_start_tag(o)); - } -} - - // XML tag -template_element(res)::= XMLTAG. { - $this->compiler->tag_nocache = true; - $this->is_xml = true; - $save = $this->template->has_nocache_code; - res = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '<?xml';?>", $this->compiler, true)); - $this->template->has_nocache_code = $save; -} - - // template text -template_element(res)::= TEXT(o). { - if ($this->strip) { - res = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', o)); - } else { - res = new _smarty_text($this, o); - } -} - - // strip on -template_element(res)::= STRIPON(d). { - $this->strip = true; - res = new _smarty_text($this, ''); -} - // strip off -template_element(res)::= STRIPOFF(d). { - $this->strip = false; - res = new _smarty_text($this, ''); -} - - // Litteral -literal(res) ::= LITERALSTART LITERALEND. { - res = ''; -} - -literal(res) ::= LITERALSTART literal_elements(l) LITERALEND. { - res = l; -} - -literal_elements(res) ::= literal_elements(l1) literal_element(l2). { - res = l1.l2; -} - -literal_elements(res) ::= . { - res = ''; -} - -literal_element(res) ::= literal(l). { - res = l; -} - -literal_element(res) ::= LITERAL(l). { - res = l; -} - -literal_element(res) ::= PHPSTARTTAG(st). { - res = self::escape_start_tag(st); -} - -literal_element(res) ::= FAKEPHPSTARTTAG(st). { - res = self::escape_start_tag(st); -} - -literal_element(res) ::= PHPENDTAG(et). { - res = self::escape_end_tag(et); -} - -literal_element(res) ::= ASPSTARTTAG(st). { - res = '<<?php ?>%'; -} - -literal_element(res) ::= ASPENDTAG(et). { - res = '%<?php ?>>'; -} - -// -// output tags start here -// - - // output with optional attributes -smartytag(res) ::= LDEL value(e) RDEL. { - res = $this->compiler->compileTag('private_print_expression',array(),array('value'=>e)); -} - -smartytag(res) ::= LDEL value(e) modifierlist(l) attributes(a) RDEL. { - res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e, 'modifierlist'=>l)); -} - -smartytag(res) ::= LDEL value(e) attributes(a) RDEL. { - res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e)); -} - -smartytag(res) ::= LDEL expr(e) modifierlist(l) attributes(a) RDEL. { - res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e,'modifierlist'=>l)); -} - -smartytag(res) ::= LDEL expr(e) attributes(a) RDEL. { - res = $this->compiler->compileTag('private_print_expression',a,array('value'=>e)); -} - -// -// Smarty tags start here -// - - // assign new style -smartytag(res) ::= LDEL DOLLAR ID(i) EQUAL value(e) RDEL. { - res = $this->compiler->compileTag('assign',array(array('value'=>e),array('var'=>"'".i."'"))); -} - -smartytag(res) ::= LDEL DOLLAR ID(i) EQUAL expr(e) RDEL. { - res = $this->compiler->compileTag('assign',array(array('value'=>e),array('var'=>"'".i."'"))); -} - -smartytag(res) ::= LDEL DOLLAR ID(i) EQUAL expr(e) attributes(a) RDEL. { - res = $this->compiler->compileTag('assign',array_merge(array(array('value'=>e),array('var'=>"'".i."'")),a)); -} - -smartytag(res) ::= LDEL varindexed(vi) EQUAL expr(e) attributes(a) RDEL. { - res = $this->compiler->compileTag('assign',array_merge(array(array('value'=>e),array('var'=>vi['var'])),a),array('smarty_internal_index'=>vi['smarty_internal_index'])); -} - - // tag with optional Smarty2 style attributes -smartytag(res) ::= LDEL ID(i) attributes(a) RDEL. { - res = $this->compiler->compileTag(i,a); -} - -smartytag(res) ::= LDEL ID(i) RDEL. { - res = $this->compiler->compileTag(i,array()); -} - - // registered object tag -smartytag(res) ::= LDEL ID(i) PTR ID(m) attributes(a) RDEL. { - res = $this->compiler->compileTag(i,a,array('object_methode'=>m)); -} - - // tag with modifier and optional Smarty2 style attributes -smartytag(res) ::= LDEL ID(i) modifierlist(l)attributes(a) RDEL. { - res = '<?php ob_start();?>'.$this->compiler->compileTag(i,a).'<?php echo '; - res .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>l,'value'=>'ob_get_clean()')).'?>'; -} - - // registered object tag with modifiers -smartytag(res) ::= LDEL ID(i) PTR ID(me) modifierlist(l) attributes(a) RDEL. { - res = '<?php ob_start();?>'.$this->compiler->compileTag(i,a,array('object_methode'=>me)).'<?php echo '; - res .= $this->compiler->compileTag('private_modifier',array(),array('modifierlist'=>l,'value'=>'ob_get_clean()')).'?>'; -} - - // {if}, {elseif} and {while} tag -smartytag(res) ::= LDELIF(i) expr(ie) RDEL. { - $tag = trim(substr(i,$this->lex->ldel_length)); - res = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>ie)); -} - -smartytag(res) ::= LDELIF(i) expr(ie) attributes(a) RDEL. { - $tag = trim(substr(i,$this->lex->ldel_length)); - res = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,a,array('if condition'=>ie)); -} - -smartytag(res) ::= LDELIF(i) statement(ie) RDEL. { - $tag = trim(substr(i,$this->lex->ldel_length)); - res = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,array(),array('if condition'=>ie)); -} - -smartytag(res) ::= LDELIF(i) statement(ie) attributes(a) RDEL. { - $tag = trim(substr(i,$this->lex->ldel_length)); - res = $this->compiler->compileTag(($tag == 'else if')? 'elseif' : $tag,a,array('if condition'=>ie)); -} - - // {for} tag -smartytag(res) ::= LDELFOR statements(st) SEMICOLON optspace expr(ie) SEMICOLON optspace DOLLAR varvar(v2) foraction(e2) attributes(a) RDEL. { - res = $this->compiler->compileTag('for',array_merge(a,array(array('start'=>st),array('ifexp'=>ie),array('var'=>v2),array('step'=>e2))),1); -} - - foraction(res) ::= EQUAL expr(e). { - res = '='.e; -} - - foraction(res) ::= INCDEC(e). { - res = e; -} - -smartytag(res) ::= LDELFOR statement(st) TO expr(v) attributes(a) RDEL. { - res = $this->compiler->compileTag('for',array_merge(a,array(array('start'=>st),array('to'=>v))),0); -} - -smartytag(res) ::= LDELFOR statement(st) TO expr(v) STEP expr(v2) attributes(a) RDEL. { - res = $this->compiler->compileTag('for',array_merge(a,array(array('start'=>st),array('to'=>v),array('step'=>v2))),0); -} - - // {foreach} tag -smartytag(res) ::= LDELFOREACH attributes(a) RDEL. { - res = $this->compiler->compileTag('foreach',a); -} - - // {foreach $array as $var} tag -smartytag(res) ::= LDELFOREACH SPACE value(v1) AS DOLLAR varvar(v0) attributes(a) RDEL. { - res = $this->compiler->compileTag('foreach',array_merge(a,array(array('from'=>v1),array('item'=>v0)))); -} - -smartytag(res) ::= LDELFOREACH SPACE value(v1) AS DOLLAR varvar(v2) APTR DOLLAR varvar(v0) attributes(a) RDEL. { - res = $this->compiler->compileTag('foreach',array_merge(a,array(array('from'=>v1),array('item'=>v0),array('key'=>v2)))); -} - -smartytag(res) ::= LDELFOREACH SPACE expr(e) AS DOLLAR varvar(v0) attributes(a) RDEL. { - res = $this->compiler->compileTag('foreach',array_merge(a,array(array('from'=>e),array('item'=>v0)))); -} - -smartytag(res) ::= LDELFOREACH SPACE expr(e) AS DOLLAR varvar(v1) APTR DOLLAR varvar(v0) attributes(a) RDEL. { - res = $this->compiler->compileTag('foreach',array_merge(a,array(array('from'=>e),array('item'=>v0),array('key'=>v1)))); -} - - // {setfilter} -smartytag(res) ::= LDELSETFILTER ID(m) modparameters(p) RDEL. { - res = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array(array_merge(array(m),p)))); -} - -smartytag(res) ::= LDELSETFILTER ID(m) modparameters(p) modifierlist(l) RDEL. { - res = $this->compiler->compileTag('setfilter',array(),array('modifier_list'=>array_merge(array(array_merge(array(m),p)),l))); -} - - // {$smarty.block.child} -smartytag(res) ::= SMARTYBLOCKCHILD. { - res = SMARTY_INTERNAL_COMPILE_BLOCK::compileChildBlock($this->compiler); -} - - - // end of block tag {/....} -smartytag(res) ::= LDELSLASH ID(i) RDEL. { - res = $this->compiler->compileTag(i.'close',array()); -} - -smartytag(res) ::= LDELSLASH ID(i) modifierlist(l) RDEL. { - res = $this->compiler->compileTag(i.'close',array(),array('modifier_list'=>l)); -} - - // end of block object tag {/....} -smartytag(res) ::= LDELSLASH ID(i) PTR ID(m) RDEL. { - res = $this->compiler->compileTag(i.'close',array(),array('object_methode'=>m)); -} - -smartytag(res) ::= LDELSLASH ID(i) PTR ID(m) modifierlist(l) RDEL. { - res = $this->compiler->compileTag(i.'close',array(),array('object_methode'=>m, 'modifier_list'=>l)); -} - -// -//Attributes of Smarty tags -// - // list of attributes -attributes(res) ::= attributes(a1) attribute(a2). { - res = a1; - res[] = a2; -} - - // single attribute -attributes(res) ::= attribute(a). { - res = array(a); -} - - // no attributes -attributes(res) ::= . { - res = array(); -} - - // attribute -attribute(res) ::= SPACE ID(v) EQUAL ID(id). { - if (preg_match('~^true$~i', id)) { - res = array(v=>'true'); - } elseif (preg_match('~^false$~i', id)) { - res = array(v=>'false'); - } elseif (preg_match('~^null$~i', id)) { - res = array(v=>'null'); - } else { - res = array(v=>"'".id."'"); - } -} - -attribute(res) ::= ATTR(v) expr(e). { - res = array(trim(v," =\n\r\t")=>e); -} - -attribute(res) ::= ATTR(v) value(e). { - res = array(trim(v," =\n\r\t")=>e); -} - -attribute(res) ::= SPACE ID(v). { - res = "'".v."'"; -} - -attribute(res) ::= SPACE expr(e). { - res = e; -} - -attribute(res) ::= SPACE value(v). { - res = v; -} - -attribute(res) ::= SPACE INTEGER(i) EQUAL expr(e). { - res = array(i=>e); -} - - - -// -// statement -// -statements(res) ::= statement(s). { - res = array(s); -} - -statements(res) ::= statements(s1) COMMA statement(s). { - s1[]=s; - res = s1; -} - -statement(res) ::= DOLLAR varvar(v) EQUAL expr(e). { - res = array('var' => v, 'value'=>e); -} - -statement(res) ::= varindexed(vi) EQUAL expr(e). { - res = array('var' => vi, 'value'=>e); -} - -statement(res) ::= OPENP statement(st) CLOSEP. { - res = st; -} - - -// -// expressions -// - - // single value -expr(res) ::= value(v). { - res = v; -} - - // ternary -expr(res) ::= ternary(v). { - res = v; -} - - // resources/streams -expr(res) ::= DOLLAR ID(i) COLON ID(i2). { - res = '$_smarty_tpl->getStreamVariable(\''. i .'://'. i2 . '\')'; -} - - // arithmetic expression -expr(res) ::= expr(e) MATH(m) value(v). { - res = e . trim(m) . v; -} - -expr(res) ::= expr(e) UNIMATH(m) value(v). { - res = e . trim(m) . v; -} - - // bit operation -expr(res) ::= expr(e) ANDSYM(m) value(v). { - res = e . trim(m) . v; -} - - // array -expr(res) ::= array(a). { - res = a; -} - - // modifier -expr(res) ::= expr(e) modifierlist(l). { - res = $this->compiler->compileTag('private_modifier',array(),array('value'=>e,'modifierlist'=>l)); -} - -// if expression - // simple expression -expr(res) ::= expr(e1) ifcond(c) expr(e2). { - res = e1.c.e2; -} - -expr(res) ::= expr(e1) ISIN array(a). { - res = 'in_array('.e1.','.a.')'; -} - -expr(res) ::= expr(e1) ISIN value(v). { - res = 'in_array('.e1.',(array)'.v.')'; -} - -expr(res) ::= expr(e1) lop(o) expr(e2). { - res = e1.o.e2; -} - -expr(res) ::= expr(e1) ISDIVBY expr(e2). { - res = '!('.e1.' % '.e2.')'; -} - -expr(res) ::= expr(e1) ISNOTDIVBY expr(e2). { - res = '('.e1.' % '.e2.')'; -} - -expr(res) ::= expr(e1) ISEVEN. { - res = '!(1 & '.e1.')'; -} - -expr(res) ::= expr(e1) ISNOTEVEN. { - res = '(1 & '.e1.')'; -} - -expr(res) ::= expr(e1) ISEVENBY expr(e2). { - res = '!(1 & '.e1.' / '.e2.')'; -} - -expr(res) ::= expr(e1) ISNOTEVENBY expr(e2). { - res = '(1 & '.e1.' / '.e2.')'; -} - -expr(res) ::= expr(e1) ISODD. { - res = '(1 & '.e1.')'; -} - -expr(res) ::= expr(e1) ISNOTODD. { - res = '!(1 & '.e1.')'; -} - -expr(res) ::= expr(e1) ISODDBY expr(e2). { - res = '(1 & '.e1.' / '.e2.')'; -} - -expr(res) ::= expr(e1) ISNOTODDBY expr(e2). { - res = '!(1 & '.e1.' / '.e2.')'; -} - -expr(res) ::= value(v1) INSTANCEOF(i) ID(id). { - res = v1.i.id; -} - -expr(res) ::= value(v1) INSTANCEOF(i) value(v2). { - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.v2.';?>'; - res = v1.i.'$_tmp'.$this->prefix_number; -} - -// -// ternary -// -ternary(res) ::= OPENP expr(v) CLOSEP QMARK DOLLAR ID(e1) COLON expr(e2). { - res = v.' ? '. $this->compileVariable("'".e1."'") . ' : '.e2; -} - -ternary(res) ::= OPENP expr(v) CLOSEP QMARK expr(e1) COLON expr(e2). { - res = v.' ? '.e1.' : '.e2; -} - - // value -value(res) ::= variable(v). { - res = v; -} - - // +/- value -value(res) ::= UNIMATH(m) value(v). { - res = m.v; -} - - // logical negation -value(res) ::= NOT value(v). { - res = '!'.v; -} - -value(res) ::= TYPECAST(t) value(v). { - res = t.v; -} - -value(res) ::= variable(v) INCDEC(o). { - res = v.o; -} - - // numeric -value(res) ::= HEX(n). { - res = n; -} - -value(res) ::= INTEGER(n). { - res = n; -} - -value(res) ::= INTEGER(n1) DOT INTEGER(n2). { - res = n1.'.'.n2; -} - -value(res) ::= INTEGER(n1) DOT. { - res = n1.'.'; -} - -value(res) ::= DOT INTEGER(n1). { - res = '.'.n1; -} - - // ID, true, false, null -value(res) ::= ID(id). { - if (preg_match('~^true$~i', id)) { - res = 'true'; - } elseif (preg_match('~^false$~i', id)) { - res = 'false'; - } elseif (preg_match('~^null$~i', id)) { - res = 'null'; - } else { - res = "'".id."'"; - } -} - - // function call -value(res) ::= function(f). { - res = f; -} - - // expression -value(res) ::= OPENP expr(e) CLOSEP. { - res = "(". e .")"; -} - - // singele quoted string -value(res) ::= SINGLEQUOTESTRING(t). { - res = t; -} - - // double quoted string -value(res) ::= doublequoted_with_quotes(s). { - res = s; -} - - // static class access -value(res) ::= ID(c) DOUBLECOLON static_class_access(r). { - if (!$this->security || isset($this->smarty->registered_classes[c]) || $this->smarty->security_policy->isTrustedStaticClass(c, $this->compiler)) { - if (isset($this->smarty->registered_classes[c])) { - res = $this->smarty->registered_classes[c].'::'.r; - } else { - res = c.'::'.r; - } - } else { - $this->compiler->trigger_template_error ("static class '".c."' is undefined or not allowed by security setting"); - } -} - -value(res) ::= varindexed(vi) DOUBLECOLON static_class_access(r). { - if (vi['var'] == '\'smarty\'') { - res = $this->compiler->compileTag('private_special_variable',array(),vi['smarty_internal_index']).'::'.r; - } else { - res = $this->compileVariable(vi['var']).vi['smarty_internal_index'].'::'.r; - } -} - - // Smarty tag -value(res) ::= smartytag(st). { - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php ob_start();?>'.st.'<?php $_tmp'.$this->prefix_number.'=ob_get_clean();?>'; - res = '$_tmp'.$this->prefix_number; -} - -value(res) ::= value(v) modifierlist(l). { - res = $this->compiler->compileTag('private_modifier',array(),array('value'=>v,'modifierlist'=>l)); -} - - -// -// variables -// - // Smarty variable (optional array) -variable(res) ::= varindexed(vi). { - if (vi['var'] == '\'smarty\'') { - $smarty_var = $this->compiler->compileTag('private_special_variable',array(),vi['smarty_internal_index']); - res = $smarty_var; - } else { - // used for array reset,next,prev,end,current - $this->last_variable = vi['var']; - $this->last_index = vi['smarty_internal_index']; - res = $this->compileVariable(vi['var']).vi['smarty_internal_index']; - } -} - - // variable with property -variable(res) ::= DOLLAR varvar(v) AT ID(p). { - res = '$_smarty_tpl->tpl_vars['. v .']->'.p; -} - - // object -variable(res) ::= object(o). { - res = o; -} - - // config variable -variable(res) ::= HATCH ID(i) HATCH. { - res = '$_smarty_tpl->getConfigVariable(\''. i .'\')'; -} - -variable(res) ::= HATCH ID(i) HATCH arrayindex(a). { - res = '(is_array($tmp = $_smarty_tpl->getConfigVariable(\''. i .'\')) ? $tmp'.a.' :null)'; -} - -variable(res) ::= HATCH variable(v) HATCH. { - res = '$_smarty_tpl->getConfigVariable('. v .')'; -} - -variable(res) ::= HATCH variable(v) HATCH arrayindex(a). { - res = '(is_array($tmp = $_smarty_tpl->getConfigVariable('. v .')) ? $tmp'.a.' : null)'; -} - -varindexed(res) ::= DOLLAR varvar(v) arrayindex(a). { - res = array('var'=>v, 'smarty_internal_index'=>a); -} - -// -// array index -// - // multiple array index -arrayindex(res) ::= arrayindex(a1) indexdef(a2). { - res = a1.a2; -} - - // no array index -arrayindex ::= . { - return; -} - -// single index definition - // Smarty2 style index -indexdef(res) ::= DOT DOLLAR varvar(v). { - res = '['.$this->compileVariable(v).']'; -} - -indexdef(res) ::= DOT DOLLAR varvar(v) AT ID(p). { - res = '['.$this->compileVariable(v).'->'.p.']'; -} - -indexdef(res) ::= DOT ID(i). { - res = "['". i ."']"; -} - -indexdef(res) ::= DOT INTEGER(n). { - res = "[". n ."]"; -} - -indexdef(res) ::= DOT LDEL expr(e) RDEL. { - res = "[". e ."]"; -} - - // section tag index -indexdef(res) ::= OPENB ID(i)CLOSEB. { - res = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.i.'\'][\'index\']').']'; -} - -indexdef(res) ::= OPENB ID(i) DOT ID(i2) CLOSEB. { - res = '['.$this->compiler->compileTag('private_special_variable',array(),'[\'section\'][\''.i.'\'][\''.i2.'\']').']'; -} - - // PHP style index -indexdef(res) ::= OPENB expr(e) CLOSEB. { - res = "[". e ."]"; -} - - // für assign append array -indexdef(res) ::= OPENB CLOSEB. { - res = '[]'; -} - -// -// variable variable names -// - // singel identifier element -varvar(res) ::= varvarele(v). { - res = v; -} - - // sequence of identifier elements -varvar(res) ::= varvar(v1) varvarele(v2). { - res = v1.'.'.v2; -} - - // fix sections of element -varvarele(res) ::= ID(s). { - res = '\''.s.'\''; -} - - // variable sections of element -varvarele(res) ::= LDEL expr(e) RDEL. { - res = '('.e.')'; -} - -// -// objects -// -object(res) ::= varindexed(vi) objectchain(oc). { - if (vi['var'] == '\'smarty\'') { - res = $this->compiler->compileTag('private_special_variable',array(),vi['smarty_internal_index']).oc; - } else { - res = $this->compileVariable(vi['var']).vi['smarty_internal_index'].oc; - } -} - - // single element -objectchain(res) ::= objectelement(oe). { - res = oe; -} - - // chain of elements -objectchain(res) ::= objectchain(oc) objectelement(oe). { - res = oc.oe; -} - - // variable -objectelement(res)::= PTR ID(i) arrayindex(a). { - if ($this->security && substr(i,0,1) == '_') { - $this->compiler->trigger_template_error (self::Err1); - } - res = '->'.i.a; -} - -objectelement(res)::= PTR DOLLAR varvar(v) arrayindex(a). { - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - res = '->{'.$this->compileVariable(v).a.'}'; -} - -objectelement(res)::= PTR LDEL expr(e) RDEL arrayindex(a). { - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - res = '->{'.e.a.'}'; -} - -objectelement(res)::= PTR ID(ii) LDEL expr(e) RDEL arrayindex(a). { - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - res = '->{\''.ii.'\'.'.e.a.'}'; -} - - // method -objectelement(res)::= PTR method(f). { - res = '->'.f; -} - - -// -// function -// -function(res) ::= ID(f) OPENP params(p) CLOSEP. { - if (!$this->security || $this->smarty->security_policy->isTrustedPhpFunction(f, $this->compiler)) { - if (strcasecmp(f,'isset') === 0 || strcasecmp(f,'empty') === 0 || strcasecmp(f,'array') === 0 || is_callable(f)) { - $func_name = strtolower(f); - if ($func_name == 'isset') { - if (count(p) == 0) { - $this->compiler->trigger_template_error ('Illegal number of paramer in "isset()"'); - } - $par = implode(',',p); - if (strncasecmp($par,'$_smarty_tpl->getConfigVariable',strlen('$_smarty_tpl->getConfigVariable')) === 0) { - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.str_replace(')',', false)',$par).';?>'; - $isset_par = '$_tmp'.$this->prefix_number; - } else { - $isset_par=str_replace("')->value","',null,true,false)->value",$par); - } - res = f . "(". $isset_par .")"; - } elseif (in_array($func_name,array('empty','reset','current','end','prev','next'))){ - if (count(p) != 1) { - $this->compiler->trigger_template_error ('Illegal number of paramer in "empty()"'); - } - if ($func_name == 'empty') { - res = $func_name.'('.str_replace("')->value","',null,true,false)->value",p[0]).')'; - } else { - res = $func_name.'('.p[0].')'; - } - } else { - res = f . "(". implode(',',p) .")"; - } - } else { - $this->compiler->trigger_template_error ("unknown function \"" . f . "\""); - } - } -} - -// -// method -// -method(res) ::= ID(f) OPENP params(p) CLOSEP. { - if ($this->security && substr(f,0,1) == '_') { - $this->compiler->trigger_template_error (self::Err1); - } - res = f . "(". implode(',',p) .")"; -} - -method(res) ::= DOLLAR ID(f) OPENP params(p) CLOSEP. { - if ($this->security) { - $this->compiler->trigger_template_error (self::Err2); - } - $this->prefix_number++; - $this->compiler->prefix_code[] = '<?php $_tmp'.$this->prefix_number.'='.$this->compileVariable("'".f."'").';?>'; - res = '$_tmp'.$this->prefix_number.'('. implode(',',p) .')'; -} - -// function/method parameter - // multiple parameters -params(res) ::= params(p) COMMA expr(e). { - res = array_merge(p,array(e)); -} - - // single parameter -params(res) ::= expr(e). { - res = array(e); -} - - // kein parameter -params(res) ::= . { - res = array(); -} - -// -// modifier -// -modifierlist(res) ::= modifierlist(l) modifier(m) modparameters(p). { - res = array_merge(l,array(array_merge(m,p))); -} - -modifierlist(res) ::= modifier(m) modparameters(p). { - res = array(array_merge(m,p)); -} - -modifier(res) ::= VERT AT ID(m). { - res = array(m); -} - -modifier(res) ::= VERT ID(m). { - res = array(m); -} - -// -// modifier parameter -// - // multiple parameter -modparameters(res) ::= modparameters(mps) modparameter(mp). { - res = array_merge(mps,mp); -} - - // no parameter -modparameters(res) ::= . { - res = array(); -} - - // parameter expression -modparameter(res) ::= COLON value(mp). { - res = array(mp); -} - -modparameter(res) ::= COLON array(mp). { - res = array(mp); -} - - // static class methode call -static_class_access(res) ::= method(m). { - res = m; -} - - // static class methode call with object chainig -static_class_access(res) ::= method(m) objectchain(oc). { - res = m.oc; -} - - // static class constant -static_class_access(res) ::= ID(v). { - res = v; -} - - // static class variables -static_class_access(res) ::= DOLLAR ID(v) arrayindex(a). { - res = '$'.v.a; -} - - // static class variables with object chain -static_class_access(res) ::= DOLLAR ID(v) arrayindex(a) objectchain(oc). { - res = '$'.v.a.oc; -} - - -// if conditions and operators -ifcond(res) ::= EQUALS. { - res = '=='; -} - -ifcond(res) ::= NOTEQUALS. { - res = '!='; -} - -ifcond(res) ::= GREATERTHAN. { - res = '>'; -} - -ifcond(res) ::= LESSTHAN. { - res = '<'; -} - -ifcond(res) ::= GREATEREQUAL. { - res = '>='; -} - -ifcond(res) ::= LESSEQUAL. { - res = '<='; -} - -ifcond(res) ::= IDENTITY. { - res = '==='; -} - -ifcond(res) ::= NONEIDENTITY. { - res = '!=='; -} - -ifcond(res) ::= MOD. { - res = '%'; -} - -lop(res) ::= LAND. { - res = '&&'; -} - -lop(res) ::= LOR. { - res = '||'; -} - -lop(res) ::= LXOR. { - res = ' XOR '; -} - -// -// ARRAY element assignment -// -array(res) ::= OPENB arrayelements(a) CLOSEB. { - res = 'array('.a.')'; -} - -arrayelements(res) ::= arrayelement(a). { - res = a; -} - -arrayelements(res) ::= arrayelements(a1) COMMA arrayelement(a). { - res = a1.','.a; -} - -arrayelements ::= . { - return; -} - -arrayelement(res) ::= value(e1) APTR expr(e2). { - res = e1.'=>'.e2; -} - -arrayelement(res) ::= ID(i) APTR expr(e2). { - res = '\''.i.'\'=>'.e2; -} - -arrayelement(res) ::= expr(e). { - res = e; -} - - -// -// double qouted strings -// -doublequoted_with_quotes(res) ::= QUOTE QUOTE. { - res = "''"; -} - -doublequoted_with_quotes(res) ::= QUOTE doublequoted(s) QUOTE. { - res = s->to_smarty_php(); -} - - -doublequoted(res) ::= doublequoted(o1) doublequotedcontent(o2). { - o1->append_subtree(o2); - res = o1; -} - -doublequoted(res) ::= doublequotedcontent(o). { - res = new _smarty_doublequoted($this, o); -} - -doublequotedcontent(res) ::= BACKTICK variable(v) BACKTICK. { - res = new _smarty_code($this, '(string)'.v); -} - -doublequotedcontent(res) ::= BACKTICK expr(e) BACKTICK. { - res = new _smarty_code($this, '(string)'.e); -} - -doublequotedcontent(res) ::= DOLLARID(i). { - res = new _smarty_code($this, '(string)$_smarty_tpl->tpl_vars[\''. substr(i,1) .'\']->value'); -} - -doublequotedcontent(res) ::= LDEL variable(v) RDEL. { - res = new _smarty_code($this, '(string)'.v); -} - -doublequotedcontent(res) ::= LDEL expr(e) RDEL. { - res = new _smarty_code($this, '(string)('.e.')'); -} - -doublequotedcontent(res) ::= smartytag(st). { - res = new _smarty_tag($this, st); -} - -doublequotedcontent(res) ::= TEXT(o). { - res = new _smarty_dq_content($this, o); -} - - -// -// optional space -// -optspace(res) ::= SPACE(s). { - res = s; -} - -optspace(res) ::= . { - res = ''; -}
View file
Smarty-3.1.13.tar.gz/distribution
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/README
Deleted
@@ -1,574 +0,0 @@ -Smarty 3.x - -Author: Monte Ohrt <monte at ohrt dot com > -Author: Uwe Tews - -AN INTRODUCTION TO SMARTY 3 - -NOTICE FOR 3.1 release: - -Please see the SMARTY_3.1_NOTES.txt file that comes with the distribution. - -NOTICE for 3.0.5 release: - -Smarty now follows the PHP error_reporting level by default. If PHP does not mask E_NOTICE and you try to access an unset template variable, you will now get an E_NOTICE warning. To revert to the old behavior: - -$smarty->error_reporting = E_ALL & ~E_NOTICE; - -NOTICE for 3.0 release: - -IMPORTANT: Some API adjustments have been made between the RC4 and 3.0 release. -We felt it is better to make these now instead of after a 3.0 release, then have to -immediately deprecate APIs in 3.1. Online documentation has been updated -to reflect these changes. Specifically: - ----- API CHANGES RC4 -> 3.0 ---- - -$smarty->register->* -$smarty->unregister->* -$smarty->utility->* -$samrty->cache->* - -Have all been changed to local method calls such as: - -$smarty->clearAllCache() -$smarty->registerFoo() -$smarty->unregisterFoo() -$smarty->testInstall() -etc. - -Registration of function, block, compiler, and modifier plugins have been -consolidated under two API calls: - -$smarty->registerPlugin(...) -$smarty->unregisterPlugin(...) - -Registration of pre, post, output and variable filters have been -consolidated under two API calls: - -$smarty->registerFilter(...) -$smarty->unregisterFilter(...) - -Please refer to the online documentation for all specific changes: - -http://www.smarty.net/documentation - ----- - -The Smarty 3 API has been refactored to a syntax geared -for consistency and modularity. The Smarty 2 API syntax is still supported, but -will throw a deprecation notice. You can disable the notices, but it is highly -recommended to adjust your syntax to Smarty 3, as the Smarty 2 syntax must run -through an extra rerouting wrapper. - -Basically, all Smarty methods now follow the "fooBarBaz" camel case syntax. Also, -all Smarty properties now have getters and setters. So for example, the property -$smarty->cache_dir can be set with $smarty->setCacheDir('foo/') and can be -retrieved with $smarty->getCacheDir(). - -Some of the Smarty 3 APIs have been revoked such as the "is*" methods that were -just duplicate functions of the now available "get*" methods. - -Here is a rundown of the Smarty 3 API: - -$smarty->fetch($template, $cache_id = null, $compile_id = null, $parent = null) -$smarty->display($template, $cache_id = null, $compile_id = null, $parent = null) -$smarty->isCached($template, $cache_id = null, $compile_id = null) -$smarty->createData($parent = null) -$smarty->createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) -$smarty->enableSecurity() -$smarty->disableSecurity() -$smarty->setTemplateDir($template_dir) -$smarty->addTemplateDir($template_dir) -$smarty->templateExists($resource_name) -$smarty->loadPlugin($plugin_name, $check = true) -$smarty->loadFilter($type, $name) -$smarty->setExceptionHandler($handler) -$smarty->addPluginsDir($plugins_dir) -$smarty->getGlobal($varname = null) -$smarty->getRegisteredObject($name) -$smarty->getDebugTemplate() -$smarty->setDebugTemplate($tpl_name) -$smarty->assign($tpl_var, $value = null, $nocache = false) -$smarty->assignGlobal($varname, $value = null, $nocache = false) -$smarty->assignByRef($tpl_var, &$value, $nocache = false) -$smarty->append($tpl_var, $value = null, $merge = false, $nocache = false) -$smarty->appendByRef($tpl_var, &$value, $merge = false) -$smarty->clearAssign($tpl_var) -$smarty->clearAllAssign() -$smarty->configLoad($config_file, $sections = null) -$smarty->getVariable($variable, $_ptr = null, $search_parents = true, $error_enable = true) -$smarty->getConfigVariable($variable) -$smarty->getStreamVariable($variable) -$smarty->getConfigVars($varname = null) -$smarty->clearConfig($varname = null) -$smarty->getTemplateVars($varname = null, $_ptr = null, $search_parents = true) -$smarty->clearAllCache($exp_time = null, $type = null) -$smarty->clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null) - -$smarty->registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = array()) - -$smarty->registerObject($object_name, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array()) - -$smarty->registerFilter($type, $function_name) -$smarty->registerResource($resource_type, $function_names) -$smarty->registerDefaultPluginHandler($function_name) -$smarty->registerDefaultTemplateHandler($function_name) - -$smarty->unregisterPlugin($type, $tag) -$smarty->unregisterObject($object_name) -$smarty->unregisterFilter($type, $function_name) -$smarty->unregisterResource($resource_type) - -$smarty->compileAllTemplates($extention = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null) -$smarty->clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) -$smarty->testInstall() - -// then all the getters/setters, available for all properties. Here are a few: - -$caching = $smarty->getCaching(); // get $smarty->caching -$smarty->setCaching(true); // set $smarty->caching -$smarty->setDeprecationNotices(false); // set $smarty->deprecation_notices -$smarty->setCacheId($id); // set $smarty->cache_id -$debugging = $smarty->getDebugging(); // get $smarty->debugging - - -FILE STRUCTURE - -The Smarty 3 file structure is similar to Smarty 2: - -/libs/ - Smarty.class.php -/libs/sysplugins/ - internal.* -/libs/plugins/ - function.mailto.php - modifier.escape.php - ... - -A lot of Smarty 3 core functionality lies in the sysplugins directory; you do -not need to change any files here. The /libs/plugins/ folder is where Smarty -plugins are located. You can add your own here, or create a separate plugin -directory, just the same as Smarty 2. You will still need to create your own -/cache/, /templates/, /templates_c/, /configs/ folders. Be sure /cache/ and -/templates_c/ are writable. - -The typical way to use Smarty 3 should also look familiar: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('foo','bar'); -$smarty->display('index.tpl'); - - -However, Smarty 3 works completely different on the inside. Smarty 3 is mostly -backward compatible with Smarty 2, except for the following items: - -*) Smarty 3 is PHP 5 only. It will not work with PHP 4. -*) The {php} tag is disabled by default. Enable with $smarty->allow_php_tag=true. -*) Delimiters surrounded by whitespace are no longer treated as Smarty tags. - Therefore, { foo } will not compile as a tag, you must use {foo}. This change - Makes Javascript/CSS easier to work with, eliminating the need for {literal}. - This can be disabled by setting $smarty->auto_literal = false; -*) The Smarty 3 API is a bit different. Many Smarty 2 API calls are deprecated - but still work. You will want to update your calls to Smarty 3 for maximum - efficiency. - - -There are many things that are new to Smarty 3. Here are the notable items: - -LEXER/PARSER -============ - -Smarty 3 now uses a lexing tokenizer for its parser/compiler. Basically, this -means Smarty has some syntax additions that make life easier such as in-template -math, shorter/intuitive function parameter options, infinite function recursion, -more accurate error handling, etc. - - -WHAT IS NEW IN SMARTY TEMPLATE SYNTAX -===================================== - -Smarty 3 allows expressions almost anywhere. Expressions can include PHP -functions as long as they are not disabled by the security policy, object -methods and properties, etc. The {math} plugin is no longer necessary but -is still supported for BC. - -Examples: -{$x+$y} will output the sum of x and y. -{$foo = strlen($bar)} function in assignment -{assign var=foo value= $x+$y} in attributes -{$foo = myfunct( ($x+$y)*3 )} as function parameter -{$foo[$x+3]} as array index - -Smarty tags can be used as values within other tags. -Example: {$foo={counter}+3} - -Smarty tags can also be used inside double quoted strings. -Example: {$foo="this is message {counter}"} - -You can define arrays within templates. -Examples: -{assign var=foo value=[1,2,3]} -{assign var=foo value=['y'=>'yellow','b'=>'blue']} -Arrays can be nested. -{assign var=foo value=[1,[9,8],3]} - -There is a new short syntax supported for assigning variables. -Example: {$foo=$bar+2} - -You can assign a value to a specific array element. If the variable exists but -is not an array, it is converted to an array before the new values are assigned. -Examples: -{$foo['bar']=1} -{$foo['bar']['blar']=1} - -You can append values to an array. If the variable exists but is not an array, -it is converted to an array before the new values are assigned. -Example: {$foo[]=1} - -You can use a PHP-like syntax for accessing array elements, as well as the -original "dot" notation. -Examples: -{$foo[1]} normal access -{$foo['bar']} -{$foo['bar'][1]} -{$foo[$x+$x]} index may contain any expression -{$foo[$bar[1]]} nested index -{$foo[section_name]} smarty section access, not array access! - -The original "dot" notation stays, and with improvements. -Examples: -{$foo.a.b.c} => $foo['a']['b']['c'] -{$foo.a.$b.c} => $foo['a'][$b]['c'] with variable index -{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] with expression as index -{$foo.a.{$b.c}} => $foo['a'][$b['c']] with nested index - -note that { and } are used to address ambiguties when nesting the dot syntax. - -Variable names themselves can be variable and contain expressions. -Examples: -$foo normal variable -$foo_{$bar} variable name containing other variable -$foo_{$x+$y} variable name containing expressions -$foo_{$bar}_buh_{$blar} variable name with multiple segments -{$foo_{$x}} will output the variable $foo_1 if $x has a value of 1. - -Object method chaining is implemented. -Example: {$object->method1($x)->method2($y)} - -{for} tag added for looping (replacement for {section} tag): -{for $x=0, $y=count($foo); $x<$y; $x++} .... {/for} -Any number of statements can be used separated by comma as the first -inital expression at {for}. - -{for $x = $start to $end step $step} ... {/for}is in the SVN now . -You can use also -{for $x = $start to $end} ... {/for} -In this case the step value will be automaticall 1 or -1 depending on the start and end values. -Instead of $start and $end you can use any valid expression. -Inside the loop the following special vars can be accessed: -$x@iteration = number of iteration -$x@total = total number of iterations -$x@first = true on first iteration -$x@last = true on last iteration - - -The Smarty 2 {section} syntax is still supported. - -New shorter {foreach} syntax to loop over an array. -Example: {foreach $myarray as $var}...{/foreach} - -Within the foreach loop, properties are access via: - -$var@key foreach $var array key -$var@iteration foreach current iteration count (1,2,3...) -$var@index foreach current index count (0,1,2...) -$var@total foreach $var array total -$var@first true on first iteration -$var@last true on last iteration - -The Smarty 2 {foreach} tag syntax is still supported. - -NOTE: {$bar[foo]} still indicates a variable inside of a {section} named foo. -If you want to access an array element with index foo, you must use quotes -such as {$bar['foo']}, or use the dot syntax {$bar.foo}. - -while block tag is now implemented: -{while $foo}...{/while} -{while $x lt 10}...{/while} - -Direct access to PHP functions: -Just as you can use PHP functions as modifiers directly, you can now access -PHP functions directly, provided they are permitted by security settings: -{time()} - -There is a new {function}...{/function} block tag to implement a template function. -This enables reuse of code sequences like a plugin function. It can call itself recursively. -Template function must be called with the new {call name=foo...} tag. - -Example: - -Template file: -{function name=menu level=0} - <ul class="level{$level}"> - {foreach $data as $entry} - {if is_array($entry)} - <li>{$entry@key}</li> - {call name=menu data=$entry level=$level+1} - {else} - <li>{$entry}</li> - {/if} - {/foreach} - </ul> -{/function} - -{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => - ['item3-3-1','item3-3-2']],'item4']} - -{call name=menu data=$menu} - - -Generated output: - * item1 - * item2 - * item3 - o item3-1 - o item3-2 - o item3-3 - + item3-3-1 - + item3-3-2 - * item4 - -The function tag itself must have the "name" attribute. This name is the tag -name when calling the function. The function tag may have any number of -additional attributes. These will be default settings for local variables. - -New {nocache} block function: -{nocache}...{/nocache} will declare a section of the template to be non-cached -when template caching is enabled. - -New nocache attribute: -You can declare variable/function output as non-cached with the nocache attribute. -Examples: - -{$foo nocache=true} -{$foo nocache} /* same */ - -{foo bar="baz" nocache=true} -{foo bar="baz" nocache} /* same */ - -{time() nocache=true} -{time() nocache} /* same */ - -Or you can also assign the variable in your script as nocache: -$smarty->assign('foo',$something,true); // third param is nocache setting -{$foo} /* non-cached */ - -$smarty.current_dir returns the directory name of the current template. - -You can use strings directly as templates with the "string" resource type. -Examples: -$smarty->display('string:This is my template, {$foo}!'); // php -{include file="string:This is my template, {$foo}!"} // template - - - -VARIABLE SCOPE / VARIABLE STORAGE -================================= - -In Smarty 2, all assigned variables were stored within the Smarty object. -Therefore, all variables assigned in PHP were accessible by all subsequent -fetch and display template calls. - -In Smarty 3, we have the choice to assign variables to the main Smarty object, -to user-created data objects, and to user-created template objects. -These objects can be chained. The object at the end of a chain can access all -variables belonging to that template and all variables within the parent objects. -The Smarty object can only be the root of a chain, but a chain can be isolated -from the Smarty object. - -All known Smarty assignment interfaces will work on the data and template objects. - -Besides the above mentioned objects, there is also a special storage area for -global variables. - -A Smarty data object can be created as follows: -$data = $smarty->createData(); // create root data object -$data->assign('foo','bar'); // assign variables as usual -$data->config_load('my.conf'); // load config file - -$data= $smarty->createData($smarty); // create data object having a parent link to -the Smarty object - -$data2= $smarty->createData($data); // create data object having a parent link to -the $data data object - -A template object can be created by using the createTemplate method. It has the -same parameter assignments as the fetch() or display() method. -Function definition: -function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) - -The first parameter can be a template name, a smarty object or a data object. - -Examples: -$tpl = $smarty->createTemplate('mytpl.tpl'); // create template object not linked to any parent -$tpl->assign('foo','bar'); // directly assign variables -$tpl->config_load('my.conf'); // load config file - -$tpl = $smarty->createTemplate('mytpl.tpl',$smarty); // create template having a parent link to the Smarty object -$tpl = $smarty->createTemplate('mytpl.tpl',$data); // create template having a parent link to the $data object - -The standard fetch() and display() methods will implicitly create a template object. -If the $parent parameter is not specified in these method calls, the template object -is will link back to the Smarty object as it's parent. - -If a template is called by an {include...} tag from another template, the -subtemplate links back to the calling template as it's parent. - -All variables assigned locally or from a parent template are accessible. If the -template creates or modifies a variable by using the {assign var=foo...} or -{$foo=...} tags, these new values are only known locally (local scope). When the -template exits, none of the new variables or modifications can be seen in the -parent template(s). This is same behavior as in Smarty 2. - -With Smarty 3, we can assign variables with a scope attribute which allows the -availablility of these new variables or modifications globally (ie in the parent -templates.) - -Possible scopes are local, parent, root and global. -Examples: -{assign var=foo value='bar'} // no scope is specified, the default 'local' -{$foo='bar'} // same, local scope -{assign var=foo value='bar' scope='local'} // same, local scope - -{assign var=foo value='bar' scope='parent'} // Values will be available to the parent object -{$foo='bar' scope='parent'} // (normally the calling template) - -{assign var=foo value='bar' scope='root'} // Values will be exported up to the root object, so they can -{$foo='bar' scope='root'} // be seen from all templates using the same root. - -{assign var=foo value='bar' scope='global'} // Values will be exported to global variable storage, -{$foo='bar' scope='global'} // they are available to any and all templates. - - -The scope attribute can also be attached to the {include...} tag. In this case, -the specified scope will be the default scope for all assignments within the -included template. - - -PLUGINS -======= - -Smarty3 are following the same coding rules as in Smarty2. -The only difference is that the template object is passed as additional third parameter. - -smarty_plugintype_name (array $params, object $smarty, object $template) - -The Smarty 2 plugins are still compatible as long as they do not make use of specific Smarty2 internals. - - -TEMPLATE INHERITANCE: -===================== - -With template inheritance you can define blocks, which are areas that can be -overriden by child templates, so your templates could look like this: - -parent.tpl: -<html> - <head> - <title>{block name='title'}My site name{/block}</title> - </head> - <body> - <h1>{block name='page-title'}Default page title{/block}</h1> - <div id="content"> - {block name='content'} - Default content - {/block} - </div> - </body> -</html> - -child.tpl: -{extends file='parent.tpl'} -{block name='title'} -Child title -{/block} - -grandchild.tpl: -{extends file='child.tpl'} -{block name='title'}Home - {$smarty.block.parent}{/block} -{block name='page-title'}My home{/block} -{block name='content'} - {foreach $images as $img} - <img src="{$img.url}" alt="{$img.description}" /> - {/foreach} -{/block} - -We redefined all the blocks here, however in the title block we used {$smarty.block.parent}, -which tells Smarty to insert the default content from the parent template in its place. -The content block was overriden to display the image files, and page-title has also be -overriden to display a completely different title. - -If we render grandchild.tpl we will get this: -<html> - <head> - <title>Home - Child title</title> - </head> - <body> - <h1>My home</h1> - <div id="content"> - <img src="/example.jpg" alt="image" /> - <img src="/example2.jpg" alt="image" /> - <img src="/example3.jpg" alt="image" /> - </div> - </body> -</html> - -NOTE: In the child templates everything outside the {extends} or {block} tag sections -is ignored. - -The inheritance tree can be as big as you want (meaning you can extend a file that -extends another one that extends another one and so on..), but be aware that all files -have to be checked for modifications at runtime so the more inheritance the more overhead you add. - -Instead of defining the parent/child relationships with the {extends} tag in the child template you -can use the resource as follow: - -$smarty->display('extends:parent.tpl|child.tpl|grandchild.tpl'); - -Child {block} tags may optionally have a append or prepend attribute. In this case the parent block content -is appended or prepended to the child block content. - -{block name='title' append} My title {/block} - - -PHP STREAMS: -============ - -(see online documentation) - -VARIBLE FILTERS: -================ - -(see online documentation) - - -STATIC CLASS ACCESS AND NAMESPACE SUPPORT -========================================= - -You can register a class with optional namespace for the use in the template like: - -$smarty->register->templateClass('foo','name\name2\myclass'); - -In the template you can use it like this: -{foo::method()} etc. - - -======================= - -Please look through it and send any questions/suggestions/etc to the forums. - -http://www.phpinsider.com/smarty-forum/viewtopic.php?t=14168 - -Monte and Uwe
View file
Smarty-3.1.13.tar.gz/distribution/change_log.txt
Deleted
@@ -1,2153 +0,0 @@ -===== trunk ===== -13.01.2013 -- enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130) - -09.01.2013 -- bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966) -- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127) -- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128) -- added abstract method declaration doCompile() in Smarty_Internal_TemplateCompilerBase (Forum Topic 23969) - -06.01.2013 -- Allow '://' URL syntax in template names of stream resources (Issue #129) - -27.11.2012 -- bugfix wrong variable usage in smarty_internal_utility.php (Issue #125) - -26.11.2012 -- bugfix global variable assigned within template function are not seen after template function exit (Forum Topic 23800) - -24.11.2012 -- made SmartyBC loadable via composer (Issue #124) - -20.11.2012 -- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771) - -13.11.2012 -- adding attribute "strict" to html_options, html_checkboxes, html_radios to only print disabled/readonly attributes if their values are true or "disabled"/"readonly" (Issue #120) - -01.11.2012 -- bugfix muteExcpetedErrors() would screw up for non-readable paths (Issue #118) - -===== Smarty-3.1.12 ===== -14.09.2012 -- bugfix template inheritance failed to compile with delimiters {/ and /} (Forum Topic 23008) - -11.09.2012 -- bugfix escape Smarty exception messages to avoid possible script execution - -10.09.2012 -- bugfix tag option flags and shorttag attributes did not work when rdel started with '=' (Forum Topic 22979) - -31.08.2012 -- bugfix resolving relative paths broke in some circumstances (Issue #114) - -22.08.2012 -- bugfix test MBString availability through mb_split, as it could've been compiled without regex support (--enable-mbregex). - Either we get MBstring's full package, or we pretend it's not there at all. - -21.08.2012 -- bugfix $auto_literal = false did not work with { block} tags in child templates - (problem was reintroduced after fix in 3.1.7)(Forum Topic 20581) - -17.08.2012 -- bugfix compiled code of nocache sections could contain wrong escaping (Forum Topic 22810) - -15.08.2012 -- bugfix template inheritance did produce wrong code if subtemplates with {block} was - included several times (from smarty-developers forum) - -14.08.2012 -- bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110) - -01.08.2012 -- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608) - -30.07.2012 --bugfix {assign} in a nocache section should not overwrite existing variable values - during compilation (issue 109) - -28.07.2012 -- bugfix array access of config variables did not work (Forum Topic 22527) - -19.07.2012 -- bugfix the default plugin handler did create wrong compiled code for static class methods - from external script files (issue 108) - -===== Smarty-3.1.11 ===== -30.06.2012 -- bugfix {block.. hide} did not work as nested child (Forum Topic 22216) - -25.06.2012 -- bugfix the default plugin handler did not allow static class methods for modifier (issue 85) - -24.06.2012 -- bugfix escape modifier support for PHP < 5.2.3 (Forum Topic 21176) - -11.06.2012 -- bugfix the patch for Topic 21856 did break tabs between tag attributes (Forum Topic 22124) - -===== Smarty-3.1.10 ===== -09.06.2012 -- bugfix the compiler did ignore registered compiler plugins for closing tags (Forum Topic 22094) -- bugfix the patch for Topic 21856 did break multiline tags (Forum Topic 22124) - -===== Smarty-3.1.9 ===== -07.06.2012 -- bugfix fetch() and display() with relative paths (Issue 104) -- bugfix treat "0000-00-00" as 0 in modifier.date_format (Issue 103) - -24.05.2012 -- bugfix Smarty_Internal_Write_File::writeFile() could cause race-conditions on linux systems (Issue 101) -- bugfix attribute parameter names of plugins may now contain also "-" and ":" (Forum Topic 21856) -- bugfix add compile_id to cache key of of source (Issue 97) - -22.05.2012 -- bugfix recursive {include} within {section} did fail (Smarty developer group) - -12.05.2012 -- bugfix {html_options} did not properly escape values (Issue 98) - -03.05.2012 -- bugfix make HTTP protocall version variable (issue 96) - -02.05.2012 -- bugfix {nocache}{block}{plugin}... did produce wrong compiled code when caching is disabled (Forum Topic 21572, issue 95) - -12.04.2012 -- bugfix Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93) -- bugfix concurrent cache updates could create a warning (Forum Topic 21403) - -08.04.2012 -- bugfix "\\" was not escaped correctly when generating nocache code (Forum Topic 21364) - -30.03.2012 -- bugfix template inheritance did not throw exception when a parent template was deleted (issue 90) - -27.03.2012 -- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325) -- bugfix implement Smarty2's behaviour of variables assigned by reference in SmartyBC. {assign} will affect all references. - (issue 88) - -21.03.2012 -- bugfix compileAllTemplates() and compileAllConfig() did not return the number of compiled files (Forum Topic 21286) - -13.03.2012 -- correction of yesterdays bugfix (Forum Topic 21175 and 21182) - -12.03.2012 -- bugfix a double quoted string of "$foo" did not compile into PHP "$foo" (Forum Topic 21175) -- bugfix template inheritance did set $merge_compiled_includes globally true - -03.03.2012 -- optimization of compiling speed when same modifier was used several times - -02.03.2012 -- enhancement the default plugin handler can now also resolve undefined modifier (Smarty::PLUGIN_MODIFIER) - (Issue 85) - -===== Smarty-3.1.8 ===== -19.02.2012 -- bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags - (reported by mh and Issue 83) -- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289) - - -07.02.2012 -- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996) -- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000) - -06.02.2012 -- improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980) -- bugfix fetch('extends:foo.tpl') always yielded $source->exists == true (Forum Topic 20980) -- added modifier unescape:"url", fix (Forum Topic 20980) -- improvement replaced some calls of preg_replace with str_replace (Issue 73) - -30.01.2012 -- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated - -27.01.2012 -- bugfix Smarty did not a template name of "0" (Forum Topic 20895) - -20.01.2012 -- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74) -- improvment remove unneeded assigments (Issue 75 and 76) -- fixed typo in template parser -- bugfix output filter must not run before writing cache when template does contain nocache code (Issue 71) - -02.01.2012 -- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753) - -29.12.2011 -- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724) -- bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) - -28.12.2011 -- bugfix Smarty's internal header code must be excluded from postfilters (issue 71) - -22.12.2011 -- bugfix the new lexer of 17.12.2011 did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680) -- bugfix template inheritace did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680) - -20.12.2011 -- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return - content after {$smarty.block.child} (Forum Topic 20564) - -===== Smarty-3.1.7 ===== -18.12.2011 -- bugfix strings ending with " in multiline strings of config files failed to compile (issue #67) -- added chaining to Smarty_Internal_Templatebase -- changed unloadFilter() to not return a boolean in favor of chaining and API conformity -- bugfix unregisterObject() raised notice when object to unregister did not exist -- changed internals to use Smarty::$_MBSTRING ($_CHARSET, $_DATE_FORMAT) for better unit testing -- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452) -- added Smarty_Security::isTrustedUri() and Smarty_Security::$trusted_uri to validate - remote resource calls through {fetch} and {html_image} (Forum Topic 20627) - -17.12.2011 -- improvement of compiling speed by new handling of plain text blocks in the lexer/parser (issue #68) - -16.12.2011 -- bugfix the source exits flag and timestamp was not setup when template was in php include path (issue #69) - -9.12.2011 -- bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549) -- bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581) -- bugfix template inheritance: do not include code of {include} in overloaded {block} into compiled - parent template (Issue #66} -- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return expected - result (Forum Topic 20564) - -===== Smarty-3.1.6 ===== -30.11.2011 -- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce - an exception (Forum Topic 20531) - -29.11.2011 -- bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512) - -25.11.2011 -- bugfix {html_select_date} and {html_slecet_time} did not default to current time if "time" was not specified - since r4432 (issue 60) - -24.11.2011 -- bugfix a subtemplate later used as main template did use old variable values - -21.11.2011 -- bugfix cache file could include unneeded modifier plugins under certain condition - -18.11.2011 -- bugfix declare all directory properties private to map direct access to getter/setter also on extended Smarty class - -16.11.2011 -- bugfix Smarty_Resource::load() did not always return a proper resource handler (Forum Topic 20414) -- added escape argument to html_checkboxes and html_radios (Forum Topic 20425) - -===== Smarty-3.1.5 ===== -14.11.2011 -- bugfix allow space between function name and open bracket (forum topic 20375) - -09.11.2011 -- bugfix different behaviour of uniqid() on cygwin. See https://bugs.php.net/bug.php?id=34908 - (forum topic 20343) - -01.11.2011 -- bugfix {if} and {while} tags without condition did not throw a SmartyCompilerException (Issue #57) -- bugfix multiline strings in config files could fail on longer strings (reopened Issue #55) - -22.10.2011 -- bugfix smarty_mb_from_unicode() would not decode unicode-points properly -- bugfix use catch Exception instead UnexpectedValueException in - clearCompiledTemplate to be PHP 5.2 compatible - -21.10.2011 -- bugfix apostrophe in plugins_dir path name failed (forum topic 20199) -- improvement sha1() for array keys longer than 150 characters -- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128) - -20.10.2011 -- @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it. -- bugfix Smarty::clearCompiledTemplate() threw an Exception if $cache_id was not present in $compile_dir when $use_sub_dirs = true. -- bugfix {html_select_date} and {html_select_time} did not properly handle empty time arguments (Forum Topic 20190) -- improvement removed unnecessary sha1() - -19.10.2011 -- revert PHP4 constructor message -- fixed PHP4 constructor message - -===== Smarty-3.1.4 ===== -19.10.2011 -- added exception when using PHP4 style constructor - -16.10.2011 -- bugfix testInstall() did not propery check cache_dir and compile_dir - -15.10.2011 -- bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264) - -14.10.2011 -- bugfix unique_resource did not properly apply to compiled resources (Forum Topic 20128) -- add locking to custom resources (Forum Post 75252) -- add Smarty_Internal_Template::clearCache() to accompany isCached() fetch() etc. - -13.10.2011 -- add caching for config files in Smarty_Resource -- bugfix disable of caching after isCached() call did not work (Forum Topic 20131) -- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 20128) -- bugfix multiline strings in config files could fail on longer strings (Issue #55) - -11.10.2011 -- add runtime checks for not matching {capture}/{/capture} calls (Forum Topic 20120) - -10.10.2011 -- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54) -- bugfix <?xml> tag did create wrong output when caching enabled and the tag was in included subtemplate -- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls - -===== Smarty-3.1.3 ===== -07.10.2011 -- improvement removed html comments from {mailto} (Forum Topic 20092) -- bugfix testInstall() would not show path to internal plugins_dir (Forum Post 74627) -- improvement testInstall() now showing resolved paths and checking the include_path if necessary -- bugfix html_options plugin did not handle object values properly (Issue #49, Forum Topic 20049) -- improvement html_checkboxes and html_radios to accept null- and object values, and label_ids attribute -- improvement removed some unnecessary count()s -- bugfix parent pointer was not set when fetch() for other template was called on template object - -06.10.2011 -- bugfix switch lexer internals depending on mbstring.func_overload -- bugfix start_year and end_year of {html_select_date} did not use current year as offset base (Issue #53) - -05.10.2011 -- bugfix of problem introduced with r4342 by replacing strlen() with isset() -- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45) -- bugfix nofilter tag option did not disable default modifier -- bugfix html_options plugin did not handle null- and object values properly (Issue #49, Forum Topic 20049) - -04.10.2011 -- bugfix assign() in plugins called in subtemplates did change value also in parent template -- bugfix of problem introduced with r4342 on math plugin -- bugfix output filter should not run on individually cached subtemplates -- add unloadFilter() method -- bugfix has_nocache_code flag was not reset before compilation - -===== Smarty-3.1.2 ===== -03.10.2011 -- improvement add internal $joined_template_dir property instead computing it on the fly several times - -01.10.2011 -- improvement replaced most in_array() calls by more efficient isset() on array_flip()ed haystacks -- improvement replaced some strlen($foo) > 3 calls by isset($foo[3]) -- improvement Smarty_Internal_Utility::clearCompiledTemplate() removed redundant strlen()s - -29.09.2011 -- improvement of Smarty_Internal_Config::loadConfigVars() dropped the in_array for index look up - -28.09.2011 -- bugfix on template functions called nocache calling other template functions - -27.09.2011 -- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34) -- added chaining to Smarty_Internal_Data so $smarty->assign('a',1)->assign('b',2); is possible now -- bugfix remove race condition when a custom resource did change timestamp during compilation -- bugfix variable property did not work on objects variable in template -- bugfix smarty_make_timestamp() failed to process DateTime objects properly -- bugfix wrong resource could be used on compile check of custom resource - -26.09.2011 -- bugfix repeated calls to same subtemplate did not make use of cached template object - -24.09.2011 -- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application -- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable -- added compile_dir and cache_dir to list of muted directories -- improvment better error message for undefined templates at {include} - -23.09.2011 -- remove unused properties -- optimization use real function instead anonymous function for preg_replace_callback -- bugfix a relative {include} in child template blocks failed -- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an - extended Smarty class created problems -- bugfix error muting was not implemented for cache locking - -===== Smarty 3.1.1 ===== -22.09.2011 -- bugfix {foreachelse} does fail if {section} was nested inside {foreach} -- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true - -21.09.2011 -- bugfix look for mixed case plugin file names as in 3.0 if not found try all lowercase -- added $error_muting to suppress error messages even for badly implemented error_handlers -- optimized autoloader -- reverted ./ and ../ handling in fetch() and display() - they're allowed again - -20.09.2011 -- bugfix removed debug echo output while compiling template inheritance -- bugfix relative paths in $template_dir broke relative path resolving in {include "../foo.tpl"} -- bugfix {include} did not work inside nested {block} tags -- bugfix {assign} with scope root and global did not work in all cases - -19.09.2011 -- bugfix regression in Smarty_CacheReource_KeyValueStore introduced by r4261 -- bugfix output filter shall not run on included subtemplates - -18.09.2011 -- bugfix template caching did not care about file.tpl in different template_dir -- bugfix {include $file} was broken when merge_compiled_incluges = true -- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template - was used in different main templates in one compilation run -- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} -- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true - -17.09.2011 -- bugfix lock_id for file resource would create invalid filepath -- bugfix resource caching did not care about file.tpl in different template_dir - -===== Smarty 3.1.0 ===== -15/09/2011 -- optimization of {foreach}; call internal _count() method only when "total" or "last" {foreach} properties are used - -11/09/2011 -- added unregisterObject() method - -06/09/2011 -- bugfix isset() did not work in templates on config variables - -03/09/2011 -- bugfix createTemplate() must default to cache_id and compile_id of Smarty object -- bugfix Smarty_CacheResource_KeyValueStore must include $source->uid in cache filepath to keep templates with same - name but different folders seperated -- added cacheresource.apc.php example in demo folder - -02/09/2011 -- bugfix cache lock file must use absolute filepath - -01/09/2011 -- update of cache locking - -30/08/2011 -- added locking mechanism to CacheResource API (implemented with File and KeyValueStores) - -28/08/2011 -- bugfix clearCompileTemplate() did not work for specific template subfolder or resource - -27/08/2011 -- bugfix {$foo|bar+1} did create syntax error - -26/08/2011 -- bugfix when generating nocache code which contains double \ -- bugfix handle race condition if cache file was deleted between filemtime and include - -17/08/2011 -- bugfix CacheResource_Custom bad internal fetch() call - -15/08/2011 -- bugfix CacheResource would load content twice for KeyValueStore and Custom handlers - -06/08/2011 -- bugfix {include} with scope attribute could execute in wrong scope -- optimization of compile_check processing - -03/08/2011 -- allow comment tags to comment {block} tags out in child templates - -26/07/2011 -- bugfix experimental getTags() method did not work - -24/07/2011 -- sure opened output buffers are closed on exception -- bugfix {foreach} did not work on IteratorAggregate - -22/07/2011 -- clear internal caches on clearAllCache(), clearCache(), clearCompiledTemplate() - -21/07/2011 -- bugfix value changes of variable values assigned to Smarty object could not be seen on repeated $smarty->fetch() calls - -17/07/2011 -- bugfix {$smarty.block.child} did drop a notice at undefined child - -15/07/2011 -- bugfix individual cache_lifetime of {include} did not work correctly inside {block} tags -- added caches for Smarty_Template_Source and Smarty_Template_Compiled to reduce I/O for multiple cache_id rendering - -14/07/2011 -- made Smarty::loadPlugin() respect the include_path if required - -13/07/2011 -- optimized internal file write functionality -- bugfix PHP did eat line break on nocache sections -- fixed typo of Smarty_Security properties $allowed_modifiers and $disabled_modifiers - -06/07/2011 -- bugfix variable modifier must run befor gereral filtering/escaping - -04/07/2011 -- bugfix use (?P<name>) syntax at preg_match as some pcre libraries failed on (?<name>) -- some performance improvement when using generic getter/setter on template objects - -30/06/2011 -- bugfix generic getter/setter of Smarty properties used on template objects did throw exception -- removed is_dir and is_readable checks from directory setters for better performance - -28/06/2011 -- added back support of php template resource as undocumented feature -- bugfix automatic recompilation on version change could drop undefined index notice on old 3.0 cache and compiled files -- update of README_3_1_DEV.txt and moved into the distribution folder -- improvement show first characters of eval and string templates instead sha1 Uid in debug window - -===== Smarty 3.1-RC1 ===== -25/06/2011 -- revert change of 17/06/2011. $_smarty varibale removed. call loadPlugin() from inside plugin code if required -- code cleanup, remove no longer used properties and methods -- update of PHPdoc comments - -23/06/2011 -- bugfix {html_select_date} would not respect current time zone - -19/06/2011 -- added $errors argument to testInstall() functions to suppress output. -- added plugin-file checks to testInstall() - -18/06/2011 -- bugfix mixed use of same subtemplate inline and not inline in same script could cause a warning during compilation - -17/06/2011 -- bugfix/change use $_smarty->loadPlugin() when loading nested depending plugins via loadPlugin -- bugfix {include ... inline} within {block}...{/block} did fail - -16/06/2011 -- bugfix do not overwrite '$smarty' template variable when {include ... scope=parent} is called -- bugfix complete empty inline subtemplates did fail - -15/06/2011 -- bugfix template variables where not accessable within inline subtemplates - -12/06/2011 -- bugfix removed unneeded merging of template variable when fetching includled subtemplates - -10/06/2011 -- made protected properties $template_dir, $plugins_dir, $cache_dir, $compile_dir, $config_dir accessible via magic methods - -09/06/2011 -- fix smarty security_policy issue in plugins {html_image} and {fetch} - -05/06/2011 -- update of SMARTY_VERSION -- bugfix made getTags() working again - -04/06/2011 -- allow extends resource in file attribute of {extends} tag - -03/06/2011 -- added {setfilter} tag to set filters for variable output -- added escape_html property to control autoescaping of variable output - -27/05/2011 -- added allowed/disabled tags and modifiers in security for sandboxing - -23/05/2011 -- added base64: and urlencode: arguments to eval and string resource types - -22/05/2011 -- made time-attribute of {html_select_date} and {html_select_time} accept arrays as defined by attributes prefix and field_array - -13/05/2011 -- remove setOption / getOption calls from SamrtyBC class - -02/05/2011 -- removed experimental setOption() getOption() methods -- output returned content also on opening tag calls of block plugins -- rewrite of default plugin handler -- compile code of variable filters for better performance - -20/04/2011 -- allow {php} {include_php} tags and PHP_ALLOW handling only with the SmartyBC class -- removed support of php template resource - -20/04/2011 -- added extendsall resource example -- optimization of template variable access -- optimization of subtemplate handling {include} -- optimization of template class - -01/04/2011 -- bugfix quote handling in capitalize modifier - -28/03/2011 -- bugfix stripslashes() requried when using PCRE e-modifier - -04/03/2011 -- upgrade to new PHP_LexerGenerator version 0.4.0 for better performance - -27/02/2011 -- ignore .svn folders when clearing cache and compiled files -- string resources do not need a modify check - -26/02/2011 -- replaced smarty_internal_wrapper by SmartyBC class -- load utility functions as static methods instead through __call() -- bugfix in extends resource when subresources are used -- optimization of modify checks - -25/02/2011 -- use $smarty->error_unassigned to control NOTICE handling on unassigned variables - -21/02/2011 -- added new new compile_check mode COMPILECHECK_CACHEMISS -- corrected new cloning behaviour of createTemplate() -- do no longer store the compiler object as property in the compile_tag classes to avoid possible memory leaks - during compilation - -19/02/2011 -- optimizations on merge_compiled_includes handling -- a couple of optimizations and bugfixes related to new resource structure - -17/02/2011 -- changed ./ and ../ behaviour - -14/02/2011 -- added {block ... hide} option to supress block if no child is defined - -13/02/2011 -- update handling of recursive subtemplate calls -- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php - -12/02/2011 -- new class Smarty_Internal_TemplateBase with shared methods of Smarty and Template objects -- optimizations of template processing -- made register... methods permanet -- code for default_plugin_handler -- add automatic recompilation at version change - -04/02/2011 -- change in Smarty_CacheResource_Custom -- bugfix cache_lifetime did not compile correctly at {include} after last update -- moved isCached processing into CacheResource class -- bugfix new CacheResource API did not work with disabled compile_check - -03/02/2011 -- handle template content as function to improve speed on multiple calls of same subtemplate and isCached()/display() calls -- bugfixes and improvents in the new resource API -- optimizations of template class code - -25/01/2011 -- optimized function html_select_time - -22/01/2011 -- added Smarty::$use_include_path configuration directive for Resource API - -21/01/2011 -- optimized function html_select_date - -19/01/2011 -- optimized outputfilter trimwhitespace - -18/01/2011 -- bugfix Config to use Smarty_Resource to fetch sources -- optimized Smarty_Security's isTrustedDir() and isTrustedPHPDir() - -17/01/2011 -- bugfix HTTP headers for CGI SAPIs - -16/01/2011 -- optimized internals of Smarty_Resource and Smarty_CacheResource - -14/01/2011 -- added modifiercompiler escape to improve performance of escaping html, htmlall, url, urlpathinfo, quotes, javascript -- added support to choose template_dir to load from: [index]filename.tpl - -12/01/2011 -- added unencode modifier to revert results of encode modifier -- added to_charset and from_charset modifier for character encoding - -11/01/2011 -- added SMARTY_MBSTRING to generalize MBString detection -- added argument $lc_rest to modifier.capitalize to lower-case anything but the first character of a word -- changed strip modifier to consider unicode white-space, too -- changed wordwrap modifier to accept UTF-8 strings -- changed count_sentences modifier to consider unicode characters and treat sequences delimited by ? and ! as sentences, too -- added argument $double_encode to modifier.escape (applies to html and htmlall only) -- changed escape modifier to be UTF-8 compliant -- changed textformat block to be UTF-8 compliant -- optimized performance of mailto function -- fixed spacify modifier so characters are not prepended and appended, made it unicode compatible -- fixed truncate modifier to properly use mb_string if possible -- removed UTF-8 frenzy from count_characters modifier -- fixed count_words modifier to treat "hello-world" as a single word like str_count_words() does -- removed UTF-8 frenzy from upper modifier -- removed UTF-8 frenzy from lower modifier - -01/01/2011 -- optimize smarty_modified_escape for hex, hexentity, decentity. - -28/12/2010 -- changed $tpl_vars, $config_vars and $parent to belong to Smarty_Internal_Data -- added Smarty::registerCacheResource() for dynamic cache resource object registration - -27/12/2010 -- added Smarty_CacheResource API and refactored existing cache resources accordingly -- added Smarty_CacheResource_Custom and Smarty_CacheResource_Mysql - -26/12/2010 -- added Smarty_Resource API and refactored existing resources accordingly -- added Smarty_Resource_Custom and Smarty_Resource_Mysql -- bugfix Smarty::createTemplate() to return properly cloned template instances - -24/12/2010 -- optimize smarty_function_escape_special_chars() for PHP >= 5.2.3 - -===== SVN 3.0 trunk ===== -14/05/2011 -- bugfix error handling at stream resources - -13/05/2011 -- bugfix condition starting with "-" did fail at {if} and {while} tags - -22/04/2011 -- bugfix allow only fixed string as file attribute at {extends} tag - -01/04/2011 -- bugfix do not run filters and default modifier when displaying the debug template -- bugfix of embedded double quotes within multi line strings (""") - -29/03/2011 -- bugfix on error message in smarty_internal_compile_block.php -- bugfix mb handling in strip modifier -- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar} - -17/03/2011 -- bugfix on default {function} parameters when {function} was used in nocache sections -- bugfix on compiler object destruction. compiler_object property was by mistake unset. - -09/03/2011 --bugfix a variable filter should run before modifers on an output tag (see change of 23/07/2010) - -08/03/2011 -- bugfix loading config file without section should load only defaults - -03/03/2011 -- bugfix "smarty" template variable was not recreated when cached templated had expired -- bugfix internal rendered_content must be cleared after subtemplate was included - -01/03/2011 -- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support -- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of - child name when it needed to compile - -25/02/2011 -- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar} - -24/02/2011 -- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object - -18/02/2011 -- bugfix removed possible race condition when isCached() was called for an individually cached subtemplate -- bugfix force default debug.tpl to be loaded by the file resource - -17/02/2011 --improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache() - -16/02/2011 --fixed typo in exception message of Smarty_Internal_Template --improvement allow leading spaces on } tag closing if auto_literal is enabled - -13/02/2011 -- bufix replace $smarty->triggerError() by exception -- removed obsolete {popup_init..} plugin from demo templates -- bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php - -===== Smarty 3.0.7 ===== -09/02/2011 -- patched vulnerability when using {$smarty.template} - -01/02/2011 -- removed assert() from config and template parser - -31/01/2011 -- bugfix the lexer/parser did fail on special characters like VT - -16/01/2011 --bugfix of ArrayAccess object handling in internal _count() method --bugfix of Iterator object handling in internal _count() method - -14/01/2011 --bugfix removed memory leak while processing compileAllTemplates - -12/01/2011 -- bugfix in {if} and {while} tag compiler when using assignments as condition and nocache mode - -10/01/2011 -- bugfix when using {$smarty.block.child} and name of {block} was in double quoted string -- bugfix updateParentVariables() was called twice when leaving {include} processing - -- bugfix mb_str_replace in replace and escape modifiers work with utf8 - -31/12/2010 -- bugfix dynamic configuration of $debugging_crtl did not work -- bugfix default value of $config_read_hidden changed to false -- bugfix format of attribute array on compiler plugins -- bugfix getTemplateVars() could return value from wrong scope - -28/12/2010 -- bugfix multiple {append} tags failed to compile. - -22/12/2010 -- update do not clone the Smarty object an internal createTemplate() calls to increase performance - -21/12/2010 -- update html_options to support class and id attrs - -17/12/2010 -- bugfix added missing support of $cache_attrs for registered plugins - -15/12/2010 -- bugfix assignment as condition in {while} did drop an E_NOTICE - -14/12/2010 -- bugfix when passing an array as default parameter at {function} tag - -13/12/2010 -- bugfix {$smarty.template} in child template did not return right content -- bugfix Smarty3 did not search the PHP include_path for template files - -===== Smarty 3.0.6 ===== - -12/12/2010 -- bugfix fixed typo regarding yesterdays change to allow streamWrapper - -11/12/2010 -- bugfix nested block tags in template inheritance child templates did not work correctly -- bugfix {$smarty.current_dir} in child template did not point to dir of child template -- bugfix changed code when writing temporary compiled files to allow stream_wrapper - -06/12/2010 -- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable - -05/12/2010 -- bugfix missing declaration of $smarty in Smarty class -- bugfix empty($foo) in {if} did drop a notice when $foo was not assigned - -01/12/2010 -- improvement of {debug} tag output - -27/11/2010 --change run output filter before cache file is written. (same as in Smarty2) - -24/11/2011 --bugfix on parser at !$foo|modifier --change parser logic when assignments used as condition in {if] and {while} to allow assign to array element - -23/11/2011 --bugfix allow integer as attribute name in plugin calls --change trimm whitespace from error message, removed long list of expected tokens - -22/11/2010 -- bugfix on template inheritance when an {extends} tag was inserted by a prefilter -- added error message for illegal variable file attributes at {extends...} tags - -===== Smarty 3.0.5 ===== - - -19/11/2010 -- bugfix on block plugins with modifiers - -18/11/2010 -- change on handling of unassigned template variable -- default will drop E_NOTICE -- bugfix on Smarty2 wrapper load_filter() did not work - -17/11/2010 -- bugfix on {call} with variable function name -- bugfix on {block} if name did contain '-' -- bugfix in function.fetch.php , referece to undefined $smarty - -16/11/2010 -- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php -- bugfix {$smarty.now} did compile incorrectly -- bugfix on reset(),end(),next(),prev(),current() within templates -- bugfix on default parameter for {function} - -15/11/2010 -- bugfix when using {$smarty.session} as object -- bugfix scoping problem on $smarty object passed to filters -- bugfix captured content could not be accessed globally -- bugfix Smarty2 wrapper functions could not be call from within plugins - -===== Smarty 3.0.4 ===== - -14/11/2010 -- bugfix isset() did not allow multiple parameter -- improvment of some error messages -- bugfix html_image did use removed property $request_use_auto_globals -- small performace patch in Smarty class - -13/11/2010 -- bugfix overloading problem when $smarty->fetch()/display() have been used in plugins - (introduced with 3.0.2) -- code cleanup - -===== Smarty 3.0.3 ===== - -13/11/2010 -- bugfix on {debug} -- reverted location of loadPlugin() to Smarty class -- fixed comments in plugins -- fixed internal_config (removed unwanted code line) -- improvement remove last linebreak from {function} definition - -===== Smarty 3.0.2 ===== - -12/11/2010 -- reactivated $error_reporting property handling -- fixed typo in compile_continue -- fixed security in {fetch} plugin -- changed back plugin parameters to two. second is template object - with transparent access to Smarty object -- fixed {config_load} scoping form compile time to run time - -===== Smarty 3.0.0 ===== - - - -11/11/2010 -- major update including some API changes - -10/11/2010 -- observe compile_id also for config files - -09/11/2010 --bugfix on complex expressions as start value for {for} tag -request_use_auto_globals -04/11/2010 -- bugfix do not allow access of dynamic and private object members of assigned objects when - security is enabled. - -01/11/2010 -- bugfix related to E_NOTICE change. {if empty($foo)} did fail when $foo contained a string - -28/10/2010 -- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}} - -27/10/2010 -- bugfix default parameter values did not work for template functions included with {include} - -25/10/2010 -- bugfix for E_NOTICE change, array elements did not work as modifier parameter - -20/10/2010 -- bugfix for the E_NOTICE change - -19/10/2010 -- change Smarty does no longer mask out E_NOTICE by default during template processing - -13/10/2010 -- bugfix removed ambiguity between ternary and stream variable in template syntax -- bugfix use caching properties of template instead of smarty object when compiling child {block} -- bugfix {*block}...{/block*} did throw an exception in template inheritance -- bugfix on template inheritance using nested eval or string resource in {extends} tags -- bugfix on output buffer handling in isCached() method - -===== RC4 ===== - -01/10/2010 -- added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops -- change of 'string' resource. It's no longer evaluated and compiled files are now stored -- new 'eval' resource which evaluates a template without saving the compiled file -- change in isCached() method to allow multiple calls for the same template - -25/09/2010 -- bugfix on some compiling modifiers - -24/09/2010 -- bugfix merge_compiled_includes flag was not restored correctly in {block} tag - -22/09/2010 -- bugfix on default modifier - -18/09/2010 -- bugfix untility compileAllConfig() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS -- bugfix on templateExists() for extends resource - -17/09/2010 -- bugfix {$smarty.template} and {$smarty.current_dir} did not compile correctly within {block} tags -- bugfix corrected error message on missing template files in extends resource -- bugfix untility compileAllTemplates() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS - -16/09/2010 -- bugfix when a doublequoted modifier parameter did contain Smarty tags and ':' - -15/09/2010 -- bugfix resolving conflict between '<%'/'%>' as custom Smarty delimiter and ASP tags -- use ucfirst for resource name on internal resource class names - -12/09/2010 -- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) - -10/09/2010 -- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results) - -08/09/2010 -- allow multiple template inheritance branches starting in subtemplates - -07/09/2010 -- bugfix {counter} and {cycle} plugin assigned result to smarty variable not in local(template) scope -- bugfix templates containing just {strip} {/strip} tags did produce an error - - -23/08/2010 -- fixed E_STRICT errors for uninitialized variables - -22/08/2010 -- added attribute cache_id to {include} tag - -13/08/2010 -- remove exception_handler property from Smarty class -- added Smarty's own exceptions SmartyException and SmartyCompilerException - -09/08/2010 -- bugfix on modifier with doublequoted strings as parameter containing embedded tags - -06/08/2010 -- bugfix when cascading some modifier like |strip|strip_tags modifier - -05/08/2010 -- added plugin type modifiercompiler to produce compiled modifier code -- changed standard modifier plugins to the compiling versions whenever possible -- bugfix in nocache sections {include} must not cache the subtemplate - -02/08/2010 -- bugfix strip did not work correctly in conjunction with comment lines - -31/07/2010 -- bugfix on nocache attribute at {assign} and {append} - -30/07/2010 -- bugfix passing scope attributes in doublequoted strings did not work at {include} {assign} and {append} - -25/07/2010 -- another bugfix of change from 23/07/2010 when compiling modifer - -24/07/2010 -- bugfix of change from 23/07/2010 when compiling modifer - -23/07/2010 -- changed execution order. A variable filter does now run before modifiers on output of variables -- bugfix use always { and } as delimiter for debug.tpl - - -22/07/2010 -- bugfix in templateExists() method - -20/07/2010 -- fixed handling of { strip } tag with whitespaces - -15/07/2010 -- bufix {$smarty.template} does include now the relative path, not just filename - -===== RC3 ===== - - - - -15/07/2010 -- make the date_format modifier work also on objects of the DateTime class -- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output - -08/07/2010 -- bugfix on assigning multidimensional arrays within templates -- corrected bugfix for truncate modifier - -07/07/2010 -- bugfix the truncate modifier needs to check if the string is utf-8 encoded or not -- bugfix support of script files relative to trusted_dir - -06/07/2010 -- create exception on recursive {extends} calls -- fixed reported line number at "unexpected closing tag " exception -- bugfix on escape:'mail' modifier -- drop exception if 'item' variable is equal 'from' variable in {foreach} tag - -01/07/2010 -- removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins - -25/06/2010 -- bugfix escaping " when block tags are used within doublequoted strings - -24/06/2010 -- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility -- added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace - - -22/06/2010 -- allow spaces between typecast and value in template syntax -- bugfix get correct count of traversables in {foreach} tag - -21/06/2010 -- removed use of PHP shortags SMARTY_PHP_PASSTHRU mode -- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true - -20/06/2010 -- replace internal get_time() calls with standard PHP5 microtime(true) calls -- closed security hole when php.ini asp_tags = on - -18/06/2010 -- added __toString method to the Smarty_Variable class - - -14/06/2010 -- make handling of Smarty comments followed by newline BC to Smarty2 - - -===== RC2 ===== - - - -13/06/2010 -- bugfix Smarty3 did not handle hexadecimals like 0x0F as numerical value -- bugifx Smarty3 did not accept numerical constants like .1 or 2. (without a leading or trailing digit) - -11/06/2010 -- bugfix the lexer did fail on larger {literal} ... {/literal} sections - -03/06/2010 -- bugfix on calling template functions like Smarty tags - -01/06/2010 -- bugfix on template functions used with template inheritance -- removed /* vim: set expandtab: */ comments -- bugfix of auto literal problem introduce with fix of 31/05/2010 - -31/05/2010 -- bugfix the parser did not allow some smarty variables with special name like $for, $if, $else and others. - -27/05/2010 -- bugfix on object chaining using variable properties -- make scope of {counter} and {cycle} tags again global as in Smarty2 - -26/05/2010 -- bugfix removed decrepated register_resource call in smarty_internal_template.php - -25/05/2010 -- rewrite of template function handling to improve speed -- bugfix on file dependency when merge_compiled_includes = true - - -16/05/2010 -- bugfix when passing parameter with numeric name like {foo 1='bar' 2='blar'} - -14/05/2010 -- bugfix compile new config files if compile_check and force_compile = false -- added variable static classes names to template syntax - -11/05/2010 -- bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally -- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag. - -10/05/2010 -- bugfix on {foreach} and {for} optimizations of 27/04/2010 - -09/05/2010 -- update of template and config file parser because of minor parser generator bugs - -07/05/2010 -- bugfix on {insert} - -06/05/2010 -- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag - -05/05/2010 -- bugfix on {insert} to cache parameter -- implementation of $smarty->default_modifiers as in Smarty2 -- bugfix on getTemplateVars method - -01/05/2010 -- bugfix on handling of variable method names at object chaning - -30/04/2010 -- bugfix when comparing timestamps in sysplugins/smarty_internal_config.php -- work around of a substr_compare bug in older PHP5 versions -- bugfix on template inheritance for tag names starting with "block" -- bugfix on {function} tag with name attribute in doublequoted strings -- fix to make calling of template functions unambiguously by madatory usage of the {call} tag - -===== RC1 ===== - -27/04/2010 -- change default of $debugging_ctrl to 'NONE' -- optimization of compiled code of {foreach} and {for} loops -- change of compiler for config variables - -27/04/2010 -- bugfix in $smarty->cache->clear() method. (do not cache template object) - - -17/04/2010 -- security fix in {math} plugin - - -12/04/2010 -- bugfix in smarty_internal_templatecompilerbase (overloaded property) -- removed parser restrictions in using true,false and null as ID - -07/04/2010 -- bugfix typo in smarty_internal_templatecompilerbase - -31/03/2010 -- compile locking by touching old compiled files to avoid concurrent compilations - -29/03/2010 -- bugfix allow array definitions as modifier parameter -- bugfix observe compile_check property when loading config files -- added the template object as third filter parameter - -25/03/2010 -- change of utility->compileAllTemplates() log messages -- bugfix on nocache code in {function} tags -- new method utility->compileAllConfig() to compile all config files - -24/03/2010 -- bugfix on register->modifier() error messages - -23/03/2010 -- bugfix on template inheritance when calling multiple child/parent relations -- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0 - -22/03/2010 -- bugfix make directory separator operating system independend in compileAllTemplates() - -21/03/2010 -- removed unused code in compileAllTemplates() - -19/03/2010 -- bugfix for multiple {/block} tags on same line - -17/03/2010 -- bugfix make $smarty->cache->clear() function independent from caching status - -16/03/2010 -- bugfix on assign attribute at registered template objects -- make handling of modifiers on expression BC to Smarty2 - -15/03/2010 -- bugfix on block plugin calls - -11/03/2010 -- changed parsing of <?php and ?> back to Smarty2 behaviour - -08/03/2010 -- bugfix on uninitialized properties in smarty_internal_template -- bugfix on $smarty->disableSecurity() - -04/03/2010 -- bugfix allow uppercase chars in registered resource names -- bugfix on accessing chained objects of static classes - -01/03/2010 -- bugfix on nocache code in {block} tags if child template was included by {include} - -27/02/2010 -- allow block tags inside double quoted string - -26/02/2010 -- cache modified check implemented -- support of access to a class constant from an object (since PHP 5.3) - -24/02/2010 -- bugfix on expressions in doublequoted string enclosed in backticks -- added security property $static_classes for static class security - -18/02/2010 -- bugfix on parsing Smarty tags inside <?xml ... ?> -- bugfix on truncate modifier - -17/02/2010 -- removed restriction that modifiers did require surrounding parenthesis in some cases -- added {$smarty.block.child} special variable for template inheritance - -16/02/2010 -- bugfix on <?xml ... ?> tags for all php_handling modes -- bugfix on parameter of variablefilter.htmlspecialchars.php plugin - -14/02/2010 -- added missing _plugins property in smarty.class.php -- bugfix $smarty.const... inside doublequoted strings and backticks was compiled into wrong PHP code - -12/02/2010 -- bugfix on nested {block} tags -- changed Smarty special variable $smarty.parent to $smarty.block.parent -- added support of nested {bock} tags - -10/02/2010 -- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....) -- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode -- bugfix at new "for" syntax like {for $x=1 to 10 step 2} - -09/02/2010 -- added $smarty->_tag_stack for tracing block tag hierarchy - -08/02/2010 -- bugfix use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....) -- bugfix of cache filename on extended templates when force_compile=true - -07/02/2010 -- bugfix on changes of 05/02/2010 -- preserve line endings type form template source -- API changes (see README file) - -05/02/2010 -- bugfix on modifier and block plugins with same name - -02/02/2010 -- retaining newlines at registered functions and function plugins - -01/25/2010 -- bugfix cache resource was not loaded when caching was globally off but enabled at a template object -- added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php - -01/22/2010 -- new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below) -- bugfix config_load() method now works also on a data object -- bugfix get_config_vars() method now works also on a data and template objects -- bugfix clear_config() method now works also on a data and template objects - -01/19/2010 -- bugfix on plugins if same plugin was called from a nocache section first and later from a cached section - - -###beta 7### - - -01/17/2010 -- bugfix on $smarty.const... in double quoted strings - -01/16/2010 -- internal change of config file lexer/parser on handling of section names -- bugfix on registered objects (format parameter of register_object was not handled correctly) - -01/14/2010 -- bugfix on backslash within single quoted strings -- bugfix allow absolute filepath for config files -- bugfix on special Smarty variable $smarty.cookies -- revert handling of newline on no output tags like {if...} -- allow special characters in config file section names for Smarty2 BC - -01/13/2010 -- bugfix on {if} tags - -01/12/2010 -- changed back modifer handling in parser. Some restrictions still apply: - if modifiers are used in side {if...} expression or in mathematical expressions - parentheses must be used. -- bugfix the {function..} tag did not accept the name attribute in double quotes -- closed possible security hole at <?php ... ?> tags -- bugfix of config file parser on large config files - - -###beta 6#### - -01/11/2010 -- added \n to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source -- added missing support of insert plugins -- added optional nocache attribute to {block} tags in parent template -- updated <?php...?> handling supporting now heredocs and newdocs. (thanks to Thue Jnaus Kristensen) - -01/09/2010 -- bugfix on nocache {block} tags in parent templates - -01/08/2010 -- bugfix on variable filters. filter/nofilter attributes did not work on output statements - -01/07/2010 -- bugfix on file dependency at template inheritance -- bugfix on nocache code at template inheritance - -01/06/2010 -- fixed typo in smarty_internal_resource_registered -- bugfix for custom delimiter at extends resource and {extends} tag - -01/05/2010 -- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling - - -01/03/2010 -- internal change on building cache files - -01/02/2010 -- update cached_timestamp at the template object after cache file is written to avoid possible side effects -- use internally always SMARTY_CACHING_LIFETIME_* constants - -01/01/2010 -- bugfix for obtaining plugins which must be included (related to change of 12/30/2009) -- bugfix for {php} tag (trow an exception if allow_php_tag = false) - -12/31/2009 -- optimization of generated code for doublequoted strings containing variables -- rewrite of {function} tag handling - - can now be declared in an external subtemplate - - can contain nocache sections (nocache_hash handling) - - can be called in noccache sections (nocache_hash handling) - - new {call..} tag to call template functions with a variable name {call name=$foo} -- fixed nocache_hash handling in merged compiled templates - -12/30/2009 -- bugfix for plugins defined in the script as smarty_function_foo - -12/29/2009 -- use sha1() for filepath encoding -- updates on nocache_hash handling -- internal change on merging some data -- fixed cache filename for custom resources - -12/28/2009 -- update for security fixes -- make modifier plugins always trusted -- fixed bug loading modifiers in child template at template inheritance - -12/27/2009 ---- this is a major update with a couple of internal changes --- -- new config file lexer/parser (thanks to Thue Jnaus Kristensen) -- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen) -- fix on registered plugins with different type but same name -- rewrite of plugin handling (optimized execution speed) -- closed a security hole regarding PHP code injection into cache files -- fixed bug in clear cache handling -- Renamed a couple of internal classes -- code cleanup for merging compiled templates -- couple of runtime optimizations (still not all done) -- update of getCachedTimestamp() -- fixed bug on modifier plugins at nocache output - -12/19/2009 -- bugfix on comment lines in config files - -12/17/2009 -- bugfix of parent/global variable update at included/merged subtemplates -- encode final template filepath into filename of compiled and cached files -- fixed {strip} handling in auto literals - -12/16/2009 -- update of changelog -- added {include file='foo.tpl' inline} inline option to merge compiled code of subtemplate into the calling template - -12/14/2009 -- fixed sideefect of last modification (objects in array index did not work anymore) - -12/13/2009 -- allow boolean negation ("!") as operator on variables outside {if} tag - -12/12/2009 -- bugfix on single quotes inside {function} tag -- fix short append/prepend attributes in {block} tags - -12/11/2009 -- bugfix on clear_compiled_tpl (avoid possible warning) - -12/10/2009 -- bugfix on {function} tags and template inheritance - -12/05/2009 -- fixed problem when a cached file was fetched several times -- removed unneeded lexer code - -12/04/2009 -- added max attribute to for loop -- added security mode allow_super_globals - -12/03/2009 -- template inheritance: child templates can now call functions defined by the {function} tag in the parent template -- added {for $foo = 1 to 5 step 2} syntax -- bugfix for {$foo.$x.$y.$z} - -12/01/2009 -- fixed parsing of names of special formated tags like if,elseif,while,for,foreach -- removed direct access to constants in templates because of some syntax problems -- removed cache resource plugin for mysql from the distribution -- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins -- use $template_class property for template class name when compiling {include},{eval} and {extends} tags - -11/30/2009 -- map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter -- allow {function} tags within {block} tags - -11/28/2009 -- ignore compile_id at debug template -- added direct access to constants in templates -- some lexer/parser optimizations - -11/27/2009 -- added cache resource MYSQL plugin - -11/26/2009 -- bugfix on nested doublequoted strings -- correct line number on unknown tag error message -- changed {include} compiled code -- fix on checking dynamic varibales with error_unassigned = true - -11/25/2009 -- allow the following writing for boolean: true, TRUE, True, false, FALSE, False -- {strip} tag functionality rewritten - -11/24/2009 -- bugfix for $smarty->config_overwrite = false - -11/23/2009 -- suppress warnings on unlink caused by race conditions -- correct line number on unknown tag error message - -------- beta 5 -11/23/2009 -- fixed configfile parser for text starting with a numeric char -- the default_template_handler_func may now return a filepath to a template source - -11/20/2009 -- bugfix for empty config files -- convert timestamps of registered resources to integer - -11/19/2009 -- compiled templates are no longer touched with the filemtime of template source - -11/18/2009 -- allow integer as attribute name in plugin calls - -------- beta 4 -11/18/2009 -- observe umask settings when setting file permissions -- avoide unneeded cache file creation for subtemplates which did occur in some situations -- make $smarty->_current_file available during compilation for Smarty2 BC - -11/17/2009 -- sanitize compile_id and cache_id (replace illegal chars with _) -- use _dir_perms and _file_perms properties at file creation -- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format -- added {foreach $array as $key=>$value} syntax -- renamed extend tag and resource to extends: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl); -- bugfix cycle plugin - -11/15/2009 -- lexer/parser optimizations on quoted strings - -11/14/2009 -- bugfix on merging compiled templates when source files got removed or renamed. -- bugfix modifiers on registered object tags -- fixed locaion where outputfilters are running -- fixed config file definitions at EOF -- fix on merging compiled templates with nocache sections in nocache includes -- parser could run into a PHP error on wrong file attribute - -11/12/2009 -- fixed variable filenames in {include_php} and {insert} -- added scope to Smarty variables in the {block} tag compiler -- fix on nocache code in child {block} tags - -11/11/2009 -- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables -- removed checking for reserved variables -- changed debugging handling - -11/10/2009 -- fixed preg_qoute on delimiters - -11/09/2009 -- lexer/parser bugfix -- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option -- bugfix for {function} block tags in included templates - -11/08/2009 -- fixed alphanumeric array index -- bugfix on complex double quoted strings - -11/05/2009 -- config_load method can now be called on data and template objects - -11/04/2009 -- added typecasting support for template variables -- bugfix on complex indexed special Smarty variables - -11/03/2009 -- fixed parser error on objects with special smarty vars -- fixed file dependency for {incude} inside {block} tag -- fixed not compiling on non existing compiled templates when compile_check = false -- renamed function names of autoloaded Smarty methods to Smarty_Method_.... -- new security_class property (default is Smarty_Security) - -11/02/2009 -- added neq,lte,gte,mod as aliases to if conditions -- throw exception on illegal Smarty() constructor calls - -10/31/2009 -- change of filenames in sysplugins folder for internal spl_autoload function -- lexer/parser changed for increased compilation speed - -10/27/2009 -- fixed missing quotes in include_php.php - -10/27/2009 -- fixed typo in method.register_resource -- pass {} through as literal - -10/26/2009 -- merge only compiled subtemplates into the compiled code of the main template - -10/24/2009 -- fixed nocache vars at internal block tags -- fixed merging of recursive includes - -10/23/2009 -- fixed nocache var problem - -10/22/2009 -- fix trimwhitespace outputfilter parameter - -10/21/2009 -- added {$foo++}{$foo--} syntax -- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags -- autoload Smarty internal classes -- fixed file dependency for config files -- some code optimizations -- fixed function definitions on some autoloaded methods -- fixed nocache variable inside if condition of {if} tag - -10/20/2009 -- check at compile time for variable filter to improve rendering speed if no filter is used -- fixed bug at combination of {elseif} tag and {...} in double quoted strings of static class parameter - -10/19/2009 -- fixed compiled template merging on variable double quoted strings as name -- fixed bug in caching mode 2 and cache_lifetime -1 -- fixed modifier support on block tags - -10/17/2009 -- remove ?>\n<?php and ?><?php sequences from compiled template - -10/15/2009 -- buxfix on assigning array elements inside templates -- parser bugfix on array access - -10/15/2009 -- allow bit operator '&' inside {if} tag -- implementation of ternary operator - -10/13/2009 -- do not recompile evaluated templates if reused just with other data -- recompile config files when config properties did change -- some lexer/parser otimizations - -10/11/2009 -- allow {block} tags inside included templates -- bugfix for resource plugins in Smarty2 format -- some optimizations of internal.template.php - -10/11/2009 -- fixed bug when template with same name is used with different data objects -- fixed bug with double quoted name attribute at {insert} tag -- reenabled assign_by_ref and append_by_ref methods - -10/07/2009 -- removed block nesting checks for {capture} - -10/05/2009 -- added support of "isinstance" to {if} tag - -10/03/2009 -- internal changes to improve performance -- fix registering of filters for classes - -10/01/2009 -- removed default timezone setting -- reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable -- {PHP} tag can be enabled by allow_php_tag = true - -09/30/2009 -- fixed handling template_exits method for all resource types -- bugfix for other cache resources than file -- the methods assign_by_ref is now wrapped to assign, append_by_ref to append -- allow arrays of variables pass in display, fetch and createTemplate calls - $data = array('foo'=>'bar','foo2'=>'blar'); - $smarty->display('my.tpl',$data); - -09/29/2009 -- changed {php} tag handling -- removed support of Smarty::instance() -- removed support of PHP resource type -- improved execution speed of {foreach} tags -- fixed bug in {section} tag - -09/23/2009 -- improvements and bugfix on {include} tag handling -NOTICE: existing compiled template and cache files must be deleted - -09/19/2009 -- replace internal "eval()" calls by "include" during rendering process -- speed improvment for templates which have included subtemplates - the compiled code of included templates is merged into the compiled code of the parent template -- added logical operator "xor" for {if} tag -- changed parameter ordering for Smarty2 BC - fetch($template, $cache_id = null, $compile_id = null, $parent = null) - display($template, $cache_id = null, $compile_id = null, $parent = null) - createTemplate($template, $cache_id = null, $compile_id = null, $parent = null) -- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET -- fixed handling of classes in registered blocks -- speed improvement of lexer on text sections - -09/01/2009 -- dropped nl2br as plugin -- added '<>' as comparission operator in {if} tags -- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2. - {include} optional attribute is also now cache_lifetime -- fixed trigger_error method (moved into Smarty class) -- version is now Beta!!! - - -08/30/2009 -- some speed optimizations on loading internal plugins - - -08/29/2009 -- implemented caching of registered Resources -- new property 'auto_literal'. if true(default) '{ ' and ' }' interpreted as literal, not as Smarty delimiter - - -08/28/2009 -- Fix on line breaks inside {if} tags - -08/26/2009 -- implemented registered resources as in Smarty2. NOTE: caching does not work yet -- new property 'force_cache'. if true it forces the creation of a new cache file -- fixed modifiers on arrays -- some speed optimization on loading internal classes - - -08/24/2009 -- fixed typo in lexer definition for '!==' operator -- bugfix - the ouput of plugins was not cached -- added global variable SCRIPT_NAME - -08/21/2009 -- fixed problems whitespace in conjuction with custom delimiters -- Smarty tags can now be used as value anywhere - -08/18/2009 -- definition of template class name moded in internal.templatebase.php -- whitespace parser changes - -08/12/2009 -- fixed parser problems - -08/11/2009 -- fixed parser problems with custom delimiter - -08/10/2009 -- update of mb support in plugins - - -08/09/2009 -- fixed problems with doublequoted strings at name attribute of {block} tag -- bugfix at scope attribute of {append} tag - -08/08/2009 -- removed all internal calls of Smarty::instance() -- fixed code in double quoted strings - -08/05/2009 -- bugfix mb_string support -- bugfix of \n.\t etc in double quoted strings - -07/29/2009 -- added syntax for variable config vars like #$foo# - -07/28/2009 -- fixed parsing of $smarty.session vars containing objects - -07/22/2009 -- fix of "$" handling in double quoted strings - -07/21/2009 -- fix that {$smarty.current_dir} return correct value within {block} tags. - -07/20/2009 -- drop error message on unmatched {block} {/block} pairs - -07/01/2009 -- fixed smarty_function_html_options call in plugin function.html_select_date.php (missing ,) - -06/24/2009 -- fixed smarty_function_html_options call in plugin function.html_select_date.php - -06/22/2009 -- fix on \n and spaces inside smarty tags -- removed request_use_auto_globals propert as it is no longer needed because Smarty 3 will always run under PHP 5 - - -06/18/2009 -- fixed compilation of block plugins when caching enabled -- added $smarty.current_dir which returns the current working directory - -06/14/2009 -- fixed array access on super globals -- allow smarty tags within xml tags - -06/13/2009 -- bugfix at extend resource: create unique files for compiled template and cache for each combination of template files -- update extend resource to handle appen and prepend block attributes -- instantiate classes of plugins instead of calling them static - -06/03/2009 -- fixed repeat at block plugins - -05/25/2009 -- fixed problem with caching of compiler plugins - -05/14/2009 -- fixed directory separator handling - -05/09/2009 -- syntax change for stream variables -- fixed bug when using absolute template filepath and caching - -05/08/2009 -- fixed bug of {nocache} tag in included templates - -05/06/2009 -- allow that plugins_dir folder names can end without directory separator - -05/05/2009 -- fixed E_STRICT incompabilities -- {function} tag bug fix -- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder -- added allow_super_global configuration to security - -04/30/2009 -- functions defined with the {function} tag now always have global scope - -04/29/2009 -- fixed problem with directory setter methods -- allow that cache_dir can end without directory separator - -04/28/2009 -- the {function} tag can no longer overwrite standard smarty tags -- inherit functions defined by the {fuction} tag into subtemplates -- added {while <statement>} sytax to while tag - -04/26/2009 -- added trusted stream checking to security -- internal changes at file dependency check for caching - -04/24/2009 -- changed name of {template} tag to {function} -- added new {template} tag - -04/23/2009 -- fixed access of special smarty variables from included template - -04/22/2009 -- unified template stream syntax with standard Smarty resource syntax $smarty->display('mystream:mytemplate') - -04/21/2009 -- change of new style syntax for forach. Now: {foreach $array as $var} like in PHP - -04/20/2009 -- fixed "$foo.bar ..." variable replacement in double quoted strings -- fixed error in {include} tag with variable file attribute - -04/18/2009 -- added stream resources ($smarty->display('mystream://mytemplate')) -- added stream variables {$mystream:myvar} - -04/14/2009 -- fixed compile_id handling on {include} tags -- fixed append/prepend attributes in {block} tag -- added {if 'expression' is in 'array'} syntax -- use crc32 as hash for compiled config files. - -04/13/2009 -- fixed scope problem with parent variables when appending variables within templates. -- fixed code for {block} without childs (possible sources for notice errors removed) - -04/12/2009 -- added append and prepend attribute to {block} tag - -04/11/2009 -- fixed variables in 'file' attribute of {extend} tag -- fixed problems in modifiers (if mb string functions not present) - -04/10/2009 -- check if mb string functions available otherwise fallback to normal string functions -- added global variable scope SMARTY_GLOBAL_SCOPE -- enable 'variable' filter by default -- fixed {$smarty.block.parent.foo} -- implementation of a 'variable' filter as replacement for default modifier - -04/09/2009 -- fixed execution of filters defined by classes -- compile the always the content of {block} tags to make shure that the filters are running over it -- syntax corrections on variable object property -- syntax corrections on array access in dot syntax - -04/08/2009 -- allow variable object property - -04/07/2009 -- changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants -- Smarty variable global attribute replaced with scope attribute - -04/06/2009 -- variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE -- more getter/setter methods - -04/05/2009 -- replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion -- added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'} - -04/04/2009 -- make output of template default handlers cachable and save compiled source -- some fixes on yesterdays update - -04/03/2006 -- added registerDefaultTemplateHandler method and functionallity -- added registerDefaultPluginHandler method and functionallity -- added {append} tag to extend Smarty array variabled - -04/02/2009 -- added setter/getter methods -- added $foo@first and $foo@last properties at {for} tag -- added $set_timezone (true/false) property to setup optionally the default time zone - -03/31/2009 -- bugfix smarty.class and internal.security_handler -- added compile_check configuration -- added setter/getter methods - -03/30/2009 -- added all major setter/getter methods - -03/28/2009 -- {block} tags can be nested now -- md5 hash function replace with crc32 for speed optimization -- file order for exted resource inverted -- clear_compiled_tpl and clear_cache_all will not touch .svn folder any longer - -03/27/2009 -- added extend resource - -03/26/2009 -- fixed parser not to create error on `word` in double quoted strings -- allow PHP array(...) -- implemented $smarty.block.name.parent to access parent block content -- fixed smarty.class - - -03/23/2009 -- fixed {foreachelse} and {forelse} tags - -03/22/2009 -- fixed possible sources for notice errors -- rearrange SVN into distribution and development folders - -03/21/2009 -- fixed exceptions in function plugins -- fixed notice error in Smarty.class.php -- allow chained objects to span multiple lines -- fixed error in modifers - -03/20/2009 -- moved /plugins folder into /libs folder -- added noprint modifier -- autoappend a directory separator if the xxxxx_dir definition have no trailing one - -03/19/2009 -- allow array definition as modifer parameter -- changed modifier to use multi byte string funktions. - -03/17/2009 -- bugfix - -03/15/2009 -- added {include_php} tag for BC -- removed @ error suppression -- bugfix fetch did always repeat output of first call when calling same template several times -- PHPunit tests extended - -03/13/2009 -- changed block syntax to be Smarty like {block:titel} -> {block name=titel} -- compiling of {block} and {extend} tags rewriten for better performance -- added special Smarty variable block ($smarty.block.foo} returns the parent definition of block foo -- optimization of {block} tag compiled code. -- fixed problem with escaped double quotes in double quoted strings - -03/12/2009 -- added support of template inheritance by {extend } and {block } tags. -- bugfix comments within literals -- added scope attribuie to {include} tag - -03/10/2009 -- couple of bugfixes and improvements -- PHPunit tests extended - -03/09/2009 -- added support for global template vars. {assign_global...} $smarty->assign_global(...) -- added direct_access_security -- PHPunit tests extended -- added missing {if} tag conditions like "is div by" etc. - -03/08/2009 -- splitted up the Compiler class to make it easier to use a coustom compiler -- made default plugins_dir relative to Smarty root and not current working directory -- some changes to make the lexer parser better configurable -- implemented {section} tag for Smarty2 BC - -03/07/2009 -- fixed problem with comment tags -- fixed problem with #xxxx in double quoted string -- new {while} tag implemented -- made lexer and paser class configurable as $smarty property -- Smarty method get_template_vars implemented -- Smarty method get_registered_object implemented -- Smarty method trigger_error implemented -- PHPunit tests extended - -03/06/2009 -- final changes on config variable handling -- parser change - unquoted strings will by be converted into single quoted strings -- PHPunit tests extended -- some code cleanup -- fixed problem on catenate strings with expression -- update of count_words modifier -- bugfix on comment tags - - -03/05/2009 -- bugfix on <?xml...> tag with caching enabled -- changes on exception handling (by Monte) - -03/04/2009 -- added support for config variables -- bugfix on <?xml...> tag - -03/02/2009 -- fixed unqouted strings within modifier parameter -- bugfix parsing of mofifier parameter - -03/01/2009 -- modifier chaining works now as in Smarty2 - -02/28/2009 -- changed handling of unqouted strings - -02/26/2009 -- bugfix -- changed $smarty.capture.foo to be global for Smarty2 BC. - -02/24/2009 -- bugfix {php} {/php} tags for backward compatibility -- bugfix for expressions on arrays -- fixed usage of "null" value -- added $smarty.foreach.foo.first and $smarty.foreach.foo.last - -02/06/2009 -- bugfix for request variables without index for example $smarty.get -- experimental solution for variable functions in static class - -02/05/2009 -- update of popup plugin -- added config variables to template parser (load config functions still missing) -- parser bugfix for empty quoted strings - -02/03/2009 -- allow array of objects as static class variabales. -- use htmlentities at source output at template errors. - -02/02/2009 -- changed search order on modifiers to look at plugins folder first -- parser bug fix for modifier on array elements $foo.bar|modifier -- parser bug fix on single quoted srings -- internal: splitted up compiler plugin files - -02/01/2009 -- allow method chaining on static classes -- special Smarty variables $smarty.... implemented -- added {PHP} {/PHP} tags for backward compatibility - -01/31/2009 -- added {math} plugin for Smarty2 BC -- added template_exists method -- changed Smarty3 method enable_security() to enableSecurity() to follow camelCase standards - -01/30/2009 -- bugfix in single quoted strings -- changed syntax for variable property access from $foo:property to $foo@property because of ambiguous syntax at modifiers - -01/29/2009 -- syntax for array definition changed from (1,2,3) to [1,2,3] to remove ambiguous syntax -- allow {for $foo in [1,2,3]} syntax -- bugfix in double quoted strings -- allow <?xml...?> tags in template even if short_tags are enabled - -01/28/2009 -- fixed '!==' if condition. - -01/28/2009 -- added support of {strip} {/strip} tag. - -01/27/2009 -- bug fix on backticks in double quoted strings at objects - -01/25/2009 -- Smarty2 modfiers added to SVN - -01/25/2009 -- bugfix allow arrays at object properties in Smarty syntax -- the template object is now passed as additional parameter at plugin calls -- clear_compiled_tpl method completed - -01/20/2009 -- access to class constants implemented ( class::CONSTANT ) -- access to static class variables implemented ( class::$variable ) -- call of static class methods implemented ( class::method() ) - -01/16/2009 -- reallow leading _ in variable names {$_var} -- allow array of objects {$array.index->method()} syntax -- finished work on clear_cache and clear_cache_all methods - -01/11/2009 -- added support of {literal} tag -- added support of {ldelim} and {rdelim} tags -- make code compatible to run with E_STRICT error setting - -01/08/2009 -- moved clear_assign and clear_all_assign to internal.templatebase.php -- added assign_by_ref, append and append_by_ref methods - -01/02/2009 -- added load_filter method -- fished work on filter handling -- optimization of plugin loading - -12/30/2008 -- added compiler support of registered object -- added backtick support in doubled quoted strings for backward compatibility -- some minor bug fixes and improvments - -12/23/2008 -- fixed problem of not working "not" operator in if-expressions -- added handling of compiler function plugins -- finished work on (un)register_compiler_function method -- finished work on (un)register_modifier method -- plugin handling from plugins folder changed for modifier plugins - deleted - internal.modifier.php -- added modifier chaining to parser - -12/17/2008 -- finished (un)register_function method -- finished (un)register_block method -- added security checking for PHP functions in PHP templates -- plugin handling from plugins folder rewritten - new - internal.plugin_handler.php - deleted - internal.block.php - deleted - internal.function.php -- removed plugin checking from security handler - -12/16/2008 - -- new start of this change_log file
View file
Smarty-3.1.13.tar.gz/distribution/demo
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/demo/cache
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/demo/configs
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/demo/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/demo/templates
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/demo/templates_c
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/libs
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/libs/Smarty.class.php
Deleted
@@ -1,1528 +0,0 @@ -<?php -/** - * Project: Smarty: the PHP compiling template engine - * File: Smarty.class.php - * SVN: $Id: Smarty.class.php 4694 2013-01-13 21:13:14Z uwe.tews@googlemail.com $ - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * For questions, help, comments, discussion, etc., please join the - * Smarty mailing list. Send a blank e-mail to - * smarty-discussion-subscribe@googlegroups.com - * - * @link http://www.smarty.net/ - * @copyright 2008 New Digital Group, Inc. - * @author Monte Ohrt <monte at ohrt dot com> - * @author Uwe Tews - * @author Rodney Rehm - * @package Smarty - * @version 3.1-DEV - */ - -/** - * define shorthand directory separator constant - */ -if (!defined('DS')) { - define('DS', DIRECTORY_SEPARATOR); -} - -/** - * set SMARTY_DIR to absolute path to Smarty library files. - * Sets SMARTY_DIR only if user application has not already defined it. - */ -if (!defined('SMARTY_DIR')) { - define('SMARTY_DIR', dirname(__FILE__) . DS); -} - -/** - * set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins. - * Sets SMARTY_SYSPLUGINS_DIR only if user application has not already defined it. - */ -if (!defined('SMARTY_SYSPLUGINS_DIR')) { - define('SMARTY_SYSPLUGINS_DIR', SMARTY_DIR . 'sysplugins' . DS); -} -if (!defined('SMARTY_PLUGINS_DIR')) { - define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DS); -} -if (!defined('SMARTY_MBSTRING')) { - define('SMARTY_MBSTRING', function_exists('mb_split')); -} -if (!defined('SMARTY_RESOURCE_CHAR_SET')) { - // UTF-8 can only be done properly when mbstring is available! - /** - * @deprecated in favor of Smarty::$_CHARSET - */ - define('SMARTY_RESOURCE_CHAR_SET', SMARTY_MBSTRING ? 'UTF-8' : 'ISO-8859-1'); -} -if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) { - /** - * @deprecated in favor of Smarty::$_DATE_FORMAT - */ - define('SMARTY_RESOURCE_DATE_FORMAT', '%b %e, %Y'); -} - -/** - * register the class autoloader - */ -if (!defined('SMARTY_SPL_AUTOLOAD')) { - define('SMARTY_SPL_AUTOLOAD', 0); -} - -if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false) { - $registeredAutoLoadFunctions = spl_autoload_functions(); - if (!isset($registeredAutoLoadFunctions['spl_autoload'])) { - spl_autoload_register(); - } -} else { - spl_autoload_register('smartyAutoload'); -} - -/** - * Load always needed external class files - */ -include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_data.php'; -include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_templatebase.php'; -include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_template.php'; -include_once SMARTY_SYSPLUGINS_DIR.'smarty_resource.php'; -include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_resource_file.php'; -include_once SMARTY_SYSPLUGINS_DIR.'smarty_cacheresource.php'; -include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_cacheresource_file.php'; - -/** - * This is the main Smarty class - * @package Smarty - */ -class Smarty extends Smarty_Internal_TemplateBase { - - /**#@+ - * constant definitions - */ - - /** - * smarty version - */ - const SMARTY_VERSION = 'Smarty-3.1-DEV'; - - /** - * define variable scopes - */ - const SCOPE_LOCAL = 0; - const SCOPE_PARENT = 1; - const SCOPE_ROOT = 2; - const SCOPE_GLOBAL = 3; - /** - * define caching modes - */ - const CACHING_OFF = 0; - const CACHING_LIFETIME_CURRENT = 1; - const CACHING_LIFETIME_SAVED = 2; - /** - * define compile check modes - */ - const COMPILECHECK_OFF = 0; - const COMPILECHECK_ON = 1; - const COMPILECHECK_CACHEMISS = 2; - /** - * modes for handling of "<?php ... ?>" tags in templates. - */ - const PHP_PASSTHRU = 0; //-> print tags as plain text - const PHP_QUOTE = 1; //-> escape tags as entities - const PHP_REMOVE = 2; //-> escape tags as entities - const PHP_ALLOW = 3; //-> escape tags as entities - /** - * filter types - */ - const FILTER_POST = 'post'; - const FILTER_PRE = 'pre'; - const FILTER_OUTPUT = 'output'; - const FILTER_VARIABLE = 'variable'; - /** - * plugin types - */ - const PLUGIN_FUNCTION = 'function'; - const PLUGIN_BLOCK = 'block'; - const PLUGIN_COMPILER = 'compiler'; - const PLUGIN_MODIFIER = 'modifier'; - const PLUGIN_MODIFIERCOMPILER = 'modifiercompiler'; - - /**#@-*/ - - /** - * assigned global tpl vars - */ - public static $global_tpl_vars = array(); - - /** - * error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors() - */ - public static $_previous_error_handler = null; - /** - * contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors() - */ - public static $_muted_directories = array(); - /** - * Flag denoting if Multibyte String functions are available - */ - public static $_MBSTRING = SMARTY_MBSTRING; - /** - * The character set to adhere to (e.g. "UTF-8") - */ - public static $_CHARSET = SMARTY_RESOURCE_CHAR_SET; - /** - * The date format to be used internally - * (accepts date() and strftime()) - */ - public static $_DATE_FORMAT = SMARTY_RESOURCE_DATE_FORMAT; - /** - * Flag denoting if PCRE should run in UTF-8 mode - */ - public static $_UTF8_MODIFIER = 'u'; - - /** - * Flag denoting if operating system is windows - */ - public static $_IS_WINDOWS = false; - - /**#@+ - * variables - */ - - /** - * auto literal on delimiters with whitspace - * @var boolean - */ - public $auto_literal = true; - /** - * display error on not assigned variables - * @var boolean - */ - public $error_unassigned = false; - /** - * look up relative filepaths in include_path - * @var boolean - */ - public $use_include_path = false; - /** - * template directory - * @var array - */ - private $template_dir = array(); - /** - * joined template directory string used in cache keys - * @var string - */ - public $joined_template_dir = null; - /** - * joined config directory string used in cache keys - * @var string - */ - public $joined_config_dir = null; - /** - * default template handler - * @var callable - */ - public $default_template_handler_func = null; - /** - * default config handler - * @var callable - */ - public $default_config_handler_func = null; - /** - * default plugin handler - * @var callable - */ - public $default_plugin_handler_func = null; - /** - * compile directory - * @var string - */ - private $compile_dir = null; - /** - * plugins directory - * @var array - */ - private $plugins_dir = array(); - /** - * cache directory - * @var string - */ - private $cache_dir = null; - /** - * config directory - * @var array - */ - private $config_dir = array(); - /** - * force template compiling? - * @var boolean - */ - public $force_compile = false; - /** - * check template for modifications? - * @var boolean - */ - public $compile_check = true; - /** - * use sub dirs for compiled/cached files? - * @var boolean - */ - public $use_sub_dirs = false; - /** - * allow ambiguous resources (that are made unique by the resource handler) - * @var boolean - */ - public $allow_ambiguous_resources = false; - /** - * caching enabled - * @var boolean - */ - public $caching = false; - /** - * merge compiled includes - * @var boolean - */ - public $merge_compiled_includes = false; - /** - * cache lifetime in seconds - * @var integer - */ - public $cache_lifetime = 3600; - /** - * force cache file creation - * @var boolean - */ - public $force_cache = false; - /** - * Set this if you want different sets of cache files for the same - * templates. - * - * @var string - */ - public $cache_id = null; - /** - * Set this if you want different sets of compiled files for the same - * templates. - * - * @var string - */ - public $compile_id = null; - /** - * template left-delimiter - * @var string - */ - public $left_delimiter = "{"; - /** - * template right-delimiter - * @var string - */ - public $right_delimiter = "}"; - /**#@+ - * security - */ - /** - * class name - * - * This should be instance of Smarty_Security. - * - * @var string - * @see Smarty_Security - */ - public $security_class = 'Smarty_Security'; - /** - * implementation of security class - * - * @var Smarty_Security - */ - public $security_policy = null; - /** - * controls handling of PHP-blocks - * - * @var integer - */ - public $php_handling = self::PHP_PASSTHRU; - /** - * controls if the php template file resource is allowed - * - * @var bool - */ - public $allow_php_templates = false; - /** - * Should compiled-templates be prevented from being called directly? - * - * {@internal - * Currently used by Smarty_Internal_Template only. - * }} - * - * @var boolean - */ - public $direct_access_security = true; - /**#@-*/ - /** - * debug mode - * - * Setting this to true enables the debug-console. - * - * @var boolean - */ - public $debugging = false; - /** - * This determines if debugging is enable-able from the browser. - * <ul> - * <li>NONE => no debugging control allowed</li> - * <li>URL => enable debugging when SMARTY_DEBUG is found in the URL.</li> - * </ul> - * @var string - */ - public $debugging_ctrl = 'NONE'; - /** - * Name of debugging URL-param. - * - * Only used when $debugging_ctrl is set to 'URL'. - * The name of the URL-parameter that activates debugging. - * - * @var type - */ - public $smarty_debug_id = 'SMARTY_DEBUG'; - /** - * Path of debug template. - * @var string - */ - public $debug_tpl = null; - /** - * When set, smarty uses this value as error_reporting-level. - * @var int - */ - public $error_reporting = null; - /** - * Internal flag for getTags() - * @var boolean - */ - public $get_used_tags = false; - - /**#@+ - * config var settings - */ - - /** - * Controls whether variables with the same name overwrite each other. - * @var boolean - */ - public $config_overwrite = true; - /** - * Controls whether config values of on/true/yes and off/false/no get converted to boolean. - * @var boolean - */ - public $config_booleanize = true; - /** - * Controls whether hidden config sections/vars are read from the file. - * @var boolean - */ - public $config_read_hidden = false; - - /**#@-*/ - - /**#@+ - * resource locking - */ - - /** - * locking concurrent compiles - * @var boolean - */ - public $compile_locking = true; - /** - * Controls whether cache resources should emply locking mechanism - * @var boolean - */ - public $cache_locking = false; - /** - * seconds to wait for acquiring a lock before ignoring the write lock - * @var float - */ - public $locking_timeout = 10; - - /**#@-*/ - - /** - * global template functions - * @var array - */ - public $template_functions = array(); - /** - * resource type used if none given - * - * Must be an valid key of $registered_resources. - * @var string - */ - public $default_resource_type = 'file'; - /** - * caching type - * - * Must be an element of $cache_resource_types. - * - * @var string - */ - public $caching_type = 'file'; - /** - * internal config properties - * @var array - */ - public $properties = array(); - /** - * config type - * @var string - */ - public $default_config_type = 'file'; - /** - * cached template objects - * @var array - */ - public $template_objects = array(); - /** - * check If-Modified-Since headers - * @var boolean - */ - public $cache_modified_check = false; - /** - * registered plugins - * @var array - */ - public $registered_plugins = array(); - /** - * plugin search order - * @var array - */ - public $plugin_search_order = array('function', 'block', 'compiler', 'class'); - /** - * registered objects - * @var array - */ - public $registered_objects = array(); - /** - * registered classes - * @var array - */ - public $registered_classes = array(); - /** - * registered filters - * @var array - */ - public $registered_filters = array(); - /** - * registered resources - * @var array - */ - public $registered_resources = array(); - /** - * resource handler cache - * @var array - */ - public $_resource_handlers = array(); - /** - * registered cache resources - * @var array - */ - public $registered_cache_resources = array(); - /** - * cache resource handler cache - * @var array - */ - public $_cacheresource_handlers = array(); - /** - * autoload filter - * @var array - */ - public $autoload_filters = array(); - /** - * default modifier - * @var array - */ - public $default_modifiers = array(); - /** - * autoescape variable output - * @var boolean - */ - public $escape_html = false; - /** - * global internal smarty vars - * @var array - */ - public static $_smarty_vars = array(); - /** - * start time for execution time calculation - * @var int - */ - public $start_time = 0; - /** - * default file permissions - * @var int - */ - public $_file_perms = 0644; - /** - * default dir permissions - * @var int - */ - public $_dir_perms = 0771; - /** - * block tag hierarchy - * @var array - */ - public $_tag_stack = array(); - /** - * self pointer to Smarty object - * @var Smarty - */ - public $smarty; - /** - * required by the compiler for BC - * @var string - */ - public $_current_file = null; - /** - * internal flag to enable parser debugging - * @var bool - */ - public $_parserdebug = false; - /** - * Saved parameter of merged templates during compilation - * - * @var array - */ - public $merged_templates_func = array(); - /**#@-*/ - - /** - * Initialize new Smarty object - * - */ - public function __construct() - { - // selfpointer needed by some other class methods - $this->smarty = $this; - if (is_callable('mb_internal_encoding')) { - mb_internal_encoding(Smarty::$_CHARSET); - } - $this->start_time = microtime(true); - // set default dirs - $this->setTemplateDir('.' . DS . 'templates' . DS) - ->setCompileDir('.' . DS . 'templates_c' . DS) - ->setPluginsDir(SMARTY_PLUGINS_DIR) - ->setCacheDir('.' . DS . 'cache' . DS) - ->setConfigDir('.' . DS . 'configs' . DS); - - $this->debug_tpl = 'file:' . dirname(__FILE__) . '/debug.tpl'; - if (isset($_SERVER['SCRIPT_NAME'])) { - $this->assignGlobal('SCRIPT_NAME', $_SERVER['SCRIPT_NAME']); - } - } - - - /** - * Class destructor - */ - public function __destruct() - { - // intentionally left blank - } - - /** - * <<magic>> set selfpointer on cloned object - */ - public function __clone() - { - $this->smarty = $this; - } - - - /** - * <<magic>> Generic getter. - * - * Calls the appropriate getter function. - * Issues an E_USER_NOTICE if no valid getter is found. - * - * @param string $name property name - * @return mixed - */ - public function __get($name) - { - $allowed = array( - 'template_dir' => 'getTemplateDir', - 'config_dir' => 'getConfigDir', - 'plugins_dir' => 'getPluginsDir', - 'compile_dir' => 'getCompileDir', - 'cache_dir' => 'getCacheDir', - ); - - if (isset($allowed[$name])) { - return $this->{$allowed[$name]}(); - } else { - trigger_error('Undefined property: '. get_class($this) .'::$'. $name, E_USER_NOTICE); - } - } - - /** - * <<magic>> Generic setter. - * - * Calls the appropriate setter function. - * Issues an E_USER_NOTICE if no valid setter is found. - * - * @param string $name property name - * @param mixed $value parameter passed to setter - */ - public function __set($name, $value) - { - $allowed = array( - 'template_dir' => 'setTemplateDir', - 'config_dir' => 'setConfigDir', - 'plugins_dir' => 'setPluginsDir', - 'compile_dir' => 'setCompileDir', - 'cache_dir' => 'setCacheDir', - ); - - if (isset($allowed[$name])) { - $this->{$allowed[$name]}($value); - } else { - trigger_error('Undefined property: ' . get_class($this) . '::$' . $name, E_USER_NOTICE); - } - } - - /** - * Check if a template resource exists - * - * @param string $resource_name template name - * @return boolean status - */ - public function templateExists($resource_name) - { - // create template object - $save = $this->template_objects; - $tpl = new $this->template_class($resource_name, $this); - // check if it does exists - $result = $tpl->source->exists; - $this->template_objects = $save; - return $result; - } - - /** - * Returns a single or all global variables - * - * @param object $smarty - * @param string $varname variable name or null - * @return string variable value or or array of variables - */ - public function getGlobal($varname = null) - { - if (isset($varname)) { - if (isset(self::$global_tpl_vars[$varname])) { - return self::$global_tpl_vars[$varname]->value; - } else { - return ''; - } - } else { - $_result = array(); - foreach (self::$global_tpl_vars AS $key => $var) { - $_result[$key] = $var->value; - } - return $_result; - } - } - - /** - * Empty cache folder - * - * @param integer $exp_time expiration time - * @param string $type resource type - * @return integer number of cache files deleted - */ - function clearAllCache($exp_time = null, $type = null) - { - // load cache resource and call clearAll - $_cache_resource = Smarty_CacheResource::load($this, $type); - Smarty_CacheResource::invalidLoadedCache($this); - return $_cache_resource->clearAll($this, $exp_time); - } - - /** - * Empty cache for a specific template - * - * @param string $template_name template name - * @param string $cache_id cache id - * @param string $compile_id compile id - * @param integer $exp_time expiration time - * @param string $type resource type - * @return integer number of cache files deleted - */ - public function clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null) - { - // load cache resource and call clear - $_cache_resource = Smarty_CacheResource::load($this, $type); - Smarty_CacheResource::invalidLoadedCache($this); - return $_cache_resource->clear($this, $template_name, $cache_id, $compile_id, $exp_time); - } - - /** - * Loads security class and enables security - * - * @param string|Smarty_Security $security_class if a string is used, it must be class-name - * @return Smarty current Smarty instance for chaining - * @throws SmartyException when an invalid class name is provided - */ - public function enableSecurity($security_class = null) - { - if ($security_class instanceof Smarty_Security) { - $this->security_policy = $security_class; - return $this; - } elseif (is_object($security_class)) { - throw new SmartyException("Class '" . get_class($security_class) . "' must extend Smarty_Security."); - } - if ($security_class == null) { - $security_class = $this->security_class; - } - if (!class_exists($security_class)) { - throw new SmartyException("Security class '$security_class' is not defined"); - } elseif ($security_class !== 'Smarty_Security' && !is_subclass_of($security_class, 'Smarty_Security')) { - throw new SmartyException("Class '$security_class' must extend Smarty_Security."); - } else { - $this->security_policy = new $security_class($this); - } - - return $this; - } - - /** - * Disable security - * @return Smarty current Smarty instance for chaining - */ - public function disableSecurity() - { - $this->security_policy = null; - - return $this; - } - - /** - * Set template directory - * - * @param string|array $template_dir directory(s) of template sources - * @return Smarty current Smarty instance for chaining - */ - public function setTemplateDir($template_dir) - { - $this->template_dir = array(); - foreach ((array) $template_dir as $k => $v) { - $this->template_dir[$k] = rtrim($v, '/\\') . DS; - } - - $this->joined_template_dir = join(DIRECTORY_SEPARATOR, $this->template_dir); - return $this; - } - - /** - * Add template directory(s) - * - * @param string|array $template_dir directory(s) of template sources - * @param string $key of the array element to assign the template dir to - * @return Smarty current Smarty instance for chaining - * @throws SmartyException when the given template directory is not valid - */ - public function addTemplateDir($template_dir, $key=null) - { - // make sure we're dealing with an array - $this->template_dir = (array) $this->template_dir; - - if (is_array($template_dir)) { - foreach ($template_dir as $k => $v) { - if (is_int($k)) { - // indexes are not merged but appended - $this->template_dir[] = rtrim($v, '/\\') . DS; - } else { - // string indexes are overridden - $this->template_dir[$k] = rtrim($v, '/\\') . DS; - } - } - } elseif ($key !== null) { - // override directory at specified index - $this->template_dir[$key] = rtrim($template_dir, '/\\') . DS; - } else { - // append new directory - $this->template_dir[] = rtrim($template_dir, '/\\') . DS; - } - $this->joined_template_dir = join(DIRECTORY_SEPARATOR, $this->template_dir); - return $this; - } - - /** - * Get template directories - * - * @param mixed index of directory to get, null to get all - * @return array|string list of template directories, or directory of $index - */ - public function getTemplateDir($index=null) - { - if ($index !== null) { - return isset($this->template_dir[$index]) ? $this->template_dir[$index] : null; - } - - return (array)$this->template_dir; - } - - /** - * Set config directory - * - * @param string|array $template_dir directory(s) of configuration sources - * @return Smarty current Smarty instance for chaining - */ - public function setConfigDir($config_dir) - { - $this->config_dir = array(); - foreach ((array) $config_dir as $k => $v) { - $this->config_dir[$k] = rtrim($v, '/\\') . DS; - } - - $this->joined_config_dir = join(DIRECTORY_SEPARATOR, $this->config_dir); - return $this; - } - - /** - * Add config directory(s) - * - * @param string|array $config_dir directory(s) of config sources - * @param string key of the array element to assign the config dir to - * @return Smarty current Smarty instance for chaining - */ - public function addConfigDir($config_dir, $key=null) - { - // make sure we're dealing with an array - $this->config_dir = (array) $this->config_dir; - - if (is_array($config_dir)) { - foreach ($config_dir as $k => $v) { - if (is_int($k)) { - // indexes are not merged but appended - $this->config_dir[] = rtrim($v, '/\\') . DS; - } else { - // string indexes are overridden - $this->config_dir[$k] = rtrim($v, '/\\') . DS; - } - } - } elseif( $key !== null ) { - // override directory at specified index - $this->config_dir[$key] = rtrim($config_dir, '/\\') . DS; - } else { - // append new directory - $this->config_dir[] = rtrim($config_dir, '/\\') . DS; - } - - $this->joined_config_dir = join(DIRECTORY_SEPARATOR, $this->config_dir); - return $this; - } - - /** - * Get config directory - * - * @param mixed index of directory to get, null to get all - * @return array|string configuration directory - */ - public function getConfigDir($index=null) - { - if ($index !== null) { - return isset($this->config_dir[$index]) ? $this->config_dir[$index] : null; - } - - return (array)$this->config_dir; - } - - /** - * Set plugins directory - * - * @param string|array $plugins_dir directory(s) of plugins - * @return Smarty current Smarty instance for chaining - */ - public function setPluginsDir($plugins_dir) - { - $this->plugins_dir = array(); - foreach ((array)$plugins_dir as $k => $v) { - $this->plugins_dir[$k] = rtrim($v, '/\\') . DS; - } - - return $this; - } - - /** - * Adds directory of plugin files - * - * @param object $smarty - * @param string $ |array $ plugins folder - * @return Smarty current Smarty instance for chaining - */ - public function addPluginsDir($plugins_dir) - { - // make sure we're dealing with an array - $this->plugins_dir = (array) $this->plugins_dir; - - if (is_array($plugins_dir)) { - foreach ($plugins_dir as $k => $v) { - if (is_int($k)) { - // indexes are not merged but appended - $this->plugins_dir[] = rtrim($v, '/\\') . DS; - } else { - // string indexes are overridden - $this->plugins_dir[$k] = rtrim($v, '/\\') . DS; - } - } - } else { - // append new directory - $this->plugins_dir[] = rtrim($plugins_dir, '/\\') . DS; - } - - $this->plugins_dir = array_unique($this->plugins_dir); - return $this; - } - - /** - * Get plugin directories - * - * @return array list of plugin directories - */ - public function getPluginsDir() - { - return (array)$this->plugins_dir; - } - - /** - * Set compile directory - * - * @param string $compile_dir directory to store compiled templates in - * @return Smarty current Smarty instance for chaining - */ - public function setCompileDir($compile_dir) - { - $this->compile_dir = rtrim($compile_dir, '/\\') . DS; - if (!isset(Smarty::$_muted_directories[$this->compile_dir])) { - Smarty::$_muted_directories[$this->compile_dir] = null; - } - return $this; - } - - /** - * Get compiled directory - * - * @return string path to compiled templates - */ - public function getCompileDir() - { - return $this->compile_dir; - } - - /** - * Set cache directory - * - * @param string $cache_dir directory to store cached templates in - * @return Smarty current Smarty instance for chaining - */ - public function setCacheDir($cache_dir) - { - $this->cache_dir = rtrim($cache_dir, '/\\') . DS; - if (!isset(Smarty::$_muted_directories[$this->cache_dir])) { - Smarty::$_muted_directories[$this->cache_dir] = null; - } - return $this; - } - - /** - * Get cache directory - * - * @return string path of cache directory - */ - public function getCacheDir() - { - return $this->cache_dir; - } - - /** - * Set default modifiers - * - * @param array|string $modifiers modifier or list of modifiers to set - * @return Smarty current Smarty instance for chaining - */ - public function setDefaultModifiers($modifiers) - { - $this->default_modifiers = (array) $modifiers; - return $this; - } - - /** - * Add default modifiers - * - * @param array|string $modifiers modifier or list of modifiers to add - * @return Smarty current Smarty instance for chaining - */ - public function addDefaultModifiers($modifiers) - { - if (is_array($modifiers)) { - $this->default_modifiers = array_merge($this->default_modifiers, $modifiers); - } else { - $this->default_modifiers[] = $modifiers; - } - - return $this; - } - - /** - * Get default modifiers - * - * @return array list of default modifiers - */ - public function getDefaultModifiers() - { - return $this->default_modifiers; - } - - - /** - * Set autoload filters - * - * @param array $filters filters to load automatically - * @param string $type "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types - * @return Smarty current Smarty instance for chaining - */ - public function setAutoloadFilters($filters, $type=null) - { - if ($type !== null) { - $this->autoload_filters[$type] = (array) $filters; - } else { - $this->autoload_filters = (array) $filters; - } - - return $this; - } - - /** - * Add autoload filters - * - * @param array $filters filters to load automatically - * @param string $type "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types - * @return Smarty current Smarty instance for chaining - */ - public function addAutoloadFilters($filters, $type=null) - { - if ($type !== null) { - if (!empty($this->autoload_filters[$type])) { - $this->autoload_filters[$type] = array_merge($this->autoload_filters[$type], (array) $filters); - } else { - $this->autoload_filters[$type] = (array) $filters; - } - } else { - foreach ((array) $filters as $key => $value) { - if (!empty($this->autoload_filters[$key])) { - $this->autoload_filters[$key] = array_merge($this->autoload_filters[$key], (array) $value); - } else { - $this->autoload_filters[$key] = (array) $value; - } - } - } - - return $this; - } - - /** - * Get autoload filters - * - * @param string $type type of filter to get autoloads for. Defaults to all autoload filters - * @return array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified - */ - public function getAutoloadFilters($type=null) - { - if ($type !== null) { - return isset($this->autoload_filters[$type]) ? $this->autoload_filters[$type] : array(); - } - - return $this->autoload_filters; - } - - /** - * return name of debugging template - * - * @return string - */ - public function getDebugTemplate() - { - return $this->debug_tpl; - } - - /** - * set the debug template - * - * @param string $tpl_name - * @return Smarty current Smarty instance for chaining - * @throws SmartyException if file is not readable - */ - public function setDebugTemplate($tpl_name) - { - if (!is_readable($tpl_name)) { - throw new SmartyException("Unknown file '{$tpl_name}'"); - } - $this->debug_tpl = $tpl_name; - - return $this; - } - - /** - * creates a template object - * - * @param string $template the resource handle of the template file - * @param mixed $cache_id cache id to be used with this template - * @param mixed $compile_id compile id to be used with this template - * @param object $parent next higher level of Smarty variables - * @param boolean $do_clone flag is Smarty object shall be cloned - * @return object template object - */ - public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null, $do_clone = true) - { - if (!empty($cache_id) && (is_object($cache_id) || is_array($cache_id))) { - $parent = $cache_id; - $cache_id = null; - } - if (!empty($parent) && is_array($parent)) { - $data = $parent; - $parent = null; - } else { - $data = null; - } - // default to cache_id and compile_id of Smarty object - $cache_id = $cache_id === null ? $this->cache_id : $cache_id; - $compile_id = $compile_id === null ? $this->compile_id : $compile_id; - // already in template cache? - if ($this->allow_ambiguous_resources) { - $_templateId = Smarty_Resource::getUniqueTemplateName($this, $template) . $cache_id . $compile_id; - } else { - $_templateId = $this->joined_template_dir . '#' . $template . $cache_id . $compile_id; - } - if (isset($_templateId[150])) { - $_templateId = sha1($_templateId); - } - if ($do_clone) { - if (isset($this->template_objects[$_templateId])) { - // return cached template object - $tpl = clone $this->template_objects[$_templateId]; - $tpl->smarty = clone $tpl->smarty; - $tpl->parent = $parent; - $tpl->tpl_vars = array(); - $tpl->config_vars = array(); - } else { - $tpl = new $this->template_class($template, clone $this, $parent, $cache_id, $compile_id); - } - } else { - if (isset($this->template_objects[$_templateId])) { - // return cached template object - $tpl = $this->template_objects[$_templateId]; - $tpl->parent = $parent; - $tpl->tpl_vars = array(); - $tpl->config_vars = array(); - } else { - $tpl = new $this->template_class($template, $this, $parent, $cache_id, $compile_id); - } - } - // fill data if present - if (!empty($data) && is_array($data)) { - // set up variable values - foreach ($data as $_key => $_val) { - $tpl->tpl_vars[$_key] = new Smarty_variable($_val); - } - } - return $tpl; - } - - - /** - * Takes unknown classes and loads plugin files for them - * class name format: Smarty_PluginType_PluginName - * plugin filename format: plugintype.pluginname.php - * - * @param string $plugin_name class plugin name to load - * @param bool $check check if already loaded - * @return string |boolean filepath of loaded file or false - */ - public function loadPlugin($plugin_name, $check = true) - { - // if function or class exists, exit silently (already loaded) - if ($check && (is_callable($plugin_name) || class_exists($plugin_name, false))) { - return true; - } - // Plugin name is expected to be: Smarty_[Type]_[Name] - $_name_parts = explode('_', $plugin_name, 3); - // class name must have three parts to be valid plugin - // count($_name_parts) < 3 === !isset($_name_parts[2]) - if (!isset($_name_parts[2]) || strtolower($_name_parts[0]) !== 'smarty') { - throw new SmartyException("plugin {$plugin_name} is not a valid name format"); - return false; - } - // if type is "internal", get plugin from sysplugins - if (strtolower($_name_parts[1]) == 'internal') { - $file = SMARTY_SYSPLUGINS_DIR . strtolower($plugin_name) . '.php'; - if (file_exists($file)) { - require_once($file); - return $file; - } else { - return false; - } - } - // plugin filename is expected to be: [type].[name].php - $_plugin_filename = "{$_name_parts[1]}.{$_name_parts[2]}.php"; - - $_stream_resolve_include_path = function_exists('stream_resolve_include_path'); - - // loop through plugin dirs and find the plugin - foreach($this->getPluginsDir() as $_plugin_dir) { - $names = array( - $_plugin_dir . $_plugin_filename, - $_plugin_dir . strtolower($_plugin_filename), - ); - foreach ($names as $file) { - if (file_exists($file)) { - require_once($file); - return $file; - } - if ($this->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_plugin_dir)) { - // try PHP include_path - if ($_stream_resolve_include_path) { - $file = stream_resolve_include_path($file); - } else { - $file = Smarty_Internal_Get_Include_Path::getIncludePath($file); - } - - if ($file !== false) { - require_once($file); - return $file; - } - } - } - } - // no plugin loaded - return false; - } - - /** - * Compile all template files - * - * @param string $extension file extension - * @param bool $force_compile force all to recompile - * @param int $time_limit - * @param int $max_errors - * @return integer number of template files recompiled - */ - public function compileAllTemplates($extention = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null) - { - return Smarty_Internal_Utility::compileAllTemplates($extention, $force_compile, $time_limit, $max_errors, $this); - } - - /** - * Compile all config files - * - * @param string $extension file extension - * @param bool $force_compile force all to recompile - * @param int $time_limit - * @param int $max_errors - * @return integer number of template files recompiled - */ - public function compileAllConfig($extention = '.conf', $force_compile = false, $time_limit = 0, $max_errors = null) - { - return Smarty_Internal_Utility::compileAllConfig($extention, $force_compile, $time_limit, $max_errors, $this); - } - - /** - * Delete compiled template file - * - * @param string $resource_name template name - * @param string $compile_id compile id - * @param integer $exp_time expiration time - * @return integer number of template files deleted - */ - public function clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) - { - return Smarty_Internal_Utility::clearCompiledTemplate($resource_name, $compile_id, $exp_time, $this); - } - - - /** - * Return array of tag/attributes of all tags used by an template - * - * @param object $templae template object - * @return array of tag/attributes - */ - public function getTags(Smarty_Internal_Template $template) - { - return Smarty_Internal_Utility::getTags($template); - } - - /** - * Run installation test - * - * @param array $errors Array to write errors into, rather than outputting them - * @return boolean true if setup is fine, false if something is wrong - */ - public function testInstall(&$errors=null) - { - return Smarty_Internal_Utility::testInstall($this, $errors); - } - - /** - * Error Handler to mute expected messages - * - * @link http://php.net/set_error_handler - * @param integer $errno Error level - * @return boolean - */ - public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext) - { - $_is_muted_directory = false; - - // add the SMARTY_DIR to the list of muted directories - if (!isset(Smarty::$_muted_directories[SMARTY_DIR])) { - $smarty_dir = realpath(SMARTY_DIR); - if ($smarty_dir !== false) { - Smarty::$_muted_directories[SMARTY_DIR] = array( - 'file' => $smarty_dir, - 'length' => strlen($smarty_dir), - ); - } - } - - // walk the muted directories and test against $errfile - foreach (Smarty::$_muted_directories as $key => &$dir) { - if (!$dir) { - // resolve directory and length for speedy comparisons - $file = realpath($key); - if ($file === false) { - // this directory does not exist, remove and skip it - unset(Smarty::$_muted_directories[$key]); - continue; - } - $dir = array( - 'file' => $file, - 'length' => strlen($file), - ); - } - if (!strncmp($errfile, $dir['file'], $dir['length'])) { - $_is_muted_directory = true; - break; - } - } - - // pass to next error handler if this error did not occur inside SMARTY_DIR - // or the error was within smarty but masked to be ignored - if (!$_is_muted_directory || ($errno && $errno & error_reporting())) { - if (Smarty::$_previous_error_handler) { - return call_user_func(Smarty::$_previous_error_handler, $errno, $errstr, $errfile, $errline, $errcontext); - } else { - return false; - } - } - } - - /** - * Enable error handler to mute expected messages - * - * @return void - */ - public static function muteExpectedErrors() - { - /* - error muting is done because some people implemented custom error_handlers using - http://php.net/set_error_handler and for some reason did not understand the following paragraph: - - It is important to remember that the standard PHP error handler is completely bypassed for the - error types specified by error_types unless the callback function returns FALSE. - error_reporting() settings will have no effect and your error handler will be called regardless - - however you are still able to read the current value of error_reporting and act appropriately. - Of particular note is that this value will be 0 if the statement that caused the error was - prepended by the @ error-control operator. - - Smarty deliberately uses @filemtime() over file_exists() and filemtime() in some places. Reasons include - - @filemtime() is almost twice as fast as using an additional file_exists() - - between file_exists() and filemtime() a possible race condition is opened, - which does not exist using the simple @filemtime() approach. - */ - $error_handler = array('Smarty', 'mutingErrorHandler'); - $previous = set_error_handler($error_handler); - - // avoid dead loops - if ($previous !== $error_handler) { - Smarty::$_previous_error_handler = $previous; - } - } - - /** - * Disable error handler muting expected messages - * - * @return void - */ - public static function unmuteExpectedErrors() - { - restore_error_handler(); - } -} - -// Check if we're running on windows -Smarty::$_IS_WINDOWS = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; - -// let PCRE (preg_*) treat strings as ISO-8859-1 if we're not dealing with UTF-8 -if (Smarty::$_CHARSET !== 'UTF-8') { - Smarty::$_UTF8_MODIFIER = ''; -} - -/** - * Smarty exception class - * @package Smarty - */ -class SmartyException extends Exception { - public static $escape = true; - public function __construct($message) { - $this->message = self::$escape ? htmlentities($message) : $message; - } -} - -/** - * Smarty compiler exception class - * @package Smarty - */ -class SmartyCompilerException extends SmartyException { -} - -/** - * Autoloader - */ -function smartyAutoload($class) -{ - $_class = strtolower($class); - $_classes = array( - 'smarty_config_source' => true, - 'smarty_config_compiled' => true, - 'smarty_security' => true, - 'smarty_cacheresource' => true, - 'smarty_cacheresource_custom' => true, - 'smarty_cacheresource_keyvaluestore' => true, - 'smarty_resource' => true, - 'smarty_resource_custom' => true, - 'smarty_resource_uncompiled' => true, - 'smarty_resource_recompiled' => true, - ); - - if (!strncmp($_class, 'smarty_internal_', 16) || isset($_classes[$_class])) { - include SMARTY_SYSPLUGINS_DIR . $_class . '.php'; - } -} - -?>
View file
Smarty-3.1.13.tar.gz/distribution/libs/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/distribution/libs/sysplugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/Makefile-dist
Deleted
@@ -1,80 +0,0 @@ -STYLESHEETS_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl -PHP = /usr/bin/php -ZIP = /usr/bin/zip -FOP = /usr/bin/fop -XMLTO = /usr/bin/xmlto -XSLTPROC = /usr/bin/xsltproc -WINE = /usr/bin/wine -LANG = en -LANGS_AVAIL = de en es fr it ja pt_BR ru - -all: html pdf - -allweb: html htmlweb pdf - -html: set-current-lang-symlink set-date - rm -rf manual-$(LANG) - $(XMLTO) html \ - -o manual-$(LANG) \ - --stringparam use.id.as.filename=1 \ - --stringparam chunker.output.encoding='UTF-8' \ - --stringparam chunker.output.indent='yes' \ - -x $(STYLESHEETS_DIR)/html/chunk.xsl \ - manual.xml - $(ZIP) -r manual-$(LANG).zip manual-$(LANG) - -set-current-lang-symlink: - rm -f current_lang - ln -s $(LANG) current_lang - -set-date: - sed "s/{DATE}/`date '+%Y-%m-%d'`/" entities/version.ent.in > entities/version.ent - -fo: - $(XSLTPROC) -o manual-$(LANG).fo $(STYLESHEETS_DIR)/fo/docbook.xsl manual.xml - -pdf: set-current-lang-symlink set-date fo - $(FOP) \ - -c fop/$(LANG).conf \ - -pdf manual-$(LANG).pdf \ - -fo manual-$(LANG).fo - rm -f manual-$(LANG).fo - -htmlweb: set-current-lang-symlink set-date - rm -rf manualweb-$(LANG) htmlweb-$(LANG) - $(XMLTO) html \ - -o manualweb-$(LANG) \ - --stringparam use.id.as.filename=1 \ - --stringparam html.ext='.tpl' \ - --stringparam chunker.output.encoding='UTF-8' \ - --stringparam chunker.output.indent='yes' \ - -x $(STYLESHEETS_DIR)/html/chunk.xsl \ - manual.xml - $(PHP) -f scripts/makeweb.php manualweb-$(LANG) htmlweb-$(LANG) - rm -rf manualweb-$(LANG) - -chm: set-current-lang-symlink set-date - rm -rf htmlhelp-$(LANG) - $(XSLTPROC) \ - -o htmlhelp-$(LANG)/ \ - --stringparam htmlhelp.encoding 'UTF-8' \ - --stringparam htmlhelp.enhanced.decompilation 1 \ - --stringparam htmlhelp.hhc.binary 1 \ - --stringparam htmlhelp.autolabel 1 \ - --stringparam suppress.navigation 0 \ - --stringparam htmlhelp.default.topic 'make_chm_index.html' \ - --stringparam htmlhelp.use.hhk 1 \ - $(STYLESHEETS_DIR)/htmlhelp/htmlhelp.xsl \ - manual.xml - cp $(LANG)/make_chm_index.html htmlhelp-$(LANG)/ - $(WINE) regsvr32 tools/hhw/it*.dll - WINEDLLOVERRIDES="itircl,itss=n" wine tools/hhw/hhc.exe htmlhelp-en/htmlhelp.hhp || true - cp htmlhelp-$(LANG)/htmlhelp.chm ./manual-$(LANG).chm - rm -rf htmlhelp-$(LANG) - -revcheck: - $(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html - -clean: - for x in $(LANGS_AVAIL); do rm -rf manual-$${x} manual-$${x}.fo manual-$${x}.pdf htmlweb-$${x}; done - rm -f revcheck.html
View file
Smarty-3.1.13.tar.gz/documentation/README
Deleted
@@ -1,24 +0,0 @@ -This directory contains the documentation for Smarty. All files are in docbook -format with an .xml extention. Different subdirs contain different available languages. - -Programs required: - -xmlto -xsltproc -fop - -Files required: - -Default XSL stylesheets, ship with Ubuntu under: -/usr/share/xml/docbook/stylesheet/docbook-xsl - -MAKE: - * make html (make plain html english docs) - * make pdf (make pdf english docs) - * make LANG=de html (make plain html german docs) - * make LANG=de pdf (make pdf german docs) - -CHM files (todo) - -Revision Tracking (for translations): - * make LANG=de revcheck (this will create revcheck.html)
View file
Smarty-3.1.13.tar.gz/documentation/current_lang
Deleted
-(symlink to en)
View file
Smarty-3.1.13.tar.gz/documentation/de
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/appendixes/bugs.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<!-- $Revision: 2972 $ --> -<chapter id="bugs"> - <title>BUGS</title> - <para> - Bitte konsultieren Sie die Datei <filename>BUGS</filename> welche mit Smarty ausgeliefert wird, - oder die Webseite. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/appendixes/resources.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<chapter id="resources"> - <title>Weiterführende Informationen</title> - <para> - Smarty's Homepage erreicht man unter <ulink - url="&url.smarty;">&url.smarty;</ulink>. Sie können der Smarty - Mailingliste beitreten in dem sie ein E-mail an - &ml.general.sub;. Das Archiv der Liste ist hier <ulink - url="&url.ml.archive;">&url.ml.archive;</ulink> einsehbar. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/appendixes/tips.xml
Deleted
@@ -1,426 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.10 Maintainer: messju Status: ready --> - <chapter id="tips"> - <title>Tips & Tricks</title> - <para> - </para> - <sect1 id="tips.blank.var.handling"> - <title>Handhabung unangewiesener Variablen</title> - <para> - Manchmal möchten Sie vielleicht, dass anstatt einer Leerstelle ein - Standardwert ausgegeben wird - zum Beispiel um im - Tabellenhintergrund "&nbsp;" auszugeben, damit er korrekt - angezeigt wird. Damit dafür keine <link - linkend="language.function.if">{if}</link> Anweisung verwendet - werden muss, gibt es in Smarty eine Abkürzung: die Verwendung des - <emphasis>default</emphasis> Variablen-Modifikators. - </para> - <example> - <title>"&nbsp;" ausgeben wenn eine Variable nicht zugewiesen ist</title> - <programlisting> -<![CDATA[ -{* die lange Variante: *} -{if $titel eq ""} - -{else} - {$titel} -{/if} - - -{* kürzer: *} -{$titel|default:" "} -]]> - </programlisting> - </example> - <para> - Siehe auch <link linkend="language.modifier.default">default - (Standardwert)</link> und <link - linkend="tips.default.var.handling">Handhabung von - Standardwerten</link>. - </para> - </sect1> - - <sect1 id="tips.default.var.handling"> - <title>Handhabung von Standardwerten</title> - <para> - Wenn eine Variable in einem Template häufig zum Einsatz kommt, - kann es ein bisschen störend wirken, den <link - linkend="language.modifier.default"><emphasis>default</emphasis></link>-Modifikator - jedes mal anzuwenden. Sie können dies umgehen, indem Sie der - Variable mit der <link - linkend="language.function.assign">{assign}</link> Funktion einen - Standardwert zuweisen. - </para> - <example> - <title>Zuweisen des Standardwertes einer Variable</title> - <programlisting> -<![CDATA[ -{* schreiben sie dieses statement an den Anfang des Templates *} -{assign var="titel" value=$titel|default:"kein Titel"} - -{* falls 'titel' bei der Anweisung leer war, enthält es nun den Wert - 'kein Titel' wenn Sie es ausgeben *} -{$titel} -]]> - </programlisting> - </example> - <para> - Siehe auch <link linkend="language.modifier.default">default - (Standardwert)</link> und <link - linkend="tips.blank.var.handling">Handhabung nicht zugewiesener - Variablen</link>. - </para> - </sect1> - - <sect1 id="tips.passing.vars"> - <title>Variablen an eingebundene Templates weitergeben</title> - <para> - Wenn die Mehrzahl Ihrer Templates den gleichen Header und Footer - verwenden, lagert man diese meist in eigene Templates aus und - bindet diese mit<link - linkend="language.function.include">{include}</link> ein. Was - geschieht aber wenn der Header einen seitenspezifischen Titel - haben soll? Smarty bietet die Möglichkeit, dem eingebundenen - Template, Variablen als <link - linkend="language.syntax.attributes">Attribute</link> zu - übergeben. - </para> - <example> - <title>Die Titel-Variable dem Header-Template zuweisen</title> - <para> - <filename>mainpage.tpl</filename> - Beim Aufbau der Hauptseite - wird der Titel "Hauptseite" an <filename>header.tpl</filename> - übergeben und dort verwendet. - </para> - <programlisting> -<![CDATA[ -{include file="header.tpl" title="Hauptseite"} -{* template body hier *} -{include file="footer.tpl"} -]]> - </programlisting> - <para> - <filename>archives.tpl</filename> - </para> - <programlisting> -<![CDATA[ - -{config_load file="archiv.conf"} -{include file="header.tpl" title=#archivSeiteTitel#} -{* template body hier *} -{include file="footer.tpl"} -]]> - </programlisting> - <para> - <filename>header.tpl</filename> - Zur Info: wenn kein $titel - übergeben wurde wird hier mittels des <link - linkend="language.modifier.default">default</link>-Modifikator der - Titel "Nachrichten" verwendet. - </para> - <programlisting> -<![CDATA[ -<html> -<head> -<title>{$title|default:"Nachrichten"}</title> -</head> -<body> -]]> - </programlisting> - <para> - <filename>footer.tpl</filename> - </para> - <programlisting> -<![CDATA[ -</BODY> -</HTML> -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.dates"> - <title>Zeitangaben</title> - <para> - Um dem Template Designer höchstmögliche Kontrolle über die Ausgabe - von Zeitangaben/Daten zu ermöglichen, ist es empfehlenswert Daten - immer als <ulink url="&url.php-manual;time">Timestamp</ulink> zu - übergeben. Der Designer kann danach die Funktion <link - linkend="language.modifier.date.format">date_format</link> für die - Formatierung verwenden. - </para> - <para> - Bemerkung: Seit Smarty 1.4.0 ist es möglich jede Timestamp zu - übergeben, welche mit strtotime() ausgewertet werden kann. Dazu - gehören Unix-Timestamps und MySQL-Timestamps. - </para> - <example> - <title>Die Verwendung von date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - AUSGABE: - </para> - <screen> -<![CDATA[ -Jan 4, 2001 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDatum|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> -AUSGABE: - </para> - <screen> -<![CDATA[ -2001/01/04 -]]> - </screen> - <programlisting> -<![CDATA[ -{if $datum1 < $datum2} -... -{/if} -]]> - </programlisting> - </example> - <para> - Falls <link - linkend="language.function.html.select.date">{html_select_date}</link> - in einem Template verwendet wird, hat der Programmierer die - Möglichkeit den Wert wieder in ein Timestamp-Format zu - ändern. Dies kann zum Beispiel wie folgt gemacht werden: - </para> - <example> - <title>Formular Datum-Elemente nach Timestamp konvertieren</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// hierbei wird davon ausgegangen, dass Ihre Formular Elemente wie folgt benannt sind -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year,$startDate_Month,$startDate_Day); - -function makeTimeStamp($year="",$month="",$day="") -{ - if(empty($year)) { - $year = strftime("%Y"); - } - if(empty($month)) { - $month = strftime("%m"); - } - if(empty($day)) { - $day = strftime("%d"); - } - return mktime(0, 0, 0, $month, $day, $year); -} -]]> - </programlisting> - </example> - - <para> - Siehe auch - <link linkend="language.function.html.select.date">{html_select_date}</link>, - <link linkend="language.function.html.select.time">{html_select_time}</link>, - <link linkend="language.modifier.date.format">date_format</link> - und <link linkend="language.variables.smarty.now">$smarty.now</link>, - </para> - </sect1> - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - WAP/WML Templates verlangen, dass ein Content-Type Header im - Template angegeben wird. Der einfachste Weg um dies zu tun, wäre, - eine Funktion zu schreiben, welche den Header ausgibt. Falls sie - den Caching Mechanismus verwenden, sollten Sie auf das - 'insert'-Tag zurückgreifen ('insert'-Tags werden nicht gecached), - um ein optimales Ergebnis zu erzielen. Achten Sie darauf, dass vor - der Ausgabe des Headers keine Daten an den Client gesendet werden, - da die gesendeten Header-Daten ansonsten von Client verworfen - werden. - </para> - <example> - <title>Die verwendung von 'insert' um einen WML Content-Type header zu senden</title> - <programlisting> -<![CDATA[ -<?php - -// stellen Sie sicher, dass Apache mit .wml Dateien umgehen kann! -// schreiben Sie folgende Funktion in Ihrer Applikation, oder in Smarty.addons.php -function insert_header($params) -{ - // folgende Funktion erwartet ein $inhalt argument - if (empty($params['inhalt'])) { - return; - } - header($params['inhalt']); - return; -} - -?> -]]> - </programlisting> - <para> - Ihr Template <emphasis>muss</emphasis> danach wie folgt beginnen: - </para> - <programlisting> -<![CDATA[ -{insert name=header inhalt="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- neues wml deck --> -<wml> - <!-- erste karte --> - <card> - <do type="accept"> - <go href="#zwei"/> - </do> - <p> - Welcome to WAP with Smarty! - Willkommen bei WAP mit Smarty! - OK klicken um weiterzugehen... - </p> - </card> - <!-- zweite karte --> - <card id="zwei"> - <p> - Einfach, oder? - </p> - </card> -</wml> -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.componentized.templates"> - <title>Template/Script Komponenten</title> - <para> - Normalerweise werden Variablen dem Template wie folgt zugewiesen: - In Ihrer PHP-Applikation werden die Variablen zusammengestellt - (zum Beispiel mit Datenbankabfragen). Danach kreieren Sie eine - Instanz von Smarty, weisen die Variablen mit <link - linkend="api.assign">assign()</link> zu und geben das Template mit - <link linkend="api.display">display()</link> aus. Wenn wir also - zum Beispiel einen Börsenticker in unserem Template haben, stellen - wir die Kursinformationen in unserer Anwendung zusammen, weisen - Sie dem Template zu und geben es aus. Wäre es jedoch nicht nett - diesen Börsenticker einfach in ein Template einer anderen - Applikation einbinden zu können ohne deren Programmcode zu ändern? - </para> - <para> - Sie können PHP-Code mit {php}{/php} in Ihre Templates einbetten. - So können Sie Templates erstellen, welche die Datenstrukturen zur - Anweisung der eigenen Variablen enthalten. Durch die Bindung von - Template und Logik entsteht so eine eigenständig lauffähige - Komponente. - </para> - <example> - <title>Template/Script Komponenten</title> - <para> - <filename>function.load_ticker.php</filename> - - Diese Datei gehört ins <link - linkend="variable.plugins.dir">$plugins directory</link> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// setup our function for fetching stock data -function fetch_ticker($symbol) -{ - // put logic here that fetches $ticker_info - // from some ticker resource - return $ticker_info; -} - -function smarty_function_load_ticker($params, $smarty) -{ - // call the function - $ticker_info = fetch_ticker($params['symbol']); - - // assign template variable - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{load_ticker symbol="YHOO" assign="ticker"} - -Stock Name: {$ticker.name} Stock Price: {$ticker.price} -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.obfuscating.email"> - <title>Verschleierung von E-mail Adressen</title> - <para> - Haben Sie sich auch schon gewundert, wie Ihre E-mail Adresse auf - so viele Spam-Mailinglisten kommt? Ein Weg, wie Spammer E-mail - Adressen sammeln, ist über Webseiten. Um dieses Problem zu - bekämpfen, können sie den 'mailto'-Plugin verwenden. Er ändert - die Zeichenfolge mit Javascript so, dass sie im HTML Quellcode - nicht lesbar ist, jedoch von jedem Browser wieder zusammengesetzt - werden kann. Den <link - linkend="language.function.mailto">{mailto}</link>-Plugin gibt es - im Smarty-Repository auf http://www.smarty.net. Laden sie den - Plugin herunter und speichern Sie ihn im 'plugins' Verzeichnis. - </para> - <example> - <title>Beispiel von verschleierung von E-mail Adressen</title> - <programlisting> -{* in index.tpl *} - -Anfragen bitte an -{mailto address=$EmailAddress encode="javascript" subject="Hallo"} -senden - </programlisting> - </example> - <note> - <title>Technische Details</title> - <para> - Die Codierung mit Javascript ist nicht sehr sicher, da ein - möglicher Spammer die Decodierung in sein Sammelprogramm - einbauen könnte. Es wird jedoch damit gerechnet, dass, da - Aufwand und Ertrag sich nicht decken, dies nicht oft der Fall - ist. - </para> - </note> - <para> - Siehe auch <link linkend="language.modifier.escape">escape</link> - und <link linkend="language.function.mailto">{mailto}</link>. - </para> - </sect1> - </chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/appendixes/troubleshooting.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<chapter id="troubleshooting"> - <title>Problemlösung</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Smarty/PHP Fehler</title> - <para> - Smarty kann verschiedene Fehler-Typen, wie fehlende Tag-Attribute - oder syntaktisch falsche Variablen-Namen abfangen. Wenn dies - geschieht, wird Ihnen eine Fehlermeldung ausgegeben. Beispiel: - </para> - <example> - <title>Smarty Fehler</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041</programlisting> -]]> - </screen> - </example> - <para> - In der ersten Zeile zeigt Smarty den Template-Namen, die - Zeilennummer und den Fehler an. Darauf folgt die betroffene Zeile - in der Smarty Klasse welche den Fehler erzeugt hat. - </para> - <para> - Es gibt gewisse Fehlerkonditionen, die Smarty nicht abfangen kann (bsp: fehlende End-Tags). Diese Fehler - resultieren jedoch normalerweise in einem PHP-'compile-time' Fehler. - </para> - - <example> - <title>PHP Syntaxfehler</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75</programlisting> -]]> - </screen> - </example> - <para> - Wenn ein PHP Syntaxfehler auftritt, wird Ihnen die Zeilennummer - des betroffenen PHP Skriptes ausgegeben, nicht die des - Templates. Normalerweise können Sie jedoch das Template - anschauen um den Fehler zu lokalisieren. Schauen sie insbesondere - auf Folgendes: fehlende End-Tags in einer {if}{/if} Anweisung oder - in einer {section}{/section} und die Logik eines {if} - Blocks. Falls Sie den Fehler so nicht finden, können Sie auch - das kompilierte Skript öffnen und zu der betreffenden - Zeilennummer springen um herauszufinden welcher Teil des Templates - den Fehler enthält. - </para> - </sect1> - </chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/bookinfo.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready --> - <bookinfo id="bookinfo"> - <title>Smarty - die kompilierende PHP Template-Engine</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname><surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Andrei</firstname><surname>Zmievski <andrei@php.net></surname> - </author> - </authorgroup> - <authorgroup id="translators"> - <author> - <firstname>Andreas</firstname><surname>Halter <smarty@andreashalter.ch> (Deutsche Übersetzung)</surname> - </author> - <author> - <firstname>Thomas</firstname><surname>Schulz <ths@4bconsult.de> (Review der deutschen Übersetzung)</surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2005</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/chapter-debugging-console.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<chapter id="chapter.debugging.console"> - <title>Debugging Konsole</title> - <para> - Smarty wird mit einer eingebauten Debugging Konsole - ausgeliefert. Diese Konsole informiert über die im aufgerufenen - Template <link - linkend="language.function.include">eingebundenen</link> Templates, - die <link linkend="api.assign">zugewiesenen</link> Variablen und die - <link - linkend="language.config.variables">Konfigurations-Variablen</link>. - Die Formatierung der Konsole wird über das Template <link - linkend="variable.debug.tpl">debug.tpl</link> gesteuert. Um - debugging zu aktivieren, setzten Sie <link - linkend="variable.debugging">$debugging</link> auf 'true' und (falls - nötig) übergeben in <link - linkend="variable.debug.tpl">$debug_tpl</link> den Pfad zum - Debugtemplate (normalerweise <link - linkend="constant.smarty.dir">SMARTY_DIR</link>debug.tpl). Wenn Sie - danach eine Seite laden, sollte ein Javascript-Fenster geöffnet - werden in welchem Sie alle Informationen zur aufgerufenen Seite - finden. Falls Sie die Variablen eines bestimmten Templates ausgeben - wollen, können Sie dazu die Funktion <link - linkend="language.function.debug">{debug}</link> verwenden. Um - debugging auszuschalten, können Sie <link - linkend="variable.debugging">$debugging</link> auf 'false' setzen. - Sie können debugging auch temporär aktivieren, in dem Sie der - aufgerufenen URL SMARTY_DEBUG mit übergeben, dies muss jedoch - zuerst mit <link - linkend="variable.debugging.ctrl">$debugging_ctrl</link> aktiviert - werden. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Die Debugging Konsole funktioniert nicht für Daten die via <link - linkend="api.fetch">fetch()</link> geladen wurden, sondern nur - für Daten die via <link linkend="api.display">display()</link> - ausgegeben werden. Die Konsole besteht aus ein paar Zeilen - Javascript welche am Ende jeder Seite eingefügt werden. Wenn - Sie Javascript nicht mögen, können Sie die Ausgabe in - 'debug.tpl' selbst definieren. Debug-Ausgaben werden nicht gecached - und Informationen zu 'debug.tpl' selbst werden nicht ausgegeben. - </para> - </note> - <note> - <para> - Die Ladezeiten werden in Sekunden, oder Bruchteilen davon, angegeben. - </para> - </note> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/config-files.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<chapter id="config.files"> - <title>Konfigurationsdateien</title> - <para> - Konfigurationsdateien sind ein praktischer Weg um Template-Variablen - aus einer gemeinsamen Datei zu lesen. Ein Beispiel sind die - Template-Farben. Wenn Sie die Farben einer Applikation anpassen - wollen, müssen Sie normalerweise alle Templates durcharbeiten, - und die entsprechenden Werte ändern. Mit einer - Konfigurationsdatei können Sie alle Definitionen in einer - einzigen Datei vornehmen, und somit auch einfach ändern. - </para> - <example> - <title>Beispiel der Konfigurationsdatei-Syntax</title> - <programlisting> -<![CDATA[ -# global variables -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[Customer] -pageTitle = "Customer Info" - -[Login] -pageTitle = "Login" -focus = "username" -Intro = """Diese Zeile erstreckt sich über - mehrere Zeilen, und muss deswegen - mit dreifachen Anführungszeichen - umschlossen werden.""" - -# hidden section -[.Database] -host=my.example.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]></programlisting> - </example> - <para> - <link linkend="language.config.variables">Die Werte in einer - Konfigurationsdatei</link> können in einfachen/doppelten - Anführungszeichen notiert werden. Falls Sie einen Wert haben der - sich über mehrere Zeilen ausbreitet muss dieser Wert in - dreifachen Anführungszeichen (""") eingebettet werden. Die - Kommentar-Syntax kann frei gewählt werden, solange sie nicht der - normalen Syntax entsprechen. Wir empfehlen die Verwendung von - <literal>#</literal> (Raute) am Anfang jeder Kommentar-Zeile. - </para> - <para> - Dieses Beispiel hat 2 'sections'. 'section'-Namen werden von - []-Zeichen umschlossen und können alle Zeichen ausser - <literal>[</literal> und <literal>]</literal> enthalten. Die vier - Variablen welche am Anfang der Datei definiert werden sind globale - Variablen. Diese Variablen werden immer geladen. Wenn eine - definierte 'section' geladen wird, werden also die globalen - Variablen ebenfalls eingelesen. Wenn eine Variable sowohl global als - auch in einer 'section' vorkommt, wird die 'section'-Variable - verwendet. Wenn zwei Variablen in der gleichen 'section' den selben - Namen aufweisen wird die Letztere verwendet, es sei denn <link - linkend="variable.config.overwrite">$config_overwrite</link> ist - deaktiviert ('false'). - </para> - <para> - Konfigurationsdateien werden mit <link - linkend="language.function.config.load"><command>config_load</command></link> - geladen. - </para> - <para> - Sie können Variablen oder auch ganze 'sections' verstecken indem - Sie dem Namen ein '.' voranstellen. Dies ist besonders wertvoll wenn - Ihre Applikation sensitive Informationen aus der Konfigurationsdatei - liest welche von der Template-Engine nicht verwendet werden. Falls - eine Drittpartei eine Änderung an der Konfigurationsdatei - vornimmt können Sie so sicherstellen, dass die sensitiven Daten - nicht in deren Template geladen werden können. - </para> - <para> - Siehe auch: <link - linkend="language.function.config.load">{config_load}</link>, <link - linkend="variable.config.overwrite">$config_overwrite</link>, <link - linkend="api.get.config.vars">get_config_vars()</link>, <link - linkend="api.clear.config">clear_config()</link> und <link - linkend="api.config.load">config_load()</link> - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<chapter id="language.basic.syntax"> - <title>Grundlegende Syntax</title> - <para> - Alle Smarty Template-Tags werden mit Trennzeichen umschlossen. Normalerweise - sind dies: <literal>{</literal> und <literal>}</literal>, sie können aber - auch <link linkend="variable.left.delimiter">verändert</link> werden. - </para> - <para> - Für die folgenden Beispiele wird davon ausgegangen, dass Sie die - Standard-Trennzeichen verwenden. Smarty erachtet alle Inhalte ausserhalb - der Trennzeichen als statisch und unveränderbar. Sobald Smarty - auf Template-Tags stösst, versucht es diese zu interpretieren und die - entsprechenden Ausgaben an deren Stelle einzufügen. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: messju Status: ready --> -<sect1 id="language.escaping"> - <title>Smarty Parsing umgehen</title> - <para> - Manchmal ist es wünschenswert, dass Smarty Teile eines - Templates nicht parst. Dies ist zum Beispiel der Fall, wenn - Javascript oder CSS im Template eingebettet werden. Da diese - Sprachen selbst { und } nutzen, erkennt Smarty diese als Start- - beziehungsweise End-Tags. - </para> - - <para> - Der einfachste Weg, dieses Problem zu umgehen, ist das Auslagern des - betreffenden Javascript oder CSS Codes in eigene Dateien. - </para> - - <para> - Um solche Inhalte trotzdem im gleichen Template einzubetten, können - Sie <link linkend="language.function.literal">{literal} - .. {/literal}</link> Blöcke verwenden. Die aktuell benutzten - Trennzeichen können Sie mit <link - linkend="language.function.ldelim">{ldelim}</link>, <link - linkend="language.function.ldelim">{rdelim}</link>, <link - linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link> - und <link linkend="language.variables.smarty.ldelim">{$smarty.rdelim}</link> - ausgeben. - </para> - - <para> - Manchmal ist es auch einfacher, die Trennzeichen selbst zu ändern: - <link linkend="variable.left.delimiter">$left_delimiter</link> und - <link linkend="variable.right.delimiter">$right_delimiter</link> - definieren diese. - </para> - <example> - <title>Beispiel wie die Trennzeichen angepasst werden</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - example.tpl würde somit wie folgt aussehen: - </para> - <programlisting> -<![CDATA[ -Willkommen bei Smarty, <!--{$name}-->! -<script language="javascript"> - var foo = <!--{$foo}-->; - function dosomething() { - alert("foo is " + foo); - } - dosomething(); -</script> -]]> - </programlisting> - </example> - <para> - Siehe auch: <link linkend="language.modifier.escape">Escape Modifikator</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="language.math"> - <title>Math</title> - <para> - Mathematische Operationen können direkt auf Variablen verwendet werden. - </para> - <example> - <title>Mathematik Beispiele</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* kompliziertere Beispiele *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> - - <para> - Siehe auch die <link linkend="language.function.math">{math}-Funktion</link> - für komplexere Berechnungen. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.6 Maintainer: messju Status: ready --> -<sect1 id="language.syntax.attributes"> - <title>Attribute / Parameter</title> - <para> - Die meisten Funktionen nehmen Parameter entgegen, die das Verhalten - der Funktion definieren beziehungsweise beeinflussen. Parameter - für Smarty <link - linkend="language.syntax.functions">Funktionen</link> sind HTML - Attributen sehr ähnlich. Statische Werte müssen nicht in - Anführungszeichen gesetzt werden, für literale - Zeichenketten (literal strings) wird dies jedoch empfohlen. - </para> - <para> - Bestimmte Parameter verlangen logische Werte (true / false). Diese - können auch ohne Anführungszeichen angegeben werden: - <literal>true</literal>, <literal>on</literal> und - <literal>yes</literal> - oder <literal>false</literal>, - <literal>off</literal> und <literal>no</literal>. - </para> - <example> - <title>Funktions-Parameter Syntax</title> - <programlisting> - <![CDATA[ -{include file='header.tpl'} - -{include file='header.tpl' attrib_name='attrib value'} - -{include file=$includeFile} - -{include file=#includeFile#} - -{html_select_date display_days=yes} - -{mailto address='smarty@example.com'} - -<select name=firma> -{html_options values=$vals selected=$selected output=$output} -</select> -]]> - </programlisting> - </example> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="language.syntax.comments"> - <title>Kommentare</title> - <para> - - Kommentare werden von Asterisks umschlossen, und mit <link - linkend="variable.left.delimiter">Trennzeichen</link> umgeben. - Beispiel: {* das ist ein Kommentar *} Smarty-Kommentare werden in - der Ausgabe nicht dargestellt und vor allem dazu verwendet, die - Templates verständlicher aufzubauen. Smarty Kommentare werden - sind in der engültigen Ausgabe NICHT dargestellt. (im Gegensatz zu - <!-- HTML Kommentaren -->). Sie sind nützlich um in den - Templates interne Anmerkungen zu hinterlassen. - </para> - <example> - <title>Kommentare</title> - <programlisting> -<![CDATA[ -<body> -{* Dies ist ein einzeiliger Kommentar *} - -{* dies ist ein mehrzeiliger - Kommentar, der nicht zum - Browser gesandt wird. -*} -</body> - -{* einbinden des Header-Templates *} -{include file="header.tpl"} - -{* Entwicklernotiz: $includeFile wurde in 'foo.php' zugewiesen *} -{include file=$includeFile} - -{include file=#includeFile#} - -{* Ausgabe der drop-down Liste *} -{* Dieser <select> Block ist überflüssig *} -{* -<select name=firma> -{html_options options=$vals selected=$selected} -</select> -*} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<sect1 id="language.syntax.functions"> - <title>Funktionen</title> - <para> - Jedes Smarty-Tag gibt entweder eine <link - linkend="language.variables">Variable</link> aus oder ruft eine - Funktion auf. Funktionen werden aufgerufen indem der Funktionsname - und die <link linkend="language.syntax.attributes">Parameter</link> - mit Trennzeichen umschlossen werden. Beispiel: {funcname attr1="val" - attr2="val"}. - </para> - <example> - <title>Funktions-Syntax</title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf"} - -{include file="header.tpl"} - -{if $highlight_name} - Welcome, <font color="{#fontColor#}">{$name}!</font> -{else} - Welcome, {$name}! -{/if} - -{include file="footer.tpl"} -]]> - </programlisting> - </example> - <para> - Sowohl der Aufruf von <link - linkend="language.builtin.functions">eingebauten</link>, als auch - der von e<link linkend="language.custom.functions">igenen</link> - Funktionen folgt der gleichen Syntax. - </para> - <para> - Eingebaute Funktionen erlauben einige <emphasis - role="bold">Basis</emphasis>-Operationen wie <link - linkend="language.function.if">if</link>, <link - linkend="language.function.section">section</link> und <link - linkend="language.function.strip">strip</link>. Diese Funktionen - können nicht verändert werden. - </para> - <para> - Individuelle Funktionen die die Fähigkeiten von Smarty erweitern - werden als Plugins implementiert. Diese Funktionen können von Ihnen - angepasst werden, oder Sie können selbst neue Plugins - hinzufügen. <link - linkend="language.function.html.options">{html_options}</link> und - <link - linkend="language.function.html.select.date">{html_select_date}</link> - sind Beispiele solcher Funktionen. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<sect1 id="language.syntax.quotes"> - <title>Variablen mit Doppelten Anführungszeichen</title> - <para> - Smarty erkennt <link linkend="api.assign">zugewiesene</link> <link - linkend="language.syntax.variables">Variablen</link> mit doppelten - Anführungszeichen solange die Variablen nur Zahlen, Buchstaben, - Understriche oder Klammern [] enthalten. Mit allen anderen Zeichen - wie Punkt, Objekt Referenzen, etc muss die Vairable mit Backticks - (``) umschlossen sein. - </para> - <example> - <title>Syntax von eingebetteten Anfürungszeichen</title> - <programlisting> -<![CDATA[ -SYNTAX BEISPIELE: -{func var="test $foo test"} <-- sieht $foo -{func var="test $foo_bar test"} <-- sieht $foo_bar -{func var="test $foo[0] test"} <-- sieht $foo[0] -{func var="test $foo[bar] test"} <-- sieht $foo[bar] -{func var="test $foo.bar test"} <-- sieht $foo (nicht $foo.bar) -{func var="test `$foo.bar` test"} <-- sieht $foo.bar -{func var="test `$foo.bar` test"|escape} <-- Modifikatoren ausserhalb der Anführungsz.! - -PRAKTISCHE BEISPIELE: -{include file="subdir/$tpl_name.tpl"} <-- ersetzt $tpl_name durch wert -{cycle values="one,two,`$smarty.config.myval`"} <-- muss Backticks enthalten</programlisting> -]]> - </programlisting> - </example> - <para> - Siehe auch <link linkend="language.modifier.escape">escape (Maskieren)</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<sect1 id="language.syntax.variables"> - <title>Variablen</title> - <para> - Templatevariablennamen beginnen mit einem $dollar-Zeichen. Sie - können Ziffer, Buchstaben und Unterstriche ('_') enthalten, sehr - ähnlich den <ulink - url="&url.php-manual;language.variables">Variablen in PHP</ulink>. - Numerische Arrayindizes können referenziert werden und auch - Nichtnumerische. Zugriff auf Objekteigenschaften und -methoden ist - auch möglich. - <link - linkend="language.config.variables">Konfigurationsvariablen</link> - sind einer Ausname was die Dollarzeichen-Syntax angeht. Diese werden - durch umgebende #Doppelkreuze# oder über die Varible <link - linkend="language.variables.smarty.config">$smarty.config</link> - referenziert. - </para> - <example> - <title>Variablen</title> - <programlisting> -<![CDATA[ -{$foo} <-- Zeigt einfache Variable an (kein Array oder Objekt) -{$foo[4]} <-- Zeigt 5. Element von einem Array an, deren Schlussel bei 0 beginnen -{$foo.bar} <-- Zeigt das Element zum Schlüssel "bar" des Arrays an (wie PHPs $foo['bar']) -{$foo.$bar} <-- Zeigt das Element eines variablen Schlüssels an (wie PHPs $foo[$bar]) -{$foo->bar} <-- Zeigt eine Eigenschaft "bar" des Objekts $foo an -{$foo->bar()} <-- Zeigt den Rückgabewert der Objectmethode "bar" an -{#foo#} <-- Zeift die Konfigurationsvariable "foo" an -{$smarty.config.foo} <-- Synonym für {#foo#} -{$foo[bar]} <-- Syntax zum zugriff auf Element in einer Section-Schleife, siehe {section} -{assign var=foo value="baa"}{$foo} <-- Gibt "baa" aus, siehe {assign} - -Viele weitere Kombinationen sind erlaubt - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- Parameter übergeben -{"foo"} <-- Statische (konstante) Werte sind auch erlaubt -]]> - </programlisting> - </example> - <para> - Siehe auch: <link linkend="language.variables.smarty">Die reservierte - {$smarty} Variable</link> und <link - linkend="language.config.variables">Verwendung von Variablen aus - Konfigurationsdateien</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> - <chapter id="language.builtin.functions"> - <title>Eingebaute Funktionen</title> - <para> - Smarty enthält eine Reihe eingebauter Funktionen. Eingebaute Funktionen - sind integral für die Template-Sprache. Sie können sie weder - verändern noch eigene Funktionen unter selbem Namen erstellen. - </para> -&designers.language-builtin-functions.language-function-capture; -&designers.language-builtin-functions.language-function-config-load; -&designers.language-builtin-functions.language-function-foreach; -&designers.language-builtin-functions.language-function-if; -&designers.language-builtin-functions.language-function-include; -&designers.language-builtin-functions.language-function-include-php; -&designers.language-builtin-functions.language-function-insert; -&designers.language-builtin-functions.language-function-ldelim; -&designers.language-builtin-functions.language-function-literal; -&designers.language-builtin-functions.language-function-php; -&designers.language-builtin-functions.language-function-section; -&designers.language-builtin-functions.language-function-strip; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,129 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.10 Maintainer: andreas Status: ready --> -<sect1 id="language.function.capture"> - <title>{capture} (Ausgabe abfangen)</title> - <para> - {capture} wird verwendet, um die Template-Ausgabe abzufangen und in - einer Variable zu speichern. Der Inhalt zwischen {capture - name="foo"} und {/capture} wird unter der im 'name' Attribut - angegebenen Capture-Variablen abgelegt und kann über <link - linkend="language.variables.smarty.capture">$smarty.capture.foo</link> - angesprochen werden. Falls kein 'name'-Attribut übergeben wurde, - wird der Inhalt in 'default' (also $smarty.capture.default) - abgelegt. Jede {capture} Sektion muss mit {/capture} beendet - werden. {capture}-Blöcke können verschachtelt sein. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Benötigt</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Der Name des abgefangenen Blocks</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der Variable welcher der Wert zugewiesen werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <caution> - <para> - Seien Sie vorsichtig, wenn sie die Ausgabe von <link - linkend="language.function.insert">{insert}</link> abfangen - wollen. Sie sollten die Ausgabe nicht abfangen, wenn Caching - eingeschaltet ist und Sie einen <link - linkend="language.function.insert">{insert}</link> Befehl - verwenden, um Ausgaben vom Caching auszuschliessen. - </para> - </caution> - <para> - <example> - <title>Template-Inhalte abfangen</title> - <programlisting> -<![CDATA[ - -{* Tabellenzeile nur ausgeben, wenn Inhalt vorhanden *} -{capture name=banner} -{include file='get_banner.tpl'} -{/capture} -{if $smarty.capture.banner ne ""} -<table> -<tr> - <td> - {$smarty.capture.banner} - </td> -</tr> -</table> -{/if} -]]> - </programlisting> - </example> - <example> - <title>Template-Inhalte abfangen</title> - <para> - Hier ist ein Beispiel das das Zusammenspiel mit der Funktion <link - linkend="language.function.popup">{popup}</link> demonstriert. - </para> - <programlisting> -<![CDATA[ - {capture name=some_content assign=popText} - .... some content .... - {/capture} - - <a href="#" {popup caption='Help' text=$popText}>help</a> -]]> - </programlisting> - </example> - </para> - <para> - Siehe auch: - <link - linkend="language.variables.smarty.capture">$smarty.capture</link>, - <link linkend="language.function.eval">{eval}</link>, - <link linkend="language.function.fetch">{fetch}</link>, - <link linkend="api.fetch">fetch()</link> - and <link linkend="language.function.assign">{assign}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,180 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.11 Maintainer: andreas Status: ready --> -<sect1 id="language.function.config.load"> - <title>{config_load} (Konfiguration laden)</title> - <para> - Diese Funktion wird verwendet, um <link - linkend="language.config.variables">Variablen aus einer - Konfigurationsdatei</link> in das Template zu laden. Sehen sie - <link linkend="config.files">Config Files - (Konfigurationsdateien)</link> für weitere Informationen. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert den Namen der einzubindenden Datei.</entry> - </row> - <row> - <entry>section</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert den Namen des zu ladenden Abschnitts.</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - Definiert den Geltungsbereich der zu ladenden Variablen. - Erlaubte Werte sind 'local','parent' und 'global'. 'local' - bedeutet, dass die Variablen in den Context des lokalen Template - geladen werden. 'parent' bedeutet, dass die Variablen sowohl in - den lokalen Context, als auch in den Context des aufrufenden - Templates eingebunden werden. 'global' bedeutet, dass die - Variablen von allen Templates zugänglich sind. - </entry> - </row> - <row> - <entry>global</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>No</emphasis></entry> - <entry> - Definiert, ob die Variablen von allen Templates aus zugänglich - sind. WICHTIG: Dieses Attribut wird von 'scope' abgelöst und - sollte nicht mehr verwendet werden. Falls 'scope' übergeben - wurde, wird 'global' ignoriert. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Funktion {config_load}</title> - <para> - beispiel.conf - </para> - <programlisting> -<![CDATA[ -#Dies ist ein Konfigurationsdateikommentar - -# globale Variablen -seitenTitel = "Hauptmenü" -bodyHintergrundFarbe = #000000 -tabelleHintergrundFarbe = #000000 -reiheHintergrundFarbe = #00ff00 - -# Kundenvariablen -[Kunden] -seitenTitel = "Kundeninfo" -]]> - </programlisting> - <para>and the template</para> - <programlisting> -<![CDATA[ -{config_load file='example.conf'} - -<html> -<title>{#seitenTitel#}</title> -<body bgcolor="{#bodyHintergrundFarbe#}"> -<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}"> - <tr bgcolor="{#reiheHintergrundFarbe#}"> - <td>Vornamen</td> - <td>Nachnamen</td> - <td>Adresse</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - <link linkend="config.files">Konfigurationsdateien</link> können - Abschnitte enthalten. Um Variablen aus einem Abschnitt zu laden, - können Sie das Attribut <emphasis>section</emphasis> übergeben. - </para> - <para> - Bemerkung: <emphasis>Konfigurationdatei-Abschnitte - (sections)</emphasis> und die eingebaute Template Funktion namens - <link linkend="language.function.section">section</link> haben ausser - dem Namen nichts gemeinsam. - </para> - - <example> - <title>Funktion {config_load} mit Abschnitten</title> - <programlisting> -<![CDATA[ -{config_load file="beispiel.conf" section="Kunde"} -<html> -<title>{#seitenTitel#}</title> -<body bgcolor="{#bodyHintergrundFarbe#}"> -<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}"> - <tr bgcolor="{#reiheHintergrundFarbe#}"> - <td>Vornamen</td> - <td>Nachnamen</td> - <td>Adresse</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - Siehe <link - linkend="variable.config.overwrite">$config_overwrite</link> - bezüglich Arrays von Konfigurationsvariablen. - </para> - <para> - Siehe auch <link - linkend="config.files">Konfigurationsdateien</link>, <link - linkend="language.config.variables">Variablen aus - Konfigurationsdateien</link>, <link - linkend="variable.config.dir">$config_dir</link>, <link - linkend="api.get.config.vars">get_config_vars()</link> und <link - linkend="api.config.load">config_load()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,235 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready --> -<sect1 id="language.function.foreach"> - <title>{foreach}, {foreachelse}</title> - <para> - Die <emphasis>foreach</emphasis> Schleife ist eine Alternative zu - <link - linkend="language.function.section"><emphasis>section</emphasis></link>. - <emphasis>foreach</emphasis> wird verwendet, um ein assoziatives - Array zu durchlaufen. Die Syntax von - <emphasis>foreach</emphasis>-Schleifen ist viel einfacher als die - von <emphasis>section</emphasis>. <emphasis>{foreach}</emphasis> - Tags müssen mit <emphasis>{/foreach}</emphasis> tags kombiniert - werden. Erforderliche Parameter sind: <emphasis>from</emphasis> und - <emphasis>item</emphasis>. Der Name der {foreach}-Schleife kann - frei vergeben werden und sowohl Buchstaben, Zahlen als auch - Unterstriche enthalten. <emphasis>foreach</emphasis>-Schleifen - können verschachtelt werden, dabei ist zu beachten, dass sich die - definierten Namen voneinander unterscheiden. Die - <emphasis>from</emphasis> Variable (normalerweise ein assoziatives - Array) definiert die Anzahl der von <emphasis>foreach</emphasis> zu - durchlaufenen Iterationen. <emphasis>foreachelse</emphasis> wird - ausgeführt wenn keine Werte in der <emphasis>from</emphasis> - Variable übergeben wurden. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>from</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name des zu durchlaufenden Array.</entry> - </row> - <row> - <entry>item</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name für das aktuelle Element.</entry> - </row> - <row> - <entry>key</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name für den aktuellen Schlüssel.</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name der 'foreach'-Schleife, für die Abfrage der 'foreach'-Eigenschaften.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{foreach} - item</title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array( 1001,1002,1003); -$smarty->assign('custid', $arr); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -<?php -{* dieses Beispiel gibt alle Werte aus dem $KundenId Array aus *} -{foreach from=$KundenId item=aktuelle_id} - id: {$aktuelle_id}<br> -{/foreach} -]]> - </programlisting> - <para> - Das obige Beispiel erzeugt folgende Ausgabe: - </para> - <screen> -<![CDATA[ -id: 1000<br> -id: 1001<br> -id: 1002<br> -]]> - </screen> - </example> - - <example> - <title>{foreach} - item und key</title> - <programlisting role="php"> -<![CDATA[ -// Der Schlüssel enthält den Schlüssel des jeweils iterierten Wertes -// die Zuweisung sieht wie folgt aus: -<?php - $smarty->assign('kontakte', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{foreach name=aussen item=kontakt from=$kontakte} - <hr /> - {foreach key=schluessel item=wert from=$kontakt} - {$schluessel}: {$wert}<br> - {/foreach} -{/foreach} - </programlisting> - <para> - Das obige Beispiel erzeugt folgende Ausgabe: - </para> - <screen> -<![CDATA[ -<hr /> - phone: 1<br> - fax: 2<br> - cell: 3<br> -<hr /> - phone: 555-4444<br> - fax: 555-3333<br> - cell: 760-1234<br> -]]> - </programlisting> - </example> - - <example> - <title>{foreach} - Beispiel mit Datenbankzugriff (z.B. PEAR oder ADODB)</title> - <programlisting role="php"> -<![CDATA[ -<?php - $sql = 'SELECT contact_id, name, nick FROM contacts ORDER BY contact'; - $smarty->assign('kontakte', $db->getAssoc($sql)); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{foreach key=cid item=con from=$kontakte} - <a href="kontact.php?contact_id={$cid}">{$con.name} - {$con.nick}</a><br /> -{/foreach} -]]> - </programlisting> - </example> - - <para> - Foreach-Loops haben auch eigene Variablen welche die Foreach - Eigenschaften enthalten. Diese werden wie folgt ausgewiesen: - {$smarty.foreach.foreachname.varname}. foreachname ist der Name der - als <emphasis>name</emphasis> Attribut von Foreach übergeben wurden. - </para> - - <sect2 id="foreach.property.iteration"> - <title>iteration</title> - <para> - gibt die aktuelle iteration aus - </para> - <para> - iteration beginnt immer mit 1 und wird danach bei jedem durchgang um 1 inkrementiert. - </para> - </sect2> - - <sect2 id="foreach.property.first"> - <title>first</title> - <para> - <emphasis>first</emphasis> ist TRUE wenn die aktuelle Iteration die erste ist - </para> - </sect2> - <sect2 id="foreach.property.last"> - <title>last</title> - <para> - <emphasis>last</emphasis> ist TRUE wenn die aktuelle Iteration die letzte ist - </para> - </sect2> - - <sect2 id="foreach.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> wird als Parameter von foreach verwedet - und ist ein boolscher Wert, TRUE oder FALSE. Auf FALSE wird nichts - ausgegeben und wenn foreachelse gefunden wird, dieser angezeigt. - </para> - </sect2> - - <sect2 id="foreach.property.total"> - <title>total</title> - <para> - <emphasis>total</emphasis> gibt die Anzahl Iterationen des Foreach - Loops aus und kann in- oder nach- Foreach Blöcken verwendet werden. - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,253 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready --> -<sect1 id="language.function.if"> - <title>{if},{elseif},{else}</title> - <para> - <emphasis>{if}</emphasis>-Statements in Smarty erlauben die selbe - Flexibilität wie in PHP, bis auf ein paar Erweiterungen für die - Template-Engine. Jedes <emphasis>{if}</emphasis> muss mit einem - <emphasis>{/if}</emphasis> kombiniert - sein. <emphasis>{else}</emphasis> und <emphasis>{elseif}</emphasis> - sind ebenfalls erlaubt. Alle PHP Vergleichsoperatoren und Funktionen, wie - <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, - <emphasis>is_array()</emphasis>, etc. sind erlaubt. - </para> - <para> - Wenn <link linkend="variable.security">$security</link> angeschaltet - wurde, dann müssen alle verwendeten PHP-Funktionen im - <emphasis>IF_FUNCS</emphasis>-Array in dem <link - linkend="variable.security.settings">$security_settings</link>-Array - deklariert werden. - </para> - <para> - Hier eine Liste der erlaubten Operatoren. Bedingungsoperatoren - müssen von umgebenden Elementen mit Leerzeichen abgetrennt werden. - PHP-Äquivalente sind, sofern vorhanden, angeben. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="Operator" align="center" /> - <colspec colname="Alternativen" align="center" /> - <colspec colname="Syntax Beispiel" /> - <colspec colname="Bedeutung" /> - <colspec colname="PHP Äquivalent" /> - <thead> - <row> - <entry>Operator</entry> - <entry>Alternativen</entry> - <entry>Syntax Beispiel</entry> - <entry>Bedeutung</entry> - <entry>PHP Äquivalent</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>ist gleich</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>ist ungleich</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>größer als</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>kleiner als</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>größer oder gleich</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>kleiner oder gleich</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>identisch</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>Negation</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>Modulo</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>Ist [nicht] teilbar durch</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>ist [k]eine gerade Zahl</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is [not] even by $b</entry> - <entry>[k]eine gerade Gruppierung</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>ist [k]eine ungerade Zahl</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>[k]eine ungerade Gruppierung</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>if Anweisung</title> - <programlisting> -<![CDATA[ -{* ein Beispiel mit 'eq' (gleich) *} -{if $name eq "Fred"} - Willkommen der Herr. -{elseif $name eq "Wilma"} - Willkommen die Dame. -{else} - Willkommen, was auch immer Du sein magst. -{/if} - -{* ein Beispiel mit 'or'-Logik *} -{if $name eq "Fred" or $name eq "Wilma"} - ... -{/if} - -{* das selbe *} -{if $name == "Fred" || $name == "Wilma"} - ... -{/if} - -{* - die foldende Syntax ist nicht korrekt, da die Elemente welche die - Bedingung umfassen nicht mit Leerzeichen abgetrennt sind -*} -{if $name=="Fred" || $name=="Wilma"} - ... -{/if} - - -{* Klammern sind erlaubt *} -{if ( $anzahl < 0 or $anzahl > 1000 ) and $menge >= #minMengeAmt#} - ... -{/if} - - -{* einbetten von php Funktionsaufrufen ('gt' steht für 'grösser als') *} -{if count($var) gt 0} - ... -{/if} - -{* Auf "ist array" überprüfen. *} -{if is_array($foo) } - ..... -{/if} - -{* Auf "ist nicht null" überprüfen. *} -{if isset($foo) } - ..... -{/if} - - - -{* testen ob eine Zahl gerade (even) oder ungerade (odd) ist *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* testen ob eine Zahl durch 4 teilbar ist (div by) *} -{if $var is div by 4} - ... -{/if} - - -{* testen ob eine Variable gerade ist, gruppiert nach 2 - 0=gerade, 1=gerade, 2=ungerade, 3=ungerade, 4=gerade, 5=gerade, etc *} -{if $var is even by 2} - ... -{/if} - -{* 0=gerade, 1=gerade, 2=gerade, 3=ungerade, 4=ungerade, 5=ungerade, etc *} -{if $var is even by 3} - ... -{/if} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,138 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready --> -<sect1 id="language.function.include.php"> - <title>include_php (PHP-Code einbinden)</title> - <para> - Die Verwendung von {include_php} wird nicht mehr empfohlen, die - gleiche funktionalität kann auch mit <link - linkend="tips.componentized.templates">Template/Script - Komponenten</link> erreicht werden. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der einzubindenden PHP-Datei.</entry> - </row> - <row> - <entry>once</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Definiert ob die Datei mehrmals geladen werden soll, falls sie mehrmals eingebunden wird.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der Variable, der die Ausgabe von include_php zugewiesen wird.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Falls <link linkend="variable.security">Sicherheit</link> aktiviert - ist, muss das einzubindende Skript im <link - linkend="variable.trusted.dir">$trusted_dir</link> Pfad - liegen. {include_php} muss das Attribut 'file' übergeben werden, das - den Pfad - entweder relativ zu <link - linkend="variable.trusted.dir">$trusted_dir</link> oder absolut - - zum Skript enthält. - </para> - <para> - Normalerweise wird ein PHP-Skript nur einmal pro Aufruf geladen, - selbst wenn es mehrfach eingebunden wird. Sie können dieses - Verhalten durch die Verwendung des <emphasis>once</emphasis> - Attributs steuern. Wenn Sie 'once' auf 'false' setzen, wird die - Datei immer wenn sie eingebunden wird auch neu geladen. - </para> - <para> - Optional kann das <emphasis>assign</emphasis> Attribut übergeben - werden. Die Ausgabe von <emphasis>include_php</emphasis> wird dann - nicht direkt eingefügt, sondern in der durch assign benannten - Template-Variable abgelegt. - </para> - <para> - Das Objekt '$smarty' kann in dem eingebundenen PHP-Script über - '$this' angesprochen werden. - </para> - <example> - <title>Funktion include_php</title> - <para>lade_nav.php</para> - <programlisting> -<![CDATA[ -<?php - - // lade die Variablen aus einer MySQL-Datenbank und weise sie dem Template zu - require_once("MySQL.class.php"); - $sql = new MySQL; - $sql->query("select * from site_nav_sections order by name",SQL_ALL); - $this->assign($sections,$sql->record); - -?> -]]> - </programlisting> - <para> - Bei folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -{* absoluter Pfad, oder relativ zu '$trusted_dir' *} -{include_php file="/pfad/zu/lade_nav.php"} - -{foreach item=$aktuelle_section from=$sections} - <a href="{$aktuelle_section.url}">{$aktuelle_section.name}</a><br> -{/foreach} -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="language.function.include">{include}</link>, <link - linkend="language.function.php">{php}</link>, <link - linkend="language.function.capture">{capture}</link>, <link - linkend="template.resources">Template Ressourcen</link> and <link - linkend="tips.componentized.templates">Template/Script - Komponenten</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.10 Maintainer: andreas Status: ready --> -<sect1 id="language.function.include"> - <title>include (einbinden)</title> - <para> - {include}-Tags werden verwendet, um andere Templates in das aktuelle - Template einzubinden. Alle Variablen des aktuellen Templates sind - auch im eingebundenen Template verfügbar. Das {include}-Tag muss ein - 'file' Attribut mit dem Pfad zum einzubindenden Template enthalten. - </para> - <para> - Optional kann mit dem <emphasis>assign</emphasis> Attribut definiert - werden, in welcher Variable die Ausgabe des mit - <emphasis>include</emphasis> eingebundenen Templates abgelegt werden - soll statt sie auszugeben. - </para> - <para> - Die Werte aller zugewiesenen Variablen werden wiederhergestellt, sobald - ein eingebundenes Template wieder verlassen wurde. Das bedeutet, dass in - einem eingebundenen Template alle Variablen des einbindenden Template - verwendet und verändert werden können, diese Änderungen aber verloren sind, - sobald das {include} abgearbeitet wurde. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name der Template-Datei, die eingebunden werden soll.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable, welcher der eingebundene Inhalt zugewiesen werden soll.</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var typ]</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variablen welche dem Template lokal übergeben werden sollen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>function include (einbinden)</title> - <programlisting> -<![CDATA[ -<html> -<head> - <title>{$title}</title> -</head> -<body> -{include file='page_header.tpl'} - -{* hier kommt der body des Templates *} -{include file="$tpl_name.tpl"} <-- $tpl_name wird durch eine Wert ersetzt - -{include file='page_footer.tpl'} -</body> -</html> -]]> - </programlisting> - </example> - <para> - Sie können dem einzubindenden Template Variablen als Attribute - übergeben. Alle explizit übergebenen Variablen sind nur im - Anwendungsbereich (scope) dieses Template - verfügbar. Attribut-Variablen überschreiben aktuelle - Template-Variablen, falls sie den gleichen Namen haben. - </para> - <example> - <title>include-Funktion und Variablen Übergabe</title> - <programlisting> -<![CDATA[ -{include file='header.tpl' title='Hauptmenu' table_bgcolor='#c0c0c0'} - -{* hier kommt der body des Templates *} - -{include file='footer.tpl' logo='http://my.domain.com/logo.gif'} -]]> - </programlisting> - </example> - <para> - Benutzen sie die Syntax von <link - linkend="template.resources">template resources</link>, um Templates - ausserhalb des '$template_dir' einzubinden: - </para> - <example> - <title>Beispiele für Template-Ressourcen bei der 'include'-Funktion</title> - <programlisting> -<![CDATA[ -{* absoluter Dateipfad *} -{include file='/usr/local/include/templates/header.tpl'} - -{* absoluter Dateipfad (gleich) *} -{include file='file:/usr/local/include/templates/header.tpl'} - -{* absoluter Dateipfad unter Windows ("file:"-Prefix MUSS übergeben werden) *} -{include file='file:C:/www/pub/templates/header.tpl'} - -{* einbinden aus Template-Ressource namens 'db' *} -{include file='db:header.tpl'} - -{* einbinden eines Variablen Templates - z.B. $module = 'contacts' *} -{include file="$module.tpl"} -{* - Dies hier Funktioniert nicht, da Variablen innerhalb einfacher - Anführungszeichen nicht interpoliert werden. -*} -{include file='$module.tpl'} -]]> - </programlisting> - </example> - <para> - Siehe auch - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.php">{php}</link>, - <link linkend="template.resources">Template Ressourcen</link> und - <link linkend="tips.componentized.templates">Template/Skript Komponenten</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<sect1 id="language.function.insert"> - <title>insert (einfügen)</title> - <para> - {insert}-Tags funktionieren ähnlich den <link - linkend="language.function.include">{include}</link>-Tags, werden - aber nicht gecached, falls <link linkend="caching">caching</link> - eingeschaltet ist. Sie werden bei jedem Aufruf des Templates - ausgeführt. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der Insert-Funktion</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name der Template-Variable, in der die Ausgabe der 'insert'-Funktion optional abgelegt wird.</entry> - </row> - <row> - <entry>script</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name des PHP-Skriptes, das vor Aufruf der 'insert'-Funktion eingebunden werden soll.</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var typ]</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variablen die der 'insert'-Funktion übergeben werden sollen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Stellen Sie sich vor, sie hätten ein Template mit einem - Werbebanner. Dieser Banner kann verschiedene Arten von Inhalten - haben: Bilder, HTML, Flash, etc. Deshalb können wir nicht einfach - einen statischen Link verwenden und müssen vermeiden, dass dieser - Inhalt gecached wird. Hier kommt das {insert}-Tag ins Spiel. Das - Template kennt die Variablen '#banner_location_id#' und '#site_id#' - (zum Beispiel aus einer <link - linkend="config.files">Konfigurationsdatei</link>) und soll eine - Funktion aufrufen, die den Inhalt des Banners liefert. - </para> - <example> - <title>Funktion 'insert'</title> - <programlisting> -{* erzeugen des Banners *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - </programlisting> - </example> - <para> - In diesem Beispiel verwenden wir die Funktion 'getBanner' und - übergeben die Parameter '#banner_location_id#' und '#site_id#'. - Smarty wird daraufhin in Ihrer Applikatiopn nach einer Funktion - namens 'getBanner' suchen und diese mit den Parametern - '#banner_location_id#' und '#site_id#' aufrufen. Allen - 'insert'-Funktionen in Ihrer Applikation muss 'insert_' - vorangestellt werden, um Konflikte im Namensraum zu vermeiden. Ihre - 'insert_getBanner()'-Funktion sollte etwas mit den übergebenen - Parametern unternehmen und das Resultat zurückgeben. Dieses - Resultat wird an der Stelle des 'insert'-Tags in Ihrem Template - ausgegeben. In diesem Beispiel würde Smarty folgende Funktion - aufrufen: insert_getBanner(array("lid" => "12345","sid" => "67890")) - und die erhaltenen Resultate an Stelle des 'insert'-Tags ausgeben. - </para> - <para> - Falls Sie das 'assign'-Attribut übergeben, wird die Ausgabe des - 'insert'-Tags in dieser Variablen abgelegt. Bemerkung: dies ist - nicht sinnvoll, wenn <link linkend="variable.caching">Caching</link> - eingeschaltet ist. - </para> - <para> - Falls Sie das 'script'-Attribut übergeben, wird das angegebene - PHP-Skript vor der Ausführung der {insert}-Funktion eingebunden. - Dies ist nützlich, um die {insert}-Funktion erst in diesem Skript zu - definieren. Der Pfad kann absolut oder relativ zu <link - linkend="variable.trusted.dir">$trusted_dir</link> angegeben werden. - Wenn Sicherheit eingeschaltet ist, muss das Skript in <link - linkend="variable.trusted.dir">$trusted_dir</link> liegen. - </para> - <para> - Als zweites Argument wird der {insert}-Funktion das Smarty-Objekt - selbst übergeben. Damit kann dort auf die Informationen im - Smarty-Objekt zugegriffen werden. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Es gibt die Möglichkeit, Teile des Templates nicht zu cachen. Wenn - Sie <link linkend="caching">caching</link> eingeschaltet haben, - werden {insert}-Tags nicht gecached. Sie werden jedesmal - ausgeführt, wenn die Seite erstellt wird - selbst innerhalb - gecachter Seiten. Dies funktioniert gut für Dinge wie Werbung - (Banner), Abstimmungen, Wetterberichte, Such-Resultate, - Benutzer-Feedback-Ecke, etc. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready --> - <sect1 id="language.function.ldelim"> - <title>ldelim,rdelim (Ausgabe der Trennzeichen)</title> - <para> - ldelim und rdelim werden verwendet, um die Trennzeichen auszugeben - - in unserem Fall "{" oder "}" - ohne dass Smarty versucht, sie zu - interpretieren. Um text im Template vor dem Interpretieren zu - schützen kann auch <link - linkend="language.function.literal">{literal}{/literal}</link> - verwendet werden. Siehe auch <link - linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link>. - </para> - <example> - <title>ldelim, rdelim</title> - <programlisting> -<![CDATA[ -{* gibt die konfigurierten Trennzeichen des Templates aus *} - -{ldelim}funktionsname{rdelim} Funktionen sehen in Smarty so aus! -]]> - </programlisting> - <para> - Das obige Beispiel ergibt als Ausgabe: - </para> - <screen> -<![CDATA[ -{funktionsname} Funktionen sehen in Smarty so aus!</programlisting> -]]> - </screen> - <para> - Ein weiteres Beispiel (diesmal mit javascript) - </para> - <programlisting> -<![CDATA[ -<script language="JavaScript"> -function foo() {ldelim} - ... code ... -{rdelim} -</script> -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -<script language="JavaScript"> -function foo() { - .... code ... -} -</script> -]]> - </screen> - - </example> - <para> - Siehe auch <link linkend="language.escaping">Smarty Parsing umgehen</link> - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready --> -<sect1 id="language.function.literal"> - <title>literal</title> - <para> - {literal}-Tags erlauben es, einen Block wörtlich auszugeben, - d.h. von der Interpretation durch Smarty auszuschliessen. Dies ist - vor allem für Javascript- oder andere Blöcke nützlich, die - geschwungene Klammern verwenden. Alles was zwischen den - {literal}{/literal} Tags steht, wird direkt angezeigt. Wenn in - einem {literal}-Block temlate-Tags verwendet werden sollen, is es - manchmal sinnvoller <link - linkend="language.function.ldelim">{ldelim}{rdelim}</link> statt - {literal} zu verwenden. - </para> - <example> - <title>literal-Tags</title> - <programlisting> -<![CDATA[ -{literal} -<script language=javascript> -<!-- - function isblank(field) { - if (field.value == '') { - return false; - } else { - document.loginform.submit(); - return true; - } - } -// --> -</script> -{/literal} -]]> - </programlisting> - </example> - <para> - Siehe auch <link linkend="language.escaping">Smarty Parsing - umgehen</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<sect1 id="language.function.php"> - <title>php</title> - <para> - {php}-Tags erlauben es, PHP-Code direkt in das Template - einzubetten. Der Inhalt wird nicht 'escaped', egal wie <link - linkend="variable.php.handling">$php_handling</link> konfiguriert - ist. Dieses Tag ist nur für erfahrene Benutzer gedacht und wird - auch von diesen normalerweise nicht benötigt. - </para> - <example> - <title>{php}-Tags</title> - <programlisting> -<![CDATA[ -{php} - // php Skript direkt von Template einbinden - include('/pfad/zu/zeige_weather.php'); - {/php} -]]> - </programlisting> - </example> - <note> - <title>Technical Note</title> - <para> - Um auf PHP-Variablen in {php}-Blöcken zugreifen zu können, kann es - nötig sein, die Variable als <ulink - url="&url.php-manual;global">global</ulink> zu deklarieren. Der - {php}-Blöck läuft nämlich nicht in einem globalen Kontext, sondern - im Kontext der method des laufenden $smarty-Objektes. - </para> - </note> - <example> - <title>{php} mit Verwendung von global</title> - <programlisting role="php"> -<![CDATA[ -{php} - global $foo, $bar; - if($foo == $bar){ - // tue irgendwas - } -{/php} -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="variable.php.handling">$php_handling</link>, <link - linkend="language.function.include.php">{include_php}</link>, <link - linkend="language.function.include">{include}</link> und <link - linkend="tips.componentized.templates">Template/Script - Komponenten</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,782 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.14 Maintainer: andreas Status: ready --> -<sect1 id="language.function.section"> - <title>section,sectionelse</title> - <para> - Template-{sections} werden verwendet, um durch <emphasis - role="bold">Arrays</emphasis> zu iterieren (ähnlich wie <link - linkend="language.function.foreach">{foreach}</link>). Jedes - <emphasis>section</emphasis>-Tag muss mit einem - <emphasis>/section</emphasis>-Tag kombiniert - werden. <emphasis>name</emphasis> und <emphasis>loop</emphasis> sind - erforderliche Parameter. Der Name der 'section' kann frei gewählt - werden, muss jedoch aus Buchstaben, Zahlen oder Unterstrichen - bestehen. {sections} können verschachtelt werden. Dabei ist zu - beachten, dass sich ihre Namen unterscheiden. Aus der - 'loop'-Variable (normalerweise ein Array von Werten) resultiert die - Anzahl der Iterationen, die durchlaufen werden. Wenn ein Wert aus - der 'loop'-Variable innerhalb der {section} ausgegeben werden soll, - muss der 'section-name' umschlossen mit [] angefügt werden. - <emphasis>sectionelse</emphasis> wird ausgeführt, wenn keine Werte - in der 'loop'-Variable enthalten sind. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der 'section'</entry> - </row> - <row> - <entry>loop</entry> - <entry>[$variable_name]</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name des Zählers für die Iterationen.</entry> - </row> - <row> - <entry>start</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>0</emphasis></entry> - <entry> - Definiert die Startposition. Falls ein negativer Wert übergeben - wird, berechnet sich die Startposition ausgehend vom Ende des - Arrays. Wenn zum Beispiel 7 Werte in einem Array enthalten sind - und die Startposition -2 ist, ist die berechnete Startposition - 5. Unerlaubte Werte (Werte ausserhalb der Grösse des Arrays) - werden automatisch auf den nächstmöglichen Wert gesetzt. - </entry> - </row> - <row> - <entry>step</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>1</emphasis></entry> - <entry> - Definiert die Schrittweite mit welcher das Array durchlaufen - wird. 'step=2' iteriert durch 0, 2, 4, etc. Wenn ein negativer - Wert übergeben wurde, wird das Array rückwärts durchlaufen. - </entry> - </row> - <row> - <entry>max</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Maximale Anzahl an Iterationen, die Durchlaufen werden.</entry> - </row> - <row> - <entry>show</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Definiert ob diese 'section' angezeigt werden soll oder nicht.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>section</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$data = array(1000,1001,1002); -$smarty->assign('custid',$data); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* dieses Beispiel gibt alle Werte des $KundenId Arrays aus *} -{section name=kunde loop=$KundenId} -id: {$KundenId[kunde]}<br /> -{/section} -{* alle Werte in umgekehrter Reihenfolge ausgeben: *} -{section name=kunde loop=$KundenId step=-1} -id: {$KundenId[kunde]}<br /> -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -<hr /> -id: 1002<br /> -id: 1001<br /> -id: 1000<br /> -]]> - </screen> - - <para> - Ein weiteres Beispiel, diesmal ohne ein zugewiesenes Array. - </para> - <programlisting> -<![CDATA[ -{section name=foo start=10 loop=20 step=2} - {$smarty.section.foo.index} -{/section} -<hr /> -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - </programlisting> - - <para> - Ausgabe des obigen Beispiels: - </para> - - <screen> -<![CDATA[ -10 12 14 16 18 -<hr /> -20 18 16 14 12 10 -]]> - </screen> - - </example> - - - - <example> - <title>section loop Variable</title> - <programlisting> -<![CDATA[ -{* die 'loop'-Variable definiert nur die Anzahl der Iterationen, - Sie können in dieser 'section' auf jeden Wert des Templates - zugreifen. Dieses Beispiel geht davon aus, dass $KundenId, $Namen und - $Adressen Arrays sind, welche die selbe Anzahl Werte enthalten *} -{section name=kunde loop=$KundenId} -id: {$KundenId[kunde]}<br> -name: {$Namen[kunde]}<br> -address: {$Adressen[kunde]}<br> -<p> -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <screen> -<![CDATA[ - -id: 1000<br> -name: Peter Müller <br> -adresse: 253 N 45th<br> -<p> -id: 1001<br> -name: Fritz Muster<br> -adresse:: 417 Mulberry ln<br> -<p> -id: 1002<br> -name: Hans Meier<br> -adresse:: 5605 apple st<br> -<p> -]]> - </screen> - </example> - <example> - <title>section names</title> - <programlisting> -<![CDATA[ -{* - die 'name'-Variable definiert den Namen der verwendet werden soll, - um Daten aus dieser 'section' zu referenzieren -*} -{section name=meinedaten loop=$KundenId} -<p> - id: {$KundenId[meinedaten]}<br> - name: {$Namen[meinedaten]}<br> - address: {$Adressen[meinedaten]} -</p> -{/section} -]]> - </programlisting> - </example> - - <example> - <title>nested sections (verschachtelte 'sections')</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> - </programlisting> - <programlisting> -<![CDATA[ -{* - Sections können unbegrenzt tief verschachtelt werden. Mit - verschachtelten 'sections' können Sie auf komplexe Datenstrukturen - zugreifen (wie zum Beispiel multidimensionale Arrays). Im folgenden - Beispiel ist $contact_type[customer] ein Array mit Kontakttypen des - aktuellen Kunden. -*} -{section name=customer loop=$custid} -<hr /> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]}<br /> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br /> - {/section} -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -<hr /> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th<br /> - home phone: 555-555-5555<br /> - cell phone: 666-555-5555<br /> - e-mail: john@myexample.com<br /> -<hr /> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln<br /> - home phone: 123-456-4<br /> - web: www.example.com<br /> -<hr /> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st<br /> - cell phone: 0457878<br /> -]]> - </programlisting> - </example> - - <example> - <title>sections und assoziative Arrays</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$data = array( - array('name' => 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* - Dies ist ein Beispiel wie man einen assoziativen Array in einer - 'section' ausgeben kann. -*} -{section name=customer loop=$contacts} -<p> -name: {$contacts[customer].name}<br /> -home: {$contacts[customer].home}<br /> -cell: {$contacts[customer].cell}<br /> -e-mail: {$contacts[customer].email} -</p> -{/section} - -{* Anm. d. übersetzers: Oft ist die Anwendung von 'foreach' kürzer. *} - -{foreach item=customer from=$contacts} -<p> -name: {$customer.name}<br /> -home: {$customer.home}<br /> -cell: {$customer.cell}<br /> -e-mail: {$customer.email} -</p> -{/foreach} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -<p> -name: John Smith<br /> -home: 555-555-5555<br /> -cell: 555-555-5555<br /> -e-mail: john@mydomain.com -</p> -<p> -name: Jack Jones<br /> -home phone: 555-555-5555<br /> -cell phone: 555-555-5555<br /> -e-mail: jack@mydomain.com -<p> -name: Jane Munson<br /> -home phone: 555-555-5555<br /> -cell phone: 555-555-5555<br /> -e-mail: jane@mydomain.com -</p> -]]> - </programlisting> - </example> - - - - - - <example> - <title>sectionelse</title> - <programlisting> -<![CDATA[ -{* - sectionelse wird aufgerufen, wenn keine $custid Werte vorhanden sind -*} -{section name=customer loop=$custid} - -id: {$custid[customer]}<br> -{sectionelse} -keine Werte in $custid gefunden -{/section} -]]> - </programlisting> - </example> - <para> - Die Eigenschaften der 'section' werden in besonderen Variablen - abgelegt. Diese sind wie folgt aufgebaut: <link - linkend="language.variables.smarty.loops">{$smarty.section.sectionname.varname}</link> - </para> - <note> - <para> - Bermerkung: Seit Smarty 1.5.0 hat sich die Syntax der 'section' - Eigenschaften von {%sectionname.varname%} zu - {$smarty.section.sectionname.varname} geändert. Die alte Syntax - wird noch immer unterstützt, die Dokumentation erwähnt jedoch nur - noch die neue Schreibweise. - </para> - </note> - <sect2 id="section.property.index"> - <title>index</title> - <para> - 'index' wird verwendet, um den aktuellen Schleifen-Index - anzuzeigen. Er startet bei 0 (beziehungsweise der definierten - Startposition) und inkrementiert in 1-er Schritten (beziehungsweise - der definierten Schrittgrösse). - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Wenn 'step' und 'start' nicht übergeben werden, verhält sich der - Wert wie die 'section'-Eigenschaft 'iteration', ausser dass er bei - 0 anstatt 1 beginnt. - </para> - </note> - <example> - <title>'section'-Eigenschaft 'index'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.index.prev"> - <title>index_prev</title> - <para> - 'index_prev' wird verwendet um den vorhergehenden Schleifen-Index - auszugeben. Bei der ersten Iteration ist dieser Wert -1. - </para> - <example> - <title>section'-Eigenschaft 'index_prev'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{$smarty.section.customer.index} id: {$custid[customer]}<br> -{* zur Information, $custid[customer.index] und $custid[customer] bedeuten das selbe *} -{if $custid[customer.index_prev] ne $custid[customer.index]} - Die Kundennummer hat sich geändert.<br> -{/if} -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -0 id: 1000<br> - Die Kundennummer hat sich geändert.<br> -1 id: 1001<br> - Die Kundennummer hat sich geändert.<br> -2 id: 1002<br> - Die Kundennummer hat sich geändert.<br> -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.index.next"> - <title>index_next</title> - <para> - 'index_next' wird verwendet um den nächsten 'loop'-Index - auszugeben. Bei der letzten Iteration ist dieser Wert um 1 grösser - als der aktuelle 'loop'-Index (inklusive dem definierten 'step' - Wert). - </para> - <example> - <title>section'-Eigenschaft 'index_next'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{$smarty.section.customer.index} id: {$custid[customer]}<br> -{* zur Information, $custid[customer.index] und $custid[customer] bedeuten das selbe *} -{if $custid[customer.index_next] ne $custid[customer.index]} - Die Kundennummer wird sich ändern.<br> -{/if} -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -0 id: 1000<br> - Die Kundennummer wird sich ändern.<br> -1 id: 1001<br> - Die Kundennummer wird sich ändern.<br> -2 id: 1002<br> - Die Kundennummer wird sich ändern.<br> -]]Š - </programlisting> - </example> - </sect2> - <sect2 id="section.property.iteration"> - <title>iteration</title> - <para> - 'iteration' wird verwendet um die aktuelle Iteration auszugeben. - </para> - <para> - Bemerkung: Die Eigenschaften 'start', 'step' und 'max' - beeinflussen 'iteration' nicht, die Eigenschaft 'index' jedoch - schon. 'iteration' startet im gegensatz zu 'index' bei 1. 'rownum' - ist ein Alias für 'iteration' und arbeitet identisch. - </para> - <example> - <title>'section'-Eigenschaft 'iteration'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid start=5 step=2} -aktuelle loop iteration: {$smarty.section.customer.iteration}<br> -{$smarty.section.customer.index} id: {$custid[customer]}<br> -{* zur Information, $custid[customer.index] und $custid[customer] bedeuten das gleiche *} -{if $custid[customer.index_next] ne $custid[customer.index]} - Die Kundennummer wird sich ändern.<br> -{/if} -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -aktuelle loop iteration: 1 -5 id: 1000<br> - Die Kundennummer wird sich ändern.<br> -aktuelle loop iteration: 2 -7 id: 1001<br> - Die Kundennummer wird sich ändern.<br> -aktuelle loop iteration: 3 -9 id: 1002<br> - Die Kundennummer wird sich ändern.<br> -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.first"> - <title>first</title> - <para> - 'first' ist 'true', wenn die aktuelle Iteration die erste dieser - 'section' ist. - </para> - <example> - <title>'section'-Eigenschaft 'first'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{if $smarty.section.customer.first} - <table> -{/if} - -<tr><td>{$smarty.section.customer.index} id: - {$custid[customer]}</td></tr> - -{if $smarty.section.customer.last} - </table> -{/if} -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -<table> -<tr><td>0 id: 1000</td></tr> -<tr><td>1 id: 1001</td></tr> -<tr><td>2 id: 1002</td></tr> -</table> -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.last"> - <title>last</title> - <para> - 'last' ist 'true' wenn die aktuelle Iteration die letzte dieser - 'section' ist. - </para> - <example> - <title>'section'-Eigenschaft 'last'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{if $smarty.section.customer.first} - <table> -{/if} - -<tr><td>{$smarty.section.customer.index} id: - {$custid[customer]}</td></tr> - -{if $smarty.section.customer.last} - </table> -{/if} -{/section} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -<table> -<tr><td>0 id: 1000</td></tr> -<tr><td>1 id: 1001</td></tr> -<tr><td>2 id: 1002</td></tr> -</table> -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.rownum"> - <title>rownum</title> - <para> - 'rownum' wird verwendet um die aktuelle Iteration (startend bei 1) - auszugeben. 'rownum' ist ein Alias für 'iteration' und arbeitet - identisch. - </para> - <example> - <title>'section'-Eigenschaft 'rownum'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{$smarty.section.customer.rownum} id: {$custid[customer]}<br /> -{/section} - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.loop"> - <title>loop</title> - <para> - 'loop' wird verwendet, um die Nummer letzte Iteration der 'section' - auszugeben. Dieser Wert kann inner- und ausserhalb der 'section' - verwendet werden. - </para> - <example> - <title>'section'-Eigenschaft 'loop'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -{$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - -Es wurden {$smarty.section.customer.loop} Kunden angezeigt. -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> - -Es wurden 3 Kunden angezeigt. -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> kann die Werte 'true' oder 'false' haben. - Falls der Wert 'true' ist, wird die 'section' angezeigt. Falls der - Wert 'false' ist, wird die 'section' - ausser dem 'sectionelse' - - nicht ausgegeben. - </para> - <example> - <title>'section'-Eigenschaft 'show'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid show=$show_customer_info} -{$smarty.section.customer.rownum} id: {$custid[customer]}<br /> -{/section} - -{if $smarty.section.customer.show} -die 'section' wurde angezeigt -{else} -die 'section' wurde nicht angezeigt -{/if} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> - -die 'section' wurde angezeigt -]]> - </programlisting> - </example> - </sect2> - <sect2 id="section.property.total"> - <title>total</title> - <para> - Wird verwendet um die Anzahl der durchlaufenen Iterationen einer - 'section' auszugeben. Kann innerhalb oder ausserhalb der 'section' - verwendet werden. - </para> - <example> - <title>'section'-Eigenschaft 'total'</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid step=2} -{$smarty.section.customer.index} id: {$custid[customer]}<br> -{/section} - -Es wurden {$smarty.section.customer.total} Kunden angezeigt. -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <programlisting> -<![CDATA[ -0 id: 1000<br> -2 id: 1001<br> -4 id: 1002<br> - -Es wurden 3 Kunden angezeigt. -]]> - </programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready --> -<sect1 id="language.function.strip"> - <title>strip</title> - <para> - Webdesigner haben oft das Problem, dass Leerzeichen und - Zeilenumbrüche die Ausgabe des erzeugten HTML im Browser - beeinflussen. Oft werden deshalb alle Tags aufeinanderfolgend im - Template notiert, was aber zu einer schlechten Lesbarkeit führt. - </para> - <para> - Aus dem Inhalt zwischen den {strip}{/strip}-Tags werden alle - Leerzeichen und Zeilenumbrüche entfernt. So können Sie Ihre - Templates lesbar halten, ohne sich Sorgen um die Leerzeichen zu - machen. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - {strip}{/strip} ändert nicht den Inhalt einer Template-Variablen. - Dafür gibt es den <link linkend="language.modifier.strip">strip - Modifikator</link>. - </para> - </note> - <example> - <title>strip tags</title> - <programlisting> -<![CDATA[ -{* der folgende Inhalt wird in einer Zeile ausgegeben *} -{strip} -<table border=0> - <tr> - <td> - <a href="{$url}"> - <font color="red">Das ist ein Test.</font> - </a> - </td> - </tr> -</table> -{/strip} -]]> - </programlisting> - <para> - Ausgebe des obigen Beispiels: - </para> - <screen> -<![CDATA[ -<table border=0><tr><td><a href="http://my.domain.com"><font color="red">Das ist ein Test.</font></a></td></tr></table> -]]> - </screen> - </example> - <para> - Achtung: im obigen Beispiel beginnen und enden alle Zeilen mit - HTML-Tags. Falls Sie Abschnitte haben, die nur Text enthalten, - werden diese ebenfalls zusammengeschlossen. Das kann zu - unerwünschten Resultaten führen. - </para> - <para> - Siehe auch <link linkend="language.modifier.strip">strip-Modifikator - (Zeichenkette strippen)</link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-combining-modifiers.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<chapter id="language.combining.modifiers"> - <title>Kombinieren von Modifikatoren</title> - <para> - Sie können auf eine Variable so viele Modifikatoren anwenden - wie Sie möchten. Die Modifkatoren werden in der Reihenfolge - angewandt, in der sie notiert wurden - von links nach rechts. - Kombinierte Modifikatoren müssen mit einem - <literal>|</literal>-Zeichen (pipe) getrennt werden. - </para> - <example> - <title>Kombinieren von Modifikatoren</title> - <programlisting role="php" > -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'Einem Stadtrat in Salem in Pennsylvania (USA) droht eine - zweijährige Haftstrafe, da eine von ihm gehaltene Rede sechs - Minuten länger dauerte, als erlaubt. Die Redezeit ist auf maximal - fünf Minuten begrenzt.'); - -?> -]]> - </programlisting> - <para> - Wobei das Template dann folgendes entält: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - AUSGABE: - </para> - <screen> -<![CDATA[ -Einem Stadtrat in Salem in Pennsylvania (USA) droht eine (usw.) -EINEM STADTRAT IN SALEM IN PENNSYLVANIA (USA) DROHT EINE (usw.) -e i n e m s t a d t r a t i n s a l e m i n... -e i n e m s t a d t r a t i n s a l e m i n . . . -e i n e m s t a d t r. . .]]> - </screen> - </example> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> - <chapter id="language.custom.functions"> - <title>Eigene Funktionen</title> - <para> - Smarty wird mit verschiedenen massgeschneiderten Funktionen geliefert, welche Sie in - Ihren Templates verwenden können. - </para> -&designers.language-custom-functions.language-function-assign; -&designers.language-custom-functions.language-function-counter; -&designers.language-custom-functions.language-function-cycle; -&designers.language-custom-functions.language-function-debug; -&designers.language-custom-functions.language-function-eval; -&designers.language-custom-functions.language-function-fetch; -&designers.language-custom-functions.language-function-html-checkboxes; -&designers.language-custom-functions.language-function-html-image; -&designers.language-custom-functions.language-function-html-options; -&designers.language-custom-functions.language-function-html-radios; - -&designers.language-custom-functions.language-function-html-select-date; -&designers.language-custom-functions.language-function-html-select-time; -&designers.language-custom-functions.language-function-html-table; -&designers.language-custom-functions.language-function-mailto; -&designers.language-custom-functions.language-function-math; -&designers.language-custom-functions.language-function-popup; -&designers.language-custom-functions.language-function-popup-init; -&designers.language-custom-functions.language-function-textformat; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-assign.xml
Deleted
@@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<sect1 id="language.function.assign"> - <title>{assign} (zuweisen)</title> - <para> - {assign} wird verwendet um einer Template-Variable <emphasis - role="bold">innerhalb eines Templates</emphasis> einen Wert - zuzuweisen. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der zuzuweisenden Variable.</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der zuzuweisende Wert.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{assign} (zuweisen)</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob"} - -Der Wert von $name ist {$name}. -]]> - </programlisting> - <para> - Ausgabe des obiges Beispiels: - </para> - <screen> -<![CDATA[ -Der Wert von $name ist Bob.</programlisting> -]]> - </screen> - </example> - <example> - <title>Zugriff auf mit {assign} zugwiesene Variablen von PHP aus.</title> - <para> - Um auf zugewiesene Variablen von php aus zuzugreifen nimmt man - <link linkend="api.get.template.vars">get_template_vars()</link>. - Die zugewiesenen variablen sind jedoch nur wärhend bzw. nach der - Ausgabe des Template verfügbar. - </para> - <programlisting> -<![CDATA[ -{* index.tpl *} -{assign var="foo" value="Smarty"} -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<?php - -// Keine Ausgabe, das das Template noch nicht ausgegeben wurde: -echo $smarty->get_template_vars('foo'); - -// das Template in eine ungenutzte Variable ausgeben -$nix = $smarty->fetch('index.tpl'); - -// Gibt 'smarty' aus, da die {assign} anweisung im Template ausgeführt -// wurde -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// Ausgabe 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - </programlisting> - </example> - <para> - Folgende Funktionen haben <emphasis>optionale</emphasis> - assign-Attribute: - </para> - <para> - <link linkend="language.function.capture">{capture}</link>, - <link linkend="language.function.include">{include}</link>, - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.insert">{insert}</link>, - <link linkend="language.function.counter">{counter}</link>, - <link linkend="language.function.cycle">{cycle}</link>, - <link linkend="language.function.eval">{eval}</link>, - <link linkend="language.function.fetch">{fetch}</link>, - <link linkend="language.function.math">{math}</link>, - <link linkend="language.function.textformat">{textformat}</link> - </para> - <para> - Siehe auch <link linkend="api.assign">assign()</link> und <link - linkend="api.get.template.vars">get_template_vars()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,124 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> -<sect1 id="language.function.counter"> -<title>{counter} (Zähler)</title> - <para> - {counter} wird verwendet um eine Zahlenreihe auszugeben. Sie können - den Initialwert bestimmen, den Zählinterval, die Richtung in der - gezählt werden soll und ob der Wert ausgegeben wird. Sie können - mehrere Zähler gleichzeitig laufen lassen, in dem Sie ihnen - einmalige Namen geben. Wenn Sie keinen Wert für 'name' übergeben, - wird 'default' verwendet. - </para> - <para> - Wenn Sie das spezielle 'assign'-Attribut verwenden, wird die Ausgabe - des Zählers dieser Template-Variable zugewiesen anstatt ausgegeben - zu werden. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Der Name des Zählers.</entry> - </row> - <row> - <entry>start</entry> - <entry>number</entry> - <entry>Nein</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Der Initialwert.</entry> - </row> - <row> - <entry>skip</entry> - <entry>number</entry> - <entry>Nein</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Der Interval.</entry> - </row> - <row> - <entry>direction</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>up</emphasis></entry> - <entry>Die Richtung (up/down).</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Definiert ob der Wert ausgegeben werden soll.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Template-Variable welcher der Wert zugewiesen werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{counter} (Zähler)</title> - <programlisting> -<![CDATA[ -{* zähler initialisieren *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - AUSGABE: - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,150 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<sect1 id="language.function.cycle"> - <title>{cycle} (Zyklus)</title> - <para> - {cycle} wird verwendet um durch ein Set von Werten zu zirkulieren. - Dies vereinfacht die Handhabung von zwei oder mehr Farben in einer - Tabelle, oder um einen Array zu durchlaufen. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Der Name des Zyklus.</entry> - </row> - <row> - <entry>values</entry> - <entry>mixed</entry> - <entry>Ja</entry> - <entry><emphasis>N/A</emphasis></entry> - <entry> - Die Werte durch die zirkuliert werden soll, entweder als Komma - separierte Liste (siehe 'delimiter'-Attribut), oder als Array. - </entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Definiert ob die Werte ausgegeben werden sollen oder - nicht.</entry> - </row> - <row> - <entry>advance</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Definiert ob der nächste Wert automatisch angesprungen - werden soll.</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>,</emphasis></entry> - <entry>Das zu verwendende Trennzeichen.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Name der Template-Variable welcher die Ausgabe - zugewiesen werden soll.</entry> - </row> - <row> - <entry>reset</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Der Zyklus wird auf den ersten Wert zurückgesetzt.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Sie können durch mehrere Sets gleichzeitig iterieren, indem Sie den - Sets einmalige Namen geben. - </para> - <para> - Um den aktuellen Wert nicht auszugeben, kann das 'print' Attribut - auf 'false' gesetzt werden. Dies könnte sinnvoll sein, wenn man - einen einzelnen Wert überspringen möchte. - </para> - <para> - Das 'advance'-Attribut wird verwendet um einen Wert zu wiederholen. - Wenn auf 'false' gesetzt, wird bei der nächsten Iteration der selbe - Wert erneut ausgegeben. - </para> - <para> - Wenn sie das spezielle 'assign'-Attribut übergeben, wird die Ausgabe - der {cycle}-Funktion in dieser Template-Variable abgelegt, anstatt - ausgegeben zu werden. - </para> - <example> - <title>{cycle} (Zyklus)</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> - </programlisting> - <screen> -<![CDATA[ -<tr bgcolor="#eeeeee"> - <td>1</td> -</tr> -<tr bgcolor="#d0d0d0"> - <td>2</td> -</tr> -<tr bgcolor="#eeeeee"> - <td>3</td> -</tr> -]]> - </screen> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>javascript</emphasis></entry> - <entry>Ausgabe-Typ, entweder HTML oder Javascript.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {debug} zeigt die 'debugging'-Konsole auf der Seite an. <link - linkend="chapter.debugging.console">$debug</link> hat darauf keinen - Einfluss. Da die Ausgabe zur Laufzeit geschieht, können die - Template-Namen hier nicht ausgegeben werden. Sie erhalten jedoch - eine Liste aller mit <link linkend="api.assign">assigned</link> - zugewiesenen Variablen und deren Werten. - </para> - <para> - Siehe auch <link linkend="chapter.debugging.console">Debugging Konsole</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="language.function.eval"> - <title>{eval} (auswerten)</title> - <para> - {eval} wird verwendet um eine Variable als Template - auszuwerten. Dies kann verwendet werden um Template-Tags/Variablen - in einer Variable oder einer Konfigurationsdatei abzulegen. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable oder Zeichenkette die ausgewertet werden soll.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Template-Variable welcher die Ausgabe zugewiesen werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wenn Sie das spezielle 'assign'-Attribut übergeben, wird die Ausgabe - von 'eval' in dieser Template-Variable gespeichert und nicht - ausgegeben. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Evaluierte Variablen werden gleich wie Template-Variablen verwendet - und folgen den selben Maskierungs- und Sicherheits-Features. - </para> - </note> - <note> - <title>Technische Bemerkung</title> - <para> - Evaluierte Variablen werden bei jedem Aufruf neu ausgewertet. Die - kompilierten Versionen werden dabei nicht abgelegt! Falls sie caching - eingeschaltet haben, wird die Ausgabe jedoch mit dem Rest des - Templates gecached. - </para> - </note> - <example> - <title>eval (auswerten)</title> - <programlisting> -<![CDATA[ -setup.conf ----------- - -emphstart = <b> -emphend = </b> -title = Willkommen auf {$company}'s home page! -ErrorCity = Bitte geben Sie einen {#emphstart#}Stadtnamen{#emphend#} ein. -ErrorState = Bitte geben Sie einen {#emphstart#}Provinznamen{#emphend#} ein. -]]> - </programlisting> - <para> - index.tpl: - </para> - <programlisting> -<![CDATA[ -{config_load file="setup.conf"} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign="state_error"} -{$state_error} -]]> - </programlisting> - <para> - Ausgabe des obigen Beispiels: - </para> - <screen> -<![CDATA[ -Dies ist der Inhalt von foo: - -Willkommen auf Pub & Grill's home page! -Bitte geben Sie einen <b>Stadtnamen</b> ein. -Bitte geben Sie einen <b>Provinznamen</b> ein. - -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.9 Maintainer: andreas Status: ready --> -<sect1 id="language.function.fetch"> - <title>{fetch}</title> - <para> - {fetch} wird verwendet um lokale oder via HTTP beziehungsweise FTP - verfügbare Inhalte auszugeben. Wenn der Dateiname mit 'http://' - anfängt, wird die angegebene Webseite geladen und angezeigt. Wenn - der Dateiname mit 'ftp://' anfängt wird die Datei vom FTP-Server - geladen und angezeigt. Für lokale Dateien muss der absolute Pfad, - oder ein Pfad relativ zum ausgeführten Skript übergeben werden. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Datei, FTP oder HTTP Seite die geliefert werden soll.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Template-Variable welcher die Ausgabe zugewiesen werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wenn Sie das spezielle 'assign'-Attribut übergeben, wird die Ausgabe - der {fetch}-Funktion dieser Template-Variable zugewiesen, anstatt - ausgegeben zu werden (seit Smarty 1.5.0). - </para> - <note> - <title>Technische Bemerkung</title> - <para> - HTTP-Redirects werden nicht unterstützt, stellen Sie sicher, dass - die aufgerufene URL falls nötig durch ein '/'-Zeichen (slash) - beendet wird. - </para> - </note> - <note> - <title>Technische Bemerkung</title> - <para> - Wenn Sicherheit eingeschaltet ist, und Dateien vom lokalen System - geladen werden sollen, ist dies nur für Dateien erlaubt welche sich - in einem definierten sicheren Verzeichnis befinden. - (<link linkend="variable.secure.dir">$secure_dir</link>) - </para> - </note> - <example> - <title>fetch</title> - <programlisting> -<![CDATA[ -{* einbinden von javascript *} -{fetch file="/export/httpd/www.domain.com/docs/navbar.js"} - -{* Wetter Informationen aus einer anderen Webseite bei uns anzeigen *} -{fetch file="http://www.myweather.com/68502/"} - -{* News Datei via FTP auslesen *} -{fetch file="ftp://user:password@ftp.domain.com/path/to/currentheadlines.txt"} - -{* die Ausgabe einer Template variable zuweisen *} -{fetch file="http://www.myweather.com/68502/" assign="weather"} -{if $weather ne ""} - <b>{$weather}</b> -{/if} -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="language.function.capture">{capture}</link>, <link - linkend="language.function.eval">{eval}</link> und <link - linkend="api.fetch">fetch()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,170 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.11 Maintainer: andreas Status: ready --> -<sect1 id="language.function.html.checkboxes"> - <title>{html_checkboxes} (Ausgabe von HTML-Checkbox Tag)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>Name der checkbox Liste</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>ja, ausser wenn das option Attribut verwendet wird</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ein Array mit Werten für die checkboxes</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>ja, ausser wenn das option Attribut verwendet wird</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ein Array mit Werten für checkbox Knöpfe</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>das/die ausgewählten checkbox Elemente</entry> - </row> - <row> - <entry>options</entry> - <entry>assoziatives array</entry> - <entry>Ja, ausser values/output wird verwendet</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ein assoziatives Array mit Werten und Ausgaben</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Zeichenkette die zwischen den checkbox Elementen eingefügt werden soll</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>fügt der Ausgabe <label>-Tags hinzu</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_checkboxes ist eine <link - linkend="language.custom.functions">Funktion</link> die aus den - übergebenen Daten html checkbox Elemente erstellt und kümmert sich - darum welche Elemente ausgewählt sind. Erforderliche Attribute sind - Wert/Ausgabe oder Options. Die Ausgabe ist XHTML kompatibel - </para> - <para> - Alle Parameter die nicht in der Liste erwähnt werden, werden ausgegeben. - </para> - <example> - <title>{html_checkboxes}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Wobei index.tpl wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"} -]]> - </programlisting> - <para> - Oder mit folgendem PHP-Code: - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Wobei index.tpl wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" options=$cust_checkboxes selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - Das Ergebnis beider Listings: - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<sect1 id="language.function.html.image"> - <title>html_image (Ausgabe von HTML-IMG Tag)</title> - <para> - {html_image} ist eine <link - linkend="language.custom.functions">eigene Funktion</link> die ein - HTML Tag für ein Bild erzeugt. Die Höhe und Breite der Ausgabe wird - automatisch aus der Bilddatei berechnet wenn die Werte nicht - übergeben werden. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Name/Pfad zum Bild</entry> - </row> - <row> - <entry>height</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>Normale Höhe des Bildes</emphasis></entry> - <entry>Höhe des Bildes</entry> - </row> - <row> - <entry>width</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>Normale Breite des Bildes</emphasis></entry> - <entry>Breite des Bildes</entry> - </row> - <row> - <entry>basedir</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>DOCUMENT_ROOT</emphasis></entry> - <entry>Basisverzeichnis für relative Pfadangaben</entry> - </row> - <row> - <entry>alt</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>""</emphasis></entry> - <entry>Alternative Beschreibung des Bildes</entry> - </row> - <row> - <entry>href</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Link für das Bild</entry> - </row> - <row> - <entry>path_prefix</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Präfix für den Pfad zum Bild</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - basedir ist der Basispfad der für die Verlinkung verwendet werden - soll. Wenn kein Wert übergeben wird, wird die <link - linkend="language.variables.smarty">Umgebungsvariable</link> - DOCUMENT_ROOT verwendet. Wenn <link - linkend="variable.security">Sicherheit</link> eingeschaltet ist, - muss das Bild in einem sicheren Verzeichnis liegen. - </para> - <para> - <parameter>href</parameter> ist das href Attribut für das - Image-Tag. Wenn dieser Wert übergeben wird, wird um das Bild ein - <a href="LINKVALUE"><a> Tag erzeugt. - </para> - <para> - <parameter>path_prefix</parameter> ist ein optionaler Präfix der dem - Bildpfad vorangestellt wird. Die ist nützlich wenn zum Beispiel für - den Bildpfad ein anderer Servername verwendet werden soll. - </para> - <para> - Alle weiteren Parameter werden als Name/Wert Paare (Attribute) im - <img>-Tag ausgegeben. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - {html_image} greift auf das Dateisystem zu um Höhe und Breite zu - errechnen. Wenn Sie <link linkend="caching">caching</link> nicht - verwenden sollten Sie normalerweise auf diese Funktion aus - performance Gründen verzichten. - </para> - </note> - <example> - <title>html_image</title> - <programlisting> -<![CDATA[ -Wobei index.tpl wie folgt aussieht: ------------------------------------ -{html_image file="pumpkin.jpg"} -{html_image file="/path/from/docroot/pumpkin.jpg"} -{html_image file="../path/relative/to/currdir/pumpkin.jpg"} -]]> - </programlisting> - <para> - Mögliche Ausgabe: - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,210 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.12 Maintainer: andreas Status: ready --> -<sect1 id="language.function.html.options"> - <title>html_options (Ausgabe von HTML-Options)</title> - <para> - {html_options} wird verwendet um HTML-Options Listen mit den - übergebenen Daten zu erzeugen. Die <link - linkend="language.custom.functions">Funktion</link> kümmert sich - ebenfalls um das setzen des ausgewählten Standardwertes. Die - Attribute 'values' und 'output' sind erforderlich, ausser man - verwendet das Attribut 'options'. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Ja, ausser 'options'-Attribut wird verwendet.</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Array mit Werten für die dropdown-Liste.</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Ja, ausser 'options'-Attribut wird verwendet.</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Arrays mit Namen für die dropdown-Liste.</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>Nein</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Das ausgewählte Array Element.</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Ja, ausser wenn das 'values'- und das 'output'-Attribut verwendet werden.</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Assoziatives Array mit Werten die ausgegeben werden sollen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Wenn ein Wert als Array erkannt wird, wird er als HTML-OPTGROUP - ausgegeben und die Werte werden in Gruppen dargestellt. Rekursion - wird unterstützt. Die Ausgabe ist XHTML kompatibel. - </para> - <para> - Wenn das (optionale) Attribute <emphasis>name</emphasis> angegeben - wurde, wird um die <option>-Liste von <select - name="groupname"></select>-Tags umschlossen - </para> - <para> - Alle Parameter die deren Namen nicht in der obigen Liste genannt - wurde, werden dem <select>-Tag als Name/Wert-Paare - hinzugefügt. Die Parameter werden ignoriert, wenn kein - <emphasis>name</emphasis>-Attribute angegeben wurde. - </para> - <example> - <title>html_options</title> - <para> - <emphasis role="bold">Beispiel 1:</emphasis> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Wobei das Template wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -<select name="customer_id"> - {html_options values=$cust_ids output=$cust_names selected=$customer_id} -</select> -]]> - </programlisting> - <para> - <emphasis role="bold">Beispiel 2:</emphasis> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_options', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Wobei das Template wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -{html_options name=customer_id options=$cust_options selected=$customer_id} -]]> - </programlisting> - <para> - Beide Beispiele ergeben folgende Ausgabe: - </para> - <screen> -<![CDATA[ -<select name="customer_id" size="4"> - <option label="Joe Schmoe" value="1000">Joe Schmoe</option> - <option label="Jack Smith" value="1001" selected="selected">Jack Smith</option> - <option label="Jane Johnson" value="1002">Jane Johnson</option> - <option label="Charlie Brown" value="1003">Charlie Brown</option> -</select> -]]> - </screen> - </example> - <para> - Siehe auch <link - linkend="language.function.html.checkboxes">{html_checkboxes}</link> - und <link - linkend="language.function.html.radios">{html_radios}</link> - </para> - <example> - <title>{html_options} - Beispiel mit Datenbank (z.B. PEAR oder ADODB):</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - Wobei das Template wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -<select name="type_id"> - <option value='null'>-- none --</option> - {html_options name="type" options=$types selected=$contact.type_id} -</select> -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="language.function.html.checkboxes">{html_checkboxes}</link> - und <link - linkend="language.function.html.radios">{html_radios}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,191 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.10 Maintainer: andreas Status: ready --> -<sect1 id="language.function.html.radios"> - <title>html_radios (Ausgabe von HTML-RADIO Tags)</title> - <para> - html_radio ist eine Funktion die aus den übergebenen Daten html - radio Elemente erstellt und kümmert sich darum welche Elemente - ausgewählt sind. Erforderliche Attribute sind Wert/Ausgabe - oder Options. Die Ausgabe ist XHTML kompatibel - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>Name der Radio Liste</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Ja, ausser 'options'-Attribut wird verwendet.</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Array mit Werten für die dropdown-Liste.</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Ja, ausser 'options'-Attribut wird verwendet.</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Arrays mit Namen für die dropdown-Liste.</entry> - </row> - <row> - <entry>selected</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Das ausgewählte Array Element.</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Ja, ausser wenn das 'values'- und das 'output'-Attribut verwendet werden.</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Assoziatives Array mit Werten die ausgegeben werden sollen.</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Die Zeichenkette die zwischen 2 Radioelemente eingefügt werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Alle weiteren Parameter werden als Name/Wert Paare (Attribute) in jedem der <input>-Tags ausgegeben. - </para> - <example> - <title>html_radios</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Carlie Brown') - ); -$smarty->assign('customer_id', 1001); -?> -]]> - </programlisting> - <para> - Mit folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -{html_radios values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"} -]]> - </programlisting> - </example> - <example> - <title>{html_radios} : Example 2</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Mit folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - Ausgabe beider Beispiele: - </para> - <screen> -<![CDATA[ -<label for="id_1000"> -<input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br /> -<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br /> -<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br /> -<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title>{html_radios}-Datenbankbeispiel (z.B. mit PEAR oder ADODB):</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - Mit folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -{html_radios name="type" options=$types selected=$contact.type_id separator="<br />"} -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="language.function.html.checkboxes">{html_checkboxes}</link> - und <link - linkend="language.function.html.options">{html_options}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,322 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="language.function.html.select.date"> - <title>html_select_date (Ausgabe von Daten als HTML-'options')</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>Date_</entry> - <entry>Prefix für die Namen.</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/YYYY-MM-DD</entry> - <entry>Nein</entry> - <entry>Aktuelle Zeit als Unix-Timestamp, oder in YYYY-MM-DD format.</entry> - <entry>Das zu verwendende Datum.</entry> - </row> - <row> - <entry>start_year</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>aktuelles Jahr</entry> - <entry>Das erste Jahr in der dropdown-Liste, entweder als Jahreszahl oder relativ zum aktuellen Jahr (+/- N).</entry> - </row> - <row> - <entry>end_year</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>Gegenteil von start_year</entry> - <entry>Das letzte Jahr in der dropdown-Liste, entweder als Jahreszahl oder relativ zum aktuellen Jahr (+/- N).</entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Tage ausgegeben sollen oder nicht.</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Monate ausgegeben werden sollen oder nicht.</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Jahre ausgegeben werden sollen oder nicht.</entry> - </row> - <row> - <entry>month_format</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>%B</entry> - <entry>Format in welchem der Monat ausgegeben werden soll. (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>%02d</entry> - <entry>Definiert das Format in welchem der Tag ausgegeben werden soll. (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>false</entry> - <entry>Definiert ob das Jahr als Text ausgegeben werden soll oder nicht.</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>false</entry> - <entry>Definiert ob die Daten in verkehrter Reihenfolge ausgegeben werden sollen.</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry> - Wenn ein Namen übergeben wird, werden die Daten in der Form name[Day], name[Year], name[Month] an PHP zurückgegeben. - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt dem 'select'-Tag das Attribut 'size' hinzu.</entry> - </row> - <row> - <entry>month_size</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt dem 'select'-Tag das Attribut 'size' hinzu.</entry> - </row> - <row> - <entry>year_size</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt dem 'select'-Tag das Attribut 'size' hinzu.</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt allen 'select'-Tags zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt 'select'-Tags zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt 'select'-Tags zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt 'select'-Tags zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>field_order</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>MDY</entry> - <entry>Die Reihenfolge in der die Felder ausgegeben werden.</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>\n</entry> - <entry>Zeichenkette die zwischen den Feldern ausgegeben werden soll.</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>%m</entry> - <entry>Format zur Ausgabe der Monats-Werte, Standardwert ist %m. (strftime)</entry> - </row> - <row> - <entry>year_empty</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Definiert, einen Namen für das erste Element der Jahres Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie ein Jahr" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "-MM-DD" als 'time' Attribut definieren können, um ein unselektiertes Jahr anzuzeigen.</entry> - </row> - <row> - <entry>month_empty</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Definiert, einen Namen für das erste Element der Monats Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie einen Monat" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "YYYY--DD" als 'time' Attribut definieren können, um einen unselektierten Monat anzuzeigen.</entry> - </row> - <row> - <entry>day_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Definiert, einen Namen für das erste Element der Tages Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie einen Tag" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "YYYY-MM-" als 'time' Attribut definieren können, um einen unselektierten Tag anzuzeigen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - 'html_select_date' wird verwendet um Datums-Dropdown-Listen zu erzeugen, - und kann einen oder alle der folgenden Werte darstellen: Jahr, Monat und Tag - </para> -<example> -<title>html_select_date</title> -<programlisting> -{html_select_date} - - -AUSGABE: - -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected>December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> -<option value="4">04</option> -<option value="5">05</option> -<option value="6">06</option> -<option value="7">07</option> -<option value="8">08</option> -<option value="9">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected>13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2001" selected>2001</option> -</select></programlisting> -</example> - - -<example> -<title>html_select_date</title> -<programlisting> - - -{* Start- und End-Jahr können relativ zum aktuellen Jahr definiert werden. *} -{html_select_date prefix="StartDate" time=$time start_year="-5" end_year="+1" display_days=false} - -AUSGABE: (aktuelles Jahr ist 2000) - -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected>December</option> -</select> -<select name="StartDateYear"> -<option value="1999">1995</option> -<option value="1999">1996</option> -<option value="1999">1997</option> -<option value="1999">1998</option> -<option value="1999">1999</option> -<option value="2000" selected>2000</option> -<option value="2001">2001</option> -</select></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,324 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="language.function.html.select.time"> - <title>html_select_time (Ausgabe von Zeiten als HTML-'options')</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>Time_</entry> - <entry>Prefix des Namens.</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>Nein</entry> - <entry>Aktuelle Uhrzeit.</entry> - <entry>Definiert die zu verwendende Uhrzeit.</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Stunden ausgegeben werden sollen.</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Minuten ausgegeben werden sollen.</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Sekunden ausgegeben werden sollen.</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob der Meridian (am/pm) ausgegeben werden soll.</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob die Stunden in 24-Stunden Format angezeigt werden sollen oder nicht.</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry>1</entry> - <entry>Definiert den Interval in der Minuten-Dropdown-Liste.</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry>1</entry> - <entry>Definiert den Interval in der Sekunden-Dropdown-Liste.</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>n/a</entry> - <entry>Gibt die Daten in einen Array dieses Namens aus.</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt allen 'select'-Tags zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt dem Stunden-'select'-Tag zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt dem Minuten-'select'-Tag zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>null</entry> - <entry>Fügt dem Sekunden-'select'-Tag zusätzliche Attribute hinzu.</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Fügt dem Meridian-'select'-Tag zusätzliche Attribute hinzu.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - 'html_select_time' wird verwendet um Zeit-Dropdown-Listen zu erzeugen. - Die Funktion kann alle oder eines der folgenden Felder ausgeben: Stunde, Minute, Sekunde und Meridian. - </para> -<example> -<title>html_select_time</title> -<programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.function.html.table"> - <title>html_table (Ausgabe von HTML-TABLE Tag)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standartwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Array mit den Daten für den Loop</entry> - </row> - <row> - <entry>cols</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>3</emphasis></entry> - <entry>Anzahl Spalten in einer Tabelle</entry> - </row> - <row> - <entry>table_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>Attribute für das Table-Tag</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attribute für das tr-Tag (Arrays werden durchlaufen)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attribute für das tr-Tag (Arrays werden durchlaufen)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>Wert für leere Zellen</entry> - </row> - - <row> - <entry>hdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>right</emphasis></entry> - <entry>Richtung in der die Zeilen gerendered werden. Mögliche Werte: <emphasis>left</emphasis>/<emphasis>right</emphasis></entry> - </row> - <row> - <entry>vdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>down</emphasis></entry> - <entry>Richtung in der die Spalten gerendered werden. Mögliche Werte: <emphasis>up</emphasis>/<emphasis>down</emphasis></entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - <emphasis>html_table</emphasis> ist eine eigene Funktion die einen Array als - Tabelle ausgibt. Das <emphasis>cols</emphasis> Attribut definiert die Menge - von Spalten die ausgegeben werden sollen. <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> - und <emphasis>td_attr</emphasis> definieren die Attribute für die HTML Tags. Wenn <emphasis>tr_attr</emphasis> - oder <emphasis>td_attr</emphasis> Arrays sind, werden diese durchlaufen. <emphasis>trailpad</emphasis> - wird in leere Zellen eingefügt. - </para> -<example> -<title>html_table</title> -<programlisting> -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -index.tpl: - -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} - -AUSGABE: - -<table border="1"> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</table> -<table border="0"> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr> -</table> -<table border="1"> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr> -</table></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,142 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.function.mailto"> - <title>mailto</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Benötigt</entry> - <entry>Standard</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>Adresse</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die EMail Adresse</entry> - </row> - <row> - <entry>Text</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der Text der angezeigt werden soll. Standardwert ist die EMail Adresse</entry> - </row> - <row> - <entry>encode</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>none</emphasis></entry> - <entry>Wie die EMail Adresse verschlüsselt werden soll. Erlaubt sind 'none', 'hex' und 'javascript'.</entry> - </row> - <row> - <entry>CC</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Komma separierte Liste der EMail Adressen, die eine Kopie der Nachricht erhalten sollen.</entry> - </row> - <row> - <entry>BCC</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Komma separierte Liste der EMail Adressen, die eine blinde Kopie der Nachricht erhalten sollen.</entry> - </row> - <row> - <entry>Titel</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Titel der Nachricht.</entry> - </row> - <row> - <entry>Newsgroups</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Komma separierte Liste der Newsgroups, die eine Kopie der Nachricht erhalten sollen.</entry> - </row> - <row> - <entry>FollowupTo</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Komma separierte Liste der Followup Adressen.</entry> - </row> - <row> - <entry>Extra</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Zusätzliche Attribute, die sie dem Link geben wollen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - mailto vereinfach den Einsatz von mailto-Links und verschlüsselt die Links. Verschlüsselte Links können von WebSpiders schlechter ausgelesen werden. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Javascript ist wahrscheinlich die beste Methode, die Daten für WebSpider unzugänglich zu machen. - </para> - </note> -<example> -<title>mailto</title> -<programlisting> -{mailto address="me@domain.com"} -{mailto address="me@domain.com" text="Der angezeigte Linktext"} -{mailto address="me@domain.com" encode="javascript"} -{mailto address="me@domain.com" encode="hex"} -{mailto address="me@domain.com" subject="Hallo!"} -{mailto address="me@domain.com" cc="you@domain.com,they@domain.com"} -{mailto address="me@domain.com" extra='class="email"'} - -OUTPUT: - -<a href="mailto:me@domain.com" >me@domain.com</a> -<a href="mailto:me@domain.com" >Der angezeigte Linktext</a> -<script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6 -9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d% -61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e -%27%29%3b'))</script> -<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >me@domain.com</a> -<a href="mailto:me@domain.com?subject=Hallo%21" >me@domain.com</a> -<a href="mailto:me@domain.com?cc=you@domain.com%2Cthey@domain.com" >me@domain.com</a> -<a href="mailto:me@domain.com" class="email">me@domain.com</a></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,152 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.function.math"> - <title>math (Mathematik)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Der auszuführende Vergleich.</entry> - </row> - <row> - <entry>format</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Format der Ausgabe. (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numeric</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Wert der Vergleichsvariable.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Template-Variable welcher die Ausgabe zugewiesen werden soll.</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numeric</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Zusätzliche Werte.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - 'math' ermöglicht es dem Designer, mathematische Gleichungen - durchzuführen. Alle numerischen Template-Variablen - können dazu verwendet werden und die Ausgabe wird an - die Stelle des Tags geschrieben. Die Variablen werden - der Funktion als Parameter übergeben, dabei kann es sich - um statische oder um Template-Variablen handeln. Erlaubte Operatoren - umfassen: +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, - min, pi, pow, rand, round, sin, sqrt, srans und tan. Konsultieren Sie - die PHP-Dokumentation für zusätzliche Informationen zu dieser - Funktion. - </para> - <para> - Falls Sie die spezielle 'assign' Variable übergeben, wird die - Ausgabe der 'math'-Funktion der Template-Variablen mit dem selben - Namen zugewiesen anstatt ausgegeben zu werden. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Die 'math'-Funktion ist wegen ihres Gebrauchs der 'eval()'-Funktion - äusserst Ressourcen intensiv. Mathematik direkt im PHP-Skript - zu verwenden ist wesentlich performanter. Sie sollten daher - - wann immer möglich - auf die Verwendung verzichten. Stellen - Sie jedoch auf jeden Fall sicher, dass Sie keine 'math'-Tags in 'sections' - oder anderen 'loop'-Konstrukten verwenden. - </para> - </note> -<example> -<title>math (Mathematik)</title> -<programlisting> -{* $height=4, $width=5 *} - -{math equation="x + y" x=$height y=$width} - -AUSGABE: - -9 - - -{* $row_height = 10, $row_width = 20, #col_div# = 2, aus Template zugewiesen *} - -{math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} - -AUSGABE: - -100 - - - -{* Sie können auch Klammern verwenden *} - -{math equation="(( x + y ) / z )" x=2 y=10 z=2} - -AUSGABE: - -6 - - - -{* Sie können als Ausgabeformat alle von sprintf unterstötzen Definitionen verwenden *} - -{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - -AUSGABE: - -9.44</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-popup-init.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="language.function.popup.init"> - <title>popup_init (Popup Initialisieren)</title> - <para> - 'popup' ist eine Integration von 'overLib', einer Javascript - Library für 'popup'-Fenster. Dies kann verwendet werden um - Zusatzinformationen als Context-Menu oder Tooltip auszugeben. - 'popup_init' muss am Anfang jedes Templates aufgerufen werden, - falls Sie planen darin die <link linkend="language.function.popup">popup</link>-Funktion - zu verwenden. Der Author von 'overLib' ist Erik Bosrup, und die - Homepage ist unter http://www.bosrup.com/web/overlib/ erreichbar. - </para> - <para> - Seit Smarty 2.1.2 wird 'overLib' NICHT mehr mitgeliefert. Laden - Sie 'overLib' herunter und platzieren Sie es in Ihrer Document Root. - Danach können Sie mit dem Attribut 'src' definieren an welcher - Stelle die Datei liegt. - </para> -<example> -<title>popup_init</title> -<programlisting> -<![CDATA[ -{* popup_init must be called once at the top of the page *} -{popup_init src="/javascripts/overlib.js"} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-popup.xml
Deleted
@@ -1,412 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="language.function.popup"> - <title>popup (Popup-Inhalt definieren)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Text/HTML der im Popup ausgegeben werden soll.</entry> - </row> - <row> - <entry>trigger</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>onMouseOver</emphasis></entry> - <entry>Definiert bei welchem Event das Popup aufgerufen werden soll. Erlaubte Werte sind: onMouseOver und onClick</entry> - </row> - <row> - <entry>sticky</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Definiert ob das Popup geöffnet bleiben soll bis es manuell geschlossen wird.</entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert die Überschrift.</entry> - </row> - <row> - <entry>fgcolor</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Hintergrundfarbe des Popups.</entry> - </row> - <row> - <entry>bgcolor</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Rahmenfarbe des Popups.</entry> - </row> - <row> - <entry>textcolor</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Farbe des Textes im Popup.</entry> - </row> - <row> - <entry>capcolor</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Farbe der Popup-Überschrift.</entry> - </row> - <row> - <entry>closecolor</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Farbe des 'close'-Textes.</entry> - </row> - <row> - <entry>textfont</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Farbe des Textes.</entry> - </row> - <row> - <entry>captionfont</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Schriftart für die Überschrift.</entry> - </row> - <row> - <entry>closefont</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Schriftart für den 'close'-Text.</entry> - </row> - <row> - <entry>textsize</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Schriftgrösse des Textes.</entry> - </row> - <row> - <entry>captionsize</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Schriftgrösse der Überschrift.</entry> - </row> - <row> - <entry>closesize</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Schriftgrösse des 'close'-Textes.</entry> - </row> - <row> - <entry>width</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Breite der Popup-Box.</entry> - </row> - <row> - <entry>height</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Höhe der Popup-Box.</entry> - </row> - <row> - <entry>left</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Öffnet die Popup-Box links von Mauszeiger.</entry> - </row> - <row> - <entry>right</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Öffnet die Popup-Box rechts von Mauszeiger.</entry> - </row> - <row> - <entry>center</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Öffnet die Popup-Box in der Mitte des Mauszeigers.</entry> - </row> - <row> - <entry>above</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Öffnet die Popup-Box oberhalb des Mauszeigers. Achtung: nur möglich wenn 'height' definiert ist.</entry> - </row> - <row> - <entry>below</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Öffnet die Popup-Box unterhalb des Mauszeigers.</entry> - </row> - <row> - <entry>border</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Rahmenbreite der Popup-Box.</entry> - </row> - <row> - <entry>offsetx</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Horizontale Distanz zum Mauszeiger bei der das Popup geöffnet bleibt.</entry> - </row> - <row> - <entry>offsety</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Vertikale Distanz zum Mauszeiger bei der das Popup geöffnet bleibt.</entry> - </row> - <row> - <entry>fgbackground</entry> - <entry>url to image</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Das Hintergundbild.</entry> - </row> - <row> - <entry>bgbackground</entry> - <entry>url to image</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry> - Definiert das Bild welches verwendet werden soll um den Rahmen zu zeichnen. - Achtung: Sie müssen 'bgcolor' auf '' setzen, da die Farbe sonst angezeigt wird. - Achtung: Wenn sie einen 'close'-Link verwenden, wird Netscape (4.x) die Zellen - mehrfach rendern, was zu einer falschen Anzeige führen kann. - </entry> - </row> - <row> - <entry>closetext</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert den Text des 'close'-Links.</entry> - </row> - <row> - <entry>noclose</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Zeigt den 'close'-Link nicht an.</entry> - </row> - <row> - <entry>status</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert den Text der in der Browser-Statuszeile ausgegeben wird.</entry> - </row> - <row> - <entry>autostatus</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Gibt als Statusinformationen den Popup-Text aus. Achtung: Dies überschreibt die definierten Statuswerte.</entry> - </row> - <row> - <entry>autostatuscap</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Zeigt in der Statusleiste den Wert der Popup-Überschrift an. Achtung: Dies überschreibt die definierten Statuswerte.</entry> - </row> - <row> - <entry>inarray</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry> - Weist 'overLib' an, den Wert aus dem in 'overlib.js' definierten Array 'ol_text' zu lesen.</entry> - </row> - <row> - <entry>caparray</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Weist 'overLib' an, die Überschrift aus dem in 'overlib.js' definierten Array 'ol_caps' zu lesen.</entry> - </row> - <row> - <entry>capicon</entry> - <entry>url</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Zeigt das übergebene Bild vor der Überschrift an.</entry> - </row> - <row> - <entry>snapx</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Aliniert das Popup an einem horizontalen Gitter.</entry> - </row> - <row> - <entry>snapy</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Aliniert das Popup an einem vertikalen Gitter.</entry> - </row> - <row> - <entry>fixx</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Fixiert das Popup an der definierten horizontalen Position. Achtung: überschreibt alle anderen horizontalen Positionen.</entry> - </row> - <row> - <entry>fixy</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Fixiert das Popup an der definierten vertikalen Position. Achtung: überschreibt alle anderen vertikalen Positionen.</entry> - </row> - <row> - <entry>background</entry> - <entry>url</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert das Hintergrundbild welches anstelle des Tabellenhintergrundes verwendet werden soll.</entry> - </row> - <row> - <entry>padx</entry> - <entry>integer,integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Erzeugt horizontale Leerzeichen, um den Text platzieren zu können. Achtung: Dies ist eine 2-Parameter Funktion.</entry> - </row> - <row> - <entry>pady</entry> - <entry>integer,integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Erzeugt vertikale Leerzeichen, um den Text platzieren zu können. Achtung: Dies ist eine 2-Parameter Funktion.</entry> - </row> - <row> - <entry>fullhtml</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Lässt Sie den HTML-Code betreffend einem Hintergrundbild komplett kontrollieren.</entry> - </row> - <row> - <entry>frame</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Kontrolliert Popups in einem anderen Frame. Sehen sie die 'overLib'-Seite für zusätzliche Informationen zu dieser Funktion.</entry> - </row> - <row> - <entry>timeout</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Führt die übergebene Javascript-Funktion aus, und verwendet deren Ausgabe als Text für das Popup.</entry> - </row> - <row> - <entry>delay</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Macht, dass sich das Popup wie ein Tooltip verhält, und nach den definierten Millisekunden verschwindet.</entry> - </row> - <row> - <entry>hauto</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Lässt 'overLib' automatisch definieren an welcher Seite (links/rechts) des Mauszeigers das Popup ausgegeben werden soll.</entry> - </row> - <row> - <entry>vauto</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Lässt 'overLib' automatisch definieren an welcher Seite (oben/unten) des Mauszeigers das Popup ausgegeben werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - 'popup' wird verwendet um Javascript-Popup-Fenster zu erzeugen. - </para> -<example> -<title>popup</title> -<programlisting> - -{* 'popup_init' muss am Anfang jeder Seite aufgerufen werden die 'popup' verwendet *} -{popup_init src="/javascripts/overlib.js"} - -{* create a link with a popup window when you move your mouse over *} -{* ein link mit einem Popup welches geöffnet wird wenn die Maus über dem Link ist. *} -<A href="mypage.html" {popup text="This link takes you to my page!"}>mypage</A> - - -{* Sie können in einem Popup text, html, links und weiteres verwenden *} -<A href="mypage.html" {popup sticky=true caption="mypage contents" -text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A> - -AUSGABE: - - -(Für Beispiele können Sie sich die Smarty Homepage anschauen.)</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,252 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.function.textformat"> - <title>textformat (Textformatierung)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut Name</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>aktueller Stil</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>Nein</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Anzahl Zeichen die für das einrücken von Zeilen verwendet werden.</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>Nein</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Anzahl Zeichen die für das Einrücken der ersten Zeile verwendet werden.</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>(single space)</emphasis></entry> - <entry>Das Zeichen welches zum Einrücken verwendet werden soll.</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>Nein</entry> - <entry><emphasis>80</emphasis></entry> - <entry>Maximale Zeilenlänge bevor die Zeile umgebrochen wird.</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>Das für Zeilenumbrüche zu verwendende Zeichen.</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Wenn auf 'true' gesetzt, wird die Zeile an der definierten Position abgeschnitten.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die Template-Variable welcher die Ausgabe zugewiesen werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - 'textformat' ist eine Funktion um Text zu formatieren. Die Funktion - entfernt überflüssige Leerzeichen und formatiert Paragrafen - indem sie die Zeilen einrückt und umbricht. - </para> - <para> - Sie können entweder den aktuellen Stil verwenden, oder ihn anhand - der Parameter selber definieren. Im Moment ist 'email' der einzig verfügbare Stil. - </para> -<example> -<title>textformat (Text Formatierung)</title> -<programlisting> -{textformat wrap=40} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - -This is foo. This is foo. This is foo. -This is foo. This is foo. This is foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo -foo. bar foo bar foo foo. bar foo bar -foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. - - -{textformat wrap=40 indent=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. - -{textformat wrap=40 indent=4 indent_first=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. - -{textformat style="email"} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - -This is foo. This is foo. This is foo. This is foo. This is foo. This is -foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo -foo. - -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers.xml
Deleted
@@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.19 Maintainer: andreas Status: ready --> -<chapter id="language.modifiers"> - <title>Variablen-Modifikatoren</title> - <para> - Variablen-Modifikatoren können auf alle Variablen angewendet - werden, um deren Inhalt zu verändern. Dazu hängen sie einfach - ein <literal>|</literal> (Pipe-Zeichen) und den Modifikatornamen an - die entsprechende Variable an. Ein Modifikator über Parameter in - seiner Arbeitsweise beinflusst werden. Diese Parameter werden dem - Modifikatorname angehängt und mit <literal>:</literal> getrennt. - </para> - <example> - <title>Modifikator Beispiel</title> - <programlisting> -<![CDATA[ -{* Modifikator auf eine Variable anwenden *} -{$titel|upper} -{* Modifikator mit Parametern *} -{$title|truncate:40:"..."} - -{* Modifikator auf Funktionsparameter anwenden *} -{html_table loop=$myvar|upper} -{* mit Parametern *} -{html_table loop=$myvar|truncate:40:"..."} - -{* formatierung einer Zeichenkette *} -{"foobar"|upper} - -{* mit date_format das aktuelle Datum formatieren *} -{"now"|date_format:"%Y/%m/%d"} - -{* modifier auf eigene Funktion anwenden *} -{mailto|upper address="me@domain.dom"} -]]> - </programlisting> - </example> - <para> - Wenn Sie einen Modifikator auf ein Array anwenden, wird dieser auf - jeden Wert angewandt. Um zu erreichen, dass der Modifkator auf den - Array selbst angewendet wird, muss dem Modifikator ein - <literal>@</literal> Zeichen vorangestellt werden. Beispiel: - <literal>{$artikelTitel|@count}</literal> (gibt die Anzahl Elemente - des Arrays $artikelTitel aus.) - </para> - <para> - Modifikatoren können aus Ihrem <link - linkend="variable.plugins.dir">$plugins_dir</link> automatisch - geladen (sehen Sie dazu auch <link - linkend="plugins.naming.conventions">Naming Conventions</link>) oder - explizit registriert werden (<link - linkend="api.register.modifier">register_modifier</link>). - </para> - <para> - Zudem können alle PHP-Funktionen implizit als Modifikatoren - verwendet werden. (Das Beispiel mit dem <literal>@count</literal> - Modifier verwendet die Funktion 'count()' von PHP und keinen Smarty - Modifikator) PHP Funktionen zu verwenden eröffnet zwei Probleme: - erstens: manchmal ist die Parameter Reiehnfolge nicht - erwünscht. (<literal>{"%2.f"|sprintf:$float}</literal> funktioniert - zwar, sieht aber als - <literal>{$float|string_format:"%2.f"}</literal> das durch Smarty - geliefert wird, besser aus. Zweitens: wenn <link - linkend="variable.security">$security</link> auf TRUE gesetzt ist, - müssen alle verwendeten PHP Funktionen im <link - linkend="variable.security.settings"> - $security_settings['MODIFIER_FUNCS']</link>-Array enthalten sein. - </para> - <para> - Siehe auch <link - linkend="api.register.modifier">register_modifier()</link>, <link - linkend="api.register.function">register_function()</link>, <link - linkend="plugins">Smarty durch Plugins erweitern</link> und <link - linkend="plugins.modifiers">Variablen-Modifikatoren</link>. - </para> - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.capitalize"> - <title>capitalize (in Grossbuchstaben schreiben)</title> - <para> - Wird verwendet um den Anfangsbuchstaben aller Wörter in der - Variable gross (upper case) zu schreiben. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Benötigt</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>false</entry> - <entry>Bestimmt ob Wörter die Ziffern enthalten auch in - Großschreibung gewandelt werden</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>capitalize (in Grossbuchstaben schreiben)</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'diebe haben in norwegen 20 tonnen streusalz entwendet.'); - -?> -]]> - </programlisting> - <para> - Wobei das Template wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -{$artikelTitel} -{$artikelTitel|capitalize} -]]> - </programlisting> - <para> - AUSGABE: - </para> - <screen> -<![CDATA[ -diebe haben in norwegen 20 tonnen streusalz entwendet. -Diebe Haben In Norwegen 20 Tonnen Streusalz Entwendet.</programlisting> -]]> - </screen> - </example> - <para> - Siehe auch <link linkend="language.modifier.lower">lower (in - Kleinbuchstaben schreiben)</link> <link - linkend="language.modifier.upper">upper (in Grossbuchstaben - umwandeln)</link> - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<sect1 id="language.modifier.cat"> - <title>cat</title> - <para> - Dieser Wert wird der aktuellen Variable hinzugefügt. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Benötigt</entry> - <entry>Standard</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>leer/empty</emphasis></entry> - <entry>Wert der an die Variable angefügt werden soll.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>cat</title> - <programlisting> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - </programlisting> - <para> - Bei folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:" yesterday."} -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -Psychics predict world didn't end yesterday. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.count.characters"> - <title>count_characters (Buchstaben zählen)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Benötigt</entry> - <entry>Standard</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>false</entry> - <entry>Definiert ob Leerzeichen mitgezählt werden sollen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wird verwendet um die Anzahl Buchstaben in einer Variable auszugeben. - </para> -<example> -<title>count_characters (Buchstaben zählen)</title> -<programlisting> - -{$artikelTitel} -{$artikelTitel|count_characters} -{$artikelTitel|count_characters:true} - -AUSGABE: - -20% der US-Amerikaner finden ihr Land (die USA) nicht auf der Landkarte. -61 -72 -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs (Absätze zählen)</title> - <para> - Wird verwendet, um die Anzahl der Absätze in einer Variable zu ermitteln. - </para> -<example> -<title>count_paragraphs (Paragrafen zählen)</title> -<programlisting> - -{$artikelTitel} -{$artikelTitel|count_paragraphs} - -AUSGABE: - -Britische Spezialeinheiten sind aufgrund eines "Navigationsfehlers" nicht wie beabsichtigt in Gibraltar an Land gegangen, sondern an einem Badestrand, der zu Spanien gehört. - -Ein spanischer Lokführer hat aus Protest gegen die Arbeitsbedingungen nach gearbeiteten acht Stunden einfach seinen Zug stehen lassen, in dem sich allerdings noch 132 Passagiere befanden. -2</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.count.sentences"> - <title>count_sentences (Sätze zählen)</title> - <para> - Wird verwendet, um die Anzahl der Sätze in einer Variable zu ermitteln. - </para> -<example> -<title>count_sentences (Sätze zählen)</title> -<programlisting> - -{$artikelTitel} -{$artikelTitel|count_sentences} - -AUSGABE: - -Zwei Deutsche haben die sogenannte "Painstation" vorgestellt. Bei Fehlern im Spiel wird der Spieler durch Elektroschocks aus der Konsole bestraft. Wer länger aushält, hat gewonnen. -3</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.count.words"> - <title>count_words (Wörter zählen)</title> - <para> - Wird verwendet, um die Anzahl Wörter in einer Variable zu ermiteln. - </para> -<example> -<title>count_words (Wörter zählen)</title> -<programlisting> - -{$artikelTitel} -{$artikelTitel|count_words} - -AUSGABE: - -Südafrika: Eine Polizistin fesselte - mangels mitgebrachter Handschellen - drei Flüchtige mit ihrer Strumpfhose. -12</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.date.format"> - <title>date_format (Datums Formatierung)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>%b %e, %Y</entry> - <entry>Das Format des ausgegebenen Datums.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>n/a</entry> - <entry>Der Standardwert (Datum) wenn die Eingabe leer ist.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Formatiert Datum und Uhrzeit in das definierte 'strftime()'-Format. - Daten können als Unix-Timestamps, MySQL-Timestamps - und jeder Zeichenkette die aus 'Monat Tag Jahr' (von strtotime parsebar) besteht - übergeben werden. Designer können 'date_format' verwenden, - um vollständige Kontrolle über das Format des Datums zu erhalten. - Falls das übergebene Datum leer ist und der zweite Parameter - übergeben wurde, wird dieser formatiert und ausgegeben. - </para> -<example> -<title>date_format (Datums Formatierung)</title> -<programlisting> -{$smarty.now|date_format} -{$smarty.now|date_format:"%A, %B %e, %Y"} -{$smarty.now|date_format:"%H:%M:%S"} - -AUSGABE: - -Feb 6, 2001 -Tuesday, February 6, 2001 -14:33:00</programlisting> -</example> -<example> -<title>'date_format' Konvertierungs Spezifikation</title> -<programlisting> -%a - abgekürzter Name des Wochentages, abhängig von der gesetzten Umgebung - -%A - ausgeschriebener Name des Wochentages, abhängig von der gesetzten Umgebung - -%b - abgekürzter Name des Monats, abhängig von der gesetzten Umgebung - -%B - ausgeschriebener Name des Monats, abhängig von der gesetzten Umgebung - -%c - Wiedergabewerte für Datum und Zeit, abhängig von der gesetzten Umgebung - -%C - Jahrhundert (Jahr geteilt durch 100, gekürzt auf Integer, Wertebereich 00 bis 99) - -%d - Tag des Monats als Zahl (Bereich 00 bis 31) - -%D - so wie %m/%d/%y - -%e - Tag des Monats als Dezimal-Wert, einstelligen Werten wird ein Leerzeichen voran gestellt (Wertebereich Ž 0Ž bis Ž31Ž) - -%g - wie %G, aber ohne Jahrhundert. - -%G - Das vierstellige Jahr entsprechend der ISO Wochennummer (siehe %V). Das gleiche Format und der gleiche Wert wie bei %Y. Besonderheit: entspricht die ISO Wochennummer dem vorhergehenden oder folgenden Jahr, wird dieses Jahr verwendet. - -%h - so wie %b - -%H - Stunde als Zahl im 24-Stunden-Format (Bereich 00 bis 23) - -%I - Stunde als Zahl im 12-Stunden-Format (Bereich 01 bis 12) - -%j - Tag des Jahres als Zahl (Bereich 001 bis 366) - -%m - Monat als Zahl (Bereich 01 bis 12) - -%M - Minute als Dezimal-Wert - -%n - neue Zeile - -%p - entweder `am' oder `pm' (abhängig von der gesetzten Umgebung) oder die entsprechenden Zeichenketten der gesetzten Umgebung - -%r - Zeit im Format a.m. oder p.m. - -%R - Zeit in der 24-Stunden-Formatierung - -%S - Sekunden als Dezimal-Wert - -%t - Tabulator - -%T - aktuelle Zeit, genau wie %H:%M:%S - -%u - Tag der Woche als Dezimal-Wert [1,7], dabei ist 1 der Montag. - -%U - Nummer der Woche des aktuellen Jahres als Dezimal-Wert, beginnend mit dem ersten Sonntag als erstem Tag der ersten Woche. - -%V - Kalenderwoche (nach ISO 8601:1988) des aktuellen Jahres. Als Dezimal-Zahl mit dem Wertebereich 01 bis 53, wobei die Woche 01 die erste Woche mit mindestens 4 Tagen im aktuellen Jahr ist. Die Woche beginnt montags (nicht sonntags). (Benutzen Sie %G or %g für die Jahreskomponente, die der Wochennummer für den gegebenen Timestamp entspricht.) - -%w - Wochentag als Dezimal-Wert, Sonntag ist 0 - -%W - Nummer der Woche des aktuellen Jahres, beginnend mit dem ersten Montag als erstem Tag der ersten Woche. - -%x - bevorzugte Datumswiedergabe (ohne Zeit), abhängig von der gesetzten Umgebung. - -%X - bevorzugte Zeitwiedergabe (ohne Datum), abhängig von der gesetzten Umgebung. - -%y - Jahr als 2-stellige-Zahl (Bereich 00 bis 99) - -%Y - Jahr als 4-stellige-Zahl inklusive des Jahrhunderts - -%Z - Zeitzone, Name oder eine Abkürzung - -%% - ein %-Zeichen - -BEMERKUNG FÜR PROGRAMMIERER: 'date_format' ist ein wrapper für PHP's 'strftime()'-Funktion. -Je nachdem auf welchem System ihr PHP kompiliert wurde, ist es durchaus möglich, dass nicht alle -angegebenen Formatierungszeichen unterstützt werden. Beispielsweise stehen %e, %T, %R und %D -(eventuell weitere) auf Windowssystemen nicht zur Verfügung.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.default"> - <title>default (Standardwert)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>leer</emphasis></entry> - <entry>Dieser Wert wird ausgegeben wenn die Variable leer ist.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wird verwendet um den Standardwert einer Variable festzulegen. - Falls die Variable leer ist oder nicht gesetzt wurde, - wird dieser Standardwert ausgegeben. - Default (Standardwert) hat 1 Parameter. - </para> -<example> -<title>default (Standardwert)</title> -<programlisting> -{* gib "kein Titel" (ohne Anführungszeichen) aus, falls '$artikelTitel' leer ist *} -{$artikelTitel|default:"kein Titel"} - -AUSGABE: - -kein Titel</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,108 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.escape"> - <title>escape (Maskieren)</title> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Mögliche (erlaubte) Werte</entry> - <entry>Standardwerte</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>html, htmlall, url, quotes, hex, hexentity, javascript</entry> - <entry>html</entry> - <entry>Definiert die zu verwendende Maskierung.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wird verwendet um eine Variable mit HTML, URL oder - einfachen Anführungszeichen, beziehungsweise Hex oder Hex-Entitäten - zu maskieren. Hex und Hex-Entity kann verwendet werden um "mailto:" - -Links so zu verändern, dass sie von Web-Spiders (E-Mail Sammlern) - verborgen bleiben und dennoch les-/linkbar für Webbrowser bleiben. - Als Standard, wird 'HTML'-Maskierung verwendet. - </para> - <example> - <title>escape (Maskieren)</title> - <programlisting role="php"> -<![CDATA[ -<?php -index.php: - -$smarty->assign('TitreArticle', "'Zwei Unbekannte haben im Lidl in Monheim 24 Pakete Kaffee gestohlen.'"); -?> -]]> - </programlisting> - <para> - Wobei im Template folgendes steht: - </para> - <programlisting> -<![CDATA[ -{$artikelTitel} -{$artikelTitel|escape} -{$artikelTitel|escape:"html"} {* maskiert & " ' < > *} -{$artikelTitel|escape:"htmlall"} {* maskiert ALLE html Entitäten *} -{$artikelTitel|escape:"url"} -{$artikelTitel|escape:"quotes"} -<a href="mailto:{$EmailAdresse|escape:"hex"}">{$EmailAdresse|escape:"hexentity"}</a> -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -'Zwei Unbekannte haben im Lidl in Monheim 24 Pakete Kaffee gestohlen.' -&#039;Zwei Unbekannte haben im Lidl in Monheim 24 Pakete Kaffee gestohlen.&#039; -&#039;Zwei Unbekannte haben im Lidl in Monheim 24 Pakete Kaffee gestohlen.&#039; -&#039;Zwei Unbekannte haben im Lidl in Monheim 24 Pakete Kaffee gestohlen.&#039; -%27Zwei+Unbekannte+haben+im+Lidl+in+Monheim+24+Pakete+Kaffee+gestohlen.%27 -\'Zwei Unbekannte haben im Lidl in Monheim 24 Pakete Kaffee gestohlen.\' -<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">&#x62;&#x6f;&#x62;&#x40;&#x6d;&#x65;&#x2e;&#x6e;&#x65;&#x74;</a> -]]> - </screen> - </example> - <para> - Siehe auch <link linkend="language.escaping">Smarty Parsing umgehen</link> - und <link linkend="tips.obfuscating.email">Verschleierung von E-mail Adressen</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.indent"> - <title>indent (Einrücken)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry>4</entry> - <entry>Definiert die Länge der Zeichenkette die verwendet werden soll um den Text einzurücken.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>(ein Leerschlag)</entry> - <entry>Definiert das Zeichen, welches verwendet werden soll um den Text einzurücken.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wird verwendet, um eine Zeichenkette auf jeder Zeile einzurücken. - Optionaler Parameter ist die Anzahl der Zeichen, - um die der Text eingerückt werden soll. Standardlänge ist 4. - Als zweiten optionalen Parameter können sie ein Zeichen übergeben, - das für die Einrückung verwendet werden soll (für Tabulatoren: '\t'). - </para> -<example> -<title>indent (Einrücken)</title> -<programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -Nach einer feuchtfröhlichen Nacht fand ein Brite sein Auto -nicht mehr und meldete es als gestohlen. Ein Jahr später -besuchte er den Ort wieder und erinnerte sich, dass er -das Auto nur an einem anderen Ort abgestellt hatte - -dort stand das Fahrzeug nach einem Jahr auch noch. - - Nach einer feuchtfröhlichen Nacht fand ein Brite sein Auto - nicht mehr und meldete es als gestohlen. Ein Jahr später - besuchte er den Ort wieder und erinnerte sich, dass er - das Auto nur an einem anderen Ort abgestellt hatte - - dort stand das Fahrzeug nach einem Jahr auch noch. - - Nach einer feuchtfröhlichen Nacht fand ein Brite sein Auto - nicht mehr und meldete es als gestohlen. Ein Jahr später - besuchte er den Ort wieder und erinnerte sich, dass er - das Auto nur an einem anderen Ort abgestellt hatte - - dort stand das Fahrzeug nach einem Jahr auch noch. - - Nach einer feuchtfröhlichen Nacht fand ein Brite sein Auto - nicht mehr und meldete es als gestohlen. Ein Jahr später - besuchte er den Ort wieder und erinnerte sich, dass er - das Auto nur an einem anderen Ort abgestellt hatte - - dort stand das Fahrzeug nach einem Jahr auch noch. -]]> - </screen> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.lower"> - <title>lower (in Kleinbuchstaben schreiben)</title> - <para> - Wird verwendet um eine Zeichenkette in Kleinbuchstaben auszugeben. - </para> -<example> -<title>lower (in Kleinbuchstaben schreiben)</title> -<programlisting> -{$artikelTitel} -{$artikelTitel|lower} - -AUSGABE: - -In Kalifornien wurde ein Hund in das Wählerverzeichnis eingetragen. -in kalifornien wurde ein hund in das wählerverzeichnis eingetragen.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - Konvertiert alle Zeilenschaltungen in <br /> Tags. Genau wie die PHP Funktion nl2br. - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Sonne oder Regen erwartet,\nnachts dunkel."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Wobei index.tpl wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|nl2br} -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -Sonne oder Regen erwartet,<br />nachts dunkel. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.regex.replace"> - <title>regex_replace (Ersetzen mit regulären Ausdrücken)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert das zu ersetzende Suchmuster, als regulären Ausdruck.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Definiert die ersetzende Zeichenkette.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Suchen/Ersetzen mit regulären Ausdrücken. Folgt der Syntax von PHP's preg_replace(). - </para> -<example> -<title>regex_replace (Ersetzen mit regulären Ausdrücken)</title> -<programlisting> -{* Ersetzt jeden Zeilenumbruch-Tabulator-Neuezeile, durch ein Leerzeichen. *} - -{$artikelTitel} -{$artikelTitel|regex_replace:"/[\r\t\n]/":" "} - -AUSGABE: - -Ein Bankangestellter in England zerkaut aus Stress - bei der Arbeit wöchentlich 50 Kugelschreiber. Er ist deshalb in Behandlung. -Ein Bankangestellter in England zerkaut aus Stress bei der Arbeit wöchentlich 50 Kugelschreiber. Er ist deshalb in Behandlung.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.replace"> - <title>replace (Ersetzen)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die zu ersetzende Zeichenkette.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Die ersetzende Zeichenkette.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Einfaches suchen/ersetzen in einer Variable. - </para> -<example> -<title>replace (Ersetzen)</title> -<programlisting> -{$artikelTitel} -{$artikelTitel|replace:"Fracht":"Lieferung"} -{$artikelTitel|replace:" ":" "} - -AUSGABE: - -Ein Holsten-Laster hat in England seine komplette Fracht verloren, die nun von jedermann aufgesammelt werden kann. -Ein Holsten-Laster hat in England seine komplette Lieferung verloren, die nun von jedermann aufgesammelt werden kann. -Ein Holsten-Laster hat in England seine komplette Fracht verloren, die nun von jedermann aufgesammelt werden kann. -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.spacify"> - <title>spacify (Zeichenkette splitten)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry><emphasis>ein Leerzeichen</emphasis></entry> - <entry>Definiert die zwischen allen Zeichen einzufügende Zeichenkette.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Fügt zwischen allen Zeichen einer Variablen ein Leerzeichen ein. - Eine alternativ einzufügende Zeichenkette kann über - den ersten Parameter definiert werden. - </para> -<example> -<title>spacify (Zeichenkette splitten)</title> -<programlisting> -{$artikelTitel} -{$artikelTitel|spacify} -{$artikelTitel|spacify:"^^"} - -AUSGABE: - -Ein Mann flog 5000 km um sich die Haare schneiden zu lassen. Grund: Seine offensichtlich begnadete Friseuse zog von den Bermudas nach England und bis dato fand er keine Neue. -E i n M a n n f l o g 5 0 0 0 k m u m s i c h d i e H a a r e s c h n e i d e n z u l a s s e n . G r u n d : S e i n e o f f e n s i c h t l i c h b e g n a d e t e F r i s e u s e z o g v o n d e n B e r m u d a s n a c h E n g l a n d u n d b i s d a t o f a n d e r k e i n e N e u e . -E^^i^^n^^ ^^M^^a^^n^^n^^ ^^f^^l^^o^^g^^ ^^5^^0^^0^^0^^ ^^k^^m^^ ^^u^^m^^ ^^s^^i^^c^^h^^ ^^d^^i^^e^^ ^^H^^a^^a^^r^^e^^ ^^s^^c^^h^^n^^e^^i^^d^^e^^n^^ ^^z^^u^^ ^^l^^a^^s^^s^^e^^n^^.^^ ^^G^^r^^u^^n^^d^^:^^ ^^S^^e^^i^^n^^e^^ ^^o^^f^^f^^e^^n^^s^^i^^c^^h^^t^^l^^i^^c^^h^^ ^^b^^e^^g^^n^^a^^d^^e^^t^^e^^ ^^F^^r^^i^^s^^e^^u^^s^^e^^ ^^z^^o^^g^^ ^^v^^o^^n^^ ^^d^^e^^n^^ ^^B^^e^^r^^m^^u^^d^^a^^s^^ ^^n^^a^^c^^h^^ ^^E^^n^^g^^l^^a^^n^^d^^ ^^u^^n^^d^^ ^^b^^i^^s^^ ^^d^^a^^t^^o^^ ^^f^^a^^n^^d^^ ^^e^^r^^ ^^k^^e^^i^^n^^e^^ ^^N^^e^^u^^e^^.^^</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.string.format"> - <title>string_format (Zeichenkette formatieren)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erfoderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Ja</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Das zu verwendende Format (sprintf).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Wird verwendet um eine Zeichenkette, wie zum Beispiel dezimale Werte, zu formatieren. - Folgt der Formatierungs-Syntax von sprintf. - </para> -<example> -<title>string_format (Zeichenkette formatieren)</title> -<programlisting> -{$wert} -{$wert|string_format:"%.2f"} -{$wert|string_format:"%d"} - -AUSGABE: - -23.5787446 -23.58 -24</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Benötigt</entry> - <entry>Standard</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>bool</entry> - <entry>Nein</entry> - <entry>true</entry> - <entry>Definiert ob Tags durch ' ' oder '' ersetzt werden sollen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Entfernt alle Markup tags. - Eigentlich alles zwischen < und >. - </para> - <example> - <title>strip_tags</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty = new Smarty; -$smarty->assign('articleTitle', "Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen."); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - where index.tpl is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *} -{$articleTitle|strip_tags:false} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen. -Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen. -Da ein <font face="helvetica">betrunkener Mann</font> auf einem Flug ausfallend wurde, musste <b>das Flugzeug</b> auf einer kleinen Insel zwischenlanden und den Mann aussetzen. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.strip"> - <title>strip (Zeichenkette strippen)</title> - <para> - Ersetzt mehrfache Leerzeichen, Zeilenumbrüche und Tabulatoren durch ein Leerzeichen - oder eine alternative Zeichenkette. - </para> - <note> - <title>Achtung</title> - <para> - Falls Sie ganze Blöcke eines Templates 'strippen' möchten, - verwenden Sie dazu <link linkend="language.function.strip">strip</link>. - </para> - </note> -<example> -<title>strip (Zeichenkette strippen)</title> -<programlisting> -{$artikelTitel} -{$artikelTitel|strip} -{$artikelTitel|strip:"&nbsp;"} - -AUSGABE: - -Ein 18 Jahre alter Pappkarton - erzielte bei Ebay einen Erlös von - 536 Dollar. Es war der Karton, in dem der erste Apple verpackt war. -Ein 18 Jahre alter Pappkarton erzielte bei Ebay einen Erlös von 536 Dollar. Es war der Karton, in dem der erste Apple verpackt war. -Ein&nbsp;18&nbsp;Jahre&nbsp;alter&nbsp;Pappkarton&nbsp;erzielte&nbsp;bei&nbsp;Ebay&nbsp;einen&nbsp;Erlös&nbsp;von&nbsp;536&nbsp;Dollar.&nbsp;Es&nbsp;war&nbsp;der&nbsp;Karton,&nbsp;in&nbsp;dem&nbsp;der&nbsp;erste&nbsp;Apple&nbsp;verpackt&nbsp;war.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.truncate"> - <title>truncate (kürzen)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry>80</entry> - <entry>Länge, auf die die Zeichenkette gekürzt werden soll.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>...</entry> - <entry> An die gekürzte Zeichenkette anzuhängende Zeichenkette.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>false</entry> - <entry>Nur nach ganzen Worten (false) oder exakt an der definierten Stelle (true) kürzen.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Kürzt die Variable auf eine definierte Länge. Standardwert sind 80 Zeichen. - Als optionaler zweiter Parameter kann eine Zeichenkette übergeben werden, welche - der gekürzten Variable angehängt wird. Diese zusätzliche Zeichenkette - wird bei der Berechnung der Länge berücksichtigt. Normalerweise wird - 'truncate' versuchen, die Zeichenkette zwischen zwei Wörtern umzubrechen. Um die - Zeichenkette exakt an der definierten Position abzuscheiden, - können sie als dritten Parameter 'true' übergeben. - </para> -<example> -<title>truncate (kürzen)</title> -<programlisting> -{$artikelTitel} -{$artikelTitel|truncate} -{$artikelTitel|truncate:30} -{$artikelTitel|truncate:30:""} -{$artikelTitel|truncate:30:"---"} -{$artikelTitel|truncate:30:"":true} -{$artikelTitel|truncate:30:"...":true} - -AUSGABE: - -George W. Bush will die frei gewählten Mitglieder der ICANN ("Internetregierung") durch Regierungsvertreter der USA ersetzen. -George W. Bush will die frei gewählten Mitglieder der ICANN ("Internetregierung") durch Regierungsvertreter der USA ersetzen. -George W. Bush will die frei... -George W. Bush will die frei -George W. Bush will die frei--- -George W. Bush will die frei -George W. Bush will die fr...</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.upper"> - <title>upper (in Grossbuchstaben umwandeln)</title> - <para> - Wandelt eine Zeichenkette in Grossbuchstaben um. - </para> -<example> -<title>upper (in Grossbuchstaben umwandeln)</title> -<programlisting> -{$artikelTitel} -{$artikelTitel|upper} - -AUSGABE: - -Ein 58jähriger Belgier ist nach 35 Jahren zum Sieger der Weltmeisterschaft im Querfeldeinrennen 1967 erklärt worden - Grund: Ein damaliger Formfehler. -EIN 58JÄHRIGER BELGIER IST NACH 35 JAHREN ZUM SIEGER DER WELTMEISTERSCHAFT IM QUERFELDEINRENNEN 1967 ERKLÄRT WORDEN - GRUND: EIN DAMALIGER FORMFEHLER.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap (Zeilenumbruch)</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Typ</entry> - <entry>Erforderlich</entry> - <entry>Standardwert</entry> - <entry>Beschreibung</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Nein</entry> - <entry>80</entry> - <entry>Definiert maximale Länge einer Zeile in der umzubrechenden Zeichenkette.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Nein</entry> - <entry>\n</entry> - <entry>Definiert das zu verwendende Zeichen.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>Nein</entry> - <entry>false</entry> - <entry>Definiert ob die Zeichenkette nur zwischen Wörtern getrennt (false), oder auch abgeschnitten werden darf (true).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Bricht eine Zeichenkette an einer definierten Stelle (Standardwert 80) um. - Als optionaler zweiter Parameter kann das Zeichen übergeben werden, - welches zum Umbrechen verwendet werden soll (Standardwert '\n'). Normalerweise - bricht wordwrap nur zwischen zwei Wörtern um. Falls Sie exakt an der - definierten Stelle umbrechen wollen, übergeben - Sie als optionalen dritten Parameter 'true'. - </para> -<example> -<title>wordwrap (Zeilenumbruch)</title> -<programlisting> -{$artikelTitel} - -{$artikelTitel|wordwrap:75} - -{$artikelTitel|wordwrap:50} - -{$artikelTitel|wordwrap:75:"<br>\n"} - -{$artikelTitel|wordwrap:75:"\n":true} - -AUSGABE: - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz danach zurück, um die Hose umzutauschen, weil die Grösse nicht passte. - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz -danach zurück, um die Hose umzutauschen, weil die Grösse nicht -passte. - -Eine Frau stahl in einem Bekleidungsgeschäft -eine Hose und kam kurz danach zurück, um die -Hose umzutauschen, weil die Grösse nicht -passte. - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz<br> -danach zurück, um die Hose umzutauschen, weil die Grösse nicht<br> -passte. - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz d -anach zurück, um die Hose umzutauschen, weil die Grösse nicht pass -te.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-variables.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> - <chapter id="language.variables"> - <title>Variablen</title> - <para> - Smarty hat verschiedene Variablentypen, welche weiter unten - detailliert beschrieben werden. Der Typ der Variable wird durch - das Vorzeichen bestimmt. - </para> - - <para> - Variablen können in Smarty direkt ausgegeben werden oder als - <link linkend="language.syntax.attributes">Argumente</link> - für <link - linkend="language.syntax.functions">Funktionsparameter</link> und - <link linkend="language.modifiers">Modifikatoren</link> sowie in - Bedingungen verwendet werden. Um eine Variable auszugeben, - umschliessen Sie sie mit <link - linkend="variable.left.delimiter">Trennzeichen</link>, so dass die - Variable das einzige enthaltene Element ist. Beispiele: - <programlisting> - <![CDATA[ -{$Name} - -{$Kontakte[zeile].Telefon} - -<body bgcolor="{#bgcolor#}"> -]]> - </programlisting> - </para> - -&designers.language-variables.language-assigned-variables; -&designers.language-variables.language-config-variables; -&designers.language-variables.language-variables-smarty; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,201 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<sect1 id="language.assigned.variables"> - <title>Aus einem PHP-Skript zugewiesene Variablen</title> - <para> - Variablen die in einem PHP Skript <link - linkend="api.assign">assigned</link> mit zugewiesen wurden, müssen - mit eine Dollar Zeichen <literal>$</literal> versehen werden. Auf - die gleiche Art werden Variablen ausgegeben, die im Template mit <link - linkend="language.function.assign">{assign}</link> zugewiesen - wurden. - </para> - <example> - <title>zugewiesene Variablen</title> - <para>PHP-Skript</para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; - -$smarty->assign('vorname', 'Andreas'); -$smarty->assign('nachname', 'Halter'); -$smarty->assign('treffpunkt', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Mit folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -Hallo {$vorname} {$nachname}, schön, dass Du es einrichten kannst. -<br /> -{* - das hier funktioniert nicht, da bei Variablennamen auf - Gross-Kleinschreibung geachtet werden muss: -*} -Diese Woche findet das Treffen in {$treffPunkt} statt. - -{* aber das hier funktioniert: *} -Diese Woche findet das Treffen in {$treffpunkt} statt. -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -Hallo Andreas Halter, schön, dass Du es einrichten kannst. -<br /> -Diese Woche findet das Treffen in statt. -Diese Woche findet das Treffen in New York statt. -]]> - </screen> - </example> - <sect2 id="language.variables.assoc.arrays"> - <title>Assoziative Arrays</title> - <para> - Sie können auch auf die Werte eines in PHP zugewiesenen - assoziativen Arrays zugreifen, indem Sie den Schlüssel (Indexwert) - nach einem '.'-Zeichen (Punkt) notieren. - </para> - <example> - <title>Zugriff auf Variablen eines assoziativen Arrays</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('kontakte', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'telefon' => array('privat' => '555-444-3333', - 'mobil' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Bei folgender index.tpl: - </para> - <programlisting> -<![CDATA[ -{$kontakte.fax}<br /> -{$kontakte.email}<br /> -{* auch multidimensionale Arrays können so angesprochen werden *} -{$kontakte.telefon.privat}<br /> -{$kontakte.telefon.mobil}<br /> -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.array.indexes"> - <title>Array Index</title> - <para> - Arrays können - ähnlich der PHP-Syntax - auch über ihren Index - angesprochen werden. - </para> - <example> - <title>Zugriff über den Array Index</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('kontakte', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Bei folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -{$kontakte[0]}<br /> -{$kontakte[1]}<br /> -{* auch hier sind multidimensionale Arrays möglich *} -{$kontakte[0][0]}<br /> -{$kontakte[0][1]}<br /> -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - - <sect2 id="language.variables.objects"> - <title>Objekte</title> - <para> - Attribute von aus PHP zugewiesenen Objekten können über - das '->'-Symbol erreicht werden. - </para> - <example> - <title>Zugriff auf Objekt-Attribute</title> - <programlisting> -<![CDATA[ -name: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - Ausgabe: - </para> - <screen> -<![CDATA[ -name: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.example.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="language.config.variables"> - <title>Verwendung von Variablen aus Konfigurationsdateien</title> - <para> - Variablen, die aus einer Konfigurationsdatei geladen werden, referenziert man mit - umschliessenden '#'-Zeichen (Raute). - </para> -<example> - -<title>Konfigurationsvariablen</title> -<programlisting> -<html> -<title>{#seitenTitel#}</title> -<body bgcolor="{#bodyHintergrundFarbe#}"> -<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}"> -<tr bgcolor="{#reiheHintergrundFarbe#}"> - <td>Vornamen</td> - <td>Nachnamen</td> - <td>Adresse</td> -</tr> -</table> -</body> -</html></programlisting> -</example> - <para> - Variablen aus Konfigurationsdateien können erst verwendet werden, - wenn sie aus der Datei geladen wurden. Dieser Vorgang wird im Abschnitt - <command>config_load</command> weiter unten näher erläutert. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,171 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.11 Maintainer: andreas Status: ready --> -<sect1 id="language.variables.smarty"> - <title>Die reservierte {$smarty} Variable</title> - <para> - Die reservierte Variable {$smarty} wird verwendet, um auf spezielle - Template-Variablen zuzugreifen. Im Folgenden die Liste der - Variablen: - </para> - <sect2 id="language.variables.smarty.request"> - <title>Request-Variablen</title> - <para> - - Aud die <ulink - url="&url.php-manual;reserved.variables">Request-Variablen </ulink> - $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV and $_SESSION (siehe <link - linkend="variable.request.vars.order">$request_vars_order</link> - und <link - linkend="variable.request.use.auto.globals">$request_use_auto_globals</link> - ) kann wie folgt zugegriffen werden. - </para> - <example> - <title>Ausgabe der Requestvariablen (Anfragevariablen)</title> - <programlisting> -{* anzeigen der variable 'page' aus der URL oder dem FORM, welche mit GET übertragen wurde *} -{$smarty.get.page} - -{* anzeigen der variable 'page' welche mit POST übertragen wurde *} -{$smarty.post.page} - -{* anzeigen des cookies "benutzer" *} -{$smarty.cookies.benutzer} - -{* anzeigen der Server-Variable "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* anzeigen der Environment-Variable "PATH" *} -{$smarty.env.PATH} - -{* anzeigen der Session-Variable "id" *} -{$smarty.session.id} - -{* anzeigen der Variable "benutzer" aus dem $_REQUEST Array (Zusammenstellung von get/post/cookie/server/env) *} -{$smarty.request.benutzer} - </programlisting> - </example> - <note> - <para> - Aus historischen Gründen kann {$SCRIPT_NAME} verwendet werden, - allerdings ist {$smarty.server.SCRIPT_NAME} die empfohlene - Variante. - </para> - </note> - </sect2> - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - Die momentane Unix-Timestamp kann über {$smarty.now} angefragt - werden. Diese Zahl ist die Summe der verstrichenen Sekunden seit - Beginn der UNIX-Epoche (1. Januar 1970) und kann zur Anzeige - direkt dem <link - linkend="language.modifier.date.format">'date_format'-Modifikator - </link> übergeben werden. - </para> - <example> - <title>Verwendung von {$smarty.now}</title> - <programlisting> -<![CDATA[ -{* Verwendung des 'date_format'-Modifikators zur Anzeige der Zeit *} -{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - Hiermit kann auf PHP-Konstanten zugegriffen werden. Siehe auch <link - linkend="smarty.constants">smarty constants</link> - </para> - <example> - <title>Benutzung von {$smarty.const}</title> - <programlisting> -<![CDATA[ -{$smarty.const._MY_CONST_VAL} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - Auf die mit dem <link - linkend="language.function.capture">{capture}..{/capture}</link> - Konstrukt abgefangene Ausgabe kann via {$smarty} zugegriffen - werden. Ein Beispiel dazu finden Sie im Abschnitt zu <link - linkend="language.function.capture">capture</link>. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - {$smarty} kann dazu genutzt werde, um auf <link - linkend="language.config.variables">Config-Variablen</link> - zuzugreifen. {$smarty.config.foo} ist ein Synonym for {#foo#}. Im - Abschnitt <link - linkend="language.function.config.load">{config_load}</link> ist - ein Beispiel. - </para> - </sect2> - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}, {$smarty.foreach}</title> - <para> - {$smarty} wird auch verwendet, um auf Eigenschaften von <link - linkend="language.function.section">{section}</link> und <link - linkend="language.function.foreach">foreach</link> Schleifen - zuzugreifen. - </para> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Diese Variable enthält den Namen des gerade verarbeiteten - Templates. - </para> - </sect2> - - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - Diese Variable enthält die Smarty Versionsnummer mit der das - Template kompiliert wurde. - </para> - </sect2> - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}, {$smarty.rdelim}</title> - <para> - Diese Variablen dienen dazu den linken und rechten Trennzeichen - wortwörtlich auszugeben. Siehe auch <link - linkend="language.function.ldelim">{ldelim},{rdelim}</link>. - </para> - <para> - Siehe auch: - <link linkend="language.syntax.variables">Variables</link> and - <link linkend="language.config.variables">Config Variables</link> - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/getting-started.xml
Deleted
@@ -1,656 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.20 Maintainer: messju Status: ready --> -<part id="getting.started"> - <title>Erste Schritte</title> - <chapter id="what.is.smarty"> - <title>Was ist Smarty?</title> - <para> - Smarty ist eine Template-Engine für PHP. Genauer gesagt - erlaubt es die einfache Trennung von Applikations-Logik und - Design/Ausgabe. Dies ist vor allem wünschenswert, wenn der - Applikationsentwickler nicht die selbe Person ist wie der - Designer. Nehmen wir zum Beispiel eine Webseite die Zeitungsartikel - ausgibt. Der Titel, die Einführung, der Author und der Inhalt - selbst enthalten keine Informationen darüber wie sie - dargestellt werden sollen. Also werden sie von der Applikation an - Smarty übergeben, damit der Designer in den Templates mit - einer Kombination von HTML- und Template-Tags die Ausgabe - (Tabellen, Hintergrundfarben, Schriftgrössen, Stylesheets, - etc.) gestalten kann. Falls nun die Applikation eines Tages - angepasst werden muss, ist dies für den Designer nicht von - Belang, da die Inhalte immer noch genau gleich übergeben - werden. Genauso kann der Designer die Ausgabe der Daten beliebig - verändern, ohne dass eine Änderung der Applikation - vorgenommen werden muss. Somit können der Programmierer die - Applikations-Logik und der Designer die Ausgabe frei anpassen, ohne - sich dabei in die Quere zu kommen. - </para> - <para> - Was Smarty nicht kann: Smarty versucht nicht die gesamte Logik aus - dem Template zu verbannen. Solange die verwendete Logik - ausschließlich für die Ausgabe verwendet wird, kann sie auch - im Template eingebettet werden. Ein Tip: versuchen Sie - Applikations-Logik aus dem Template und Präsentations-Logik - aus der Applikation herauszuhalten. Nur so bleibt die Applikation - auf absehbere Zeit gut skalier- und wartbar. - </para> - <para> - Einer der einzigartigen Aspekte von Smarty ist die Kompilierung der - Templates. Smarty liest die Template-Dateien und generiert daraus - neue PHP-Skripte; von da an werden nur noch diese Skripte - verwendet. Deshalb müssen Templates nicht für jeden - Seitenaufruf performance-intensiv neu geparst werden und jedes - Template kann voll von PHP Compiler-Cache Lösungen - profitieren. (Zend, <ulink url="&url.zend;">&url.zend;</ulink>; - PHP Accelerator, <ulink - url="&url.ion-accel;">&url.ion-accel;</ulink>) - </para> - <para> - Ein paar Smarty Charakteristiken - </para> - <itemizedlist> - <listitem> - <para> - Sehr schnell. - </para> - </listitem> - <listitem> - <para> - Sehr effizient, da der PHP-Parser die 'schmutzige' Arbeit - übernimmt. - </para> - </listitem> - <listitem> - <para> - Kein Overhead durch Template-Parsing, nur einmaliges kompilieren. - </para> - </listitem> - <listitem> - <para> - Re-kompiliert nur gänderte Templates. - </para> - </listitem> - <listitem> - <para> - Sie können die Engine um <link - linkend="language.custom.functions">individuelle Funktionen</link> - und <link - linkend="language.modifiers">Variablen-Modifikatoren</link> - erweitern. - </para> - </listitem> - <listitem> - <para> - Konfigurierbare Syntax für <link - linkend="variable.left.delimiter">Template-Tags</link>: Sie - können {}, {{}}, <!--{}-->, etc. verwenden. - </para> - </listitem> - <listitem> - <para> - <link - linkend="language.function.if">'if/elseif/else/endif'-Konstrukte</link> - werden direkt dem PHP-Parser übergeben. Somit können {if - ...} Ausdrücke sowohl sehr einfach als auch sehr komplex sein. - </para> - </listitem> - <listitem> - <para> - Unbegrenzte Verschachtelung von <link - linkend="language.function.section">'section'</link>, 'if' und - anderen Blöcken. - </para> - </listitem> - <listitem> - <para> - Ermöglicht die direkte <link - linkend="language.function.php">Einbettung von - PHP-Code</link>. (Obwohl es weder benötigt noch empfohlen - wird, da die Engine einfach erweiterbar ist.) - </para> - </listitem> - <listitem> - <para> - Eingebauter <link linkend="caching">Caching-Support</link> - </para> - </listitem> - <listitem> - <para> - Beliebige <link linkend="template.resources">Template-Quellen</link> - </para> - </listitem> - <listitem> - <para> - Eigene <link - linkend="section.template.cache.handler.func">Cache-Handling - Funktionen</link> - </para> - </listitem> - <listitem> - <para> - <link linkend="plugins">Plugin</link> Architektur - </para> - </listitem> - </itemizedlist> - </chapter> - <chapter id="installation"> - <title>Installation</title> - <sect1 id="installation.requirements"> - <title>Anforderungen</title> - <para> - Smarty benötigt einen Webserver mit PHP >=4.0.6. - </para> - </sect1> - <sect1 id="installing.smarty.basic"> - <title>Basis Installation</title> - <note> - <title>Technische Bemerkung</title> - <para> - Dieser Leitfaden geht davon aus, dass Sie Ihr Webserver- und - PHP-Setup kennen und mit den Namenskonventionen für Dateien - und Verzeichnisse Ihres Betriebssystems vertraut sind. Im - Folgenden wird ein Unix-Dateisystem verwendet, stellen Sie also - sicher, dass sie die für Ihr Betriebssystem nötigen - Änderungen vornehmen. - </para> - <para> - Das Beispiel geht davon aus, dass '/php/includes' in Ihrem - PHP-'include_path' liegt. Konsultieren Sie das PHP-Manual - für weiterführende Informationen hierzu. - </para> - </note> - <para> - Installieren Sie als erstes die Smarty-Library Dateien (den - <filename class="directory">/libs/</filename>-Ordner der Smarty Distribution). - Diese Dateien sollten von Ihnen NICHT editiert und von allen Applikationen - verwendet werden. Sie werden nur erneuert, wenn Sie eine neue Version von - Smarty installieren. - </para> - <para>In the examples below the Smarty tarball has been unpacked to: - <itemizedlist> - <listitem><para> - <filename class="directory">/usr/local/lib/Smarty-v.e.r/</filename> - unter *nix-basierten Betriebsystemen</para></listitem> - <listitem><para> und - <filename class="directory">c:\webroot\libs\Smarty-v.e.r\</filename> - unter Windows-Umgebungen.</para></listitem> - </itemizedlist> - </para> - <note> - <title>Technische Bemerkung</title> - <para> - - Wir empfehlen keine Änderungen an den Smarty-Library Dateien - vorzunehmen. Dies macht ein mögliches Upgrade wesentlich - einfacher. Sie müssen diese Dateien auch nicht anpassen, um - Smarty zu konfigurieren! Benutzen Sie für diesen Zwecke eine - Instanz der Smarty-Klasse. - </para> - </note> - <para> - Folgende Library Dateien werden mit Smarty geliefert und werden benötigt: - </para> - <example> - <title>Benötigte Smarty-Library Dateien</title> - <screen> -<![CDATA[ -Smarty.class.php -Smarty_Compiler.class.php -Config_File.class.php -debug.tpl -/internals/*.php (alle) -/plugins/*.php (alle) -]]> - </screen> - </example> - <para> - Sie können diese Dateien entweder in Ihrem PHP-'include_path' - oder auch in irgend einem anderen Verzeichnis ablegen, solange die - <ulink url="&url.php-manual;define">Konstante</ulink> <link - linkend="constant.smarty.dir">SMARTY_DIR</link> auf den korrekten - Pfad zeigt. Im Folgenden werden Beispiele für beide - Fälle aufgezeigt. SMARTY_DIR <emphasis role="bold">muss in jedem - Fall </emphasis> am Ende einen Slash ("/", unter Windows ggf. einen - Backslash "\") enthalten. - </para> - <para> - So erzeugt man eine Instanz der Smarty-Klasse im PHP-Skript: - </para> - <example> - <title>Smarty Instanz erstellen:</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <para> - Versuchen Sie das Skript auszuführen. Wenn Sie eine - Fehlermeldung erhalten dass <filename>Smarty.class.php</filename> - nicht gefunden werden konnte, versuchen Sie folgendes: - </para> - - <example> - <title>Manuelles setzen der SMARTY_DIR-Konstanten</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix-Stil -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// Windows-Stil -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// Ein kleiner Hack der unter *nix und Windows funktioniert wenn Smarty -// in einem Verzeichnis 'includes/' unterhalb des Beispielskriptes liegt -define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>SMARTY_DIR manuell setzen</title> - <programlisting role="php"> -<![CDATA[ -<?php -define('SMARTY_DIR','/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR.'Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <example> - <title>Absoluter Pfad übergeben</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('/usr/local/lib/php/Smarty/Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <example> - <title>Library Verzeichnis dem Include-Pfad hinzufügen</title> - <programlisting role="php"> -<![CDATA[ -;;;;;;;;;;;;;;;;;;;;;;;;; -; Paths and Directories ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; *nix: "/path1:/path2" -include_path = ".:/usr/share/php:/usr/local/lib/Smarty-v.e.r/libs/" - -; Windows: "\path1;\path2" -include_path = ".;c:\php\includes;c:\webroot\libs\Smarty-v.e.r\libs\" -]]> -</programlisting> -</example> - -<example> - <title>Library Verzeichnis dem Include-Pfad mit - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> hinzufügen</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/'); - -// windows -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'c:/webroot/lib/Smarty-v.e.r/libs/'); -?> -]]> - </programlisting> - </example> - - <para> - Jetzt, wo die Library Dateien an ihrem Platz sind, wird es Zeit, - die Smarty Verzeichnisse zu erstellen. - </para> - <para> - Für unser Beispiel werden wir die Smarty Umgebung für - eine Gästebuch-Applikation konfigurieren. Wir verwenden den - Applikationsnamen nur, um die Verzeichnis-Struktur zu - verdeutlichen. Sie können die selbe Umgebung für alle - Ihre Applikationen verwenden indem Sie 'guestbook' durch dem Namen - Ihrer Applikation ersetzen. - </para> - <para> - Stellen Sie sicher, dass Sie die DocumentRoot Ihres Webservers - kennen. In unserem Beispiel lautet sie - '/web/www.domain.com/docs/'. - </para> - <para> - Die Smarty Verzeichnisse werden in den Klassen-Variablen <link - linkend="variable.template.dir">$template_dir</link>, <link - linkend="variable.compile.dir">$compile_dir</link>, <link - linkend="variable.config.dir">$config_dir</link> und <link - linkend="variable.cache.dir">$cache_dir</link> definiert. Die - Standardwerte sind: <filename - class="directory">templates</filename>, <filename - class="directory">templates_c</filename>, <filename - class="directory">configs</filename> und <filename - class="directory">cache</filename>. Für unser Beispiel legen - wir alle diese Verzeichnisse unter <filename - class="directory">/web/www.domain.com/smarty/guestbook/</filename> - an. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Wir empfehlen, diese Verzeichnisse ausserhalb der DocumentRoot - anzulegen, um mögliche Direktzugriffe zu verhindern. - </para> - </note> - <para> - In Ihrer DocumentRoot muss mindestens eine Datei liegen, die - für Browser zugänglich ist. Wir nennen dieses Skript - <filename>index.php</filename>, und legen es in das Verzeichnis - <filename class="directory">/guestbook/</filename> in unserer - DocumentRoot. - </para> - - <note> - <title>Technische Bemerkung</title> - <para> - Bequem ist es, den Webserver so zu konfigurieren, dass - <filename>index.php</filename> als Standard-Verzeichnis-Index - verwendet wird. Somit kann man das Skript direkt mit - 'http://www.domain.com/guestbook/' aufrufen. Falls Sie Apache - verwenden, lässt sich dies konfigurieren indem Sie - <filename>index.php</filename> als letzten Eintrag für - <emphasis>DirectoryIndex</emphasis> verwenden. (Jeder Eintrag - muss mit einem Leerzeichen abgetrennt werden). - </para> - </note> - - <para> - Die Dateistruktur bis jetzt: - </para> - - <example> - <title>Beispiel der Dateistruktur</title> - <screen> -<![CDATA[ -/usr/local/lib/php/Smarty/Smarty.class.php -/usr/local/lib/php/Smarty/Smarty_Compiler.class.php -/usr/local/lib/php/Smarty/Config_File.class.php -/usr/local/lib/php/Smarty/debug.tpl -/usr/local/lib/php/Smarty/plugins/*.php -/usr/local/lib/php/Smarty/core/*.php - -/web/www.example.com/smarty/guestbook/templates/ -/web/www.example.com/smarty/guestbook/templates_c/ -/web/www.example.com/smarty/guestbook/configs/ -/web/www.example.com/smarty/guestbook/cache/ - -/web/www.example.com/docs/guestbook/index.php -]]> - </screen> - </example> - - <note> - <title>Technische Bemerkung</title> - <para> - Falls Sie kein Caching und keine Konfigurationsdateien verwenden, - ist es nicht erforderlich die Verzeichnisse '$config_dir' und - '$cache_dir' zu erstellen. Es wird jedoch trotzdem empfohlen, da - diese Funktionalitäten eventuell später genutzt werden - sollen. - </para> - </note> - <para> - Smarty benötigt <emphasis - role="bold">Schreibzugriff</emphasis> auf die Verzeichnisse <link - linkend="variable.compile.dir">$compile_dir</link> und <link - linkend="variable.cache.dir">$cache_dir</link>. Stellen Sie also - sicher, dass der Webserver-Benutzer (normalerweise Benutzer - 'nobody' und Gruppe 'nogroup') in diese Verzeichnisse schreiben - kann. (In OS X lautet der Benutzer normalerweise 'www' und ist in - der Gruppe 'www'). Wenn Sie Apache verwenden, können Sie in - der httpd.conf (gewöhnlich in '/usr/local/apache/conf/') - nachsehen, unter welchem Benutzer Ihr Server läuft. - </para> - <example> - <title>Dateirechte einrichten</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/smarty/guestbook/templates_c/ -chmod 770 /web/www.example.com/smarty/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/ -chmod 770 /web/www.example.com/smarty/guestbook/cache/ -]]> - </programlisting> - </example> - - <note> - <title>Technische Bemerkung</title> - <para> - 'chmod 770' setzt ziemlich strenge Rechte und erlaubt nur dem - Benutzer 'nobody' und der Gruppe 'nobody' Lese-/Schreibzugriff - auf diese Verzeichnisse. Falls Sie die Rechte so setzen - möchten, dass auch andere Benutzer die Dateien lesen - können (vor allem für Ihren eigenen Komfort), so - erreichen Sie dies mit 775. - </para> - </note> - - <para> - Nun müssen wir die <filename>index.tpl</filename> Datei - erstellen, welche Smarty laden soll. Die Datei wird in Ihrem - <link linkend="variable.template.dir">$template_dir</link> - abgelegt. - </para> - - <example> - <title>Editieren von /web/www.example.com/smarty/guestbook/templates/index.tpl</title> - <screen> -<![CDATA[ - -{* Smarty *} - -Hallo {$name}, herzlich Willkommen! -]]> - </screen> - </example> - - <note> - <title>Technische Bemerkung</title> - <para> - {* Smarty *} ist ein <link - linkend="language.syntax.comments">Template-Kommentar</link>. Der - wird zwar nicht benötigt, es ist jedoch eine gute Idee jedes - Template mit einem Kommentar zu versehen. Dies erleichtert die - Erkennbarkeit des Templates, unabhängig von der verwendeten - Dateierweiterung. (Zum Beispiel für Editoren die - Syntax-Highlighting unterstützen.) - </para> - </note> - - <para> - Als nächstes editieren wir die Datei - <filename>index.php</filename>. Wir erzeugen eine Smarty-Instanz, - weisen dem Template mit <link linkend="api.assign">assign()</link> - eine Variable zu und geben <filename>index.tpl</filename> mit - <link linkend="api.display">display</link> aus. - </para> - - <example> - <title>Editieren von /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -define('SMARTY_DIR','/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR.'Smarty.class.php'); - -$smarty = new Smarty(); - -$smarty->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -//** Die folgende Zeile "einkommentieren" um die Debug-Konsole anzuzeigen -//$smarty->debugging = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <note> - <title>Technische Bemerkung</title> - <para> - In unserem Beispiel verwenden wir durchwegs absolute Pfadnamen zu - den Smarty-Verzeichnissen. Falls <filename - class="directory">/web/www.example.com/smarty/guestbook/</filename> - in Ihrem PHP-'include_path' liegt, wäre dies nicht - nötig. Es ist jedoch effizienter und weniger - fehleranfällig die Pfade absolut zu setzen. Und es - garantiert, dass Smarty die Templates aus dem geplanten - Verzeichnis lädt. - </para> - </note> - - <para> - Wenn Sie <filename>index.php</filename> nun in Ihrem Webbrowser - öffnen, sollte 'Hallo, Ned, herzlich Willkommen!' ausgegeben werden. - </para> - <para> - Die Basis-Installation von Smarty wäre somit beendet. - </para> - </sect1> - <sect1 id="installing.smarty.extended"> - <title>Erweiterte Konfiguration</title> - - <para> - Dies ist eine Weiterführung der <link - linkend="installing.smarty.basic">Basis Installation</link>, bitte - lesen Sie diese zuerst! - </para> - <para> - Ein flexiblerer Weg um Smarty aufzusetzen ist, die Klasse zu - erweitern und eine eigene Smarty-Umgebung zu - initialisieren. Anstatt immer wieder die Verzeichnisse zu - definieren, kann diese Aufgabe auch in einer einzigen Datei - erledigt werden. Beginnen wir, indem wir ein neues Verzeichnis - namens '/php/includes/guestbook/' erstellen und eine Datei namens - 'setup.php' darin anlegen. - </para> - - <example> - <title>Editieren von /php/includes/guestbook/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Smarty Library Dateien laden -define('SMARTY_DIR','/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR.'Smarty.class.php'); - -// ein guter Platz um Applikations spezifische Libraries zu laden -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function Smarty_GuestBook() - { - // Konstruktor. Diese Werte werden für jede Instanz automatisch gesetzt - - $this->Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name','Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <note> - <title>Technische Bemerkung</title> - <para> - In unserem Beispiel werden die Library Dateien ausserhalb der - DocumentRoot abgelegt. Diese Dateien könnten sensitive - Informationen enthalten, die wir nicht zugänglich machen - möchten. Deshalb legen wir alle Library Dateien in - '/php/includes/guestbook/' ab und laden sie in unserem 'setup.php' - Skript, wie Sie im oben gezeigten Beispiel sehen können. - </para> - </note> - - <para> - Nun passen wir <filename>index.php</filename> an, um 'setup.php' - zu verwenden: - </para> - - <example> - <title>Editieren von /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook; -$smarty->assign('name','Ned'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - </example> - <para> - Wie Sie sehen können, ist es sehr einfach eine Instanz von - Smarty zu erstellen. Mit Hilfe von Smarty_GuestBook werden alle - Variablen automatisch initialisiert. - </para> - - </sect1> - - </chapter> -</part> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/language-defs.ent
Deleted
@@ -1,6 +0,0 @@ -<!-- $Revision: 1847 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> -<!ENTITY SMARTYManual "Smarty - die kompilierende PHP Template-Engine"> -<!ENTITY SMARTYDesigners "Smarty für Template Designer"> -<!ENTITY SMARTYProgrammers "Smarty für Programmierer"> -<!ENTITY Appendixes "Anhänge">
View file
Smarty-3.1.13.tar.gz/documentation/de/language-snippets.ent
Deleted
@@ -1,29 +0,0 @@ -<!-- $Revision: 2232 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> - -<!ENTITY note.parameter.merge '<note> - <title>Technische Bemerkung</title> - <para> - Der <parameter>merge</parameter> Parameter berüksichtigt Array - Keys. Das bedeutet, dass numerisch indizierte Arrays sich - gegenseitig überschreiben können, oder die Keys nicht - sequentiell ausgegeben werden. Dies, im Gegensatz zur PHP Funktion - <ulink url="&url.php-manual;array_merge">array_merge()</ulink>, die - numerische Keys neu sortiert. - </para> -</note>'> - -<!ENTITY parameter.compileid '<para> - Als optionaler dritter Parameter, können sie die - <parameter>$compile_id</parameter> angeben. Dies ist sinnvoll, wenn - Sie verschiedene Versionen der komipilerten Templates für - verschiedene Sprachen unterhalten wollen. Weiter ist dieser Parameter - nützlich, wenn Sie mehrere - <link linkend="variable.template.dir">$template_dir</link> Verzeichnisse, - aber nur ein <link linkend="variable.compile.dir">$compile_dir</link> - nutzen. Setzen Sie <parameter>$compile_id</parameter> für jedes - Template Verzeichnis, da gleichnamige Templates sich sonst - überschreiben. Sie können die - <link linkend="variable.compile.id">$compile_id</link> auch nur einmal, - global setzen. -</para>'>
View file
Smarty-3.1.13.tar.gz/documentation/de/livedocs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 2233 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - -<!ENTITY livedocs.author 'Autoren:<br />'> -<!ENTITY livedocs.editors 'Editiert von:<br />'> -<!ENTITY livedocs.copyright 'Copyright © %s - %s'> -<!ENTITY livedocs.published 'Publiziert am %s'>
View file
Smarty-3.1.13.tar.gz/documentation/de/preface.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <preface id="preface"> - <title>Vorwort</title> - <para> - Die Frage, wie man die Applikations-Logik eines PHP-Scriptes vom - Layout trennt, ist unzweifelhaft eines der am häfigsten - diskutierten Themen. Da PHP als "in HTML eingebettete - Scripting-Sprache" angepriesen wird, ergibt sich nach einigen - Projekten in denen man HTML und PHP gemischt hat schnell die Idee, - Funktionalität und Darstellung zu trennen. Dazu kommt, dass in - vielen Firmen Applikationsentwickler und Designer nicht die selbe - Person sind. In Konsequenz beginnt die Suche nach einer - Template-Lösung. - </para> - <para> - Als Beispiel: In unserer Firma funktioniert die Entwicklung einer - Applikation wie folgt: Nachdem die Spezifikationen erstellt sind, - entwickelt der Interface Designer einen Prototypen des Interfaces - und übergibt dieses dem Programmierer. Der Programmierer - implementiert die Geschäftslogik in PHP und verwendet den - Interface-Prototypen zur Erstellung eines Template-Skeletts. - Danach übergibt der Programmierer die Templates dem - HTML/Webseiten-Designer welcher ihnen den letzten Schliff - verleiht. Das Projekt kann mehrfach zwischen dem Programmieren und - dem Designer ausgetauscht werden. Deshalb ist es wichtig, dass die - Trennung von Logik und Design klar stattfindet. Der Programmierer - will sich normalerweise nicht mit HTML herumschlagen müssen - und möchte auch nicht, dass der Designer seinen PHP-Code - verändert. Designer selbst benötigen - Konfigurationsdateien, dynamische Blöcke und andere Interface - spezifische Eigenheiten, möchten aber auch nicht direkt mit - PHP in Berührung kommen. - </para> - <para> - Die meisten Template-Engines die heutzutage angeboten werden, - bieten eine rudimentäre Möglichkeit Variablen in einem - Template zu ersetzen und beherschen eine eingeschränkte - Funktionalität für dynamische Blöcke. Unsere - Anforderungen forderten jedoch ein wenig mehr. Wir wollten - erreichen, dass sich Programmierer überhaupt nicht um HTML - Layouts kümmern müssen. Dies war aber fast - unumgänglich. Wenn ein Designer zum Beispiel alternierende - Farben in einer Tabelle einsetzen wollte, musste dies vorhergehend - mit dem Programmierer abgesprochen werden. Wir wollten weiter, dass - dem Designer Konfigurationsdateien zur Verfügung stünden, - aus denen er Variablen für seine Templates extrahieren - kann. Die Liste ist endlos. - </para> - <para> - Wir begannen 1999 mit der Spezifikation der Template - Engine. Nachdem dies erledigt war, fingen wir an eine Engine in C - zu schreiben, die - so hofften wir - in PHP eingebaut - würde. Nach einer hitzigen Debatte darüber was eine - Template Engine können sollte und was nicht, und nachdem wir - feststellen mussten, dass ein paar komplizierte technische Probleme - auf uns zukommen würden, entschlossen wir uns die Template - Engine in PHP als Klasse zu realisieren, damit sie von jederman - verwendet und angepasst werden kann. So schrieben wir also eine - Engine, die wir <productname>SmartTemplate</productname> nannten - (anm: diese Klasse wurde nie veröffentlicht). SmartTemplate - erlaubte uns praktisch alles zu tun was wir uns vorgenommen hatten: - normale Variablen-Ersetzung, Möglichkeiten weitere Templates - einzubinden, Integration von Konfigurationsdateien, Einbetten von - PHP-Code, limitierte 'if'-Funktionalität und eine sehr robuste - Implementation von dynamischen Blöcken die mehrfach - verschachtelt werden konnten. All dies wurde mit Regulären - Ausdrücken erledigt und der Sourcecode wurde ziemlich - unübersichtlich. Für grössere Applikationen war die - Klasse auch bemerkenswert langsam, da das Parsing bei jedem Aufruf - einer Seite durchlaufen werden musste. Das grösste Problem - aber war, dass der Programmierer das Setup, die Templates und - dynamische Blöcke in seinem PHP-Skript definieren musste. Die - nächste Frage war: wie können wir dies weiter - vereinfachen? - </para> - <para> - Dann kam uns die Idee, aus der schließlich Smarty wurde. Wir wussten - wie schnell PHP-Code ohne den Overhead des Template-Parsing ist. Wir wussten - ebenfalls wie pedantisch PHP aus Sicht eines durchschnittlichen - Designers ist und dass dies mit einer einfacheren Template-Syntax - verborgen werden kann. Was wäre also, wenn wir diese - beiden Stärken vereinten? Smarty war geboren... - </para> - </preface>
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> - <chapter id="advanced.features"> - <title>Advanced Features</title> -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; -&programmers.advanced-features.section-template-cache-handler-func; -&programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.7 Maintainer: andreas Status: ready --> -<sect1 id="advanced.features.objects"> - <title>Objekte</title> - <para> - Smarty erlaubt es, auf <ulink - url="&url.php-manual;object">PHP-Objekte</ulink> durch das Template - zuzugreifen. Dafür gibt es zwei Wege. Der erste ist, Objekte zu - <link linkend="api.register.object">registrieren</link> und wie auf - eine <link linkend="language.custom.functions">eigene - Funktion</link> zuzugreifen. Der andere Weg ist, das Objekt dem - Template mit <link linkend="api.assign">assign()</link> zuzuweisen - und darauf wie auf andere Variablen zuzugreifen. Die erste Methode - hat eine nettere Template Syntax und ist sicherer da der Zugriff auf - ein registriertes Objekt mit Sicherheitseinstellungen kontrolliert - werden kann. Der Nachteil ist, dass über registrierte Objekte nicht - in einer Schlaufe gelaufen werden kann und, dass es nicht möglich - ist, Arrays registrierten Objekten anzulegen. Welchen Weg Sie - einschlagen wird von Ihren Bedürfnissen definiert, die erste Methode - ist jedoch zu bevorzugen. - </para> - <para> - Wenn die <link - linkend="variable.security">Sicherheitsfunktionen</link> - eingeschaltet sind, können keine private Methoden (solche die einen - '_'-Prefix tragen) aufgerufen werden. Wenn eine Methode und eine - Eigeschaft mit dem gleichen Namen existieren wird die Methode - verwendet. - </para> - <para> - Sie können den Zugriff auf Methoden und Eigenschaften - einschränken indem Sie sie als Array als dritten - Registrationsparameter übergeben. - </para> - <para> - Normalerweise werden Parameter welche einem Objekt via Template - übergeben werden genau so übergeben wie dies bei normalen <link - linkend="language.custom.functions">eigenen Funktionen</link> der - Fall ist. Das erste Objekt ist ein assoziatives Array und das - zweite das Smarty Objekt selbst. Wenn Sie die Parameter einzeln - erhalten möchten können Sie den vierten Parameter auf - <literal>false</literal> setzen. - </para> - <para> - Der optionale fünfte Parameter hat nur einen Effekt wenn - <parameter>format</parameter> = <literal>true</literal> ist und eine - Liste von Methoden enthält die als Block verarbeitet werden sollen. - Das bedeutet, dass solche Methoden ein schliessendes Tag im Template - enthalten müssen - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) und die - Parameter zu den Funktionen die selbe Syntax haben wie - block-function-plugins: sie erhalten also die 4 Parameter - <parameter>$params</parameter>, - <parameter>$content</parameter>, - <parameter>&$smarty</parameter> und - <parameter>&$repeat</parameter>, - und verhalten sich auch sonst wie block-function-plugins. - </para> - <example> - <title>registierte oder zugewiesene Objekte verwenden</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Das Objekt - -class My_Object { - function meth1($params, &$smarty_obj) { - return "meine meth1"; - } -} - -$myobj = new My_Object; -// Objekt registrieren (referenz) -$smarty->register_object("foobar",$myobj); -// Zugriff auf Methoden und Eigeschaften einschränken -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// wenn wir das traditionelle Parameterformat verwenden wollen, übergeben wir false für den Parameter format -$smarty->register_object("foobar",$myobj,null,false); - -// Objekte zuweisen (auch via Referenz möglich) -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Und hier das dazugehörige index.tpl: - </para> - <programlisting> -<![CDATA[ -{* Zugriff auf ein registriertes objekt *} -{foobar->meth1 p1="foo" p2=$bar} - -{* Ausgabe zuweisen *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -ausgabe war: {$output} - -{* auf unser zugewiesenes Objekt zugreifen *} -{$myobj->meth1("foo",$bar)} -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="api.register.object">register_object()</link> und <link - linkend="api.assign">assign()</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="advanced.features.outputfilters"> - <title>Ausgabefilter</title> - <para> - Wenn ein Template mit 'display()' oder 'fetch()' benutzt wird, kann die - Ausgabe durch verschieden Ausgabefilter geschleust werden. Der Unterschied zu - 'post'-Filtern ist, dass Ausgabefilter auf die durch 'fetch()' oder - 'display()' erzeugte Ausgabe angewendet werden, 'post'-Filter aber auf das Kompilat vor - seiner Speicherung im Dateisystem. - </para> - - <para> - Ausgabefilter können auf verschiede Arten - geladen werden. Man kann sie <link linkend="api.register.prefilter">registrieren</link>, - aus dem Plugin-Verzeichnis mit <link linkend="api.load.filter">load_filter()</link> laden - oder <link linkend="variable.autoload.filters">$autoload_filters</link> verwenden. - Smarty übergibt der Funktion als ersten Parameter die Template-Ausgabe und erwartet - als Rückgabewert die bearbeitete Ausgabe. - </para> - <example> - <title>Ausgabefilter verwenden</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// fügen Sie folgende Zeilen in Ihre Applikation ein -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - - -// Ausgabefilter registrieren -$smarty->register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// von nun an erhalten alle ausgegebenen e-mail Adressen einen -// einfach Schutz vor Spambots. -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="advanced.features.postfilters"> - <title>Postfilter</title> - <para> - Template Postfilter sind Filter, welche auf das Template nach dessen Kompilierung - angewendet werden. Postfilter können auf verschiedene Arten - geladen werden. Man kann sie <link linkend="api.register.prefilter">registrieren</link>, - aus dem Plugin-Verzeichnis mit <link linkend="api.load.filter">load_filter()</link> laden - oder <link linkend="variable.autoload.filters">$autoload_filters</link> verwenden. - Smarty übergibt der Funktion als ersten Parameter den Template-Quellcode und erwartet - als Rückgabewert den bearbeiteten Quellcode. - </para> - <example> - <title>Template Postfilter verwenden</title> - <programlisting> -<![CDATA[ -<?php - -// fügen Sie folgende Zeilen in Ihre Applikation ein -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Created by Smarty! -->\n\" ?>\n".$tpl_source; -} - -// registrieren Sie den Postfilter -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> - -{* kompiliertes Smarty Template 'index.tpl' *} -<!-- Created by Smarty! --> -{* Rest des Template Inhalts... *} -]]> - </programlisting> - </example> - <para> - Sie auch <link - linkend="api.register.postfilter">register_postfilter()</link>, - <link linkend="advanced.features.prefilters">Prefilter</link> und - <link linkend="api.load.filter">load_filter()</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<sect1 id="advanced.features.prefilters"> - <title>Prefilter</title> - <para> - Template Prefilter sind Filter, welche auf das Template vor dessen Kompilierung - angewendet werden. Dies ist nützlich, um zum Beispiel Kommentare zu entfernen - oder um den Inhalt des Templates zu analysieren. Prefilter können auf verschiedene - Arten geladen werden. Man kann sie <link linkend="api.register.prefilter">registrieren</link>, - aus dem Plugin-Verzeichnis mit <link linkend="api.load.filter">load_filter()</link> laden - oder <link linkend="variable.autoload.filters">$autoload_filters</link> verwenden. - Smarty übergibt der Funktion als ersten Parameter den Template-Quellcode und erwartet - als Rückgabewert den bearbeiteten Quellcode. - </para> - <example> - <title>Template Prefilter verwenden</title> - <para> - Dieser Prefiler entfernt alle Kommentare aus dem Template-Quelltext - </para> - <programlisting> -<![CDATA[ -<?php - -// fügen Sie folgende Zeilen in Ihre Applikation ein -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace("/<!--#.*-->/U",'',$tpl_source); -} - -// registrieren Sie den Prefilter -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> - -{* Smarty Template 'index.tpl' *} - -<!--# diese Zeile wird vom Prefilter entfernt--> -]]> - </programlisting> - </example> - <para> - Sie auch <link - linkend="api.register.prefilter">register_prefilter()</link>, - <link linkend="advanced.features.postfilters">Postfilter</link> und - <link linkend="api.load.filter">load_filter()</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<sect1 id="section.template.cache.handler.func"> - <title>Cache Handler Funktion</title> - <para> - Als Alternative zum normalen dateibasierten Caching-Mechanismus können Sie - eine eigene Cache-Handler Funktion zum lesen, schreiben und löschen von - Cache-Dateien definieren. - </para> - <para> - Schreiben Sie eine Funktion in Ihrer Applikation, die Smarty als - Cache-Handler verwenden soll und weisen Sie deren Name der Variable - <link linkend="variable.cache.handler.func">$cache_handler_func</link> zu. - Smarty wird von da an Ihre Funktion zur Bearbeitung des Caches verwenden. - Als erster Parameter wird die 'action' mit einem der folgendende Werte - übergeben: 'read', 'write' und 'clear'. Als zweiter Parameter - wird das Smarty-Objekt übergeben, als dritter der gecachte Inhalt. Bei einem - 'write' übergibt Smarty den gecachten Inhalt, bei 'read' übergibt Smarty die - Variable als Referenz und erwartet, dass Ihre Funktion die Inhalte zuweist. - Bei 'clear' können Sie eine dummy-Variable übergeben. Als vierter Parameter - wird der Template-Name übergeben (verwendet bei 'write'/'read'), als fünfter - Parameter die 'cache_id' (optional) und als sechster die 'compile_id' (auch optional). - </para> - <para> - Der letzte Parameter (<parameter>$exp_time</parameter>) wurde in - Smarty-2.6.0 hinzugefügt. - </para> - <example> - <title>Beispiel mit einer MySQL Datenbank als Datenquelle</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - -Beispiel Anwendung: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -die Datenbank hat folgendes Format: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) -{ - - // Datenbank Host, Benutzer und Passwort festlegen - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // enmalige 'cache_id' erzeugen - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - - // Cache aus der Datenbank lesen - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_contents = gzuncompress($row["CacheContents"]); - } else { - $cache_contents = $row["CacheContents"]; - } - $return = $results; - break; - - case 'write': - - // Cache in Datenbank speichern - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - - // Cache Informationen löschen - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - - // alle löschen - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - - // Fehler, unbekannte 'action' - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,229 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="template.resources"> - <title>Ressourcen</title> - <para> - Ein Template kann aus verschiedenen Quellen bezogen werden. Wenn Sie - ein Template mit 'display()' ausgeben, die Ausgabe mit 'fetch()' - in einer Variablen speichern oder innnerhalb eines Template ein - weiteres Template einbinden, müssen Sie den Ressourcen-Typ, - gefolgt von Pfad und Template-Namen angeben. Wenn kein Resourcetyp angegeben - wird, wird <link linkend="variable.default.resource.type">$default_resource_type</link> - verwendet. - </para> - <sect2 id="templates.from.template.dir"> - <title>Templates aus dem '$template_dir'</title> - <para> - Templates aus dem '$template_dir' benötigen normalerweise keinen Ressourcen-Typ, - es wird jedoch empfohlen 'file:' zu verwenden. Übergeben Sie einfach den Pfad, - in dem sich das Template relativ zu '$template_dir' befindet. - </para> - <example> - <title>Templates aus '$template_dir' verwenden</title> - <programlisting> - - // im PHP-Skript - $smarty->display("index.tpl"); - $smarty->display("admin/menu.tpl"); - $smarty->display("file:admin/menu.tpl"); // entspricht der vorigen Zeile - - - {* im Smarty Template *} - {include file="index.tpl"} - {include file="file:index.tpl"} {* entspricht der vorigen Zeile *}</programlisting> - </example> - </sect2> - <sect2 id="templates.from.any.dir"> - <title>Templates aus beliebigen Verzeichnissen</title> - <para> - Templates ausserhalb von '$template_dir' benötigen den 'file:' Ressourcen-Typ, - gefolgt von absolutem Pfadnamen und Templatenamen. - </para> - <example> - <title>Templates aus beliebigen Verzeichnissen benutzen</title> - <programlisting> - - // im PHP-Skript - $smarty->display("file:/export/templates/index.tpl"); - $smarty->display("file:/path/to/my/templates/menu.tpl"); - - - {* im Smarty Template *} - {include file="file:/usr/local/share/templates/navigation.tpl"}</programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Windows Dateipfade</title> - <para> - Wenn Sie auf einer Windows-Maschine arbeiten, enthalten absoluten Dateipfade - normalerweise den Laufwerksbuchstaben (C:). Stellen Sie sicher, - dass alle Pfade den Ressourcen-Typ 'file:' haben, um Namespace-Konflikten - vorzubeugen. - </para> - <example> - <title>Templates aus Windows Dateipfaden verwenden</title> - <programlisting> - - // im PHP-Skript - $smarty->display("file:C:/export/templates/index.tpl"); - $smarty->display("file:F:/path/to/my/templates/menu.tpl"); - - - {* im Smarty Template *} - {include file="file:D:/usr/local/share/templates/navigation.tpl"}</programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>Templates aus anderen Quellen</title> - <para> - Sie können Templates aus jeder für PHP verfügbaren Datenquelle beziehen: - Datenbanken, Sockets, LDAP, usw. Dazu müssen sie nur ein - Ressource-Plugin schreiben und registrieren. - </para> - - <para> - Konsultieren Sie den Abschnitt über <link linkend="plugins.resources">Ressource-Plugins</link> - für mehr Informationen über die Funktionalitäten, die ein derartiges Plugin bereitstellen muss. - </para> - - <note> - <para> - Achtung: Sie können die interne <literal>file</literal> Ressource nicht - überschreiben. Es steht Ihnen jedoch frei, ein Plugin zu schreiben, - das die gewünschte Funktionalität implementiert und es als alternativen - Ressource-Typ zu registrieren. - </para> - </note> - <example> - <title>Eigene Quellen verwenden</title> - <programlisting> - - // im PHP-Skript - - - // definieren Sie folgende Funktion in Ihrer Applikation - function db_get_template ($tpl_name, &tpl_source, &$smarty_obj) - { - // Datenbankabfrage um unser Template zu laden, - // und '$tpl_source' zuzuweisen - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } - } - - function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) - { - - // Datenbankabfrage um '$tpl_timestamp' zuzuweisen - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } - } - - function db_get_secure($tpl_name, &$smarty_obj) - { - - // angenommen alle Templates sind sicher - return true; - } - - function db_get_trusted($tpl_name, &$smarty_obj) - { - - // wird für Templates nicht verwendet - } - - - // Ressourcen-Typ 'db:' registrieren - $smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - - - // Ressource im PHP-Skript verwenden - $smarty->display("db:index.tpl"); - - - {* Ressource in einem Smarty Template verwenden *} - {include file="db:/extras/navigation.tpl"}</programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Standard Template-Handler</title> - <para> - Sie können eine Funktion definieren, die aufgerufen wird, - wenn ein Template nicht aus der angegeben Ressource geladen werden konnte. - Dies ist z. B. nützlich, wenn Sie fehlende Templates on-the-fly - generieren wollen. - </para> - <example> - <title>Standard Template-Handler verwenden</title> - <programlisting> - <?php - - // fügen Sie folgende Zeilen in Ihre Applikation ein - - function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) - { - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - - // erzeuge Template-Datei, gib Inhalte zurück - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name, $template_source); - return true; - } - } else { - - // keine Datei - return false; - } - } - - - // Standard Handler definieren - $smarty->default_template_handler_func = 'make_template'; - ?></programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: andreas Status: ready --> -<chapter id="api.functions"> - <title>Methoden der Klasse Smarty</title> -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>append_by_ref (Referenz anhängen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um an Template-Variablen Werte via Referenz (pass by reference) anstatt via Kopie - anzuhängen. Konsultieren Sie das PHP-Manual zum Thema 'variable referencing' - für weitere Erklärungen. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - 'append_by_ref()' ist effizienter als 'append()', da keine Kopie der Variable - erzeugt, sondern auf die Variable im Speicher referenziert wird. Beachten Sie - dabei, dass eine nachträgliche änderung Original-Variable auch die zugewiesene Variable - ändert. PHP5 wird die Referenzierung automatisch übernehmen, diese - Funktion dient als Workaround. - </para> - </note> - ¬e.parameter.merge; - <example> - <title>append_by_ref (via Referenz anhängen)</title> - <programlisting> -<![CDATA[ -<?php -// Namen/Wert-Paare übergeben -$smarty->append_by_ref("Name", $myname); -$smarty->append_by_ref("Address", $address); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-append.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<refentry id="api.append"> - <refnamediv> - <refname>append (anhängen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um an Template-Variablen weitere Daten anzuhängen. Sie - können entweder ein Namen/Wert-Paar oder assoziative Arrays, - die mehrere Namen/Wert-Paare enthalten, übergeben. - </para> - <example> - <title>append (anhängen)</title> - <programlisting> -<![CDATA[ -<?php -// Namen/Wert-Paare übergeben -$smarty->append("Name", "Fred"); -$smarty->append("Address", $address); - -// assoziatives Array übergeben -$smarty->append(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assign_by_ref (Referenz zuweisen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Weist einen Wert via Referenz zu, anstatt eine Kopie zu machen. - Konsultieren Sie das PHP-Manual zum Thema 'variable referencing' für weitere Erklärungen. - </para> - <note> - <title>Technical Note</title> - <para> - 'assign_by_ref()' ist effizienter als 'assign()', da keine Kopie der Variable - erzeugt wird, sondern auf die Variable im Speicher referenziert wird. Beachten Sie - dabei, dass eine nachträgliche änderung Original-Variable auch die zugewiesene Variable - ändert. PHP5 wird die Referenzierung automatisch übernehmen, diese - Funktion dient als Workaround. - </para> - </note> - <example> - <title>assign_by_ref (via Referenz zuweisen)</title> - <programlisting> -<![CDATA[ -<?php -// Namen/Wert-Paare übergeben -$smarty->assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-assign.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.assign"> - <refnamediv> - <refname>assign</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um einem Template Werte zuzuweisen. Sie können - entweder Namen/Wert-Paare oder ein assoziatives Array - mit Namen/Wert-Paaren übergeben. - </para> - <example> - <title>assign</title> - <programlisting> -<![CDATA[ -<?php -// Namen/Wert-Paare übergeben -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// assoziatives Array mit Namen/Wert-Paaren übergeben -$smarty->assign(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clear_all_assign (alle Zuweisungen löschen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <para> - Löscht die Werte aller zugewiesenen Variablen. - </para> - <example> - <title>clear_all_assign (alle Zuweisungen löschen)</title> - <programlisting> -<![CDATA[ -<?php -// lösche alle zugewiesenen Variablen -$smarty->clear_all_assign(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clear_all_cache (Cache vollständig leeren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Leert den gesamten Template-Cache. Als optionaler Parameter kann ein - Mindestalter in Sekunden angegeben werden, das die einzelne Datei haben - muss, bevor sie gelöscht wird. - </para> - <example> - <title>clear_all_cache (Cache vollständig leeren)</title> - <programlisting> -<![CDATA[ -<?php -// leere den gesamten cache -$smarty->clear_all_cache(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clear_assign (lösche Zuweisung)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Löscht den Wert einer oder mehrerer (übergabe als Array) zugewiesener Variablen. - </para> - <example> - <title>clear_assign (lösche Zuweisung)</title> - <programlisting> -<![CDATA[ -<?php -// lösche eine einzelne Variable -$smarty->clear_assign("Name"); - -// lösche mehrere Variablen -$smarty->clear_assign(array("Name", "Address", "Zip")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clear_cache (leere Cache)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Löscht den Cache eines bestimmten Templates. Falls Sie mehrere - Caches für ein Template verwenden, können Sie als zweiten Parameter - die 'cache_id' des zu leerenden Caches übergeben. Als dritten Parameter - können sie die 'compile_id' angeben. Sie können Templates auch - gruppieren und dann als Gruppe aus dem Cache löschen. Sehen sie dazu den Abschnitt über - <link linkend="caching">caching</link>. Als vierten Parameter können Sie - ein Mindestalter in Sekunden angeben, das ein Cache aufweisen muss, - bevor er gelöscht wird. - </para> - <example> - <title>clear_cache (Cache leeren)</title> - <programlisting> -<![CDATA[ -<?php -// Cache eines Templates leeren -$smarty->clear_cache("index.tpl"); - -// leere den Cache einer bestimmten 'cache-id' eines mehrfach-gecachten Templates -$smarty->clear_cache("index.tpl", "CACHEID"); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clear_compiled_tpl (kompiliertes Template löschen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Löscht die kompilierte Version des angegebenen Templates. Falls - kein Template-Name übergeben wird, werden alle kompilierten - Templates gelöscht. Diese Funktion ist für fortgeschrittene Benutzer. - </para> - <example> - <title>clear_compiled_tpl (kompiliertes Template löschen)</title> - <programlisting> -<![CDATA[ -<?php -// ein bestimmtes kompiliertes Template löschen -$smarty->clear_compiled_tpl("index.tpl"); - -// das gesamte Kompilier-Verzeichnis löschen -$smarty->clear_compiled_tpl(); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.clear.config"> - <refnamediv> - <refname>clear_config</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Löscht alle zugewiesenen Konfigurations-Variablen. Wenn der Variablenname übergeben wird, wird nur diese Variable gelöscht. - </para> - <example> - <title>clear_config</title> - <programlisting role="php"> -<![CDATA[ -<?php -// alle config-variablen löschen -$smarty->clear_config(); - -// eine löschen -$smarty->clear_config('foobar'); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.config.load"> - <refnamediv> - <refname>config_load</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Lädt die Konfigurationsdatei <parameter>file</parameter> und weist die Daten dem - Template zu. Dies funktioniert identisch wie <link linkend="language.function.config.load">config_load</link>. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Seit Smarty 2.4.0 bleiben Variablen während fetch() und display() Aufrufen erhalten. Variablen, die mit config_load() geladen werden sind immer global deklariert. Konfigurationsdateien werden für eine schnellere Ausgabe ebenfalls kompiliert, und halten sich an die <link linkend="variable.force.compile">force_compile</link> und <link linkend="variable.compile.check">compile_check</link> Konfiguration. - </para> - </note> - <example> - <title>config_load</title> - <programlisting role="php"> -<![CDATA[ -<?php -// variablen laden und zuweisen -$smarty->config_load('my.conf'); - -// nur einen abschnitt laden -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-display.xml
Deleted
@@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<refentry id="api.display"> - <refnamediv> - <refname>display (ausgeben)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Gibt ein Template aus. Sie müssen einen gültigen - <link linkend="template.resources">Template Ressourcen</link>-Typ - inklusive Pfad angeben. Als optionalen zweiten Parameter können - Sie eine 'cache_id' übergeben. Konsultieren - Sie den Abschnitt über <link linkend="caching">caching</link> für weitere Informationen. - </para> - <para> - Als optionalen dritten Parameter können Sie eine 'compile_id' übergeben. - Dies ist wertvoll, falls Sie verschiedene Versionen eines Templates - kompilieren wollen - zum Beispiel in verschiedenen Sprachen. 'compile_id' - wird auch verwendet, wenn Sie mehr als ein '$template_dir' aber nur ein - '$compile_dir' haben. Setzen Sie dazu für jedes Verzeichnis eine - eigene 'compile_id', andernfalls werden Templates mit dem gleichen Namen - überschrieben. Sie können die Variable <link linkend="variable.compile.id">$compile_id</link> - auch einmalig setzen, anstatt sie bei jedem Aufruf von 'display()' zu übergeben. - </para> - <example> - <title>display (ausgeben)</title> - <programlisting> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; -$smarty->caching = true; - -// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert -if(!$smarty->is_cached("index.tpl")) { - - // Beispieldaten - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// ausgabe -$smarty->display("index.tpl"); -?> -]]> -</programlisting> - </example> - <para> - Verwenden Sie die Syntax von <link linkend="template.resources">template resources</link> - um Dateien ausserhalb von '$template_dir' zu verwenden. - </para> - <example> - <title>Beispiele von Template-Ressourcen für 'display()'</title> - <programlisting> -<![CDATA[ -<?php -// absoluter Dateipfad -$smarty->display("/usr/local/include/templates/header.tpl"); - -// absoluter Dateipfad (alternativ) -$smarty->display("file:/usr/local/include/templates/header.tpl"); - -// absoluter Dateipfad unter Windows (MUSS mit 'file:'-Prefix versehen werden) -$smarty->display("file:C:/www/pub/templates/header.tpl"); - -// aus der Template-Ressource 'db' einbinden -$smarty->display("db:header.tpl"); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Gibt die Ausgabe des Template zurück, anstatt es direkt anzuzeigen. Übergeben Sie - einen gültigen <link linkend="template.resources">Template Ressource</link>-Typ - und -Pfad. Als optionaler zweiter Parameter kann eine 'cache_id' übergeben werden. - Bitte konsultieren Sie den Abschnitt über <link linkend="caching">caching </link> - für weitere Informationen. - - </para> - <para> - Als optionalen dritten Parameter können Sie eine 'compile_id' übergeben. - Dies ist wertvoll, falls Sie verschiedene Versionen eines Templates - kompilieren wollen - zum Beispiel in verschiedenen Sprachen. 'compile_id' - wird auch verwendet, wenn Sie mehr als ein '$template_dir' aber nur ein - '$compile_dir' haben. Setzen Sie dann für jedes Verzeichnis eine - eigene 'compile_id', andernfalls werden Templates mit dem gleichen Namen - überschrieben. Sie können die Variable <link linkend="variable.compile.id">$compile_id</link> - auch einmalig setzen, anstatt sie bei jedem Aufruf von 'fetch()' zu übergeben. - </para> - <example> - <title>fetch</title> - <programlisting> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; - -$smarty->caching = true; - -// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert -if(!$smarty->is_cached("index.tpl")) { - - // Beispieldaten - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// ausgabe abfangen -$output = $smarty->fetch("index.tpl"); - -// Etwas mit $output anstellen - -echo $output; -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>get_config_vars</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Gibt den Wert der Konfigurationsvariable zurück. Wenn kein Parameter übergeben wird, wird ein Array aller geladenen Variablen zurück gegeben. - </para> - <example> - <title>get_config_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// variable 'foo' zuweisen -$foo = $smarty->get_config_vars('foo'); - -// alle geladenen konfigurationsvariablen zuweisen -$config_vars = $smarty->get_config_vars(); - -// ausgabe -print_r($config_vars); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>get_registered_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Gibt eine Referenz zum registrerten Objekt zurück. Dies ist vorallem sinnvoll, - um von einer eigenen Funktion auf ein registriertes Objekt zuzugreiffen. - </para> - <example> - <title>get_registered_object</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, &$smarty) -{ - if (isset($params['object'])) { - // referenz zuweisen - $obj_ref = &$smarty->get_registered_object($params['object']); - // $obj_ref ist nun ein pointer zum registrierten objekt - } -} -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>get_template_vars (Template-Variablen extrahieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Gibt ein Array der zugewiesenen Template-Variablen zurück. - </para> - <example> - <title>get_template_vars (Template-Variablen extrahieren)</title> - <programlisting> -<![CDATA[ -<?php -// foo extrahieren -$foo = $smarty->get_template_vars('foo'); - -// alle zugewiesenen Template-Variablen extrahieren -$tpl_vars = $smarty->get_template_vars(); - -// Anschauen -print_r($tpl_vars); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<refentry id="api.is.cached"> - <refnamediv> - <refname>is_cached (gecachte Version existiert)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Gibt 'true' zurück, wenn ein gültiger Cache für das angegebene Template existiert. - Dies funktioniert nur, wenn <link linkend="variable.caching">caching</link> eingeschaltet ist. - </para> - <example> - <title>is_cached</title> - <programlisting> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl")) { -// Datenbank-Abfragen, Variablen zuweisen... -} - -$smarty->display("index.tpl"); -?> -]]> -</programlisting> - </example> - <para> - Als optionalen zweiten Parameter können Sie die 'cache_id' übergeben, - falls Sie mehrere Caches für ein Template verwenden. - </para> - <example> - <title>'is_cached' bei mehreren Template-Caches</title> - <programlisting> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // Datenbank Abfragen, Variablen zuweisen... -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> -</programlisting> - </example> - <note> - <title>Technische Bemerkung</title> - <para> - Wenn <literal>is_cached</literal> true zurück gibt, wird die Ausgabe geladen. Alle weiteren Aufrufe von <link linkend="api.display">display()</link> oder <link linkend="api.fetch">fetch()</link> werden aus diesem Cache bedient. Dies verhindert eine Race Condition, die auftauchen könnte, wenn ein anderes Script das besagte Template aus dem Cache löscht. Das bedeutet natürlich auch, dass <link linkend="api.clear.cache">clear_cache()</link> und andere Cache spezifische Einstellungen keine Auswirkungen haben, nachdem <literal>is_cached</literal> true zurückgegeben hat. - </para> - </note> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.load.filter"> - <refnamediv> - <refname>load_filter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Mit dieser Funktion können Filter-Plugins geladen werden. - Der erste Parameter definiert den Filter-Typ und kann einen der - folgenden Werte haben: 'pre', 'post', oder 'output'. Als zweiter - Parameter wird der Name des Filter-Plugins angegeben, zum Beispiel 'trim'. - </para> - <example> - <title>Filter-Plugins laden</title> - <programlisting> -<![CDATA[ -<?php -$smarty->load_filter('pre', 'trim'); // lade den 'pre'-Filter (Vor-Filter) namens 'trim' -$smarty->load_filter('pre', 'datefooter'); // lade einen zweiten Vor-Filter namens 'datefo -oter' -$smarty->load_filter('output', 'compress'); // lade den 'output'-Filter (Ausgabe-Filter) n -amens 'compress' -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-block.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<refentry id="api.register.block"> - <refnamediv> - <refname>register_block (Block-Funktion registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Block-Funktion-Plugins dynamisch zu registrieren. - Übergeben Sie dazu den Namen der Block-Funktion und den Namen der - PHP-Callback-Funktion, die die entsprechende Funktionalität bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <para> - <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. - </para> - <example> - <title>register_block (Block-Funktion registrieren)</title> - <programlisting> -<![CDATA[ -<?php -$smarty->register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // übersetze den Inhalt von '$content' - return $translation; - } -} -?> -]]> - </programlisting> - <para> - Wobei das Template wie folgt aussieht: - </para> - <programlisting> -<![CDATA[ -{* template *} -{translate lang="br"} -Hello, world! -{/translate} -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-compiler-function.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.compiler.function"> - <refnamediv> - <refname>register_compiler_function (Compiler-Funktion registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Compiler-Funktion-Plugins dynamisch zu - registrieren. Übergeben Sie dazu den Namen der Compiler-Funktion und den Namen der - PHP-Funktion, die die entsprechende Funktionalität bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <para> - <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-function.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Template-Funktion-Plugins dynamisch zu - registrieren. Übergeben Sie dazu den Namen der Template-Funktion - und den Namen der PHP-Funktion, die die entsprechende Funktionalität bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <para> - <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. - </para> - <example> - <title>register_function (Funktion registrieren)</title> - <programlisting> -<![CDATA[ -<?php -$smarty->register_function("date_now", "print_current_date"); - -function print_current_date($params) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} - -// Von nun an können Sie {date_now} verwenden, um das aktuelle Datum auszugeben. -// Oder {date_now format="%Y/%m/%d"}, wenn Sie es formatieren wollen.</programlisting> -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-modifier.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.modifier"> - <refnamediv> - <refname>register_modifier (Modifikator-Plugin registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Modifikator-Plugins dynamisch zu - registrieren. Übergeben Sie dazu den Namen der Modifikator-Funktion - und den Namen der PHP-Funktion, die die entsprechende Funktionalität - bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <example> - <title>register_modifier (Modifikator-Plugin registrieren)</title> - <programlisting> -<![CDATA[ -<?php -// PHP's 'stripslashes()'-Funktion als Smarty Modifikator registrieren - -$smarty->register_modifier("sslash", "stripslashes"); - -// Von nun an können Sie {$var|sslash} verwenden, -// um "\"-Zeichen (Backslash) aus Zeichenketten zu entfernen. ('\\' wird zu '\',...) -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<refentry id="api.register.object"> - <refnamediv> - <refname>register_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet um ein Objekt zu registrieren. Konsultieren Sie den Abschnitt <link linkend="advanced.features.objects">Objekte</link> - für weitere Informationen und Beispiele. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-outputfilter.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter (Ausgabefilter registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Verwenden Sie diese Funktion um dynamisch Ausgabefilter zu registrieren, welche - die Template Ausgabe verarbeiten bevor sie angezeigt wird. Konsultieren Sie - den Abschnitt über <link linkend="advanced.features.outputfilters">Ausgabefilter</link> - für mehr Informationen. - </para> - <para> - Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-postfilter.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter ('post'-Filter registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um 'post'-Filter dynamisch zu registrieren. 'post'-Filter werden - auf das kompilierte Template angewendet. Konsultieren Sie dazu den - Abschnitt <link linkend="advanced.features.postfilters">template postfilters</link>. - </para> - <para> - Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-prefilter.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter ('pre'-Filter registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um 'pre'-Filter dynamisch zu registrieren. 'pre'-Filter werden - vor der Kompilierung auf das Template angewendet. Konsultieren Sie dazu den - Abschnitt <link linkend="advanced.features.prefilters">'pre'-Filter</link>. - </para> - <para> - Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource (Ressource registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um ein Ressource-Plugin dynamisch zu - registrieren. Übergeben Sie dazu den Ressourcen-Namen und - das Array mit den Namen der PHP-Funktionen, die die Funktionalität implementieren. - Konsultieren Sie den Abschnitt <link linkend="template.resources">template resources</link> - für weitere Informationen zum Thema. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Ein Ressourcename muss mindestens 2 Zeichen lang sein. Namen mit einem (1) Zeichen - werden ignoriert und als Teil des Pfades verwenden, wie in $smarty->display('c:/path/to/index.tpl');. - </para> - </note> - <para> - Der Parameter <parameter>resource_funcs</parameter> muss aus 4 oder 5 Elementen bestehen. Wenn 4 Elemente übergeben werden, - werden diese als Ersatz Callback-Funktionen fü "source", "timestamp", "secure" und "trusted" verwendet. Mit 5 Elementen - muss der erste Parameter eine Referenz auf das Objekt oder die Klasse sein, welche die benötigten Methoden bereitstellt. - </para> - <example> - <title>register_resource (Ressource registrieren)</title> - <programlisting> -<![CDATA[ -<?php -$smarty->register_resource("db", array("db_get_template", -"db_get_timestamp", -"db_get_secure", -"db_get_trusted")); -?> -]]> -</programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.template.exists"> - <refnamediv> - <refname>template_exists (Template existiert)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion prüft, ob das angegebene Template existiert. Als Parameter - können entweder ein Pfad im Dateisystem oder eine Ressource übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-trigger-error.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error (Fehler auslösen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um eine Fehlermeldung via Smarty auszugeben. - Der <parameter>level</parameter>-Parameter kann alle - Werte der 'trigger_error()'-PHP-Funktion haben, - zum Beispiel E_USER_NOTICE, E_USER_WARNING, usw. - Voreingestellt ist E_USER_WARNING. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-block.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block (Block-Funktion deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Block-Funktionen auszuschalten. - Übergeben Sie dazu den Namen der Block-Funktion. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-compiler-function.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function (Compiler-Funktion deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Compiler-Funktionen auszuschalten. - Übergeben Sie dazu den Funktionsnamen der Compiler-Funktion. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-function.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function (Template-Funktion deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Template-Funktionen auszuschalten. - Übergeben Sie dazu den Namen der Template-Funktion. - </para> - <example> - <title>unregister_function</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Template-Designer sollen keinen Zugriff auf das Dateisystem haben -$smarty->unregister_function("fetch"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-modifier.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.modifier"> - <refnamediv> - <refname>unregister_modifier (Modifikator deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Variablen-Modifikatoren auszuschalten. - Übergeben Sie dazu den Modifikator-Namen. - </para> - <example> - <title>unregister_modifier</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Verhindern, dass Template-Designer 'strip_tags' anwenden - -$smarty->unregister_modifier("strip_tags"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregister_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Pointer zu einem registrierten Objekt löschen - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-outputfilter.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter (Ausgabefilter deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Ausgabefilter auszuschalten. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-postfilter.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter ('post'-Filter deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte 'post'-Filter auszuschalten. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-prefilter.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter ('pre'-Filter deaktiviern)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte 'pre'-Filter auszuschalten. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource (Ressource deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Ressourcen auszuschalten. - Übergeben Sie dazu den Namen der Ressource. - </para> - <example> - <title>unregister_resource (Ressource deaktivieren)</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->unregister_resource("db"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<chapter id="api.variables"> - <title>Smarty Klassenvariablen (Objekteigenschaften)</title> - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - Filter die Sie zu jedem Template laden möchten, können Sie mit Hilfe - dieser Variable festlegen. Smarty wird sie danach automatisch laden. Die Variable - enthält ein assoziatives Array, in dem der Schlüssel den Filter-Typ - und der Wert den Filter-Namen definiert. Zum Beispiel: - <informalexample> - <programlisting> -<![CDATA[ -<?php -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - </programlisting> - </informalexample> - </para> - - <para> - Siehe auch - <link linkend="api.register.outputfilter">register_outputfilter()</link>, - <link linkend="api.register.prefilter">register_prefilter()</link>, - <link linkend="api.register.postfilter">register_postfilter()</link> - und - <link linkend="api.load.filter">load_filter()</link> - </para> - - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> - <sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - Definiert den Namen des Verzeichnisses in dem die Template-Caches - angelegt werden. Normalerweise ist dies <filename class="directory">'./cache'</filename>. - Das heisst, dass Smarty das Cache-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - <emphasis role="bold">Der Webserver muss Schreibrechte für dieses - Verzeichnis haben</emphasis> - (siehe auch Kapitel <link linkend="installing.smarty.basic">Installation</link>). - Sie können auch einen eigenen Cache-Handler zur Kontrolle - der Cache-Dateien definieren, der diese Einstellung ignoriert. - Siehe auch - <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>. - </para> - - <note> - <title>Technische Bemerkung</title> - <para> - Die Angabe muss entweder relativ oder absolut angegeben werden. 'include_path' - wird nicht verwendet. - </para> - </note> - <note> - <title>Technische Bemerkung</title> - <para> - Es wird empfohlen ein Verzeichnis ausserhalb der DocumentRoot zu verwenden. - </para> - </note> - - <para> - Siehe auch - <link linkend="variable.caching">$caching</link>, - <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>, - <link linkend="variable.cache.lifetime">$cache_lifetime</link>, - <link linkend="variable.cache.handler.func">$cache_handler_func</link>, - <link linkend="variable.cache.modified.check">$cache_modified_check</link> - und der Abschnitt zum - <link linkend="caching">Caching</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - Sie können auch eine eigene Cache-Handler Funktion definieren. - statt nur mit der <link linkend="variable.cache.dir">$cache_dir</link>-Variable - ein eigenes Verzeichnis festzulegen. - Siehe Abschnitt zur <link linkend="section.template.cache.handler.func">custom cache handler</link> Funktion. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - Definiert die Zeitspanne (in Sekunden) die ein Cache gültig - bleibt. Ist die Zeit abgelaufen, wird der Cache neu generiert. '$caching' - muss eingeschaltet (true) sein, damit '$cache_lifetime' Sinn macht. Der - Wert -1 bewirkt, dass der Cache nie abläuft. Der Wert 0 bewirkt, dass - der Inhalt immer neu generiert wird (nur sinnvoll für Tests, eine - effizientere Methode wäre <link linkend="variable.caching">$caching</link> - auf 'false' zu setzen). - </para> - <para> - Wenn <link linkend="variable.force.compile">$force_compile</link> - gesetzt ist, wird der Cache immer neu generiert (was einem Ausschalten - von caching gleichkommt). Mit der <link linkend="api.clear.all.cache">clear_all_cache()</link> - Funktion können Sie alle Cache-Dateien auf einmal entfernen. Mit der - <link linkend="api.clear.cache">clear_cache()</link> Funktion können Sie - einzelne Cache-Dateien (oder Gruppen) entfernen. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Falls Sie bestimmten Templates eine eigene Cache-Lifetime geben wollen, - können Sie dies tun indem Sie <link linkend="variable.caching">$caching</link> - auf 2 stellen und '$cache_lifetime' einen einmaligen Wert zuweisen, bevor Sie - <link linkend="api.display">display()</link> - oder <link linkend="api.fetch">fetch()</link> aufrufen. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.cache.modified.check"> - <title>$cache_modified_check</title> - <para> - Wenn auf 1 gesetzt, verwendet Smarty den If-Modified-Since - Header des Clients. Falls sich der Timestamp der Cache-Datei - seit dem letzten Besuch nicht geändert hat, wird der - Header '304 Not Modified' anstatt des Inhalts ausgegeben. Dies - funktioniert nur mit gecachten Inhalten die keine <command>insert</command> - Tags enthalten. - </para> - - <para> - Siehe auch - <link linkend="variable.caching">$caching</link>, - <link linkend="variable.cache.lifetime">$cache_lifetime</link>, - <link linkend="variable.cache.handler.func">$cache_handler_func</link>, - und - das Kapitel zum <link linkend="caching">Caching</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> - <sect1 id="variable.caching"> - <title>$caching</title> - <para> - Definiert ob Smarty die Template-Ausgabe im Verzeichnis - <link linkend="variable.cache.dir">$cache_dir</link>cachen soll. - Normalerweise ist dies ausgeschaltet (disabled, Wert: 0). - Falls Ihre Templates redundante Inhalte erzeugen - ist es empfehlenswert, $caching einzuschalten. - Die Performance wird dadurch signifikant verbessert. - Sie können auch <link linkend="caching.multiple.caches">mehrere (multiple)</link> - Caches für ein Template haben. - Die Werte 1 und 2 aktivieren caching. - Bei einem Wert von 1 verwendet Smarty die Variable - <link linkend="variable.cache.lifetime">$cache_lifetime</link> - um zu berechnen, ob ein Template neu kompiliert werden soll. - Der Wert 2 weist Smarty an, den Wert von <link linkend="variable.cache.lifetime">$cache_lifetime</link> - zur Zeit der Erzeugung des Cache zu verwenden. - Damit können Sie '$cache_lifetime' setzen bevor Sie das Template einbinden - und haben so eine feine Kontrolle darüber, - wann ein bestimmter Cache abläuft. - Siehe dazu auch: <link linkend="api.is.cached">is_cached()</link>. - </para> - - <para> - Wenn <link linkend="variable.compile.check">$compile_check</link> aktiviert ist, - wird der Cache regeneriert sobald ein Template - oder eine Konfigurations-Variable geändert wurde. - Wenn <link linkend="variable.force.compile">$force_compile</link> aktiviert ist, - werden die gecachten Inhalte bei jedem Aufruf neu generiert. - </para> - - <para> - Siehe auch - <link linkend="variable.cache.dir">$cache_dir</link>, - <link linkend="variable.cache.lifetime">$cache_lifetime</link>, - <link linkend="variable.cache.handler.func">$cache_handler_func</link>, - <link linkend="variable.cache.modified.check">$cache_modified_check</link> - und - das Kapitel zum <link linkend="caching">Caching</link>. - </para> - - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - Bei jedem Aufruf der PHP-Applikation überprüft Smarty, - ob sich das zugrundeliegende Template seit dem letzten Aufruf - geändert hat. Falls es eine Änderung feststellt, - wird das Template neu kompiliert. Seit Smarty 1.4.0 wird - das Template - falls es nicht existiert - kompiliert, unabhängig - davon welcher Wert '$compile_check' hat. Normalerweise ist der - Wert dieser Variable 'true'. - </para> - - <para> - Wenn eine Applikation produktiv - eingesetzt wird (die Templates ändern sich nicht mehr), kann - der 'compile_check'-Schritt entfallen. Setzen Sie dann - '$compile_check' auf 'false', um die Performance zu steigern. - Achtung: Wenn Sie '$compile_check' auf 'false' setzen und anschliessend - ein Template ändern, wird diese Änderung *nicht* angezeigt. - Wenn <link linkend="variable.caching">$caching</link> - und '$compile_check' eingeschaltet sind, werden die - gecachten Skripts neu kompiliert, sobald eine Änderung an - einem der eingebundenen Templates festgestellt wird. - - Siehe auch <link linkend="variable.force.compile">$force_compile</link> - und <link linkend="api.clear.compiled.tpl">clear_compiled_tpl()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> - <sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - Definiert das Verzeichnis, in das die kompilierten Templates geschrieben - werden. Normalerweise lautet es <filename class="directory">"./templates_c"</filename>. - Das heisst, dass Smarty das Kompilier-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - <emphasis role="bold">Der Webserver muss Schreibrechte für dieses - Verzeichnis haben</emphasis> - (siehe auch Kapitel <link linkend="installing.smarty.basic">Installation</link>). - </para> - - <note> - <title>Technische Bemerkung</title> - <para> - Diese Einstellung kann als relativer oder als absoluter Pfad - angegeben werden. 'include_path' wird nicht verwendet. - </para> - </note> - <note> - <title>Technische Bemerkung</title> - <para> - Dieses Verzeichnis sollte ausserhalb der DocumentRoot - des Webservers liegen. - </para> - </note> - - <para> - Siehe auch <link linkend="variable.compile.id">$compile_id</link> - und - <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> - <sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Persistenter 'compile-identifier'. Anstatt jedem Funktionsaufruf die selbe '$compile_id' - zu übergeben, kann eine individuelle '$compile_id' gesetzt werden. Das ist z. B. - sinnvoll, um in Kombination mit einem 'prefilter' verschiedene Sprach-Versionen eines Template - kompilieren. - </para> - - <para> - Mit einer individuellen $compile_id können Sie das Problem beheben, - dass Sie nicht das gleiche - <link linkend="variable.compile.dir">$compile_dir</link> - für unterschiedliche - <link linkend="variable.template.dir">$template_dirs</link> - verwenden können. - Wenn Sie eine eindeutige $compile_id für jedes - <link linkend="variable.template.dir">$template_dir</link> setzen, - dann kann Smarty die kompilierten Templates anhand ihrer $compile_id auseinanderhalten. - </para> - - <para> - Ein Beispiel ist die Lokalisierung (also die Übersetzung sprachabhängiger Teile) - durch einen <link linkend="plugins.prefilters.postfilters">prefilter</link> - während der Kompilierung des Templates. - Sie können dort die aktuelle Sprache als $compile_id verwenden - und erhalten damit für jede Sprache einen eigenen Satz von Templates. - </para> - - <para> - Ein anderes Beispiel ist die Verwendung des selben Compile-Verzeichnisses - für verschiedene Domains / verschiedene Virtual Hosts. - </para> - <example> - <title>$compile_id in einer Virtual Host Umgebung</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - </programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Definiert den Namen der Compiler-Klasse, die Smarty zum kompilieren - der Templates verwenden soll. Normalerweise 'Smarty_Compiler'. Nur - für fortgeschrittene Anwender. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - Wenn auf 'true' gesetzt, werden die Werte on/true/yes und off/false/no von Variablen aus Konfigurationsdateien automatisch auf true oder false gesetzt. Dies erlaubt eine einfachere Handhabung in Templates, da Sie somit {if #foobar#} ... {/if} benutzen können. Standardwert: true - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - Definiert das Verzeichnis, in dem die von den Templates verwendeten - <link linkend="config.files">Konfigurationsdateien</link> abgelegt sind. - Die Voreinstellung ist <filename class="directory">"./configs"</filename>. - Das heisst, dass Smarty das Konfigurations-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - </para> - - <note> - <title>Technische Bemerkung</title> - <para> - Dieses Verzeichnis sollte ausserhalb der DocumentRoot - des Webservers liegen. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-config-fix-newlines.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="variable.config.fix.newlines"> - <title>$config_fix_newlines</title> - <para> - Definiert ob MAC und DOS Zeilenumbrüche (\r und \r\n) in Konfigurationsdateien automatisch in \n umgewandelt werden sollen. Standardwert: true - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> - <sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - <!-- 'Variable' sollte eigentlich besser 'Wert' heissen --> - Definiert ob gleichnamige Variablen, die aus - <link linkend="config.files">Konfigurationsdateien</link> - gelesen werden, sich gegenseitig überschreiben. - Der Standardwert für $config_overwrite ist true. - </para> - - <para> - Wenn $config_overwrite auf false gesetzt wird, - dann wird aus gleichnamigen Variablen ein Array erstellt. - Um folglich ein Array in Konfigurationsdateien ablegen zu können - brauchen Sie das entsprechende Element einfach nur mehrfach aufzuführen. - </para> - - <example> - <title>Array von Konfigurationswerten</title> - <para> - Dieses Beispiel verwendet - <link linkend="language.function.cycle">{cycle}</link> - um eine Tabelle abwechselnd mit roten, grünen und blauen - Zeilen auszugeben. - $config_overwrite ist auf false gesetzt um aus den - Farbangaben ein Array zu erzeugen. - </para> - <para>Die Konfigurationsdatei.</para> - <programlisting> -<![CDATA[ -# row colors -rowColors = #FF0000 -rowColors = #00FF00 -rowColors = #0000FF -]]> - </programlisting> - <para> - Das Template mit einer - <link linkend="language.function.section">{section}</link> Schleife. - </para> - <programlisting> -<![CDATA[ -<table> - {section name=r loop=$rows} - <tr bgcolor="{cycle values=#rowColors#}"> - <td> ....etc.... </td> - </tr> - {/section} -</table> -]]> - </programlisting> - </example> - <para> - Siehe auch - <link linkend="config.files">Konfigurationsdateien</link>, - <link linkend="api.get.config.vars">get_config_vars()</link>, - <link linkend="api.clear.config">clear_config()</link> - <link linkend="api.config.load">config_load()</link> - und - <link linkend="language.function.config.load">{config_load}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - Definiert ob Templates versteckte Abschnitte (deren Name mit einem '.' beginnt) aus - <link linkend="config.files">Konfigurationsdateien</link> lesen dürfen. - Der Standardwert ist false. - Normalerweise behält man den Standardwert bei, - da man so sensible Daten (wie z.B. Datenbankzugriffsdaten) - in den Konfigurationsdateien unterbringen kann, - die nicht durch Templates ausgelesen werden können. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-debug-tpl.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.debug.tpl"> - <title>$debug_tpl</title> - <para> - Definiert den Namen des für die Debugging Konsole verwendeten Template. - Normalerweise lautet er <filename>"debug.tpl"</filename> und befindet sich im - <link linkend="constant.smarty.dir">SMARTY_DIR</link> Verzeichnis. - </para> - - <para> - Siehe auch - <link linkend="variable.debugging">$debugging</link> - und - <link linkend="chapter.debugging.console">Debugging Konsole</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - Definiert Alternativen zur Aktivierung der Debugging Konsole. - NONE verbietet alternative Methoden. - URL aktiviert das Debugging, - wenn das Schlüsselwort 'SMARTY_DEBUG' im QUERY_STRING gefunden wird. - Wenn <link linkend="variable.debugging">$debugging</link> auf 'true' gesetzt ist, wird dieser Wert ignoriert. - </para> - - <para> - Siehe auch <link linkend="chapter.debugging.console">Debugging Konsole</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> - <sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - Aktiviert die <link linkend="chapter.debugging.console">Debugging Konsole</link>. - </para> - - <para> - Die Konsole besteht aus einem Javascript-Popup-Fenster, - welches Informationen über <link linkend="language.function.include">eingebundene Templates</link>, - von PHP <link linkend="api.assign">zugewiesene</link> Variablen - und <link linkend="language.config.variables">Variablen aus Konfigurationsdateien</link> enthält. - Die Konsole zeigt keine Variablen an, die innerhalb des Templates mit - <link linkend="language.function.assign">{assign}</link> zugewiesen wurden. - </para> - - <para>Lesen Sie <link linkend="variable.debugging.ctrl">$debugging_ctrl</link> - um zu sehen wie Sie das Debugging über einen Parameter in der URL aktivieren können. - </para> - - <para> - Siehe auch - <link linkend="language.function.debug">{debug}</link>, - <link linkend="variable.debug.tpl">$debug_tpl</link>, - und - <link linkend="variable.debugging.ctrl">$debugging_ctrl</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - Definiert ein Array von Variablen-Modifikatoren, die auf jeder Variable anzuwenden sind. - Wenn Sie zum Beispiel alle Variablen standardmässig HTML-Maskieren wollen, - können Sie array('escape:"htmlall"'); verwenden. Um eine Variable von dieser - Behandlung auszuschliessen, können Sie ihr den Modifikator 'smarty' mit dem Parameter 'nodefaults' - übergeben. Als Beispiel: {$var|smarty:nodefaults}. - Zum Beispiel: {$var|nodefaults}. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - Definiert den Ressourcentyp der von Smarty implizit verwendet werden soll. Standardwert - ist 'file', was dazu führt dass $smarty->display('index.tpl'); und - $smarty->display('file:index.tpl'); identisch sind. - Weitere Informationen finden Sie im - <link linkend="template.resources">Resource</link>-Kapitel. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: andreas Status: ready --> - <sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - Diese Funktion wird aufgerufen, wenn ein Template nicht aus der - vorgegebenen Quelle geladen werden kann. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> - <sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - - <para> - Wenn dieser Wert nicht 0 ist, dann setzt er den Wert für das - <ulink url="&url.php-manual;error_reporting">error_reporting</ulink> - von PHP beim Aufruf von <link linkend="api.display">display()</link> - und <link linkend="api.fetch">fetch()</link>. - Wenn <link linkend="chapter.debugging.console">debugging</link> - aktiviert ist, dann wird dieser Wert ignoriert. - </para> - <para> - Siehe auch - <link linkend="api.trigger.error">trigger_error()</link>, - <link linkend="chapter.debugging.console">debugging</link> - und - <link linkend="troubleshooting">Troubleshooting</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - Veranlasst Smarty dazu, die Templates bei jedem Aufruf neu zu kompilieren. - Diese Einstellung überschreibt - <link linkend="variable.compile.check">$compile_check</link>. - Normalerweise ist dies ausgeschaltet, kann jedoch für die Entwicklung - und das <link linkend="chapter.debugging.console">Debugging</link> - nützlich sein. - In einer Produktivumgebung sollte auf die Verwendung verzichtet werden. - Wenn <link linkend="variable.caching">$caching</link> eingeschaltet ist, - werden die gecachten Dateien bei jedem Aufruf neu kompiliert. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - Das zu verwendende linke Trennzeichen der Template-Sprache. - Die Vorgabe ist '{'. - </para> - <para> - Siehe auch <link linkend="variable.right.delimiter">$right_delimiter</link> - und - <link linkend="language.escaping">escaping smarty parsing</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - Definiert wie Smarty mit PHP-Code innerhalb von Templates umgehen soll. - Es gibt 4 verschiedene Einstellungen. Die Voreinstellung ist - SMARTY_PHP_PASSTHRU verwendet. Achtung: '$php_handling' wirkt sich NICHT - auf PHP-Code aus, der zwischen <link linkend="language.function.php">{php}{/php}</link> - Tags steht. - </para> - <itemizedlist> - <listitem><para>SMARTY_PHP_PASSTHRU - Smarty gibt die Tags aus.</para></listitem> - <listitem><para>SMARTY_PHP_QUOTE - Smarty maskiert die Tags als HTML-Entities.</para></listitem> - <listitem><para>SMARTY_PHP_REMOVE - Smarty entfernt die Tags.</para></listitem> - <listitem><para>SMARTY_PHP_ALLOW - Smarty führt den Code als PHP-Code aus.</para></listitem> - </itemizedlist> - <para> - ACHTUNG: Es wird dringend davon abgeraten, PHP-Code in Templates einzubetten. - Bitte verwenden Sie stattdessen <link linkend="language.custom.functions">custom functions</link> - oder <link linkend="language.modifiers">Variablen-Modifikatoren</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> - <sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - Definiert das Verzeichnis (bzw. die Verzeichnisse) in dem Smarty die zu ladenden Plugins sucht. - Die Voreinstellung ist '<filename class="directory">"plugins"</filename> - unterhalb des <link linkend="constant.smarty.dir">SMARTY_DIR</link>-Verzeichnisses. - Wenn Sie einen relativen Pfad angeben, wird Smarty zuerst versuchen das Plugin von - <link linkend="constant.smarty.dir">SMARTY_DIR</link> aus zu erreichen, - danach relativ zum aktuellen Verzeichnis (mit 'cwd' - current working directory) - und zum Schluss in jedem Eintrag des PHP-'include_path'. - Wenn $plugins_dir ein Array von Verzeichnissen ist - wird Smarty jedes der angegebenen Verzeichnisse - in der angegebenen Reihenfolge nach dem Plugin durchsuchen. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Für optimale Performance sollte $plugins_dir entweder absolut - oder relativ zu SMARTY_DIR bzw. dem aktuellen Verzeichnis zu definieren. - Von der Definition des Verzeichnisses im PHP-'include_path' wird abgeraten. - </para> - </note> - - <example> - <title>Ein lokales Plugin-Verzeichnis hinzufügen</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - </programlisting> - </example> - - <example> - <title>Mehrere Verzeichnisse im $plugins_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - </programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-request-use-auto-globals.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.request.use.auto.globals"> - <title>$request_use_auto_globals</title> - <para> - Definiert ob Smarty PHPs $HTTP_*_VARS[] ($request_use_auto_globals=false) - oder die Voreinstellung $_*[] ($request_use_auto_globals=true) verwenden soll. - Dies betrifft Templates die - <link linkend="language.variables.smarty">{$smarty.request.*}, {$smarty.get.*}</link> - , etc... verwenden. - Achtung: Wenn $request_use_auto_globals auf TRUE gesetzt ist, - hat <link linkend="variable.request.vars.order">variable.request.vars.order</link> - keine Auswirkungen, da PHPs Konfigurationswert <literal>gpc_order</literal> verwendet wird. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-request-vars-order.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="variable.request.vars.order"> - <title>$request_vars_order</title> - <para> - Die Reihenfolge in welcher die Request-Variblen zugewiesen werden. - Verhält sich wie 'variables_order' in der php.ini. - </para> - <para> - Siehe auch <link linkend="language.variables.smarty">$smarty.request</link> - und - <link linkend="variable.request.use.auto.globals">$request_use_auto_globals</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - Das zu verwendende rechte Trennzeichen der Template-Sprache. - Die Vorgabe ist '}'. - </para> - <para> - Siehe auch <link linkend="variable.left.delimiter">$left_delimiter</link> - und - <link linkend="language.escaping">escaping smarty parsing</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-secure-dir.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="variable.secure.dir"> - <title>$secure_dir</title> - <para> - Dies ist ein Array das alle Dateien und Verzeichnisse enthält, - die als sicher angesehen werden. - <link linkend="language.function.include">{include}</link> - und <link linkend="language.function.fetch">{fetch}</link> - verwenden diese Daten wenn - <link linkend="variable.security">$security</link> eingeschaltet ist. - </para> - <para> - Siehe auch - <link linkend="variable.security.settings">Security settings</link>, - und <link linkend="variable.trusted.dir">$trusted_dir</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-security-settings.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="variable.security.settings"> - <title>$security_settings</title> - <para> - Wird verwendet um spezifische Sicherheits-Einstellungen zu ändern, - wenn <link linkend="variable.security">$security</link> eingeschaltet ist. - </para> - <itemizedlist> - <listitem> - <para> - PHP_HANDLING - true/false. - Wenn auf 'true' gesetzt, wird <link linkend="variable.php.handling">$php_handling</link> ignoriert. - </para> - </listitem> - <listitem> - <para> - IF_FUNCS - Ein Array aller erlaubter Funktionen in - <link linkend="language.function.if">{if}</link>-Statements. - </para> - </listitem> - <listitem> - <para> - INCLUDE_ANY - true/false. - Wenn 'true', kann das Template aus jedem beliebigen Verzeichnis geladen werden, - auch außerhalb der <link linkend="variable.secure.dir">$secure_dir</link>-Liste.</para> - </listitem> - <listitem> - <para> - PHP_TAGS - true/false. - Wenn 'true', sind <link linkend="language.function.php">{php}{/php}</link>-Tags - in Templates erlaubt. - </para> - </listitem> - <listitem> - <para> - MODIFIER_FUNCS - Ein Array aller PHP-Funktionen - die als Variablen-Modifikatoren verwendet werden dürfen. - </para> - </listitem> - <listitem> - <para> - ALLOW_CONSTANTS - true/false. - Wenn 'true', ist die Verwendung von Konstanten via - <link linkend="language.variables.smarty.const">{$smarty.const.name}</link> - in Template zulässig. - Aus Sicherheitsgründen ist die Voreinstellung 'false'. - </para> - </listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-security.xml
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<sect1 id="variable.security"> - <title>$security</title> - <para> - '$security' ein-/ausschalten. Normalerweise 'false' (ausgeschaltet). - Aktiviert spezielle Sicherheitseinstellungen. - Mögliche Werte für $security sind 'true' und 'false', - wobei 'false' die Voreinstellung ist. - Die Sicherheitseinstellungen sind sinnvoll, wenn nicht vertrauenswürdigen - Parteien Zugriff auf die Templates gegeben wird (zum Beispiel via FTP). - Mit aktivierter '$security' kann verhindert werden, dass diese das System - via Template-Engine kompromittieren. Die '$security' einzuschalten hat folgende - Auswirkungen auf die Template-Language (ausser sie werden explizit mit - <link linkend="variable.security.settings">$security_settings</link> überschrieben): - </para> - - <itemizedlist> - <listitem> - <para> - Wenn <link linkend="variable.php.handling">$php_handling</link> auf - SMARTY_PHP_ALLOW gesetzt ist, dann wird der Wert auf SMARTY_PHP_PASSTHRU geändert. - </para> - </listitem> - <listitem> - <para> - In <link linkend="language.function.if">{if}</link>-Statements sind keine - PHP-Funktionen zugelassen, die nicht explizit über die - <link linkend="variable.security.settings">$security_settings</link> - angegeben wurden. - </para> - </listitem> - <listitem> - <para> - Templates können nur aus den im - <link linkend="variable.secure.dir">$secure_dir</link>-Array - definierten Verzeichnissen geladen werden. - </para> - </listitem> - <listitem> - <para> - Dateien können mit <link linkend="language.function.fetch">{fetch}</link> - nur aus den in <link linkend="variable.secure.dir">$secure_dir</link> - angegebenen Verzeichnissen geladen werden. - </para> - </listitem> - <listitem> - <para> - <link linkend="language.function.php">{php}{/php}</link>-Tags sind nicht erlaubt. - </para> - </listitem> - <listitem> - <para> - PHP-Funktionen können nicht als Variablen-Modifikatoren verwendet werden, - wenn sie nicht explizit in - <link linkend="variable.security.settings">$security_settings</link> - angegeben wurden. - </para> - </listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - Definiert den Namen des Standardverzeichnisses, aus dem die Templates gelesen werden. - Normalerweise lautet er <filename class="directory">"./templates"</filename>. - Das heisst, dass Smarty das Template-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - Wenn Sie beim Einbinden eines Templates keinen Ressourcen-Typ übergeben, - wird es in diesem Pfad gesucht. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Dieses Verzeichnis sollte außerhalb der DocumentRoot - des Webservers liegen. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - $trusted_dir wird nur verwendet wenn - <link linkend="variable.security">$security</link> eingeschaltet ist. - Der Wert ist ein Array aller Verzeichnisse, die als vertrauenswürdig gelten. - In diesen Verzeichnissen können PHP-Skripte, die man direkt aus einem Template - mit <link linkend="language.function.include.php">{include_php}</link> aufruft, - abgelegt werden. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> -<sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> - Wenn $use_sub_dirs auf 'true' gesetzt ist wird Smarty unterhalb - der Verzeichnisse <link linkend="variable.compile.dir">templates_c</link> - und <link linkend="variable.cache.dir">cache</link> - Unterverzeichnisse anlegen. - In einer Umgebung in der möglicherweise zehntausende Dateien - angelegt werden kann das helfen, die Geschwindigkeit des Zugriffs - auf das Dateisystem zu optimieren. - Andererseits gibt es Umgebungen, in denen PHP-Prozesse nicht - die Berechtigung zum Anlegen von Unterverzeichnissen haben, - so dass diese Funktion nicht genutzt werden kann. - Der Vorgabewert ist 'false', aus Performancegründen wird allerdings - empfohlen diesen Wert auf 'true' zu setzen, - wenn die Systemumgebung dies zulässt. - </para> - <para> - Theoretisch erhält man bei einer Dateistruktur mit 10 Verzeichnissen - mit je 100 Dateien eine deutlich höhere Performance als bei der - Verwendung von nur einem Verzeichnis mit 1000 Dateien. - Dies war auch in der Praxis z.B. bei Solaris (UFS) so. - Mit aktuellen Dateisystemen wie ext3 und vor allem reiserfs - ist dieser Unterschied allerdings inzwischen marginal geworden. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - $use_sub_dirs=true funktioniert nicht mit - <ulink url="&url.php-manual;features.safe-mode">safe_mode=On</ulink>. - Dies ist der Grund, warum man es umschalten kann und warum - die Funktion standardmäß ausgeschaltet ist. - </para> - </note> - <note> - <title>Bemerkung</title> - <para> - Seit Smarty-2.6.2 ist der Vorgabewert für - <varname>$use_sub_dirs</varname> 'false'. - </para> - </note> - <para> - Siehe auch - <link linkend="variable.compile.dir">$compile_dir</link>, - und - <link linkend="variable.cache.dir">$cache_dir</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/caching.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: andreas Status: ready --> - <chapter id="caching"> - <title>Caching</title> - <para> - Caching wird verwendet, um <link linkend="api.display">display()</link> oder - <link linkend="api.fetch">fetch()</link> Aufrufe durch zwischenspeichern (cachen) - der Ausgabe in einer Datei zu beschleunigen. Falls eine gecachte Version - des Aufrufs existiert, wird diese ausgegeben, anstatt die Ausgabe neu zu generieren. - Caching kann die Performance vor allem dann deutlich verbessern, wenn Templates - längere Rechenzeit beanspruchen. Weil die Ausgabe von <link - linkend="api.display">display()</link> und <link - linkend="api.fetch">fetch()</link> gecached wird, kann ein Cache - verschiedene Templates, Konfigurationsdateien usw. enthalten. - </para> - <para> - Da Templates dynamisch sind ist es wichtig darauf zu achten, welche Inhalte - für für wie lange gecached werden sollen. Wenn sich zum Beispiel die erste Seite Ihrer Website - nur sporadisch ändert, macht es Sinn die Seite für eine - Stunde oder länger zu cachen. Wenn Sie aber eine Seite mit sich minütlich - erneuernden Wetterinformationen haben, macht es möglicherweise keinen Sinn, - die Seite überhaupt zu cachen. - </para> -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; -&programmers.caching.caching-cacheable; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready --> -<sect1 id="caching.cacheable"> - <title>Die Ausgabe von cachebaren Plugins Kontrollieren</title> - <para> - Seit Smarty-2.6.0 kann bei der Registrierung angegeben werden ob ein - Plugin cached werden soll. Der dritte Parameter für <link - linkend="api.register.block">register_block</link>, <link - linkend="api.register.compiler.function">register_compiler_function</link> - und <link linkend="api.register.function">register_function</link> - heisst <parameter>$cacheable</parameter>, der Standardwert ist TRUE, - was das Verhalten von Smarty vor Version 2.6.0 wiederspiegelt. - </para> - <para> - Wenn ein Plugin mit <parameter>$cacheable=false</parameter> - registriert wird, wird er bei jedem Besuch der Seite aufgerufen, - selbst wenn die Site aus dem Cache stammt. Die Pluginfunktion - verhält sich ein wenig wie <link - linkend="plugins.inserts">{insert}</link>. - </para> - <para> - Im Gegensatz zu <link - linkend="plugins.inserts">{insert}</link> werden die - Attribute standartmässig nicht gecached. Sie können das - caching jedoch mit dem vierten Parameter - <parameter>$cache_attrs</parameter> - kontrollieren. <parameter>$cache_attrs</parameter> ist ein Array - aller Attributnamen die gecached werden sollen. - </para> - - <example> - <title>Verhindern des Caching der Ausgabe eines Plugins</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // Objekt $obj aus Datenbank dem Template zuweisen - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Bei folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -Verbleibende Zeit: {remain endtime=$obj->endtime} -]]> - </programlisting> - <para> - Der Wert von $obj->endtime ändert bei jeder Anzeige der Seite, - selbst wenn die Seite gecached wurde. Das Objekt $obj wird nur - geladen wenn die Seite nicht gecached wurde. - </para> - </example> - <example> - <title>Verhindern dass Template Blöcke gecached werden</title> - <programlisting> -<![CDATA[ -index.php: - -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Bei folgendem index.tpl: - </para> - <programlisting> -<![CDATA[ -Seite wurde erzeugt: {"0"|date_format:"%D %H:%M:%S"} - -{dynamic} - -Jetzt ist es: {"0"|date_format:"%D %H:%M:%S"} - -... weitere Ausgaben ... - -{/dynamic} -]]> - - </programlisting> - </example> - <para> - Um sicherzustellen dass ein Teil eines Templates nicht gecached - werden soll, kann dieser Abschnitt in einen {dynamic}...{/dynamic} - Block verpackt werden. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/caching/caching-groups.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> -<sect1 id="caching.groups"> - <title>Cache-Gruppen</title> - <para> - Sie können auch eine feinere Gruppierung vornehmen, indem Sie - 'cache_id'-Gruppen erzeugen. Dies erreichen Sie, indem Sie jede Cache-Untergruppe - durch ein '|'-Zeichen (pipe) in der 'cache_id' abtrennen. Sie können so viele - Untergruppen erstellen, wie Sie möchten. - </para> - <para> - - Man kann Cache-Gruppen wie eine Verzeichnishierarchie - betrachten. Zum Beispiel kann man sich die Cache-Gruppe "a|b|c" als - eine Verzeichnisstruktur "/a/b/c" angesehen weden. clear_cache(null, - 'a|b|c') würde die Dateien '/a/b/c/*' löschen, clear_cache(null, - 'a|b') wäre das Löschen der Dateien '/a/b/*'. Wenn eine Compile-Id - angegeben wurde, wie clear_cache(null, 'a|b', 'foo'), dann wird die - Compile-Id so behandelt, als sei sie an die Cache-Gruppe angehängt, - also wie die Cache-Gruppe '/a/b/foo'. Wenn ein Templatename - angegeben wurde, also wie bei clear_cache('foo.tpl', 'a|b|c'), dann - wir Smarty auch nur '/a/b/c/foo.tpl' löschen. Es ist NICHT möglich, - ein Template unterhalb mehrerer Cache-Gruppen (also - '/a/b/*/foo.tpl') zu löschen. Das Gruppieren der Cache-Gruppen - funktioniert nur von links nach rechts. Man muss die Templates, die - man als eine Gruppe löschen möchte alle unterhalb einer einzigen - Gruppenhierarchy anordnen, um sie als eine Gruppe löschen zu können. - </para> - <para> - - Cache-Gruppen dürfen nicht mit der Hierarchie des - Template-Verzeichnisses verwechselt werden. Die Cache-Gruppen wissen - nicht, wie die Templatehierarchie strukturiert ist. Wenn man - z. B. eine Templatestruktur wir "themes/blue/index.tpl" hat und man - möchte alle Dateien für des "blue"-Theme löschen, dann muss man - händisch eine Cache-Gruppe wie display("themes/blue/index.tpl", - "themes|blue") und kann diese dann mit - clear_cache(null,"themes|blue") löschen. - - </para> - <example> - <title>'cache_id'-Gruppen</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// leere alle Caches welche 'sports|basketball' als erste zwei 'cache_id'-Gruppen enthalten -$smarty->clear_cache(null, 'sports|basketball'); - -// leere alle Caches welche 'sports' als erste 'cache_id'-Gruppe haben. Dies schliesst -// 'sports|basketball', oder 'sports|(anything)|(anything)|(anything)|...' ein -$smarty->clear_cache(null, 'sports'); - -$smarty->display('index.tpl', 'sports|basketball'); -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2977 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> -<sect1 id="caching.multiple.caches"> - <title>Multiple Caches für eine Seite</title> - <para> - Sie können für Aufrufe von <link - linkend="api.display">display()</link> oder <link - linkend="api.fetch">fetch()</link> auch mehrere Caches erzeugen. - Nehmen wir zum Beispiel an, der Aufruf von display('index.tpl') - erzeuge für verschieden Fälle unterschiedliche Inhalte und Sie - wollen jeden dieser Inhalte separat cachen. Um dies zu erreichen, - können Sie eine 'cache_id' beim Funktionsaufruf übergeben. - </para> - <example> - <title>'display()' eine 'cache_id' übergeben</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Im oberen Beispiel übergeben wir die Variable - <parameter>$my_cache_id</parameter> als 'cache_id' an d<link - linkend="api.display">isplay()</link>. Für jede einmalige - <parameter>cache_id</parameter> wird ein eigener Cache von 'index.tpl' - erzeugt. In diesem Beispiel wurde 'article_id' per URL übergeben und - als 'cache_id' verwendet. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Seien Sie vorsichtig, wenn Sie Smarty (oder jeder anderen PHP-Applikation) - Werte direkt vom Client (Webbrowser) übergeben. Obwohl das Beispiel oben - praktisch aussehen mag, kann es schwerwiegende Konsequenzen haben. Die 'cache_id' - wird verwendet, um im Dateisystem ein Verzeichnis zu erstellen. Wenn ein Benutzer - also überlange Werte übergibt oder ein Skript benutzt, das in hohem - Tempo neue 'article_ids' übermittelt, kann dies auf dem Server zu Problemen - führen. Stellen Sie daher sicher, dass Sie alle empfangenen Werte auf - ihre Gültigkeit überprüfen und unerlaubte Sequenzen entfernen. - Sie wissen möglicherweise, dass ihre 'article_id' nur 10 Zeichen lang sein kann, nur - aus alphanumerischen Zeichen bestehen darf und in der Datenbank eingetragen - sein muss. Überpüfen sie das! - </para> - </note> - <para> - Denken Sie daran, Aufrufen von <link linkend="api.is.cached">is_cached()</link> - und <link linkend="api.clear.cache">clear_cache()</link> als zweiten Parameter - die 'cache_id' zu übergeben. - </para> - <example> - <title>'is_cached()' mit 'cache_id' aufrufen</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // kein Cache gefunden, also Variablen zuweisen - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Sie können mit <link linkend="api.clear.cache">clear_cache()</link> - den gesamten Cache einer bestimmten 'cache_id' auf einmal löschen, - wenn Sie als Parameter die 'cache_id' übergeben. - </para> - <example> - <title>Cache einer bestimmten 'cache_id' leeren</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// Cache mit 'sports' als 'cache_id' löschen -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -?> -]]> - </programlisting> - </example> - <para> - Indem Sie allen dieselbe 'cache_id' übergeben, lassen sich Caches gruppieren. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,195 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.6 Maintainer: andreas Status: ready --> - <sect1 id="caching.setting.up"> - <title>Caching einrichten</title> - <para> - Als erstes muss das Caching eingeschaltet werden. Dies erreicht man, indem - <link linkend="variable.caching">$caching</link> = 1 (oder 2) gesetzt wird. - </para> - <example> - <title>Caching einschalten</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Wenn Caching eingeschaltet ist, wird der Funktionsaufruf display('index.tpl') - das Template normal rendern, zur selben Zeit jedoch auch eine Datei mit - dem Inhalt in das <link linkend="variable.cache.dir">$cache_dir</link> schreiben - (als gecachte Kopie). Beim nächsten Aufruf von display('index.tpl') wird die - gecachte Kopie verwendet. - </para> - <note> - <title>Technische Bemerkung</title> - <para> - Die im <link linkend="variable.cache.dir">$cache_dir</link> - abgelegen Dateien haben einen ähnlichen Namen wie das Template, - mit dem sie erzeugt wurden. Obwohl sie eine '.php'-Endung - aufweisen, sind sie keine ausführbaren PHP-Skripte. - Editieren Sie diese Dateien NICHT! - </para> - </note> - <para> - Jede gecachte Seite hat eine Lebensdauer, die von <link - linkend="variable.cache.lifetime">$cache_lifetime</link> bestimmt - wird. Normalerweise beträgt der Wert 3600 Sekunden (= 1 - Stunde). Nach Ablauf dieser Lebensdauer wird der Cache neu - generiert. Sie können die Lebensdauer pro Cache bestimmen indem - Sie <link linkend="variable.caching">$caching</link> auf 2 - setzen. Konsultieren Sie den Abschnitt über <link - linkend="variable.cache.lifetime">$cache_lifetime</link> für - weitere Informationen. - </para> - <example> - <title>'$cache_lifetime' pro Cache einstellen</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // Lebensdauer ist pro Cache - -// Standardwert für '$cache_lifetime' auf 5 Minuten setzen -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// '$cache_lifetime' für 'home.tpl' auf 1 Stunde setzen -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// ACHTUNG: die folgende Zuweisung an '$cache_lifetime' wird nicht funktionieren, -// wenn '$caching' auf 2 gestellt ist. Wenn die '$cache_lifetime' für 'home.tpl' bereits -// auf 1 Stunde gesetzt wurde, werden neue Werte ignoriert. -// 'home.tpl' wird nach dieser Zuweisung immer noch eine '$cache_lifetime' von 1 Stunde haben -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> -</programlisting> - </example> - <para> - Wenn <link linkend="variable.compile.check">$compile_check</link> - eingeschaltet ist, werden alle in den Cache eingeflossenen - Templates und Konfigurationsdateien hinsichtlich ihrer letzten - Änderung überprüft. Falls eine der Dateien seit der Erzeugung des - Cache geändert wurde, wird der Cache unverzüglich neu - generiert. Dadurch ergibt sich ein geringer Mehraufwand. Für - optimale Performance sollte <link - linkend="variable.compile.check">$compile_check</link> deshalb auf - 'false' gesetzt werden. - </para> - <example> - <title>'$compile_check' einschalten</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Wenn <link linkend="variable.force.compile">$force_compile</link> eingeschaltet ist, - werden die Cache-Dateien immer neu generiert und das Caching damit wirkungslos gemacht. - <link linkend="variable.force.compile">$force_compile</link> wird normalerweise nur für die Fehlersuche verwendet. - Ein effizienterer Weg das Caching auszuschalten wäre, - <link linkend="variable.caching">$caching</link> auf 'false' (oder 0) zu setzen. - </para> - <para> - Mit der Funktion <link linkend="api.is.cached">is_cached()</link> kann überprüft - werden, ob von einem Template eine gecachte Version vorliegt. - In einem Template, das zum Beispiel Daten aus einer Datenbank bezieht, - können Sie diese Funktion verwenden, um den Prozess zu überspringen. - </para> - <example> - <title>is_cached() verwenden</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // kein Cache gefunden, also Variablen zuweisen - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Mit der <link linkend="language.function.insert">{insert}</link> Funktion können Sie - Teile einer Seite dynamisch halten. Wenn zum Beispiel ein Banner in einer gecachten Seite - nicht gecached werden soll, kann dessen Aufruf mit <link linkend="language.function.insert">{insert}</link> dynamisch gehalten werden. - Konsultieren Sie den Abschnitt über <link linkend="language.function.insert">insert</link> - für weitere Informationen und Beispiele. - </para> - <para> - Mit der Funktion <link linkend="api.clear.all.cache">clear_all_cache()</link> können - Sie den gesamten Template-Cache löschen. Mit <link linkend="api.clear.cache">clear_cache()</link> - einzelne Templates oder <link linkend="caching.groups">Cache-Gruppen</link>. - </para> - <example> - <title>Cache leeren</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// alle Cache-Dateien löschen -$smarty->clear_all_cache(); - -// nur Cache von 'index.tpl' löschen -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: andreas Status: ready --> - <chapter id="plugins"> - <title>Smarty durch Plugins erweitern</title> - <para> - In Version 2.0 wurde die Plugin-Architektur eingeführt, welche für fast alle anpassbaren Funktionalitäten - verwendet wird. Unter anderem: - <itemizedlist spacing="compact"> - <listitem><simpara>Funktionen</simpara></listitem> - <listitem><simpara>Modifikatoren</simpara></listitem> - <listitem><simpara>Block-Funktionen</simpara></listitem> - <listitem><simpara>Compiler-Funktionen</simpara></listitem> - <listitem><simpara>'pre'-Filter</simpara></listitem> - <listitem><simpara>'post'-Filter</simpara></listitem> - <listitem><simpara>Ausgabefilter</simpara></listitem> - <listitem><simpara>Ressourcen</simpara></listitem> - <listitem><simpara>Inserts</simpara></listitem> - </itemizedlist> - Für die Abwärtskompatibilität wurden das register_* API zur Funktions-Registrierung - beibehalten. Haben Sie früher nicht die API-Funktionen benutzt, sondern die Klassen-Variablen - <literal>$custom_funcs</literal>, <literal>$custom_mods</literal> und andere direkt - geändert, müssen Sie Ihre Skripte so anpassen, dass diese das API verwenden. - Oder sie implementieren die Funktionalitäten alternativ mit Plugins. - - </para> - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: andreas Status: ready --> - <sect1 id="plugins.block.functions"><title>Block-Funktionen</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - <paramdef>boolean <parameter>&$repeat</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Block-Funktionen sind Funktionen, die in der Form {func} .. {/func} notiert - werden. Mit anderen Worten umschliessen sie einen Template-Abschnitt und - arbeiten danach auf dessen Inhalt. Eine Block-Funktion {func} .. {/func} - kann nicht mir einer gleichnamigen Template-Funktion {func} - überschrieben werden. - </para> - <para> - Ihre Funktions-Implementation wird von Smarty zweimal - aufgerufen: einmal für das öffnende und einmal - für das schliessende Tag. (konsultieren Sie den Abschnitt zu <literal>&$repeat</literal> - um zu erfahren wie Sie dies ändern können.) - </para> - <para> - Nur das Öffnungs-Tag kann Attribute enthalten. Alle so übergebenen Attribute - werden als assoziatives Array <parameter>$params</parameter> der Template-Funktion - übergeben. Sie können auf die Werte entweder direkt mit <varname>$params['start']</varname> - zugreifen oder sie mit <varname>extract($params)</varname> in die Symbol-Tabelle - importieren. Die Attribute aus dem Öffnungs-Tag stehen auch beim Aufruf für das - schliessende Tag zur Verfügung. - </para> - <para> - Der Inhalt der <parameter>$content</parameter> Variable hängt davon - ab, ob die Funktion für das öffnende Tag oder für das schliessende - Tag aufgerufen wird. Für das öffnende Tag ist der Wert <literal>null</literal>, - für das schliessende Tag ist es der Inhalt des Template-Abschnitts. - Achtung: Der Template-Abschnitt den Sie erhalten, wurde bereits von - Smarty bearbeitet. Sie erhalten also die Template-Ausgabe, nicht den Template-Quelltext. - </para> - <para> - Der Parameter <parameter>&$repeat</parameter> wird als Referenz übergeben und - kontrolliert wie oft ein Block dargestellt werden soll. Standardwert von <parameter>$repeat</parameter> - ist beim ersten Aufruf (für das öffnende Tag) <literal>true</literal>, danach immer - <literal>false</literal>. - Jedes Mal wenn eine Funktion für <parameter>&$repeat</parameter> TRUE zurück gibt, - wird der Inhalt zwischen {func} .. {/func} erneut mit dem veränderten - Inhalt als <parameter>$content</parameter> Parameter aufgerufen. - </para> - <para> - Wenn Sie verschachtelte Block-Funktionen haben, können Sie - die Eltern-Block-Funktion mit der <varname>$smarty->_tag_stack</varname> Variable - herausfinden. Lassen Sie sich ihren Inhalt mit 'var_dump()' ausgeben. - Die Struktur sollte selbsterklärend sein. - </para> - <para> - - Sehen Sie dazu: - <link linkend="api.register.block">register_block()</link>, - <link linkend="api.unregister.block">unregister_block()</link>. - </para> - <example> - <title>Block-Funktionen</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // den $content irgendwie intelligent übersetzen - return $translation; - } -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.compiler.functions"><title>Compiler-Funktionen</title> - <para> - Compiler-Funktionen werden während der Kompilierung des Template - aufgerufen. Das ist nützlich, um PHP-Code oder zeitkritische statische - Inhalte in ein Template einzufügen. Sind eine Compiler-Funktion und - eine eigene Funktion unter dem selben Namen registriert, wird die - Compiler-Funktion ausgeführt. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Die Compiler-Funktion erhält zwei Parameter: die Tag-Argument Zeichenkette - - also alles ab dem Funktionsnamen bis zum schliessenden Trennzeichen - und - das Smarty Objekt. Gibt den PHP-Code zurück, der in das Template eingefügt werden - soll. - </para> - <para> - - Sehen Sie dazu: - <link linkend="api.register.compiler.function">register_compiler_function()</link>, - <link linkend="api.unregister.compiler.function">unregister_compiler_function()</link>. - </para> - <example> - <title>Einfache Compiler-Funktionen</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - </programlisting> - <para> - - Diese Funktion kann aus dem Template wie folgt aufgerufen werden: - </para> - <programlisting> - - {* diese Funktion wird nur zum Kompilier-Zeitpunkt ausgeführt *} - {tplheader}</programlisting> - <para> - - Der resultierende PHP-Code würde ungefähr so aussehen: - </para> - <programlisting> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.functions"><title>Template-Funktionen</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Alle einer Funktion übergebenen Parameter werden in der Variable - <parameter>$params</parameter> als assoziatives Array abgelegt. Sie können - auf diese Werte entweder direkt mit <varname>$params['start']</varname> zugreifen - oder sie mit <varname>extract($params)</varname> in die Symbol-Tabelle importieren. -</para> -<para> - Die Ausgabe der Funktion wird verwendet, um das Funktions-Tag im Template - (<function>fetch</function> Funktion, zum Beispiel) zu ersetzen. - Alternativ kann sie auch etwas tun, ohne eine Ausgabe zurückzuliefern - (<function>assign</function> Funktion, zum Beispiel). -</para> -<para> - Falls die Funktion dem Template Variablen zuweisen oder - auf eine andere Smarty-Funktionalität zugreifen möchte, kann dazu das - übergebene <parameter>$smarty</parameter> Objekt verwendet werden. -</para> -<para> - - Sehen Sie dazu: - <link linkend="api.register.function">register_function()</link>, - <link linkend="api.unregister.function">unregister_function()</link>. -</para> -<para> - <example> - <title>Funktionsplugin mit Ausgabe</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> - </programlisting> - </example> -</para> -<para> - - Es kann im Template wie folgt angewendet werden: -</para> -<programlisting> - Question: Will we ever have time travel? - Answer: {eightball}.</programlisting> - <para> - <example> - <title>Funktionsplugin ohne Ausgabe</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - if (empty($params['var'])) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - </programlisting> - </example> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.howto"> - <title>Wie Plugins funktionieren</title> - <para> - Plugins werden immer erst bei Bedarf geladen. Nur die im Template - verwendeten Funktionen, Ressourcen, Variablen-Modifikatoren, etc. werden geladen. - Des weiteren wird jedes Plugin nur einmal geladen, selbst wenn mehrere Smarty-Instanzen - im selben Request erzeugt werden. - </para> - <para> - 'pre'/'post'-Filter machen die Ausnahme. Da sie in den Templates nicht direkt - erwähnt werden, müssen sie zu Beginn der Ausführung explizit via API geladen oder - registriert werden. Die Reihenfolge der Anwendung mehrerer Filter desselben Typs - entspricht der Reihenfolge in der sie geladen/registriert wurden. - </para> - <para> - Die <link linkend="variable.plugins.dir">plugins directory</link> Variable kann eine Zeichenkette, - oder ein Array mit Verzeichnisnamen sein. Um einen Plugin zu installieren können Sie ihn einfach - in einem der Verzeichnisse ablegen. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.inserts"><title>Inserts</title> - <para> - Insert-Plugins werden verwendet, um Funktionen zu implementieren, die - via <link linkend="language.function.insert"><command>insert</command></link> aufgerufen werden. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Als erster Parameter wird der Funktion ein assoziatives Array aller Attribute - übergeben, die im Insert-Tag notiert wurden. Sie können - auf diese Werte entweder direkt mit <varname>$params['start']</varname> zugreifen - oder sie mit <varname>extract($params)</varname> importieren. - </para> - <para> - Als Rückgabewert muss das Resultat der Ausführung geliefert werden, - das danach den Platz des <command>insert</command>-Tags im Template einnimmt. - </para> - <example> - <title>Insert-Plugin</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.modifiers"><title>Variablen-Modifikatoren</title> - <para> - Variablen-Modifikatoren sind kleine Funktionen, die auf eine Variable angewendet - werden, bevor sie ausgegeben oder weiterverwendet wird. Variablen-Modifikatoren können - aneinadergereiht werden. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - Der erste an das Modifikator-Plugin übergebene Parameter ist der - Wert mit welchem er arbeiten soll. Die restlichen Parameter sind optional - und hängen von den durchzuführenden Operationen ab. - </para> - <para> - - Der Modifikator muss das Resultat seiner Verarbeitung zurückgeben. - </para> - <para> - Sehen Sie dazu: - <link linkend="api.register.modifier">register_modifier()</link>, - <link linkend="api.unregister.modifier">unregister_modifier()</link>. - </para> - <example> - <title>Einfaches Modifikator-Plugin</title> - <para> - Dieses Plugin dient als Alias einer PHP-Funktion und erwartet keine - zusätzlichen Parameter. - </para> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>Komplexes Modifikator-Plugin</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.naming.conventions"> - <title>Namenskonvention</title> - <para> - Plugin-Dateien müssen einer klaren Namenskonvention gehorchen, - um von Smarty erkannt zu werden. - </para> - <para> - - Die Plugin-Dateien müssen wie folgt benannt werden: - <blockquote> - <para> - <filename> - <replaceable>type</replaceable>.<replaceable>name</replaceable>.php - </filename> - </para> - </blockquote> - </para> - <para> - - Wobei <literal>Typ</literal> einen der folgenden Werte haben kann: - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - <para> - und <literal>Name</literal> ein erlaubter Identifikator (bestehend - aus Buchstaben, Zahlen und Unterstrichen) ist. - </para> - <para> - Ein paar Beispiele: <literal>function.html_select_date.php</literal>, - <literal>resource.db.php</literal>, - <literal>modifier.spacify.php</literal>. - </para> - <para> - - Die Plugin-Funktion innerhalb das Plugin-Datei muss wie folgt benannt werden: - <blockquote> - <para> - <function>smarty_<replaceable>type</replaceable>_<replaceable>name</replaceable></function> - </para> - </blockquote> - </para> - <para> - <literal>type</literal> und <literal>name</literal> haben die selbe Bedeutung wie bei den Plugin-Dateien. - </para> - <para> - Smarty gibt Fehlermeldungen aus, falls ein aufgerufenes Plugin nicht existiert, - oder eine Datei mit falscher Namensgebung im Verzeichnis gefunden wurde. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.outputfilters"><title>Ausgabefilter</title> - <para> - Ausgabefilter werden auf das Template direkt vor der Ausgabe angewendet, - nachdem es geladen und ausgeführt wurde. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Als erster Parameter wird die Template-Ausgabe übergeben, welche - verarbeitet werden soll und als zweiter Parameter das Smarty-Objekt. - Das Plugin muss danach die verarbeitete Template-Ausgabe zurückgeben. - </para> - <example> - <title>Ausgabefilter Plugin</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,104 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.prefilters.postfilters"> - <title>'pre'/'post'-Filter</title> - <para> - 'pre'-Filter und 'post'-Filter folgen demselben Konzept. Der - einzige Unterschied ist der Zeitpunkt der Ausführung. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - 'pre'-Filter werden verwendet, um die Quellen eines Templates direkt - vor der Kompilierung zu verarbeiten. Als erster Parameter wird die - Template-Quelle, die möglicherweise bereits durch eine weiteren 'pre'-Filter - bearbeitet wurden, übergeben. Das Plugin muss den resultierenden Wert - zurückgeben. Achtung: Diese Werte werden nicht gespeichert und nur - zum Kompilier-Zeitpunkt verwendet. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - 'post'-Filter werden auf die kompilierte Ausgabe direkt vor dem Speichern - angewendet. Als erster Parameter wird der kompilierte Template-Code - übergeben, der möglicherweise zuvor von anderen 'post'-Filtern - bearbeitet wurde. Das Plugin muss den veränderten Template-Code zurückgeben. - </para> - <example> - <title>'pre'-Filter Plugin</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>'post'-Filter Plugin</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.resources"><title>Ressourcen</title> - <para> - Ressourcen-Plugins stellen einen generischen Weg dar, um Smarty mit - Template-Quellen oder PHP-Skripten zu versorgen. Einige Beispiele von Ressourcen: - Datenbanken, LDAP, shared Memory, Sockets, usw. - </para> - - <para> - Für jeden Ressource-Typ müssen 4 Funktionen registriert werden. Jede dieser - Funktionen erhält die verlangte Ressource als ersten Parameter und das Smarty Objekt - als letzten. Die restlichen Parameter hängen von der Funktion ab. - </para> - - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - Die erste Funktion wird verwendet, um die Ressource zu laden. Der - zweite Parameter ist eine Variable, die via Referenz übergeben - wird und in der das Resultat gespeichert werden soll. Die Funktion - gibt <literal>true</literal> zurück, wenn der Ladevorgang erfolgreich war - - andernfalls <literal>false</literal>. - </para> - - <para> - Die zweite Funktion fragt das letzte Änderungsdatum der angeforderten - Ressource (als Unix-Timestamp) ab. Der zweite Parameter ist die Variable, - welche via Referenz übergeben wird und in der das Resultat gespeichert werden soll. - Gibt <literal>true</literal> zurück, wenn das Änderungsdatum ermittelt - werden konnte und <literal>false</literal> wenn nicht. - </para> - - <para> - Die dritte Funktion gibt <literal>true</literal> oder <literal>false</literal> - zurück, je nachdem ob die angeforderte Ressource als sicher bezeichnet wird - oder nicht. Diese Funktion wird nur für Template-Ressourcen verwendet, - sollte aber in jedem Fall definiert werden. - </para> - - <para> - Die vierte Funktion gibt <literal>true</literal> oder <literal>false</literal> - zurück, je nachdem ob die angeforderte Ressource als vertrauenswürdig angesehen wird - oder nicht. Diese Funktion wird nur verwendet, wenn PHP-Skripte via <command>include_php</command> - oder <command>insert</command> eingebunden werden sollen und ein 'src' Attribut übergeben wurde. - Die Funktion sollte aber in jedem Fall definiert werden. - </para> - <para> - Sehen Sie dazu: - <link linkend="api.register.resource">register_resource()</link>, - <link linkend="api.unregister.resource">unregister_resource()</link>. - </para> - <example> - <title>Ressourcen Plugin</title> - <programlisting> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // do database call here to fetch your template, - // populating $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // do database call here to populate $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // assume all templates are secure - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // not used for templates -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> - <sect1 id="plugins.writing"> - <title>Plugins schreiben</title> - <para> - Plugins können von Smarty automatisch geladen oder - zur Laufzeit dynamisch mit den register_* API-Funktionen - registriert werden. Um registrierte Plugins wieder zu entfernen, - können die unregister_* API-Funktionen verwendet werden. - </para> - <para> - Bei Plugins, die zur Laufzeit geladen werden, müssen keine Namenskonventionen - beachtet werden. - </para> - <para> - Wenn ein Plugin auf die Funktionalität eines anderen Plugins angewiesen - ist (wie dies bei manchen Smarty Standard-Plugins der Fall ist), sollte - folgender Weg gewählt werden, um das benötigte Plugin zu laden: - </para> - <programlisting> -<![CDATA[ -<?php -require_once $smarty->_get_plugin_filepath('function', 'html_options'); -?> -]]> -</programlisting> - <para> - Das Smarty Objekt wird jedem Plugin immer als letzter Parameter - übergeben (ausser bei Variablen-Modifikatoren und bei Blücken wird - <parameter>&$repeat</parameter> nach dem Smarty Objekt übergeben um Rückwärtskompatibel zu bleiben). - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/de/programmers/smarty-constants.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2978 $ --> -<!-- EN-Revision: 1.8 Maintainer: andreas Status: ready --> -<chapter id="smarty.constants"> - <title>Konstanten</title> - - <sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - Definiert den <emphasis role="bold">absoluten - Systempfad</emphasis> zu den Smarty Klassendateien. Falls der Wert - nicht definiert ist, versucht Smarty ihn automatisch zu ermitteln. - <emphasis role="bold">Der Pfad muss mit einem '/'-Zeichen - enden</emphasis>. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting> -<![CDATA[ -<?php -// Pfad zum Smarty Verzeichnis setzen -define('SMARTY_DIR', '/usr/local/lib/php/Smarty/libs/'); - -// Pfad zum Smarty Verzeichnis setzen (unter Windows) -define('SMARTY_DIR', 'c:/usr/local/lib/php/Smarty/libs/'); - -// Smarty einbinden (der Dateiname beginnt mit großem 'S') -require_once(SMARTY_DIR . 'Smarty.class.php'); -?> -]]> - </programlisting> - </example> - <para> - Siehe auch <link - linkend="language.variables.smarty.const">$smarty.const</link> und - <link linkend="variable.php.handling">$php_handling - constants</link> - </para> - </sect1> - <sect1 id="constant.smarty.core.dir"> - <title>SMARTY_CORE_DIR</title> - <para> - Dies ist der absolute Systempfad zu den Smarty Kerndateien. Wenn - nicht vorher definiert, dann definiert Smarty diesen Wert mit - <emphasis>internals/</emphasis> unterhalb des Verzeichniss <link - linkend="constant.smarty.dir">SMARTY_DIR</link>. Wenn angegeben, - dann muss dieser Wert mit einem '/' enden. - </para> - <example> - <title>SMARTY_CORE_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Laden von core.get_microtime.php -require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - -?> -]]> - </programlisting> - </example> - <para> - Siehe auch: - <link linkend="language.variables.smarty.const">$smarty.const</link> - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/appendixes/bugs.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <chapter id="bugs"> - <title>BUGS</title> - <para> - Check the <filename>BUGS</filename> file that comes with - the latest distribution of Smarty, or check the website. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/appendixes/resources.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<chapter id="inforesources"> - <title>Resources</title> - <para>Smarty's homepage is located at - <ulink url="&url.smarty;">&url.smarty;</ulink> - </para> - - <itemizedlist> - - <listitem><para> - You can join the mailing list by sending an e-mail to - <literal>&ml.general.sub;</literal>. An archive of the mailing list can - be viewed at <ulink url="&url.ml.archive;">here</ulink> - </para></listitem> - - <listitem><para> - Forums are at <ulink url="&url.forums;">&url.forums;</ulink> - </para></listitem> - - <listitem><para> - The wiki is located at <ulink url="&url.wiki;">&url.wiki;</ulink> - </para></listitem> - - <listitem><para> - Join the chat at <ulink url="&url.wiki;">irc.freenode.net#smarty</ulink> - </para></listitem> - - <listitem><para> - FAQ's are <ulink url="&url.faq_1;">here</ulink> and <ulink url="&url.faq_2;">here</ulink> - </para></listitem> - - </itemizedlist> - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/appendixes/tips.xml
Deleted
@@ -1,448 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4335 $ --> - <chapter id="tips"> - <title>Tips & Tricks</title> - <para> - </para> - <sect1 id="tips.blank.var.handling"> - <title>Blank Variable Handling</title> - <para> - There may be times when you want to print a default value for an empty - variable instead of printing nothing, such as printing - <literal>&nbsp;</literal> so that - html table backgrounds work properly. Many would use an - <link linkend="language.function.if"><varname>{if}</varname></link> - statement to handle this, but there is a shorthand way with Smarty, using - the <link linkend="language.modifier.default"><varname>default</varname></link> - variable modifier. - <note> - <para><quote>Undefined variable</quote> errors will show an E_NOTICE if not disabled - in PHP's <ulink url="&url.php-manual;error_reporting"><varname>error_reporting()</varname></ulink> level or Smarty's <link linkend="variable.error.reporting"><parameter>$error_reporting</parameter></link> property - and a variable had not been assigned to Smarty. - </para> - </note> - </para> - - <example> - <title>Printing &nbsp; when a variable is empty</title> - <programlisting> -<![CDATA[ -{* the long way *} -{if $title eq ''} - -{else} - {$title} -{/if} - -{* the short way *} -{$title|default:' '} -]]> - </programlisting> - </example> -<para> -See also <link linkend="language.modifier.default"> -<varname>default</varname></link> modifier and -<link linkend="tips.default.var.handling">default variable handling</link>. -</para> - </sect1> - - - <sect1 id="tips.default.var.handling"> - <title>Default Variable Handling</title> - <para> - If a variable is used frequently throughout your templates, applying - the <link linkend="language.modifier.default"><varname>default</varname> - </link> modifier every time it is mentioned can get a bit ugly. You - can remedy this by assigning the variable its default value with the - <link linkend="language.function.assign"><varname>{assign}</varname></link> - function. - </para> - <example> - <title>Assigning a template variable its default value</title> - <programlisting> -<![CDATA[ -{* do this somewhere at the top of your template *} -{assign var='title' value=$title|default:'no title'} - -{* if $title was empty, it now contains the value "no title" when you use it *} -{$title} -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.modifier.default"><varname>default</varname></link> - modifier and <link linkend="tips.blank.var.handling">blank variable handling</link>. - </para> - </sect1> - - <sect1 id="tips.passing.vars"> - <title>Passing variable title to header template</title> - <para> - When the majority of your templates use the same headers and footers, it - is common to split those out into their own templates and - <link linkend="language.function.include"> - <varname>{include}</varname></link> them. - But what if the header needs to have a different title, depending on - what page you are coming from? You can pass the title to the header - as an <link linkend="language.syntax.attributes">attribute</link> when - it is included. - </para> - - <example> - <title>Passing the title variable to the header template</title> - - <para> - <filename>mainpage.tpl</filename> - When the main page is drawn, - the title of <quote>Main Page</quote> is passed to the - <filename>header.tpl</filename>, and will subsequently be used as the title. - </para> - <programlisting> -<![CDATA[ -{include file='header.tpl' title='Main Page'} -{* template body goes here *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>archives.tpl</filename> - When the - archives page is drawn, the title will be <quote>Archives</quote>. - Notice in the archive example, we are using a variable from the - <filename>archives_page.conf</filename> - file instead of a hard coded variable. - </para> - <programlisting> -<![CDATA[ -{config_load file='archive_page.conf'} - -{include file='header.tpl' title=#archivePageTitle#} -{* template body goes here *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>header.tpl</filename> - Notice that <quote>Smarty News</quote> is - printed if the <literal>$title</literal> variable is not set, using the - <link linkend="language.modifier.default"><varname>default</varname></link> - variable modifier. - </para> - <programlisting> -<![CDATA[ -<html> -<head> -<title>{$title|default:'Smarty News'}</title> -</head> -<body> -]]> - </programlisting> - - <para> - <filename>footer.tpl</filename> - </para> - <programlisting> -<![CDATA[ -</body> -</html> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.dates"> - <title>Dates</title> - <para> - As a rule of thumb, always pass dates to Smarty as - <ulink url="&url.php-manual;time">timestamps</ulink>. This - allows template designers to use the <link - linkend="language.modifier.date.format"><varname>date_format</varname> - </link> modifier for full control over date formatting, and also makes it - easy to compare dates if necessary. - </para> - <example> - <title>Using date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -Jan 4, 2009 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -2009/01/04 -]]> - </screen> - <para> - Dates can be compared in the template by timestamps with: - </para> - <programlisting> -<![CDATA[ -{if $order_date < $invoice_date} - ...do something.. -{/if} -]]> - </programlisting> - </example> - <para> - When using <link linkend="language.function.html.select.date"> - <varname>{html_select_date}</varname></link> in a template, the programmer - will most likely want to convert the output from the form back into - timestamp format. Here is a function to help you with that. - </para> - <example> - <title>Converting form date elements back to a timestamp</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// this assumes your form elements are named -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year, $startDate_Month, $startDate_Day); - -function makeTimeStamp($year='', $month='', $day='') -{ - if(empty($year)) { - $year = strftime('%Y'); - } - if(empty($month)) { - $month = strftime('%m'); - } - if(empty($day)) { - $day = strftime('%d'); - } - - return mktime(0, 0, 0, $month, $day, $year); -} -?> -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="language.function.html.select.date"> - <varname>{html_select_date}</varname></link>, - <link linkend="language.function.html.select.time"> - <varname>{html_select_time}</varname></link>, - <link linkend="language.modifier.date.format"> - <varname>date_format</varname></link> - and <link linkend="language.variables.smarty.now"> - <parameter>$smarty.now</parameter></link>, - </para> - </sect1> - - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - WAP/WML templates require a php - <ulink url="&url.php-manual;header">Content-Type header</ulink> - to be passed along - with the template. The easist way to do this would be to write a custom - function that prints the header. If you are using - <link linkend="caching">caching</link>, that won't - work so we'll do it using the - <link linkend="language.function.insert"><varname>{insert}</varname></link> - tag; remember <varname>{insert}</varname> tags are not - cached! Be sure that there is nothing output to the browser before the - template, or else the header may fail. - </para> - <example> - <title>Using {insert} to write a WML Content-Type header</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// be sure apache is configure for the .wml extensions! -// put this function somewhere in your application, or in Smarty.addons.php -function insert_header($params) -{ - // this function expects $content argument - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} - -?> -]]> - </programlisting> - <para> - your Smarty template <emphasis>must</emphasis> begin with the insert tag : - </para> - <programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- begin new wml deck --> -<wml> - <!-- begin first card --> - <card> - <do type="accept"> - <go href="#two"/> - </do> - <p> - Welcome to WAP with Smarty! - Press OK to continue... - </p> - </card> - <!-- begin second card --> - <card id="two"> - <p> - Pretty easy isn't it? - </p> - </card> -</wml> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.componentized.templates"> - <title>Componentized Templates</title> - <para> - Traditionally, programming templates into your applications goes as - follows: First, you accumulate your variables within your PHP - application, (maybe with database queries.) Then, you instantiate your - Smarty object, <link linkend="api.assign"><varname>assign()</varname></link> - the variables and <link linkend="api.display"><varname>display()</varname> - </link> the template. So lets - say for example we have a stock ticker on our template. We would - collect the stock data in our application, then assign these variables - in the template and display it. Now wouldn't it be nice if you could - add this stock ticker to any application by merely including the - template, and not worry about fetching the data up front? - </para> - <para> - You can do this by writing a custom plugin for fetching the content and - assigning it to a template variable. - </para> - <example> - <title>componentized template</title> - <para> - <filename>function.load_ticker.php</filename> - - drop file in - <link linkend="variable.plugins.dir"> - <parameter>$plugins directory</parameter></link> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// setup our function for fetching stock data -function fetch_ticker($symbol) -{ - // put logic here that fetches $ticker_info - // from some ticker resource - return $ticker_info; -} - -function smarty_function_load_ticker($params, $smarty) -{ - // call the function - $ticker_info = fetch_ticker($params['symbol']); - - // assign template variable - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{load_ticker symbol='SMARTY' assign='ticker'} - -Stock Name: {$ticker.name} Stock Price: {$ticker.price} -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link> - and - <link linkend="language.function.php"><varname>{php}</varname></link>. - </para> - </sect1> - - <sect1 id="tips.obfuscating.email"> - <title>Obfuscating E-mail Addresses</title> - <para> - Do you ever wonder how your email address gets on so many spam mailing - lists? One way spammers collect email addresses is from web pages. To - help combat this problem, you can make your email address show up in - scrambled javascript in the HTML source, yet it it will look and work - correctly in the browser. This is done with the - <link linkend="language.function.mailto"> - <varname>{mailto}</varname></link> plugin. - </para> - <example> - <title>Example of template the Obfuscating an email address</title> - <programlisting> -<![CDATA[ -<div id="contact">Send inquiries to -{mailto address=$EmailAddress encode='javascript' subject='Hello'} -</div> -]]> - </programlisting> - </example> - <note> - <title>Technical Note</title> - <para> - This method isn't 100% foolproof. A spammer could conceivably program his - e-mail collector to decode these values, but not likely.... - hopefully..yet ... wheres that quantum computer :-?. - </para> - </note> - <para> - See also - <link linkend="language.modifier.escape"><varname>escape</varname></link> - modifier and - <link linkend="language.function.mailto"><varname>{mailto}</varname></link>. - </para> - </sect1> - </chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/appendixes/troubleshooting.xml
Deleted
@@ -1,216 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4362 $ --> - <chapter id="troubleshooting"> - <title>Troubleshooting</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Smarty/PHP errors</title> - <para> - Smarty can catch many errors such as missing tag attributes - or malformed variable names. If this happens, you will see an error - similar to the following: - </para> - <example> - <title>Smarty errors</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041 -]]> - </screen> - </example> - <para> - Smarty shows you the template name, the line number and the error. - After that, the error consists of the actual line number in the Smarty - class that the error occured. - </para> - - <para> - There are certain errors that Smarty cannot catch, such as missing - close tags. These types of errors usually end up in PHP compile-time - parsing errors. - </para> - - <example> - <title>PHP parsing errors</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 -]]> - </screen> - </example> - - <para> - When you encounter a PHP parsing error, the error line number will - correspond to the compiled PHP script, NOT the template itself. Usually - you can look at the template and spot the syntax error. Here are some - common things to look for: missing close tags for - <link linkend="language.function.if"><varname>{if}{/if}</varname></link> or - <link linkend="language.function.if"><varname>{section}{/section}</varname> - </link>, or syntax of logic within an <varname>{if}</varname> tag. If you - can't find the error, you might have to open the compiled PHP file and - go to the line number to figure out where the corresponding error is in - the template. - </para> - - - <example> - <title>Other common errors</title> - -<screen> -<![CDATA[ -Warning: Smarty error: unable to read resource: "index.tpl" in... -or -Warning: Smarty error: unable to read resource: "site.conf" in... -]]> -</screen> - <para> - <itemizedlist> - <listitem> - <para> - The <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> is incorrect, doesn't exist or - the file <filename>index.tpl</filename> is not in the - <filename class="directory">templates/</filename> directory - </para> - </listitem> - <listitem> - <para> - A <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link> - function is within a template (or - <link linkend="api.config.load"><varname>configLoad()</varname></link> - has been called) and either - <link linkend="variable.config.dir"><parameter>$config_dir</parameter> - </link> is incorrect, does not exist or - <filename>site.conf</filename> is not in the directory. - </para> - </listitem> - - </itemizedlist> - </para> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, -or is not a directory... -]]> - </screen> - <itemizedlist> - <listitem> - <para> - Either the - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link>is incorrectly set, - the directory does not exist, or <filename>templates_c</filename> is a - file and not a directory. - </para> - </listitem> - </itemizedlist> - - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $compile_dir '.... -]]> - </screen> - <itemizedlist> - <listitem> - <para> - The <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> is not writable by the web server. - See the bottom of the - <link linkend="installing.smarty.basic">installing smarty</link> page - for more about permissions. - </para> - </listitem> -</itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $cache_dir 'cache' does not exist, -or is not a directory. in /.. -]]> - </screen> - <itemizedlist> - <listitem> - <para> - This means that - <link linkend="variable.caching"> - <parameter>$caching</parameter></link> is enabled and either; - the - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - is incorrectly set, the directory does not exist, - or <filename>cache/</filename> is a - file and not a directory. - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $cache_dir '/... -]]> - </screen> - - <itemizedlist> - <listitem> - <para> - This means that - <link linkend="variable.caching"><parameter>$caching</parameter></link> is - enabled and the <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> - is not writable by the web server. See the bottom of the - <link linkend="installing.smarty.basic">installing smarty</link> page - for permissions. - </para> - </listitem> - </itemizedlist> - <screen> -<![CDATA[ -Warning: filemtime(): stat failed for /path/to/smarty/cache/3ab50a623e65185c49bf17c63c90cc56070ea85c.one.tpl.php -in /path/to/smarty/libs/sysplugins/smarty_resource.php -]]> - </screen> - <itemizedlist> - <listitem> - <para> - This means that your application registered a custom error hander (using <ulink url="&url.php-manual;set_error_handler">set_error_handler()</ulink>) - which is not respecting the given <literal>$errno</literal> as it should. If, for whatever reason, this is the desired behaviour of your custom - error handler, please call <link linkend="api.mute.expected.errors"><varname>muteExpectedErrors()</varname></link> after you've registered your - custom error handler. - </para> - </listitem> - </itemizedlist> - </example> - - <para> - See also - <link linkend="chapter.debugging.console">debugging</link>. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/bookinfo.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4289 $ --> -<bookinfo id="bookinfo"> - <title>Smarty - the compiling PHP template engine</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname> - <surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Uwe</firstname> - <surname>Tews <uwe dot tews at googlemail dot com></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2011</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/chapter-debugging-console.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="chapter.debugging.console"> - <title>Debugging Console</title> - <para> - There is a debugging console included with Smarty. The console informs you - of all the - <link linkend="language.function.include">included</link> templates, - <link linkend="api.assign">assigned</link> variables and - <link linkend="language.config.variables">config</link> - file variables for the current invocation of the template. A template file - named <literal>debug.tpl</literal> is included with the distribution of - Smarty which controls the formatting of the console. - </para> - <para> - Set <link linkend="variable.debugging"><parameter>$debugging</parameter></link> - to &true; in Smarty, and if needed set <link linkend="variable.debug_template"> - <parameter>$debug_tpl</parameter></link> to the template resource path to - <literal>debug.tpl</literal> (this is in <link linkend="constant.smarty.dir"> - <constant>SMARTY_DIR</constant></link> by default). - When you load the page, a Javascript console window will pop up - and give you the names of all the included templates and assigned variables - for the current page.</para> - <para>To see the available variables for a particular - template, see the <link linkend="language.function.debug"> - <varname>{debug}</varname></link> template function. - To disable the debugging console, set - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> to - &false;. You can also temporarily turn on the debugging console by putting - <literal>SMARTY_DEBUG</literal> in the URL if you enable this option with - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter> - </link>. - </para> - <note> - <title>Technical Note</title> - <para> - The debugging console does not work when you use the - <link linkend="api.fetch"><varname>fetch()</varname></link> - API, only when using <link linkend="api.display"> - <varname>display()</varname></link>. - It is a set of javascript statements added - to the very bottom of the generated template. If you do not like javascript, - you can edit the <literal>debug.tpl</literal> template to format the output - however you like. Debug data is not cached and <literal>debug.tpl</literal> - info is not included in the output of the debug console. - </para> - </note> - <note> - <para> - The load times of each template and config file are in seconds, or - fractions thereof. - </para> - </note> - <para> - See also - <link linkend="troubleshooting">troubleshooting</link>. - </para> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/config-files.xml
Deleted
@@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<chapter id="config.files"> - <title>Config Files</title> - <para> - Config files are handy for designers to manage global template - variables from one file. One example is template colors. Normally - if you wanted to change the color scheme of an application, you - would have to go through each and every template file and change the - colors. With a config file, the colors can be kept in one place, and - only one file needs to be updated. - </para> - <example> - <title>Example of config file syntax</title> - <programlisting> -<![CDATA[ -# global variables -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[Customer] -pageTitle = "Customer Info" - -[Login] -pageTitle = "Login" -focus = "username" -Intro = """This is a value that spans more - than one line. you must enclose - it in triple quotes.""" - -# hidden section -[.Database] -host=my.example.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]> - </programlisting> - </example> - <para> - Values of <link linkend="language.config.variables">config file - variables</link> can be in quotes, but not necessary. You can use - either single or double quotes. If you have a value that spans more - than one line, enclose the entire value with triple quotes - ("""). You can put comments into config files by any syntax that is - not a valid config file syntax. We recommend using a <literal> - #</literal> (hash) at the beginning of the line. - </para> - <para> - The example config file above has two sections. Section names are - enclosed in [brackets]. Section names can be arbitrary strings not - containing <literal>[</literal> or <literal>]</literal> symbols. The - four variables at the top are global variables, or variables not - within a section. These variables are always loaded from the config - file. If a particular section is loaded, then the global variables - and the variables from that section are also loaded. If a variable - exists both as a global and in a section, the section variable is - used. If you name two variables the same within a section, the last - one will be used unless <link linkend="variable.config.overwrite"> - <parameter>$config_overwrite</parameter></link> is disabled. - </para> - <para> - Config files are loaded into templates with the built-in template function - <link linkend="language.function.config.load"><varname> - {config_load}</varname></link> or the API <link - linkend="api.config.load"><varname>configLoad()</varname></link> function. - </para> - <para> - You can hide variables or entire sections by prepending the variable - name or section name with a period(.) eg <literal>[.hidden]</literal>. This is useful if your - application reads the config files and gets sensitive data from them - that the template engine does not need. If you have third parties - doing template editing, you can be certain that they cannot read - sensitive data from the config file by loading it into the template. - </para> - <para> - Config files (or resources) are loaded by the same resource facilities as templates. - That means that a config file can also be loaded from a db <literal>$smarty->configLoad("db:my.conf")</literal>. - </para> - <para> - See also - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link>, - <link linkend="variable.default.config.handler.func"><parameter>$default_config_handler_func</parameter></link>, - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link>, - <link linkend="api.clear.config"><varname>clearConfig()</varname></link> - and - <link linkend="api.config.load"><varname>configLoad()</varname></link> - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="language.basic.syntax"> - <title>Basic Syntax</title> - <para> - All Smarty template tags are enclosed within delimiters. By - default these are <literal>{</literal> and - <literal>}</literal>, but they can be <link linkend="variable.left.delimiter">changed</link>. - </para> - <para> - For the examples in this manual, we will assume that you are using the default - delimiters. In Smarty, all content outside of delimiters is displayed as - static content, or unchanged. When Smarty encounters template tags, it - attempts to interpret them, and displays the appropriate output in their - place. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.escaping"> - <title>Escaping Smarty Parsing</title> - <para> - It is sometimes desirable or even necessary to have Smarty ignore sections it - would otherwise parse. A classic example is embedding Javascript or CSS code in - a template. The problem arises as those languages use the { and } characters - which are also the default - <link linkend="language.function.ldelim">delimiters</link> for Smarty. - </para> - - <note><para> - A good practice for avoiding escapement altogether is by separating your Javascript/CSS - into their own files and use standard HTML methods to access them. This will also take - advantage of browser script caching. When you need to embed Smarty variables/functions - into your Javascript/CSS, then the following applies. - </para></note> - - <para> - In Smarty templates, the { and } braces will be ignored so long as they are surrounded by white space. - This behavior can be disabled by setting the Smarty class variable <link linkend="variable.auto.literal"><parameter>$auto_literal</parameter></link> to false. - </para> - - <example> - <title>Using the auto-literal feature</title> - <programlisting> -<![CDATA[ -<script> - // the following braces are ignored by Smarty - // since they are surrounded by whitespace - function foobar { - alert('foobar!'); - } - // this one will need literal escapement - {literal} - function bazzy {alert('foobar!');} - {/literal} -</script> -]]> - </programlisting> - </example> - - <para> - <link linkend="language.function.literal"> - <varname>{literal}..{/literal}</varname></link> blocks are used for escaping blocks of template logic. - You can also escape the braces individually with <link linkend="language.function.ldelim"><varname>{ldelim}</varname></link>,<link linkend="language.function.ldelim"><varname>{rdelim}</varname></link> tags or <link linkend="language.variables.smarty.ldelim"> - <varname>{$smarty.ldelim}</varname>,<varname>{$smarty.rdelim}</varname></link> variables. - </para> - - <para> - Smarty's default delimiters { and } cleanly represent presentational content. However if another set of delimiters suit your - needs better, you can change them with Smarty's <link linkend="variable.left.delimiter"> - <parameter>$left_delimiter</parameter></link> and - <link linkend="variable.right.delimiter"> - <parameter>$right_delimiter</parameter></link> values. - <note> - <para> - Changing delimiters affects ALL template syntax and escapement. Be sure to clear out cache and compiled files - if you decide to change them. - </para> - </note> - </para> - <example> - <title>changing delimiters example</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - Where the template is: - </para> - <programlisting> -<![CDATA[ -Welcome <!--{$name}--> to Smarty -<script language="javascript"> - var foo = <!--{$foo}-->; - function dosomething() { - alert("foo is " + foo); - } - dosomething(); -</script> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.math"> - <title>Math</title> - <para> - Math can be applied directly to variable values. - </para> - <example> - <title>math examples</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* some more complicated examples *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> - - <note><para> - Although Smarty can handle some very complex expressions and syntax, it is a good rule of - thumb to keep the template syntax minimal and focused on presentation. If you find your - template syntax getting too complex, it may be a good idea to move the bits that do not - deal explicitly with presentation to PHP by way of plugins or modifiers. - </para></note> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> -<sect1 id="language.syntax.attributes"> - <title>Attributes</title> - <para> - Most of the <link linkend="language.syntax.functions">functions</link> - take attributes that specify or modify - their behavior. Attributes to Smarty functions are much like HTML - attributes. Static values don't have to be enclosed in quotes, but it - is required for literal strings. Variables with or without modifiers may also be used, and - should not be in quotes. You can even use PHP function results, plugin results and complex expressions. - </para> - <para> - Some attributes require boolean values (&true; or &false;). These - can be specified - as <literal>true</literal> and <literal>false</literal>. If an attribute has no value assigned - it gets the default boolean value of true. - </para> - <example> - <title>function attribute syntax</title> - <programlisting> -<![CDATA[ -{include file="header.tpl"} - -{include file="header.tpl" nocache} // is equivalent to nocache=true - -{include file="header.tpl" attrib_name="attrib value"} - -{include file=$includeFile} - -{include file=#includeFile# title="My Title"} - -{assign var=foo value={counter}} // plugin result - -{assign var=foo value=substr($bar,2,5)} // PHP function result - -{assign var=foo value=$bar|strlen} // using modifier - -{assign var=foo value=$buh+$bar|strlen} // more complex expression - -{html_select_date display_days=true} - -{mailto address="smarty@example.com"} - -<select name="company_id"> - {html_options options=$companies selected=$company_id} -</select> -]]> - </programlisting> - </example> - - <note><para> - Although Smarty can handle some very complex expressions and syntax, it is a good rule of - thumb to keep the template syntax minimal and focused on presentation. If you find your - template syntax getting too complex, it may be a good idea to move the bits that do not - deal explicitly with presentation to PHP by way of plugins or modifiers. - </para></note> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.syntax.comments"> - <title>Comments</title> - <para> - Template comments are surrounded by asterisks, and that is surrounded - by the - <link linkend="variable.left.delimiter">delimiter</link> - tags like so: - </para> - <informalexample> - <programlisting> -<![CDATA[ -{* this is a comment *} -]]> - </programlisting> - </informalexample> - <para> - Smarty comments are NOT displayed in the final output of the template, - unlike <literal><!-- HTML comments --></literal>. - These are useful for making internal notes in the templates which no one will see ;-) - </para> - <example> - <title>Comments within a template</title> - <programlisting> -<![CDATA[ -{* I am a Smarty comment, I don't exist in the compiled output *} -<html> -<head> -<title>{$title}</title> -</head> -<body> - -{* another single line smarty comment *} -<!-- HTML comment that is sent to the browser --> - -{* this multiline smarty - comment is - not sent to browser -*} - -{********************************************************* -Multi line comment block with credits block - @ author: bg@example.com - @ maintainer: support@example.com - @ para: var that sets block style - @ css: the style output -**********************************************************} - -{* The header file with the main logo and stuff *} -{include file='header.tpl'} - - -{* Dev note: the $includeFile var is assigned in foo.php script *} -<!-- Displays main content block --> -{include file=$includeFile} - -{* this <select> block is redundant *} -{* -<select name="company"> - {html_options options=$vals selected=$selected_id} -</select> -*} - -<!-- Show header from affiliate is disabled --> -{* $affiliate|upper *} - -{* you cannot nest comments *} -{* -<select name="company"> - {* <option value="0">-- none -- </option> *} - {html_options options=$vals selected=$selected_id} -</select> -*} - -</body> -</html> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.syntax.functions"> - <title>Functions</title> - <para> - Every Smarty tag either prints a - <link linkend="language.variables">variable</link> or invokes some sort - of function. These are processed and displayed by enclosing the - function and its - <link linkend="language.syntax.attributes">attributes</link> - within delimiters like so: - <literal>{funcname attr1="val1" attr2="val2"}</literal>. - </para> - <example> - <title>function syntax </title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf"} - -{include file="header.tpl"} -{insert file="banner_ads.tpl" title="My Site"} - -{if $logged_in} - Welcome, <span style="color:{#fontColor#}">{$name}!</span> -{else} - hi, {$name} -{/if} - -{include file="footer.tpl"} -]]> - </programlisting> - </example> - - <itemizedlist> - <listitem><para> - Both <link linkend="language.builtin.functions">built-in functions</link> - and <link linkend="language.custom.functions">custom functions</link> - have the same syntax within templates. - </para></listitem> - - <listitem><para>Built-in functions are the - <emphasis role="bold">inner</emphasis> workings of Smarty, such as - <link linkend="language.function.if"><varname>{if}</varname></link>, - <link linkend="language.function.section"><varname>{section}</varname></link> and - <link linkend="language.function.strip"><varname>{strip}</varname></link>. - There should be no need to change or modify them. - </para></listitem> - - <listitem><para>Custom functions are - <emphasis role="bold">additional</emphasis> - functions implemented via <link linkend="plugins">plugins</link>. - They can be modified to your liking, or you can create new ones. - <link linkend="language.function.html.options"> - <varname>{html_options}</varname></link> - is an example of a custom function. - </para></listitem> -</itemizedlist> - - <para> - See also <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> -<sect1 id="language.syntax.quotes"> - <title>Embedding Vars in Double Quotes</title> - - <itemizedlist> - <listitem> - <para> - Smarty will recognize <link - linkend="api.assign">assigned</link> - <link linkend="language.syntax.variables">variables</link> - embedded in "double quotes" so long as the variable name contains only numbers, - letters and under_scores. - See <ulink url="&url.php-manual;language.variables">naming</ulink> - for more detail. - </para></listitem> - - <listitem><para> - With any other characters, for example a period(.) or - <literal>$object->reference</literal>, then the variable must be - surrounded by <literal>`backticks`</literal>. - </para></listitem> - - <listitem><para> - In addition Smarty3 does allow embedded Smarty tags in double quoted strings. - This is useful if you want to include variables with modifiers, plugin or PHP function results. - </para></listitem> - </itemizedlist> - - <example> - <title>Syntax examples</title> - <programlisting> -<![CDATA[ -{func var="test $foo test"} // sees $foo -{func var="test $foo_bar test"} // sees $foo_bar -{func var="test `$foo[0]` test"} // sees $foo[0] -{func var="test `$foo[bar]` test"} // sees $foo[bar] -{func var="test $foo.bar test"} // sees $foo (not $foo.bar) -{func var="test `$foo.bar` test"} // sees $foo.bar -{func var="test `$foo.bar` test"|escape} // modifiers outside quotes! -{func var="test {$foo|escape} test"} // modifiers inside quotes! -{func var="test {time()} test"} // PHP function result -{func var="test {counter} test"} // plugin result -{func var="variable foo is {if !$foo}not {/if} defined"} // Smarty block function -]]> - </programlisting> -</example> - - <example> - <title>Examples</title> - <programlisting> -<![CDATA[ -{* will replace $tpl_name with value *} -{include file="subdir/$tpl_name.tpl"} - -{* does NOT replace $tpl_name *} -{include file='subdir/$tpl_name.tpl'} // vars require double quotes! - -{* must have backticks as it contains a dot "." *} -{cycle values="one,two,`$smarty.config.myval`"} - -{* must have backticks as it contains a dot "." *} -{include file="`$module.contact`.tpl"} - -{* can use variable with dot syntax *} -{include file="`$module.$view`.tpl"} -]]> - </programlisting> - </example> - - <note><para> - Although Smarty can handle some very complex expressions and syntax, it is a good rule of - thumb to keep the template syntax minimal and focused on presentation. If you find your - template syntax getting too complex, it may be a good idea to move the bits that do not - deal explicitly with presentation to PHP by way of plugins or modifiers. - </para></note> - - <para> - See also <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,149 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.syntax.variables"> - <title>Variables</title> - <para> - Template variables start with the $dollar sign. They can contain numbers, - letters and underscores, much like a - <ulink url="&url.php-manual;language.variables">PHP variable</ulink>. - You can reference arrays - by index numerically or non-numerically. Also reference - object properties and methods.</para> - <para> - <link linkend="language.config.variables">Config file variables</link> - are an exception to the $dollar syntax - and are instead referenced with surrounding #hashmarks#, or - via the - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link> variable. - </para> - <example> - <title>Variables</title> - <programlisting> -<![CDATA[ -{$foo} <-- displaying a simple variable (non array/object) -{$foo[4]} <-- display the 5th element of a zero-indexed array -{$foo.bar} <-- display the "bar" key value of an array, similar to PHP $foo['bar'] -{$foo.$bar} <-- display variable key value of an array, similar to PHP $foo[$bar] -{$foo->bar} <-- display the object property "bar" -{$foo->bar()} <-- display the return value of object method "bar" -{#foo#} <-- display the config file variable "foo" -{$smarty.config.foo} <-- synonym for {#foo#} -{$foo[bar]} <-- syntax only valid in a section loop, see {section} -{assign var=foo value='baa'}{$foo} <-- displays "baa", see {assign} - -Many other combinations are allowed - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passing parameters -{"foo"} <-- static values are allowed - -{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} - -Math and embedding tags: - -{$x+$y} // will output the sum of x and y. -{assign var=foo value=$x+$y} // in attributes -{$foo[$x+3]} // as array index -{$foo={counter}+3} // tags within tags -{$foo="this is message {counter}"} // tags within double quoted strings - -Defining Arrays: - -{assign var=foo value=[1,2,3]} -{assign var=foo value=['y'=>'yellow','b'=>'blue']} -{assign var=foo value=[1,[9,8],3]} // can be nested - -Short variable assignment: - -{$foo=$bar+2} -{$foo = strlen($bar)} // function in assignment -{$foo = myfunct( ($x+$y)*3 )} // as function parameter -{$foo.bar=1} // assign to specific array element -{$foo.bar.baz=1} -{$foo[]=1} // appending to an array - -Smarty "dot" syntax (note: embedded {} are used to address ambiguities): - -{$foo.a.b.c} => $foo['a']['b']['c'] -{$foo.a.$b.c} => $foo['a'][$b]['c'] // with variable index -{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] // with expression as index -{$foo.a.{$b.c}} => $foo['a'][$b['c']] // with nested index - -PHP-like syntax, alternative to "dot" syntax: - -{$foo[1]} // normal access -{$foo['bar']} -{$foo['bar'][1]} -{$foo[$x+$x]} // index may contain any expression -{$foo[$bar[1]]} // nested index -{$foo[section_name]} // smarty {section} access, not array access! - -Variable variables: - -$foo // normal variable -$foo_{$bar} // variable name containing other variable -$foo_{$x+$y} // variable name containing expressions -$foo_{$bar}_buh_{$blar} // variable name with multiple segments -{$foo_{$x}} // will output the variable $foo_1 if $x has a value of 1. - -Object chaining: - -{$object->method1($x)->method2($y)} - -Direct PHP function access: - -{time()} - -]]> - </programlisting> - </example> - - <note><para> - Although Smarty can handle some very complex expressions and syntax, it is a good rule of - thumb to keep the template syntax minimal and focused on presentation. If you find your - template syntax getting too complex, it may be a good idea to move the bits that do not - deal explicitly with presentation to PHP by way of plugins or modifiers. - </para></note> - - <para>Request variables such as <literal>$_GET</literal>, - <literal>$_SESSION</literal>, etc are available via the - reserved <link linkend="language.variables.smarty"> - <parameter>$smarty</parameter></link> variable. - </para> - - <para> - See also <link linkend="language.variables.smarty"> - <parameter>$smarty</parameter></link>, - <link linkend="language.config.variables">config variables</link> - <link linkend="language.function.assign"><varname>{assign}</varname></link> - and - <link linkend="api.assign"><varname>assign()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<chapter id="language.builtin.functions"> - <title>Built-in Functions</title> - <para> - Smarty comes with several built-in functions. These built-in functions - are the integral part of the smarty template engine. They are compiled - into corresponding inline PHP code for maximum performance. - </para> - <para> - You cannot create your own - <link linkend="language.custom.functions">custom functions</link> - with the same name; and you should not need to - modify the built-in functions. - </para> - - <para> - A few of these functions have an <parameter>assign</parameter> - attribute which collects the result the function to a named template - variable instead of being output; - much like the <link linkend="language.function.assign"> - <varname>{assign}</varname></link> function. - </para> - - &designers.language-builtin-functions.language-function-shortform-assign; - &designers.language-builtin-functions.language-function-append; - &designers.language-builtin-functions.language-function-assign; - &designers.language-builtin-functions.language-function-block; - &designers.language-builtin-functions.language-function-call; - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-debug; - &designers.language-builtin-functions.language-function-extends; - &designers.language-builtin-functions.language-function-for; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-function; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-nocache; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-setfilter; - &designers.language-builtin-functions.language-function-strip; - &designers.language-builtin-functions.language-function-while; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-append.xml
Deleted
@@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> -<sect1 id="language.function.append"> - <title>{append}</title> - <para> - <varname>{append}</varname> is used for creating or appending template variable arrays - <emphasis role="bold">during the execution of a template</emphasis>. - </para> - - <note><para> - Assignment of variables in-template is essentially placing application logic into the presentation that may be better handled in PHP. Use at your own discretion. - </para></note> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the variable being assigned</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The value being assigned</entry> - </row> - <row> - <entry>index</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The index for the new array element. - If not specified the value is append to the end of the array.</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The scope of the assigned variable: 'parent','root' or 'global'</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Assigns the variable with the 'nocache' attribute</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{append}</title> - <programlisting> -<![CDATA[ -{append var='name' value='Bob' index='first'} -{append var='name' value='Meyer' index='last'} -// or -{append 'name' 'Bob' index='first'} {* short-hand *} -{append 'name' 'Meyer' index='last'} {* short-hand *} - -The first name is {$name.first}.<br> -The last name is {$name.last}. -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -The first name is Bob. -The last name is Meyer. -]]> - </screen> - </example> - - <para> - See also <link linkend="api.append"><varname>append()</varname></link> - and - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-assign.xml
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4508 $ --> -<sect1 id="language.function.assign"> - <title>{assign}</title> - <para> - <varname>{assign}</varname> is used for assigning template variables - <emphasis role="bold">during the execution of a template</emphasis>. - </para> - - <note><para> - Assignment of variables in-template is essentially placing application logic into the presentation that may be better handled in PHP. Use at your own discretion. - </para></note> - - <note><para> - See also the <link linkend="language.function.shortform.assign"><varname>short-form</varname></link> - method of assigning template vars. - </para></note> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the variable being assigned</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The value being assigned</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The scope of the assigned variable: 'parent','root' or 'global'</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Assigns the variable with the 'nocache' attribute</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{assign}</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob"} -{assign "name" "Bob"} {* short-hand *} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>{assign} as a nocache variable</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob" nocache} -{assign "name" "Bob" nocache} {* short-hand *} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>{assign} with some maths</title> - <programlisting> -<![CDATA[ -{assign var=running_total value=$running_total+$some_array[$row].some_value} -]]> - </programlisting> - - </example> - -<example> - <title>{assign} in the scope of calling template</title> - <para>Variables assigned in the included template will be seen in the including template.</para> - <programlisting> -<![CDATA[ -{include file="sub_template.tpl"} -... -{* display variable assigned in sub_template *} -{$foo}<br> -... -]]> - </programlisting> - <para>The template above includes the example <filename>sub_template.tpl</filename> below</para> - <programlisting> -<![CDATA[ -... -{* foo will be known also in the including template *} -{assign var="foo" value="something" scope=parent} -{* bar is assigned only local in the including template *} -{assign var="bar" value="value"} -... -]]> -</programlisting> -</example> - - <example> - <title>{assign} a variable to current scope tree</title> - <para>You can assign a variable to root of the current root tree. The variable is seen by all templates using the same root tree.</para> - <programlisting> -<![CDATA[ -{assign var=foo value="bar" scope="root"} -]]> - </programlisting> - - </example> - - <example> - <title>{assign} a global variable</title> - <para>A global variable is seen by all templates.</para> - <programlisting> -<![CDATA[ -{assign var=foo value="bar" scope="global"} -{assign "foo" "bar" scope="global"} {* short-hand *} -]]> - </programlisting> - - </example> - - <example> - <title>Accessing {assign} variables from a PHP script</title> - <para> - To access <varname>{assign}</varname> variables from a php script use - <link linkend="api.get.template.vars"> - <varname>getTemplateVars()</varname></link>. - Here's the template that creates the variable <parameter>$foo</parameter>. - </para> -<programlisting> -<![CDATA[ -{assign var="foo" value="Smarty"} -]]> -</programlisting> -<para>The template variables are only available after/during template -execution as in the following script. -</para> -<programlisting role="php"> -<![CDATA[ -<?php - -// this will output nothing as the template has not been executed -echo $smarty->getTemplateVars('foo'); - -// fetch the template to a variable -$whole_page = $smarty->fetch('index.tpl'); - -// this will output 'smarty' as the template has been executed -echo $smarty->getTemplateVars('foo'); - -$smarty->assign('foo','Even smarter'); - -// this will output 'Even smarter' -echo $smarty->getTemplateVars('foo'); - -?> -]]> -</programlisting> - </example> - - - <para> - The following functions can also <emphasis>optionally</emphasis> assign - template variables. - </para> - - <para> - <link linkend="language.function.capture"><varname>{capture}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link>, - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link>, - <link linkend="language.function.counter"><varname>{counter}</varname></link>, - <link linkend="language.function.cycle"><varname>{cycle}</varname></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>, - <link linkend="language.function.math"><varname>{math}</varname></link>, - <link linkend="language.function.textformat"><varname>{textformat}</varname></link> - </para> - - <para> - See also - <link linkend="language.function.shortform.assign"><varname>{$var=...}</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> - and - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-block.xml
Deleted
@@ -1,279 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="language.function.block"> - <title>{block}</title> - - <para> - <varname>{block}</varname> is used to define a named area of template source for template inheritance. - For details see section of <link linkend="advanced.features.template.inheritance">Template Interitance</link>. - </para> - <para> - The <varname>{block}</varname> template source area of a child template will replace the correponding areas in the parent template(s). - </para> - <para> - Optionally <varname>{block}</varname> areas of child and parent templates can be merged into each other. You can append or prepend the parent <varname>{block}</varname> - content by using the <literal>append</literal> or <literal>prepend</literal> option flag with the childs <varname>{block}</varname> definition. With the {$smarty.block.parent} the <varname>{block}</varname> content - of the parent template can be inserted at any location of the child <varname>{block}</varname> content. {$smarty.block.child} inserts the <varname>{block}</varname> content of - the child template at any location of the parent <varname>{block}</varname>. - </para> - <para><varname>{blocks}'s</varname> can be nested. - </para> - - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the template source block</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <para><emphasis role="bold">Option Flags (in child templates only):</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>append</entry> - <entry>The <varname>{block}</varname> content will be be appended to the content of the parent template <varname>{block}</varname></entry> - </row> - <row> - <entry>prepend</entry> - <entry>The <varname>{block}</varname> content will be prepended to the content of the parent template <varname>{block}</varname></entry> - </row> - <row> - <entry>hide</entry> - <entry>Ignore the block content if no child block of same name is existing.</entry> - </row> - <row> - <entry>nocache</entry> - <entry>Disables caching of the <varname>{block}</varname> content</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>Simple <varname>{block}</varname> example</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}Default Title{/block}</title> - <title>{block "title"}Default Title{/block}</title> {* short-hand *} - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title"} -Page Title -{/block} -]]> - </programlisting> - <para>The result would look like</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>Page Title</title> - </head> -</html> -]]> -</programlisting> - </example> - - <example> - <title>Prepend <varname>{block}</varname> example</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}Title - {/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title" prepend} -Page Title -{/block} -]]> - </programlisting> - <para>The result would look like</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>Title - Page Title</title> - </head> -</html> -]]> -</programlisting> - </example> - - <example> - <title>Append <varname>{block}</varname> example</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"} is my title{/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title" append} -Page Title -{/block} -]]> - </programlisting> - <para>The result would look like</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>Page title is my titel</title> - </head> -</html> -]]> -</programlisting> - </example> - - <example> - <title><varname>{$smarty.block.child}</varname> example</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}The {$smarty.block.child} was inserted here{/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title"} -Child Title -{/block} -]]> - </programlisting> - <para>The result would look like</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>The Child Title was inserted here</title> - </head> -</html> -]]> -</programlisting> - </example> - <example> - <title><varname>{$smarty.block.parent}</varname> example</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}Parent Title{/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title"} -You will see now - {$smarty.block.parent} - here -{/block} -]]> - </programlisting> - <para>The result would look like</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>You will see now - Parent Title - here</title> - </head> -</html> -]]> -</programlisting> - </example> - - <para> - See also - <link linkend="advanced.features.template.inheritance">Template Inheritance</link>, - <link linkend="language.variables.smarty.block.parent"><parameter>$smarty.block.parent</parameter></link>, - <link linkend="language.variables.smarty.block.child"><parameter>$smarty.block.child</parameter></link>, - and <link linkend="language.function.extends"><varname>{extends}</varname></link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-call.xml
Deleted
@@ -1,166 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4006 $ --> -<sect1 id="language.function.call"> - <title>{call}</title> - <para> - <varname>{call}</varname> is used to call a template function defined by the - <link linkend="language.function.function"><varname>{function}</varname></link> - tag just like a plugin function. - </para> - - <note><para> - Template functions are defined global. Since the Smarty compiler is a single-pass compiler, - The <link linkend="language.function.call"><varname>{call}</varname></link> - tag must be used to call a template function defined externally from the given template. - Otherwise you can directly use the function as <literal>{funcname ...}</literal> in the template. - </para></note> - - <itemizedlist> - <listitem><para> - The <varname>{call}</varname> tag must have the <parameter>name</parameter> attribute - which contains the the name of the template function. - </para></listitem> - - <listitem><para> - Values for variables can be passed to the template function as - <link linkend="language.syntax.attributes">attributes</link>. - </para></listitem> - </itemizedlist> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the template function</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the variable that the output of - called template function will be assigned to</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>variable to pass local to template function</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Call the template function in nocache mode</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>Calling a recursive menu example</title> - <programlisting> -<![CDATA[ -{* define the function *} -{function name=menu level=0} - <ul class="level{$level}"> - {foreach $data as $entry} - {if is_array($entry)} - <li>{$entry@key}</li> - {call name=menu data=$entry level=$level+1} - {else} - <li>{$entry}</li> - {/if} - {/foreach} - </ul> -{/function} - -{* create an array to demonstrate *} -{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => -['item3-3-1','item3-3-2']],'item4']} - -{* run the array through the function *} -{call name=menu data=$menu} -{call menu data=$menu} {* short-hand *} -]]> - </programlisting> - <para> - Will generate the following output - </para> - <programlisting> -<![CDATA[ -* item1 -* item2 -* item3 - o item3-1 - o item3-2 - o item3-3 - + item3-3-1 - + item3-3-2 -* item4 -]]> - </programlisting> - </example> - - - <para> - See also - <link linkend="language.function.function"><varname>{function}</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,185 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.capture"> - <title>{capture}</title> - - <para> - <varname>{capture}</varname> is used to collect the output of the template between the - tags into a variable instead of displaying it. Any content between - <varname>{capture name='foo'}</varname> and <varname>{/capture}</varname> is collected - into the variable specified in the <parameter>name</parameter> attribute. - </para> - <para>The captured content can be used in the - template from the variable <link - linkend="language.variables.smarty.capture"><parameter>$smarty.capture.foo</parameter></link> - where <quote>foo</quote> is the value passed in the <parameter>name</parameter> attribute. - If you do not supply the <parameter>name</parameter> attribute, then <quote>default</quote> will - be used as the name ie <parameter>$smarty.capture.default</parameter>. - </para> - <para><varname>{capture}'s</varname> can be nested. - </para> - - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the captured block</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The variable name where to assign the captured output to</entry> - </row> - <row> - <entry>append</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of an array variable where to append the captured output to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Disables caching of this captured block</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Caution</title> - <para> - Be careful when capturing <link - linkend="language.function.insert"><varname>{insert}</varname></link> - output. If you have - <link linkend="caching"><parameter>$caching</parameter></link> - enabled and you have - <link linkend="language.function.insert"><varname>{insert}</varname></link> - commands that you expect to run - within cached content, do not capture this content. - </para> - </note> - - <para> - <example> - <title>{capture} with the name attribute</title> - <programlisting> -<![CDATA[ -{* we don't want to print a div tag unless content is displayed *} -{capture name="banner"} -{capture "banner"} {* short-hand *} - {include file="get_banner.tpl"} -{/capture} - -{if $smarty.capture.banner ne ""} -<div id="banner">{$smarty.capture.banner}</div> -{/if} -]]> - </programlisting> - </example> - - <example> - <title>{capture} into a template variable</title> - <para>This example demonstrates the capture function.</para> - <programlisting> -<![CDATA[ -{capture name=some_content assign=popText} -{capture some_content assign=popText} {* short-hand *} -The server is {$my_server_name|upper} at {$my_server_addr}<br> -Your ip is {$my_ip}. -{/capture} -<a href="#">{$popText}</a> -]]> - </programlisting> - </example> - - <example> - <title>{capture} into a template array variable</title> - <para> - This example also demonstrates how multiple calls of capture can be used to create an array with captured content. - </para> - <programlisting> -<![CDATA[ -{capture append="foo"}hello{/capture}I say just {capture append="foo"}world{/capture} -{foreach $foo as $text}{$text} {/foreach} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -I say just hello world -]]> - </screen> </example> - - - </para> - <para> - See also - <link - linkend="language.variables.smarty.capture"><parameter>$smarty.capture</parameter></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>, - <link linkend="api.fetch"><varname>fetch()</varname></link> - and <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,177 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="language.function.config.load"> - <title>{config_load}</title> - <para> - <varname>{config_load}</varname> is used for loading config - <link linkend="language.config.variables"><parameter>#variables#</parameter></link> - from a <link linkend="config.files">configuration file</link> into the template. - </para> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the config file to include</entry> - </row> - <row> - <entry>section</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the section to load</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - How the scope of the loaded variables are treated, - which must be one of local, parent or global. local - means variables are loaded into the local template - context. parent means variables are loaded into both - the local context and the parent template that called - it. global means variables are available to all - templates. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{config_load}</title> - <para> - The <filename>example.conf</filename> file. - </para> - <programlisting> -<![CDATA[ -#this is config file comment - -# global variables -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -#customer variables section -[Customer] -pageTitle = "Customer Info" -]]> - </programlisting> - <para>and the template</para> - <programlisting> -<![CDATA[ -{config_load file="example.conf"} -{config_load "example.conf"} {* short-hand *} - -<html> -<title>{#pageTitle#|default:"No title"}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - <link linkend="config.files">Config Files</link> - may also contain sections. You can load variables from - within a section with the added attribute - <parameter>section</parameter>. Note that global config - variables are always loaded along with section variables, - and same-named section variables overwrite the globals. - </para> - <note> - <para> - Config file <emphasis>sections</emphasis> and the built-in - template function called - <link linkend="language.function.section"><varname>{section}</varname></link> - have nothing to do with each other, they just happen to share a common naming - convention. - </para> - </note> - <example> - <title>function {config_load} with section</title> - <programlisting> -<![CDATA[ -{config_load file='example.conf' section='Customer'} -{config_load 'example.conf' 'Customer'} {* short-hand *} - -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - -<para> -See <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link> -to create arrays of config file variables. -</para> - - <para> - See also the <link linkend="config.files">config files</link> page, - <link linkend="language.config.variables">config variables</link> page, - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>, - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link> - and - <link linkend="api.config.load"><varname>configLoad()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-debug.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3832 $ --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <para> - <varname>{debug}</varname> dumps the debug console to the page. This works - regardless of the <link linkend="chapter.debugging.console">debug</link> - settings in the php script. Since this gets executed at runtime, this is - only able to show the <link linkend="api.assign">assigned</link> - variables; not the templates that - are in use. However, you can see all the currently available variables - within the scope of a template. - </para> - <para> - If caching is enabled and a page is loaded from cache <varname>{debug}</varname> - does show only the variables which assigned for the cached page. - </para> - <para> - In order to see also the variables which have been locally assigned within the template it does make sense to place - the <varname>{debug}</varname> tag at the end of the template. - </para> - - <para> - See also the - <link linkend="chapter.debugging.console">debugging console page</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-extends.xml
Deleted
@@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4596 $ --> -<sect1 id="language.function.extends"> - <title>{extends}</title> - <para> - <varname>{extends}</varname> tags are used in child templates in template inheritance for extending parent templates. - For details see section of <link linkend="advanced.features.template.inheritance">Template Interitance</link>. - </para> - - <itemizedlist> - <listitem><para> - The <varname>{extends}</varname> tag must be on the first line of the template. - </para></listitem> - - <listitem><para> - If a child template extends a parent template with the <varname>{extends}</varname> tag it may contain only <varname>{block}</varname> tags. - Any other template content is ignored. - </para></listitem> - - <listitem><para> - Use the syntax for <link - linkend="resources">template resources</link> to extend files outside of the - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> directory. - </para></listitem> - </itemizedlist> - - <note> - <para> - When extending a variable parent like <literal>{extends file=$parent_file}</literal>, - make sure you include <varname>$parent_file</varname> in the - <link linkend="variable.compile.id"><varname>$compile_id</varname></link>. Otherwise Smarty - cannot distinguish between different <varname>$parent_file</varname>s. - </para> - </note> - -<para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the template file which is extended</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>Simple {extends} example</title> - <programlisting> -<![CDATA[ -{extends file='parent.tpl'} -{extends 'parent.tpl'} {* short-hand *} -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="advanced.features.template.inheritance">Template Interitance</link> - and <link linkend="language.function.block"><varname>{block}</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-for.xml
Deleted
@@ -1,189 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.for"> - <title>{for}</title> - <para> - The <varname>{for}{forelse}</varname> tag is used to create simple loops. The following different formarts are supported: - </para> - <itemizedlist> - <listitem> - <para> - <varname>{for $var=$start to $end}</varname> simple loop with step size of 1. - </para> - </listitem> - <listitem> - <para> - <varname>{for $var=$start to $end step $step}</varname> loop with individual step size. - </para> - </listitem> - </itemizedlist> - - <para> - <varname>{forelse}</varname> is executed when the loop is not iterated. - </para> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="position" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Shorthand</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>max</entry> - <entry>n/a</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Limit the number of iterations</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Disables caching of the <varname>{for}</varname> loop</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>A simple <varname>{for}</varname> loop</title> - <programlisting role="php"> -<![CDATA[ -<ul> -{for $foo=1 to 3} - <li>{$foo}</li> -{/for} -</ul> -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<ul> - <li>1</li> - <li>2</li> - <li>3</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>Using the <varname>max</varname> attribute</title> - <programlisting role="php"> -<![CDATA[ -$smarty->assign('to',10); -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<ul> -{for $foo=3 to $to max=3} - <li>{$foo}</li> -{/for} -</ul> -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<ul> - <li>3</li> - <li>4</li> - <li>5</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>Excution of <varname>{forelse}</varname></title> - <programlisting role="php"> -<![CDATA[ -$smarty->assign('start',10); -$smarty->assign('to',5); -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<ul> -{for $foo=$start to $to} - <li>{$foo}</li> -{forelse} - no iteration -{/for} -</ul> -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - no iteration -]]> - </screen> - </example> - - <para> - See also <link linkend="language.function.foreach"><varname>{foreach}</varname></link>, - <link linkend="language.function.section"><varname>{section}</varname></link> - and - <link linkend="language.function.while"><varname>{while}</varname></link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,531 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="language.function.foreach"> - <title>{foreach},{foreachelse}</title> - <para> - <varname>{foreach}</varname> is used for looping over arrays of data. <varname>{foreach}</varname> has a simpler and cleaner syntax than the <link linkend="language.function.section"><varname>{section}</varname></link> loop, and can also loop over associative arrays. - </para> - <para> - <varname>{foreach $arrayvar as $itemvar}</varname> - </para> - <para> - <varname>{foreach $arrayvar as $keyvar=>$itemvar}</varname> - </para> - <note> - <para> - This foreach syntax does not accept any named attributes. This syntax is new to Smarty 3, however the Smarty 2.x syntax <literal>{foreach from=$myarray key="mykey" item="myitem"}</literal> is still supported. - </para> - </note> - <itemizedlist> - <listitem><para> - <varname>{foreach}</varname> loops can be nested. - </para></listitem> - - <listitem><para> - The <parameter>array</parameter> variable, usually an array of values, - determines the number of times <varname>{foreach}</varname> will loop. You can also pass an integer for arbitrary loops. - </para></listitem> - - <listitem><para> - <varname>{foreachelse}</varname> is executed when there are no - values in the <parameter>array</parameter> variable. - </para></listitem> - - <listitem> - <para> - <varname>{foreach}</varname> properties are - <link linkend="foreach.property.index"><parameter>@index</parameter></link>, - <link linkend="foreach.property.iteration"><parameter>@iteration</parameter></link>, - <link linkend="foreach.property.first"><parameter>@first</parameter></link>, - <link linkend="foreach.property.last"><parameter>@last</parameter></link>, - <link linkend="foreach.property.show"><parameter>@show</parameter></link>, - <link linkend="foreach.property.total"><parameter>@total</parameter></link>. - </para> - </listitem> - - <listitem> - <para> - <varname>{foreach}</varname> constructs are - <link linkend="foreach.construct.break"><varname>{break}</varname></link>, - <link linkend="foreach.construct.continue"><varname>{continue}</varname></link>. - </para> - </listitem> - - <listitem><para> - Instead of specifying the <parameter>key</parameter> variable you can access the current key of the - loop item by <parameter>{$item@key}</parameter> (see examples below). - </para></listitem> - - </itemizedlist> - - <note> - <para> - The <literal>$var@property</literal> syntax is new to Smarty 3, however when using the Smarty 2 <literal>{foreach from=$myarray key="mykey" item="myitem"}</literal> style syntax, the <literal>$smarty.foreach.name.property</literal> syntax is still supported. - </para> - </note> - <note> - <para> - Although you can retrieve the array key with the syntax <literal>{foreach $myArray as $myKey => $myValue}</literal>, the key is always available as <varname>$myValue@key</varname> within the foreach loop. - </para> - </note> - - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Disables caching of the <varname>{foreach}</varname> loop</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>A simple <varname>{foreach}</varname> loop</title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array('red', 'green', 'blue'); -$smarty->assign('myColors', $arr); -?> -]]> - </programlisting> - <para>Template to output <parameter>$myColors</parameter> in an un-ordered list</para> - <programlisting> -<![CDATA[ -<ul> -{foreach $myColors as $color} - <li>{$color}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<ul> - <li>red</li> - <li>green</li> - <li>blue</li> -</ul> -]]> - </screen> - </example> - -<example> - <title>Demonstrates the an additional <parameter>key</parameter> variable</title> - <programlisting role="php"> -<![CDATA[ -<?php -$people = array('fname' => 'John', 'lname' => 'Doe', 'email' => 'j.doe@example.com'); -$smarty->assign('myPeople', $people); -?> -]]> - </programlisting> - <para>Template to output <parameter>$myArray</parameter> as key/value pairs.</para> - <programlisting> -<![CDATA[ -<ul> -{foreach $myPeople as $value} - <li>{$value@key}: {$value}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<ul> - <li>fname: John</li> - <li>lname: Doe</li> - <li>email: j.doe@example.com</li> -</ul> -]]> - </screen> - </example> - - - - <example> - <title>{foreach} with nested <parameter>item</parameter> and <parameter>key</parameter></title> - <para>Assign an array to Smarty, the key contains the key for each looped value.</para> - <programlisting role="php"> -<![CDATA[ -<?php - $smarty->assign('contacts', array( - array('phone' => '555-555-1234', - 'fax' => '555-555-5678', - 'cell' => '555-555-0357'), - array('phone' => '800-555-4444', - 'fax' => '800-555-3333', - 'cell' => '800-555-2222') - )); -?> -]]> - </programlisting> - <para>The template to output <parameter>$contact</parameter>.</para> - <programlisting> -<![CDATA[ -{* key always available as a property *} -{foreach $contacts as $contact} - {foreach $contact as $value} - {$value@key}: {$value} - {/foreach} -{/foreach} - -{* accessing key the PHP syntax alternate *} -{foreach $contacts as $contact} - {foreach $contact as $key => $value} - {$key}: {$value} - {/foreach} -{/foreach} -]]> - </programlisting> - <para> - Either of the above examples will output: - </para> - <screen> -<![CDATA[ - phone: 555-555-1234 - fax: 555-555-5678 - cell: 555-555-0357 - phone: 800-555-4444 - fax: 800-555-3333 - cell: 800-555-2222 -]]> - </screen> - </example> - - <example> - <title>Database example with {foreachelse}</title> - <para>A database (PDO) example of looping over search results. This example is looping over a PHP iterator instead of an array().</para> -<programlisting role="php"> -<![CDATA[ -<?php - include('Smarty.class.php'); - - $smarty = new Smarty; - - $dsn = 'mysql:host=localhost;dbname=test'; - $login = 'test'; - $passwd = 'test'; - - // setting PDO to use buffered queries in mysql is - // important if you plan on using multiple result cursors - // in the template. - - $db = new PDO($dsn, $login, $passwd, array( - PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)); - - $res = $db->prepare("select * from users"); - $res->execute(); - $res->setFetchMode(PDO::FETCH_LAZY); - - // assign to smarty - $smarty->assign('res',$res); - - $smarty->display('index.tpl');?> -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{foreach $res as $r} - {$r.id} - {$r.name} -{foreachelse} - .. no results .. -{/foreach} -]]> - </programlisting> - </example> - - <para> - The above is assuming the results contain the columns named <literal>id</literal> and <literal>name</literal>. - </para> - <para> - What is the advantage of an iterator vs. looping over a plain old array? With an array, all the results are accumulated into memory before being looped. With an iterator, each result is loaded/released within the loop. This saves processing time and memory, especially for very large result sets. - </para> - - <sect2 id="foreach.property.index"> - <title>@index</title> - <para> - <parameter>index</parameter> contains the current array index, starting with zero. - </para> - <example> - <title><parameter>index</parameter> example</title> - - <programlisting> -<![CDATA[ -{* output empty row on the 4th iteration (when index is 3) *} -<table> -{foreach $items as $i} - {if $i@index eq 3} - {* put empty table row *} - <tr><td>nbsp;</td></tr> - {/if} - <tr><td>{$i.label}</td></tr> -{/foreach} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.iteration"> - <title>@iteration</title> - <para> - <parameter>iteration</parameter> contains the current loop iteration and always - starts at one, unlike <link linkend="foreach.property.index"><parameter>index</parameter></link>. - It is incremented by one on each iteration. - </para> - <example> - <title><parameter>iteration</parameter> example: is div by</title> - <para> - The <emphasis>"is div by"</emphasis> operator can be used to detect a specific iteration. Here we bold-face the name every 4th iteration. - </para> - <programlisting> -<![CDATA[ -{foreach $myNames as $name} - {if $name@iteration is div by 4} - <b>{$name}</b> - {/if} - {$name} -{/foreach} -]]> -</programlisting> - </example> - <example> - <title><parameter>iteration</parameter> example: is even/odd by</title> - <para> - The <emphasis>"is even by"</emphasis> and <emphasis>"is odd by"</emphasis> operators can be used to alternate something every so many iterations. Choosing between even or odd rotates which one starts. Here we switch the font color every 3rd iteration. - </para> - <programlisting> - <![CDATA[ - {foreach $myNames as $name} - {if $name@iteration is even by 3} - <span style="color: #000">{$name}</span> - {else} - <span style="color: #eee">{$name}</span> - {/if} - {/foreach} - ]]> - </programlisting> - - <para> - This will output something similar to this: - </para> - <screen> -<![CDATA[ - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - ... -]]> - </screen> - - </example> - </sect2> - - <sect2 id="foreach.property.first"> - <title>@first</title> - <para> - <parameter>first</parameter> is &true; if the current <varname>{foreach}</varname> - iteration is the initial one. Here we display a table header row on the first iteration. - </para> - <example> - <title><parameter>first</parameter> property example</title> - <programlisting> -<![CDATA[ -{* show table header at first iteration *} -<table> -{foreach $items as $i} - {if $i@first} - <tr> - <th>key</td> - <th>name</td> - </tr> - {/if} - <tr> - <td>{$i@key}</td> - <td>{$i.name}</td> - </tr> -{/foreach} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.last"> - <title>@last</title> - <para> - <parameter>last</parameter> is set to &true; if the current - <varname>{foreach}</varname> iteration is the final one. Here we display a horizontal rule on the last iteration. - </para> - <example> - <title><parameter>last</parameter> property example</title> - <programlisting> -<![CDATA[ -{* Add horizontal rule at end of list *} -{foreach $items as $item} - <a href="#{$item.id}">{$item.name}</a>{if $item@last}<hr>{else},{/if} -{foreachelse} - ... no items to loop ... -{/foreach} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.show"> - <title>@show</title> - <para> - The show <parameter>show</parameter> property can be used after the execution of a - <varname>{foreach}</varname> loop to detect if data has been displayed or not. - <parameter>show</parameter> is a boolean value. - </para> - <example> - <title><parameter>show</parameter> property example</title> - <programlisting> -<![CDATA[ -<ul> -{foreach $myArray as $name} - <li>{$name}</li> -{/foreach} -</ul> -{if $name@show} do something here if the array contained data {/if} -]]> -</programlisting> -</example> - </sect2> - - <sect2 id="foreach.property.total"> - <title>@total</title> - <para> - <parameter>total</parameter> contains the number of iterations that this - <varname>{foreach}</varname> will loop. - This can be used inside or after the <varname>{foreach}</varname>. - </para> - <example> - <title><parameter>total</parameter> property example</title> -<programlisting> -<![CDATA[ -{* show number of rows at end *} -{foreach $items as $item} - {$item.name}<hr/> - {if $item@last} - <div id="total">{$item@total} items</div> - {/if} -{foreachelse} - ... no items to loop ... -{/foreach} -]]> -</programlisting> -</example> - - <para> - See also <link linkend="language.function.section"><varname>{section}</varname></link>, - <link linkend="language.function.for"><varname>{for}</varname></link> - and - <link linkend="language.function.while"><varname>{while}</varname></link> - </para> - - </sect2> - - <sect2 id="foreach.construct.break"> - <title>{break}</title> - <para> - <varname>{break}</varname> aborts the iteration of the array - </para> - <example> - <title><varname>{break}</varname> example</title> - <programlisting> - <![CDATA[ - {$data = [1,2,3,4,5]} - {foreach $data as $value} - {if $value == 3} - {* abort iterating the array *} - {break} - {/if} - {$value} - {/foreach} - {* - prints: 1 2 - *} - ]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.construct.continue"> - <title>{continue}</title> - <para> - <varname>{continue}</varname> leaves the current iteration and begins with the next iteration. - </para> - <example> - <title><varname>{continue}</varname> example</title> - <programlisting> - <![CDATA[ - {$data = [1,2,3,4,5]} - {foreach $data as $value} - {if $value == 3} - {* skip this iteration *} - {continue} - {/if} - {$value} - {/foreach} - {* - prints: 1 2 4 5 - *} - ]]> - </programlisting> - </example> - </sect2> - -</sect1> - -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-function.xml
Deleted
@@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4483 $ --> -<sect1 id="language.function.function"> - <title>{function}</title> - <para> - <varname>{function}</varname> is used to create functions within a template - and call them just like a plugin function. Instead of writing a plugin that - generates presentational content, keeping it in the template is often a more - manageable choice. It also simplifies data traversal, such as deeply nested menus. - </para> - - <note><para> - Template functions are defined global. Since the Smarty compiler is a single-pass compiler, - The <link linkend="language.function.call"><varname>{call}</varname></link> - tag must be used to call a template function defined externally from the given template. - Otherwise you can directly use the function as <literal>{funcname ...}</literal> in the template. - </para></note> - - <itemizedlist> - <listitem><para> - The <varname>{function}</varname> tag must have - the <parameter>name</parameter> attribute - which contains the the name of the template function. - A tag with this name can be used to call the template function. - </para></listitem> - - <listitem><para> - Default values for variables can be passed to the template function as - <link linkend="language.syntax.attributes">attributes</link>. - Like in PHP function declarations you can only use scalar values as default. - The default values can be overwritten when the template function is being - called. - </para></listitem> - - <listitem><para> - You can use all variables from the calling template inside the template function. - Changes to variables or new created variables inside the template function - have local scope and are not visible inside the calling template after the - template function is executed. - </para></listitem> - </itemizedlist> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the template function</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>default variable value to pass local to the template function</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note><para> - You can pass any number of parameter to the template function when it is called. The parameter variables - must not be declared in the <literal>{funcname ...}</literal> tag unless you what to use default values. - Default values must be scalar and can not be variable. Variables must be passed when the template is called. - </para></note> - - <example> - <title>Recursive menu {function} example</title> - <programlisting> -<![CDATA[ -{* define the function *} -{function name=menu level=0} -{function menu level=0} {* short-hand *} - <ul class="level{$level}"> - {foreach $data as $entry} - {if is_array($entry)} - <li>{$entry@key}</li> - {menu data=$entry level=$level+1} - {else} - <li>{$entry}</li> - {/if} - {/foreach} - </ul> -{/function} - -{* create an array to demonstrate *} -{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => -['item3-3-1','item3-3-2']],'item4']} - -{* run the array through the function *} -{menu data=$menu} -]]> - </programlisting> - <para> - Will generate the following output - </para> - <programlisting> -<![CDATA[ -* item1 -* item2 -* item3 - o item3-1 - o item3-2 - o item3-3 - + item3-3-1 - + item3-3-2 -* item4 -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="language.function.call"><varname>{call}</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,262 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.if"> - <title>{if},{elseif},{else}</title> - <para> - <varname>{if}</varname> statements in Smarty have much the same flexibility as PHP - <ulink url="&url.php-manual;if">if</ulink> - statements, with a few added features for the template engine. - Every <varname>{if}</varname> must be paired with a matching - <varname>{/if}</varname>. <varname>{else}</varname> and - <varname>{elseif}</varname> are also permitted. All PHP conditionals - and functions - are recognized, such as <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, - <emphasis>is_array()</emphasis>, etc. - </para> - <para> - If securty is enabled, only PHP functions from <parameter>$php_functions</parameter> property of the securty policy are allowed. - See the <link linkend="advanced.features.security">Security</link> section for details. - </para> - <para> - The following is a list of recognized qualifiers, which must be - separated from surrounding elements by spaces. Note that items listed - in [brackets] are optional. PHP equivalents are shown where applicable. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Qualifier</entry> - <entry>Alternates</entry> - <entry>Syntax Example</entry> - <entry>Meaning</entry> - <entry>PHP Equivalent</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>equals</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>not equals</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>greater than</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>less than</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>greater than or equal</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>less than or equal</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>check for identity</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>negation (unary)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>modulous</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>divisible by</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>[not] an even number (unary)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>grouping level [not] even</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>[not] an odd number (unary)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>[not] an odd grouping</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{if} statements</title> - <programlisting> -<![CDATA[ -{if $name eq 'Fred'} - Welcome Sir. -{elseif $name eq 'Wilma'} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* an example with "or" logic *} -{if $name eq 'Fred' or $name eq 'Wilma'} - ... -{/if} - -{* same as above *} -{if $name == 'Fred' || $name == 'Wilma'} - ... -{/if} - - -{* parenthesis are allowed *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - - -{* you can also embed php function calls *} -{if count($var) gt 0} - ... -{/if} - -{* check for array. *} -{if is_array($foo) } - ..... -{/if} - -{* check for not null. *} -{if isset($foo) } - ..... -{/if} - - -{* test if values are even or odd *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* test if var is divisible by 4 *} -{if $var is div by 4} - ... -{/if} - - -{* - test if var is even, grouped by two. i.e., - 0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> - </programlisting> - </example> - - - <example> - <title>{if} with more examples</title> -<programlisting> - <![CDATA[ -{if isset($name) && $name == 'Blog'} - {* do something *} -{elseif $name == $foo} - {* do something *} -{/if} - -{if is_array($foo) && count($foo) > 0} - {* do a foreach loop *} -{/if} - ]]> -</programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="language.function.include.php"> - <title>{include_php}</title> - <note> - <title>IMPORTANT NOTICE</title> - <para> - <varname>{include_php}</varname> is deprecated from Smarty, use registered plugins to properly insulate presentation from the application code. - As of Smarty 3.1 the <varname>{include_php}</varname> tags are only available from <link linkend="bc">SmartyBC</link>. - </para> - </note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the php file to include as absolute path</entry> - </row> - <row> - <entry>once</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>whether or not to include the php file more than - once if included multiple times</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the variable that the output of - include_php will be assigned to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Disables caching of inluded PHP script</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <varname>{include_php}</varname> tags are used to include a php script in your template. - The path of the attribute <parameter>file</parameter> can be - either absolute, or relative to - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>. If security is enabled, then the - script must be located in the <parameter>$trusted_dir</parameter> path of the securty policy. - See the <link linkend="advanced.features.security">Security</link> section for details. - </para> - <para> - By default, php files are only included once even if called - multiple times in the template. You can specify that it should be - included every time with the <parameter>once</parameter> attribute. - Setting once to &false; will include the php script each time it is - included in the template. - </para> - <para> - You can optionally pass the <parameter>assign</parameter> attribute, - which will specify a template variable name that the output of - <varname>{include_php}</varname> will be assigned to instead of - displayed. - </para> - <para> - The smarty object is available as <parameter>$_smarty_tpl->smarty</parameter> within - the PHP script that you include. - </para> - <example> - <title>function {include_php}</title> - <para>The <filename>load_nav.php</filename> file:</para> - <programlisting role="php"> -<![CDATA[ -<?php - -// load in variables from a mysql db and assign them to the template -require_once('database.class.php'); -$db = new Db(); -$db->query('select url, name from navigation order by name'); -$this->assign('navigation', $db->getRows()); - -?> -]]> - </programlisting> - <para> - where the template is: - </para> - <programlisting> -<![CDATA[ -{* absolute path, or relative to $trusted_dir *} -{include_php file='/path/to/load_nav.php'} -{include_php '/path/to/load_nav.php'} {* short-hand *} - -{foreach item='nav' from=$navigation} - <a href="{$nav.url}">{$nav.name}</a><br /> -{/foreach} -]]> - </programlisting> - </example> - <para> - See also <link linkend="language.function.include"><varname>{include}</varname></link>, -<link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>, - <link linkend="language.function.php"><varname>{php}</varname></link>, <link - linkend="language.function.capture"><varname>{capture}</varname></link>, <link - linkend="resources">template resources</link> and <link - linkend="tips.componentized.templates">componentized templates</link> </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,348 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4665 $ --> -<sect1 id="language.function.include"> - <title>{include}</title> - <para> - <varname>{include}</varname> tags are used for including other templates in the current - template. Any variables available in the current template are also - available within the included template. - </para> - - <itemizedlist> - <listitem><para> - The <varname>{include}</varname> tag must have - the <parameter>file</parameter> attribute - which contains the template resource path. - </para></listitem> - - <listitem><para> - Setting the optional <parameter>assign</parameter> attribute - specifies the template variable that the output of - <varname>{include}</varname> is assigned to, instead of being displayed. Similar to - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para></listitem> - - <listitem><para> - Variables can be passed to included templates as - <link linkend="language.syntax.attributes">attributes</link>. - Any variables explicitly passed to an included template - are only available within the scope of the included - file. Attribute variables override current template variables, in - the case when they are named the same. - </para></listitem> - - <listitem><para> - You can use all variables from the including template inside the included template. - But changes to variables or new created variables inside the included template - have local scope and are not visible inside the including template after the - <varname>{include}</varname> statement. This default behaviour can be changed for - all variables assigned in the included template by using the scope attribute at the - <varname>{include}</varname> statement or for individual variables by using the scope - attribute at the <link linkend="language.function.assign"><varname>{assign}</varname></link> - statement. The later is useful to return values from the included template to the - including template. - </para></listitem> - - <listitem><para> - Use the syntax for <link - linkend="resources">template resources</link> to - <varname>{include}</varname> files outside of the - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> directory. - </para></listitem> - </itemizedlist> - -<para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the template file to include</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the variable that the output of - include will be assigned to</entry> - </row> - <row> - <entry>cache_lifetime</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Enable caching of this subtemplate with an individual cache lifetime</entry> - </row> - <row> - <entry>compile_id</entry> - <entry>string/integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Compile this subtemplate with an individual compile_id</entry> - </row> - <row> - <entry>cache_id</entry> - <entry>string/integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Enable caching of this subtemplate with an individual cache_id</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Define the scope of all in the subtemplate assigned variables: 'parent','root' or 'global'</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>variable to pass local to template</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Disables caching of this subtemplate</entry> - </row> - <row> - <entry>caching</entry> - <entry>Enable caching of this subtemplate</entry> - </row> - <row> - <entry>inline</entry> - <entry>If set merge the compile code of the subtemplate into the compiled calling template</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>Simple {include} example</title> - <programlisting> -<![CDATA[ -<html> -<head> - <title>{$title}</title> -</head> -<body> -{include file='page_header.tpl'} - -{* body of template goes here, the $tpl_name variable - is replaced with a value eg 'contact.tpl' -*} -{include file="$tpl_name.tpl"} - -{* using shortform file attribute *} -{include 'page_footer.tpl'} -</body> -</html> -]]> - </programlisting> - </example> - - <example> - <title>{include} passing variables</title> - <programlisting> -<![CDATA[ -{include 'links.tpl' title='Newest links' links=$link_array} -{* body of template goes here *} -{include 'footer.tpl' foo='bar'} -]]> - </programlisting> - <para>The template above includes the example <filename>links.tpl</filename> below</para> - <programlisting> -<![CDATA[ -<div id="box"> -<h3>{$title}{/h3> -<ul> -{foreach from=$links item=l} -.. do stuff ... -</foreach} -</ul> -</div> -]]> -</programlisting> - </example> - - <example> - <title>{include} using parent scope</title> - <para>Variables assigned in the included template will be seen in the including template.</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' scope=parent} -... -{* display variables assigned in sub_template *} -{$foo}<br> -{$bar}<br> -... -]]> - </programlisting> - <para>The template above includes the example <filename>sub_template.tpl</filename> below</para> - <programlisting> -<![CDATA[ -... -{assign var=foo value='something'} -{assign var=bar value='value'} -... -]]> -</programlisting> - </example> - - <example> - <title>{include} with disabled caching</title> - <para>The included template will not be cached.</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' nocache} -... -]]> - </programlisting> - </example> - - <example> - <title>{include} with individual cache lifetime</title> - <para>In this example included template will be cached with an individual cache lifetime of 500 seconds.</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' cache_lifetime=500} -... -]]> - </programlisting> - </example> - - <example> - <title>{include} with forced caching</title> - <para>In this example included template will be cached independent of the global cahing setting.</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' caching} -... -]]> - </programlisting> - </example> - - - <example> - <title>{include} and assign to variable</title> - <para>This example assigns the contents of <filename>nav.tpl</filename> - to the <varname>$navbar</varname> variable, - which is then output at both the top and bottom of the page. - </para> - <programlisting> - <![CDATA[ -<body> - {include 'nav.tpl' assign=navbar} - {include 'header.tpl' title='Smarty is cool'} - {$navbar} - {* body of template goes here *} - {$navbar} - {include 'footer.tpl'} -</body> -]]> - </programlisting> - </example> - - <example> - <title>{include} with relative paths</title> - <para>This example includes another template relative to the directory of the current template.</para> - <programlisting> -<![CDATA[ - {include 'template-in-a-template_dir-directory.tpl'} - {include './template-in-same-directory.tpl'} - {include '../template-in-parent-directory.tpl'} -]]> - </programlisting> - </example> - - <example> - <title>Various {include} resource examples</title> - <programlisting> -<![CDATA[ -{* absolute filepath *} -{include file='/usr/local/include/templates/header.tpl'} - -{* absolute filepath (same thing) *} -{include file='file:/usr/local/include/templates/header.tpl'} - -{* windows absolute filepath (MUST use "file:" prefix) *} -{include file='file:C:/www/pub/templates/header.tpl'} - -{* include from template resource named "db" *} -{include file='db:header.tpl'} - -{* include a $variable template - eg $module = 'contacts' *} -{include file="$module.tpl"} - -{* wont work as its single quotes ie no variable substitution *} -{include file='$module.tpl'} - -{* include a multi $variable template - eg amber/links.view.tpl *} -{include file="$style_dir/$module.$view.tpl"} -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link>, - <link linkend="language.function.php"><varname>{php}</varname></link>, - <link linkend="resources">template resources</link> and - <link linkend="tips.componentized.templates">componentized templates</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,185 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4404 $ --> -<sect1 id="language.function.insert"> - <title>{insert}</title> - - <note> - <title>IMPORTANT NOTICE</title> - <para> - <varname>{insert}</varname> tags are deprecated from Smarty, and should not be used. Put your - PHP logic in PHP scripts or plugin functions instead. - </para> - </note> - - <note> - <para> - As of Smarty 3.1 the <varname>{insert}</varname> tags are only available from <link linkend="bc">SmartyBC</link>. - </para> - </note> - - <para> - <varname>{insert}</varname> tags work much like <link - linkend="language.function.include"><varname>{include}</varname></link> tags, - except that <varname>{insert}</varname> tags are NOT cached when - template <link linkend="caching">caching</link> is enabled. They - will be executed on every invocation of the template. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the insert function (insert_<parameter>name</parameter>) or insert plugin</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the template variable the output will - be assigned to</entry> - </row> - <row> - <entry>script</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the php script that is included before - the insert function is called</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>variable to pass to insert function</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <para> - Let's say you have a template with a banner slot at the top of - the page. The banner can contain any mixture of HTML, images, - flash, etc. so we can't just use a static link here, and we - don't want this contents cached with the page. In comes the - {insert} tag: the template knows #banner_location_id# and - #site_id# values (gathered from a - <link linkend="config.files">config file</link>), and needs to - call a function to get the banner contents. - </para> - <example> - <title>function {insert}</title> -<programlisting> -{* example of fetching a banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} -{insert "getBanner" lid=#banner_location_id# sid=#site_id#} {* short-hand *} -</programlisting> - </example> - <para> - In this example, we are using the name <quote>getBanner</quote> and passing the - parameters #banner_location_id# and #site_id#. Smarty will look - for a function named insert_getBanner() in your PHP application, passing - the values of #banner_location_id# and #site_id# as the first argument - in an associative array. All {insert} function names in - your application must be prepended with "insert_" to remedy possible - function name-space conflicts. Your insert_getBanner() function should - do something with the passed values and return the results. These results - are then displayed in the template in place of the {insert} tag. - In this example, Smarty would call this function: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - and display the returned results in place of the {insert} tag. - </para> - <itemizedlist> - <listitem><para> - If you supply the <parameter>assign</parameter> attribute, - the output of the <varname>{insert}</varname> tag - will be assigned to this template variable instead of being output - to the template. - <note> - <para> - Assigning the output to a template variable isn't too useful with - <link linkend="variable.caching">caching</link> enabled. - </para> - </note> - </para></listitem> - - <listitem><para> - If you supply the <parameter>script</parameter> attribute, - this php script will be - included (only once) before the <varname>{insert}</varname> function is executed. This - is the case where the insert function may not exist yet, and a php - script must be included first to make it work. - </para> - <para> - The path can be - either absolute, or relative to - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>. If security is enabled, then the - script must be located in the <parameter>$trusted_dir</parameter> path of the securty policy. - See the <link linkend="advanced.features.security">Security</link> section for details. - </para> - </listitem> - </itemizedlist> - <para> - The Smarty object is passed as the second argument. This way you - can reference and modify information in the Smarty object from - within the <varname>{insert}</varname> function. - </para> - <para> - If no PHP script can be found Smarty is looking for a corresponding insert plugin. - </para> - <note> - <title>Technical Note</title> - <para> - It is possible to have portions of the template not - cached. If you have <link linkend="caching">caching</link> - turned on, <varname>{insert}</varname> tags will not be cached. They will run - dynamically every time the page is created, even within cached - pages. This works good for things like banners, polls, live - weather, search results, user feedback areas, etc. - </para> - </note> - <para> - See also - <link linkend="language.function.include"><varname>{include}</varname></link> - </para> - </sect1> - <!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.function.ldelim"> - <title>{ldelim},{rdelim}</title> - <para> - <varname>{ldelim}</varname> and <varname>{rdelim}</varname> are used for - <link linkend="language.escaping">escaping</link> - template delimiters, by default - <emphasis role="bold">{</emphasis> and <emphasis role="bold">}</emphasis>. - You can also use <link linkend="language.function.literal"><varname>{literal}{/literal}</varname></link> - to escape blocks of text eg Javascript or CSS. - See also the complimentary <link - linkend="language.variables.smarty.ldelim"><parameter>{$smarty.ldelim}</parameter></link>. - </para> - <example> - <title>{ldelim}, {rdelim}</title> - <programlisting> -<![CDATA[ -{* this will print literal delimiters out of the template *} - -{ldelim}funcname{rdelim} is how functions look in Smarty! -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -{funcname} is how functions look in Smarty! -]]> - </screen> - <para>Another example with some Javascript</para> - <programlisting> -<![CDATA[ -<script language="JavaScript"> -function foo() {ldelim} - ... code ... -{rdelim} -</script> -]]> - </programlisting> - <para> - will output - </para> - <screen> -<![CDATA[ -<script language="JavaScript"> -function foo() { - .... code ... -} -</script> -]]> - </screen> - - </example> - - <example> - <title>Another Javascript example</title> -<programlisting> -<![CDATA[ -<script language="JavaScript" type="text/javascript"> - function myJsFunction(){ldelim} - alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} -</script> -<a href="javascript:myJsFunction()">Click here for Server Info</a> -]]> -</programlisting> - </example> - - <para>See also - <link linkend="language.function.literal"><varname>{literal}</varname></link> - and <link linkend="language.escaping">escaping Smarty parsing</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.literal"> - <title>{literal}</title> - <para> - <varname>{literal}</varname> tags allow a block of data to be taken literally. This is typically - used around Javascript or stylesheet blocks where {curly braces} would - interfere with the template <link linkend="variable.left.delimiter">delimiter</link> syntax. Anything within - <varname>{literal}{/literal}</varname> tags is not interpreted, but displayed as-is. - If you need template tags embedded in a <varname>{literal}</varname> block, consider using - <link linkend="language.function.ldelim"><varname>{ldelim}{rdelim}</varname></link> to escape the - individual delimiters instead. - </para> - - <note><para> - <varname>{literal}{/literal}</varname> tags are normally not necessary, as Smarty ignores delimiters that are surrounded by whitespace. - Be sure your javascript and CSS curly braces are surrounded by whitespace. This is new behavior to Smarty 3. - </para></note> - - <example> - <title>{literal} tags</title> - <programlisting> -<![CDATA[ -<script> - // the following braces are ignored by Smarty - // since they are surrounded by whitespace - function myFoo { - alert('Foo!'); - } - // this one will need literal escapement - {literal} - function myBar {alert('Bar!');} - {/literal} -</script> -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="language.function.ldelim"><varname>{ldelim} {rdelim}</varname></link> - and the - <link linkend="language.escaping">escaping Smarty parsing</link> page. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-nocache.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.nocache"> - <title>{nocache}</title> - - <para> - <varname>{nocache}</varname> is used to disable caching of a template section. - Every <varname>{nocache}</varname> must be paired with a matching - <varname>{/nocache}</varname>. - </para> - - <note> - <title>Note</title> - <para> - Be sure any variables used within a non-cached section are - also assigned from PHP when the page is loaded from the cache. - </para> - </note> - - <example> - <title>Preventing a template section from being cached</title> - <programlisting> -<![CDATA[ - -Today's date is -{nocache} -{$smarty.now|date_format} -{/nocache} -]]> - </programlisting> - <para> - The above code will output the current date on a cached page. - </para> - </example> - - <para> - See also the - <link linkend="caching">caching section</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4404 $ --> -<sect1 id="language.function.php"> - <title>{php}</title> - - <note> - <title>IMPORTANT NOTICE</title> - <para> - <varname>{php}</varname> tags are deprecated from Smarty, and should not be used. Put your - PHP logic in PHP scripts or plugin functions instead. - </para> - </note> - - <note> - <para> - As of Smarty 3.1 the <varname>{php}</varname> tags are only available from <link linkend="bc">SmartyBC</link>. - </para> - </note> - - <para> - The <varname>{php}</varname> tags allow PHP code to be embedded directly into the template. They - will not be escaped, regardless of the <link - linkend="variable.php.handling"><parameter>$php_handling</parameter></link> setting. - </para> - - <example> - <title>php code within {php} tags</title> - <programlisting> -<![CDATA[ -{php} - // including a php script directly from the template. - include('/path/to/display_weather.php'); -{/php} -]]> - </programlisting> - </example> - - - <example> - <title>{php} tags with global and assigning a variable</title> - <programlisting role="php"> -<![CDATA[ -{* this template includes a {php} block that assign's the variable $varX *} -{php} - global $foo, $bar; - if($foo == $bar){ - echo 'This will be sent to browser'; - } - // assign a variable to Smarty - $this->assign('varX','Toffee'); -{/php} -{* output the variable *} -<strong>{$varX}</strong> is my fav ice cream :-) -]]> - </programlisting> -</example> - - <para> - See also - <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link>, - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link> - and - <link linkend="tips.componentized.templates">componentized templates</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,890 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.section"> - <title>{section},{sectionelse}</title> - <para> - A <varname>{section}</varname> - is for looping over <emphasis role="bold">sequentially indexed arrays of data</emphasis>, - unlike <link linkend="language.function.foreach"><varname>{foreach}</varname></link> - which is used to loop over a - <emphasis role="bold">single associative array</emphasis>. - Every <varname>{section}</varname> tag must be paired with - a closing <varname>{/section}</varname> tag. - </para> - - <note><para> - The <link linkend="language.function.foreach"><varname>{foreach}</varname></link> loop can do everything a {section} loop can do, and has a simpler and easier syntax. It is usually preferred over the {section} loop. - </para></note> - <note><para> - {section} loops cannot loop over associative arrays, they must be numerically indexed, and sequential (0,1,2,...). For associative arrays, use the <link linkend="language.function.foreach"><varname>{foreach}</varname></link> loop. - </para></note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The name of the section</entry> - </row> - <row> - <entry>loop</entry> - <entry>mixed</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Value to determine the number of loop iterations</entry> - </row> - <row> - <entry>start</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> <entry>The index - position that the section will begin looping. If the - value is negative, the start position is calculated - from the end of the array. For example, if there are - seven values in the loop array and start is -2, the - start index is 5. Invalid values (values outside of the - length of the loop array) are automatically truncated - to the closest valid value.</entry> - </row> - <row> - <entry>step</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>The step value that will be used to traverse the - loop array. For example, step=2 will loop on index - 0,2,4, etc. If step is negative, it will step through - the array backwards.</entry> - </row> - <row> - <entry>max</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Sets the maximum number of times the section - will loop.</entry> - </row> - <row> - <entry>show</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Determines whether or not to show this section</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Disables caching of the <varname>{section}</varname> loop</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Required attributes are <parameter>name</parameter> and <parameter>loop</parameter>. - </para></listitem> - - <listitem><para> - The <parameter>name</parameter> of the <varname>{section}</varname> can be - anything you like, made up of letters, numbers and underscores, like - <ulink url="&url.php-manual;language.variables">PHP variables</ulink>. - </para></listitem> - - <listitem><para> - {section}'s can be nested, and the nested - <varname>{section}</varname> names must be unique from each other. - </para></listitem> - - <listitem><para> - The <parameter>loop</parameter> attribute, - usually an array of values, determines the number of times the - <varname>{section}</varname> will loop. You can also pass an integer - as the loop value. - </para></listitem> - - <listitem><para>When printing a variable within a <varname>{section}</varname>, the - <varname>{section}</varname> <parameter>name</parameter> must be given next - to variable name within [brackets]. - </para></listitem> - - <listitem><para> - <varname>{sectionelse}</varname> is - executed when there are no values in the loop variable. - </para></listitem> - - <listitem><para> - A <varname>{section}</varname> also has its own variables that handle - <varname>{section}</varname> properties. - These properties are accessible as: <link linkend="language.variables.smarty.loops"> - <parameter>{$smarty.section.name.property}</parameter></link> - where <quote>name</quote> is the attribute <parameter>name</parameter>. - </para></listitem> - - <listitem><para> - <varname>{section}</varname> properties are - <link linkend="section.property.index"><parameter>index</parameter></link>, - <link linkend="section.property.index.prev"><parameter>index_prev</parameter></link>, - <link linkend="section.property.index.next"><parameter>index_next</parameter></link>, - <link linkend="section.property.iteration"><parameter>iteration</parameter></link>, - <link linkend="section.property.first"><parameter>first</parameter></link>, - <link linkend="section.property.last"><parameter>last</parameter></link>, - <link linkend="section.property.rownum"><parameter>rownum</parameter></link>, - <link linkend="section.property.loop"><parameter>loop</parameter></link>, - <link linkend="section.property.show"><parameter>show</parameter></link>, - <link linkend="section.property.total"><parameter>total</parameter></link>. - </para></listitem> -</itemizedlist> - - <example> - <title>Looping a simple array with {section}</title> -<para> -<link linkend="api.assign"><varname>assign()</varname></link> an array to Smarty -</para> -<programlisting role="php"> -<![CDATA[ -<?php -$data = array(1000,1001,1002); -$smarty->assign('custid',$data); -?> -]]> -</programlisting> -<para>The template that outputs the array</para> - <programlisting> -<![CDATA[ -{* this example will print out all the values of the $custid array *} -{section name=customer loop=$custid} -{section customer $custid} {* short-hand *} - id: {$custid[customer]}<br /> -{/section} -<hr /> -{* print out all the values of the $custid array reversed *} -{section name=foo loop=$custid step=-1} -{section foo $custid step=-1} {* short-hand *} - {$custid[foo]}<br /> -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -<hr /> -id: 1002<br /> -id: 1001<br /> -id: 1000<br /> -]]> - </screen> - </example> - - - <example> - <title>{section} without an assigned array</title> -<programlisting> -<![CDATA[ -{section name=foo start=10 loop=20 step=2} - {$smarty.section.foo.index} -{/section} -<hr /> -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> -</programlisting> -<para> - The above example will output: -</para> -<screen> - <![CDATA[ -10 12 14 16 18 -<hr /> -20 18 16 14 12 10 -]]> - </screen> - </example> - - -<example> - <title>Naming a {section}</title> - <para>The <parameter>name</parameter> of the <varname>{section}</varname> can be anything - you like, see <ulink url="&url.php-manual;language.variables">PHP variables</ulink>. - It is used to reference the data within the <varname>{section}</varname>.</para> - <programlisting> -<![CDATA[ -{section name=anything loop=$myArray} - {$myArray[anything].foo} - {$name[anything]} - {$address[anything].bar} -{/section} -]]> - </programlisting> - </example> - - - <example> - <title>Looping an associative array with {section}</title> - <para>This is an example of printing an associative array - of data with a <varname>{section}</varname>. Following is the php script to assign the - <parameter>$contacts</parameter> array to Smarty.</para> - <programlisting role="php"> - <![CDATA[ -<?php -$data = array( - array('name' => 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); -?> -]]> - </programlisting> - -<para>The template to output <parameter>$contacts</parameter></para> - <programlisting> -<![CDATA[ -{section name=customer loop=$contacts} -<p> - name: {$contacts[customer].name}<br /> - home: {$contacts[customer].home}<br /> - cell: {$contacts[customer].cell}<br /> - e-mail: {$contacts[customer].email} -</p> -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<p> - name: John Smith<br /> - home: 555-555-5555<br /> - cell: 666-555-5555<br /> - e-mail: john@myexample.com -</p> -<p> - name: Jack Jones<br /> - home phone: 777-555-5555<br /> - cell phone: 888-555-5555<br /> - e-mail: jack@myexample.com -</p> -<p> - name: Jane Munson<br /> - home phone: 000-555-5555<br /> - cell phone: 123456<br /> - e-mail: jane@myexample.com -</p> -]]> - </screen> -</example> - - <example> - <title>{section} demonstrating the <varname>loop</varname> variable</title> - <para>This example assumes that <parameter>$custid</parameter>, <parameter>$name</parameter> - and <parameter>$address</parameter> are all - arrays containing the same number of values. First the php script that assign's the - arrays to Smarty.</para> -<programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 Abbey road', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> -</programlisting> - <para> - The <parameter>loop</parameter> variable only determines the number of times to loop. - You can access ANY variable from the template within the <varname>{section}</varname>. - This is useful for looping multiple arrays. You can pass an array which will determine - the loop count by the array size, or you can pass an integer to specify the number of loops. - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -<p> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]} -</p> -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<p> - id: 1000<br /> - name: John Smith<br /> - address: 253 Abbey road -</p> -<p> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln -</p> -<p> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st -</p> -]]> - </screen> - </example> - - - - <example> - <title>Nested {section}'s</title> - <para> - {section}'s can be nested as deep as you like. With nested {section}'s, - you can access complex data structures, such as multi-dimensional - arrays. This is an example <filename>.php</filename> script thats assign's the arrays. - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> -</programlisting> -<para>In this template, <emphasis>$contact_type[customer]</emphasis> is an array of - contact types for the current customer.</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -<hr> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]}<br /> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br /> - {/section} -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<hr> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th<br /> - home phone: 555-555-5555<br /> - cell phone: 666-555-5555<br /> - e-mail: john@myexample.com<br /> -<hr> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln<br /> - home phone: 123-456-4<br /> - web: www.example.com<br /> -<hr> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st<br /> - cell phone: 0457878<br /> -]]> - </screen> - </example> - - -<example> -<title>Database example with a {sectionelse}</title> - <para>Results of a database search (eg ADODB or PEAR) are assigned to Smarty</para> - <programlisting role="php"> - <![CDATA[ -<?php -$sql = 'select id, name, home, cell, email from contacts ' - ."where name like '$foo%' "; -$smarty->assign('contacts', $db->getAll($sql)); -?> -]]> -</programlisting> -<para>The template to output the database result in a HTML table</para> - <programlisting> -<![CDATA[ -<table> -<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> -{section name=co loop=$contacts} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{sectionelse} - <tr><td colspan="5">No items found</td></tr> -{/section} -</table> -]]> -</programlisting> - </example> - - - <sect2 id="section.property.index"> - <title>.index</title> - <para> - <parameter>index</parameter> contains the current array index, starting with zero - or the <parameter>start</parameter> attribute if given. It increments by one or by - the <parameter>step</parameter> attribute if given. - </para> - <note> - <title>Note</title> - <para> - If the <parameter>step</parameter> and <parameter>start</parameter> - properties are not - modified, then this works the same as the <link - linkend="section.property.iteration"><parameter>iteration</parameter></link> - property, except it starts at zero instead of one. - </para> - </note> - <example> -<title>{section} <varname>index</varname> property</title> -<para> -<note><title>Note</title> -<para><literal>$custid[customer.index]</literal> and -<literal>$custid[customer]</literal> are identical.</para> -</note> -</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="section.property.index.prev"> - <title>.index_prev</title> - <para> - <parameter>index_prev</parameter> is the previous loop index. - On the first loop, this is set to -1. - </para> - </sect2> - - <sect2 id="section.property.index.next"> - <title>.index_next</title> - <para> - <parameter>index_next</parameter> is the next loop index. On the last - loop, this is still one more than the current index, respecting the - setting of the <parameter>step</parameter> attribute, if given. - </para> - - <example> -<title><varname>index</varname>, <varname>index_next</varname> - and <varname>index_prev</varname> properties </title> -<programlisting role="php"> -<![CDATA[ -<?php -$data = array(1001,1002,1003,1004,1005); -$smarty->assign('rows',$data); -?> -]]> -</programlisting> -<para>Template to output the above array in a table</para> - <programlisting> -<![CDATA[ -{* $rows[row.index] and $rows[row] are identical in meaning *} -<table> - <tr> - <th>index</th><th>id</th> - <th>index_prev</th><th>prev_id</th> - <th>index_next</th><th>next_id</th> - </tr> -{section name=row loop=$rows} - <tr> - <td>{$smarty.section.row.index}</td><td>{$rows[row]}</td> - <td>{$smarty.section.row.index_prev}</td><td>{$rows[row.index_prev]}</td> - <td>{$smarty.section.row.index_next}</td><td>{$rows[row.index_next]}</td> - </tr> -{/section} -</table> -]]> - </programlisting> - <para> - The above example will output a table containing the following: - </para> - <screen> -<![CDATA[ -index id index_prev prev_id index_next next_id -0 1001 -1 1 1002 -1 1002 0 1001 2 1003 -2 1003 1 1002 3 1004 -3 1004 2 1003 4 1005 -4 1005 3 1004 5 -]]> - </screen> - </example> - </sect2> - - - <sect2 id="section.property.iteration"> - <title>.iteration</title> - <para> - <parameter>iteration</parameter> contains the current loop iteration and starts at one. - </para> - <note> - <para> - This is not affected by the <varname>{section}</varname> properties - <parameter>start</parameter>, <parameter>step</parameter> and <parameter>max</parameter>, - unlike the <link linkend="section.property.index"><parameter>index</parameter></link> - property. <parameter>iteration</parameter> also starts with one instead of zero - unlike <parameter>index</parameter>. <link - linkend="section.property.rownum"><parameter>rownum</parameter></link> is an alias to - <parameter>iteration</parameter>, they are identical. - </para> - </note> - <example> -<title>A section's <varname>iteration</varname> property </title> -<programlisting role="php"> -<![CDATA[ -<?php -// array of 3000 to 3015 -$id = range(3000,3015); -$smarty->assign('arr',$id); -?> -]]> -</programlisting> -<para>Template to output every other element of the <literal>$arr</literal> -array as <literal>step=2</literal></para> - <programlisting> -<![CDATA[ -{section name=cu loop=$arr start=5 step=2} - iteration={$smarty.section.cu.iteration} - index={$smarty.section.cu.index} - id={$custid[cu]}<br /> -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -iteration=1 index=5 id=3005<br /> -iteration=2 index=7 id=3007<br /> -iteration=3 index=9 id=3009<br /> -iteration=4 index=11 id=3011<br /> -iteration=5 index=13 id=3013<br /> -iteration=6 index=15 id=3015<br /> -]]> - </screen> - <para> - Another example that uses the <parameter>iteration</parameter> property to - output a table header block every five rows. - </para> - <programlisting> -<![CDATA[ -<table> -{section name=co loop=$contacts} - {if $smarty.section.co.iteration is div by 5} - <tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> - {/if} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> - </programlisting> - <para> - An that uses the <parameter>iteration</parameter> property to - alternate a text color every third row. - </para> - <programlisting> - <![CDATA[ - <table> - {section name=co loop=$contacts} - {if $smarty.section.co.iteration is even by 3} - <span style="color: #ffffff">{$contacts[co].name}</span> - {else} - <span style="color: #dddddd">{$contacts[co].name}</span> - {/if} - {/section} - </table> - ]]> - </programlisting> -</example> - - -<note><para> - The <emphasis>"is div by"</emphasis> syntax is a simpler alternative to the PHP mod operator syntax. The mod operator is allowed: <literal>{if $smarty.section.co.iteration % 5 == 1}</literal> will work just the same. -</para></note> - -<note><para> - You can also use <emphasis>"is odd by"</emphasis> to reverse the alternating. -</para></note> - - </sect2> - - - <sect2 id="section.property.first"> - <title>.first</title> - <para> - <parameter>first</parameter> is set to &true; if the current - <varname>{section}</varname> iteration is the initial one. - </para> - </sect2> - - - <sect2 id="section.property.last"> - <title>.last</title> - <para> - <parameter>last</parameter> is set to &true; - if the current section iteration is the final one. - </para> - <example> - <title>{section} property <varname>first</varname> and <varname>last</varname></title> - <para> - This example loops the <varname>$customers</varname> array, - outputs a header block on the first iteration and - on the last outputs the footer block. Also uses the - <link linkend="section.property.total"><parameter>total</parameter></link> property. - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers} - {if $smarty.section.customer.first} - <table> - <tr><th>id</th><th>customer</th></tr> - {/if} - - <tr> - <td>{$customers[customer].id}}</td> - <td>{$customers[customer].name}</td> - </tr> - - {if $smarty.section.customer.last} - <tr><td></td><td>{$smarty.section.customer.total} customers</td></tr> - </table> - {/if} -{/section} -]]> - </programlisting> - </example> - </sect2> - - - <sect2 id="section.property.rownum"> - <title>.rownum</title> - <para> - <parameter>rownum</parameter> contains the current loop iteration, - starting with one. It is an alias to <link - linkend="section.property.iteration"><parameter>iteration</parameter></link>, - they work identically. - </para> - </sect2> - - <sect2 id="section.property.loop"> - <title>.loop</title> - <para> - <parameter>loop</parameter> contains the last index number - that this {section} - looped. This can be used inside or after the <varname>{section}</varname>. - </para> - <example> - <title>{section} property <varname>loop</varname></title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -There are {$smarty.section.customer.loop} customers shown above. -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -There are 3 customers shown above. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.show"> - <title>.show</title> - <para> - <parameter>show</parameter> is used as a parameter to section and is - a boolean value. If - &false;, the section will not be displayed. If there is a - <varname>{sectionelse}</varname> present, that will be alternately displayed. - </para> - <example> - <title><varname>show</varname> property </title> - <para>Boolean <varname>$show_customer_info</varname> has been passed from the PHP - application, to regulate whether or not this section shows.</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$customers[customer]}<br /> -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> - -the section was shown. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.total"> - <title>.total</title> - <para> - <parameter>total</parameter> contains the number of iterations that this - <varname>{section}</varname> will loop. This can be used inside or after a - <varname>{section}</varname>. - </para> - <example> - <title><varname>total</varname> property example</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - There are {$smarty.section.customer.total} customers shown above. -]]> - </programlisting> - </example> - <para> - See also <link linkend="language.function.foreach"><varname>{foreach}</varname></link>, - <link linkend="language.function.for"><varname>{for}</varname></link>, - <link linkend="language.function.while"><varname>{while}</varname></link> - and - <link linkend="language.variables.smarty.loops"><parameter>$smarty.section</parameter></link>. - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-setfilter.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.setfilter"> - <title>{setfilter}</title> - <para> - The <varname>{setfilter}...{/setfilter}</varname> block tag allows the definition of template instance's variable filters. - </para> - <para> - SYNTAX: {setfilter filter1|filter2|filter3....}...{/setfilter} - </para> - <para> - The filter can be: - </para> - <itemizedlist> - <listitem> - <para> - A variable filter plugin specified by it's name. - </para> - </listitem> - <listitem> - <para> - A modidier specified by it's name and optional additional parameter. - </para> - </listitem> - </itemizedlist> - -<para> - <varname>{setfilter}...{/setfilter}</varname> blocks can be nested. The filter definition of inner blocks does replace the definition of the outer block. -</para> - - <para> - Template instance filters run in addition to other modifiers and filters. - They run in the following order: - modifier, - default_modifier, - $escape_html, - registered variable filters, - autoloaded variable filters, - template instance's variable filters. Everything after default_modifier can be disabled with the <literal>nofilter</literal> flag. - </para> - - <example> - <title>{setfilter} tags</title> - <programlisting> -<![CDATA[ -<script> -{setfilter filter1} - {$foo} {* filter1 runs on output of $foo *} - {setfilter filter2|mod:true} - {$bar} {* filter2 and modifier mod runs on output of $bar *} - {/setfilter} - {$buh} {* filter1 runs on output of $buh *} -{/setfilter} -{$blar} {* no template instance filter runs on output of $blar} -</script> -]]> - </programlisting> - </example> - - <note> - <para> - The setting of template instance filters does not effect the output of included subtemplates. - </para> - </note> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-shortform-assign.xml
Deleted
@@ -1,175 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> -<sect1 id="language.function.shortform.assign"> - <title>{$var=...}</title> - <para> - This is a short-hand version of the {assign} function. You can - assign values directly to the template, or assign values to array elements too. - </para> - - <note><para> - Assignment of variables in-template is essentially placing application logic into the presentation that may be better handled in PHP. Use at your own discretion. - </para></note> - - <para> - The following attributes can be added to the tag: - </para> - - <para><emphasis role="bold">Attributes:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="position" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Shorthand</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>scope</entry> - <entry>n/a</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The scope of the assigned variable: 'parent','root' or 'global'</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">Option Flags:</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Name</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>Assigns the variable with the 'nocache' attribute</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>Simple assignment</title> - <programlisting> -<![CDATA[ -{$name='Bob'} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>Assignment with math</title> - <programlisting> -<![CDATA[ -{$running_total=$running_total+$some_array[row].some_value} -]]> - </programlisting> - </example> - - <example> - <title>Assignment of an array element</title> - <programlisting> -<![CDATA[ -{$user.name="Bob"} -]]> - </programlisting> - </example> - - <example> - <title>Assignment of an multidimensional array element</title> - <programlisting> -<![CDATA[ -{$user.name.first="Bob"} -]]> - </programlisting> - </example> - - <example> - <title>Appending an array</title> - <programlisting> -<![CDATA[ -{$users[]="Bob"} -]]> - </programlisting> - </example> - - <example> - <title>Assigment in the scope of calling template</title> - <para>Variables assigned in the included template will be seen in the including template.</para> - <programlisting> -<![CDATA[ -{include file="sub_template.tpl"} -... -{* display variable assigned in sub_template *} -{$foo}<br> -... -]]> - </programlisting> - <para>The template above includes the example <filename>sub_template.tpl</filename> below</para> - <programlisting> -<![CDATA[ -... -{* foo will be known also in the including template *} -{$foo="something" scope=parent} -{* bar is assigned only local in the including template *} -{$bar="value"} -... -]]> -</programlisting> - </example> - - <para> - See also <link linkend="language.function.assign"><varname>{assign}</varname></link> - and - <link linkend="language.function.append"><varname>{append}</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.strip"> - <title>{strip}</title> - <para> - Many times web designers run into the issue where white space and - carriage returns affect the output of the rendered HTML (browser - "features"), so you must run all your tags together in the template - to get the desired results. This usually ends up in unreadable or - unmanageable templates. - </para> - <para> - Anything within <varname>{strip}{/strip}</varname> tags are stripped of the - extra spaces or carriage returns at the beginnings and ends of the - lines before they are displayed. This way you can keep your - templates readable, and not worry about extra white space causing - problems. - </para> - <note> - <para> - <varname>{strip}{/strip}</varname> does not affect the contents of template variables, - see the <link linkend="language.modifier.strip">strip modifier</link> instead. - </para> - </note> - <example> - <title>{strip} tags</title> - <programlisting> -<![CDATA[ -{* the following will be all run into one line upon output *} -{strip} -<table border='0'> - <tr> - <td> - <a href="{$url}"> - <font color="red">This is a test</font> - </a> - </td> - </tr> -</table> -{/strip} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -<table border='0'><tr><td><a href="http://. snipped...</a></td></tr></table> -]]> - </screen> - </example> - <para> - Notice that in the above example, all the lines begin and end - with HTML tags. Be aware that all the lines are run together. - If you have plain text at the beginning or end of any line, - they will be run together, and may not be desired results. - </para> - <para> - See also the - <link linkend="language.modifier.strip"><varname>strip</varname></link> modifier. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-builtin-functions/language-function-while.xml
Deleted
@@ -1,180 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> -<sect1 id="language.function.while"> - <title>{while}</title> - <para> - <varname>{while}</varname> loops in Smarty have much the same flexibility as PHP - <ulink url="&url.php-manual;while">while</ulink> - statements, with a few added features for the template engine. - Every <varname>{while}</varname> must be paired with a matching - <varname>{/while}</varname>. All PHP conditionals and functions - are recognized, such as <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, - <emphasis>is_array()</emphasis>, etc. - </para> - <para> - The following is a list of recognized qualifiers, which must be - separated from surrounding elements by spaces. Note that items listed - in [brackets] are optional. PHP equivalents are shown where applicable. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Qualifier</entry> - <entry>Alternates</entry> - <entry>Syntax Example</entry> - <entry>Meaning</entry> - <entry>PHP Equivalent</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>equals</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>not equals</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>greater than</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>less than</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>greater than or equal</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>less than or equal</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>check for identity</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>negation (unary)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>modulous</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>divisible by</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>[not] an even number (unary)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>grouping level [not] even</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>[not] an odd number (unary)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>[not] an odd grouping</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{while} loop</title> - <programlisting> -<![CDATA[ - -{while $foo > 0} - {$foo--} -{/while} -]]> - </programlisting> - <para> - The above example will count down the value of $foo until 1 is reached. - </para> - </example> - - <para> - See also <link linkend="language.function.foreach"><varname>{foreach}</varname></link>, - <link linkend="language.function.for"><varname>{for}</varname></link> - and - <link linkend="language.function.section"><varname>{section}</varname></link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-combining-modifiers.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="language.combining.modifiers"> - <title>Combining Modifiers</title> - <para> - You can apply any number of modifiers to a variable. They will be - applied in the order they are combined, from left to right. They must - be separated with a <literal>|</literal> (pipe) character. - </para> - <example> - <title>combining modifiers</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); - -?> -]]> -</programlisting> -<para> -where template is: -</para> -<programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -Smokers are Productive, but Death Cuts Efficiency. -S M O K E R S A R ....snip.... H C U T S E F F I C I E N C Y . -s m o k e r s a r ....snip.... b u t d e a t h c u t s... -s m o k e r s a r e p r o d u c t i v e , b u t . . . -s m o k e r s a r e p. . . -]]> - </screen> - </example> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="language.custom.functions"> - <title>Custom Functions</title> - <para> - Smarty comes with several custom plugin functions that you can - use in the templates. - </para> - - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-textformat; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.counter"> - <title>{counter}</title> - <para> - <varname>{counter}</varname> is used to print out a count. - <varname>{counter}</varname> will remember the - count on each iteration. You can adjust the number, the interval - and the direction of the count, as well as determine whether or not - to print the value. You can run multiple counters concurrently by - supplying a unique name for each one. If you do not supply a name, - the name <quote>default</quote> will be used. - </para> - <para> - If you supply the <parameter>assign</parameter> attribute, the output of the - <varname>{counter}</varname> function will be assigned to this template - variable instead of being output to the template. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>default</emphasis></entry> - <entry>The name of the counter</entry> - </row> - <row> - <entry>start</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>The initial number to start counting from</entry> - </row> - <row> - <entry>skip</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>The interval to count by</entry> - </row> - <row> - <entry>direction</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>up</emphasis></entry> - <entry>The direction to count (up/down)</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Whether or not to print the value</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>the template variable the output will be assigned to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{counter}</title> - <programlisting> -<![CDATA[ -{* initialize the count *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - this will output: - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,154 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.cycle"> - <title>{cycle}</title> - <para> - <varname>{cycle}</varname> is used to alternate a set of values. - This makes it easy to for example, alternate between two or more colors - in a table, or cycle through an array of values. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>default</emphasis></entry> - <entry>The name of the cycle</entry> - </row> - <row> - <entry>values</entry> - <entry>mixed</entry> - <entry>Yes</entry> - <entry><emphasis>N/A</emphasis></entry> - <entry>The values to cycle through, either a comma - delimited list (see delimiter attribute), or an array - of values</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Whether to print the value or not</entry> - </row> - <row> - <entry>advance</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Whether or not to advance to the next value</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>,</emphasis></entry> - <entry>The delimiter to use in the values attribute</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The template variable the output will be assigned - to</entry> - </row> - <row> - <entry>reset</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>The cycle will be set to the first value and not advanced</entry> - </row> - </tbody> - </tgroup> - </informaltable> - -<itemizedlist> - <listitem><para> - You can <varname>{cycle}</varname> through more than one set of values in - a template by supplying a <parameter>name</parameter> attribute. - Give each <varname>{cycle}</varname> an unique <parameter>name</parameter>. - </para></listitem> - <listitem><para> - You can force the current value not to print with the - <parameter>print</parameter> attribute set to &false;. This would be useful - for silently skipping a value. - </para></listitem> - <listitem><para> - The <parameter>advance</parameter> attribute is used to repeat a value. - When set to &false;, the next call to <varname>{cycle}</varname> will print - the same value. - </para></listitem> - <listitem><para> - If you supply the <parameter>assign</parameter> attribute, the output of the - <varname>{cycle}</varname> function will be assigned to a template variable - instead of being output to the template. - </para></listitem> -</itemizedlist> - - <example> - <title>{cycle}</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr class="{cycle values="odd,even"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> - </programlisting> - <para>The above template would output:</para> - <screen> -<![CDATA[ -<tr class="odd"> - <td>1</td> -</tr> -<tr class="even"> - <td>2</td> -</tr> -<tr class="odd"> - <td>3</td> -</tr> -]]> - </screen> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <para> - <varname>{debug}</varname> dumps the debug console to the page. This works - regardless of the <link linkend="chapter.debugging.console">debug</link> - settings in the php script. Since this gets executed at runtime, this is - only able to show the <link linkend="api.assign">assigned</link> - variables; not the templates that - are in use. However, you can see all the currently available variables - within the scope of a template. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>javascript</emphasis></entry> - <entry>output type, html or javascript</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - See also the - <link linkend="chapter.debugging.console">debugging console page</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,161 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="language.function.eval"> - <title>{eval}</title> - <para> - <varname>{eval}</varname> is used to evaluate a variable as a template. - This can be used for things like embedding template tags/variables into - variables or tags/variables into config file variables. - </para> - <para> - If you supply the <parameter>assign</parameter> attribute, the output of the - <varname>{eval}</varname> function will be assigned to this template - variable instead of being output to the template. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable (or string) to evaluate</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The template variable the output will be assigned - to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Technical Note</title> - <para> - <itemizedlist> - <listitem><para> - Evaluated variables are treated the same as templates. They follow - the same escapement and security features just as if they were - templates. - </para></listitem> - - <listitem><para> - Evaluated variables are compiled on every invocation, the compiled - versions are not saved! However if you have - <link linkend="caching">caching</link> enabled, the - output will be cached with the rest of the template. - </para></listitem> - <listitem><para> - If the content to evaluate doesn't change often, or is used repeatedly, - consider using <literal>{include file="string:{$template_code}"}</literal> instead. - This may cache the compiled state and thus doesn't have to run the (comparably slow) - compiler on every invocation. - </para></listitem> - </itemizedlist> - </para> - </note> - - <example> - <title>{eval}</title> -<para>The contents of the config file, <filename>setup.conf</filename>.</para> - <programlisting> -<![CDATA[ -emphstart = <strong> -emphend = </strong> -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - </programlisting> - <para> - Where the template is: - </para> - <programlisting> -<![CDATA[ -{config_load file='setup.conf'} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign='state_error'} -{$state_error} -]]> - </programlisting> - <para> - The above template will output: - </para> - <screen> -<![CDATA[ -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a <strong>city</strong>. -You must supply a <strong>state</strong>. -]]> - </screen> - </example> - - <example> - <title>Another {eval} example</title> - <para>This outputs the server name (in uppercase) and IP. The assigned - variable <parameter>$str</parameter> could be from a database query.</para> - <programlisting role="php"> - <![CDATA[ -<?php -$str = 'The server name is {$smarty.server.SERVER_NAME|upper} ' - .'at {$smarty.server.SERVER_ADDR}'; -$smarty->assign('foo',$str); -?> - ]]> - </programlisting> - <para> - Where the template is: - </para> - <programlisting> - <![CDATA[ - {eval var=$foo} - ]]> - </programlisting> - </example> - - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.fetch"> - <title>{fetch}</title> - <para> - <varname>{fetch}</varname> is used to retrieve files from the - local file system, http, or ftp and display the contents. - </para> - - <itemizedlist> - <listitem><para> - If the file name begins with - <parameter>http://</parameter>, the web site page will be fetched and displayed. - <note> - <para> - This will not support http redirects, be sure to - include a trailing slash on your web page fetches where necessary. - </para> - </note> - </para></listitem> - - <listitem><para> - If the file name begins with <parameter>ftp://</parameter>, the file will - be downloaded from the ftp server and displayed. - </para></listitem> - - <listitem><para> - For local files, either a full system file path - must be given, or a path relative to the executed php script. - <note> - <para>If security is enabled and you are fetching a file from the local file system, <varname>{fetch}</varname> - will only allow files from within the <parameter>$secure_dir</parameter> path of the securty policy. - See the <link linkend="advanced.features.security">Security</link> section for details. - </para> - </note> - </para></listitem> - - <listitem><para> - If the <parameter>assign</parameter> attribute is set, the output of the - <varname>{fetch}</varname> function will be assigned to this template - variable instead of being output to the template. - </para></listitem> -</itemizedlist> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The file, http or ftp site to fetch</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The template variable the output will be assigned - to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{fetch} examples</title> - <programlisting> -<![CDATA[ -{* include some javascript in your template *} -{fetch file='/export/httpd/www.example.com/docs/navbar.js'} - -{* embed some weather text in your template from another web site *} -{fetch file='http://www.myweather.com/68502/'} - -{* fetch a news headline file via ftp *} -{fetch file='ftp://user:password@ftp.example.com/path/to/currentheadlines.txt'} -{* as above but with variables *} -{fetch file="ftp://`$user`:`$password`@`$server`/`$path`"} - -{* assign the fetched contents to a template variable *} -{fetch file='http://www.myweather.com/68502/' assign='weather'} -{if $weather ne ''} - <div id="weather">{$weather}</div> -{/if} -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.function.capture"><varname>{capture}</varname></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link> - and - <link linkend="api.fetch"><varname>fetch()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,250 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4669 $ --> -<sect1 id="language.function.html.checkboxes"> - <title>{html_checkboxes}</title> - <para> - <varname>{html_checkboxes}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that creates an html checkbox - group with provided data. It takes care of which item(s) are - selected by default as well. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>Name of checkbox list</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Yes, unless using options attribute</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An array of values for checkbox buttons</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Yes, unless using options attribute</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An array of output for checkbox buttons</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>The selected checkbox element(s)</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Yes, unless using values and output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An associative array of values and output</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>String of text to separate each checkbox item</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Assign checkbox tags to an array instead of output</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Add <label>-tags to the output</entry> - </row> - <row> - <entry>label_ids</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Add id-attributes to <label> and <input> to the output</entry> - </row> - <row> - <entry>escape</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Escape the output / content (values are always escaped)</entry> - </row> - <row> - <entry>strict</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Will make the "extra" attributes <emphasis>disabled</emphasis> and <emphasis>readonly</emphasis> only be set, if they were supplied with either boolean <emphasis>&true;</emphasis> or string <emphasis>"disabled"</emphasis> and <emphasis>"readonly"</emphasis> respectively</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Required attributes are <parameter>values</parameter> and - <parameter>output</parameter>, unless you use <parameter>options</parameter> - instead. - </para></listitem> - - <listitem><para> - All output is XHTML compliant. - </para></listitem> - - <listitem><para> - All parameters that are not in the list above are printed as - name/value-pairs inside each of the created <input>-tags. - </para></listitem> - </itemizedlist> - - <example> - <title>{html_checkboxes}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> -where template is - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - or where PHP code is: - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - and the template is - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='id' options=$cust_checkboxes - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - both examples will output: - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label> -<br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title> - Database example (eg PEAR or ADODB): - </title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, contact_type_id, contact ' - .'from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para>The results of the database queries above would be output with.</para> -<programlisting> -<![CDATA[ -{html_checkboxes name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> -</programlisting> - </example> - <para> - See also - <link linkend="language.function.html.radios"><varname>{html_radios}</varname></link> - and - <link linkend="language.function.html.options"><varname>{html_options}</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,162 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.html.image"> - <title>{html_image}</title> - <para> - <varname>{html_image}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that generates an HTML <literal><img></literal> tag. - The <parameter>height</parameter> and <parameter>width</parameter> - are automatically calculated from the image file if they are not supplied. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>name/path to image</entry> - </row> - <row> - <entry>height</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>actual image height</emphasis></entry> - <entry>Height to display image</entry> - </row> - <row> - <entry>width</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>actual image width</emphasis></entry> - <entry>Width to display image</entry> - </row> - <row> - <entry>basedir</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>web server doc root</emphasis></entry> - <entry>Directory to base relative paths from</entry> - </row> - <row> - <entry>alt</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis><quote></quote></emphasis></entry> - <entry>Alternative description of the image</entry> - </row> - <row> - <entry>href</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>href value to link the image to</entry> - </row> - <row> - <entry>path_prefix</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Prefix for output path</entry> - </row> - </tbody> - </tgroup> - </informaltable> - -<itemizedlist> -<listitem><para> - <parameter>basedir</parameter> is the base directory that relative image - paths are based from. If not given, the web server's document root - <varname>$_ENV['DOCUMENT_ROOT']</varname> is used as the base. - If security is enabled, then the image must be located in the <parameter>$secure_dir</parameter> path of the securty policy. - See the <link linkend="advanced.features.security">Security</link> section for details. - </para></listitem> - - <listitem><para> - <parameter>href</parameter> is the href value to link the image to. - If link is supplied, an <literal><a href="LINKVALUE"><a></literal> - tag is placed around the image tag. - </para> </listitem> - - <listitem><para> - <parameter>path_prefix</parameter> is an optional prefix string you can give - the output path. - This is useful if you want to supply a different server name for the image. - </para></listitem> - - <listitem><para> - All parameters that are not in the list above are printed as - name/value-pairs inside the created <literal><img></literal> tag. - </para></listitem> -</itemizedlist> - - <note> - <title>Technical Note</title> - <para> - <varname>{html_image}</varname> requires a hit to the disk to read the - image and calculate the height and width. If you don't use template - <link linkend="caching">caching</link>, - it is generally better to avoid <varname>{html_image}</varname> and leave - image tags static for optimal performance. - </para> - </note> - - <example> - <title>{html_image} example</title> - <programlisting> -<![CDATA[ -{html_image file='pumpkin.jpg'} -{html_image file='/path/from/docroot/pumpkin.jpg'} -{html_image file='../path/relative/to/currdir/pumpkin.jpg'} -]]> - </programlisting> - <para> - Example output of the above template would be: - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" /> -]]> - </screen> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,287 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4669 $ --> -<sect1 id="language.function.html.options"> - <title>{html_options}</title> - <para> - <varname>{html_options}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that creates the html <literal><select><option></literal> group - with the assigned data. It takes care of which item(s) are selected by - default as well. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Yes, unless using options attribute</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An array of values for dropdown</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Yes, unless using options attribute</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An array of output for dropdown</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>The selected option element(s)</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Yes, unless using values and output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An associative array of values and output</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Name of select group</entry> - </row> - <row> - <entry>strict</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Will make the "extra" attributes <emphasis>disabled</emphasis> and <emphasis>readonly</emphasis> only be set, if they were supplied with either boolean <emphasis>&true;</emphasis> or string <emphasis>"disabled"</emphasis> and <emphasis>"readonly"</emphasis> respectively</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Required attributes are - <parameter>values</parameter> and <parameter>output</parameter>, - unless you use the combined <parameter>options</parameter> instead. - </para></listitem> - - - <listitem><para> - If the optional <parameter>name</parameter> attribute is given, the - <literal><select></select></literal> tags are created, - otherwise ONLY the <literal><option></literal> list is generated. - </para></listitem> - - <listitem><para> - If a given value is an array, it will treat it as an html - <literal><optgroup></literal>, and display the groups. - Recursion is supported with <literal><optgroup></literal>. - </para></listitem> - - <listitem><para> - All parameters that are not in the list above are printed as name/value-pairs - inside the <literal><select></literal> tag. They are ignored if - the optional <parameter>name</parameter> is not given. - </para></listitem> - - <listitem><para> - All output is XHTML compliant. - </para></listitem> - </itemizedlist> - - - <example> - <title>Associative array with the <varname>options</varname> attribute</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') - ); -$smarty->assign('mySelect', 9904); -?> -]]> - </programlisting> - <para> - The following template will generate a drop-down list. - Note the presence of the <parameter>name</parameter> attribute - which creates the <literal><select></literal> tags. - </para> - <programlisting> -<![CDATA[ -{html_options name=foo options=$myOptions selected=$mySelect} -]]> - </programlisting> - - <para> - Output of the above example would be: - </para> - <screen> -<![CDATA[ -<select name="foo"> -<option value="1800">Joe Schmoe</option> -<option value="9904" selected="selected">Jack Smith</option> -<option value="2003">Charlie Brown</option> -</select> -]]> -</screen> -</example> - -<example> -<title>Dropdown with seperate arrays for <varname>values</varname> and -<varname>ouptut</varname></title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('cust_ids', array(56,92,13)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 92); -?> -]]> - </programlisting> - <para> - The above arrays would be output with the following template - (note the use of the php <ulink url="&url.php-manual;function.count"> - <varname>count()</varname></ulink> function as a modifier - to set the select size). - </para> - <programlisting> -<![CDATA[ -<select name="customer_id" size="{$cust_names|@count}"> - {html_options values=$cust_ids output=$cust_names selected=$customer_id} -</select> -]]> - </programlisting> - <para> - The above example would output: - </para> - <screen> -<![CDATA[ -<select name="customer_id" size="3"> - <option value="56">Joe Schmoe</option> - <option value="92" selected="selected">Jane Johnson</option> - <option value="13">Charlie Brown</option> -</select> - -]]> - </screen> - </example> - <example> - <title>Database example (eg ADODB or PEAR)</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> -</programlisting> -<para> -Where a template could be as follows. Note the use of the -<link linkend="language.modifier.truncate"><varname>truncate</varname></link> -modifier. -</para> -<programlisting> -<![CDATA[ -<select name="type_id"> - <option value='null'>-- none --</option> - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} -</select> -]]> - </programlisting> - </example> - - <example> - <title>Dropdown's with <optgroup> </title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr['Sport'] = array(6 => 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - </programlisting> - <para>The script above and the following template - </para> - <programlisting> -<![CDATA[ -{html_options name=foo options=$lookups selected=$fav} -]]> - </programlisting> - - <para> - would output: - </para> - <screen> -<![CDATA[ -<select name="foo"> -<optgroup label="Sport"> -<option value="6">Golf</option> -<option value="9">Cricket</option> -<option value="7" selected="selected">Swim</option> -</optgroup> -<optgroup label="Rest"> -<option value="3">Sauna</option> -<option value="1">Massage</option> -</optgroup> -</select> -]]> -</screen> -</example> - - <para> - See also - <link linkend="language.function.html.checkboxes"><varname>{html_checkboxes}</varname></link> - and - <link linkend="language.function.html.radios"><varname>{html_radios}</varname></link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,250 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4669 $ --> -<sect1 id="language.function.html.radios"> - <title>{html_radios}</title> - <para> - <varname>{html_radios}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that creates a HTML radio button group. - It also takes care of which item is selected by default as well. - </para> - - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>Name of radio list</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Yes, unless using options attribute</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An array of values for radio buttons</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Yes, unless using options attribute</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An array of output for radio buttons</entry> - </row> - <row> - <entry>selected</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>The selected radio element</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Yes, unless using values and output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>An associative array of values and output</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>String of text to separate each radio item</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Assign radio tags to an array instead of output</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Add <label>-tags to the output</entry> - </row> - <row> - <entry>label_ids</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Add id-attributes to <label> and <input> to the output</entry> - </row> - <row> - <entry>escape</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Escape the output / content (values are always escaped)</entry> - </row> - <row> - <entry>strict</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Will make the "extra" attributes <emphasis>disabled</emphasis> and <emphasis>readonly</emphasis> only be set, if they were supplied with either boolean <emphasis>&true;</emphasis> or string <emphasis>"disabled"</emphasis> and <emphasis>"readonly"</emphasis> respectively</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Required attributes are <parameter>values</parameter> and - <parameter>output</parameter>, unless you use <parameter>options</parameter> - instead. - </para></listitem> - - <listitem><para> - All output is XHTML compliant. - </para></listitem> - - <listitem><para> - All parameters that are not in the list above are output as - name/value-pairs inside each of the created - <literal><input></literal>-tags. - </para></listitem> - </itemizedlist> - <example> - <title>{html_radios} first example</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} - ]]> - </programlisting> -</example> -<example> - <title>{html_radios} second example</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' options=$cust_radios - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - Both examples will output: - </para> - <screen> -<![CDATA[ -<label><input type="radio" name="id" value="1000" />Joe Schmoe</label><br /> -<label><input type="radio" name="id" value="1001" checked="checked" />Jack Smith</label><br /> -<label><input type="radio" name="id" value="1002" />Jane Johnson</label><br /> -<label><input type="radio" name="id" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title>{html_radios} - Database example (eg PEAR or ADODB):</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id ' - .'from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - The variable assigned from the database above - would be output with the template: - </para> - <programlisting> -<![CDATA[ -{html_radios name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> - </programlisting> - </example> - <para> - See also <link - linkend="language.function.html.checkboxes"><varname>{html_checkboxes}</varname></link> - and <link - linkend="language.function.html.options"><varname>{html_options}</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - - -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,402 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4631 $ --> -<sect1 id="language.function.html.select.date"> - <title>{html_select_date}</title> - <para> - <varname>{html_select_date}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that creates date dropdowns. - It can display any or all of year, month, and day. - All parameters that are not in the list below are printed as - name/value-pairs inside the <literal><select></literal> tags - of day, month and year. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Date_</entry> - <entry>What to prefix the var name with</entry> - </row> - <row> - <entry>time</entry> - <entry> - <ulink url="&url.php-manual;function.time">timestamp</ulink>, - <ulink url="&url.php-manual;class.DateTime">DateTime</ulink>, - mysql timestamp or any string parsable by - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>, - arrays as produced by this function if field_array is set. - </entry> - <entry>No</entry> - <entry>current <ulink url="&url.php-manual;function.time">timestamp</ulink></entry> - <entry> - What date/time to pre-select. If an array is given, the attributes field_array and prefix - are used to identify the array elements to extract year, month and day from. Omitting this - parameter or supplying a falsy value will select the current date. To prevent date selection, - pass in &null; - </entry> - </row> - <row> - <entry>start_year</entry> - <entry>string</entry> - <entry>No</entry> - <entry>current year</entry> - <entry>The first year in the dropdown, either - year number, or relative to current year (+/- N)</entry> - </row> - <row> - <entry>end_year</entry> - <entry>string</entry> - <entry>No</entry> - <entry>same as start_year</entry> - <entry>The last year in the dropdown, either - year number, or relative to current year (+/- N)</entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether to display days or not</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether to display months or not</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether to display years or not</entry> - </row> - <row> - <entry>month_names</entry> - <entry>array</entry> - <entry>No</entry> - <entry>null</entry> - <entry>List of strings to display for months. array(1 => 'Jan', …, 12 => 'Dec')</entry> - </row> - <row> - <entry>month_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%B</entry> - <entry>What format the month should be in (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%02d</entry> - <entry>What format the day output should be in (sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%d</entry> - <entry>What format the day value should be in (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>Whether or not to display the year as text</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>Display years in reverse order</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - If a name is given, the select boxes will be drawn - such that the results will be returned to PHP in the - form of name[Day], name[Year], name[Month]. - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds size attribute to select tag if given</entry> - </row> - <row> - <entry>month_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds size attribute to select tag if given</entry> - </row> - <row> - <entry>year_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds size attribute to select tag if given</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to all select/input tags if given</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if given</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if given</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if given</entry> - </row> - <row> - <entry>all_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to all select/input tags if given</entry> - </row> - <row> - <entry>day_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>month_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>year_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>field_order</entry> - <entry>string</entry> - <entry>No</entry> - <entry>MDY</entry> - <entry>The order in which to display the fields</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>String printed between different fields</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%m</entry> - <entry>strftime() format of the month values, default is - %m for month numbers.</entry> - </row> - <row> - <entry>all_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of any select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-boxes read <quote>Please select</quote> for example.</entry> - </row> - <row> - <entry>year_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the year's select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-box read <quote>Please select a year</quote> for example. - Note that you can use values like <quote>-MM-DD</quote> as time-attribute to indicate - an unselected year.</entry> - </row> - <row> - <entry>month_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the month's select-box has this - value as it's label and <quote></quote> as it's value. . - Note that you can use values like <quote>YYYY--DD</quote> as time-attribute to indicate - an unselected month.</entry> - </row> - <row> - <entry>day_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the day's select-box has this - value as it's label and <quote></quote> as it's value. - Note that you can use values like <quote>YYYY-MM-</quote> as - time-attribute to indicate an unselected day.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <para> - There is an useful php function on the - <link linkend="tips.dates">date tips page</link> for converting - <varname>{html_select_date}</varname> form values to a timestamp. - </para> - </note> - - <example> - <title>{html_select_date}</title> - <para>Template code</para> - <programlisting> -<![CDATA[ -{html_select_date} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> - ..... snipped ..... -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> - ..... snipped ..... -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected="selected">13</option> -<option value="14">14</option> -<option value="15">15</option> - ..... snipped ..... -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2006" selected="selected">2006</option> -</select> -]]> - </screen> - </example> - - <example> - <title>{html_select_date} second example</title> - <programlisting> -<![CDATA[ -{* start and end year can be relative to current year *} -{html_select_date prefix='StartDate' time=$time start_year='-5' - end_year='+1' display_days=false} -]]> - </programlisting> - <para> - With 2000 as the current year the output: - </para> - <screen> -<![CDATA[ -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -.... snipped .... -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="StartDateYear"> -<option value="1995">1995</option> -.... snipped .... -<option value="1999">1999</option> -<option value="2000" selected="selected">2000</option> -<option value="2001">2001</option> -</select> -]]> - </screen> - </example> - <para> - See also - <link linkend="language.function.html.select.time"><varname>{html_select_time}</varname></link>, - <link linkend="language.modifier.date.format"><varname>date_format</varname></link>, - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link> - and the <link linkend="tips.dates">date tips page</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,371 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="language.function.html.select.time"> - <title>{html_select_time}</title> - <para> - <varname>{html_select_time}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that creates time dropdowns for you. - It can display any or all of hour, minute, second and meridian. - </para> - <para> - The <parameter>time</parameter> attribute can have different formats. - It can be a unique timestamp, a string of the format - <literal>YYYYMMDDHHMMSS</literal> or a string that is parseable by PHP's - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Time_</entry> - <entry>What to prefix the var name with</entry> - </row> - <row> - <entry>time</entry> - <entry> - <ulink url="&url.php-manual;function.time">timestamp</ulink>, - <ulink url="&url.php-manual;class.DateTime">DateTime</ulink>, - mysql timestamp or any string parsable by - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>, - arrays as produced by this function if field_array is set. - </entry> - <entry>No</entry> - <entry>current <ulink url="&url.php-manual;function.time">timestamp</ulink></entry> - <entry> - What date/time to pre-select. If an array is given, the attributes field_array and prefix - are used to identify the array elements to extract hour, minute, second and meridian from. - </entry> - </row> - <row> - <entry>display_hours</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether or not to display hours</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether or not to display minutes</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether or not to display seconds</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether or not to display meridian (am/pm)</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>Whether or not to use 24 hour clock</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>1</entry> - <entry>Number interval in minute dropdown</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>1</entry> - <entry>Number interval in second dropdown</entry> - </row> - <row> - <entry>hour_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%02d</entry> - <entry>What format the hour label should be in (sprintf)</entry> - </row> - <row> - <entry>hour_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%20d</entry> - <entry>What format the hour value should be in (sprintf)</entry> - </row> - <row> - <entry>minute_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%02d</entry> - <entry>What format the minute label should be in (sprintf)</entry> - </row> - <row> - <entry>minute_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%20d</entry> - <entry>What format the minute value should be in (sprintf)</entry> - </row> - <row> - <entry>second_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%02d</entry> - <entry>What format the second label should be in (sprintf)</entry> - </row> - <row> - <entry>second_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%20d</entry> - <entry>What format the second value should be in (sprintf)</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>No</entry> - <entry>n/a</entry> - <entry>Outputs values to array of this name</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if given</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if - given</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if - given</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if - given</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds extra attributes to select/input tags if - given</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>String printed between different fields</entry> - </row> - <row> - <entry>option_separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>String printed between different options of a field</entry> - </row> - <row> - <entry>all_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to all select/input tags if given</entry> - </row> - <row> - <entry>hour_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>minute_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>second_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>meridian_id</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Adds id-attribute to select/input tags if given</entry> - </row> - <row> - <entry>all_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of any select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-boxes read <quote>Please select</quote> for example.</entry> - </row> - <row> - <entry>hour_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the hour's select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-box read <quote>Please select an hour</quote> for example.</entry> - </row> - <row> - <entry>minute_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the minute's select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-box read <quote>Please select an minute</quote> for example.</entry> - </row> - <row> - <entry>second_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the second's select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-box read <quote>Please select an second</quote> for example.</entry> - </row> - <row> - <entry>meridian_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>If supplied then the first element of the meridian's select-box has this - value as it's label and <quote></quote> as it's value. This is useful to make the - select-box read <quote>Please select an meridian</quote> for example.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{html_select_time}</title> - <programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - At 9:20 and 23 seconds in the morning the template above would output: - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -... snipped .... -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -... snipped .... -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -... snipped .... -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -... snipped .... -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -... snipped .... -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -... snipped .... -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> - </example> - <para> - See also - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>, - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> - and the <link linkend="tips.dates">date tips page</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,250 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.html.table"> - <title>{html_table}</title> - <para> - <varname>{html_table}</varname> is a - <link linkend="language.custom.functions">custom function</link> - that dumps an array of data into an HTML <literal><table></literal>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Array of data to loop through</entry> - </row> - <row> - <entry>cols</entry> - <entry>mixed</entry> - <entry>No</entry> - <entry><emphasis>3</emphasis></entry> - <entry> - Number of columns in the table or a comma-separated list of column heading - names or an array of column heading names.if the cols-attribute is empty, - but rows are given, then the number of cols is computed by the number - of rows and the number of elements to display to be just enough cols to - display all elements. If both, rows and cols, are omitted cols defaults - to 3. if given as a list or array, the number of columns is computed from - the number of elements in the list or array. - </entry> - </row> - <row> - <entry>rows</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry> - Number of rows in the table. if the rows-attribute is empty, but - cols are given, then the number of rows is computed by the number of - cols and the number of elements to display to be just enough rows to - display all elements. - </entry> - </row> - <row> - <entry>inner</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>cols</emphasis></entry> - <entry> - Direction of consecutive elements in the loop-array to be - rendered. <emphasis>cols</emphasis> means elements are displayed - col-by-col. <emphasis>rows</emphasis> means elements are displayed - row-by-row. - </entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Text to be used for the <literal><caption></literal> - element of the table</entry> - </row> - <row> - <entry>table_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>Attributes for <literal><table></literal> tag</entry> - </row> - <row> - <entry>th_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attributes for <literal><th></literal> tag - (arrays are cycled)</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>attributes for <literal><tr></literal> tag - (arrays are cycled)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attributes for <literal><td></literal> tag - (arrays are cycled)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>Value to pad the trailing cells on last row with (if any)</entry> - </row> - <row> - <entry>hdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>right</emphasis></entry> - <entry> - Direction of each row to be rendered. possible values: - <emphasis>right</emphasis> (left-to-right), and - <emphasis>left</emphasis> (right-to-left) - </entry> - </row> - <row> - <entry>vdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>down</emphasis></entry> - <entry> - Direction of each column to be rendered. possible values: - <emphasis>down</emphasis> (top-to-bottom), <emphasis>up</emphasis> - (bottom-to-top) - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - The <parameter>cols</parameter> attribute determines how many - columns will be in the table. - </para></listitem> - - <listitem><para> - The <parameter>table_attr</parameter>, <parameter>tr_attr</parameter> - and <parameter>td_attr</parameter> values determine the attributes given - to the <literal><table></literal>, <literal><tr></literal> - and <literal><td></literal> tags. - </para></listitem> - - <listitem><para> - If <parameter>tr_attr</parameter> or <parameter>td_attr</parameter> are - arrays, they will be cycled through. - </para></listitem> - - <listitem><para> - <parameter>trailpad</parameter> is the value put into the trailing cells - on the last table row if there are any present. - </para></listitem> - </itemizedlist> - - <example> - <title>{html_table}</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign( 'data', array(1,2,3,4,5,6,7,8,9) ); -$smarty->assign( 'tr', array('bgcolor="#eeeeee"','bgcolor="#dddddd"') ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para>The variables assigned from php could be displayed as these three - examples demonstrate. Each example shows the template followed by output. - </para> - <programlisting> -<![CDATA[ -{**** Example One ****} -{html_table loop=$data} - -<table border="1"> -<tbody> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</tbody> -</table> - - -{**** Example Two ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - -<table border="0"> -<tbody> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td> </td><td> </td><td> </td></tr> -</tbody> -</table> - - -{**** Example Three ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - -<table border="1"> -<thead> -<tr> -<th>first</th><th>second</th><th>third</th><th>fourth</th> -</tr> -</thead> -<tbody> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr> -</tbody> -</table> -]]> - </programlisting> - - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,170 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4363 $ --> -<sect1 id="language.function.mailto"> - <title>{mailto}</title> - <para> - <varname>{mailto}</varname> automates the creation of a <literal>mailto:</literal> - anchor links and optionally encodes them. Encoding emails makes it more - difficult for web spiders to lift email addresses off of a site. - <note> - <title>Technical Note</title> - <para> - Javascript is probably the most thorough form of - encoding, although you can use hex encoding too. - </para> - </note> - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The e-mail address</entry> - </row> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The text to display, default is the e-mail address</entry> - </row> - <row> - <entry>encode</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>none</emphasis></entry> - <entry>How to encode the e-mail. Can be one of <literal>none</literal>, - <literal>hex</literal>, <literal>javascript</literal> - or <literal>javascript_charcode</literal>.</entry> - </row> - <row> - <entry>cc</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Email addresses to carbon copy, separate entries by a comma. - </entry> - </row> - <row> - <entry>bcc</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Email addresses to blind carbon copy, - separate entries by a comma</entry> - </row> - <row> - <entry>subject</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Email subject</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Newsgroups to post to, separate entries by a comma.</entry> - </row> - <row> - <entry>followupto</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Addresses to follow up to, separate entries by a comma.</entry> - </row> - <row> - <entry>extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Any extra information you want passed to the link, such - as style sheet classes</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{mailto} example lines followed by the result</title> - <programlisting> -<![CDATA[ -{mailto address="me@example.com"} -<a href="mailto:me@example.com" >me@example.com</a> - -{mailto address="me@example.com" text="send me some mail"} -<a href="mailto:me@example.com" >send me some mail</a> - -{mailto address="me@example.com" encode="javascript"} -<script type="text/javascript" language="javascript"> - eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b')) -</script> - -{mailto address="me@example.com" encode="hex"} -<a href="mailto:%6d%65.. snipped..3%6f%6d">m&..snipped...#x6f;m</a> - -{mailto address="me@example.com" subject="Hello to you!"} -<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a> - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -<a href="mailto:me@example.com?cc=you@example.com,they@example.com" >me@example.com</a> - -{mailto address="me@example.com" extra='class="email"'} -<a href="mailto:me@example.com" class="email">me@example.com</a> - -{mailto address="me@example.com" encode="javascript_charcode"} -<script type="text/javascript" language="javascript"> - {document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))} -</script> -]]> -</programlisting> - </example> - <para> - See also - <link linkend="language.modifier.escape"><varname>escape</varname></link>, - <link linkend="language.function.textformat"><varname>{textformat}</varname></link> - and - <link linkend="tips.obfuscating.email">obfuscating email addresses</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,203 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.math"> - <title>{math}</title> - <para> - <varname>{math}</varname> allows the template designer to do math equations - in the template. - </para> - <itemizedlist> - <listitem><para> - Any numeric template variables may be used in the - equations, and the result is printed in place of the tag. - </para></listitem> - - <listitem><para> - The variables used in the equation are passed as parameters, - which can be template variables or static values. - </para></listitem> - - <listitem><para>+, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans and tan are all valid operators. - Check the PHP documentation for further information on these - <ulink url="&url.php-manual;eval">math</ulink> functions. - </para></listitem> - - <listitem><para> - If you supply the <parameter>assign</parameter> attribute, the output of the - <varname>{math}</varname> function will be assigned to this template - variable instead of being output to the template. - </para></listitem> - </itemizedlist> - - <note> - <title>Technical Note</title> - <para> - <varname>{math}</varname> is an expensive function in performance due to - its use of the php <ulink url="&url.php-manual;eval"> - <varname>eval()</varname></ulink> function. Doing the math in PHP is much - more efficient, so whenever possible do the math calculations in the script - and <link linkend="api.assign"><varname>assign()</varname></link> - the results to the template. Definitely avoid repetitive - <varname>{math}</varname> function calls, eg within - <link linkend="language.function.section"> - <varname>{section}</varname></link> loops. - </para> - </note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The equation to execute</entry> - </row> - <row> - <entry>format</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The format of the result (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numeric</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Equation variable value</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Template variable the output will be assigned to</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numeric</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Equation variable value</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{math}</title> - <para> - <emphasis role="bold">Example a:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $height=4, $width=5 *} - - {math equation="x + y" x=$height y=$width} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - 9 -]]> - </screen> - <para> - <emphasis role="bold">Example b:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - - {math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - 100 -]]> - </screen> - <para> - <emphasis role="bold">Example c:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* you can use parenthesis *} - - {math equation="(( x + y ) / z )" x=2 y=10 z=2} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - 6 -]]> - </screen> - <para> - <emphasis role="bold">Example d:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* you can supply a format parameter in sprintf format *} - - {math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - ]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - 9.44 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,295 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.function.textformat"> - <title>{textformat}</title> - <para> - <varname>{textformat}</varname> is a - <link linkend="plugins.block.functions">block function</link> - used to format text. It basically cleans up spaces and special characters, - and formats paragraphs by wrapping at a boundary and indenting lines. - </para> - <para> - You can set the parameters explicitly, or use a preset style. - Currently <quote>email</quote> is the only available style. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribute Name</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Preset style</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry>The number of chars to indent every line</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry>The number of chars to indent the first line</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>(single space)</emphasis></entry> - <entry>The character (or string of chars) to indent with</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>80</emphasis></entry> - <entry>How many characters to wrap each line to</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>The character (or string of chars) to break each line with</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>If &true;, wrap will break the line at the exact - character instead of at a word boundary</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>The template variable the output will be assigned to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{textformat}</title> - <programlisting> -<![CDATA[ - {textformat wrap=40} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. - This is foo. This is foo. This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4 indent_first=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat style="email"} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. This is foo. This is foo. This is - foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo - foo. - -]]> - </screen> - </example> - <para> - See also - <link linkend="language.function.strip"><varname>{strip}</varname></link> - and - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers.xml
Deleted
@@ -1,166 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4362 $ --> -<chapter id="language.modifiers"> - <title>Variable Modifiers</title> - <para> - Variable modifiers can be applied to - <link linkend="language.syntax.variables">variables</link>, - <link linkend="language.custom.functions">custom functions</link> or strings. - To apply a modifier, specify the value followed by a <literal>|</literal> - (pipe) and the modifier name. A modifier may accept additional parameters - that affect its behavior. These parameters follow the modifier name and are - separated by a <literal>:</literal> (colon). Also, - <emphasis>all php-functions can be used as modifiers implicitly</emphasis> - (more below) and modifiers can be - <link linkend="language.combining.modifiers">combined</link>. - </para> - <example> - <title>Modifier examples</title> - <programlisting> -<![CDATA[ -{* apply modifier to a variable *} -{$title|upper} - -{* modifier with parameters *} -{$title|truncate:40:"..."} - -{* apply modifier to a function parameter *} -{html_table loop=$myvar|upper} - -{* with parameters *} -{html_table loop=$myvar|truncate:40:"..."} - -{* apply modifier to literal string *} -{"foobar"|upper} - -{* using date_format to format the current date *} -{$smarty.now|date_format:"%Y/%m/%d"} - -{* apply modifier to a custom function *} -{mailto|upper address="smarty@example.com"} - -{* using php's str_repeat *} -{"="|str_repeat:80} - -{* php's count *} -{$myArray|@count} - -{* this will uppercase and truncate the whole array *} -<select name="name_id"> -{html_options output=$my_array|upper|truncate:20} -</select> -]]> - </programlisting> - </example> - <itemizedlist> - - <listitem><para> - Modifiers can be applied to any type of variables, including arrays and objects. - - <note><para>The default behavior was changed with Smarty 3. In Smarty 2.x, you had to - use an "<literal>@</literal>" symbol to apply a modifier to an array, such as - <literal>{$articleTitle|@count}</literal>. With Smarty 3, the "<literal>@</literal>" - is no longer necessary, and is ignored. - </para> - <para> - If you want a modifier to apply to each individual item of an array, you will - either need to loop the array in the template, or provide for this functionality - inside your modifier function. - </para></note> - <note> - <para> - Second, in Smarty 2.x, modifiers were applied to the result of math expressions - like <literal>{8+2}</literal>, meaning that <literal>{8+2|count_characters}</literal> - would give <literal>2</literal>, as 8+2=10 and 10 is two characters long. - With Smarty 3, modifiers are applied to the variables or atomic expressions before - executing the calculations, so since 2 is one character long, <literal>{8+2|count_characters}</literal> - gives 9. To get the old result use parentheses like <literal>{(8+2)|count_characters}</literal>. - </para> - </note> - </para> - </listitem> - - <listitem><para> - Modifiers are autoloaded from the <link - linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link> - or can be registered explicitly with the <link - linkend="api.register.plugin"><varname>registerPlugin()</varname></link> - function. The later is useful for sharing a function between - php scripts and smarty templates. - </para></listitem> - - <listitem><para> - All php-functions can be used as modifiers implicitly, as demonstrated in the - example above. - However, using php-functions as modifiers has two little pitfalls: - <itemizedlist> - <listitem><para>First - sometimes the order of the function-parameters is - not the desirable one. Formatting <literal>$foo</literal> with - <literal>{"%2.f"|sprintf:$foo}</literal> actually - works, but asks for the more intuitive, like - <literal>{$foo|string_format:"%2.f"}</literal> that is provided by - the Smarty distribution. - </para></listitem> - <listitem><para> - Secondly - if security is enabled, all php-functions that are to be used as modifiers have to be declared trusted in the - <parameter>$modifiers</parameter> property of the securty policy. See the <link linkend="advanced.features.security">Security</link> section for details. - </para></listitem> - </itemizedlist> - </para></listitem> - </itemizedlist> - - <para> - See also - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link>, - <link linkend="language.combining.modifiers">combining modifiers</link>. - and - <link linkend="plugins">extending smarty with plugins</link> - </para> - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-from-charset; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-to-charset; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-unescape; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <para> - This is used to capitalize the first letter of all words in a variable. - This is similar to the PHP <ulink url="&url.php-manual;ucwords"> - <varname>ucwords()</varname></ulink> function. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>This determines whether or not words with - digits will be uppercased</entry> - </row> - <row> - <entry>2</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>This determines whether or not Capital letters within words should be lowercased, e.g. "aAa" to "Aaa"</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>capitalize</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - </programlisting> - <para> - Where the template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|capitalize} -{$articleTitle|capitalize:true} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -next x-men film, x3, delayed. -Next X-Men Film, x3, Delayed. -Next X-Men Film, X3, Delayed. -]]> - </screen> - </example> - <para>See also - <link linkend="language.modifier.lower"><varname>lower</varname></link> - and - <link linkend="language.modifier.upper"><varname>upper</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.cat"> - <title>cat</title> - <para> - This value is concatenated to the given variable. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>This value to catenate to the given variable.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>cat</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:' yesterday.'} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Psychics predict world didn't end yesterday. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <para> - This is used to count the number of characters in a variable. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>This determines whether or not to include - whitespace characters in the count.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>count_characters</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Cold Wave Linked to Temperatures. -29 -33 -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>, - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> and - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - This is used to count the number of paragraphs in a variable. - </para> - <example> - <title>count_paragraphs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_paragraphs} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2 -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>, - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> - and - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - This is used to count the number of sentences in a variable. - A sentence being delimited by a dot, question- or exclamation-mark (.?!). - </para> - <example> - <title>count_sentences</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_sentences} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2 -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>, - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - and - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - This is used to count the number of words in a variable. - </para> - <example> - <title>count_words</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_words} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -7 -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>, - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - and - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,290 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="language.modifier.date.format"> - <title>date_format</title> - <para> - This formats a date and time into the given - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> format. - Dates can be passed to Smarty as unix - <ulink url="&url.php-manual;function.time">timestamps</ulink>, - <ulink url="&url.php-manual;class.DateTime">DateTime objects</ulink>, mysql timestamps - or any string made up of month day year, parsable by php's - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>. - Designers can then use <varname>date_format</varname> to have complete control of the - formatting of the date. If the date passed to - <varname>date_format</varname> is empty and a second parameter is passed, - that will be used as the date to format. - </para> - - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%b %e, %Y</entry> - <entry>This is the format for the outputted date.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>n/a</entry> - <entry>This is the default date if the input is empty.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <note> - <para> - Since Smarty-2.6.10 numeric values passed to <varname>date_format</varname> are - <emphasis>always</emphasis> (except for mysql timestamps, see - below) interpreted as a unix timestamp. - </para> - <para> - Before Smarty-2.6.10 numeric strings that where also parsable by - <varname>strtotime()</varname> in php (like <literal>YYYYMMDD</literal>) - where sometimes (depending on the underlying implementation of - <varname>strtotime()</varname>) interpreted as - date strings and NOT as timestamps. - </para> - <para> - The only exception are mysql timestamps: They are also numeric - only and 14 characters long (<literal>YYYYMMDDHHMMSS</literal>), - mysql timestamps have precedence over unix timestamps. - </para> - </note> - <note> - <title>Programmers note</title> - <para> - <varname>date_format</varname> is essentially a wrapper to PHP's - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> function. - You may have more or less conversion specifiers available depending - on your system's <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> - function where PHP was compiled. Check your - system's manpage for a full list of valid specifiers. However, a few of - the specifiers are emulated on Windows. These are: %D, %e, %h, %l, %n, - %r, %R, %t, %T. - </para> - </note> - </para> - <example> - <title>date_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$config['date'] = '%I:%M %p'; -$config['time'] = '%H:%M:%S'; -$smarty->assign('config', $config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - </programlisting> - <para> - This template uses <link linkend="language.variables.smarty.now"> - <parameter>$smarty.now</parameter></link> to get the current time: - </para> - <programlisting> -<![CDATA[ -{$smarty.now|date_format} -{$smarty.now|date_format:"%D"} -{$smarty.now|date_format:$config.date} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:$config.time} -]]> - </programlisting> - <para> - This above will output: - </para> - <screen> -<![CDATA[ -Jan 1, 2022 -01/01/22 -02:33 pm -Dec 31, 2021 -Monday, December 1, 2021 -14:33:00 -]]> - </screen> - </example> - <para> - - <command>date_format</command> conversion specifiers: - <itemizedlist> - <listitem><para> - %a - abbreviated weekday name according to the current locale - </para></listitem> - <listitem><para> - %A - full weekday name according to the current locale - </para></listitem> - <listitem><para> - %b - abbreviated month name according to the current locale - </para></listitem> - <listitem><para> - %B - full month name according to the current locale - </para></listitem> - <listitem><para> - %c - preferred date and time representation for the current locale - </para></listitem> - <listitem><para> - %C - century number (the year divided by 100 and truncated to an integer, range 00 to 99) - </para></listitem> - <listitem><para> - %d - day of the month as a decimal number (range 01 to 31) - </para></listitem> - <listitem><para> - %D - same as %m/%d/%y - </para></listitem> - <listitem><para> - %e - day of the month as a decimal number, a single digit is preceded by a space (range 1 - to 31) - </para></listitem> - <listitem><para> - %g - Week-based year within century [00,99] - </para></listitem> - <listitem><para> - %G - Week-based year, including the century [0000,9999] - </para></listitem> - <listitem><para> - %h - same as %b - </para></listitem> - <listitem><para> - %H - hour as a decimal number using a 24-hour clock (range 00 to 23) - </para></listitem> - <listitem><para> - %I - hour as a decimal number using a 12-hour clock (range 01 to 12) - </para></listitem> - <listitem><para> - %j - day of the year as a decimal number (range 001 to 366) - </para></listitem> - <listitem><para> - %k - Hour (24-hour clock) single digits are preceded by a blank. (range 0 to 23) - </para></listitem> - <listitem><para> - %l - hour as a decimal number using a 12-hour clock, single digits preceeded by a space - (range 1 to 12) - </para></listitem> - <listitem><para> - %m - month as a decimal number (range 01 to 12) - </para></listitem> - <listitem><para> - %M - minute as a decimal number - </para></listitem> - <listitem><para> - %n - newline character - </para></listitem> - <listitem><para> - %p - either `am' or `pm' according to the given time value, or the corresponding strings - for the - current locale - </para></listitem> - <listitem><para> - %r - time in a.m. and p.m. notation - </para></listitem> - <listitem><para> - %R - time in 24 hour notation - </para></listitem> - <listitem><para> - %S - second as a decimal number - </para></listitem> - <listitem><para> - %t - tab character - </para></listitem> - <listitem><para> - %T - current time, equal to %H:%M:%S - </para></listitem> - <listitem><para> - %u - weekday as a decimal number [1,7], with 1 representing Monday - </para></listitem> - <listitem><para> - %U - week number of the current year as a decimal number, starting with the first Sunday - as the first - day of the first week - </para></listitem> - <listitem><para> - %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to - 53, where week - 1 is the first week that has at least 4 days in the current - year, and with Monday as the first day of the week. - </para></listitem> - <listitem><para> - %w - day of the week as a decimal, Sunday being 0 - </para></listitem> - <listitem><para> - %W - week number of the current year as a decimal number, starting with the first Monday - as the first - day of the first week - </para></listitem> - <listitem><para> - %x - preferred date representation for the current locale without the time - </para></listitem> - <listitem><para> - %X - preferred time representation for the current locale without the date - </para></listitem> - <listitem><para> - %y - year as a decimal number without a century (range 00 to 99) - </para></listitem> - <listitem><para> - %Y - year as a decimal number including the century - </para></listitem> - <listitem><para> - %Z - time zone or name or abbreviation - </para></listitem> - <listitem><para> - %% - a literal `%' character - </para></listitem> - </itemizedlist> - - </para> - <para> - See also <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>, - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink>, - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> - and the <link linkend="tips.dates">date tips</link> page. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.default"> - <title>default</title> - <para> - This is used to set a default value for a variable. If the variable - is unset or an empty string, the given default value is printed instead. - Default takes the one argument. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>This is the default value to output if the - variable is empty.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>default</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email', ''); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|default:'no title'} -{$myTitle|default:'no title'} -{$email|default:'No email address available'} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -no title -No email address available -]]> - </screen> - </example> - <para> - See also the - <link linkend="tips.default.var.handling">default variable handling</link> - and the - <link linkend="tips.blank.var.handling">blank variable handling</link> pages. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="language.modifier.escape"> - <title>escape</title> - <para> - <varname>escape</varname> is used to encode or escape a variable to <literal>html</literal>, - <literal>url</literal>, <literal>single quotes</literal>, - <literal>hex</literal>, <literal>hexentity</literal>, - <literal>javascript</literal> and <literal>mail</literal>. - By default its <literal>html</literal>. - </para> - - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Possible Values</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>html</literal>, <literal>htmlall</literal>, - <literal>url</literal>, - <literal>urlpathinfo</literal>, <literal>quotes</literal>, - <literal>hex</literal>, <literal>hexentity</literal>, - <literal>javascript</literal>, <literal>mail</literal> - </entry> - <entry><literal>html</literal></entry> - <entry>This is the escape format to use.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, - and any character set supported by - <ulink url="&url.php-manual;htmlentities"> - <varname>htmlentities()</varname></ulink> - </entry> - <entry><literal>UTF-8</literal></entry> - <entry>The character set encoding passed to htmlentities() et. al.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>&true;</entry> - <entry>Double encode entites from &amp; to &amp;amp; (applys to <literal>html</literal> and <literal>htmlall</literal> only)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); - -?> -]]> - </programlisting> - <para> - These are example <literal>escape</literal> template lines followed by the output - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'html'} {* escapes & " ' < > *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* escapes ALL html entities *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -<a href="?title={$articleTitle|escape:'url'}">click here</a> -<a -href="?title=%27Stiff%20Opposition%20Expected%20to%20Casketless%20Funeral%20Plan%27">click here</a> - -{$articleTitle|escape:'quotes'} -\'Stiff Opposition Expected to Casketless Funeral Plan\' - -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> -{$EmailAddress|escape:'mail'} {* this converts to email to text *} -<a href="mailto:%62%6f%..snip..%65%74">bob..snip..et</a> - -{'mail@example.com'|escape:'mail'} -smarty [AT] example [DOT] com -]]> - </programlisting> - </example> - - <example> - <title>Other examples</title> - <screen> -<![CDATA[ -{* the "rewind" paramater registers the current location *} -<a href="$my_path?page=foo&rewind=$my_uri|urlencode}">click here</a> -]]> - </screen> - <para>This snippet is useful for emails, but see also - <link linkend="language.function.mailto"> - <varname>{mailto}</varname></link></para> - <screen> -<![CDATA[ -{* email address mangled *} -<a href="mailto:{$EmailAddress|escape:'hex'}">{$EmailAddress|escape:'mail'}</a> -]]> - </screen> - </example> - - <para> - See also - <link linkend="language.escaping">escaping smarty parsing</link>, - <link linkend="language.function.mailto"><varname>{mailto}</varname></link> - and the - <link linkend="tips.obfuscating.email">obfuscating email addresses</link> page. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-from-charset.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.from_charset"> - <title>from_charset</title> - <para> - <varname>from_charset</varname> is used to transcode a string from a given charset to the internal charset. - This is the exact opposite of the <link linkend="language.modifier.to_charset">to_charset modifier</link>. - </para> - - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Possible Values</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, - and any character set supported by - <ulink url="&url.php-manual;mb_convert_encoding"> - <varname>mb_convert_encoding()</varname></ulink> - </entry> - <entry><literal>ISO-8859-1</literal></entry> - <entry>The charset encoding the value is supposed to be decoded from</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <para> - Charset encoding should be handled by the application itself. - This modifier should only be used in cases where the application cannot anticipate that a certain string is required in another encoding. - </para> - </note> - - <para> - See also - <link linkend="charset">Charset Enconding</link>, - <link linkend="language.modifier.from_charset">from_charset modifier</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.indent"> - <title>indent</title> - <para> - This indents a string on each line, default is 4. As - an optional parameter, you can specify the number of characters to - indent. As an optional second parameter, you can specify the - character to use to indent with eg use <literal>"\t"</literal> for a tab. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>4</entry> - <entry>This determines how many characters to indent - to.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>(one space)</entry> - <entry>This is the character used to indent with.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>indent</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.strip"><varname>strip</varname></link>, - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> - and - <link linkend="language.modifier.spacify"><varname>spacify</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - This is used to lowercase a variable. This is equivalent to the PHP - <ulink url="&url.php-manual;strtolower"> - <varname>strtolower()</varname></ulink> function. - </para> - <example> - <title>lower</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|lower} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.upper"><varname>upper</varname></link> - and - <link linkend="language.modifier.capitalize"><varname>capitalize</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - All <literal>"\n"</literal> line breaks will be converted to html - <literal><br /></literal> tags in the given variable. - This is equivalent to the PHP's <ulink url="&url.php-manual;nl2br"> - <varname>nl2br()</varname></ulink> function. - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - </programlisting> - <para> - Where the template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|nl2br} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Sun or rain expected<br />today, dark tonight -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.wordwrap"><varname>word_wrap</varname></link>, - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - and - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <para> - A regular expression search and replace on a variable. Use the - <ulink url="&url.php-manual;preg_replace"> - <varname>preg_replace()</varname></ulink> syntax from the PHP manual. - </para> - - <note><para> - Although Smarty supplies this regex convenience modifier, it is usually better to apply - regular expressions in PHP, either via custom functions or modifiers. Regular expressions - are considered application code and are not part of presentation logic. - </para></note> - - <para>Parameters</para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>This is the regular expression to be replaced.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>This is the string of text to replace with.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>regex_replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{* replace each carriage return, tab and new line with a space *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Infertility unlikely to -be passed on, experts say. -Infertility unlikely to be passed on, experts say. -]]> - </screen> - </example> - - <para> - See also <link linkend="language.modifier.replace"> - <varname>replace</varname></link> - and - <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.replace"> - <title>replace</title> - <para> - A simple search and replace on a variable. This is equivalent to the PHP's - <ulink url="&url.php-manual;str_replace"> - <varname>str_replace()</varname></ulink> function. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>This is the string of text to be replaced.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>This is the string of text to replace with.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|replace:'Garden':'Vineyard'} -{$articleTitle|replace:' ':' '} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.regex.replace"><varname>regex_replace</varname></link> - and - <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.spacify"> - <title>spacify</title> - <para> - <varname>spacify</varname> is a way to insert a space between every - character of a variable. - You can optionally pass a different character or string to insert. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>one space</emphasis></entry> - <entry>This what gets inserted between each character of - the variable.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>spacify</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W .... snip .... s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ .... snip .... ^^e^^r^^t^^s^^ ^^S^^a^^y^^. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> - and - <link linkend="language.modifier.nl2br"><varname>nl2br</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.string.format"> - <title>string_format</title> - <para> - This is a way to format strings, such as decimal numbers and such. - Use the syntax for - <ulink url="&url.php-manual;sprintf"><varname>sprintf()</varname></ulink> - for the formatting. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>This is what format to use. (sprintf)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>string_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('number', 23.5787446); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -23.5787446 -23.58 -24 -]]> - </screen> - </example> - - <para> - See also - <link linkend="language.modifier.date.format"><varname>date_format</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <para> - This strips out markup tags, basically anything between - <literal><</literal> and <literal>></literal>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>bool</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>This determines whether the tags are replaced by ' ' or ''</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>strip_tags</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind Woman Gets <font face=\"helvetica\">New -Kidney</font> from Dad she Hasn't Seen in <b>years</b>." - ); - -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *} -{$articleTitle|strip_tags:false} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.replace"><varname>replace</varname></link> - and - <link linkend="language.modifier.regex.replace"><varname>regex_replace</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - This replaces all repeated spaces, newlines and tabs with a single - space, or with the supplied string. - </para> - <note> - <title>Note</title> - <para> - If you want to strip blocks of template text, use the built-in <link - linkend="language.function.strip"><varname>{strip}</varname></link> function. - </para> - </note> - <example> - <title>strip</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:' '} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother of eight makes hole in one. -]]> - </screen> - </example> - - <para> - See also - <link linkend="language.function.strip"><varname>{strip}</varname></link> - and - <link linkend="language.modifier.truncate"><varname>truncate</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-to-charset.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.to_charset"> - <title>to_charset</title> - <para> - <varname>to_charset</varname> is used to transcode a string from the internal charset to a given charset. - This is the exact opposite of the <link linkend="language.modifier.from_charset">from_charset modifier</link>. - </para> - - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Possible Values</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, - and any character set supported by - <ulink url="&url.php-manual;mb_convert_encoding"> - <varname>mb_convert_encoding()</varname></ulink> - </entry> - <entry><literal>ISO-8859-1</literal></entry> - <entry>The charset encoding the value is supposed to be encoded to</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <para> - Charset encoding should be handled by the application itself. - This modifier should only be used in cases where the application cannot anticipate that a certain string is required in another encoding. - </para> - </note> - - <para> - See also - <link linkend="charset">Charset Enconding</link>, - <link linkend="language.modifier.from_charset">from_charset modifier</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.truncate"> - <title>truncate</title> - <para> - This truncates a variable to a character length, the default is 80. - As an optional second parameter, you can specify a string of text - to display at the end if the variable was truncated. The - characters in the string are included with the original truncation length. - By default, <varname>truncate</varname> will attempt to cut off at a - word boundary. If you want to cut off at the exact character length, - pass the optional third parameter of &true;. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>80</entry> - <entry>This determines how many characters to truncate - to.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>...</entry> - <entry>This is a text string that replaces the truncated text. Its length - is included in the truncation length setting.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>This determines whether or not to truncate at a - word boundary with &false;, or at the exact character with &true;.</entry> - </row> - <row> - <entry>4</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>This determines whether the truncation happens at the end of the - string with &false;, or in the middle of the string with &true;. - Note that if this setting is &true;, then word boundaries are ignored. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>truncate</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -?> -]]> - </programlisting> - <para> - where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} -{$articleTitle|truncate:30:'..':true:true} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E... -Two Sisters Re..ckout Counter. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-unescape.xml
Deleted
@@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.unescape"> - <title>unescape</title> - <para> - <varname>unescape</varname> is used to decode <literal>entity</literal>, - <literal>html</literal> and <literal>htmlall</literal>. It counters the effects - of the <link linkend="language.modifier.escape">escape modifier</link> for the given types. - </para> - - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Possible Values</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>html</literal>, <literal>htmlall</literal>, - <literal>entity</literal>, - </entry> - <entry><literal>html</literal></entry> - <entry>This is the escape format to use.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, - and any character set supported by - <ulink url="&url.php-manual;htmlentities"> - <varname>htmlentities()</varname></ulink> - </entry> - <entry><literal>UTF-8</literal></entry> - <entry>The character set encoding passed to html_entity_decode() or htmlspecialchars_decode() or mb_convert_encoding() et. al.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Germans use "Ümlauts" and pay in €uro" - ); - -?> -]]> - </programlisting> - <para> - These are example <literal>unescape</literal> template lines followed by the output - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -Germans use "Ümlauts" and pay in €uro - -{$articleTitle|unescape:"html"} -Germans use "Ümlauts" and pay in €uro - -{$articleTitle|unescape:"htmlall"} -Germans use "Ümlauts" and pay in €uro -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="language.escaping">escaping smarty parsing</link>, - <link linkend="language.modifier.escape">escape modifier</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - This is used to uppercase a variable. This is equivalent to the PHP - <ulink url="&url.php-manual;strtoupper"> - <varname>strtoupper()</varname></ulink> function. - </para> - <example> - <title>upper</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -?> -]]> - </programlisting> - <para> - Where template is: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.lower"><varname>lower</varname></link> - and - <link linkend="language.modifier.capitalize"><varname>capitalize</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <para> - Wraps a string to a column width, - the default is 80. As an optional second parameter, - you can specify a string of text - to wrap the text to the next line, the default is a carriage return - <literal>"\n"</literal>. - By default, <varname>wordwrap</varname> will attempt to wrap at a word - boundary. If you want to cut off at the exact character length, pass - the optional third parameter as &true;. This is equivalent to the PHP - <ulink url="&url.php-manual;wordwrap"><varname>wordwrap()</varname></ulink> - function. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Parameter Position</entry> - <entry>Type</entry> - <entry>Required</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>80</entry> - <entry>This determines how many columns to wrap - to.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>This is the string used to wrap words with.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>This determines whether or not to wrap at a - word boundary (&false;), or at the exact character (&true;).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>wordwrap</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - </programlisting> - <para> - Where template is - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br />\n"} - -{$articleTitle|wordwrap:26:"\n":true} -]]> - </programlisting> - <para> - Will output: - </para> - <screen> -<![CDATA[ -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br /> -from dad she hasn't seen in<br /> -years. - -Blind woman gets new kidn -ey from dad she hasn't se -en in years. -]]> - </screen> - </example> - <para> - See also - <link linkend="language.modifier.nl2br"><varname>nl2br</varname></link> - and - <link linkend="language.function.textformat"><varname>{textformat}</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-variables.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="language.variables"> - <title>Variables</title> - <para> - Smarty has several different types of variables. The type of the variable - depends on what symbol it is prefixed or enclosed within. - </para> - <para> - Variables in Smarty can be either displayed directly or used as arguments - for <link linkend="language.syntax.functions">functions</link>, - <link linkend="language.syntax.attributes">attributes</link> and - <link linkend="language.modifiers">modifiers</link>, inside conditional expressions, - etc. To print a variable, simply enclose it in the - <link linkend="variable.left.delimiter">delimiters</link> so that it - is the only thing contained between them. -<example> -<title>Example variables</title> - <programlisting> -<![CDATA[ -{$Name} - -{$product.part_no} <b>{$product.description}</b> - -{$Contacts[row].Phone} - -<body bgcolor="{#bgcolor#}"> -]]> - </programlisting> -</example> -<note> -<title>Note</title> -<para>An easy way to examine assigned Smarty variables is with the -<link linkend="chapter.debugging.console">debugging console</link>. -</para> -</note> - </para> - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-variable-scopes; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,199 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="language.assigned.variables"> - <title>Variables assigned from PHP</title> - <para> - Assigned variables that are referenced by - preceding them with a dollar (<literal>$</literal>) sign. - </para> - - <example> - <title>Assigned variables</title> - <para>PHP code</para> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty(); - -$smarty->assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> -</programlisting> - <para> - <filename>index.tpl</filename> source: - </para> -<programlisting> -<![CDATA[ -Hello {$firstname} {$lastname}, glad to see you can make it. -<br /> -{* this will not work as $variables are case sensitive *} -This weeks meeting is in {$meetingplace}. -{* this will work *} -This weeks meeting is in {$meetingPlace}. -]]> - </programlisting> - - <para> - This above would output: - </para> - <screen> -<![CDATA[ -Hello Doug Evans, glad to see you can make it. -<br /> -This weeks meeting is in . -This weeks meeting is in New York. -]]> - </screen> - </example> - - - <sect2 id="language.variables.assoc.arrays"> - <title>Associative arrays</title> - <para> - You can also reference associative array variables by specifying the key after a dot "." - symbol. - </para> - <example> - <title>Accessing associative array variables</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> source: - </para> - <programlisting> -<![CDATA[ -{$Contacts.fax}<br /> -{$Contacts.email}<br /> -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}<br /> -{$Contacts.phone.cell}<br /> -]]> - </programlisting> - <para> - this will output: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="language.variables.array.indexes"> - <title>Array indexes</title> - <para> - You can reference arrays by their index, much like native PHP syntax. - </para> - <example> - <title>Accessing arrays by index</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> source: - </para> - <programlisting> -<![CDATA[ -{$Contacts[0]}<br /> -{$Contacts[1]}<br /> -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}<br /> -{$Contacts[2][1]}<br /> -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="language.variables.objects"> - <title>Objects</title> - <para> - Properties of <link linkend="advanced.features.objects">objects</link> - assigned from PHP can be referenced by specifying the property - name after the <literal>-></literal> symbol. - </para> - <example> - <title>Accessing object properties</title> - <programlisting> -<![CDATA[ -name: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - this will output: - </para> - <screen> -<![CDATA[ -name: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.example.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.config.variables"> - <title>Variables loaded from config files</title> - <para> - Variables that are loaded from the - <link linkend="config.files">config files</link> - are referenced by enclosing them within <literal>#hash_marks#</literal>, - or with the smarty variable - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link>. - The later syntax is useful for embedding into quoted attribute values, or - accessing variable values such as $smarty.config.$foo. - </para> - <example> - <title>config variables</title> - <para> - Example config file - <filename>foo.conf</filename>: - </para> - <programlisting> -<![CDATA[ -pageTitle = "This is mine" -bodyBgColor = '#eeeeee' -tableBorderSize = 3 -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" -]]> - </programlisting> - <para> - A template demonstrating the <parameter>#hash#</parameter> method: - </para> - <programlisting> -<![CDATA[ -{config_load file='foo.conf'} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - A template demonstrating the - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link> method: - </para> - <programlisting> -<![CDATA[ -{config_load file='foo.conf'} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - Both examples would output: - </para> - <screen> -<![CDATA[ -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </screen> - </example> -<para> - Config file variables cannot be used until - after they are loaded in from a config file. This procedure is - explained later in this document under - <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link>. -</para> -<para> - See also <link linkend="language.syntax.variables">variables</link> and - <link linkend="language.variables.smarty">$smarty reserved - variables</link> -</para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-variables/language-variable-scopes.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="language.variable.scopes"> - <title>Variable scopes</title> - <para> - You have the choice to assign variables to the scope of the main Smarty object, - data objects created with <link linkend="api.create.data"><varname>createData()</varname></link>, - and template objects created with <link linkend="api.create.template"><varname>createTemplate()</varname></link>. - These objects can be chained. A template sees all the variables of its own object and all variables assigned - to the objects in its chain of parent objects. - </para> - <para> - By default templates which are rendered by <link linkend="api.display"><varname>$smarty->display(...)</varname></link> - or <link linkend="api.fetch"><varname>$smarty->fetch(...)</varname></link> calls are automatically linked to the - Smarty object variable scope. - </para> - <para> - By assigning variables to individual data or template objects you have full control which variables can be seen - by a template. - </para> - <para> - <example> - <title>Variable scope examples</title> - <programlisting role="php"> -<![CDATA[ - -// assign variable to Smarty object scope -$smarty->assign('foo','smarty'); - -// assign variables to data object scope -$data = $smarty->createData(); -$data->assign('foo','data'); -$data->assign('bar','bar-data'); - -// assign variables to other data object scope -$data2 = $smarty->createData($data); -$data2->assign('bar','bar-data2'); - -// assign variable to template object scope -$tpl = $smarty->createTemplate('index.tpl'); -$tpl->assign('bar','bar-template'); - -// assign variable to template object scope with link to Smarty object -$tpl2 = $smarty->createTemplate('index.tpl',$smarty); -$tpl2->assign('bar','bar-template2'); - -// This display() does see $foo='smarty' from the $smarty object -$smarty->display('index.tpl'); - -// This display() does see $foo='data' and $bar='bar-data' from the data object $data -$smarty->display('index.tpl',$data); - -// This display() does see $foo='data' from the data object $data -// and $bar='bar-data2' from the data object $data2 -$smarty->display('index.tpl',$data2); - -// This display() does see $bar='bar-template' from the template object $tpl -$tpl->display(); // or $smarty->display($tpl); - -// This display() does see $bar='bar-template2' from the template object $tpl2 -// and $foo='smarty' form the Smarty object $foo -$tpl2->display(); // or $smarty->display($tpl2); -]]> - </programlisting> - </example> - </para> - <para> - See also <link linkend="api.assign"><varname>assign()</varname></link>, - <link linkend="api.create.data"><varname>createData()</varname></link> and - <link linkend="api.create.template"><varname>createTemplate()</varname></link>. -</para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,244 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4562 $ --> -<sect1 id="language.variables.smarty"> - <title>{$smarty} reserved variable</title> - <para> - The PHP reserved <parameter>{$smarty}</parameter> variable can be used to - access several environment and request variables. - The full list of them follows. - </para> - - <sect2 id="language.variables.smarty.request"> - <title>Request variables</title> - <para> - The <ulink url="&url.php-manual;reserved.variables">request variables - </ulink> such as <literal>$_GET</literal>, <literal>$_POST</literal>, - <literal>$_COOKIE</literal>, <literal>$_SERVER</literal>, - <literal>$_ENV</literal> and <literal>$_SESSION</literal> - can be accessed as demonstrated in the examples below: - </para> - <example> - <title>Displaying request variables</title> - <programlisting> -<![CDATA[ -{* display value of page from URL ($_GET) http://www.example.com/index.php?page=foo *} -{$smarty.get.page} - -{* display the variable "page" from a form ($_POST['page']) *} -{$smarty.post.page} - -{* display the value of the cookie "username" ($_COOKIE['username']) *} -{$smarty.cookies.username} - -{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} - -{* display the system environment variable "PATH" *} -{$smarty.env.PATH} - -{* display the php session variable "id" ($_SESSION['id']) *} -{$smarty.session.id} - -{* display the variable "username" from merged get/post/cookies/server/env *} -{$smarty.request.username} -]]> - </programlisting> - </example> - <note> - <para> - For historical reasons <parameter>{$SCRIPT_NAME}</parameter> is - short-hand for <parameter>{$smarty.server.SCRIPT_NAME}</parameter>. - </para> -<programlisting> -<![CDATA[ -<a href="{$SCRIPT_NAME}?page=smarty">click me</a> -<a href="{$smarty.server.SCRIPT_NAME}?page=smarty">click me</a> -]]> -</programlisting> - </note> - <note><para> - Although Smarty provides direct access to PHP super globals for convenience, it should be used with caution. Directly accessing super globals mixes underlying application code structure with templates. A good practice is to assign specific needed values to template vars. - </para></note> - </sect2> - - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - The current <ulink url="&url.php-manual;function.time">timestamp</ulink> - can be accessed with <parameter>{$smarty.now}</parameter>. - The value reflects the number of - seconds passed since the so-called Epoch on January 1, 1970, - and can be passed directly to the - <link linkend="language.modifier.date.format"><varname>date_format</varname> - </link> modifier for display. Note that - <ulink url="&url.php-manual;function.time"><varname>time()</varname></ulink> - is called on each invocation; eg a script that takes three seconds to execute - with a call to <parameter>$smarty.now</parameter> at start and end - will show the three second difference. - <informalexample> - <programlisting> -<![CDATA[ -{* use the date_format modifier to show current date and time *} -{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} -]]> - </programlisting> - </informalexample> - </para> - </sect2> - - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - You can access PHP constant values directly. See also <link - linkend="smarty.constants">smarty constants</link>. - </para> - <informalexample> -<programlisting role="php"> -<![CDATA[ -<?php -// the constant defined in php -define('MY_CONST_VAL','CHERRIES'); -?> -]]> -</programlisting> -</informalexample> - -<para>Output the constant in a template with</para> -<informalexample> -<programlisting> -<![CDATA[ -{$smarty.const.MY_CONST_VAL} -]]> -</programlisting> -</informalexample> - -<note><para> - Although Smarty provides direct access to PHP constants for convenience, - it is typically avoided as this is mixing underlying application - code structure into the templates. - A good practice is to assign specific needed values to template vars. -</para></note> - - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - Template output captured via the built-in - <link linkend="language.function.capture"> - <varname>{capture}..{/capture}</varname></link> function can be accessed - using the <parameter>{$smarty.capture}</parameter> variable. - See the <link linkend="language.function.capture"> - <varname>{capture}</varname></link> page for more information. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - <parameter>{$smarty.config}</parameter> variable can be used to refer - to loaded <link linkend="language.config.variables">config variables</link>. - <parameter>{$smarty.config.foo}</parameter> is a synonym for - <parameter>{#foo#}</parameter>. See the - <link linkend="language.function.config.load">{config_load}</link> page - for more info. - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}</title> - <para> - The <parameter>{$smarty.section}</parameter> variables can be used to refer to - <link linkend="language.function.section"><varname>{section}</varname></link> - loop properties. These have some very useful values such as - <varname>.first</varname>, <varname>.index</varname>, etc. - </para> - <note><para> - The <varname>{$smarty.foreach}</varname> variable is no longer used with the new <link linkend="language.function.foreach"><varname>{foreach}</varname></link> syntax, - but is still supported with Smarty 2.x style foreach syntax. - </para></note> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Returns the name of the current template being processed (without the directory). - </para> - </sect2> - - <sect2 id="language.variables.smarty.template_object"> - <title>{$smarty.template_object}</title> - <para> - Returns the template object of the current template being processed. - </para> - </sect2> - - <sect2 id="language.variables.smarty.current_dir"> - <title>{$smarty.current_dir}</title> - <para> - Returns the name of the directory for the current template being processed. - </para> - </sect2> - - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - Returns the version of Smarty the template was compiled with. - </para> -<programlisting> -<![CDATA[ -<div id="footer">Powered by Smarty {$smarty.version}</div> -]]> -</programlisting> - </sect2> - - <sect2 id="language.variables.smarty.block.child"> - <title>{$smarty.block.child}</title> - <para> - Returns block text from child template. - See <link linkend="advanced.features.template.inheritance">Template interitance</link>. - </para> - </sect2> - - <sect2 id="language.variables.smarty.block.parent"> - <title>{$smarty.block.parent}</title> - <para> - Returns block text from parent template. - See <link linkend="advanced.features.template.inheritance">Template interitance</link> - </para> - </sect2> - - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}, {$smarty.rdelim}</title> - <para> - These variables are used for printing the left-delimiter and right-delimiter - value literally, the same as <link linkend="language.function.ldelim"> - <varname>{ldelim},{rdelim}</varname></link>. - </para> - <para> - See also - <link linkend="language.assigned.variables">assigned variables</link> and - <link linkend="language.config.variables">config variables</link> - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/getting-started.xml
Deleted
@@ -1,660 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4314 $ --> -<part id="getting.started"> - <title>Getting Started</title> - - <chapter id="what.is.smarty"> - <title>What is Smarty?</title> - <para> - Smarty is a template engine for PHP. More specifically, it facilitates a - manageable way to separate application logic and content from its - presentation. This is best described in a situation where the application - programmer and the template designer play different roles, or in most - cases are not the same person. - </para> - - <para> - For example, let's say you are creating a web page that is displaying a - newspaper article. - </para> - <itemizedlist> - <listitem><para> - The article <literal>$headline</literal>, <literal>$tagline</literal>, - <literal>$author</literal> and <literal>$body</literal> are - content elements, they contain no information about how they will be - presented. They are <link linkend="api.assign">passed</link> into Smarty - by the application. - </para></listitem> - - <listitem><para>Then the - template designer edits the templates and uses a combination of - HTML tags and <link linkend="language.basic.syntax">template tags</link> - to format the presentation of these - <link linkend="language.syntax.variables">variables</link> with elements - such as tables, div's, background colors, font sizes, style sheets, svg etc. - </para></listitem> - - <listitem><para>One day - the programmer needs to change the way the article content is retrieved, ie a - change in application logic. This change does not affect the template - designer, the content will still arrive in the template exactly the same. - </para></listitem> - - <listitem><para> - Likewise, if the template designer wants to completely redesign the - templates, this would require no change to the application logic. - </para></listitem> - - <listitem><para>Therefore, - the programmer can make changes to the application logic without the need - to restructure templates, and the template designer can make changes to - templates without breaking application logic. - </para></listitem> - </itemizedlist> - - <para> - One design goal of Smarty is the separation of business logic and - presentation logic. - </para> - - <itemizedlist> - <listitem><para> - This means templates can certainly contain logic under - the condition that it is for presentation only. Things such as - <link linkend="language.function.include">including</link> - other templates, - <link linkend="language.function.cycle">alternating</link> table row colors, - <link linkend="language.modifier.upper">upper-casing</link> a variable, - <link linkend="language.function.foreach">looping</link> - over an array of data and <link linkend="api.display">displaying</link> it - are examples of presentation logic. - </para></listitem> - <listitem><para> - This does not mean however that Smarty forces a separation of - business and presentation logic. Smarty has no knowledge of which is which, - so placing business logic in the template is your own doing. - </para></listitem> - <listitem><para>Also, if you - desire <emphasis>no</emphasis> logic in your templates you certainly can - do so by boiling the content down to text and variables only. - </para></listitem> - </itemizedlist> - - <para> - <emphasis role="bold">Some of Smarty's features:</emphasis> - </para> - <itemizedlist> - <listitem> - <para> - It is extremely fast. - </para> - </listitem> - <listitem> - <para> - It is efficient since the PHP parser does the dirty work. - </para> - </listitem> - <listitem> - <para> - No template parsing overhead, only compiles once. - </para> - </listitem> - <listitem> - <para> - It is smart about <link linkend="variable.compile.check">recompiling</link> - only the template files that have changed. - </para> - </listitem> - <listitem> - <para> - You can easily create your own custom <link - linkend="language.custom.functions">functions</link> - and <link linkend="language.modifiers">variable modifiers</link>, so the - template language is extremely extensible. - </para> - </listitem> - <listitem> - <para> - Configurable template - <link linkend="variable.left.delimiter">{delimiter}</link> tag - syntax, so you can use - <literal>{$foo}</literal>, <literal>{{$foo}}</literal>, - <literal><!--{$foo}--></literal>, etc. - </para> - </listitem> - <listitem> - <para> - The <link linkend="language.function.if"> - <literal>{if}..{elseif}..{else}..{/if}</literal></link> - constructs are passed to the - PHP parser, so the <literal>{if...}</literal> expression syntax can be as - simple or as complex an evaluation as you like. - </para> - </listitem> - <listitem> - <para> - Allows unlimited nesting of <link linkend="language.function.section"> - <varname>sections</varname></link>, <varname>if's</varname> etc. - </para> - </listitem> - <listitem> - <para> - Built-in <link linkend="caching">caching</link> support - </para> - </listitem> - <listitem> - <para> - Arbitrary <link linkend="resources">template</link> sources - </para> - </listitem> - <listitem> - <para> - <link linkend="advanced.features.template.inheritance">Template Inheritance</link> - for easy management of template content. - </para> - </listitem> - <listitem> - <para> - <link linkend="plugins">Plugin</link> architecture - </para> - </listitem> - </itemizedlist> - </chapter> - - - - - - <chapter id="installation"> - <title>Installation</title> - - <sect1 id="installation.requirements"> - <title>Requirements</title> - <para> - Smarty requires a web server running PHP 5.2 or greater. - </para> - </sect1> - - <sect1 id="installing.smarty.basic"> - <title>Basic Installation</title> - - <para> - Install the Smarty library files which are in the - <filename class="directory">/libs/</filename> sub directory of - the distribution. These are <filename>.php</filename> files that you - SHOULD NOT edit. They are shared among all applications and only get - changed when you upgrade to a new version of Smarty. - </para> - <para>In the examples below the Smarty tarball has been unpacked to: - <itemizedlist> - <listitem><para> - <filename class="directory">/usr/local/lib/Smarty-v.e.r/</filename> for *nix - machines</para></listitem> - <listitem><para> and - <filename class="directory">c:\webroot\libs\Smarty-v.e.r\</filename> for the - windows environment.</para></listitem> - </itemizedlist> - </para> - - <example> - <title>Required Smarty library files</title> - <screen> -<![CDATA[ -Smarty-v.e.r/ - libs/ - Smarty.class.php - debug.tpl - sysplugins/* (everything) - plugins/* (everything) -]]> - </screen> - </example> - - <para> - Smarty uses a PHP <ulink url="&url.php-manual;define">constant</ulink> - named <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant> - </link> which is the <emphasis role="bold">full system file path</emphasis> - to the Smarty <filename>libs/</filename> directory. - Basically, if your application can find the - <filename>Smarty.class.php</filename> file, you do not need to set the - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> - as Smarty will figure it out on its own. - Therefore, if - <filename>Smarty.class.php</filename> is not in your - <ulink url="&url.php-manual;ini.core.php#ini.include-path">include_path</ulink>, - or you do not supply an absolute path to it in your application, - then you must define <constant>SMARTY_DIR</constant> manually. - <constant>SMARTY_DIR</constant> <emphasis role="bold">must include a - trailing slash/</emphasis>. - </para> - - - <informalexample> - <para> - Here's how you create an instance of Smarty in your PHP scripts: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// NOTE: Smarty has a capital 'S' -require_once('Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </informalexample> - - <para> - Try running the above script. If you get an error saying the - <filename>Smarty.class.php</filename> file could not be found, you need to - do one of the following: - </para> - - <example> - <title>Set SMARTY_DIR constant manually</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix style (note capital 'S') -define('SMARTY_DIR', '/usr/local/lib/Smarty-v.e.r/libs/'); - -// windows style -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// hack version example that works on both *nix and windows -// Smarty is assumend to be in 'includes/' dir under current script -define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>Supply absolute path to library file</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix style (note capital 'S') -require_once('/usr/local/lib/Smarty-v.e.r/libs/Smarty.class.php'); - -// windows style -require_once('c:/webroot/libs/Smarty-v.e.r/libs/Smarty.class.php'); - -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>Add the library path to the <filename>php.ini</filename> file</title> - <programlisting role="php"> -<![CDATA[ -;;;;;;;;;;;;;;;;;;;;;;;;; -; Paths and Directories ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; *nix: "/path1:/path2" -include_path = ".:/usr/share/php:/usr/local/lib/Smarty-v.e.r/libs/" - -; Windows: "\path1;\path2" -include_path = ".;c:\php\includes;c:\webroot\libs\Smarty-v.e.r\libs\" -]]> -</programlisting> -</example> - -<example> - <title>Appending the include path in a php script with - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal></title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/'); - -// windows -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'c:/webroot/lib/Smarty-v.e.r/libs/'); -?> -]]> - </programlisting> - </example> - - <para> - Now that the library files are in place, it's time to setup the Smarty - directories for your application:</para> - - <itemizedlist> - <listitem><para> - Smarty requires four directories which - are by default named <filename class="directory">templates/</filename>, - <filename class="directory">templates_c/</filename>, <filename - class="directory">configs/</filename> and <filename - class="directory">cache/</filename> - </para></listitem> - - <listitem><para>Each of these are definable by the - Smarty class properties - <link linkend="variable.template.dir"> - <varname>$template_dir</varname></link>, - <link linkend="variable.compile.dir"> - <varname>$compile_dir</varname></link>, - <link linkend="variable.config.dir"> - <varname>$config_dir</varname></link>, and - <link linkend="variable.cache.dir"> - <varname>$cache_dir</varname></link> respectively - </para></listitem> - - <listitem><para> - It is highly recommended - that you setup a separate set of these directories for each application - that will use Smarty - </para></listitem> - <listitem><para> - You can verify if your system has the correct access rights for these directories with - <link linkend="api.test.install"><varname>testInstall()</varname></link>. - </para></listitem> - </itemizedlist> - - <para> - For our installation example, we will be setting up the Smarty environment - for a guest book application. We picked an application only for the purpose - of a directory naming convention. You can use the same environment for any - application, just replace <literal>guestbook/</literal> with - the name of your application. - </para> - - - <example> - <title>What the file structure looks like</title> - <screen> -<![CDATA[ -/usr/local/lib/Smarty-v.e.r/libs/ - Smarty.class.php - debug.tpl - sysplugins/* - plugins/* - -/web/www.example.com/ - guestbook/ - templates/ - index.tpl - templates_c/ - configs/ - cache/ - htdocs/ - index.php -]]> - </screen> - </example> - - <para> - Be sure that you know the location of your web server's document root as a - file path. In the following examples, the document root is <filename - class="directory">/web/www.example.com/guestbook/htdocs/</filename>. - The Smarty - directories are only accessed by the Smarty library and never accessed - directly by the web browser. Therefore to avoid any security concerns, it - is recommended (but not mandatory) to place these directories - <emphasis>outside</emphasis> of the web server's document root. - </para> - - <para> - You will need as least one file under your document root, and that is the - script accessed by the web browser. We will name our script - <filename>index.php</filename>, and place it in a subdirectory under the - document root <filename class="directory">/htdocs/</filename>. - </para> - - - <para> - Smarty will need <emphasis role="bold">write access</emphasis> - (windows users please ignore) to the - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> and - <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> directories - (<filename class="directory">templates_c/</filename> and - <filename class="directory">cache/</filename>), so be sure the web server - user account can write to them. - - <note><para>This is usually user <quote>nobody</quote> and - group <quote>nobody</quote>. For OS X users, - the default is user <quote>www</quote> and group <quote>www</quote>. - If you are using Apache, you can look in your - <filename>httpd.conf</filename> file to see - what user and group are being used.</para></note> - </para> - - <example> - <title>Permissions and making directories writable</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/guestbook/templates_c/ -chmod 770 /web/www.example.com/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/guestbook/cache/ -chmod 770 /web/www.example.com/guestbook/cache/ -]]> - </programlisting> - </example> - - <note> - <title>Note</title> - <para> - <literal>chmod 770</literal> will be fairly tight security, it only allows - user <quote>nobody</quote> and group <quote>nobody</quote> read/write access - to the directories. If you would like to open up read access to anyone - (mostly for your own convenience of viewing - these files), you can use <literal>775</literal> instead. - </para> - </note> - - <para> - We need to create the <filename>index.tpl</filename> file that Smarty will - display. This needs to be located in the <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link>. - </para> - - <example> - <title>/web/www.example.com/guestbook/templates/index.tpl</title> - <screen> -<![CDATA[ -{* Smarty *} - -Hello {$name}, welcome to Smarty! -]]> - </screen> - </example> - - <note> - <title>Technical Note</title> - <para> - <literal>{* Smarty *}</literal> is a template - <link linkend="language.syntax.comments">comment</link>. - It is not required, but it is good - practice to start all your template files with this comment. It makes - the file easy to recognize regardless of the file extension. For - example, text editors could recognize the file and turn on special - syntax highlighting. - </para> - </note> - - <para> - Now lets edit <filename>index.php</filename>. We'll create an instance of Smarty, - <link linkend="api.assign"><varname>assign()</varname></link> a - template variable and <link linkend="api.display"><varname>display()</varname></link> - the <filename>index.tpl</filename> file. - </para> - - <example> - <title>Editing /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require_once(SMARTY_DIR . 'Smarty.class.php'); - -$smarty = new Smarty(); - -$smarty->setTemplateDir('/web/www.example.com/guestbook/templates/'); -$smarty->setCompileDir('/web/www.example.com/guestbook/templates_c/'); -$smarty->setConfigDir('/web/www.example.com/guestbook/configs/'); -$smarty->setCacheDir('/web/www.example.com/guestbook/cache/'); - -$smarty->assign('name','Ned'); - -//** un-comment the following line to show the debug console -//$smarty->debugging = true; - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - </example> - - <note> - <title>Note</title> - <para> - In our example, we are setting absolute paths to all of the Smarty - directories. If <filename - class="directory">/web/www.example.com/guestbook/</filename> is - within your PHP include_path, then these settings are not necessary. - However, it is more efficient and (from experience) less error-prone to - set them to absolute paths. This ensures that Smarty is getting files - from the directories you intended. - </para> - </note> - - <para> - Now navigate to the <filename>index.php</filename> file with the web browser. - You should see <emphasis>"Hello Ned, welcome to Smarty!"</emphasis> - </para> - <para> - You have completed the basic setup for Smarty! - </para> - </sect1> - - - - - - <sect1 id="installing.smarty.extended"> - <title>Extended Setup</title> - - <para> - This is a continuation of the <link - linkend="installing.smarty.basic">basic installation</link>, please read - that first! - </para> - <para> - A slightly more flexible way to setup Smarty is to - <ulink url="&url.php-manual;ref.classobj">extend the class</ulink> and - initialize your Smarty environment. So instead of repeatedly setting - directory paths, assigning the same vars, etc., we can do that in one place. - </para> - <para> - Lets create a new directory <filename - class="directory">/php/includes/guestbook/</filename> - and make a new file called <filename>setup.php</filename>. In our example - environment, <filename class="directory">/php/includes</filename> is in our - <literal>include_path</literal>. - Be sure you set this up too, or use absolute file paths. - </para> - - <example> - <title>/php/includes/guestbook/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// load Smarty library -require('Smarty.class.php'); - -// The setup.php file is a good place to load -// required application library files, and you -// can do that right here. An example: -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function __construct() - { - - // Class Constructor. - // These automatically get set with each new instance. - - parent::__construct(); - - $this->setTemplateDir('/web/www.example.com/guestbook/templates/'); - $this->setCompileDir('/web/www.example.com/guestbook/templates_c/'); - $this->setConfigDir('/web/www.example.com/guestbook/configs/'); - $this->setCacheDir('/web/www.example.com/guestbook/cache/'); - - $this->caching = Smarty::CACHING_LIFETIME_CURRENT; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <para> - Now lets alter the <filename>index.php</filename> file to use - <filename>setup.php</filename>: - </para> - - <example> - <title>/web/www.example.com/guestbook/htdocs/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook(); - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <para> - Now you see it is quite simple to bring up an instance of Smarty, just use - <literal>Smarty_GuestBook()</literal> which automatically initializes everything for our - application. - </para> - - </sect1> - - </chapter> -</part> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/language-defs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 4638 $ --> - -<!ENTITY lang "en"> -<!ENTITY SMARTYManual "Smarty 3 Manual"> -<!ENTITY SMARTYDesigners "Smarty For Template Designers"> -<!ENTITY SMARTYProgrammers "Smarty For Programmers"> -<!ENTITY Appendixes "Appendixes">
View file
Smarty-3.1.13.tar.gz/documentation/en/language-snippets.ent
Deleted
@@ -1,117 +0,0 @@ -<!-- $Revision: 4637 $ --> - -<!ENTITY note.parameter.merge '<note> - <title>Technical Note</title> - <para> - The <parameter>merge</parameter> parameter respects array keys, so if - you merge two numerically indexed arrays, they may overwrite each other - or result in non-sequential keys. This is unlike the PHP - <ulink url="&url.php-manual;array_merge"> - <varname>array_merge()</varname></ulink> function - which wipes out numerical keys and renumbers them. - </para> -</note>'> - -<!ENTITY note.parameter.function '<note> - <title>Technical Note</title> - <para> - If the chosen <parameter>function</parameter> callback is of the form - <literal>array(&$object, $method)</literal>, only one instance of the - same class and with the same <literal>$method</literal> can be registered. The - latest registered <parameter>function</parameter> callback will be used in - such a scenario. - </para> -</note>'> - -<!ENTITY parameter.cacheid '<listitem> -<para> -<parameter>cache_id</parameter> is an optional parameter. You can - also set the <link linkend="variable.cache.id"> - <parameter>$cache_id</parameter></link> variable once instead of passing - this to each call to this function. It is used in the event that you want to - cache different content of the same template, such as pages for displaying different products. See also the <link linkend="caching">caching - section</link> for more information. -</para> -</listitem>'> - -<!ENTITY parameter.compileid2 '<listitem> -<para> -<parameter>compile_id</parameter> is an optional parameter. You can - also set the <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> variable once instead of passing - this to each call to this function. It is used in the event that you want to compile different versions of - the same template, such as having separate templates compiled - for different languages. -</para> -</listitem>'> - -<!ENTITY parameter.parent '<listitem> -<para> -<parameter>parent</parameter> is an optional parameter. It is an uplink to the main Smarty object, -a user-created data object or to another user-created template object. These objects can be chained. -The template can access only variables assigned to any of the objects in the parent chain. -</para> -</listitem>'> - -<!ENTITY parameter.data '<listitem> -<para> -<parameter>data</parameter> is an optional parameter. It is an associative array - containing the name/value pairs of variables which get assigned to the object. -</para> -</listitem>'> - -<!ENTITY parameter.compileid '<para> - As an optional third parameter, you can pass a - <parameter>$compile_id</parameter>. - This is in the event that you want to compile different versions of - the same template, such as having separate templates compiled - for different languages. You can - also set the <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> variable once instead of passing - this to each call to this function. -</para>'> - - -<!ENTITY parameter.filtertype '<listitem> -<para> -<parameter>type</parameter> defines the type of the filter. Valid values are "pre", "post", "output" and "variable". -</para> -</listitem>'> - -<!ENTITY parameter.plugintype '<listitem> -<para> -<parameter>type</parameter> defines the type of the plugin. Valid values are "function", "block", "compiler" and "modifier". -</para> -</listitem>'> - -<!ENTITY parameter.pluginname '<listitem> -<para> -<parameter>name</parameter> defines the name of the plugin. -</para> -</listitem>'> - -<!ENTITY parameter.callback '<listitem> -<para> -<parameter>callback</parameter> defines the PHP callback. it can be either: - <itemizedlist> - <listitem><para> - A string containing the function <parameter>name</parameter> - </para></listitem> - - <listitem><para> - An array of the form <literal>array($object, $method)</literal> with - <literal>$object</literal> being a reference to an - object and <literal>$method</literal> being a string - containing the method-name - </para></listitem> - - <listitem><para> - An array of the form - <literal>array($class, $method)</literal> with - <literal>$class</literal> being the class name and - <literal>$method</literal> being a method of the class. - </para></listitem> - </itemizedlist> - </para> -</listitem>'> -
View file
Smarty-3.1.13.tar.gz/documentation/en/livedocs.ent
Deleted
@@ -1,6 +0,0 @@ -<!-- $Revision: 3830 $ --> - -<!ENTITY livedocs.author 'Authors:<br />'> -<!ENTITY livedocs.editors 'Edited by:<br />'> -<!ENTITY livedocs.copyright 'Copyright © %s by %s'> -<!ENTITY livedocs.published 'Published on: %s'>
View file
Smarty-3.1.13.tar.gz/documentation/en/make_chm_index.html
Deleted
@@ -1,36 +0,0 @@ -<HTML> -<!-- $Revision: 2138 $ --> -<HEAD> - <TITLE>Smarty Manual</TITLE> - <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=ISO-8859-1"> - <LINK REL="STYLESHEET" HREF="style.css"> -</HEAD> -<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> -<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> -<TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" -CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">Smarty Manual</TH></TR><TR><TD -COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> -<TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> - -<P><TABLE ALIGN="CENTER"> -<TR><TD ALIGN="CENTER"> -<H1 CLASS="title">Smarty Manual</H1> -<DIV CLASS="author">Monte Ohrt</DIV> -<DIV CLASS="author">Andrei Zmievski</DIV> -</TD></TR></TABLE> -<BR><P ALIGN="CENTER">This file was generated: [GENTIME]<BR> -Go to <A HREF="http://www.smarty.net/download-docs.php">http://www.smarty.net/download-docs.php</A> -to get the actual version.</P> - -<BR><P CLASS="copyright" ALIGN="CENTER">Copyright © 2001 - 2005 New Digital Group, Inc.</P> - -</TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> -<TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> -<TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> -<TR><TD COLSPAN="3"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD> -</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> -</BODY></HTML>
View file
Smarty-3.1.13.tar.gz/documentation/en/preface.xml
Deleted
@@ -1,219 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3844 $ --> - <preface id="preface"> - <title>Preface</title> - - <para> - <emphasis role="bold">The Philosophy</emphasis> - </para> - - <para> - The Smarty design was largely driven by these goals: - </para> - - <itemizedlist> - <listitem><para>clean separation of presentation from application code</para></listitem> - <listitem><para>PHP backend, Smarty template frontend</para></listitem> - <listitem><para>compliment PHP, not replace it</para></listitem> - <listitem><para>fast development/deployment for programmers and designers</para></listitem> - <listitem><para>quick and easy to maintain</para></listitem> - <listitem><para>syntax easy to understand, no PHP knowledge necessary</para></listitem> - <listitem><para>flexibility for custom development</para></listitem> - <listitem><para>security: insulation from PHP</para></listitem> - <listitem><para>free, open source</para></listitem> - </itemizedlist> - - <para> - <emphasis role="bold">What is Smarty?</emphasis> - </para> - - <para> - Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that <emphasis>PHP code is application logic</emphasis>, and is separated from the presentation. - </para> - - <para> - <emphasis role="bold">Two camps of thought</emphasis> - </para> - - <para> - When it comes to templating in PHP, there are basically two camps of thought. The first camp exclaims that "PHP is a template engine". This approach simply mixes PHP code with HTML. Although this approach is fastest from a pure script-execution point of view, many would argue that the PHP syntax is messy and complicated when mixed with tagged markup such as HTML. - </para> - - <para> - The second camp exclaims that presentation should be void of all programming code, and instead use simple tags to indicate where application content is revealed. This approach is common with other template engines (even in other programming languages), and is also the approach that Smarty takes. The idea is to keep the templates focused squarely on presentation, void of application code, and with as little overhead as possible. - </para> - - <para> - <emphasis role="bold">Why is separating PHP from templates important?</emphasis> - </para> - - <para> - Two major benefits: - </para> - - <itemizedlist> - <listitem> - <para> - SYNTAX: Templates typically consist of semantic markup such as HTML. PHP syntax works well for application code, but quickly degenerates when mixed with HTML. Smarty's simple {tag} syntax is designed specifically to express presentation. Smarty focuses your templates on presentation and less on "code". This lends to quicker template deployment and easier maintenance. Smarty syntax requires no working knowledge of PHP, and is intuitive for programmers and non-programmers alike. - </para> - </listitem> - <listitem> - <para> - INSULATION: When PHP is mixed with templates, there are no restrictions on what type of logic can be injected into a template. Smarty insulates the templates from PHP, creating a controlled separation of presentation from business logic. Smarty also has security features that can further enforce restrictions on templates. - </para> - </listitem> - </itemizedlist> - - <para> - <emphasis role="bold">Web designers and PHP</emphasis> - </para> - - <para> -A common question: "Web designers have to learn a syntax anyways, why not PHP?" Of course web designers can learn PHP, and they may already be familiar with it. The issue isn't their ability to learn PHP, it is about the consequences of mixing PHP with HTML. If designers use PHP, it is too easy to add code into templates that doesn't belong there (you just handed them a swiss-army knife when they just needed a knife.) You can teach them the rules of application design, but this is probably something they don't really need to learn (now they are developers!) The PHP manual is also an overwhelming pile of information to sift through. It is like handing the owner of a car the factory assembly manual when all they need is the owners manual. Smarty gives web designers exactly the tools they need, and gives developers fine-grained control over those tools. The simplicity of the tag-based syntax is also a huge welcome for designers, it helps them streamline the organization and management of templates. - </para> - - <para> - <emphasis role="bold">Implementation is Important</emphasis> - </para> - - <para> - Although Smarty gives you the tools to make a clean separation of presentation from application code, it also gives you plenty of room to bend those rules. A poor implementation (i.e. injecting PHP in templates) will cause more problems than the presentation separation was meant to resolve. The documentation does a good job of indicating what things to watch out for. Also see the Best Practices section of the Smarty website. - </para> - - <para> - <emphasis role="bold">How does it work?</emphasis> - </para> - - <para> - Under the hood, Smarty "compiles" (basically copies and converts) the templates into PHP scripts. This happens once when each template is first invoked, and then the compiled versions are used from that point forward. Smarty takes care of this for you, so the template designer just edits the Smarty templates and never has to manage the compiled versions. This approach keeps the templates easy to maintain, and yet keeps execution times extremely fast since the compiled code is just PHP. And of course, all PHP scripts take advantage of PHP op-code caches such as APC. - </para> - - <para> - <emphasis role="bold">Template Inheritance</emphasis> - </para> - - <para> - Template inheritance is new to Smarty 3, and it's one of many great new features. Before template inheritance, we managed our templates in pieces such as header and footer templates. This organization lends itself to many problems that require some hoop-jumping, such as managing content within the header/footer on a per-page basis. With template inheritance, instead of including other templates we maintain our templates as single pages. We can then manipulate blocks of content within by inheriting them. This makes templates intuitive, efficient and easy to manage. See the Template Inheritance section of th Smarty website for more info. - </para> - - <para> - <emphasis role="bold">Why not use XML/XSLT syntax?</emphasis> - </para> - - <para> - There are a couple of good reasons. First, Smarty can be used for more than just XML/HTML based templates, such as generating emails, javascript, CSV, and PDF documents. Second, XML/XSLT syntax is even more verbose and fragile than PHP code! It is perfect for computers, but horrible for humans. Smarty is about being easy to read, understand and maintain. - </para> - - <para> - <emphasis role="bold">Template Security</emphasis> - </para> - - <para> - Although Smarty insulates you from PHP, you still have the option to use it in certain ways if you wish. Template security forces the restriction of PHP (and select Smarty functions.) This is useful if you have third parties editing templates, and you don't want to unleash the full power of PHP or Smarty to them. - </para> - - <para> - <emphasis role="bold">Integration</emphasis> - </para> - - <para> - Sometimes Smarty gets compared to Model-View-Controller (MVC) frameworks. Smarty is not an MVC, it is just the presentation layer, much like the View (V) part of an MVC. As a matter of fact, Smarty can easily be integrated as the view layer of an MVC. Many of the more popular ones have integration instructions for Smarty, or you may find some help here in the forums and documentation. - </para> - - <para> - <emphasis role="bold">Other Template Engines</emphasis> - </para> - - <para> - Smarty is not the only engine following the <emphasis>"Separate Programming Code from Presentation"</emphasis> philosophy. - For instance, Python has template engines built around the same principles such as Django Templates and CheetahTemplate. <emphasis>Note: Languages such as Python do not mix with HTML natively, which give them the advantage of proper programming code separation from the outset. There are libraries available to mix Python with HTML, but they are typically avoided.</emphasis> - </para> - - <para> - <emphasis role="bold">What Smarty is Not</emphasis> - </para> - - <para> - Smarty is not an application development framework. Smarty is not an MVC. Smarty is not an alternative to Zend Framework, CodeIgniter, PHPCake, or any of the other application development frameworks for PHP. - </para> - - <para> - Smarty is a template engine, and works as the (V)iew component of your application. Smarty can easily be coupled to any of the engines listed above as the view component. No different than any other software, Smarty has a learning curve. Smarty does not guarantee good application design or proper separation of presentation, this still needs to be addressed by a competent developer and web designer. - </para> - - <para> - <emphasis role="bold">Is Smarty Right for Me?</emphasis> - </para> - - <para> - Smarty is not meant to be a tool for every job. The important thing is to identify if Smarty fits your needs. There are some important questions to ask yourself: - </para> - - <para> - TEMPLATE SYNTAX. Are you content with PHP tags mixed with HTML? Are your web designers comfortable with PHP? Would your web designers prefer a tag-based syntax designed for presentation? Some experience working with both Smarty and PHP helps answer these questions. - </para> - - <para> - THE BUSINESS CASE: Is there a requirement to insulate the templates from PHP? Do you have untrusted parties editing templates that you do not wish to unleash the power of PHP to? Do you need to programmatically control what is and is not available within the templates? Smarty supplies these capabilities by design. - </para> - - <para> - FEATURE SET: Does Smarty's features such as caching, template inheritance and plugin architecture save development cycles writing code that would be needed otherwise? Does the codebase or framework you plan on using have the features you need for the presentation component? - </para> - - <para> - Templating in PHP is a hot topic, and opinions widely vary. It is important that you understand Smarty, understand your own requirements, and make an informed decision for yourself. You are welcome to ask specific questions in the forums or the IRC channel. - </para> - - <para> - See also the section about "Use Cases and Work Flow" on the Smarty website. - </para> - - <para> - <emphasis role="bold">Sites using Smarty</emphasis> - </para> - - <para> - There are tens of thousands of unique visitors on the Smarty website daily, mostly developers reading documentation. Many well-known PHP projects make use of Smarty such as XOOPS CMS, CMS Made Simple , Tiki CMS/Groupware and X-Cart to name a few. - </para> - - <para> - <emphasis role="bold">Summary</emphasis> - </para> - - <para> - Whether you are using Smarty for a small website or massive enterprise solution, it can accommodate your needs. There are numerous features that make Smarty a great choice: - </para> - - <itemizedlist> - <listitem><para>separation of PHP from HTML/CSS just makes sense</para></listitem> - <listitem><para>readability for organization and management</para></listitem> - <listitem><para>security for 3rd party template access</para></listitem> - <listitem><para>feature completeness, and easily extendable to your own needs</para></listitem> - <listitem><para>massive user base, Smarty is here to stay</para></listitem> - <listitem><para>LGPL license for commercial use</para></listitem> - <listitem><para>100% free to use, open source project</para></listitem> - </itemizedlist> - - </preface> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <chapter id="advanced.features"> - <title>Advanced Features</title> -&programmers.advanced-features.advanced-features-security; -&programmers.advanced-features.advanced-features-template-settings; -&programmers.advanced-features.advanced-features-template-inheritance; -&programmers.advanced-features.advanced-features-streams; -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-static-classes; -&programmers.advanced-features.advanced-features-prefilters; -&programmers.advanced-features.advanced-features-postfilters; -&programmers.advanced-features.advanced-features-outputfilters; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,151 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4335 $ --> -<sect1 id="advanced.features.objects"> - <title>Objects</title> - <para> - Smarty allows access to PHP - <ulink url="&url.php-manual;object">objects</ulink> through the templates. -</para> - -<note><para> - When you assign/register objects to templates, be sure that all properties and methods accessed from the template are for presentation purposes only. It is very easy to inject application logic through objects, and this leads to poor designs that are difficult to manage. See the Best Practices section of the Smarty website. -</para></note> - -<para> - There are two ways to access them. -</para> - - <itemizedlist spacing="compact"> - <listitem><para> - One way is to <link linkend="api.register.object">register objects</link> to - the template, then use access them via syntax similar to - <link linkend="language.custom.functions">custom functions</link>. - </para></listitem> - <listitem> - <para> - The other way is to <link linkend="api.assign"><varname>assign()</varname></link> - objects to the templates and access them much like any other assigned variable. - </para> - </listitem> - </itemizedlist> - - <para> - The first method has a much nicer template syntax. It - is also more secure, as a registered object can be restricted to certain - methods or properties. However, - <emphasis role="bold">a registered object cannot be looped over - or assigned in arrays of objects</emphasis>, etc. The method you choose will be - determined by your needs, but use the first method whenever possible to - keep template syntax to a minimum. - </para> - <para> - If security is enabled, no private methods or functions can be accessed - (beginningwith '_'). If a method and property of the same name exist, - the method will be used. - </para> - <para> - You can restrict the methods and properties that can be accessed by - listing them in an array as the third registration parameter. - </para> - <para> - By default, parameters passed to objects through the templates are passed - the same way - <link linkend="language.custom.functions">custom functions</link> get them. - An associative array is passed - as the first parameter, and the smarty object as the second. If you want - the parameters passed one at a time for each argument like traditional - object parameter passing, set the fourth registration parameter to &false;. - </para> - <para> - The optional fifth parameter has only effect with - <parameter>format</parameter> being &true; - and contains a list of methods that should be treated as - blocks. That means these methods have a closing tag in the - template - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) and - the parameters to the methods have the same synopsis as the - parameters for - <link linkend="plugins.block.functions"> - <varname>block-function-plugins</varname></link>: - They get the four parameters - <parameter>$params</parameter>, - <parameter>$content</parameter>, - <parameter>$smarty</parameter> and - <parameter>&$repeat</parameter> and they also behave like - block-function-plugins. - </para> - <example> - <title>Using a registered or assigned object</title> - <programlisting role="php"> -<![CDATA[ -<?php -// the object - -class My_Object { - function meth1($params, $smarty_obj) { - return 'this is my meth1'; - } -} - -$myobj = new My_Object; - -// registering the object (will be by reference) -$smarty->registerObject('foobar',$myobj); - -// if we want to restrict access to certain methods or properties, list them -$smarty->registerObject('foobar',$myobj,array('meth1','meth2','prop1')); - -// if you want to use the traditional object parameter format, pass a boolean of false -$smarty->registerObject('foobar',$myobj,null,false); - -// We can also assign objects. assign_by_ref when possible. -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - And here's how to access your objects in <filename>index.tpl</filename>: - </para> - <programlisting> -<![CDATA[ -{* access our registered object *} -{foobar->meth1 p1='foo' p2=$bar} - -{* you can also assign the output *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* access our assigned object *} -{$myobj->meth1('foo',$bar)} -]]> - </programlisting> - </example> - <para> - See also <link - linkend="api.register.object"><varname>registerObject()</varname></link> - and - <link linkend="api.assign"><varname>assign()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="advanced.features.outputfilters"> - <title>Output Filters</title> - <para> - When the template is invoked via - <link linkend="api.display"><varname>display()</varname></link> or - <link linkend="api.fetch"><varname>fetch()</varname></link>, its output can - be sent through one or more output filters. This differs from - <link linkend="advanced.features.postfilters"> - <varname>postfilters</varname></link> - because postfilters operate on compiled templates before they are saved to - the disk, whereas output filters operate on the template output when it is - executed. - </para> - - <para> - Output filters can be either - <link linkend="api.register.filter">registered</link> or loaded - from the - <link linkend="variable.plugins.dir">plugins directory</link> by using the - <link linkend="api.load.filter"><varname>loadFilter()</varname></link> - method or by setting the <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> variable. - Smarty will pass the template output as the first argument, - and expect the function to return the result of the processing. - </para> - <example> - <title>Using a template outputfilter</title> - <programlisting role="php"> -<![CDATA[ -<?php -// put this in your application -function protect_email($tpl_output, Smarty_Internal_Template $template) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// register the outputfilter -$smarty->registerFilter("output","protect_email"); -$smarty->display("index.tpl'); - -// now any occurrence of an email address in the template output will have -// a simple protection against spambots -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>, - <link linkend="api.load.filter"><varname>loadFilter()</varname></link>, - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>, - <link linkend="advanced.features.postfilters">postfilters</link> and - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="advanced.features.postfilters"> - <title>Postfilters</title> - <para> - Template postfilters are PHP functions that your templates are ran through - <emphasis>after they are compiled</emphasis>. Postfilters can be either - <link linkend="api.register.filter">registered</link> or loaded - from the <link linkend="variable.plugins.dir">plugins directory</link> - by using the - <link linkend="api.load.filter"><varname>loadFilter()</varname></link> - function or by setting the <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> variable. - Smarty will pass the compiled template code as the first - argument, and expect the function to return the result of the - processing. - </para> - <example> - <title>Using a template postfilter</title> - <programlisting role="php"> -<![CDATA[ -<?php -// put this in your application -function add_header_comment($tpl_source, Smarty_Internal_Template $template) -{ - return "<?php echo \"<!-- Created by Smarty! -->\n\"; ?>\n".$tpl_source; -} - -// register the postfilter -$smarty->registerFilter('post','add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - The postfilter above will make the compiled Smarty template - <filename>index.tpl</filename> look like: - </para> - <screen> -<![CDATA[ -<!-- Created by Smarty! --> -{* rest of template content... *} -]]> - </screen> - </example> - <para> - See also - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>, - <link linkend="advanced.features.prefilters">prefilters</link>, - <link linkend="advanced.features.outputfilters">outputfilters</link>, - and - <link linkend="api.load.filter"><varname>loadFilter()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="advanced.features.prefilters"> - <title>Prefilters</title> - <para> - Template prefilters are PHP functions that your templates are ran through - <emphasis>before they are compiled</emphasis>. This is good for preprocessing - your templates to remove unwanted comments, keeping an eye on what people are - putting in their templates, etc. - </para> - <para> - Prefilters can be either <link - linkend="api.register.filter">registered</link> or loaded from - the <link linkend="variable.plugins.dir">plugins directory</link> - by using <link - linkend="api.load.filter"><varname>loadFilter()</varname></link> function or - by setting the <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> variable. - </para> - <para> - Smarty will pass the template source code as the first argument, and - expect the function to return the resulting template source code. - </para> - <example> - <title>Using a template prefilter</title> - <para> - This will remove all the html comments in the template source. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// put this in your application -function remove_dw_comments($tpl_source, Smarty_Internal_Template $template) -{ - return preg_replace("/<!--#.*-->/U",'',$tpl_source); -} - -// register the prefilter -$smarty->registerFilter('pre','remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - - </example> - <para>See also - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>, - <link linkend="advanced.features.postfilters">postfilters</link> - and - <link linkend="api.load.filter"><varname>loadFilter()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-security.xml
Deleted
@@ -1,252 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4525 $ --> -<sect1 id="advanced.features.security"> - <title>Security</title> - <para> - Security is good for situations when you have untrusted parties editing the templates - eg via ftp, and you want to reduce the risk of system security compromises through the template language. - </para> - <para> - The settings of the security policy are defined by properties of an instance of the Smarty_Security class. -These are the possible settings: -<itemizedlist> - <listitem> - <para> - <parameter>$php_handling</parameter> determines how Smarty to handle PHP code embedded in templates. - Possible values are: - <itemizedlist> - <listitem> - <para> - Smarty::PHP_PASSTHRU -> echo PHP tags as they are - </para> - </listitem> - <listitem> - <para> - Smarty::PHP_QUOTE -> escape tags as entities - </para> - </listitem> - <listitem> - <para> - Smarty::PHP_REMOVE -> remove php tags - </para> - </listitem> - <listitem> - <para> - Smarty::PHP_ALLOW -> execute php tags - </para> - </listitem> - </itemizedlist> - The default value is Smarty::PHP_PASSTHRU. - </para> - <para> - If security is enabled the <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link> - setting of the Smarty object is not checked for security. - </para> - </listitem> - <listitem> - <para> - <parameter>$secure_dir</parameter> is an array of template directories that are considered secure. - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> concidered secure implicitly. - The default is an empty array. - </para> - </listitem> - <listitem> - <para> - <parameter>$trusted_dir</parameter> is an array of all directories that are considered trusted. - Trusted directories are where you keep php scripts that are executed directly from the templates - with <link linkend="language.function.include.php"><varname>{include_php}</varname></link>. - The default is an empty array. - </para> - </listitem> - <listitem> - <para> - <parameter>$trusted_uri</parameter> is an array of regular expressions matching URIs that are considered trusted. - This security directive used by <link linkend="language.function.fetch"><varname>{fetch}</varname></link> and - <link linkend="language.function.html.image"><varname>{html_image}</varname></link>. URIs passed to these functions - are reduced to <literal>{$PROTOCOL}://{$HOSTNAME}</literal> to allow simple regular expressions - (without having to deal with edge cases like authentication-tokens). - </para> - <para> - The expression <literal>'#https?://.*smarty.net$#i'</literal> would allow accessing the follwing URIs: - <itemizedlist> - <listitem><para><literal>http://smarty.net/foo</literal></para></listitem> - <listitem><para><literal>http://smarty.net/foo</literal></para></listitem> - <listitem><para><literal>http://www.smarty.net/foo</literal></para></listitem> - <listitem><para><literal>http://smarty.net/foo</literal></para></listitem> - <listitem><para><literal>https://foo.bar.www.smarty.net/foo/bla?blubb=1</literal></para></listitem> - </itemizedlist> - - but deny access to these URIs: - - <itemizedlist> - <listitem><para><literal>http://smarty.com/foo</literal> (not matching top-level domain "com")</para></listitem> - <listitem><para><literal>ftp://www.smarty.net/foo</literal> (not matching protocol "ftp")</para></listitem> - <listitem><para><literal>http://www.smarty.net.otherdomain.com/foo</literal> (not matching end of domain "smarty.net")</para></listitem> - </itemizedlist> - </para> - </listitem> - <listitem> - <para> - <parameter>$static_classes</parameter> is an array of classes that are considered trusted. - The default is an empty array which allows access to all static classes. To disable access to - all static classes set $static_classes = null. - </para> - </listitem> - <listitem> - <para> - <parameter>$php_functions</parameter> is an array of PHP functions that are considered trusted and - can be used from within template. To disable access to all PHP functions set $php_functions = null. - An empty array ( $php_functions = array() ) will allow all PHP functions. - The default is array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array','time','nl2br'). - </para> - </listitem> - <listitem> - <para> - <parameter>$php_modifiers</parameter> is an array of PHP functions that are considered trusted and - can be used from within template as modifier. To disable access to all PHP modifier set $php_modifier = null. - An empty array ( $php_modifier = array() ) will allow all PHP functions. - The default is array('escape','count'). - </para> - </listitem> - <listitem> - <para> - <parameter>$streams</parameter> is an array of streams that are considered trusted and - can be used from within template. To disable access to all streams set $streams = null. - An empty array ( $streams = array() ) will allow all streams. - The default is array('file'). - </para> - </listitem> - <listitem> - <para> - <parameter>$allowed_modifiers</parameter> is an array of (registered / autoloaded) - modifiers that should be accessible to the template. If this array is non-empty, - only the herein listed modifiers may be used. This is a whitelist. - </para> - </listitem> - <listitem> - <para> - <parameter>$disabled_modifiers</parameter> is an array of (registered / autoloaded) - modifiers that may not be accessible to the template. - </para> - </listitem> - <listitem> - <para> - <parameter>$allowed_tags</parameter> is a boolean flag which controls if constants can - function-, block and filter plugins that should be accessible to the template. If this - array is non-empty, only the herein listed modifiers may be used. This is a whitelist. - </para> - </listitem> - <listitem> - <para> - <parameter>$disabled_tags</parameter> is an array of (registered / autoloaded) - function-, block and filter plugins that may not be accessible to the template. - </para> - </listitem> - <listitem> - <para> - <parameter>$allow_constants</parameter> is a boolean flag which controls if constants can - be accessed by the template. The default is "true". - </para> - </listitem> - <listitem> - <para> - <parameter>$allow_super_globals</parameter> is a boolean flag which controls if the PHP - super globals can be accessed by the template. The default is "true". - </para> - </listitem> - <listitem> - <para> - <parameter>$allow_php_tag</parameter> is a boolean flag which controls if {php} and {include_php} - tags can be used by the template. The default is "false". - </para> - </listitem> -</itemizedlist> - </para> - <para> - If security is enabled, no private methods, functions or properties of static classes or assigned objects can be accessed - (beginningwith '_') by the template. - </para> - <para> - To customize the security policy settings you can extend the Smarty_Security class or create an instance of it. - </para> - <example> - <title>Setting security policy by extending the Smarty_Security class</title> - <programlisting role="php"> -<![CDATA[ -<?php -require 'Smarty.class.php'; - -class My_Security_Policy extends Smarty_Security { - // disable all PHP functions - public $php_functions = null; - // remove PHP tags - public $php_handling = Smarty::PHP_REMOVE; - // allow everthing as modifier - public $modifiers = array(); -} -$smarty = new Smarty(); -// enable security -$smarty->enableSecurity('My_Security_Policy'); -?> -]]> -</programlisting> - </example> - <example> - <title>Setting security policy by instance of the Smarty_Security class</title> - <programlisting role="php"> -<![CDATA[ -<?php -require 'Smarty.class.php'; -$smarty = new Smarty(); -$my_security_policy = new Smarty_Security($smarty); -// disable all PHP functions -$my_security_policy->php_functions = null; -// remove PHP tags -$my_security_policy->php_handling = Smarty::PHP_REMOVE; -// allow everthing as modifier -$my_security_policy->$modifiers = array(); -// enable security -$smarty->enableSecurity($my_security_policy); -?> -]]> -</programlisting> - </example> - <example> - <title>Enable security with the default settings</title> - <programlisting role="php"> -<![CDATA[ -<?php -require 'Smarty.class.php'; -$smarty = new Smarty(); -// enable default security -$smarty->enableSecurity(); -?> -]]> -</programlisting> - </example> - <note><para> - Must security policy settings are only checked when the template gets compiled. For that reasion you should - delete all cached and compiled template files when you change your security settings. - </para></note> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-static-classes.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="advanced.features.static.classes"> - <title>Static Classes</title> - <para> - You can directly access static classes. The syntax is the same as in PHP. - </para> - - <note><para> - Direct access to PHP classes is not recommended. This ties the underlying application code structure directly to the presentation, and also complicates template syntax. It is recommended to register plugins which insulate templates from PHP classes/objects. Use at your own discretion. See the Best Practices section of the Smarty website. - </para></note> - - - <example> - <title>static class access syntax </title> - <programlisting> -<![CDATA[ -{assign var=foo value=myclass::BAR} <--- class constant BAR - -{assign var=foo value=myclass::method()} <--- method result - -{assign var=foo value=myclass::method1()->method2} <--- method chaining - -{assign var=foo value=myclass::$bar} <--- property bar of class myclass - -{assign var=foo value=$bar::method} <--- using Smarty variable bar as class name - -]]> - </programlisting> - </example> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-streams.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="advanced.features.streams"> - <title>Streams</title> -<para> -You can also use streams to call variables. <emphasis>{$foo:bar}</emphasis> will use the <emphasis>foo://bar</emphasis> stream to get the template variable. -</para> -<example> - <title>Stream Variable</title> - <para>Using a PHP stream for a template variable resource from within a template.</para> - <programlisting> -<![CDATA[ -{$foo:bar} -]]> - </programlisting> -</example> - <para> - See also - <link linkend="resources"><varname>Template Resources</varname></link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-template-inheritance.xml
Deleted
@@ -1,152 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="advanced.features.template.inheritance"> - <title>Template Inheritance</title> - <para> - Inheritance brings the concept of Object Oriented Programming to templates, allowing you to define - one (or more) base templates that can be extended by child templates. Extending means that the child - template can override all or some of the parent named block areas. - </para> - - <itemizedlist> - <listitem><para> - The inheritance tree can be as deep as you want, meaning you can extend a file that extends another - one that extends another one and so on. - </para></listitem> - <listitem><para> - The child templates can not define any content besides what's inside <link linkend="language.function.block"><varname>{block}</varname></link> - tags they override. Anything outside of <link linkend="language.function.block"><varname>{block}</varname></link> tags will be removed. - </para></listitem> - <listitem><para> - The content of <link linkend="language.function.block"><varname>{block}</varname></link> tags from child and parent templates can be merged by - the <literal>append</literal> or <literal>prepend</literal> <link linkend="language.function.block"><varname>{block}</varname></link> - tag option flags and <literal>{$smarty.block.parent}</literal> or <literal>{$smarty.block.child}</literal> placeholders. - </para></listitem> - <listitem><para> - Template inheritance is a compile time process which creates a single compiled template file. Compared to corresponding - solutions based on subtemplates included with the <link linkend="language.function.include"><varname>{include}</varname></link> - tag it does have much better performance when rendering. - </para></listitem> - <listitem><para> - The child template extends its parent defined with the <link linkend="language.function.extends"><varname>{extends}</varname></link> tag, - which must be the first line in the child template. Instead of using the <link linkend="language.function.extends"><varname>{extends}</varname></link> - tags in the template files you can define the whole template inheritance tree in the PHP script when you are calling <link linkend="api.fetch"><varname>fetch()</varname></link> - or <link linkend="api.display"><varname>display()</varname></link> with the <literal>extends:</literal> template resource type. The later provides even more flexibillity. - </para></listitem> - </itemizedlist> - <note><para> - When <parameter>$compile_check</parameter> is enabled, all files in the inheritance tree are checked for modifications upon each invocation. You may want to disable <parameter>$compile_check</parameter> on production servers for this reason. - </para></note> - <note><para> - If you have a subtemplate which is included with <link linkend="language.function.include"><varname>{include}</varname></link> and it contains - <link linkend="language.function.block"><varname>{block}</varname></link> areas it works only if the <link linkend="language.function.include"><varname>{include}</varname></link> - itself is called from within a surrounding <link linkend="language.function.block"><varname>{block}</varname></link>. In the final parent template you may need a dummy <link linkend="language.function.block"><varname>{block}</varname></link> for it. - </para></note> - - <example> - <title>Template inheritance example</title> - <para>layout.tpl (parent)</para> - <programlisting> -<![CDATA[ -<html> -<head> - <title>{block name=title}Default Page Title{/block}</title> - {block name=head}{/block} -</head> -<body> -{block name=body}{/block} -</body> -</html> -]]> - </programlisting> - <para>myproject.tpl (child)</para> - <programlisting> -<![CDATA[ -{extends file='layout.tpl'} -{block name=head} - <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> - <script src="/js/mypage.js"></script> -{/block} -]]> - - </programlisting> - <para>mypage.tpl (grandchild)</para> - <programlisting> -<![CDATA[ -{extends file='myproject.tpl'} -{block name=title}My Page Title{/block} -{block name=head} - <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> - <script src="/js/mypage.js"></script> -{/block} -{block name=body}My HTML Page Body goes here{/block} -]]> - </programlisting> - <para>To render the above use</para> -<programlisting role="php"> -<![CDATA[ - $smarty->display('mypage.tpl'); -]]> -</programlisting> - <para>The resulting output is</para> - <programlisting> -<![CDATA[ -<html> -<head> - <title>My Page Title</title> - <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> - <script src="/js/mypage.js"></script> -</head> -<body> -My HTML Page Body goes here -</body> -</html>]]> -</programlisting> -</example> - - <example> - <title>Template inheritance by template resource <literal>extends:</literal></title> - <para> - Instead of using <link linkend="language.function.extends"><varname>{extends}</varname></link> tags in the template - files you can define the inheritance tree in your PHP script by using the - <link linkend="resources.extends"><literal>extends:</literal> resource</link> type. - </para> - <para> - The code below will return same result as the example above. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('extends:layout.tpl|myproject.tpl|mypage.tpl'); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.function.block"><varname>{block}</varname></link>, - <link linkend="language.function.extends"><varname>{extends}</varname></link> - and <link linkend="resources.extends"><literal>extends:</literal> resource</link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/advanced-features/advanced-features-template-settings.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="advanced.features.template.settings"> - <title>Changing settings by template</title> - <para> - Normally you configure the Smarty settings by modifying the <link linkend="api.variables"><varname>Smarty class variables</varname></link>. Furthermore - you can register plugins, filters etc. with <link linkend="api.functions"><varname>Smarty functions</varname></link>. Modifications done to the Smarty object - will be global for all templates. - </para> -<para> - However the Smarty class variables and functions can be accessed or called by induvidual template objects. Modification done to a template object - will apply only for that template and its included subtemplates. -</para> - <para> - <example> - <title>changing Smarty settings by template</title> - <programlisting role="php"> -<![CDATA[ -<?php -$tpl = $smarty->createTemplate('index.tpl); -$tpl->cache_lifetime = 600; -//or -$tpl->setCacheLifetime(600); -$smarty->display($tpl); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>register plugins by template</title> - <programlisting role="php"> -<![CDATA[ -<?php -$tpl = $smarty->createTemplate('index.tpl); -$tpl->registerPlugin('modifier','mymodifier'); -$smarty->display($tpl); -?> -]]> - </programlisting> - </example> - </para> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4335 $ --> - <chapter id="api.functions"> - <title>Smarty Class Methods</title> - <note><para> - See <link linkend="advanced.features.template.settings"><varname>Changing settings by template</varname></link> section - for how to use the functions for individual templates. - </para></note> -&programmers.api-functions.api-add-config-dir; -&programmers.api-functions.api-add-plugins-dir; -&programmers.api-functions.api-add-template-dir; -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-compile-all-config; -&programmers.api-functions.api-compile-all-templates; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-create-data; -&programmers.api-functions.api-create-template; -&programmers.api-functions.api-disable-security; -&programmers.api-functions.api-display; -&programmers.api-functions.api-enable-security; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-cache-dir; -&programmers.api-functions.api-get-compile-dir; -&programmers.api-functions.api-get-config-dir; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-plugins-dir; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-tags; -&programmers.api-functions.api-get-template-dir; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-mute-expected-errors; -&programmers.api-functions.api-register-cacheresource; -&programmers.api-functions.api-register-class; -&programmers.api-functions.api-register-default-plugin-handler; -&programmers.api-functions.api-register-filter; -&programmers.api-functions.api-register-plugin; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-set-cache-dir; -&programmers.api-functions.api-set-compile-dir; -&programmers.api-functions.api-set-config-dir; -&programmers.api-functions.api-set-plugins-dir; -&programmers.api-functions.api-set-template-dir; -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-cacheresource; -&programmers.api-functions.api-unregister-filter; -&programmers.api-functions.api-unregister-plugin; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-resource; -&programmers.api-functions.api-test-install; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-add-config-dir.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.add.config.dir"> - <refnamediv> - <refname>addConfigDir()</refname> - <refpurpose>add a directory to the list of directories where config files are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>addConfigDir</methodname> - <methodparam><type>string|array</type><parameter>config_dir</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>key</parameter></methodparam> - </methodsynopsis> - <example> - <title>addConfigDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// add directory where config files are stored -$smarty->addConigDir('./config_1'); - -// add directory where config files are stored and specify array-key -$smarty->addConfigDir('./config_1', 'one'); - -// add multiple directories where config files are stored and specify array-keys -$smarty->addTemplateDir(array( - 'two' => './config_2', - 'three' => './config_3', -)); - -// view the template dir chain -var_dump($smarty->getConfigDir()); - -// chaining of method calls -$smarty->setConfigDir('./config') - ->addConfigDir('./config_1', 'one') - ->addConfigDir('./config_2', 'two'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.config.dir"><varname>getConfigDir()</varname></link>, - <link linkend="api.set.config.dir"><varname>setConfigDir()</varname></link> and - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-add-plugins-dir.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.add.plugins.dir"> - <refnamediv> - <refname>addPluginsDir()</refname> - <refpurpose>add a directory to the list of directories where plugins are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>addPluginsDir</methodname> - <methodparam><type>string|array</type><parameter>plugins_dir</parameter></methodparam> - </methodsynopsis> - <example> - <title>addPluginsDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// add directory where plugins are stored -$smarty->addPluginsDir('./plugins_1'); - -// add multiple directories where plugins are stored -$smarty->setPluginsDir(array( - './plugins_2', - './plugins_3', -)); - -// view the plugins dir chain -var_dump($smarty->getPluginsDir()); - -// chaining of method calls -$smarty->setPluginsDir('./plugins') - ->addPluginsDir('./plugins_1') - ->addPluginsDir('./plugins_2'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.plugins.dir"><varname>getPluginsDir()</varname></link>, - <link linkend="api.set.plugins.dir"><varname>setPluginsDir()</varname></link> and - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-add-template-dir.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.add.template.dir"> - <refnamediv> - <refname>addTemplateDir()</refname> - <refpurpose>add a directory to the list of directories where templates are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>addTemplateDir</methodname> - <methodparam><type>string|array</type><parameter>template_dir</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>key</parameter></methodparam> - </methodsynopsis> - <example> - <title>addTemplateDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// add directory where templates are stored -$smarty->addTemplateDir('./templates_1'); - -// add directory where templates are stored and specify array-key -$smarty->addTemplateDir('./templates_1', 'one'); - -// add multiple directories where templates are stored and specify array-keys -$smarty->addTemplateDir(array( - 'two' => './templates_2', - 'three' => './templates_3', -)); - -// view the template dir chain -var_dump($smarty->getTemplateDir()); - -// chaining of method calls -$smarty->setTemplateDir('./templates') - ->addTemplateDir('./templates_1', 'one') - ->addTemplateDir('./templates_2', 'two'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.template.dir"><varname>getTemplateDir()</varname></link>, - <link linkend="api.set.template.dir"><varname>setTemplateDir()</varname></link> and - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>appendByRef()</refname> - <refpurpose>append values by reference</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>appendByRef</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - This is used to - <link linkend="api.append"><varname>append()</varname></link> values - to the templates by reference. - </para> - <note> - <title>Technical Note</title> - <para> - With the introduction of PHP5, <varname>appendByRef()</varname> is not necessary for most - intents and purposes. <varname>appendByRef()</varname> is useful if you want a PHP array index value - to be affected by its reassignment from a template. Assigned object properties behave - this way by default. - </para> - </note> - ¬e.parameter.merge; - <example> - <title>appendByRef</title> - <programlisting role="php"> -<![CDATA[ -<?php -// appending name/value pairs -$smarty->appendByRef('Name', $myname); -$smarty->appendByRef('Address', $address); -?> -]]> - </programlisting> - </example> -<para> - See also - <link linkend="api.append"><varname>append()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> - and - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-append.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.append"> - <refnamediv> - <refname>append()</refname> - <refpurpose>append an element to an assigned array</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> -If you append - to a string value, it is converted to an array value and then - appended to. You can explicitly pass name/value pairs, or associative - arrays containing the name/value pairs. If you pass the optional third - parameter of &true;, the value will be merged with the current array - instead of appended. - </para> - ¬e.parameter.merge; - <example> - <title>append</title> - <programlisting role="php"> -<![CDATA[ -<?php -// This is effectively the same as assign() -$smarty->append('foo', 'Fred'); -// After this line, foo will now be seen as an array in the template -$smarty->append('foo', 'Albert'); - -$array = array(1 => 'one', 2 => 'two'); -$smarty->append('X', $array); -$array2 = array(3 => 'three', 4 => 'four'); -// The following line will add a second element to the X array -$smarty->append('X', $array2); - -// passing an associative array -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - </programlisting> - </example> - <para>See also - <link linkend="api.append.by.ref"><varname>appendByRef()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> - and - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assignByRef()</refname> - <refpurpose>assign values by reference</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>assignByRef</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - This is used to <link linkend="api.assign"><varname>assign()</varname></link> - values to the templates by reference. - </para> - <note> - <title>Technical Note</title> - <para> - With the introduction of PHP5, <varname>assignByRef()</varname> is not necessary for most - intents and purposes. <varname>assignByRef()</varname> is useful if you want a PHP array index value - to be affected by its reassignment from a template. Assigned object properties behave - this way by default. - </para> - </note> - <example> - <title>assignByRef()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passing name/value pairs -$smarty->assignByRef('Name', $myname); -$smarty->assignByRef('Address', $address); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.assign"><varname>assign()</varname></link>, - <link linkend="api.clear.all.assign"><varname>clearAllAssign()</varname></link>, - <link linkend="api.append"><varname>append()</varname></link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link> - and - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-assign.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3842 $ --> -<refentry id="api.assign"> - <refnamediv> - <refname>assign()</refname> - <refpurpose>assign variables/objects to the templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>nocache</parameter></methodparam> - </methodsynopsis> - <para> - You can explicitly pass name/value pairs, or associative arrays - containing the name/value pairs. - </para> - <para> - If you pass the optional third <parameter>nocache</parameter> parameter of &true;, the variable is assigned as nocache variable. - See <link linkend="cacheability.variables"><parameter>Cacheability of Variables</parameter></link> for details. - </para> - <note><para> - When you assign/register objects to templates, be sure that all properties and methods accessed from the template are for presentation purposes only. It is very easy to inject application logic through objects, and this leads to poor designs that are difficult to manage. See the Best Practices section of the Smarty website. - </para></note> - - <example> - <title>assign()</title> -<programlisting role="php"> -<![CDATA[ -<?php -// passing name/value pairs -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// passing an associative array -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// passing an array -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// passing a row from a database (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> -</programlisting> - <para> - These are accessed in the template with - </para> -<programlisting> -<![CDATA[ -{* note the vars are case sensitive like php *} -{$Name} -{$Address} -{$city} -{$state} - -{$foo.no}, {$foo.label} -{$contact.id}, {$contact.name},{$contact.email} -]]> -</programlisting> - </example> - <para> - To access more complex array assignments see - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> - and - <link linkend="language.function.section"><varname>{section}</varname></link> - </para> - - <para> - See also - <link linkend="api.assign.by.ref"><varname>assignByRef()</varname></link>, - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>, - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>, - <link linkend="api.append"><varname>append()</varname></link> - and - <link linkend="language.function.assign"><varname>{assign}</varname></link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clearAllAssign()</refname> - <refpurpose>clears the values of all assigned variables</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clearAllAssign</methodname> - <void /> - </methodsynopsis> - <example> - <title>clearAllAssign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passing name/value pairs -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// will output above -print_r( $smarty->getTemplateVars() ); - -// clear all assigned variables -$smarty->clearAllAssign(); - -// will output nothing -print_r( $smarty->getTemplateVars() ); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>, - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>, - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> - and <link linkend="api.append"><varname>append()</varname></link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clearAllCache()</refname> - <refpurpose>clears the entire template cache</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clearAllCache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - As an optional - parameter, you can supply a minimum age in seconds the cache - files must be before they will get cleared. - </para> - <example> - <title>clearAllCache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear the entire cache -$smarty->clearAllCache(); - -// clears all files over one hour old -$smarty->clearAllCache(3600); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>, - <link linkend="api.is.cached"><varname>isCached()</varname></link> - and the - <link linkend="caching">caching</link> page. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clearAssign()</refname> - <refpurpose>clears the value of an assigned variable</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clearAssign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> -This can be a single value, or an array of values. - </para> - <example> - <title>clearAssign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear a single variable -$smarty->clearAssign('Name'); - -// clears multiple variables -$smarty->clearAssign(array('Name', 'Address', 'Zip')); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.clear.all.assign"><varname>clearAllAssign()</varname></link>, - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>, - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> - and <link linkend="api.append"><varname>append()</varname></link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clearCache()</refname> - <refpurpose>clears the cache for a specific template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clearCache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - - <itemizedlist> - <listitem><para> - If you have <link linkend="caching.multiple.caches">multiple caches</link> - for a template, you can clear a specific - cache by supplying the <parameter>cache_id</parameter> as the second - parameter. - </para></listitem> - <listitem><para> - You can also pass a - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - as a third parameter. - You can <link linkend="caching.groups">group templates together</link> - so they can be removed as a group, see the - <link linkend="caching">caching section</link> for more - information. - </para></listitem> - <listitem><para> - As an optional fourth parameter, you can supply a - minimum age in seconds the cache file must be before it will - get cleared. - </para></listitem> - </itemizedlist> - - <example> - <title>clearCache()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear the cache for a template -$smarty->clearCache('index.tpl'); - -// clear the cache for a particular cache id in an multiple-cache template -$smarty->clearCache('index.tpl', 'MY_CACHE_ID'); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.clear.all.cache"><varname>clearAllCache()</varname></link> - and - <link linkend="caching"><varname>caching</varname></link> section. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clearCompiledTemplate()</refname> - <refpurpose>clears the compiled version of the specified template resource</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clearCompiledTemplate</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - This clears the compiled version of the specified template - resource, or all compiled template files if one is not specified. - If you pass a - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - only the compiled template for this specific - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - is cleared. If you pass an exp_time, then only - compiled templates older than <parameter>exp_time</parameter> seconds are - cleared, by default all compiled templates are cleared regardless of their age. - This function is for advanced use only, not normally needed. - </para> - <example> - <title>clearCompiledTemplate()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear a specific template resource -$smarty->clearCompiledTemplate('index.tpl'); - -// clear entire compile directory -$smarty->clearCompiledTemplate(); -?> -]]> - </programlisting> - </example> - <para>See also - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.clear.config"> - <refnamediv> - <refname>clearConfig()</refname> - <refpurpose>clears assigned config variables</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clearConfig</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - This clears all assigned - <link linkend="language.config.variables">config variables</link>. - If a variable name is - supplied, only that variable is cleared. - </para> - <example> - <title>clearConfig()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear all assigned config variables. -$smarty->clearConfig(); - -// clear one variable -$smarty->clearConfig('foobar'); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link>, - <link linkend="language.config.variables"><varname>config variables</varname></link>, - <link linkend="config.files"><varname>config files</varname></link>, - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.config.load"><varname>configLoad()</varname></link> - and - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-compile-all-config.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> -<refentry id="api.compile.all.config"> - <refnamediv> - <refname>compileAllConfig()</refname> - <refpurpose>compiles all known config files</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>compileAllConfig</methodname> - <methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter>force</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>timelimit</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>maxerror</parameter></methodparam> - </methodsynopsis> - <para> - This function compiles config files found in the <link linkend="variable.config.dir"><varname>$config_dir</varname></link> folder. - It uses the following parameters: - <itemizedlist> - <listitem> - <para> - <parameter>extension</parameter> is an optional string which defines the file extention for the config files. - The default is ".conf". - </para> - </listitem> - <listitem> - <para> - <parameter>force</parameter> is an optional boolean which controls if only modified (false) or all (true) config files shall be compiled. - The default is "false". - </para> - </listitem> - <listitem> - <para> - <parameter>timelimit</parameter> is an optional integer to set a runtime limit in seconds for the compilation process. - The default is no limit. - </para> - </listitem> - <listitem> - <para> - <parameter>maxerror</parameter> is an optional integer to set an error limit. If more config files failed to compile the function - will be aborted. The default is no limit. - </para> - </listitem> - </itemizedlist> - </para> - <note><para> - This function may not create desired results in all configurations. Use is on own risk. - </para></note> - - <para> - <example> - <title>compileAllConfig()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// force compilation of all config files -$smarty->compileAllConfig('.config',true); - -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-compile-all-templates.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.compile.all.templates"> - <refnamediv> - <refname>compileAllTemplates()</refname> - <refpurpose>compiles all known templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>compileAllTemplates</methodname> - <methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter>force</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>timelimit</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>maxerror</parameter></methodparam> - </methodsynopsis> - <para> - This function compiles template files found in the <link linkend="variable.template.dir"><varname>$template_dir</varname></link> folder. - It uses the following parameters: - <itemizedlist> - <listitem> - <para> - <parameter>extension</parameter> is an optional string which defines the file extention for the template files. - The default is ".tpl". - </para> - </listitem> - <listitem> - <para> - <parameter>force</parameter> is an optional boolean which controls if only modified (false) or all (true) templates shall be compiled. - The default is "false". - </para> - </listitem> - <listitem> - <para> - <parameter>timelimit</parameter> is an optional integer to set a runtime limit in seconds for the compilation process. - The default is no limit. - </para> - </listitem> - <listitem> - <para> - <parameter>maxerror</parameter> is an optional integer to set an error limit. If more templates failed to compile the function - will be aborted. The default is no limit. - </para> - </listitem> - </itemizedlist> - </para> - <note><para> - This function may not create desired results in all configurations. Use is on own risk. - </para></note> - <note><para> - If any template requires registered plugins, filters or objects you must register all of them before running this function. - </para></note> - <note><para> - If you are using template inheritance this function will create compiled files of parent templates which will never be used. - </para></note> - - <para> - <example> - <title>compileAllTemplates()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// force compilation of all template files -$smarty->compileAllTemplates('.tpl',true); - -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.config.load"> - <refnamediv> - <refname>configLoad()</refname> - <refpurpose> loads config file data and assigns it to the template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>configLoad</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - This loads - <link linkend="config.files">config file</link> - data and assigns it to - the template. This works identically to the template - <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link> function. - </para> - <note> - <title>Technical Note</title> - <para> - As of Smarty 2.4.0, assigned template variables are kept across - invocations of - <link linkend="api.fetch"><varname>fetch()</varname></link> - and <link linkend="api.display"><varname>display()</varname></link>. - Config vars loaded from - <varname>configLoad()</varname> are always global in scope. - Config files are also compiled for faster execution, and respect the - <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> and - <link linkend="variable.compile.check"> - <parameter>$compile_check</parameter></link> settings. - </para> - </note> - <example> - <title>configLoad()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// load config variables and assign them -$smarty->configLoad('my.conf'); - -// load a section -$smarty->configLoad('my.conf', 'foobar'); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link>, - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>, - and - <link linkend="language.config.variables"><varname>config variables</varname></link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-create-data.xml
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.create.data"> - <refnamediv> - <refname>createData()</refname> - <refpurpose>creates a data object</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>createData</methodname> - <methodparam choice="opt"><type>object</type><parameter>parent</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>createData</methodname> - <void /> - </methodsynopsis> - <para> - This creates a data object which will hold assigned variables. - It uses the following parameters: - <itemizedlist> - <listitem> - <para> - <parameter>parent</parameter> is an optional parameter. It is an uplink to the main Smarty object, - a another user-created data object or to user-created template object. These objects can be chained. - Templates can access variables assigned to any of the objects in it's parent chain. - </para> - </listitem> - </itemizedlist> - </para> - <para> - Data objects are used to create scopes for assigned variables. They can be used to have - controll which variables are seen by which templates. - </para> - <para> - <example> - <title>createData()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// create data object with its private variable scope -$data = $smarty->createData(); - -// assign variable to data scope -$data->assign('foo','bar'); - -// create template object which will use variables from data object -$tpl = $smarty->createTemplate('index.tpl',$data); - -// display the template -$tpl->display(); -?> -]]> - </programlisting> - </example> - </para> - - <para> - See also - <link linkend="api.display"><varname>display()</varname></link>, - and - <link linkend="api.create.template"><varname>createTemplate()</varname></link>, - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-create-template.xml
Deleted
@@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4396 $ --> -<refentry id="api.create.template"> - <refnamediv> - <refname>createTemplate()</refname> - <refpurpose>returns a template object</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty_Internal_Template</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>object</type><parameter>parent</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>Smarty_Internal_Template</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>data</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>Smarty_Internal_Template</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>object</type><parameter>parent</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>Smarty_Internal_Template</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>data</parameter></methodparam> - </methodsynopsis> - <para> - This creates a template object which later can be rendered by the - <link linkend="api.display">display</link> or <link linkend="api.fetch">fetch</link> method. - It uses the following parameters: - <itemizedlist> - <listitem> - <para> - <parameter>template</parameter> must be a valid - <link linkend="resources">template resource</link> type and path. - </para> - </listitem> - ¶meter.cacheid; - ¶meter.compileid2; - ¶meter.parent; - ¶meter.data; - </itemizedlist> - </para> - - <para> - <example> - <title>createTemplate()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// create template object with its private variable scope -$tpl = $smarty->createTemplate('index.tpl'); - -// assign variable to template scope -$tpl->assign('foo','bar'); - -// display the template -$tpl->display(); -?> -]]> - </programlisting> - </example> - </para> - - <para> - See also - <link linkend="api.display"><varname>display()</varname></link>, - and - <link linkend="api.template.exists"><varname>templateExists()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-disable-security.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.disable.security"> - <refnamediv> - <refname>disableSecurity()</refname> - <refpurpose>disables template security</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>disableSecurity</methodname> - <void /> - </methodsynopsis> - <para> - This disables securty checking on templates. - </para> - - <para> - See also - <link linkend="api.enable.security"><varname>enableSecurity()</varname></link>, - and - <link linkend="advanced.features.security">Security</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-display.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4309 $ --> -<refentry id="api.display"> - <refnamediv> - <refname>display()</refname> - <refpurpose>displays the template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - This displays the contents of a template. To return the contents of a template into - a variable, use <link linkend="api.fetch"><varname>fetch()</varname></link>. - Supply a valid <link - linkend="resources">template resource</link> - type and path. As an optional second parameter, you can pass a - <parameter>$cache_id</parameter>, see the - <link linkend="caching">caching section</link> for more information. - </para> - ¶meter.compileid; - <example> - <title>display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include(SMARTY_DIR.'Smarty.class.php'); -$smarty = new Smarty(); -$smarty->setCaching(true); - -// only do db calls if cache doesn't exist -if(!$smarty->isCached('index.tpl')) { - - // dummy up some data - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name', 'Fred'); - $smarty->assign('Address', $address); - $smarty->assign('data', $db_data); - -} - -// display the output -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <example> - <title>Other display() template resource examples</title> - <para> - Use the syntax for <link - linkend="resources">template resources</link> to - display files outside of the - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> directory. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// absolute filepath -$smarty->display('/usr/local/include/templates/header.tpl'); - -// absolute filepath (same thing) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// windows absolute filepath (MUST use "file:" prefix) -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// include from template resource named "db" -$smarty->display('db:header.tpl'); -?> -]]> - </programlisting> - </example> - <para> - See also <link linkend="api.fetch"><varname>fetch()</varname></link> and - <link linkend="api.template.exists"><varname>templateExists()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-enable-security.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.enable.security"> - <refnamediv> - <refname>enableSecurity()</refname> - <refpurpose>enables template security</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>enableSecurity</methodname> - <methodparam choice="opt"><type>string</type><parameter>securityclass</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>enableSecurity</methodname> - <methodparam choice="opt"><type>object</type><parameter>securityobject</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>enableSecurity</methodname> - <void /> - </methodsynopsis> - <para> - This enables securty checking on templates. - It uses the following parameters: - <itemizedlist> - <listitem> - <para> - <parameter>securityclass</parameter> is an optional parameter. It's the name of the class with defines the security - policy parameters. - </para> - </listitem> - <listitem> - <para> - <parameter>securityobject</parameter> is an optional parameter. It's the object with defines the security - policy parameters. - </para> - </listitem> - </itemizedlist> - </para> - <para> - For the details how to setup a security policy see the <link linkend="advanced.features.security">Security</link> section. - </para> - - <para> - See also - <link linkend="api.disable.security"><varname>disableSecurity()</varname></link>, - and - <link linkend="advanced.features.security">Security</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4309 $ --> -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch()</refname> - <refpurpose>returns the template output</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - This returns the template output instead of - <link linkend="api.display">displaying</link> it. - Supply a valid <link - linkend="resources">template resource</link> - type and path. As an optional second parameter, you can pass a - <parameter>$cache id</parameter>, see the <link linkend="caching">caching - section</link> for more information. - </para> - ¶meter.compileid; - <para> - <example> - <title>fetch()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(true); - -// set a separate cache_id for each unique URL -$cache_id = md5($_SERVER['REQUEST_URI']); - -// capture the output -$output = $smarty->fetch('index.tpl', $cache_id); - -// do something with $output here -echo $output; -?> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>Using fetch() to send an email</title> - <para> - The <filename>email_body.tpl</filename> template - </para> - <programlisting> -<![CDATA[ -Dear {$contact_info.name}, - -Welcome and thank you for signing up as a member of our user group. - -Click on the link below to login with your user name -of '{$contact_info.username}' so you can post in our forums. - -{$login_url} - -List master - -{textformat wrap=40} -This is some long-winded disclaimer text that would automatically get wrapped -at 40 characters. This helps make the text easier to read in mail programs that -do not wrap sentences for you. -{/textformat} -]]> - </programlisting> - <para> - The php script using the PHP - <ulink url="&url.php-manual;function.mail"> - <varname>mail()</varname></ulink> function - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// get $contact_info from db or other resource here - -$smarty->assign('contact_info',$contact_info); -$smarty->assign('login_url',"http://{$_SERVER['SERVER_NAME']}/login"); - -mail($contact_info['email'], 'Thank You', $smarty->fetch('email_body.tpl')); - -?> -]]> - </programlisting> - </example> - </para> - - <para> - See also - <link linkend="language.function.fetch"><varname>{fetch}</varname></link> - <link linkend="api.display"><varname>display()</varname></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - and - <link linkend="api.template.exists"><varname>templateExists()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-cache-dir.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.cache.dir"> - <refnamediv> - <refname>getCacheDir()</refname> - <refpurpose>return the directory where the rendered template's output is stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>getCacheDir</methodname> - <void /> - </methodsynopsis> - <example> - <title>getCacheDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// get directory where compiled templates are stored -$cacheDir = $smarty->getCacheDir(); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.set.cache.dir"><varname>setCacheDir()</varname></link> and - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-compile-dir.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.compile.dir"> - <refnamediv> - <refname>getCompileDir()</refname> - <refpurpose>returns the directory where compiled templates are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>getCompileDir</methodname> - <void /> - </methodsynopsis> - <example> - <title>getCompileDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// get directory where compiled templates are stored -$compileDir = $smarty->getCompileDir(); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.set.compile.dir"><varname>setCompileDir()</varname></link> and - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-config-dir.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.config.dir"> - <refnamediv> - <refname>getConfigDir()</refname> - <refpurpose>return the directory where config files are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string|array</type><methodname>getConfigDir</methodname> - <methodparam choice="opt"><type>string</type><parameter>key</parameter></methodparam> - </methodsynopsis> - <example> - <title>getConfigDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set some config directories -$smarty->setConfigDir(array( - 'one' => './config', - 'two' => './config_2', - 'three' => './config_3', -)); - -// get all directories where config files are stored -$config_dir = $smarty->getConfigDir(); -var_dump($config_dir); // array - -// get directory identified by key -$config_dir = $smarty->getConfigDir('one'); -var_dump($config_dir); // string - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.set.config.dir"><varname>setConfigDir()</varname></link>, - <link linkend="api.add.config.dir"><varname>addConfigDir()</varname></link> and - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>getConfigVars()</refname> - <refpurpose>returns the given loaded config variable value</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>getConfigVars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - If no parameter is given, an array of all loaded - <link linkend="language.config.variables">config variables</link> - is returned. - </para> - <example> - <title>getConfigVars()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// get loaded config template var #foo# -$myVar = $smarty->getConfigVars('foo'); - -// get all loaded config template vars -$all_config_vars = $smarty->getConfigVars(); - -// take a look at them -print_r($all_config_vars); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>, - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.config.load"><varname>configLoad()</varname></link> - and - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-plugins-dir.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.plugins.dir"> - <refnamediv> - <refname>getPluginsDir()</refname> - <refpurpose>return the directory where plugins are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>getPluginsDir</methodname> - <void /> - </methodsynopsis> - <example> - <title>getPluginsDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set some plugins directories -$smarty->setPluginsDir(array( - './plugins', - './plugins_2', -)); - -// get all directories where plugins are stored -$config_dir = $smarty->getPluginsDir(); -var_dump($config_dir); // array - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.set.plugins.dir"><varname>setPluginsDir()</varname></link>, - <link linkend="api.add.plugins.dir"><varname>addPluginsDir()</varname></link> and - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>getRegisteredObject()</refname> - <refpurpose>returns a reference to a registered object</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>getRegisteredObject</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - This is useful - from within a custom function when you need direct access to a - <link linkend="api.register.object">registered object</link>. See the - <link linkend="advanced.features.objects">objects</link> page for more info. - </para> - <example> - <title>getRegisteredObject()</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, $smarty) -{ - if (isset($params['object'])) { - // get reference to registered object - $obj_ref = $smarty->getRegisteredObject($params['object']); - // use $obj_ref is now a reference to the object - } -} -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.object"><varname>registerObject()</varname></link>, - <link linkend="api.unregister.object"><varname>unregisterObject()</varname></link> - and - <link linkend="advanced.features.objects">objects page</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-tags.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.tags"> - <refnamediv> - <refname>getTags()</refname> - <refpurpose>return tags used by template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>getTags</methodname> - <methodparam><type>object</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - This function returns an array of tagname/attribute pairs for all tags used by the template. - It uses the following parameters: - <itemizedlist> - <listitem> - <para> - <parameter>template</parameter> is the template object. - </para> - </listitem> - </itemizedlist> - </para> - <note><para> - This function is experimental. - </para></note> - <para> - <example> - <title>getTags()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// create template object -$tpl = $smarty->createTemplate('index.tpl'); - -// get tags -$tags = $smarty->getTags($tpl); - -print_r($tags); - -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-template-dir.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.template.dir"> - <refnamediv> - <refname>getTemplateDir()</refname> - <refpurpose>return the directory where templates are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string|array</type><methodname>getTemplateDir</methodname> - <methodparam choice="opt"><type>string</type><parameter>key</parameter></methodparam> - </methodsynopsis> - <example> - <title>getTemplateDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set some template directories -$smarty->setTemplateDir(array( - 'one' => './templates', - 'two' => './templates_2', - 'three' => './templates_3', -)); - -// get all directories where templates are stored -$template_dir = $smarty->getTemplateDir(); -var_dump($template_dir); // array - -// get directory identified by key -$template_dir = $smarty->getTemplateDir('one'); -var_dump($template_dir); // string - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.set.template.dir"><varname>setTemplateDir()</varname></link>, - <link linkend="api.add.template.dir"><varname>addTemplateDir()</varname></link> and - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>getTemplateVars()</refname> - <refpurpose>returns assigned variable value(s)</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>getTemplateVars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - If no parameter - is given, an array of all <link linkend="api.assign">assigned</link> - variables are returned. - </para> - <example> - <title>getTemplateVars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// get assigned template var 'foo' -$myVar = $smarty->getTemplateVars('foo'); - -// get all assigned template vars -$all_tpl_vars = $smarty->getTemplateVars(); - -// take a look at them -print_r($all_tpl_vars); -?> -]]> - </programlisting> - </example> - <para> - See also <link linkend="api.assign"><varname>assign()</varname></link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link>, - <link linkend="api.append"><varname>append()</varname></link>, - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>, - <link linkend="api.clear.all.assign"><varname>clearAllAssign()</varname></link> - and - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link> - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,131 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3849 $ --> -<refentry id="api.is.cached"> - <refnamediv> - <refname>isCached()</refname> - <refpurpose>returns true if there is a valid cache for this template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>isCached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - - <itemizedlist> - <listitem><para> - This only works if <link linkend="variable.caching"> - <parameter>$caching</parameter></link> is set to one of <literal>Smarty::CACHING_LIFETIME_CURRENT</literal> or <literal>Smarty::CACHING_LIFETIME_SAVED</literal> to enable caching. See the - <link linkend="caching">caching section</link> for more info. - </para></listitem> - <listitem><para> - You can also pass a <parameter>$cache_id</parameter> as an optional second - parameter in case you want - <link linkend="caching.multiple.caches">multiple caches</link> - for the given template. - </para></listitem> - - <listitem><para> - You can supply a - <link linkend="variable.compile.id"><parameter>$compile id</parameter></link> - as an optional third parameter. If you omit that parameter the persistent - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> is used if its set. - </para></listitem> - - <listitem><para> - If you do not want to pass a <parameter>$cache_id</parameter> but want to - pass a <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> you have to pass - &null; as a <parameter>$cache_id</parameter>. - </para></listitem> - </itemizedlist> - - <note> - <title>Technical Note</title> - <para> - If <varname>isCached()</varname> returns &true; it actually loads the - cached output and stores it internally. Any subsequent call to - <link linkend="api.display"><varname>display()</varname></link> or - <link linkend="api.fetch"><varname>fetch()</varname></link> - will return this internally stored output and does not try to reload - the cache file. This prevents a race condition that may occur when a - second process clears the cache between the calls to - <varname>isCached()</varname> and to - <link linkend="api.display"><varname>display()</varname></link> - in the example above. This also means calls to - <link linkend="api.clear.cache"><varname>clearCache()</varname></link> - and other changes of the cache-settings may have no effect after - <varname>isCached()</varname> returned &true;. - </para> - </note> - - <example> - <title>isCached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -if(!$smarty->isCached('index.tpl')) { -// do database calls, assign vars here -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <example> - <title>isCached() with multiple-cache template</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -if(!$smarty->isCached('index.tpl', 'FrontPage')) { - // do database calls, assign vars here -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - </programlisting> - </example> - - - <para> - See also - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>, - <link linkend="api.clear.all.cache"><varname>clearAllCache()</varname></link>, - and - <link linkend="caching">caching section</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.load.filter"> - <refnamediv> - <refname>loadFilter()</refname> - <refpurpose>load a filter plugin</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>loadFilter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - The first argument specifies the type of the filter to load and can be one - of the following: <literal>pre</literal>, <literal>post</literal> or - <literal>output</literal>. - The second argument specifies the <parameter>name</parameter> of the - filter plugin. - </para> - <example> - <title>Loading filter plugins</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// load prefilter named 'trim' -$smarty->loadFilter('pre', 'trim'); - -// load another prefilter named 'datefooter' -$smarty->loadFilter('pre', 'datefooter'); - -// load output filter named 'compress' -$smarty->loadFilter('output', 'compress'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>, - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link> - and - <link linkend="advanced.features">advanced features</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-mute-expected-errors.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4309 $ --> -<refentry id="api.mute.expected.errors"> - <refnamediv> - <refname>Smarty::muteExpectedErrors()</refname> - <refpurpose>mutes expected warnings and notices deliberately generated by Smarty</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>muteExpectedErrors</methodname> - <void /> - </methodsynopsis> - <para> - muteExpectedErrors() registers a custom error handler using <ulink url="&url.php-manual;set_error_handler">set_error_handler()</ulink>. - The error handler merely inspects <literal>$errno</literal> and <literal>$errfile</literal> to determine if the given error - was produced deliberately and must be ignored, or should be passed on to the next error handler. - </para> - <para> - <literal>Smarty::unmuteExpectedErrors()</literal> removes the current error handler. Please note, that if you've registerd any custom error handlers - after the muteExpectedErrors() call, the unmute will not remove Smarty's muting error handler, but the one registered last. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-cacheresource.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3832 $ --> -<refentry id="api.register.cacheresource"> - <refnamediv> - <refname>registerCacheResource()</refname> - <refpurpose>dynamically register CacheResources</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerCacheResource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>Smarty_CacheResource</type><parameter>resource_handler</parameter></methodparam> - </methodsynopsis> - <para> - Use this to dynamically register a - <link linkend="caching.custom">CacheResource plugin</link> - with Smarty. - Pass in the <parameter>name</parameter> of the CacheResource and the object extending Smarty_CacheResource. See - <link linkend="caching.custom">Custom Cache Implementation</link> - for more information on how to create custom CacheResources. - </para> - <note> - <para> - In Smarty2 this used to be a callback function called <literal>$cache_handler_func</literal>. - Smarty3 replaced this callback by the <literal>Smarty_CacheResource</literal> module. - </para> - </note> - - <example> - <title>registerCacheResource()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->registerCacheResource('mysql', new Smarty_CacheResource_Mysql()); -?> -]]> - </programlisting> - </example> - -<para> - See also - <link linkend="api.unregister.cacheresource"><varname>unregisterCacheResource()</varname></link> - and the - <link linkend="caching.custom">Custom CacheResource Implementation</link> section. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-class.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.register.class"> - <refnamediv> - <refname>registerClass()</refname> - <refpurpose>register a class for use in the templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerClass</methodname> - <methodparam><type>string</type><parameter>class_name</parameter></methodparam> - <methodparam><type>string</type><parameter>class_impl</parameter></methodparam> - </methodsynopsis> - - <para> - Smarty allows you to access static classes from templates as long as the - <link linkend="advanced.features.security">Security Policy</link> does not - tell it otherwise. If security is enabled, classes registered with - <varname>registerClass()</varname> are accessible to templates. - </para> - - <example> - <title>Register class for use within a template</title> - <programlisting> -<![CDATA[ -<?php - -class Bar { - $property = "hello world"; -} - -$smarty = new Smarty(); -$smarty->registerClass("Foo", "Bar"); -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* Smarty will access this class as long as it's not prohibited by security *} -{Bar::$property} -{* Foo translates to the real class Bar *} -{Foo::$property} -]]> - </programlisting> - </example> - - <example> - <title>Register namespaced class for use within a template</title> - <programlisting> -<![CDATA[ -<?php -namespace my\php\application { - class Bar { - $property = "hello world"; - } -} - -$smarty = new Smarty(); -$smarty->registerClass("Foo", "\my\php\application\Bar"); -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* Foo translates to the real class \my\php\application\Bar *} -{Foo::$property} -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.object"><varname>registerObject()</varname></link>, - and - <link linkend="advanced.features.security">Security</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-default-plugin-handler.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4063 $ --> -<refentry id="api.register.default.plugin.handler"> - <refnamediv> - <refname>registerDefaultPluginHandler()</refname> - <refpurpose>register a function which gets called on undefined tags</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerDefaultPluginHandler</methodname> - <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> - </methodsynopsis> - <para> - Register a default plugin handler which gets called if the compiler can not find a definition for a tag otherwise. - It uses the following parameters: - <itemizedlist> - ¶meter.callback; - </itemizedlist> - </para> - <para> - If during compilation Smarty encounters tag which is not defined internal, registered or loacted in the plugins folder it tries - to resolve it by calling the registered default plugin handler. The handler may be called several times for same undefined tag - looping over valid plugin types. - </para> - - <example> - <title>Default Plugin Handler Example</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty(); -$smarty->registerDefaultPluginHandler('my_plugin_handler'); - -/** - * Default Plugin Handler - * - * called when Smarty encounters an undefined tag during compilation - * - * @param string $name name of the undefined tag - * @param string $type tag type (e.g. Smarty::PLUGIN_FUNCTION, Smarty::PLUGIN_BLOCK, - Smarty::PLUGIN_COMPILER, Smarty::PLUGIN_MODIFIER, Smarty::PLUGIN_MODIFIERCOMPILER) - * @param Smarty_Internal_Template $template template object - * @param string &$callback returned function name - * @param string &$script optional returned script filepath if function is external - * @param bool &$cacheable true by default, set to false if plugin is not cachable (Smarty >= 3.1.8) - * @return bool true if successfull - */ -function my_plugin_handler ($name, $type, $template, &$callback, &$script, &$cacheable) -{ - switch ($type) { - case Smarty::PLUGIN_FUNCTION: - switch ($name) { - case 'scriptfunction': - $script = './scripts/script_function_tag.php'; - $callback = 'default_script_function_tag'; - return true; - case 'localfunction': - $callback = 'default_local_function_tag'; - return true; - default: - return false; - } - case Smarty::PLUGIN_COMPILER: - switch ($name) { - case 'scriptcompilerfunction': - $script = './scripts/script_compiler_function_tag.php'; - $callback = 'default_script_compiler_function_tag'; - return true; - default: - return false; - } - case Smarty::PLUGIN_BLOCK: - switch ($name) { - case 'scriptblock': - $script = './scripts/script_block_tag.php'; - $callback = 'default_script_block_tag'; - return true; - default: - return false; - } - default: - return false; - } - } - -?> -]]> - </programlisting> - </example> - <note> - <para> - The return callback must be static; a function name or an array of class and method name. - </para> - <para> - Dynamic callbacks like objects methods are not supported. - </para> - </note> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-filter.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.register.filter"> - <refnamediv> - <refname>registerFilter()</refname> - <refpurpose>dynamically register filters</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerFilter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> - </methodsynopsis> - <para> - Use this to dynamically register filters to operate on - a templates. - It uses the following parameters: - <itemizedlist> - ¶meter.filtertype; - ¶meter.callback; - </itemizedlist> - </para> - ¬e.parameter.function; - - <para> - A <link linkend="plugins.prefilters.postfilters">prefilter</link> runs through the template source before it gets compiled. See <link - linkend="advanced.features.prefilters">template prefilters</link> for - more information on how to setup a prefiltering function. - </para> - - <para> - A <link linkend="plugins.prefilters.postfilters">postfilter</link> runs through the template code after it was compiled to PHP. See <link - linkend="advanced.features.postfilters">template postfilters</link> for - more information on how to setup a postfiltering function. - </para> - - <para> - A <link linkend="plugins.outputfilters">outputfilter</link> operates on - a template's output before it is - <link linkend="api.display">displayed</link>. See - <link linkend="advanced.features.outputfilters">template output - filters</link> - for more information on how to set up an output filter function. - </para> - - <para> -See also -<link linkend="api.unregister.filter"><varname>unregisterFilter()</varname></link>, -<link linkend="api.load.filter"><varname>loadFilter()</varname></link>, -<link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>, - <link linkend="advanced.features.prefilters">template pre filters</link> - <link linkend="advanced.features.postfilters">template post filters</link> - <link linkend="advanced.features.outputfilters">template output filters</link> - section. -</para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.register.object"> - <refnamediv> - <refname>registerObject()</refname> - <refpurpose>register an object for use in the templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerObject</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter> - </methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - - <note><para> - When you register/assign objects to templates, be sure that all properties and methods accessed from the template are for presentation purposes only. It is very easy to inject application logic through objects, and this leads to poor designs that are difficult to manage. See the Best Practices section of the Smarty website. - </para></note> - - <para> - See the - <link linkend="advanced.features.objects">objects section</link> - for more information. - </para> - <para> - See also - <link linkend="api.get.registered.object"><varname>getRegisteredObject()</varname></link>, - and - <link linkend="api.unregister.object"><varname>unregisterObject()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-plugin.xml
Deleted
@@ -1,154 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<refentry id="api.register.plugin"> - <refnamediv> - <refname>registerPlugin()</refname> - <refpurpose>dynamically register plugins</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerPlugin</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter> - </methodparam> - </methodsynopsis> - <para> - This method registers functions or methods defined in your script as plugin. - It uses the following parameters: - <itemizedlist> - ¶meter.plugintype; - ¶meter.pluginname; - ¶meter.callback; - <listitem> - <para> - <parameter>cacheable</parameter> and <parameter>cache_attrs</parameter> can be - omitted in most cases. See <link - linkend="caching.cacheable">controlling cacheability of plugins output</link> - on how to use them properly. - </para> - </listitem> - </itemizedlist> - </para> - - <example> - <title>register a function plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->registerPlugin("function","date_now", "print_current_date"); - -function print_current_date($params, $smarty) -{ - if(empty($params["format"])) { - $format = "%b %e, %Y"; - } else { - $format = $params["format"]; - } - return strftime($format,time()); -} -?> -]]> - </programlisting> - <para> - And in the template - </para> -<programlisting> -<![CDATA[ -{date_now} - -{* or to format differently *} -{date_now format="%Y/%m/%d"} -]]> -</programlisting> -</example> - - <example> - <title>register block function plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -// function declaration -function do_translation ($params, $content, $smarty, &$repeat, $template) -{ - if (isset($content)) { - $lang = $params["lang"]; - // do some translation with $content - return $translation; - } -} - -// register with smarty -$smarty->registerPlugin("block","translate", "do_translation"); -?> -]]> - </programlisting> - <para> - Where the template is: - </para> - <programlisting> -<![CDATA[ -{translate lang="br"}Hello, world!{/translate} -]]> - </programlisting> - </example> - - <example> - <title>register modifier plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// let's map PHP's stripslashes function to a Smarty modifier. -$smarty->registerPlugin("modifier","ss", "stripslashes"); - -?> -]]> -</programlisting> - <para>In the template, use <literal>ss</literal> to strip slashes.</para> - <programlisting> -<![CDATA[ -<?php -{$var|ss} -?> -]]> -</programlisting> - - </example> - -<para> -See also -<link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link>, -<link linkend="plugins.functions">plugin functions</link>, -<link linkend="plugins.block.functions">plugin block functions</link>, -<link linkend="plugins.compiler.functions">plugin compiler functions</link>, - and the - <link linkend="plugins.modifiers">creating plugin modifiers</link> section. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>registerResource()</refname> - <refpurpose>dynamically register resources</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>registerResource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>Smarty_resource</type><parameter>resource_handler</parameter></methodparam> - </methodsynopsis> - <para> - Use this to dynamically register a - <link linkend="resources">Resource plugin</link> - with Smarty. - Pass in the <parameter>name</parameter> of the Resource and the object extending Smarty_Resource. See - <link linkend="resources">template resources</link> - for more information on how to setup a function for fetching templates. - <note> - <title>Technical Note</title> - <para> - A resource name must be at least two characters in length. One - character resource names will be ignored and used as part of the file - path, such as <literal>$smarty->display('c:/path/to/index.tpl');</literal> - </para> - </note> - </para> - - <note> - <para> - Prior to Smarty 3.1 <varname>registerResource()</varname> accepted an array of callback functions. - While this is still possible for backward compatibility reasons, it is strongly discouraged as callback - functions have been deprecated as of Smarty 3.1. - </para> - </note> - - <example> - <title>registerResource()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->registerResource('mysql', new Smarty_Resource_Mysql()); -?> -]]> - </programlisting> - </example> - -<para> - See also - <link linkend="api.unregister.resource"><varname>unregisterResource()</varname></link> - and the - <link linkend="resources">template resources</link> section. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-set-cache-dir.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.set.cache.dir"> - <refnamediv> - <refname>setCacheDir()</refname> - <refpurpose>set the directory where the rendered template's output is stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>setCacheDir</methodname> - <methodparam><type>string</type><parameter>cache_dir</parameter></methodparam> - </methodsynopsis> - <example> - <title>setCacheDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set directory where rendered template's output is stored -$smarty->setCacheDir('./cache'); - -// chaining of method calls -$smarty->setTemplateDir('./templates') - ->setCompileDir('./templates_c') - ->setCacheDir('./cache'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.cache.dir"><varname>getCacheDir()</varname></link> and - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-set-compile-dir.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.set.compile.dir"> - <refnamediv> - <refname>setCompileDir()</refname> - <refpurpose>set the directory where compiled templates are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>setCompileDir</methodname> - <methodparam><type>string</type><parameter>compile_dir</parameter></methodparam> - </methodsynopsis> - <example> - <title>setCompileDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set directory where compiled templates are stored -$smarty->setCompileDir('./templates_c'); - -// chaining of method calls -$smarty->setTemplateDir('./templates') - ->setCompileDir('./templates_c') - ->setCacheDir('./cache'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.compile.dir"><varname>getCompileDir()</varname></link> and - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-set-config-dir.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.set.config.dir"> - <refnamediv> - <refname>setConfigDir()</refname> - <refpurpose>set the directories where config files are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>setConfigDir</methodname> - <methodparam><type>string|array</type><parameter>config_dir</parameter></methodparam> - </methodsynopsis> - <example> - <title>setConfigDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set a single directory where the config files are stored -$smarty->setConfigDir('./config'); - -// view the config dir chain -var_dump($smarty->getConfigDir()); - -// set multiple directoríes where config files are stored -$smarty->setConfigDir(array( - 'one' => './config', - 'two' => './config_2', - 'three' => './config_3', -)); - -// view the config dir chain -var_dump($smarty->getConfigDir()); - -// chaining of method calls -$smarty->setTemplateDir('./templates') - ->setConfigDir('./config') - ->setCompileDir('./templates_c') - ->setCacheDir('./cache'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.config.dir"><varname>getConfigDir()</varname></link>, - <link linkend="api.add.config.dir"><varname>addConfigDir()</varname></link> and - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-set-plugins-dir.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.set.plugins.dir"> - <refnamediv> - <refname>setPluginsDir()</refname> - <refpurpose>set the directories where plugins are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>setPluginsDir</methodname> - <methodparam><type>string|array</type><parameter>plugins_dir</parameter></methodparam> - </methodsynopsis> - <example> - <title>setPluginsDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set a single directory where the plugins are stored -$smarty->setPluginsDir('./plugins'); - -// view the plugins dir chain -var_dump($smarty->getPluginsDir()); - -// set multiple directoríes where plugins are stored -$smarty->setPluginsDir(array( - './plugins', - './plugins_2', -)); - -// view the plugins dir chain -var_dump($smarty->getPluginsDir()); - -// chaining of method calls -$smarty->setTemplateDir('./templates') - ->setPluginsDir('./plugins') - ->setCompileDir('./templates_c') - ->setCacheDir('./cache'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.plugins.dir"><varname>getPluginsDir()</varname></link>, - <link linkend="api.add.plugins.dir"><varname>addPluginsDir()</varname></link> and - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-set-template-dir.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.set.template.dir"> - <refnamediv> - <refname>setTemplateDir()</refname> - <refpurpose>set the directories where templates are stored</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>Smarty</type><methodname>setTemplateDir</methodname> - <methodparam><type>string|array</type><parameter>template_dir</parameter></methodparam> - </methodsynopsis> - <example> - <title>setTemplateDir()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// set a single directory where the templates are stored -$smarty->setTemplateDir('./cache'); - -// view the template dir chain -var_dump($smarty->getTemplateDir()); - -// set multiple directoríes where templates are stored -$smarty->setTemplateDir(array( - 'one' => './templates', - 'two' => './templates_2', - 'three' => './templates_3', -)); - -// view the template dir chain -var_dump($smarty->getTemplateDir()); - -// chaining of method calls -$smarty->setTemplateDir('./templates') - ->setCompileDir('./templates_c') - ->setCacheDir('./cache'); - -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.get.template.dir"><varname>getTemplateDir()</varname></link>, - <link linkend="api.add.template.dir"><varname>addTemplateDir()</varname></link> and - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.template.exists"> - <refnamediv> - <refname>templateExists()</refname> - <refpurpose>checks whether the specified template exists</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>templateExists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - It can accept either a path to the template on the filesystem or a - resource string specifying the template. - </para> - - <example> - <title>templateExists()</title> - <para> - This example uses <literal>$_GET['page']</literal> to - <link linkend="language.function.include"><varname>{include}</varname></link> - a content template. If the template does not exist then an error page - is displayed instead. First the <filename>page_container.tpl</filename> - </para> - <programlisting role="php"> -<![CDATA[ -<html> -<head><title>{$title}</title></head> -<body> -{include file='page_top.tpl'} - -{* include middle content page *} -{include file=$content_template} - -{include file='page_footer.tpl'} -</body> -]]> - </programlisting> - <para> - And the php script - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// set the filename eg index.inc.tpl -$mid_template = $_GET['page'].'.inc.tpl'; - -if( !$smarty->templateExists($mid_template) ){ - $mid_template = 'page_not_found.tpl'; -} -$smarty->assign('content_template', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="api.display"><varname>display()</varname></link>, - <link linkend="api.fetch"><varname>fetch()</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link> - and - <link linkend="language.function.insert"><varname>{insert}</varname></link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-test-install.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<refentry id="api.test.install"> - <refnamediv> - <refname>testInstall()</refname> - <refpurpose>checks Smarty installation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>testInstall</methodname> - <void /> - </methodsynopsis> - <para> - This function verifies that all required working folders of the Smarty installation can be accessed. - It does output a corresponding protocoll. - </para> - <example> - <title>testInstall()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require_once('Smarty.class.php'); -$smarty = new Smarty(); -$smarty->testInstall(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-unregister-cacheresource.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.unregister.cacheresource"> - <refnamediv> - <refname>unregisterCacheResource()</refname> - <refpurpose>dynamically unregister a CacheResource plugin</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregisterCacheResource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Pass in the <parameter>name</parameter> of the CacheResource. - </para> - <example> - <title>unregisterCacheResource()</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->unregisterCacheResource('mysql'); - -?> -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="api.register.cacheresource"> - <varname>registerCacheResource()</varname></link> - and the - <link linkend="caching.custom">Custom CacheResource Implementation</link> section. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-unregister-filter.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<refentry id="api.unregister.filter"> - <refnamediv> - <refname>unregisterFilter()</refname> - <refpurpose>dynamically unregister a filter</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregisterFilter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string|array</type><parameter>callback</parameter></methodparam> - </methodsynopsis> - <para> - Use this to dynamically unregister filters. - It uses the following parameters: - <itemizedlist> - ¶meter.filtertype; - ¶meter.callback; - </itemizedlist> - </para> - - <para> - See also - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregisterObject()</refname> - <refpurpose>dynamically unregister an object</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregisterObject</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - - <para> - See also - <link linkend="api.register.object"><varname>registerObject()</varname></link> - and - <link linkend="advanced.features.objects">objects section</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-unregister-plugin.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<refentry id="api.unregister.plugin"> - <refnamediv> - <refname>unregisterPlugin</refname> - <refpurpose>dynamically unregister plugins</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregisterPlugin</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - This method unregisters plugins which previously have been registered by <link linkend="api.register.plugin">registerPlugin()</link>, - - It uses the following parameters: - <itemizedlist> - ¶meter.plugintype; - ¶meter.pluginname; - </itemizedlist> - </para> - - <example> - <title>unregister function plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// we don't want template designers to have access to function plugin "date_now" -$smarty->unregisterPlugin("function","date_now"); - -?> -]]> - </programlisting> - </example> - - <para> - See also <link linkend="api.register.plugin"> - <varname>registerPlugin()</varname></link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregisterResource()</refname> - <refpurpose>dynamically unregister a resource plugin</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregisterResource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Pass in the <parameter>name</parameter> of the resource. - </para> - <example> - <title>unregisterResource()</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->unregisterResource('db'); - -?> -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="api.register.resource"> - <varname>registerResource()</varname></link> - and - <link linkend="resources">template resources</link> -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables.xml
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <chapter id="api.variables"> - <title>Smarty Class Variables</title> - - <para> - These are all of the available Smarty class variables. You can access them directly, - or use the corresponding setter/getter methods. - </para> - -<note><para> - All class variables have magic setter/getter methods available. setter/getter methods - are camelCaseFormat, unlike the variable itself. So for example, you can set and get the - $smarty->template_dir variable - with $smarty->setTemplateDir($dir) and $dir = $smarty->getTemplateDir() respectively. -</para></note> - <note><para> - See <link linkend="advanced.features.template.settings"><varname>Changing settings by template</varname></link> section - for how to change Smarty class variables for individual templates. - </para></note> - -&programmers.api-variables.variable-allow-php-templates; -&programmers.api-variables.variable-auto-literal; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-id; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-locking; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-caching-type; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-compile-locking; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-debug-template; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-default-config-type; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; -&programmers.api-variables.variable-default-config-handler-func; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-direct-access-security; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-escape-html; -&programmers.api-variables.variable-force-cache; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-locking-timeout; -&programmers.api-variables.variable-merge-compiled-includes; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-smarty-debug-id; -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-use-include-path; -&programmers.api-variables.variable-use-sub-dirs; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-allow-php-templates.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.allow.php.templates"> - <title>$allow_php_templates</title> - <para> - By default the PHP template file resource is disabled. - Setting <varname>$allow_php_templates</varname> to &true; will enable PHP template files. - </para> - <para> - - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->allow_php_templates = true; -?> -]]> - </programlisting> - </informalexample> - </para> - <note> - <para> - The PHP template file resource is an undocumented deprecated feature. - </para> - </note> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-auto-literal.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.auto.literal"> - <title>$auto_literal</title> - <para> - The Smarty delimiter tags { and } will be ignored so long as they are surrounded by white space. - This behavior can be disabled by setting auto_literal to false. - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->auto_literal = false; -?> -]]> - </programlisting> - </informalexample> - </para> - - <para> - See also - <link linkend="language.escaping">Escaping Smarty Parsing</link>, - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - If there are some filters that you wish to load on every template - invocation, you can specify them using this variable and Smarty will - automatically load them for you. The variable is an associative array - where keys are filter types and values are arrays of the filter - names. For example: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - </programlisting> - </informalexample> - </para> - - <para> - See also - <link linkend="api.register.filter"><varname>registerFilter()</varname></link> - and - <link linkend="api.load.filter"><varname>loadFilter()</varname></link> - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - This is the name of the directory where template caches are - stored. By default this is - <filename class="directory">./cache</filename>, meaning that - Smarty will look for the <filename class="directory">cache/</filename> directory - in the same directory as the executing php script. - <emphasis role="bold">This directory must - be writeable by the web server</emphasis>, - <link linkend="installing.smarty.basic">see install</link> for more info. - </para> - <para> - You can also use your own <link linkend="caching.custom">custom cache implementation</link> - to control cache files, which will ignore this setting. - See also - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>. - </para> - <note> - <title>Technical Note</title> - <para> - This setting must be either a relative or - absolute path. include_path is not used for writing files. - </para> - </note> - <note> - <title>Technical Note</title> - <para> - It is not recommended to put this directory under - the web server document root. - </para> - </note> - <note> - <title>Note</title> - <para> - As of Smarty 3.1 the attribute $cache_dir is no longer accessible directly. Use - <link linkend="api.get.cache.dir"><varname>getCacheDir()</varname></link> and - <link linkend="api.set.cache.dir"><varname>setCacheDir()</varname></link> instead. - </para> - </note> - <para> - See also - <link linkend="api.get.cache.dir"><varname>getCacheDir()</varname></link>, - <link linkend="api.set.cache.dir"><varname>setCacheDir()</varname></link>, - <link linkend="variable.caching"><parameter>$caching</parameter></link>, - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>, - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>, - <link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link> - and the - <link linkend="caching">caching section</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-cache-id.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="variable.cache.id"> - <title>$cache_id</title> - <para> - Persistent cache_id identifier. As an alternative to passing the same - <parameter>$cache_id</parameter> to each and every function call, you can set this - <parameter>$cache_id</parameter> and it will be used implicitly thereafter. - </para> - <para> - With a <parameter>$cache_id</parameter> you can have multiple cache files for a single call to - <link linkend="api.display"><varname>display()</varname></link> - or <link linkend="api.fetch"><varname>fetch()</varname></link> depending for example from different content - of the same template. See the - <link linkend="caching">caching section</link> for more information. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3840 $ --> - <sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - This is the length of time in seconds that a template cache is valid. - Once this time has expired, the cache will be regenerated. - </para> - - <itemizedlist> - <listitem><para> - <parameter>$caching</parameter> must be turned on (either Smarty::CACHING_LIFETIME_CURRENT or Smarty::CACHING_LIFETIME_SAVED) for - <parameter>$cache_lifetime</parameter> to have any purpose. - </para></listitem> - - <listitem><para> - A <parameter>$cache_lifetime</parameter> value of -1 will force the cache to never expire. - </para></listitem> - - <listitem><para>A value of 0 will cause - the cache to always regenerate (good for testing only, to disable caching - a more efficient method is to set <link - linkend="variable.caching"><parameter>$caching</parameter></link> = Smarty::CACHING_OFF). - </para></listitem> - - <listitem><para> If you want to give certain templates their own cache lifetime, - you could - do this by setting <link linkend="variable.caching"> - <parameter>$caching</parameter></link> = Smarty::CACHING_LIFETIME_SAVED, - then set <parameter>$cache_lifetime</parameter> to a unique value just - before calling <link linkend="api.display"><varname>display()</varname> - </link> or <link linkend="api.fetch"><varname>fetch()</varname></link>. - </para></listitem> - </itemizedlist> - - <para> - If <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> is - enabled, the cache files will be regenerated every time, effectively - disabling caching. You can clear all the cache files with the <link - linkend="api.clear.all.cache"><varname>clear_all_cache()</varname></link> - function, or individual cache files (or groups) with the <link - linkend="api.clear.cache"><varname>clear_cache()</varname></link> function. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-cache-locking.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.cache.locking"> - <title>$cache_locking</title> - <para> - Cache locking avoids concurrent cache generation. This means resource intensive pages can be generated only once, - even if they've been requested multiple times in the same moment. - </para> - <para> - Cache locking is disabled by default. To enable it set <varname>$cache_locking</varname> to &true;. - </para> - <para> - See also - <link linkend="variable.locking.timeout"><varname>$locking_timeout</varname></link> - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="variable.cache.modified.check"> -<title>$cache_modified_check</title> -<para> - If set to &true;, Smarty will respect the If-Modified-Since - header sent from the client. If the cached file timestamp has - not changed since the last visit, then a <literal>'304: Not Modified'</literal> - header will be sent instead of the content. This works only on - cached content without - <link linkend="language.function.insert"><varname>{insert}</varname></link> - tags. -</para> - - <para> - See also - <link linkend="variable.caching"><parameter>$caching</parameter></link>, - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>, - and the - <link linkend="caching">caching section</link>. - </para> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-caching-type.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="variable.caching.type"> - <title>$caching_type</title> - <para> - This property specifies the name of the caching handler to use. - It defaults to <literal>file</literal>, enabling the internal filesystem based cache handler. - </para> - <para> - See <link linkend="caching.custom">Custom Cache Implementation</link> - for pointers on setting up your own cache handler. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.caching"> - <title>$caching</title> - <para> - This tells Smarty whether or not to cache the output of the templates - to the <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link>. - By default this is set to the constant Smarty::CACHING_OFF. If your templates consistently generate - the same content, it is advisable to turn on - <parameter>$caching</parameter>, as this may result in significant - performance gains. - </para> - - <para> - You can also have - <link linkend="caching.multiple.caches">multiple</link> - caches for the same template. - </para> - - <itemizedlist> - <listitem><para> - A constant value of Smarty::CACHING_LIFETIME_CURRENT or Smarty::CACHING_LIFETIME_SAVED enables caching. - </para></listitem> - - <listitem><para> - A value of Smarty::CACHING_LIFETIME_CURRENT tells Smarty to use the current - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - variable to determine if the cache has expired. - </para></listitem> - <listitem><para>A value of Smarty::CACHING_LIFETIME_SAVED tells Smarty to use the - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - value at the time the cache was generated. This way you can set the - <link linkend="variable.cache.lifetime"> <parameter>$cache_lifetime</parameter></link> - just before <link linkend="api.fetch">fetching</link> - the template to have granular control over when that particular cache expires. - See also <link linkend="api.is.cached"><varname>isCached()</varname></link>. - </para></listitem> - - <listitem><para> - If <link linkend="variable.compile.check"><parameter>$compile_check</parameter></link> - is enabled, the cached content will be regenerated if - any of the templates or config files that are part of this cache are - changed. - </para></listitem> - <listitem><para> - If <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> is enabled, the cached - content will always be regenerated. - </para></listitem> -</itemizedlist> -<para> - See also - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>, - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>, - <link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link>, - <link linkend="api.is.cached"><varname>is_cached()</varname></link> -and the -<link linkend="caching">caching section</link>. -</para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - Upon each invocation of the PHP application, Smarty tests to see if the - current template has changed (different timestamp) since the last time - it was compiled. If it has changed, it recompiles that template. If the - template has yet not been compiled at all, it will compile regardless of this - setting. By default this variable is set to &true;. - </para> - <para>Once an application is - put into production (ie the templates won't be changing), - the compile check step is no longer needed. Be sure to set - <parameter>$compile_check</parameter> to &false; for - maximum performance. Note that if you change this to &false; and a - template file is changed, you will *not* see the change since the - template will not get recompiled. - </para> - <para> - If <link linkend="variable.caching"><parameter>$caching</parameter></link> - is enabled and <parameter>$compile_check</parameter> is enabled, then - the cache files will get regenerated if an involved template file or - config file was updated. - </para> - <para> - As of Smarty 3.1 <parameter>$compile_check</parameter> can be set to the value - <literal>Smarty::COMPILECHECK_CACHEMISS</literal>. This enables Smarty to - revalidate the compiled template, once a cache file is regenerated. So if there was - a cached template, but it's expired, Smarty will run a single compile_check before - regenerating the cache. - </para> - <para> - See <link linkend="variable.force.compile"> <parameter>$force_compile</parameter></link> and - <link linkend="api.clear.compiled.tpl"><varname>clearCompiledTemplate()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - This is the name of the directory where compiled templates are - located. By default this is - <filename class="directory">./templates_c</filename>, meaning that Smarty - will look for the <filename class="directory">templates_c/</filename> - directory in the same directory as - the executing php script. <emphasis role="bold">This directory must - be writeable by the web server</emphasis>, - <link linkend="installing.smarty.basic">see install</link> for more info. - </para> - - <note> - <title>Technical Note</title> - <para> - This setting must be either a relative or - absolute path. include_path is not used for writing files. - </para> - </note> - <note> - <title>Technical Note</title> - <para> - It is not recommended to put this directory under - the web server document root. - </para> - </note> - <note> - <title>Note</title> - <para> - As of Smarty 3.1 the attribute $compile_dir is no longer accessible directly. Use - <link linkend="api.get.compile.dir"><varname>getCompileDir()</varname></link> and - <link linkend="api.set.compile.dir"><varname>setCompileDir()</varname></link> instead. - </para> - </note> - <para> - See also - <link linkend="api.get.compile.dir"><varname>getCompileDir()</varname></link>, - <link linkend="api.set.compile.dir"><varname>setCompileDir()</varname></link>, - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - and - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Persistant compile identifier. As an alternative to passing the same - <parameter>$compile_id</parameter> to each and every function call, you can set this - <parameter>$compile_id</parameter> and it will be used implicitly thereafter. - </para> - <para> - With a <parameter>$compile_id</parameter> you can work around the limitation - that you cannot use the same - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link> - for different <link linkend="variable.template.dir"> - <parameter>$template_dirs</parameter></link>. If you set a distinct - <parameter>$compile_id</parameter> for each - <link linkend="variable.template.dir"><parameter>$template_dir</parameter> - </link> then Smarty can tell the compiled templates apart by their - <parameter>$compile_id</parameter>. - </para> - <para> - If you have for example a - <link linkend="plugins.prefilters.postfilters">prefilter</link> - that localizes your templates - (that is: translates language dependend parts) at compile time, then - you could use the current language as <parameter>$compile_id</parameter> and - you will get a set of compiled templates for each language you use. - </para> - <para> - Another application would be to use the same compile directory across - multiple domains / multiple virtual hosts. - </para> - <example> - <title>$compile_id in a virtual host environment</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-compile-locking.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.compile.locking"> - <title>$compile_locking</title> - <para> - Compile locking avoids concurrent compilation of the same template. - </para> - <para> - Compile locking is enabled by default. To disable it set <varname>$compile_locking</varname> to &false;. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Specifies the name of the compiler class that Smarty will use - to compile the templates. The default is 'Smarty_Compiler'. For - advanced users only. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - If set to &true;, <link linkend="config.files">config files</link> - values of <literal>on/true/yes</literal> - and <literal>off/false/no</literal> get - converted to boolean values automatically. This way you can use the - values in the template like so: - <literal>{if #foobar#}...{/if}</literal>. If foobar was - <literal>on</literal>, <literal>true</literal> or <literal>yes</literal>, - the <varname>{if}</varname> statement will execute. - Defaults to &true;. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - This is the directory used to store - <link linkend="config.files">config files</link> - used in the - templates. Default is - <filename class="directory">./configs</filename>, meaning that - Smarty will look for the <filename class="directory">configs/</filename> - directory in the same directory as the executing php script. - </para> - <note> - <title>Technical Note</title> - <para> - It is not recommended to put this directory under - the web server document root. - </para> - </note> - <note> - <title>Note</title> - <para> - As of Smarty 3.1 the attribute $config_dir is no longer accessible directly. Use - <link linkend="api.get.config.dir"><varname>getConfigDir()</varname></link>, - <link linkend="api.set.config.dir"><varname>setConfigDir()</varname></link> and - <link linkend="api.add.config.dir"><varname>addConfigDir()</varname></link> instead. - </para> - </note> - <para> - See also - <link linkend="api.get.config.dir"><varname>getConfigDir()</varname></link>, - <link linkend="api.set.config.dir"><varname>setConfigDir()</varname></link> and - <link linkend="api.add.config.dir"><varname>addConfigDir()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - If set to &true;, the default then variables read in from - <link linkend="config.files">config files</link> will overwrite each - other. Otherwise, the variables will be pushed onto an array. This is - helpful if you want to store arrays of data in config files, just list - each element multiple times. - </para> - - <example> - <title>Array of config #variables#</title> - <para> - This examples uses - <link linkend="language.function.cycle"><varname>{cycle}</varname></link> - to output a table with alternating red/green/blue row colors - with <parameter>$config_overwrite</parameter> = &false;. - </para> - <para>The config file.</para> - <programlisting> -<![CDATA[ -# row colors -rowColors = #FF0000 -rowColors = #00FF00 -rowColors = #0000FF -]]> - </programlisting> - <para> - The template with a <link linkend="language.function.section"> - <varname>{section}</varname></link> loop. - </para> - <programlisting> -<![CDATA[ -<table> - {section name=r loop=$rows} - <tr bgcolor="{cycle values=#rowColors#}"> - <td> ....etc.... </td> - </tr> - {/section} -</table> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link>, - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>, - <link linkend="api.config.load"><varname>configLoad()</varname></link> - and the <link linkend="config.files">config files section</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4020 $ --> - <sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - If set to &true;, hidden sections ie section names beginning with a period(.) - in <link linkend="config.files">config files</link> - can be read from templates. Typically you would leave - this &false;, that way you can store sensitive data in the config files - such as database parameters and not worry about the template loading - them. &false; by default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-debug-template.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.debug_template"> - <title>$debug_tpl</title> - <para> - This is the name of the template file used for the debugging console. By - default, it is named <filename>debug.tpl</filename> and is - located in the <link - linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>. - </para> - <para> - See also - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> - and the - <link linkend="chapter.debugging.console">debugging console</link> section. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - This allows alternate ways to enable debugging. <literal>NONE</literal> - means no alternate methods are allowed. <literal>URL</literal> - means when the keyword <literal>SMARTY_DEBUG</literal> is found in the - <literal>QUERY_STRING</literal>, debugging is enabled for that - invocation of the script. If <link linkend="variable.debugging"> - <parameter>$debugging</parameter></link> is &true;, this value is ignored. - </para> - <example> - <title>$debugging_ctrl on localhost</title> - -<programlisting role="php"> -<![CDATA[ -<?php -// shows debug console only on localhost ie -// http://localhost/script.php?foo=bar&SMARTY_DEBUG -$smarty->debugging = false; // the default -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> -</programlisting> - </example> - - <para> - See also <link linkend="chapter.debugging.console">debugging console</link> - section, - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> and - <link linkend="variable.smarty.debug.id"><parameter>$smarty_debug_id</parameter></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - This enables the <link - linkend="chapter.debugging.console">debugging console</link>. - The console is a javascript popup window that informs you of the - <link linkend="language.function.include">included</link> - templates, variables <link linkend="api.assign">assigned</link> - from php and - <link linkend="language.config.variables">config file variables</link> - for the current script. It does not show variables - assigned within a template with the - <link linkend="language.function.assign"><varname>{assign}</varname> - </link> function. - </para> - <para>The console can also be enabled from the url with - <link linkend="variable.debugging.ctrl"> - <parameter>$debugging_ctrl</parameter></link>. - </para> - <para> - See also - <link linkend="language.function.debug"><varname>{debug}</varname></link>, - <link linkend="variable.debug_template"><parameter>$debug_tpl</parameter></link>, - and <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-default-config-handler-func.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4185 $ --> -<sect1 id="variable.default.config.handler.func"> - <title>$default_config_handler_func</title> - <para> - This function is called when a config file cannot be obtained from - its resource. - </para> - <note> - <para> - The default handler is currently only invoked for file resources. - It is not triggered when the resource itself cannot be found, in which case a SmartyException is thrown. - </para> - </note> - <example> - <title>$default_config_handler_func</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty(); -$smarty->default_config_handler_func = 'my_default_config_handler_func'; - -/** - * Default Config Handler - * - * called when Smarty's file: resource is unable to load a requested file - * - * @param string $type resource type (e.g. "file", "string", "eval", "resource") - * @param string $name resource name (e.g. "foo/bar.tpl") - * @param string &$content config's content - * @param integer &$modified config's modification time - * @param Smarty $smarty Smarty instance - * @return string|boolean path to file or boolean true if $content and $modified - * have been filled, boolean false if no default config - * could be loaded - */ -function my_default_config_handler_func($type, $name, &$content, &$modified, Smarty $smarty) { - if (false) { - // return corrected filepath - return "/tmp/some/foobar.tpl"; - } elseif (false) { - // return a config directly - $content = 'someVar = "the config source"'; - $modified = time(); - return true; - } else { - // tell smarty that we failed - return false; - } -} - -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-default-config-type.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4201 $ --> - <sect1 id="variable.default.config.type"> - <title>$default_config_type</title> - <para> - This tells smarty what resource type to use for config files. The default value - is <literal>file</literal>, meaning that - <literal>$smarty->configLoad('test.conf')</literal> and - <literal>$smarty->configLoad('file:test.conf')</literal> are identical in - meaning. See the <link linkend="resources">resource</link> - chapter for more details. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3945 $ --> - <sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - This is an array of modifiers to implicitly apply to every variable in a - template. For example, to HTML-escape every variable by default, use - <literal>array('escape:"htmlall"')</literal>. - To make a variable exempt from default - modifiers, add the 'nofilter' attribute to the output tag such as - <literal>{$var nofilter}</literal>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - This tells smarty what resource type to use implicitly. The default value - is <literal>file</literal>, meaning that - <literal>$smarty->display('index.tpl')</literal> and - <literal>$smarty->display('file:index.tpl')</literal> are identical in - meaning. See the <link linkend="resources">resource</link> - chapter for more details. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> -<sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - This function is called when a template cannot be obtained from - its resource. - </para> - <note> - <para> - The default handler is currently only invoked for file resources. - It is not triggered when the resource itself cannot be found, in which case a SmartyException is thrown. - </para> - </note> - <example> - <title>$default_template_handler_func</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty(); -$smarty->default_template_handler_func = 'my_default_template_handler_func'; - -/** - * Default Template Handler - * - * called when Smarty's file: resource is unable to load a requested file - * - * @param string $type resource type (e.g. "file", "string", "eval", "resource") - * @param string $name resource name (e.g. "foo/bar.tpl") - * @param string &$content template's content - * @param integer &$modified template's modification time - * @param Smarty $smarty Smarty instance - * @return string|boolean path to file or boolean true if $content and $modified - * have been filled, boolean false if no default template - * could be loaded - */ -function my_default_template_handler_func($type, $name, &$content, &$modified, Smarty $smarty) { - if (false) { - // return corrected filepath - return "/tmp/some/foobar.tpl"; - } elseif (false) { - // return a template directly - $content = "the template source"; - $modified = time(); - return true; - } else { - // tell smarty that we failed - return false; - } -} - -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-direct-access-security.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.direct.access.security"> - <title>$direct_access_security</title> - <para> - Direct access security inhibits direct browser access to compiled or cached template files. - </para> - <para> - Direct access security is enabled by default. To disable it set <varname>$direct_access_security</varname> to &false;. - </para> - <note> - <para> - This is a compile time option. If you change the setting you must make - sure that the templates get recompiled. - </para> - </note> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4317 $ --> -<sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - When this value is set to a non-null-value it's value is used as php's - <ulink url="&url.php-manual;error_reporting"><varname>error_reporting</varname></ulink> - level inside of <link linkend="api.display"><varname>display()</varname></link> - and <link linkend="api.fetch"><varname>fetch()</varname></link>. - </para> - <para> - Smarty 3.1.2 introduced the <link linkend="api.mute.expected.errors"><varname>muteExpectedErrors()</varname></link> function. - Calling <literal>Smarty::muteExpectedErrors();</literal> after setting up custom error handling will ensure that - warnings and notices (deliberately) produced by Smarty will not be passed to other custom error handlers. If your error logs - are filling up with warnings regarding <literal>filemtime()</literal> or <literal>unlink()</literal> calls, please enable - Smarty's error muting. - </para> - <para> - See also - <link linkend="chapter.debugging.console">debugging</link> - and - <link linkend="troubleshooting">troubleshooting</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-escape-html.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4238 $ --> -<sect1 id="variable.escape.html"> - <title>$escape_html</title> - <para> - Setting <varname>$escape_html</varname> to &true; will escape all template - variable output by wrapping it in - <literal>htmlspecialchars({$output}, ENT_QUOTES, SMARTY_RESOURCE_CHAR_SET);</literal>, - which is the same as <literal>{$variable|escape:"html"}</literal>. - </para> - <para> - Template designers can choose to selectively disable this feature by adding the <literal>nofilter</literal> flag: <literal>{$variable nofilter}</literal>. - </para> - <para> - Modifiers and Filters are run in the following order: - modifier, - default_modifier, - $escape_html, - registered variable filters, - autoloaded variable filters, - template instance's variable filters. Everything except the individual modifier can be disabled with the <literal>nofilter</literal> flag. - </para> - <note> - <para> - This is a compile time option. If you change the setting you must make - sure that the templates get recompiled. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-force-cache.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.force.cache"> - <title>$force_cache</title> - <para> - This forces Smarty to (re)cache templates on every invocation. It does not override the - <link linkend="variable.caching"><parameter>$caching</parameter></link> level, but merely - pretends the template has never been cached before. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - This forces Smarty to (re)compile templates on every - invocation. This setting overrides - <link linkend="variable.compile.check"> - <parameter>$compile_check</parameter></link>. - By default - this is &false;. This is handy for development and - <link linkend="chapter.debugging.console">debugging</link>. - It should never be used in a production environment. If - <link linkend="variable.caching"><parameter>$caching</parameter></link> - is enabled, the cache file(s) will be regenerated every time. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - This is the left delimiter used by the template language. - Default is <literal>{</literal>. - </para> - <para> - See also <link linkend="variable.right.delimiter"><parameter>$right_delimiter</parameter></link> - and - <link linkend="language.escaping">escaping smarty parsing</link> - . - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-locking-timeout.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3840 $ --> - <sect1 id="variable.locking.timeout"> - <title>$locking_timeout</title> - <para> - This is maximum time in seconds a cache lock is valid to avoid dead locks. The deafult value is 10 seconds. - </para> - <para> - See also - <link linkend="variable.cache.locking"><varname>$cache_locking</varname></link> - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-merge-compiled-includes.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.merge.compiled.includes"> - <title>$merge_compiled_includes</title> - <para> - By setting <varname>$merge_compiled_includes</varname> to &true; Smarty will merge the compiled template - code of subtemplates into the compiled code of the main template. This increases rendering speed of templates - using a many different sub-templates. - </para> - <para> - Individual sub-templates can be merged by setting the <literal>inline</literal> option flag within - the <varname>{include}</varname> tag. <varname>$merge_compiled_includes</varname> does not have to - be enabled for the <literal>inline</literal> merge. - </para> - <para> - - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->merge_compiled_includes = true; -?> -]]> - </programlisting> - </informalexample> - </para> - <note> - <para> - This is a compile time option. If you change the setting you must make - sure that the templates get recompiled. - </para> - </note> - - <para> - See also - <link linkend="language.function.include"> <varname>{include}</varname></link> tag - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - This tells Smarty how to handle PHP code embedded in the - templates. There are four possible settings, the default being - <constant>Smarty::PHP_PASSTHRU</constant>. Note that this does NOT affect - php code within <link linkend="language.function.php"> - <varname>{php}{/php}</varname></link> tags in the template. - </para> - - - <itemizedlist> - <listitem><para> - <constant>Smarty::PHP_PASSTHRU</constant> - Smarty echos tags as-is. - </para></listitem> - - <listitem><para> - <constant>Smarty::PHP_QUOTE</constant> - Smarty quotes the tags as - html entities. - </para></listitem> - - <listitem><para> - <constant>Smarty::PHP_REMOVE</constant> - Smarty removes the tags from - the templates.</para></listitem> - - <listitem><para> - <constant>Smarty::PHP_ALLOW</constant> - Smarty will execute the tags - as PHP code.</para></listitem> - </itemizedlist> - - <note> - <para> - Embedding PHP code into templates is highly discouraged. - Use <link linkend="plugins.functions">custom functions</link> or - <link linkend="plugins.modifiers">modifiers</link> instead. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - This is the directory or directories where Smarty will look for the - plugins that it needs. Default is - <filename class="directory">plugins/</filename> under the - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>. - If you supply a relative path, Smarty will first look under the - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>, then - relative to the current working directory, then relative to the PHP - include_path. If <parameter>$plugins_dir</parameter> - is an array of directories, Smarty will - search for your plugin in each plugin directory - <emphasis role="bold">in the order they are given</emphasis>. - </para> - <note> - <title>Technical Note</title> - <para> - For best performance, do not setup your <parameter>$plugins_dir</parameter> - to have to use the PHP include path. Use an absolute pathname, - or a path relative to <constant>SMARTY_DIR</constant> or the current - working directory. - </para> - </note> - <note> - <title>Note</title> - <para> - As of Smarty 3.1 the attribute $plugins_dir is no longer accessible directly. Use - <link linkend="api.get.plugins.dir"><varname>getPluginsDir()</varname></link>, - <link linkend="api.set.plugins.dir"><varname>setPluginsDir()</varname></link> and - <link linkend="api.add.plugins.dir"><varname>addPluginsDir()</varname></link> instead. - </para> - </note> - <para> - See also - <link linkend="api.get.plugins.dir"><varname>getPluginsDir()</varname></link>, - <link linkend="api.set.plugins.dir"><varname>setPluginsDir()</varname></link> and - <link linkend="api.add.plugins.dir"><varname>addPluginsDir()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - This is the right delimiter used by the template language. - Default is <literal>}</literal>. - </para> - <para> - See also <link linkend="variable.left.delimiter"><parameter>$left_delimiter</parameter></link> - and - <link linkend="language.escaping">escaping smarty parsing</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-smarty-debug-id.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.smarty.debug.id"> - <title>$smarty_debug_id</title> - <para> - The value of <varname>$smarty_debug_id</varname> defines the URL keyword to enable debugging at browser level. - The default value is <literal>SMARTY_DEBUG</literal>. - </para> - - <para> - See also <link linkend="chapter.debugging.console">debugging console</link> - section, - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> and - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - This is the name of the default template directory. If you do - not supply a resource type when including files, they will be - found here. By default this is - <filename class="directory">./templates</filename>, - meaning that Smarty - will look for the - <filename class="directory">templates/</filename> directory in - the same directory as the executing php script. <property>$template_dir</property> - can also be an array of directory paths: Smarty will traverse the - directories and stop on the first matching template found. - </para> - <note> - <title>Technical Note</title> - <para> - It is not recommended to put this directory under - the web server document root. - </para> - </note> - <note> - <title>Technical Note</title> - <para> - If the directories known to <parameter>$template_dir</parameter> - are relative to directories known to the - <ulink url="&url.php-manual;ini.core.php#ini.include-path">include_path</ulink> - you need to activate the - <link linkend="variable.use.include.path"><parameter>$use_include_path</parameter></link> - option. - </para> - </note> - <note> - <title>Note</title> - <para> - As of Smarty 3.1 the attribute $template_dir is no longer accessible directly. Use - <link linkend="api.get.template.dir"><varname>getTemplateDir()</varname></link>, - <link linkend="api.set.template.dir"><varname>setTemplateDir()</varname></link> and - <link linkend="api.add.template.dir"><varname>addTemplateDir()</varname></link> instead. - </para> - </note> - <para> - See also - <link linkend="resources"><varname>Template Resources</varname></link>, - <link linkend="variable.use.include.path"><parameter>$use_include_path</parameter></link>, - <link linkend="api.get.template.dir"><varname>getTemplateDir()</varname></link>, - <link linkend="api.set.template.dir"><varname>setTemplateDir()</varname></link> and - <link linkend="api.add.template.dir"><varname>addTemplateDir()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - <parameter>$trusted_dir</parameter> is only for use when - security is enabled. - This is an array of all directories that are considered trusted. - Trusted directories are where you keep php scripts that are executed - directly from the templates - with <link linkend="language.function.include.php"><varname>{include_php}</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-use-include-path.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="variable.use.include.path"> - <title>$use_include_path</title> - <para> - This tells smarty to respect the <ulink url="&url.php-manual;ini.core.php#ini.include-path">include_path</ulink> - within the <link linkend="resources.file"><varname>File Template Resource</varname></link> handler and the plugin loader - to resolve the directories known to <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - The flag also makes the plugin loader check the include_path for - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link>. - </para> - <note> - <title>Note</title> - <para> - You should not design your applications to rely on the include_path, as this - may - depending on your implementation - slow down your system (and Smarty) considerably. - </para> - </note> - <para> - If use_include_path is enabled, file discovery for - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> and - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link> - work as follows. - </para> - <itemizedlist> - <listitem> - <para> - For each element <literal>$directory</literal> in array ($template_dir or $plugins_dir) do - </para> - </listitem> - <listitem> - <para> - Test if requested file is in <literal>$directory</literal> relative to the <ulink url="&url.php-manual;function.getcwd.php">current working directory</ulink>. If file found, return it. - </para> - </listitem> - <listitem> - <para> - For each <literal>$path</literal> in include_path do - </para> - </listitem> - <listitem> - <para> - Test if requested file is in <literal>$directory</literal> relative to the <literal>$path</literal> (possibly relative to the <ulink url="&url.php-manual;function.getcwd.php">current working directory</ulink>). If file found, return it. - </para> - </listitem> - <listitem> - <para> - Try default_handler or fail. - </para> - </listitem> - </itemizedlist> - <para> - This means that whenever a directory/file relative to the current working directory is encountered, it is preferred over anything potentially accessible through the include_path. - </para> - <note> - <title>Note</title> - <para> - Smarty does not filter elements of the include_path. - That means a ".:" within your include path will trigger the current working directory lookup twice. - </para> - </note> - <para> - See also - <link linkend="resources"><varname>Template Resources</varname></link> and - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> -Smarty will create subdirectories under the -<link linkend="variable.compile.dir">compiled templates</link> and -<link linkend="variable.cache.dir">cache</link> -directories if <parameter>$use_sub_dirs</parameter> is set to &true;, - default is &false;. -In an environment where there are potentially tens of thousands of files created, -this may help the filesystem speed. -On the other hand, some environments do not allow PHP processes to -create directories, so this must be disabled which is the default. -</para> -<para> -Sub directories are more efficient, so use them if you can. -Theoretically you get much better perfomance on a filesystem with 10 -directories each having 100 files, than with 1 directory having 1000 -files. This was certainly the case with Solaris 7 (UFS)... with newer -filesystems such as ext3 and especially reiserfs, the difference is almost -nothing. -</para> - -<note> -<title>Technical Note</title> -<itemizedlist> -<listitem> - <para><literal>$use_sub_dirs=true</literal> doesn't work with - <ulink url="&url.php-manual;features.safe-mode">safe_mode=On</ulink>, - that's why it's switchable and why it's off by default. - </para> -</listitem> -<listitem> - <para><literal>$use_sub_dirs=true</literal> on Windows can cause problems.</para> -</listitem> -<listitem> - <para>Safe_mode is being deprecated in PHP6.</para> -</listitem> -</itemizedlist> -</note> - - <para> - See also - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>, - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>, - and - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/bc.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="bc"> -<title>SmartyBC - Backwards Compatibility Wrapper</title> - -<sect1 id="bc.class"> - <title>SmartyBC class</title> - <para> - TODO: SmartyBC - - allows: {php} and {include_php} - </para> - - <example> - <title>Using SmartyBC</title> - <programlisting role="php"> -<![CDATA[ -<?php -// instead of -require_once('path/to/smarty/libs/Smarty.class.php'); -$smarty = new Smarty(); - -// use -require_once('path/to/smarty/libs/SmartyBC.class.php'); -$smarty = new SmartyBC(); -?> -]]> - </programlisting> - </example> -</sect1> - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <chapter id="caching"> - <title>Caching</title> - <para> - Caching is used to speed up a call to <link - linkend="api.display"><varname>display()</varname></link> or <link - linkend="api.fetch"><varname>fetch()</varname></link> by saving its output - to a file. If a - cached version of the call is available, that is displayed instead of - regenerating the output. Caching can speed things up tremendously, - especially templates with longer computation times. Since the output of - <link linkend="api.display"><varname>display()</varname></link> or - <link linkend="api.fetch"><varname>fetch()</varname></link> is cached, - one cache file could conceivably be made up - of several template files, config files, etc. - </para> - <para> - Since templates are dynamic, it is important to be careful what you are - caching and for how long. For instance, if you are displaying the front page - of your website that does not change its content very often, it might work - well to cache this page for an hour or more. On the other hand, if you are - displaying a page with a timetable containing new information by the - minute, it would not make sense to cache this page. - </para> -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; -&programmers.caching.caching-cacheable; -&programmers.caching.caching-custom; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,235 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3842 $ --> - <sect1 id="caching.cacheable"> - <title>Controlling Cacheability of Output</title> - <para> - If caching is enabled normally the whole final output of the page gets cached. However Smarty3 offers - several options how to exclude sections of your output from caching. - </para> - <note> - <title>General Note</title> - <para> - Be sure any variables used within a non-cached section are - also assigned from PHP when the page is loaded from the cache. - </para> - </note> - <sect2 id="cacheability.sections"> - <title>Cacheability of Template Section</title> - <para> - A larger section of your template can easily excluded from caching by using the <link linkend="language.function.nocache"><varname>{nocache}</varname></link> - and <link linkend="language.function.nocache"><varname>{/nocache}</varname></link> tags. - </para> - <example> - <title>Preventing a template section from being cached</title> - <programlisting> -<![CDATA[ - -Today's date is -{nocache} -{$smarty.now|date_format} -{/nocache} -]]> - </programlisting> - <para> - The above code will output the current date on a cached page. - </para> - </example> - </sect2> - <sect2 id="cacheability.tags"> - <title>Cacheability of Tags</title> - <para> - Caching for an individual tag can be disabled by adding the "nocache" option flag to the tag. - </para> - <example> - <title>Preventing tag output from being cached</title> - <programlisting> -<![CDATA[ -Today's date is -{$smarty.now|date_format nocache} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="cacheability.variables"> - <title>Cacheability of Variables</title> - <para> - You can <link linkend="api.assign"><varname>assign()</varname></link> variables as not cachable. - Any tag which uses such variable will be automatically executed in nocache mode. - </para> - <note> - <title>Note</title> - <para> - If a tag is executed in nocache mode you must make sure that all other variables used by that tag are - also assigned from PHP when the page is loaded from the cache. - </para> - </note> - <note> - <title>Note</title> - <para> - The nocache status of an assigned variable will effect the compiled template code. If you change the status you must manually - delete existing compiled and cached template files to force a recompile. - </para> - </note> - <example> - <title>Nocache Variables</title> - <programlisting> -<![CDATA[ -// assign $foo as nocahe variable -$smarty->assign('foo',time(),true); -]]> -<![CDATA[ -Dynamic time value is {$foo} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="cacheability.plugins"> - <title>Cacheability of Plugins</title> - <para> - The cacheability of plugins can be - declared when registering them. The third parameter to - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> - is called <parameter>$cacheable</parameter> and defaults to &true;. - </para> - <para> - When registering a plugin with <literal>$cacheable=false</literal> the plugin - is called everytime the page is displayed, even if the page comes - from the cache. The plugin function behaves a little like an - <link linkend="plugins.inserts"><varname>{insert}</varname></link> function. - </para> - <note> - <title>Note</title> - <para> - The <parameter>$cacheable</parameter> status will effect the compiled template code. If you change the status you must manually - delete existing compiled and cached template files to force a recompile. - </para> - </note> - <para> - In contrast to <link linkend="plugins.inserts"><varname>{insert}</varname> - </link> - the attributes to the plugins are not cached by default. They can be - declared to be cached with the fourth parameter - <parameter>$cache_attrs</parameter>. <parameter>$cache_attrs</parameter> - is an array of attribute-names that should be cached, so the - plugin-function get value as it was the time the page was written - to cache everytime it is fetched from the cache. - </para> - - <example> - <title>Preventing a plugin's output from being cached</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -function remaining_seconds($params, $smarty) { - $remain = $params['endtime'] - time(); - if($remain >= 0){ - return $remain . ' second(s)'; - }else{ - return 'done'; - } -} - -$smarty->registerPlugin('function','remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->isCached('index.tpl')) { - // fetch $obj from db and assign... - $smarty->assignByRef('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - where <filename>index.tpl</filename> is: - </para> - <programlisting> -<![CDATA[ -Time Remaining: {remaining endtime=$obj->endtime} -]]> - </programlisting> - <para> - The number of seconds till the endtime of <literal>$obj</literal> is reached - changes on each display of the page, even if the page is cached. Since the - endtime attribute is cached the object only has to be pulled from the - database when page is written to the cache but not on subsequent requests - of the page. - </para> - </example> - - <example> - <title>Preventing a whole passage of a template from being cached</title> - <programlisting role="php"> -<![CDATA[ -index.php: - -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -function smarty_block_dynamic($param, $content, $smarty) { - return $content; -} -$smarty->registerPlugin('block','dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - where <filename>index.tpl</filename> is: - </para> - <programlisting> -<![CDATA[ -Page created: {'0'|date_format:'%D %H:%M:%S'} - -{dynamic} - -Now is: {'0'|date_format:'%D %H:%M:%S'} - -... do other stuff ... - -{/dynamic} -]]> - </programlisting> - </example> - - <para> - When reloading the page you will notice that both dates differ. One - is <quote>dynamic</quote> one is <quote>static</quote>. You can do everything - between <literal>{dynamic}...{/dynamic}</literal> and be sure it will not - be cached like the rest of the page. - </para> - <note> - <title>Note</title> - <para> - The above example shall just demonstrate how a dynamic block plugins works. - See <link linkend="cacheability.sections"><parameter>Cacheability of Template Section</parameter></link> on how to disable - caching of a template section by the built-in <link linkend="language.function.nocache"><varname>{nocache}</varname></link> - and <link linkend="language.function.nocache"><varname>{/nocache}</varname></link> tags. - </para> - </note> - </sect2> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching/caching-custom.xml
Deleted
@@ -1,330 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3842 $ --> -<sect1 id="caching.custom"> - <title>Custom Cache Implementation</title> - <para> - As an alternative to using the default file-based caching mechanism, you can specify a custom cache implementation - that will be used to read, write and clear cached files. - </para> - - <note><para> - In Smarty2 this used to be a callback function called <literal>$cache_handler_func</literal>. - Smarty3 replaced this callback by the <literal>Smarty_CacheResource</literal> module. - </para></note> - - <para> - With a custom cache implementation you're likely trying to achieve at least one of the following goals: - replace the slow filesystem by a faster storage engine, - centralize the cache to be accessible to multiple servers. - </para> - - <para> - Smarty allows CacheResource implementations to use one of the APIs <literal>Smarty_CacheResource_Custom</literal> - or <literal>Smarty_CacheResource_KeyValueStore</literal>. <literal>Smarty_CacheResource_Custom</literal> is - a simple API directing all read, write, clear calls to your implementation. This API allows you to store wherever - and however you deem fit. The <literal>Smarty_CacheResource_KeyValueStore</literal> API allows you to turn any - "dumb" KeyValue-Store (like APC, Memcache, …) into a full-featured CacheResource implementation. That is, everything - around deep cache-groups like "a|b|c" is being handled for you in way that allows clearing the cache-group "a" and - all nested groups are cleared as well - even though KeyValue-Stores don't allow this kind of hierarchy by nature. - </para> - - <para> - Custom CacheResources may be put in a file <literal>cacheresource.foobarxyz.php</literal> within your - <link linkend="variable.plugins.dir"><varname>$plugins_dir</varname></link>, or registered on runtime - with <link linkend="api.register.cacheresource"><varname>registerCacheResource()</varname></link>. - In either case you need to set <link linkend="variable.caching.type"><varname>$caching_type</varname></link> - to invoke your custom CacheResource implementation. - </para> - - <example> - <title>Smarty_CacheResource_Mysql</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require_once 'libs/Smarty.class.php'; -$smarty = new Smarty(); -$smarty->caching_type = 'mysql'; - -/** - * MySQL CacheResource - * - * CacheResource Implementation based on the Custom API to use - * MySQL as the storage resource for Smarty's output caching. - * - * Table definition: - * <pre>CREATE TABLE IF NOT EXISTS `output_cache` ( - * `id` CHAR(40) NOT NULL COMMENT 'sha1 hash', - * `name` VARCHAR(250) NOT NULL, - * `cache_id` VARCHAR(250) NULL DEFAULT NULL, - * `compile_id` VARCHAR(250) NULL DEFAULT NULL, - * `modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - * `content` LONGTEXT NOT NULL, - * PRIMARY KEY (`id`), - * INDEX(`name`), - * INDEX(`cache_id`), - * INDEX(`compile_id`), - * INDEX(`modified`) - * ) ENGINE = InnoDB;</pre> - * - * @package CacheResource-examples - * @author Rodney Rehm - */ -class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom { - // PDO instance - protected $db; - protected $fetch; - protected $fetchTimestamp; - protected $save; - - public function __construct() { - try { - $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty", "smarty"); - } catch (PDOException $e) { - throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); - } - $this->fetch = $this->db->prepare('SELECT modified, content FROM output_cache WHERE id = :id'); - $this->fetchTimestamp = $this->db->prepare('SELECT modified FROM output_cache WHERE id = :id'); - $this->save = $this->db->prepare('REPLACE INTO output_cache (id, name, cache_id, compile_id, content) - VALUES (:id, :name, :cache_id, :compile_id, :content)'); - } - - /** - * fetch cached content and its modification time from data source - * - * @param string $id unique cache content identifier - * @param string $name template name - * @param string $cache_id cache id - * @param string $compile_id compile id - * @param string $content cached content - * @param integer $mtime cache modification timestamp (epoch) - * @return void - */ - protected function fetch($id, $name, $cache_id, $compile_id, &$content, &$mtime) - { - $this->fetch->execute(array('id' => $id)); - $row = $this->fetch->fetch(); - $this->fetch->closeCursor(); - if ($row) { - $content = $row['content']; - $mtime = strtotime($row['modified']); - } else { - $content = null; - $mtime = null; - } - } - - /** - * Fetch cached content's modification timestamp from data source - * - * @note implementing this method is optional. Only implement it if modification times can be accessed faster than loading the complete cached content. - * @param string $id unique cache content identifier - * @param string $name template name - * @param string $cache_id cache id - * @param string $compile_id compile id - * @return integer|boolean timestamp (epoch) the template was modified, or false if not found - */ - protected function fetchTimestamp($id, $name, $cache_id, $compile_id) - { - $this->fetchTimestamp->execute(array('id' => $id)); - $mtime = strtotime($this->fetchTimestamp->fetchColumn()); - $this->fetchTimestamp->closeCursor(); - return $mtime; - } - - /** - * Save content to cache - * - * @param string $id unique cache content identifier - * @param string $name template name - * @param string $cache_id cache id - * @param string $compile_id compile id - * @param integer|null $exp_time seconds till expiration time in seconds or null - * @param string $content content to cache - * @return boolean success - */ - protected function save($id, $name, $cache_id, $compile_id, $exp_time, $content) - { - $this->save->execute(array( - 'id' => $id, - 'name' => $name, - 'cache_id' => $cache_id, - 'compile_id' => $compile_id, - 'content' => $content, - )); - return !!$this->save->rowCount(); - } - - /** - * Delete content from cache - * - * @param string $name template name - * @param string $cache_id cache id - * @param string $compile_id compile id - * @param integer|null $exp_time seconds till expiration or null - * @return integer number of deleted caches - */ - protected function delete($name, $cache_id, $compile_id, $exp_time) - { - // delete the whole cache - if ($name === null && $cache_id === null && $compile_id === null && $exp_time === null) { - // returning the number of deleted caches would require a second query to count them - $query = $this->db->query('TRUNCATE TABLE output_cache'); - return -1; - } - // build the filter - $where = array(); - // equal test name - if ($name !== null) { - $where[] = 'name = ' . $this->db->quote($name); - } - // equal test compile_id - if ($compile_id !== null) { - $where[] = 'compile_id = ' . $this->db->quote($compile_id); - } - // range test expiration time - if ($exp_time !== null) { - $where[] = 'modified < DATE_SUB(NOW(), INTERVAL ' . intval($exp_time) . ' SECOND)'; - } - // equal test cache_id and match sub-groups - if ($cache_id !== null) { - $where[] = '(cache_id = '. $this->db->quote($cache_id) - . ' OR cache_id LIKE '. $this->db->quote($cache_id .'|%') .')'; - } - // run delete query - $query = $this->db->query('DELETE FROM output_cache WHERE ' . join(' AND ', $where)); - return $query->rowCount(); - } -} -]]> - </programlisting> - - </example> - - <example> - <title>Smarty_CacheResource_Memcache</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require_once 'libs/Smarty.class.php'; -$smarty = new Smarty(); -$smarty->caching_type = 'memcache'; - -/** - * Memcache CacheResource - * - * CacheResource Implementation based on the KeyValueStore API to use - * memcache as the storage resource for Smarty's output caching. - * - * Note that memcache has a limitation of 256 characters per cache-key. - * To avoid complications all cache-keys are translated to a sha1 hash. - * - * @package CacheResource-examples - * @author Rodney Rehm - */ -class Smarty_CacheResource_Memcache extends Smarty_CacheResource_KeyValueStore { - /** - * memcache instance - * @var Memcache - */ - protected $memcache = null; - - public function __construct() - { - $this->memcache = new Memcache(); - $this->memcache->addServer( '127.0.0.1', 11211 ); - } - - /** - * Read values for a set of keys from cache - * - * @param array $keys list of keys to fetch - * @return array list of values with the given keys used as indexes - * @return boolean true on success, false on failure - */ - protected function read(array $keys) - { - $_keys = $lookup = array(); - foreach ($keys as $k) { - $_k = sha1($k); - $_keys[] = $_k; - $lookup[$_k] = $k; - } - $_res = array(); - $res = $this->memcache->get($_keys); - foreach ($res as $k => $v) { - $_res[$lookup[$k]] = $v; - } - return $_res; - } - - /** - * Save values for a set of keys to cache - * - * @param array $keys list of values to save - * @param int $expire expiration time - * @return boolean true on success, false on failure - */ - protected function write(array $keys, $expire=null) - { - foreach ($keys as $k => $v) { - $k = sha1($k); - $this->memcache->set($k, $v, 0, $expire); - } - return true; - } - - /** - * Remove values from cache - * - * @param array $keys list of keys to delete - * @return boolean true on success, false on failure - */ - protected function delete(array $keys) - { - foreach ($keys as $k) { - $k = sha1($k); - $this->memcache->delete($k); - } - return true; - } - - /** - * Remove *all* values from cache - * - * @return boolean true on success, false on failure - */ - protected function purge() - { - return $this->memcache->flush(); - } -} - -]]> - </programlisting> - - </example> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching/caching-groups.xml
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3839 $ --> - <sect1 id="caching.groups"> - <title>Cache Groups</title> - <para> - You can do more elaborate grouping by setting up - <parameter>$cache_id</parameter> groups. This is - accomplished by separating each sub-group with a vertical bar - <literal>|</literal> in the <parameter>$cache_id</parameter> value. - You can have as many sub-groups as you like. - </para> - - <itemizedlist> - <listitem><para> - You can think of cache groups like a directory hierarchy. For instance, a - cache group of <literal>'a|b|c'</literal> could be thought of as the - directory structure <literal>'/a/b/c/'</literal>. - </para></listitem> - - <listitem><para> - <literal>clearCache(null,'a|b|c')</literal> - would be like removing the files - <literal>'/a/b/c/*'</literal>. <literal>clearCache(null,'a|b')</literal> - would be like removing the files <literal>'/a/b/*'</literal>. - </para></listitem> - - <listitem><para> - If you specify a - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - such as <literal>clearCache(null,'a|b','foo')</literal> it is treated as - an appended cache group <literal>'/a/b/c/foo/'</literal>. - </para></listitem> - - <listitem><para> - If you specify a template name such as - <literal>clearCache('foo.tpl','a|b|c')</literal> then Smarty will attempt - to remove <literal>'/a/b/c/foo.tpl'</literal>. - </para></listitem> - - <listitem><para> - You CANNOT remove a specified template name under - multiple cache groups such as <literal>'/a/b/*/foo.tpl'</literal>, the - cache grouping works - left-to-right ONLY. You will need to group your templates under a single - cache group heirarchy to be able to clear them as a group. - </para></listitem> - </itemizedlist> - - <para> - Cache grouping should not be confused with your template directory - heirarchy, the cache grouping has no knowledge of how your templates are - structured. So for example, if you have a template structure like - <filename>themes/blue/index.tpl</filename> and you want to be able to - clear all the cache files for the <quote>blue</quote> theme, you will need - to create a cache group - structure that mimics your template file structure, such as - <literal>display('themes/blue/index.tpl','themes|blue')</literal>, then - clear them with - <literal>clearCache(null,'themes|blue')</literal>. - </para> - <example> - <title>$cache_id groups</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -// clear all caches with 'sports|basketball' as the first two cache_id groups -$smarty->clearCache(null,'sports|basketball'); - -// clear all caches with "sports" as the first cache_id group. This would -// include "sports|basketball", or "sports|(anything)|(anything)|(anything)|..." -$smarty->clearCache(null,'sports'); - -// clear the foo.tpl cache file with "sports|basketball" as the cache_id -$smarty->clearCache('foo.tpl','sports|basketball'); - - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3839 $ --> - <sect1 id="caching.multiple.caches"> - <title>Multiple Caches Per Page</title> - <para> - You can have multiple cache files for a single call to - <link linkend="api.display"><varname>display()</varname></link> - or <link linkend="api.fetch"><varname>fetch()</varname></link>. - Let's say that a call to <literal>display('index.tpl')</literal> may have - several different output contents depending on some condition, and you want - separate caches for each one. You can do this by passing a - <parameter>$cache_id</parameter> as the second parameter to the - function call. - </para> - <example> - <title>Passing a $cache_id to display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl', $my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Above, we are passing the variable <literal>$my_cache_id</literal> to - <link linkend="api.display"><varname>display()</varname></link> - as the <parameter>$cache_id</parameter>. For each unique value of - <literal>$my_cache_id</literal>, a separate cache will be - generated for <filename>index.tpl</filename>. In this example, - <literal>article_id</literal> was passed in the - URL and is used as the <parameter>$cache_id</parameter>. - </para> - <note> - <title>Technical Note</title> - <para> - Be very cautious when passing values from a client (web browser) into - Smarty or any PHP application. Although the above example of using the - article_id from the URL looks handy, it could have bad consequences. The - <parameter>$cache_id</parameter> is used to create a directory on the file - system, so if the user - decided to pass an extremely large value for article_id, or write a script - that sends random article_id's at a rapid pace, this could possibly cause - problems at the server level. Be sure to sanitize any data passed in before - using it. In this instance, maybe you know the article_id has a length of - ten characters and is made up of alpha-numerics only, and must be a valid - article_id in the database. Check for this! - </para> - </note> - <para> - Be sure to pass the same <parameter>$cache_id</parameter> as the - second parameter to - <link linkend="api.is.cached"><varname>isCached()</varname></link> and - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>. - </para> - <example> - <title>Passing a cache_id to isCached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->isCached('index.tpl',$my_cache_id)) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - You can clear all caches for a particular <parameter>$cache_id</parameter> - by passing &null; as the - first parameter to - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>. - </para> - <example> - <title>Clearing all caches for a particular $cache_id</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -// clear all caches with "sports" as the $cache_id -$smarty->clearCache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - </programlisting> - </example> - <para> - In this manner, you can <quote>group</quote> your caches together by giving - them the same <parameter>$cache_id</parameter>. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,222 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3841 $ --> - <sect1 id="caching.setting.up"> - <title>Setting Up Caching</title> - <para> - The first thing to do is enable caching by setting <link - linkend="variable.caching"> - <parameter>$caching</parameter></link> to one of <literal>Smarty::CACHING_LIFETIME_CURRENT</literal> or <literal>Smarty::CACHING_LIFETIME_SAVED</literal>. - </para> - <example> - <title>Enabling caching</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -// uses the value of $smarty->cacheLifetime() to determine -// the number of seconds a cache is good for -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - With caching enabled, the function call to - <literal>display('index.tpl')</literal> will render - the template as usual, but also saves a copy of its output to a file (a - cached copy) in the - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>. - On the next call to <literal>display('index.tpl')</literal>, the cached copy - will be used instead of rendering the template again. - </para> - <note> - <title>Technical Note</title> - <para> - The files in the - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - are named similar to the template name. - Although they end in the <filename>.php</filename> extention, they are not - intended to be directly executable. Do not edit these files! - </para> - </note> - <para> - Each cached page has a limited lifetime determined by <link - linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>. - The default value is 3600 seconds, or one hour. After that time expires, the - cache is regenerated. It is possible to give individual caches their own - expiration time by setting - <link linkend="variable.caching"><parameter>$caching</parameter></link> to <literal>Smarty::CACHING_LIFETIME_SAVED</literal>. - See <link - linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - for more details. - </para> - <example> - <title>Setting $cache_lifetime per cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -// retain current cache lifetime for each specific display call -$smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED); - -// set the cache_lifetime for index.tpl to 5 minutes -$smarty->setCacheLifetime(300); -$smarty->display('index.tpl'); - -// set the cache_lifetime for home.tpl to 1 hour -$smarty->setCacheLifetime(3600); -$smarty->display('home.tpl'); - -// NOTE: the following $cache_lifetime setting will not work when $caching -// is set to Smarty::CACHING_LIFETIME_SAVED. -// The cache lifetime for home.tpl has already been set -// to 1 hour, and will no longer respect the value of $cache_lifetime. -// The home.tpl cache will still expire after 1 hour. -$smarty->setCacheLifetime(30); // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - </programlisting> - </example> - <para> - If <link linkend="variable.compile.check"> - <parameter>$compile_check</parameter></link> is enabled (default), - every template file and config file that is involved with the cache file is - checked for modification. If any of the files have been modified since the - cache was generated, the cache is immediately regenerated. This is a computational - overhead, so for optimum performance set - <link linkend="variable.compile.check"><parameter>$compile_check</parameter> - </link> to &false;. - </para> - <example> - <title>Disabling $compile_check</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); -$smarty->setCompileCheck(false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - If <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> is enabled, - the cache files will always be regenerated. This effectively disables caching, - however this also seriously degrades performance. - <link linkend="variable.force.compile"><parameter>$force_compile</parameter> - </link> is meant to be used for - <link linkend="chapter.debugging.console">debugging</link> - purposes. The appropriate way to disable caching is to set <link - linkend="variable.caching"><parameter>$caching</parameter> - </link> to Smarty::CACHING_OFF. - </para> - <para> - The <link linkend="api.is.cached"><varname>isCached()</varname></link> - function - can be used to test if a template has a valid cache or not. If you have a - cached template that requires something like a database fetch, you can use - this to skip that process. - </para> - <example> - <title>Using isCached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -if(!$smarty->isCached('index.tpl')) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - You can keep parts of a page dynamic (disable caching) with the <link - linkend="language.function.nocache"><varname>{nocache}{/nocache}</varname></link> - block function, the <link linkend="language.function.insert"><varname>{insert}</varname></link> - function, or by using the <literal>nocache</literal> parameter for most template functions. - </para> - <para> - Let's - say the whole page can be cached except for a banner that is displayed down - the side of the page. By using the - <link linkend="language.function.insert"><varname>{insert}</varname></link> - function for the banner, you - can keep this element dynamic within the cached content. See the - documentation on - <link linkend="language.function.insert"><varname>{insert}</varname></link> - for more details and examples. - </para> - <para> - You can clear all the cache files with the <link - linkend="api.clear.all.cache"><varname>clearAllCache()</varname></link> - function, or - individual cache files - <link linkend="caching.groups">and groups</link> - with the <link - linkend="api.clear.cache"><varname>clearCache()</varname></link> function. - </para> - <example> - <title>Clearing the cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -// clear only cache for index.tpl -$smarty->clearCache('index.tpl'); - -// clear out all cache files -$smarty->clearAllCache(); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/charset.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="charset"> -<title>Charset Encoding</title> - -<sect1 id="charset.encoding"> - <title>Charset Encoding</title> - <para> - There are a variety of encodings for textual data, ISO-8859-1 (Latin1) and UTF-8 being the most popular. - Unless specified otherwise with the <varname>SMARTY_RESOURCE_CHAR_SET</varname> constant, Smarty recognizes - <literal>UTF-8</literal> as the internal charset if <ulink url="&url.php-manual;mbstring">Multibyte String</ulink> - is available, <literal>ISO-8859-1</literal> if not. - </para> - - <note><para> - <literal>ISO-8859-1</literal> has been PHP's default internal charset since the beginning. - Unicode has been evolving since 1991. Since then it has become the one charset to conquer them all, as it is capable of - encoding most of the known characters even accross different character systems (latin, cyrillic, japanese, …). - <literal>UTF-8</literal> is unicode's most used encoding, as it allows referencing the thousands of character with the smallest - size overhead possible. - </para><para>Since unicode and UTF-8 are very wide spread nowadays, their use is strongly encouraged.</para></note> - - <note><para>Smarty's internals and core plugins are truly UTF-8 compatible since Smarty 3.1. To achieve unicode compatibility, - the <ulink url="&url.php-manual;mbstring">Multibyte String</ulink> PECL is required. Unless your PHP environment offers this - package, Smarty will not be able to offer full-scale UTF-8 compatibility. - </para></note> - - <example> - <title>Setting a different Charset Encoding</title> - <programlisting> -<![CDATA[ -// use japanese character encoding -if (function_exists('mb_internal_charset')) { - mb_internal_charset('EUC-JP'); -} -define('SMARTY_RESOURCE_CHAR_SET', 'EUC-JP'); -require_once 'libs/Smarty.class.php'; -$smarty = new Smarty(); -]]> - </programlisting> - </example> - -</sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <chapter id="plugins"> - <title>Extending Smarty With Plugins</title> - <para> - Version 2.0 introduced the plugin architecture that is used - for almost all the customizable functionality of Smarty. This includes: - <itemizedlist spacing="compact"> - <listitem><simpara>functions</simpara></listitem> - <listitem><simpara>modifiers</simpara></listitem> - <listitem><simpara>block functions</simpara></listitem> - <listitem><simpara>compiler functions</simpara></listitem> - <listitem><simpara>prefilters</simpara></listitem> - <listitem><simpara>postfilters</simpara></listitem> - <listitem><simpara>outputfilters</simpara></listitem> - <listitem><simpara>resources</simpara></listitem> - <listitem><simpara>inserts</simpara></listitem> - </itemizedlist> - With the exception of resources, backwards compatibility with the old - way of registering handler functions via register_* API is preserved. If - you did not use the API but instead modified the class variables - <literal>$custom_funcs</literal>, <literal>$custom_mods</literal>, and - other ones directly, then you will need to adjust your scripts to either - use the API or convert your custom functionality into plugins. - </para> - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.block.functions"><title>Block Functions</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - <paramdef>boolean <parameter>&$repeat</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Block functions are functions of the form: - <literal>{func} .. {/func}</literal>. In other words, they enclose a - template block and operate on the contents of - this block. Block functions take precedence over - <link linkend="language.custom.functions">custom functions</link> of - the same name, that is, you cannot have both custom function - <literal>{func}</literal> and block function - <literal>{func}..{/func}</literal>. - </para> - - <itemizedlist> - <listitem><para> - By default your function implementation is called twice by - Smarty: once for the opening tag, and once for the closing tag. - (See <literal>$repeat</literal> below on how to change this.) - </para></listitem> - <listitem><para> - Starting with Smarty 3.1 the returned value of the opening tag call is - displayed as well. - </para></listitem> - <listitem><para> - Only the opening tag of the block function may have - <link linkend="language.syntax.attributes">attributes</link>. All - attributes passed to template functions from the template are contained - in the <parameter>$params</parameter> variable as an associative array. - The opening tag attributes are also accessible to your function - when processing the closing tag. - </para></listitem> - <listitem><para> - The value of the <parameter>$content</parameter> variable depends on - whether your function is called for the opening or closing tag. In case - of the opening tag, it will be &null;, and in case of - the closing tag it will be the contents of the template block. - Note that the template block will have already been processed by - Smarty, so all you will receive is the template output, not the - template source. - </para></listitem> - - <listitem><para> - The parameter <parameter>$repeat</parameter> is passed by - reference to the function implementation and provides a - possibility for it to control how many times the block is - displayed. By default <parameter>$repeat</parameter> is - &true; at the first call of the block-function (the opening tag) - and &false; on all subsequent calls to the block function - (the block's closing tag). - Each time the function implementation returns with - <parameter>$repeat</parameter> being &true;, the contents between - <literal>{func}...{/func}</literal> are evaluated and the function - implementation is called again with the new block contents in the parameter - <parameter>$content</parameter>. - </para></listitem> - </itemizedlist> - - <para> - If you have nested block functions, it's possible to find out what the - parent block function is by accessing - <literal>$smarty->_tag_stack</literal> variable. Just do a - <ulink url="&url.php-manual;var_dump"><varname>var_dump()</varname></ulink> - on it and the structure should be apparent. - </para> - - <example> - <title>block function</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, Smarty_Internal_Template $template, &$repeat) -{ - // only output on the closing tag - if(!$repeat){ - if (isset($content)) { - $lang = $params['lang']; - // do some intelligent translation thing here with $content - return $translation; - } - } -} -?> -]]> - </programlisting> - </example> - -<para> - See also: - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link>, - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link>. -</para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4475 $ --> - <sect1 id="plugins.compiler.functions"><title>Compiler Functions</title> - <para> - Compiler functions are called only during compilation of the template. - They are useful for injecting PHP code or time-sensitive static - content into the template. If there is both a compiler function and a - <link linkend="language.custom.functions">custom function</link> registered - under the same name, the compiler function has precedence. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - The compiler function is passed two parameters: the params array which contains precompiled - strings for the attribute values and the Smarty object. It's supposed to return the code - to be injected into the compiled template including the surrounding PHP tags. - </para> - - <example> - <title>A simple compiler function</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($params, Smarty $smarty) -{ - return "<?php\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';\n?>"; -} -?> -]]> -</programlisting> - <para> - This function can be called from the template as: - </para> - <programlisting> -<![CDATA[ -{* this function gets executed at compile time only *} -{tplheader} -]]> - </programlisting> - <para> - The resulting PHP code in the compiled template would be something like this: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link>, - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link>. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,131 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.functions"><title>Template Functions</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - All <link linkend="language.syntax.attributes">attributes</link> passed to - template functions from the template are contained in the - <parameter>$params</parameter> as an associative array. - </para> - <para> - The output (return value) of the function will be substituted in place of - the function tag in the template, eg the - <link linkend="language.function.fetch"><varname>{fetch}</varname></link> - function. Alternatively, the function can simply perform some other - task without any output, eg the <link linkend="language.function.assign"> - <varname>{assign}</varname></link> function. - </para> - <para> - If the function needs to assign some variables to the template or use - some other Smarty-provided functionality, it can use the supplied - <parameter>$template</parameter> object to do so eg - <literal>$template->foo()</literal>. - </para> - - <para> - <example> - <title>function plugin with output</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, Smarty_Internal_Template $template) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> -</programlisting> - </example> - </para> - <para> - which can be used in the template as: - </para> - <programlisting> -Question: Will we ever have time travel? -Answer: {eightball}. - </programlisting> - <para> - <example> - <title>function plugin without output</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, Smarty_Internal_Template $template) -{ - if (empty($params['var'])) { - trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - trigger_error("assign: missing 'value' parameter"); - return; - } - - $template->assign($params['var'], $params['value']); - -} -?> -]]> - </programlisting> - </example> - </para> - <para> - See also: - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link>, - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="plugins.howto"> - <title>How Plugins Work</title> - <para> - Plugins are always loaded on demand. Only the specific modifiers, - functions, resources, etc invoked in the templates scripts will be - loaded. Moreover, each plugin is loaded only once, even if you have - several different instances of Smarty running within the same request. - </para> - <para> - Pre/postfilters and output filters are a bit of a special case. Since - they are not mentioned in the templates, they must be registered or - loaded explicitly via API functions before the template is processed. - The order in which multiple filters of the same type are executed - depends on the order in which they are registered or loaded. - </para> - <para> - The <link linkend="variable.plugins.dir">plugins directory</link> - can be a string containing a path or an array containing multiple - paths. To install a plugin, simply place it in one of the - directories and Smarty will use it automatically. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.inserts"><title>Inserts</title> - <para> - Insert plugins are used to implement functions that are invoked by - <link linkend="language.function.insert"><varname>{insert}</varname></link> - tags in the template. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - The first parameter to the function is an associative array of - attributes passed to the insert. - </para> - <para> - The insert function is supposed to return the result which will be - substituted in place of the <varname>{insert}</varname> tag in the - template. - </para> - <example> - <title>insert plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, Smarty_Internal_Template $template) -{ - if (empty($params['format'])) { - trigger_error("insert time: missing 'format' parameter"); - return; - } - return strftime($params['format']); -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="plugins.modifiers"><title>Modifiers</title> - <para> - <link linkend="language.modifiers">Modifiers</link> are little functions - that are applied to a variable in the template before it is displayed or - used in some other context. Modifiers can be chained together. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - The first parameter to the modifier plugin is the value on which - the modifier is to operate. The rest of the parameters are optional, - depending on what kind of operation is to be performed. - </para> - <para> - The modifier has to <ulink url="&url.php-manual;return">return</ulink> - the result of its processing. - </para> - - <example> - <title>A simple modifier plugin</title> - <para> - This plugin basically aliases one of the built-in PHP functions. It - does not have any additional parameters. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> -</programlisting> - </example> - <para></para> - <example> - <title>More complex modifier plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link>, - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> - <sect1 id="plugins.naming.conventions"> - <title>Naming Conventions</title> - <para> - Plugin files and functions must follow a very specific naming - convention in order to be located by Smarty. - </para> - <para> - <emphasis role="bold">plugin files</emphasis> must be named as follows: - <blockquote> - <para> - <filename> - <replaceable>type</replaceable>.<replaceable>name</replaceable>.php - </filename> - </para> - </blockquote> - </para> - - <itemizedlist> - <listitem><para> - Where <literal>type</literal> is one of these plugin types: - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - </listitem> - - <listitem><para> - And <literal>name</literal> should be a valid identifier; letters, - numbers, and underscores only, see - <ulink url="&url.php-manual;language.variables">php variables</ulink>. - </para></listitem> - - <listitem><para> - Some examples: <filename>function.html_select_date.php</filename>, - <filename>resource.db.php</filename>, - <filename>modifier.spacify.php</filename>. - </para> - </listitem> - </itemizedlist> - - - <para> - <emphasis role="bold">plugin functions</emphasis> inside the PHP files must be named as follows: - <blockquote> - <para> - <function>smarty_<replaceable>type</replaceable>_<replaceable>name</replaceable></function> - </para> - </blockquote> - </para> - - <itemizedlist> - <listitem><para> - The meanings of <literal>type</literal> and <literal>name</literal> are - the same as above. - </para></listitem> - <listitem><para> - An example modifier name <varname>foo</varname> would be <literal>function smarty_modifier_foo()</literal>. - </para></listitem> - </itemizedlist> - <para> - Smarty will output appropriate error messages if the plugin file it - needs is not found, or if the file or the plugin function are named - improperly. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.outputfilters"><title>Output Filters</title> - <para> - Output filter plugins operate on a template's output, after the - template is loaded and executed, but before the output is displayed. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - The first parameter to the output filter function is the template - output that needs to be processed, and the second parameter is the - instance of Smarty invoking the plugin. The plugin is supposed to do - the processing and return the results. - </para> - <example> - <title>An output filter plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, Smarty_Internal_Template $template) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.filter"> - <varname>registerFilter()</varname></link>, - <link linkend="api.unregister.filter"> - <varname>unregisterFilter()</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.prefilters.postfilters"> - <title>Prefilters/Postfilters</title> - <para> - Prefilter and postfilter plugins are very similar in concept; where - they differ is in the execution -- more precisely the time of their - execution. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Prefilters are used to process the source of the template immediately - before compilation. The first parameter to the prefilter function is - the template source, possibly modified by some other prefilters. The - plugin is supposed to return the modified source. Note that this - source is not saved anywhere, it is only used for compilation. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Postfilters are used to process the compiled output of the template - (the PHP code) immediately after the compilation is done but before the - compiled template is saved to the filesystem. The first parameter to - the postfilter function is the compiled template code, possibly - modified by other postfilters. The plugin is supposed to return the - modified version of this code. - </para> - <example> - <title>prefilter plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, Smarty_Internal_Template $template) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>postfilter plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, Smarty_Internal_Template $template) - { - $compiled = "<pre>\n<?php print_r(\$template->getTemplateVars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="api.register.filter"> - <varname>registerFilter()</varname></link> and - <link linkend="api.unregister.filter"> - <varname>unregisterFilter()</varname></link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.resources"><title>Resources</title> - <para> - Resource plugins are meant as a generic way of providing template - sources or PHP script components to Smarty. Some examples of resources: - databases, LDAP, shared memory, sockets, and so on. - </para> - - <para> - Custom Resources may be put in a file <literal>resource.foobarxyz.php</literal> within your - <link linkend="variable.plugins.dir"><varname>$plugins_dir</varname></link>, or registered on runtime - with <link linkend="api.register.resource"><varname>registerResource()</varname></link>. - In either case you will be able to access that resource by prepending its name to the template you're addressing: - <literal>foobarxyz:yourtemplate.tpl</literal>. - </para> - - <para> - If a Resource's templates should not be run through the Smarty compiler, the Custom Resource may extend - <literal>Smarty_Resource_Uncompiled</literal>. The Resource Handler must then implement the function - <literal>renderUncompiled(Smarty_Internal_Template $_template)</literal>. - <varname>$_template</varname> is a reference to the current template and contains all assigned variables - which the implementor can access via <literal>$_template->smarty->getTemplateVars()</literal>. - - These Resources simply echo their rendered content to the output stream. The rendered output will be - output-cached if the Smarty instance was configured accordingly. - - See <literal>libs/sysplugins/smarty_internal_resource_php.php</literal> for an example. - </para> - - <para> - If the Resource's compiled templates should not be cached on disk, the Custom Resource may extend - <literal>Smarty_Resource_Recompiled</literal>. These Resources are compiled every time they are accessed. - This may be an expensive overhead. - - See <literal>libs/sysplugins/smarty_internal_resource_eval.php</literal> for an example. - </para> - - <example> - <title>Using custom resources</title> - <programlisting role="php"> -<![CDATA[ -<?php - -/** - * MySQL Resource - * - * Resource Implementation based on the Custom API to use - * MySQL as the storage resource for Smarty's templates and configs. - * - * Table definition: - * <pre>CREATE TABLE IF NOT EXISTS `templates` ( - * `name` varchar(100) NOT NULL, - * `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - * `source` text, - * PRIMARY KEY (`name`) - * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre> - * - * Demo data: - * <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre> - * - * @package Resource-examples - * @author Rodney Rehm - */ -class Smarty_Resource_Mysql extends Smarty_Resource_Custom { - // PDO instance - protected $db; - // prepared fetch() statement - protected $fetch; - // prepared fetchTimestamp() statement - protected $mtime; - - public function __construct() { - try { - $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty", "smarty"); - } catch (PDOException $e) { - throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); - } - $this->fetch = $this->db->prepare('SELECT modified, source FROM templates WHERE name = :name'); - $this->mtime = $this->db->prepare('SELECT modified FROM templates WHERE name = :name'); - } - - /** - * Fetch a template and its modification time from database - * - * @param string $name template name - * @param string $source template source - * @param integer $mtime template modification timestamp (epoch) - * @return void - */ - protected function fetch($name, &$source, &$mtime) - { - $this->fetch->execute(array('name' => $name)); - $row = $this->fetch->fetch(); - $this->fetch->closeCursor(); - if ($row) { - $source = $row['source']; - $mtime = strtotime($row['modified']); - } else { - $source = null; - $mtime = null; - } - } - - /** - * Fetch a template's modification time from database - * - * @note implementing this method is optional. Only implement it if modification times can be accessed faster than loading the comple template source. - * @param string $name template name - * @return integer timestamp (epoch) the template was modified - */ - protected function fetchTimestamp($name) { - $this->mtime->execute(array('name' => $name)); - $mtime = $this->mtime->fetchColumn(); - $this->mtime->closeCursor(); - return strtotime($mtime); - } -} - - -require_once 'libs/Smarty.class.php'; -$smarty = new Smarty(); -$smarty->registerResource('mysql', new Smarty_Resource_Mysql()); - -// using resource from php script -$smarty->display("mysql:index.tpl"); -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file='mysql:extras/navigation.tpl'} -]]> - </programlisting> - </example> - - <para> - See also - <link linkend="api.register.resource"><varname>registerResource()</varname></link>, - <link linkend="api.unregister.resource"><varname>unregisterResource()</varname></link>. -</para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4278 $ --> - <sect1 id="plugins.writing"> - <title>Writing Plugins</title> - <para> - Plugins can be either loaded by Smarty automatically from the - filesystem or they can be registered at runtime via one of the - register_* API functions. They can also be unregistered by using - unregister_* API functions. - </para> - <para> - For the plugins that are registered at runtime, the name of the plugin - function(s) does not have to follow the naming convention. - </para> - <para> - If a plugin depends on some functionality provided by another plugin - (as is the case with some plugins bundled with Smarty), then the proper - way to load the needed plugin is this: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_function_yourPlugin(array $params, Smarty_Internal_Template $template) -{ - // load plugin depended upon - $template->smarty->loadPlugin('smarty_shared_make_timestamp'); - // plugin code -} -?> -]]> - </programlisting> - <para> - As a general rule, the currently evaluated template's Smarty_Internal_Template object is always passed to the plugins - as the last parameter with two exceptions: - </para> - <itemizedlist> - <listitem><para> - modifiers do not get passed the Smarty_Internal_Template object at all - </para></listitem> - <listitem><para> - blocks get passed - <parameter>$repeat</parameter> after the Smarty_Internal_Template object to keep - backwards compatibility to older versions of Smarty. - </para></listitem> - </itemizedlist> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4197 $ --> -<chapter id="resources"> - <title>Resources</title> - <para> - The templates may come from a variety of sources. When you - <link linkend="api.display"><varname>display()</varname></link> or - <link linkend="api.fetch"><varname>fetch()</varname></link> - a template, or when you include a template from within another template, - you supply a resource type, followed by the appropriate path and template - name. If a resource is not explicitly given, the value of - <link linkend="variable.default.resource.type"><parameter>$default_resource_type</parameter></link> - (default: "file") is assumed. - </para> -&programmers.resources.resources-file; -&programmers.resources.resources-string; -&programmers.resources.resources-streams; -&programmers.resources.resources-extends; -&programmers.resources.resources-custom; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources/resources-custom.xml
Deleted
@@ -1,147 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="resources.custom"> - <title>Custom Template Resources</title> - <para> - You can retrieve templates using whatever possible source you can - access with PHP: databases, sockets, files, etc. You do this - by writing resource plugin functions and registering them with - Smarty. - </para> - - <para> - See <link linkend="plugins.resources">resource plugins</link> - section for more information on the functions you are supposed - to provide. - </para> - - <note> - <para> - Note that you cannot override the built-in - <literal>file:</literal> resource, but you can provide a resource - that fetches templates from the file system in some other way by - registering under another resource name. - </para> - </note> - <example> - <title>Using custom resources</title> - <programlisting role="php"> -<![CDATA[ -<?php - -/** -* MySQL Resource -* -* Resource Implementation based on the Custom API to use -* MySQL as the storage resource for Smarty's templates and configs. -* -* Table definition: -* <pre>CREATE TABLE IF NOT EXISTS `templates` ( -* `name` varchar(100) NOT NULL, -* `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -* `source` text, -* PRIMARY KEY (`name`) -* ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre> -* -* Demo data: -* <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre> -* -* @package Resource-examples -* @author Rodney Rehm -*/ -class Smarty_Resource_Mysql extends Smarty_Resource_Custom { - // PDO instance - protected $db; - // prepared fetch() statement - protected $fetch; - // prepared fetchTimestamp() statement - protected $mtime; - - public function __construct() { - try { - $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty", "smarty"); - } catch (PDOException $e) { - throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); - } - $this->fetch = $this->db->prepare('SELECT modified, source FROM templates WHERE name = :name'); - $this->mtime = $this->db->prepare('SELECT modified FROM templates WHERE name = :name'); - } - - /** - * Fetch a template and its modification time from database - * - * @param string $name template name - * @param string $source template source - * @param integer $mtime template modification timestamp (epoch) - * @return void - */ - protected function fetch($name, &$source, &$mtime) - { - $this->fetch->execute(array('name' => $name)); - $row = $this->fetch->fetch(); - $this->fetch->closeCursor(); - if ($row) { - $source = $row['source']; - $mtime = strtotime($row['modified']); - } else { - $source = null; - $mtime = null; - } - } - - /** - * Fetch a template's modification time from database - * - * @note implementing this method is optional. Only implement it if modification times can be accessed faster than loading the comple template source. - * @param string $name template name - * @return integer timestamp (epoch) the template was modified - */ - protected function fetchTimestamp($name) { - $this->mtime->execute(array('name' => $name)); - $mtime = $this->mtime->fetchColumn(); - $this->mtime->closeCursor(); - return strtotime($mtime); - } -} - - -require_once 'libs/Smarty.class.php'; -$smarty = new Smarty(); -$smarty->registerResource('mysql', new Smarty_Resource_Mysql()); - -// using resource from php script -$smarty->display("mysql:index.tpl"); -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file='mysql:extras/navigation.tpl'} -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources/resources-extends.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="resources.extends"> - <title>Extends Template Resources</title> - <para> - The <literal>extends:</literal> resource is used to define child/parent relationships for template inheritance from the PHP script. - For details see section of <link linkend="advanced.features.template.inheritance">Template Interitance</link>. - </para> - <para> - As of Smarty 3.1 the <literal>extends:</literal> resource may use any available - <link linkend="resources">template resource</link>, - including <literal>string:</literal> and <literal>eval:</literal>. - When <link linkend="resources.string">templates from strings</link> are used, - make sure they are properly (url or base64) encoded. Is an <literal>eval:</literal> resource - found within an inheritance chain, its "don't save a compile file" property is superseeded by - the <literal>extends:</literal> resource. The templates within an inheritance chain are not - compiled separately, though. Only a single compiled template will be generated. - </para> - <note> - <para> - Use this when inheritance is required programatically. When inheriting within PHP, - it is not obvious from the child template what inheritance took place. If you have a choice, - it is normally more flexible and intuitive to handle inheritance chains from within the templates. - </para> - </note> - <example> - <title>Using template inheritance from the PHP script</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('extends:parent.tpl|child.tpl|grandchild.tpl'); - -// inheritance from multiple template sources -$smarty->display('extends:db:parent.tpl|file:child.tpl|grandchild.tpl|eval:{block name="fooBazVar_"}hello world{/block}'); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="advanced.features.template.inheritance">Template Inheritance</link> - <link linkend="language.function.block"><varname>{block}</varname></link> and - <link linkend="language.function.extends"><varname>{extends}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources/resources-file.xml
Deleted
@@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="resources.file"> - <title>File Template Resources</title> - <para> - Smarty ships with a built-in template resource for the filesystem. The <literal>file:</literal> is the default resource. - The resource key <literal>file:</literal> must only be specified, if the - <link linkend="variable.default.resource.type"><parameter>$default_resource_type</parameter></link> has been changed. - </para> - <para> - If the file resource cannot find the requested template, the - <link linkend="variable.default.template.handler.func"><parameter>$default_template_handler_func</parameter></link> - is invoked. - </para> - <note> - <title>Note</title> - <para> - As of Smarty 3.1 the file resource no longer walks through the - <ulink url="&url.php-manual;ini.core.php#ini.include-path">include_path</ulink> unless - <link linkend="variable.use.include.path"><parameter>$use_include_path</parameter> is activated</link> - </para> - </note> - - <sect2 id="templates.from.template.dir"> - <title>Templates from $template_dir</title> - <para> - The file resource pulls templates source files from the directories specified in - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - The list of directories is traversed in the order they appear in the array. - The first template found is the one to process. - </para> - <example> - <title>Using templates from the $template_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('index.tpl'); -$smarty->display('file:index.tpl'); // same as above -?> -]]> - </programlisting> - <para>From within a Smarty template</para> - <programlisting> -<![CDATA[ -{include file='index.tpl'} -{include file='file:index.tpl'} {* same as above *} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="templates.from.specified.template.dir"> - <title>Templates from a specific $template_dir</title> - <para> - Smarty 3.1 introduced the bracket-syntax for specifying an element from - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - This allows websites employing multiple sets of templates better control over - which template to acces. - </para> - <para> - The bracket-syntax can be used from anywhere you can specify the - <literal>file:</literal> resource type. - </para> - <example> - <title>Specifying the $template_dir to use</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// setup template directories -$smarty->setTemplateDir(array( - './templates', // element: 0, index: 0 - './templates_2', // element: 1, index: 1 - '10' => 'templates_10', // element: 2, index: '10' - 'foo' => 'templates_foo', // element: 3, index: 'foo' -)); - -/* - assume the template structure - ./templates/foo.tpl - ./templates_2/foo.tpl - ./templates_2/bar.tpl - ./templates_10/foo.tpl - ./templates_10/bar.tpl - ./templates_foo/foo.tpl -*/ - -// regular access -$smarty->display('file:foo.tpl'); -// will load ./templates/foo.tpl - -// using numeric index -$smarty->display('file:[1]foo.tpl'); -// will load ./templates_2/foo.tpl - -// using numeric string index -$smarty->display('file:[10]foo.tpl'); -// will load ./templates_10/foo.tpl - -// using string index -$smarty->display('file:[foo]foo.tpl'); -// will load ./templates_foo/foo.tpl - -// using "unknown" numeric index (using element number) -$smarty->display('file:[2]foo.tpl'); -// will load ./templates_10/foo.tpl - -?> -]]> - </programlisting> - <para>From within a Smarty template</para> - <programlisting> -<![CDATA[ -{include file="file:foo.tpl"} -{* will load ./templates/foo.tpl *} - -{include file="file:[1]foo.tpl"} -{* will load ./templates_2/foo.tpl *} - -{include file="file:[foo]foo.tpl"} -{* will load ./templates_foo/foo.tpl *} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="templates.from.any.dir"> - <title>Templates from any directory</title> - <para> - Templates outside of the - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - require the <literal>file:</literal> template resource type, followed by - the absolute path to the template (with leading slash.) - </para> - <note> - <para> - With <link linkend="advanced.features.security"><varname>Security</varname></link> enabled, - access to templates outside of the - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - is not allowed unless you list those directories in <parameter>$secure_dir</parameter>. - </para> - </note> - <example> - <title>Using templates from any directory</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - And from within a Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file='file:/usr/local/share/templates/navigation.tpl'} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="templates.windows.filepath"> - <title>Windows Filepaths</title> - <para> - If you are using a Windows machine, filepaths usually include a - drive letter (C:) at the beginning of the pathname. Be sure to use - <literal>file:</literal> in the path to avoid namespace conflicts and - get the desired results. - </para> - <example> - <title>Using templates from windows file paths</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file='file:D:/usr/local/share/templates/navigation.tpl'} -]]> -</programlisting> - </example> - </sect2> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources/resources-streams.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="resources.streams"> - <title>Stream Template Resources</title> - <para> - Streams allow you to use PHP streams as a template resource. - The syntax is much the same a traditional template resource names. - </para> - <para> - Smarty will first look for a registered template resource. If nothing is found, it will check if a PHP stream is available. - If a stream is available, Smarty will use it to fetch the template. - <note><para>You can further define allowed streams with security enabled.</para></note> - </para> - <example> - <title>Stream from PHP</title> - <para>Using a PHP stream for a template resource from the display() function.</para> - <programlisting> - <![CDATA[ - $smarty->display('foo:bar.tpl'); - ]]> - </programlisting> - </example> - <example> - <title>Stream from Template</title> - <para>Using a PHP stream for a template resource from within a template.</para> - <programlisting> - <![CDATA[ - {include file="foo:bar.tpl"} - ]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources/resources-string.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<sect1 id="resources.string"> - <title>String Template Resources</title> - <para> - Smarty can render templates from a string by using the <literal>string:</literal> or <literal>eval:</literal> resource. - </para> - - <itemizedlist> - <listitem> - <para> - The <literal>string:</literal> resource behaves much the same as a template file. - The template source is compiled from a string and stores the compiled template code for later reuse. - Each unique template string will create a new compiled template file. - If your template strings are accessed frequently, this is a good choice. - If you have frequently changing template strings (or strings with low reuse value), - the <literal>eval:</literal> resource may be a better choice, as it doesn't save compiled templates to disk. - </para> - </listitem> - <listitem> - <para> - The <literal>eval:</literal> resource evaluates the template source every time a page is rendered. This is a good choice - for strings with low reuse value. If the same string is accessed frequently, the <literal>string:</literal> resource may - be a better choice. - </para> - </listitem> - </itemizedlist> - <note> - <para> - With a <literal>string:</literal> resource type, each unique string generates a compiled file. Smarty cannot detect a string that has changed, - and therefore will generate a new compiled file for each unique string. It is important to choose the correct resource so that you do not - fill your disk space with wasted compiled strings. - </para> - </note> - - <example> - <title>Using templates from strings</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('foo','value'); -$template_string = 'display {$foo} here'; -$smarty->display('string:'.$template_string); // compiles for later reuse -$smarty->display('eval:'.$template_string); // compiles every time -?> -]]> - </programlisting> - <para>From within a Smarty template</para> - <programlisting> -<![CDATA[ -{include file="string:$template_string"} {* compiles for later reuse *} -{include file="eval:$template_string"} {* compiles every time *} - -]]> - </programlisting> - </example> - - <para> - Both <literal>string:</literal> and <literal>eval:</literal> resources may be encoded with - <ulink url="&url.php-manual;urlencode"><varname>urlencode()</varname></ulink> or - <ulink url="&url.php-manual;urlencode"><varname>base64_encode()</varname></ulink>. This is - not necessary for the usual use of <literal>string:</literal> and <literal>eval:</literal>, - but is required when using either of them in conjunction with - <link linkend="resources.extends"><varname>Extends Template Resource</varname></link> - </para> - - <example> - <title>Using templates from encoded strings</title> - <programlisting role="php"> - <![CDATA[ - <?php - $smarty->assign('foo','value'); - $template_string_urlencode = urlencode('display {$foo} here'); - $template_string_base64 = base64_encode('display {$foo} here'); - $smarty->display('eval:urlencode:'.$template_string_urlencode); // will decode string using urldecode() - $smarty->display('eval:base64:'.$template_string_base64); // will decode string using base64_decode() - ?> - ]]> - </programlisting> - <para>From within a Smarty template</para> - <programlisting> - <![CDATA[ - {include file="string:urlencode:$template_string_urlencode"} {* will decode string using urldecode() *} - {include file="eval:base64:$template_string_base64"} {* will decode string using base64_decode() *} - - ]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/resources/template-resources.xml
Deleted
@@ -1,176 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 4095 $ --> - <sect1 id="resasdources"> - <title>Resources</title> - <para> - The templates may come from a variety of sources. When you - <link linkend="api.display"><varname>display()</varname></link> or - <link linkend="api.fetch"><varname>fetch()</varname></link> - a template, or when you include a template from within another template, - you supply a resource type, followed by the appropriate path and template - name. If a resource is not explicitly given, the value of <link - linkend="variable.default.resource.type"> - <parameter>$default_resource_type</parameter></link> is assumed. - </para> - - <sect2 id="templates.from.elsewhere"> - <title>Templates from other sources</title> - <para> - You can retrieve templates using whatever possible source you can - access with PHP: databases, sockets, files, etc. You do this - by writing resource plugin functions and registering them with - Smarty. - </para> - - <para> - See <link linkend="plugins.resources">resource plugins</link> - section for more information on the functions you are supposed - to provide. - </para> - - <note> - <para> - Note that you cannot override the built-in - <literal>file:</literal> resource, but you can provide a resource - that fetches templates from the file system in some other way by - registering under another resource name. - </para> - </note> - <example> - <title>Using custom resources</title> - <programlisting role="php"> -<![CDATA[ -<?php - -/** - * MySQL Resource - * - * Resource Implementation based on the Custom API to use - * MySQL as the storage resource for Smarty's templates and configs. - * - * Table definition: - * <pre>CREATE TABLE IF NOT EXISTS `templates` ( - * `name` varchar(100) NOT NULL, - * `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - * `source` text, - * PRIMARY KEY (`name`) - * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre> - * - * Demo data: - * <pre>INSERT INTO `templates` (`name`, `modified`, `source`) VALUES ('test.tpl', "2010-12-25 22:00:00", '{$x="hello world"}{$x}');</pre> - * - * @package Resource-examples - * @author Rodney Rehm - */ -class Smarty_Resource_Mysql extends Smarty_Resource_Custom { - // PDO instance - protected $db; - // prepared fetch() statement - protected $fetch; - // prepared fetchTimestamp() statement - protected $mtime; - - public function __construct() { - try { - $this->db = new PDO("mysql:dbname=test;host=127.0.0.1", "smarty", "smarty"); - } catch (PDOException $e) { - throw new SmartyException('Mysql Resource failed: ' . $e->getMessage()); - } - $this->fetch = $this->db->prepare('SELECT modified, source FROM templates WHERE name = :name'); - $this->mtime = $this->db->prepare('SELECT modified FROM templates WHERE name = :name'); - } - - /** - * Fetch a template and its modification time from database - * - * @param string $name template name - * @param string $source template source - * @param integer $mtime template modification timestamp (epoch) - * @return void - */ - protected function fetch($name, &$source, &$mtime) - { - $this->fetch->execute(array('name' => $name)); - $row = $this->fetch->fetch(); - $this->fetch->closeCursor(); - if ($row) { - $source = $row['source']; - $mtime = strtotime($row['modified']); - } else { - $source = null; - $mtime = null; - } - } - - /** - * Fetch a template's modification time from database - * - * @note implementing this method is optional. Only implement it if modification times can be accessed faster than loading the comple template source. - * @param string $name template name - * @return integer timestamp (epoch) the template was modified - */ - protected function fetchTimestamp($name) { - $this->mtime->execute(array('name' => $name)); - $mtime = $this->mtime->fetchColumn(); - $this->mtime->closeCursor(); - return strtotime($mtime); - } -} - - -require_once 'libs/Smarty.class.php'; -$smarty = new Smarty(); -$smarty->registerResource('mysql', new Smarty_Resource_Mysql()); - -// using resource from php script -$smarty->display("mysql:index.tpl"); -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file='mysql:extras/navigation.tpl'} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Default template handler function</title> - <para> - You can specify a function that is used to retrieve template - contents in the event the template cannot be retrieved from its - resource. One use of this is to create templates that do not exist - on-the-fly. - </para> - - <para> - See also - <link linkend="advanced.features.streams"><varname>Streams</varname></link> - </para> - </sect2> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/en/programmers/smarty-constants.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3827 $ --> -<chapter id="smarty.constants"> -<title>Constants</title> - -<sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - This is the <emphasis role="bold">full system path</emphasis> - to the location of the Smarty - class files. If this is not defined in your script, then Smarty will attempt to - determine the appropriate value automatically. If defined, the path - <emphasis role="bold">must end with a trailing slash/</emphasis>. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// set path to Smarty directory *nix style -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// path to Smarty windows style -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// include the smarty class, note 'S' is upper case -require_once(SMARTY_DIR . 'Smarty.class.php'); -?> -]]> - </programlisting> - </example> - <para> - See also - <link linkend="language.variables.smarty.const"><parameter>$smarty.const</parameter></link> - and - <link - linkend="variable.php.handling"><parameter>$php_handling constants</parameter></link> - </para> -</sect1> - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/entities
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOamsa
Deleted
@@ -1,66 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOamsa PUBLIC - "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN"> - %ISOamsa; ---> -<!ENTITY cularr SDATA "[cularr]"--/curvearrowleft A: left curved arrow --> -<!ENTITY curarr SDATA "[curarr]"--/curvearrowright A: rt curved arrow --> -<!ENTITY dArr SDATA "[dArr ]"--/Downarrow A: down dbl arrow --> -<!ENTITY darr2 SDATA "[darr2 ]"--/downdownarrows A: two down arrows --> -<!ENTITY dharl SDATA "[dharl ]"--/downleftharpoon A: dn harpoon-left --> -<!ENTITY dharr SDATA "[dharr ]"--/downrightharpoon A: down harpoon-rt --> -<!ENTITY lAarr SDATA "[lAarr ]"--/Lleftarrow A: left triple arrow --> -<!ENTITY Larr SDATA "[Larr ]"--/twoheadleftarrow A:--> -<!ENTITY larr2 SDATA "[larr2 ]"--/leftleftarrows A: two left arrows --> -<!ENTITY larrhk SDATA "[larrhk]"--/hookleftarrow A: left arrow-hooked --> -<!ENTITY larrlp SDATA "[larrlp]"--/looparrowleft A: left arrow-looped --> -<!ENTITY larrtl SDATA "[larrtl]"--/leftarrowtail A: left arrow-tailed --> -<!ENTITY lhard SDATA "[lhard ]"--/leftharpoondown A: l harpoon-down --> -<!ENTITY lharu SDATA "[lharu ]"--/leftharpoonup A: left harpoon-up --> -<!ENTITY hArr SDATA "[hArr ]"--/Leftrightarrow A: l&r dbl arrow --> -<!ENTITY harr SDATA "[harr ]"--/leftrightarrow A: l&r arrow --> -<!ENTITY lrarr2 SDATA "[lrarr2]"--/leftrightarrows A: l arr over r arr --> -<!ENTITY rlarr2 SDATA "[rlarr2]"--/rightleftarrows A: r arr over l arr --> -<!ENTITY harrw SDATA "[harrw ]"--/leftrightsquigarrow A: l&r arr-wavy --> -<!ENTITY rlhar2 SDATA "[rlhar2]"--/rightleftharpoons A: r harp over l --> -<!ENTITY lrhar2 SDATA "[lrhar2]"--/leftrightharpoons A: l harp over r --> -<!ENTITY lsh SDATA "[lsh ]"--/Lsh A:--> -<!ENTITY map SDATA "[map ]"--/mapsto A:--> -<!ENTITY mumap SDATA "[mumap ]"--/multimap A:--> -<!ENTITY nearr SDATA "[nearr ]"--/nearrow A: NE pointing arrow --> -<!ENTITY nlArr SDATA "[nlArr ]"--/nLeftarrow A: not implied by --> -<!ENTITY nlarr SDATA "[nlarr ]"--/nleftarrow A: not left arrow --> -<!ENTITY nhArr SDATA "[nhArr ]"--/nLeftrightarrow A: not l&r dbl arr --> -<!ENTITY nharr SDATA "[nharr ]"--/nleftrightarrow A: not l&r arrow --> -<!ENTITY nrarr SDATA "[nrarr ]"--/nrightarrow A: not right arrow --> -<!ENTITY nrArr SDATA "[nrArr ]"--/nRightarrow A: not implies --> -<!ENTITY nwarr SDATA "[nwarr ]"--/nwarrow A: NW pointing arrow --> -<!ENTITY olarr SDATA "[olarr ]"--/circlearrowleft A: l arr in circle --> -<!ENTITY orarr SDATA "[orarr ]"--/circlearrowright A: r arr in circle --> -<!ENTITY rAarr SDATA "[rAarr ]"--/Rrightarrow A: right triple arrow --> -<!ENTITY Rarr SDATA "[Rarr ]"--/twoheadrightarrow A:--> -<!ENTITY rarr2 SDATA "[rarr2 ]"--/rightrightarrows A: two rt arrows --> -<!ENTITY rarrhk SDATA "[rarrhk]"--/hookrightarrow A: rt arrow-hooked --> -<!ENTITY rarrlp SDATA "[rarrlp]"--/looparrowright A: rt arrow-looped --> -<!ENTITY rarrtl SDATA "[rarrtl]"--/rightarrowtail A: rt arrow-tailed --> -<!ENTITY rarrw SDATA "[rarrw ]"--/squigarrowright A: rt arrow-wavy --> -<!ENTITY rhard SDATA "[rhard ]"--/rightharpoondown A: rt harpoon-down --> -<!ENTITY rharu SDATA "[rharu ]"--/rightharpoonup A: rt harpoon-up --> -<!ENTITY rsh SDATA "[rsh ]"--/Rsh A:--> -<!ENTITY drarr SDATA "[drarr ]"--/searrow A: downward rt arrow --> -<!ENTITY dlarr SDATA "[dlarr ]"--/swarrow A: downward l arrow --> -<!ENTITY uArr SDATA "[uArr ]"--/Uparrow A: up dbl arrow --> -<!ENTITY uarr2 SDATA "[uarr2 ]"--/upuparrows A: two up arrows --> -<!ENTITY vArr SDATA "[vArr ]"--/Updownarrow A: up&down dbl arrow --> -<!ENTITY varr SDATA "[varr ]"--/updownarrow A: up&down arrow --> -<!ENTITY uharl SDATA "[uharl ]"--/upleftharpoon A: up harpoon-left --> -<!ENTITY uharr SDATA "[uharr ]"--/uprightharpoon A: up harp-r--> -<!ENTITY xlArr SDATA "[xlArr ]"--/Longleftarrow A: long l dbl arrow --> -<!ENTITY xhArr SDATA "[xhArr ]"--/Longleftrightarrow A: long l&r dbl arr--> -<!ENTITY xharr SDATA "[xharr ]"--/longleftrightarrow A: long l&r arr --> -<!ENTITY xrArr SDATA "[xrArr ]"--/Longrightarrow A: long rt dbl arr -->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOamsb
Deleted
@@ -1,52 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOamsb PUBLIC - "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN"> - %ISOamsb; ---> -<!ENTITY amalg SDATA "[amalg ]"--/amalg B: amalgamation or coproduct--> -<!ENTITY Barwed SDATA "[Barwed]"--/doublebarwedge B: log and, dbl bar--> -<!ENTITY barwed SDATA "[barwed]"--/barwedge B: logical and, bar above--> -<!ENTITY Cap SDATA "[Cap ]"--/Cap /doublecap B: dbl intersection--> -<!ENTITY Cup SDATA "[Cup ]"--/Cup /doublecup B: dbl union--> -<!ENTITY cuvee SDATA "[cuvee ]"--/curlyvee B: curly logical or--> -<!ENTITY cuwed SDATA "[cuwed ]"--/curlywedge B: curly logical and--> -<!ENTITY diam SDATA "[diam ]"--/diamond B: open diamond--> -<!ENTITY divonx SDATA "[divonx]"--/divideontimes B: division on times--> -<!ENTITY intcal SDATA "[intcal]"--/intercal B: intercal--> -<!ENTITY lthree SDATA "[lthree]"--/leftthreetimes B:--> -<!ENTITY ltimes SDATA "[ltimes]"--/ltimes B: times sign, left closed--> -<!ENTITY minusb SDATA "[minusb]"--/boxminus B: minus sign in box--> -<!ENTITY oast SDATA "[oast ]"--/circledast B: asterisk in circle--> -<!ENTITY ocir SDATA "[ocir ]"--/circledcirc B: open dot in circle--> -<!ENTITY odash SDATA "[odash ]"--/circleddash B: hyphen in circle--> -<!ENTITY odot SDATA "[odot ]"--/odot B: middle dot in circle--> -<!ENTITY ominus SDATA "[ominus]"--/ominus B: minus sign in circle--> -<!ENTITY oplus SDATA "[oplus ]"--/oplus B: plus sign in circle--> -<!ENTITY osol SDATA "[osol ]"--/oslash B: solidus in circle--> -<!ENTITY otimes SDATA "[otimes]"--/otimes B: multiply sign in circle--> -<!ENTITY plusb SDATA "[plusb ]"--/boxplus B: plus sign in box--> -<!ENTITY plusdo SDATA "[plusdo]"--/dotplus B: plus sign, dot above--> -<!ENTITY rthree SDATA "[rthree]"--/rightthreetimes B:--> -<!ENTITY rtimes SDATA "[rtimes]"--/rtimes B: times sign, right closed--> -<!ENTITY sdot SDATA "[sdot ]"--/cdot B: small middle dot--> -<!ENTITY sdotb SDATA "[sdotb ]"--/dotsquare /boxdot B: small dot in box--> -<!ENTITY setmn SDATA "[setmn ]"--/setminus B: reverse solidus--> -<!ENTITY sqcap SDATA "[sqcap ]"--/sqcap B: square intersection--> -<!ENTITY sqcup SDATA "[sqcup ]"--/sqcup B: square union--> -<!ENTITY ssetmn SDATA "[ssetmn]"--/smallsetminus B: sm reverse solidus--> -<!ENTITY sstarf SDATA "[sstarf]"--/star B: small star, filled--> -<!ENTITY timesb SDATA "[timesb]"--/boxtimes B: multiply sign in box--> -<!ENTITY top SDATA "[top ]"--/top B: inverted perpendicular--> -<!ENTITY uplus SDATA "[uplus ]"--/uplus B: plus sign in union--> -<!ENTITY wreath SDATA "[wreath]"--/wr B: wreath product--> -<!ENTITY xcirc SDATA "[xcirc ]"--/bigcirc B: large circle--> -<!ENTITY xdtri SDATA "[xdtri ]"--/bigtriangledown B: big dn tri, open--> -<!ENTITY xutri SDATA "[xutri ]"--/bigtriangleup B: big up tri, open--> -<!ENTITY coprod SDATA "[coprod]"--/coprod L: coproduct operator--> -<!ENTITY prod SDATA "[prod ]"--/prod L: product operator--> -<!ENTITY sum SDATA "[sum ]"--/sum L: summation operator-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOamsc
Deleted
@@ -1,20 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOamsc PUBLIC - "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN"> - %ISOamsc; ---> -<!ENTITY rceil SDATA "[rceil ]"--/rceil C: right ceiling--> -<!ENTITY rfloor SDATA "[rfloor]"--/rfloor C: right floor--> -<!ENTITY rpargt SDATA "[rpargt]"--/rightparengtr C: right paren, gt--> -<!ENTITY urcorn SDATA "[urcorn]"--/urcorner C: upper right corner--> -<!ENTITY drcorn SDATA "[drcorn]"--/lrcorner C: downward right corner--> -<!ENTITY lceil SDATA "[lceil ]"--/lceil O: left ceiling--> -<!ENTITY lfloor SDATA "[lfloor]"--/lfloor O: left floor--> -<!ENTITY lpargt SDATA "[lpargt]"--/leftparengtr O: left parenthesis, gt--> -<!ENTITY ulcorn SDATA "[ulcorn]"--/ulcorner O: upper left corner--> -<!ENTITY dlcorn SDATA "[dlcorn]"--/llcorner O: downward left corner-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOamsn
Deleted
@@ -1,70 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOamsn PUBLIC - "ISO 8879:1986//ENTITIES - Added Math Symbols: Negated Relations//EN"> - %ISOamsn; ---> -<!ENTITY gnap SDATA "[gnap ]"--/gnapprox N: greater, not approximate--> -<!ENTITY gne SDATA "[gne ]"--/gneq N: greater, not equals--> -<!ENTITY gnE SDATA "[gnE ]"--/gneqq N: greater, not dbl equals--> -<!ENTITY gnsim SDATA "[gnsim ]"--/gnsim N: greater, not similar--> -<!ENTITY gvnE SDATA "[gvnE ]"--/gvertneqq N: gt, vert, not dbl eq--> -<!ENTITY lnap SDATA "[lnap ]"--/lnapprox N: less, not approximate--> -<!ENTITY lnE SDATA "[lnE ]"--/lneqq N: less, not double equals--> -<!ENTITY lne SDATA "[lne ]"--/lneq N: less, not equals--> -<!ENTITY lnsim SDATA "[lnsim ]"--/lnsim N: less, not similar--> -<!ENTITY lvnE SDATA "[lvnE ]"--/lvertneqq N: less, vert, not dbl eq--> -<!ENTITY nap SDATA "[nap ]"--/napprox N: not approximate--> -<!ENTITY ncong SDATA "[ncong ]"--/ncong N: not congruent with--> -<!ENTITY nequiv SDATA "[nequiv]"--/nequiv N: not identical with--> -<!ENTITY ngE SDATA "[ngE ]"--/ngeqq N: not greater, dbl equals--> -<!ENTITY nge SDATA "[nge ]"--/ngeq N: not greater-than-or-equal--> -<!ENTITY nges SDATA "[nges ]"--/ngeqslant N: not gt-or-eq, slanted--> -<!ENTITY ngt SDATA "[ngt ]"--/ngtr N: not greater-than--> -<!ENTITY nle SDATA "[nle ]"--/nleq N: not less-than-or-equal--> -<!ENTITY nlE SDATA "[nlE ]"--/nleqq N: not less, dbl equals--> -<!ENTITY nles SDATA "[nles ]"--/nleqslant N: not less-or-eq, slant--> -<!ENTITY nlt SDATA "[nlt ]"--/nless N: not less-than--> -<!ENTITY nltri SDATA "[nltri ]"--/ntriangleleft N: not left triangle--> -<!ENTITY nltrie SDATA "[nltrie]"--/ntrianglelefteq N: not l tri, eq--> -<!ENTITY nmid SDATA "[nmid ]"--/nmid--> -<!ENTITY npar SDATA "[npar ]"--/nparallel N: not parallel--> -<!ENTITY npr SDATA "[npr ]"--/nprec N: not precedes--> -<!ENTITY npre SDATA "[npre ]"--/npreceq N: not precedes, equals--> -<!ENTITY nrtri SDATA "[nrtri ]"--/ntriangleright N: not rt triangle--> -<!ENTITY nrtrie SDATA "[nrtrie]"--/ntrianglerighteq N: not r tri, eq--> -<!ENTITY nsc SDATA "[nsc ]"--/nsucc N: not succeeds--> -<!ENTITY nsce SDATA "[nsce ]"--/nsucceq N: not succeeds, equals--> -<!ENTITY nsim SDATA "[nsim ]"--/nsim N: not similar--> -<!ENTITY nsime SDATA "[nsime ]"--/nsimeq N: not similar, equals--> -<!ENTITY nsmid SDATA "[nsmid ]"--/nshortmid--> -<!ENTITY nspar SDATA "[nspar ]"--/nshortparallel N: not short par--> -<!ENTITY nsub SDATA "[nsub ]"--/nsubset N: not subset--> -<!ENTITY nsube SDATA "[nsube ]"--/nsubseteq N: not subset, equals--> -<!ENTITY nsubE SDATA "[nsubE ]"--/nsubseteqq N: not subset, dbl eq--> -<!ENTITY nsup SDATA "[nsup ]"--/nsupset N: not superset--> -<!ENTITY nsupE SDATA "[nsupE ]"--/nsupseteqq N: not superset, dbl eq--> -<!ENTITY nsupe SDATA "[nsupe ]"--/nsupseteq N: not superset, equals--> -<!ENTITY nvdash SDATA "[nvdash]"--/nvdash N: not vertical, dash--> -<!ENTITY nvDash SDATA "[nvDash]"--/nvDash N: not vertical, dbl dash--> -<!ENTITY nVDash SDATA "[nVDash]"--/nVDash N: not dbl vert, dbl dash--> -<!ENTITY nVdash SDATA "[nVdash]"--/nVdash N: not dbl vertical, dash--> -<!ENTITY prnap SDATA "[prnap ]"--/precnapprox N: precedes, not approx--> -<!ENTITY prnE SDATA "[prnE ]"--/precneqq N: precedes, not dbl eq--> -<!ENTITY prnsim SDATA "[prnsim]"--/precnsim N: precedes, not similar--> -<!ENTITY scnap SDATA "[scnap ]"--/succnapprox N: succeeds, not approx--> -<!ENTITY scnE SDATA "[scnE ]"--/succneqq N: succeeds, not dbl eq--> -<!ENTITY scnsim SDATA "[scnsim]"--/succnsim N: succeeds, not similar--> -<!ENTITY subne SDATA "[subne ]"--/subsetneq N: subset, not equals--> -<!ENTITY subnE SDATA "[subnE ]"--/subsetneqq N: subset, not dbl eq--> -<!ENTITY supne SDATA "[supne ]"--/supsetneq N: superset, not equals--> -<!ENTITY supnE SDATA "[supnE ]"--/supsetneqq N: superset, not dbl eq--> -<!ENTITY vsubnE SDATA "[vsubnE]"--/subsetneqq N: subset not dbl eq, var--> -<!ENTITY vsubne SDATA "[vsubne]"--/subsetneq N: subset, not eq, var--> -<!ENTITY vsupne SDATA "[vsupne]"--/supsetneq N: superset, not eq, var--> -<!ENTITY vsupnE SDATA "[vsupnE]"--/supsetneqq N: super not dbl eq, var-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOamso
Deleted
@@ -1,29 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOamso PUBLIC - "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN"> - %ISOamso; ---> -<!ENTITY ang SDATA "[ang ]"--/angle - angle--> -<!ENTITY angmsd SDATA "[angmsd]"--/measuredangle - angle-measured--> -<!ENTITY beth SDATA "[beth ]"--/beth - beth, Hebrew--> -<!ENTITY bprime SDATA "[bprime]"--/backprime - reverse prime--> -<!ENTITY comp SDATA "[comp ]"--/complement - complement sign--> -<!ENTITY daleth SDATA "[daleth]"--/daleth - daleth, Hebrew--> -<!ENTITY ell SDATA "[ell ]"--/ell - cursive small l--> -<!ENTITY empty SDATA "[empty ]"--/emptyset /varnothing =small o, slash--> -<!ENTITY gimel SDATA "[gimel ]"--/gimel - gimel, Hebrew--> -<!ENTITY image SDATA "[image ]"--/Im - imaginary--> -<!ENTITY inodot SDATA "[inodot]"--/imath =small i, no dot--> -<!ENTITY jnodot SDATA "[jnodot]"--/jmath - small j, no dot--> -<!ENTITY nexist SDATA "[nexist]"--/nexists - negated exists--> -<!ENTITY oS SDATA "[oS ]"--/circledS - capital S in circle--> -<!ENTITY planck SDATA "[planck]"--/hbar /hslash - Planck's over 2pi--> -<!ENTITY real SDATA "[real ]"--/Re - real--> -<!ENTITY sbsol SDATA "[sbsol ]"--/sbs - short reverse solidus--> -<!ENTITY vprime SDATA "[vprime]"--/varprime - prime, variant--> -<!ENTITY weierp SDATA "[weierp]"--/wp - Weierstrass p-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOamsr
Deleted
@@ -1,94 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOamsr PUBLIC - "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN"> - %ISOamsr; ---> -<!ENTITY ape SDATA "[ape ]"--/approxeq R: approximate, equals--> -<!ENTITY asymp SDATA "[asymp ]"--/asymp R: asymptotically equal to--> -<!ENTITY bcong SDATA "[bcong ]"--/backcong R: reverse congruent--> -<!ENTITY bepsi SDATA "[bepsi ]"--/backepsilon R: such that--> -<!ENTITY bowtie SDATA "[bowtie]"--/bowtie R:--> -<!ENTITY bsim SDATA "[bsim ]"--/backsim R: reverse similar--> -<!ENTITY bsime SDATA "[bsime ]"--/backsimeq R: reverse similar, eq--> -<!ENTITY bump SDATA "[bump ]"--/Bumpeq R: bumpy equals--> -<!ENTITY bumpe SDATA "[bumpe ]"--/bumpeq R: bumpy equals, equals--> -<!ENTITY cire SDATA "[cire ]"--/circeq R: circle, equals--> -<!ENTITY colone SDATA "[colone]"--/coloneq R: colon, equals--> -<!ENTITY cuepr SDATA "[cuepr ]"--/curlyeqprec R: curly eq, precedes--> -<!ENTITY cuesc SDATA "[cuesc ]"--/curlyeqsucc R: curly eq, succeeds--> -<!ENTITY cupre SDATA "[cupre ]"--/curlypreceq R: curly precedes, eq--> -<!ENTITY dashv SDATA "[dashv ]"--/dashv R: dash, vertical--> -<!ENTITY ecir SDATA "[ecir ]"--/eqcirc R: circle on equals sign--> -<!ENTITY ecolon SDATA "[ecolon]"--/eqcolon R: equals, colon--> -<!ENTITY eDot SDATA "[eDot ]"--/doteqdot /Doteq R: eq, even dots--> -<!ENTITY esdot SDATA "[esdot ]"--/doteq R: equals, single dot above--> -<!ENTITY efDot SDATA "[efDot ]"--/fallingdotseq R: eq, falling dots--> -<!ENTITY egs SDATA "[egs ]"--/eqslantgtr R: equal-or-gtr, slanted--> -<!ENTITY els SDATA "[els ]"--/eqslantless R: eq-or-less, slanted--> -<!ENTITY erDot SDATA "[erDot ]"--/risingdotseq R: eq, rising dots--> -<!ENTITY fork SDATA "[fork ]"--/pitchfork R: pitchfork--> -<!ENTITY frown SDATA "[frown ]"--/frown R: down curve--> -<!ENTITY gap SDATA "[gap ]"--/gtrapprox R: greater, approximate--> -<!ENTITY gsdot SDATA "[gsdot ]"--/gtrdot R: greater than, single dot--> -<!ENTITY gE SDATA "[gE ]"--/geqq R: greater, double equals--> -<!ENTITY gel SDATA "[gel ]"--/gtreqless R: greater, equals, less--> -<!ENTITY gEl SDATA "[gEl ]"--/gtreqqless R: gt, dbl equals, less--> -<!ENTITY ges SDATA "[ges ]"--/geqslant R: gt-or-equal, slanted--> -<!ENTITY Gg SDATA "[Gg ]"--/ggg /Gg /gggtr R: triple gtr-than--> -<!ENTITY gl SDATA "[gl ]"--/gtrless R: greater, less--> -<!ENTITY gsim SDATA "[gsim ]"--/gtrsim R: greater, similar--> -<!ENTITY Gt SDATA "[Gt ]"--/gg R: dbl greater-than sign--> -<!ENTITY lap SDATA "[lap ]"--/lessapprox R: less, approximate--> -<!ENTITY ldot SDATA "[ldot ]"--/lessdot R: less than, with dot--> -<!ENTITY lE SDATA "[lE ]"--/leqq R: less, double equals--> -<!ENTITY lEg SDATA "[lEg ]"--/lesseqqgtr R: less, dbl eq, greater--> -<!ENTITY leg SDATA "[leg ]"--/lesseqgtr R: less, eq, greater--> -<!ENTITY les SDATA "[les ]"--/leqslant R: less-than-or-eq, slant--> -<!ENTITY lg SDATA "[lg ]"--/lessgtr R: less, greater--> -<!ENTITY Ll SDATA "[Ll ]"--/Ll /lll /llless R: triple less-than--> -<!ENTITY lsim SDATA "[lsim ]"--/lesssim R: less, similar--> -<!ENTITY Lt SDATA "[Lt ]"--/ll R: double less-than sign--> -<!ENTITY ltrie SDATA "[ltrie ]"--/trianglelefteq R: left triangle, eq--> -<!ENTITY mid SDATA "[mid ]"--/mid R:--> -<!ENTITY models SDATA "[models]"--/models R:--> -<!ENTITY pr SDATA "[pr ]"--/prec R: precedes--> -<!ENTITY prap SDATA "[prap ]"--/precapprox R: precedes, approximate--> -<!ENTITY pre SDATA "[pre ]"--/preceq R: precedes, equals--> -<!ENTITY prsim SDATA "[prsim ]"--/precsim R: precedes, similar--> -<!ENTITY rtrie SDATA "[rtrie ]"--/trianglerighteq R: right tri, eq--> -<!ENTITY samalg SDATA "[samalg]"--/smallamalg R: small amalg--> -<!ENTITY sc SDATA "[sc ]"--/succ R: succeeds--> -<!ENTITY scap SDATA "[scap ]"--/succapprox R: succeeds, approximate--> -<!ENTITY sccue SDATA "[sccue ]"--/succcurlyeq R: succeeds, curly eq--> -<!ENTITY sce SDATA "[sce ]"--/succeq R: succeeds, equals--> -<!ENTITY scsim SDATA "[scsim ]"--/succsim R: succeeds, similar--> -<!ENTITY sfrown SDATA "[sfrown]"--/smallfrown R: small down curve--> -<!ENTITY smid SDATA "[smid ]"--/shortmid R:--> -<!ENTITY smile SDATA "[smile ]"--/smile R: up curve--> -<!ENTITY spar SDATA "[spar ]"--/shortparallel R: short parallel--> -<!ENTITY sqsub SDATA "[sqsub ]"--/sqsubset R: square subset--> -<!ENTITY sqsube SDATA "[sqsube]"--/sqsubseteq R: square subset, equals--> -<!ENTITY sqsup SDATA "[sqsup ]"--/sqsupset R: square superset--> -<!ENTITY sqsupe SDATA "[sqsupe]"--/sqsupseteq R: square superset, eq--> -<!ENTITY ssmile SDATA "[ssmile]"--/smallsmile R: small up curve--> -<!ENTITY Sub SDATA "[Sub ]"--/Subset R: double subset--> -<!ENTITY subE SDATA "[subE ]"--/subseteqq R: subset, dbl equals--> -<!ENTITY Sup SDATA "[Sup ]"--/Supset R: dbl superset--> -<!ENTITY supE SDATA "[supE ]"--/supseteqq R: superset, dbl equals--> -<!ENTITY thkap SDATA "[thkap ]"--/thickapprox R: thick approximate--> -<!ENTITY thksim SDATA "[thksim]"--/thicksim R: thick similar--> -<!ENTITY trie SDATA "[trie ]"--/triangleq R: triangle, equals--> -<!ENTITY twixt SDATA "[twixt ]"--/between R: between--> -<!ENTITY vdash SDATA "[vdash ]"--/vdash R: vertical, dash--> -<!ENTITY Vdash SDATA "[Vdash ]"--/Vdash R: dbl vertical, dash--> -<!ENTITY vDash SDATA "[vDash ]"--/vDash R: vertical, dbl dash--> -<!ENTITY veebar SDATA "[veebar]"--/veebar R: logical or, bar below--> -<!ENTITY vltri SDATA "[vltri ]"--/vartriangleleft R: l tri, open, var--> -<!ENTITY vprop SDATA "[vprop ]"--/varpropto R: proportional, variant--> -<!ENTITY vrtri SDATA "[vrtri ]"--/vartriangleright R: r tri, open, var--> -<!ENTITY Vvdash SDATA "[Vvdash]"--/Vvdash R: triple vertical, dash-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISObox
Deleted
@@ -1,62 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISObox PUBLIC - "ISO 8879:1986//ENTITIES Box and Line Drawing//EN"> - %ISObox; ---> -<!-- All names are in the form: box1234, where: - box = constants that identify a box drawing entity. - 1&2 = v, V, u, U, d, D, Ud, or uD, as follows: - v = vertical line for full height. - u = upper half of vertical line. - d = downward (lower) half of vertical line. - 3&4 = h, H, l, L, r, R, Lr, or lR, as follows: - h = horizontal line for full width. - l = left half of horizontal line. - r = right half of horizontal line. - In all cases, an upper-case letter means a double or heavy line. ---> -<!ENTITY boxh SDATA "[boxh ]"--horizontal line --> -<!ENTITY boxv SDATA "[boxv ]"--vertical line--> -<!ENTITY boxur SDATA "[boxur ]"--upper right quadrant--> -<!ENTITY boxul SDATA "[boxul ]"--upper left quadrant--> -<!ENTITY boxdl SDATA "[boxdl ]"--lower left quadrant--> -<!ENTITY boxdr SDATA "[boxdr ]"--lower right quadrant--> -<!ENTITY boxvr SDATA "[boxvr ]"--upper and lower right quadrants--> -<!ENTITY boxhu SDATA "[boxhu ]"--upper left and right quadrants--> -<!ENTITY boxvl SDATA "[boxvl ]"--upper and lower left quadrants--> -<!ENTITY boxhd SDATA "[boxhd ]"--lower left and right quadrants--> -<!ENTITY boxvh SDATA "[boxvh ]"--all four quadrants--> -<!ENTITY boxvR SDATA "[boxvR ]"--upper and lower right quadrants--> -<!ENTITY boxhU SDATA "[boxhU ]"--upper left and right quadrants--> -<!ENTITY boxvL SDATA "[boxvL ]"--upper and lower left quadrants--> -<!ENTITY boxhD SDATA "[boxhD ]"--lower left and right quadrants--> -<!ENTITY boxvH SDATA "[boxvH ]"--all four quadrants--> -<!ENTITY boxH SDATA "[boxH ]"--horizontal line--> -<!ENTITY boxV SDATA "[boxV ]"--vertical line--> -<!ENTITY boxUR SDATA "[boxUR ]"--upper right quadrant--> -<!ENTITY boxUL SDATA "[boxUL ]"--upper left quadrant--> -<!ENTITY boxDL SDATA "[boxDL ]"--lower left quadrant--> -<!ENTITY boxDR SDATA "[boxDR ]"--lower right quadrant--> -<!ENTITY boxVR SDATA "[boxVR ]"--upper and lower right quadrants--> -<!ENTITY boxHU SDATA "[boxHU ]"--upper left and right quadrants--> -<!ENTITY boxVL SDATA "[boxVL ]"--upper and lower left quadrants--> -<!ENTITY boxHD SDATA "[boxHD ]"--lower left and right quadrants--> -<!ENTITY boxVH SDATA "[boxVH ]"--all four quadrants--> -<!ENTITY boxVr SDATA "[boxVr ]"--upper and lower right quadrants--> -<!ENTITY boxHu SDATA "[boxHu ]"--upper left and right quadrants--> -<!ENTITY boxVl SDATA "[boxVl ]"--upper and lower left quadrants--> -<!ENTITY boxHd SDATA "[boxHd ]"--lower left and right quadrants--> -<!ENTITY boxVh SDATA "[boxVh ]"--all four quadrants--> -<!ENTITY boxuR SDATA "[boxuR ]"--upper right quadrant--> -<!ENTITY boxUl SDATA "[boxUl ]"--upper left quadrant--> -<!ENTITY boxdL SDATA "[boxdL ]"--lower left quadrant--> -<!ENTITY boxDr SDATA "[boxDr ]"--lower right quadrant--> -<!ENTITY boxUr SDATA "[boxUr ]"--upper right quadrant--> -<!ENTITY boxuL SDATA "[boxuL ]"--upper left quadrant--> -<!ENTITY boxDl SDATA "[boxDl ]"--lower left quadrant--> -<!ENTITY boxdR SDATA "[boxdR ]"--lower right quadrant-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOcyr1
Deleted
@@ -1,77 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOcyr1 PUBLIC - "ISO 8879:1986//ENTITIES Russian Cyrillic//EN"> - %ISOcyr1; ---> -<!ENTITY acy SDATA "[acy ]"--=small a, Cyrillic--> -<!ENTITY Acy SDATA "[Acy ]"--=capital A, Cyrillic--> -<!ENTITY bcy SDATA "[bcy ]"--=small be, Cyrillic--> -<!ENTITY Bcy SDATA "[Bcy ]"--=capital BE, Cyrillic--> -<!ENTITY vcy SDATA "[vcy ]"--=small ve, Cyrillic--> -<!ENTITY Vcy SDATA "[Vcy ]"--=capital VE, Cyrillic--> -<!ENTITY gcy SDATA "[gcy ]"--=small ghe, Cyrillic--> -<!ENTITY Gcy SDATA "[Gcy ]"--=capital GHE, Cyrillic--> -<!ENTITY dcy SDATA "[dcy ]"--=small de, Cyrillic--> -<!ENTITY Dcy SDATA "[Dcy ]"--=capital DE, Cyrillic--> -<!ENTITY iecy SDATA "[iecy ]"--=small ie, Cyrillic--> -<!ENTITY IEcy SDATA "[IEcy ]"--=capital IE, Cyrillic--> -<!ENTITY iocy SDATA "[iocy ]"--=small io, Russian--> -<!ENTITY IOcy SDATA "[IOcy ]"--=capital IO, Russian--> -<!ENTITY zhcy SDATA "[zhcy ]"--=small zhe, Cyrillic--> -<!ENTITY ZHcy SDATA "[ZHcy ]"--=capital ZHE, Cyrillic--> -<!ENTITY zcy SDATA "[zcy ]"--=small ze, Cyrillic--> -<!ENTITY Zcy SDATA "[Zcy ]"--=capital ZE, Cyrillic--> -<!ENTITY icy SDATA "[icy ]"--=small i, Cyrillic--> -<!ENTITY Icy SDATA "[Icy ]"--=capital I, Cyrillic--> -<!ENTITY jcy SDATA "[jcy ]"--=small short i, Cyrillic--> -<!ENTITY Jcy SDATA "[Jcy ]"--=capital short I, Cyrillic--> -<!ENTITY kcy SDATA "[kcy ]"--=small ka, Cyrillic--> -<!ENTITY Kcy SDATA "[Kcy ]"--=capital KA, Cyrillic--> -<!ENTITY lcy SDATA "[lcy ]"--=small el, Cyrillic--> -<!ENTITY Lcy SDATA "[Lcy ]"--=capital EL, Cyrillic--> -<!ENTITY mcy SDATA "[mcy ]"--=small em, Cyrillic--> -<!ENTITY Mcy SDATA "[Mcy ]"--=capital EM, Cyrillic--> -<!ENTITY ncy SDATA "[ncy ]"--=small en, Cyrillic--> -<!ENTITY Ncy SDATA "[Ncy ]"--=capital EN, Cyrillic--> -<!ENTITY ocy SDATA "[ocy ]"--=small o, Cyrillic--> -<!ENTITY Ocy SDATA "[Ocy ]"--=capital O, Cyrillic--> -<!ENTITY pcy SDATA "[pcy ]"--=small pe, Cyrillic--> -<!ENTITY Pcy SDATA "[Pcy ]"--=capital PE, Cyrillic--> -<!ENTITY rcy SDATA "[rcy ]"--=small er, Cyrillic--> -<!ENTITY Rcy SDATA "[Rcy ]"--=capital ER, Cyrillic--> -<!ENTITY scy SDATA "[scy ]"--=small es, Cyrillic--> -<!ENTITY Scy SDATA "[Scy ]"--=capital ES, Cyrillic--> -<!ENTITY tcy SDATA "[tcy ]"--=small te, Cyrillic--> -<!ENTITY Tcy SDATA "[Tcy ]"--=capital TE, Cyrillic--> -<!ENTITY ucy SDATA "[ucy ]"--=small u, Cyrillic--> -<!ENTITY Ucy SDATA "[Ucy ]"--=capital U, Cyrillic--> -<!ENTITY fcy SDATA "[fcy ]"--=small ef, Cyrillic--> -<!ENTITY Fcy SDATA "[Fcy ]"--=capital EF, Cyrillic--> -<!ENTITY khcy SDATA "[khcy ]"--=small ha, Cyrillic--> -<!ENTITY KHcy SDATA "[KHcy ]"--=capital HA, Cyrillic--> -<!ENTITY tscy SDATA "[tscy ]"--=small tse, Cyrillic--> -<!ENTITY TScy SDATA "[TScy ]"--=capital TSE, Cyrillic--> -<!ENTITY chcy SDATA "[chcy ]"--=small che, Cyrillic--> -<!ENTITY CHcy SDATA "[CHcy ]"--=capital CHE, Cyrillic--> -<!ENTITY shcy SDATA "[shcy ]"--=small sha, Cyrillic--> -<!ENTITY SHcy SDATA "[SHcy ]"--=capital SHA, Cyrillic--> -<!ENTITY shchcy SDATA "[shchcy]"--=small shcha, Cyrillic--> -<!ENTITY SHCHcy SDATA "[SHCHcy]"--=capital SHCHA, Cyrillic--> -<!ENTITY hardcy SDATA "[hardcy]"--=small hard sign, Cyrillic--> -<!ENTITY HARDcy SDATA "[HARDcy]"--=capital HARD sign, Cyrillic--> -<!ENTITY ycy SDATA "[ycy ]"--=small yeru, Cyrillic--> -<!ENTITY Ycy SDATA "[Ycy ]"--=capital YERU, Cyrillic--> -<!ENTITY softcy SDATA "[softcy]"--=small soft sign, Cyrillic--> -<!ENTITY SOFTcy SDATA "[SOFTcy]"--=capital SOFT sign, Cyrillic--> -<!ENTITY ecy SDATA "[ecy ]"--=small e, Cyrillic--> -<!ENTITY Ecy SDATA "[Ecy ]"--=capital E, Cyrillic--> -<!ENTITY yucy SDATA "[yucy ]"--=small yu, Cyrillic--> -<!ENTITY YUcy SDATA "[YUcy ]"--=capital YU, Cyrillic--> -<!ENTITY yacy SDATA "[yacy ]"--=small ya, Cyrillic--> -<!ENTITY YAcy SDATA "[YAcy ]"--=capital YA, Cyrillic--> -<!ENTITY numero SDATA "[numero]"--=numero sign-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOcyr2
Deleted
@@ -1,36 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOcyr2 PUBLIC - "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN"> - %ISOcyr2; ---> -<!ENTITY djcy SDATA "[djcy ]"--=small dje, Serbian--> -<!ENTITY DJcy SDATA "[DJcy ]"--=capital DJE, Serbian--> -<!ENTITY gjcy SDATA "[gjcy ]"--=small gje, Macedonian--> -<!ENTITY GJcy SDATA "[GJcy ]"--=capital GJE Macedonian--> -<!ENTITY jukcy SDATA "[jukcy ]"--=small je, Ukrainian--> -<!ENTITY Jukcy SDATA "[Jukcy ]"--=capital JE, Ukrainian--> -<!ENTITY dscy SDATA "[dscy ]"--=small dse, Macedonian--> -<!ENTITY DScy SDATA "[DScy ]"--=capital DSE, Macedonian--> -<!ENTITY iukcy SDATA "[iukcy ]"--=small i, Ukrainian--> -<!ENTITY Iukcy SDATA "[Iukcy ]"--=capital I, Ukrainian--> -<!ENTITY yicy SDATA "[yicy ]"--=small yi, Ukrainian--> -<!ENTITY YIcy SDATA "[YIcy ]"--=capital YI, Ukrainian--> -<!ENTITY jsercy SDATA "[jsercy]"--=small je, Serbian--> -<!ENTITY Jsercy SDATA "[Jsercy]"--=capital JE, Serbian--> -<!ENTITY ljcy SDATA "[ljcy ]"--=small lje, Serbian--> -<!ENTITY LJcy SDATA "[LJcy ]"--=capital LJE, Serbian--> -<!ENTITY njcy SDATA "[njcy ]"--=small nje, Serbian--> -<!ENTITY NJcy SDATA "[NJcy ]"--=capital NJE, Serbian--> -<!ENTITY tshcy SDATA "[tshcy ]"--=small tshe, Serbian--> -<!ENTITY TSHcy SDATA "[TSHcy ]"--=capital TSHE, Serbian--> -<!ENTITY kjcy SDATA "[kjcy ]"--=small kje Macedonian--> -<!ENTITY KJcy SDATA "[KJcy ]"--=capital KJE, Macedonian--> -<!ENTITY ubrcy SDATA "[ubrcy ]"--=small u, Byelorussian--> -<!ENTITY Ubrcy SDATA "[Ubrcy ]"--=capital U, Byelorussian--> -<!ENTITY dzcy SDATA "[dzcy ]"--=small dze, Serbian--> -<!ENTITY DZcy SDATA "[DZcy ]"--=capital dze, Serbian-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOdia
Deleted
@@ -1,24 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOdia PUBLIC - "ISO 8879:1986//ENTITIES Diacritical Marks//EN"> - %ISOdia; ---> -<!ENTITY acute SDATA "[acute ]"--=acute accent--> -<!ENTITY breve SDATA "[breve ]"--=breve--> -<!ENTITY caron SDATA "[caron ]"--=caron--> -<!ENTITY cedil SDATA "[cedil ]"--=cedilla--> -<!ENTITY circ SDATA "[circ ]"--=circumflex accent--> -<!ENTITY dblac SDATA "[dblac ]"--=double acute accent--> -<!ENTITY die SDATA "[die ]"--=dieresis--> -<!ENTITY dot SDATA "[dot ]"--=dot above--> -<!ENTITY grave SDATA "[grave ]"--=grave accent--> -<!ENTITY macr SDATA "[macr ]"--=macron--> -<!ENTITY ogon SDATA "[ogon ]"--=ogonek--> -<!ENTITY ring SDATA "[ring ]"--=ring--> -<!ENTITY tilde SDATA "[tilde ]"--=tilde--> -<!ENTITY uml SDATA "[uml ]"--=umlaut mark-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOgrk1
Deleted
@@ -1,59 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOgrk1 PUBLIC - "ISO 8879:1986//ENTITIES Greek Letters//EN"> - %ISOgrk1; ---> -<!ENTITY agr SDATA "[agr ]"--=small alpha, Greek--> -<!ENTITY Agr SDATA "[Agr ]"--=capital Alpha, Greek--> -<!ENTITY bgr SDATA "[bgr ]"--=small beta, Greek--> -<!ENTITY Bgr SDATA "[Bgr ]"--=capital Beta, Greek--> -<!ENTITY ggr SDATA "[ggr ]"--=small gamma, Greek--> -<!ENTITY Ggr SDATA "[Ggr ]"--=capital Gamma, Greek--> -<!ENTITY dgr SDATA "[dgr ]"--=small delta, Greek--> -<!ENTITY Dgr SDATA "[Dgr ]"--=capital Delta, Greek--> -<!ENTITY egr SDATA "[egr ]"--=small epsilon, Greek--> -<!ENTITY Egr SDATA "[Egr ]"--=capital Epsilon, Greek--> -<!ENTITY zgr SDATA "[zgr ]"--=small zeta, Greek--> -<!ENTITY Zgr SDATA "[Zgr ]"--=capital Zeta, Greek--> -<!ENTITY eegr SDATA "[eegr ]"--=small eta, Greek--> -<!ENTITY EEgr SDATA "[EEgr ]"--=capital Eta, Greek--> -<!ENTITY thgr SDATA "[thgr ]"--=small theta, Greek--> -<!ENTITY THgr SDATA "[THgr ]"--=capital Theta, Greek--> -<!ENTITY igr SDATA "[igr ]"--=small iota, Greek--> -<!ENTITY Igr SDATA "[Igr ]"--=capital Iota, Greek--> -<!ENTITY kgr SDATA "[kgr ]"--=small kappa, Greek--> -<!ENTITY Kgr SDATA "[Kgr ]"--=capital Kappa, Greek--> -<!ENTITY lgr SDATA "[lgr ]"--=small lambda, Greek--> -<!ENTITY Lgr SDATA "[Lgr ]"--=capital Lambda, Greek--> -<!ENTITY mgr SDATA "[mgr ]"--=small mu, Greek--> -<!ENTITY Mgr SDATA "[Mgr ]"--=capital Mu, Greek--> -<!ENTITY ngr SDATA "[ngr ]"--=small nu, Greek--> -<!ENTITY Ngr SDATA "[Ngr ]"--=capital Nu, Greek--> -<!ENTITY xgr SDATA "[xgr ]"--=small xi, Greek--> -<!ENTITY Xgr SDATA "[Xgr ]"--=capital Xi, Greek--> -<!ENTITY ogr SDATA "[ogr ]"--=small omicron, Greek--> -<!ENTITY Ogr SDATA "[Ogr ]"--=capital Omicron, Greek--> -<!ENTITY pgr SDATA "[pgr ]"--=small pi, Greek--> -<!ENTITY Pgr SDATA "[Pgr ]"--=capital Pi, Greek--> -<!ENTITY rgr SDATA "[rgr ]"--=small rho, Greek--> -<!ENTITY Rgr SDATA "[Rgr ]"--=capital Rho, Greek--> -<!ENTITY sgr SDATA "[sgr ]"--=small sigma, Greek--> -<!ENTITY Sgr SDATA "[Sgr ]"--=capital Sigma, Greek--> -<!ENTITY sfgr SDATA "[sfgr ]"--=final small sigma, Greek--> -<!ENTITY tgr SDATA "[tgr ]"--=small tau, Greek--> -<!ENTITY Tgr SDATA "[Tgr ]"--=capital Tau, Greek--> -<!ENTITY ugr SDATA "[ugr ]"--=small upsilon, Greek--> -<!ENTITY Ugr SDATA "[Ugr ]"--=capital Upsilon, Greek--> -<!ENTITY phgr SDATA "[phgr ]"--=small phi, Greek--> -<!ENTITY PHgr SDATA "[PHgr ]"--=capital Phi, Greek--> -<!ENTITY khgr SDATA "[khgr ]"--=small chi, Greek--> -<!ENTITY KHgr SDATA "[KHgr ]"--=capital Chi, Greek--> -<!ENTITY psgr SDATA "[psgr ]"--=small psi, Greek--> -<!ENTITY PSgr SDATA "[PSgr ]"--=capital Psi, Greek--> -<!ENTITY ohgr SDATA "[ohgr ]"--=small omega, Greek--> -<!ENTITY OHgr SDATA "[OHgr ]"--=capital Omega, Greek-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOgrk2
Deleted
@@ -1,30 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOgrk2 PUBLIC - "ISO 8879:1986//ENTITIES Monotoniko Greek//EN"> - %ISOgrk2; ---> -<!ENTITY aacgr SDATA "[aacgr ]"--=small alpha, accent, Greek--> -<!ENTITY Aacgr SDATA "[Aacgr ]"--=capital Alpha, accent, Greek--> -<!ENTITY eacgr SDATA "[eacgr ]"--=small epsilon, accent, Greek--> -<!ENTITY Eacgr SDATA "[Eacgr ]"--=capital Epsilon, accent, Greek--> -<!ENTITY eeacgr SDATA "[eeacgr]"--=small eta, accent, Greek--> -<!ENTITY EEacgr SDATA "[EEacgr]"--=capital Eta, accent, Greek--> -<!ENTITY idigr SDATA "[idigr ]"--=small iota, dieresis, Greek--> -<!ENTITY Idigr SDATA "[Idigr ]"--=capital Iota, dieresis, Greek--> -<!ENTITY iacgr SDATA "[iacgr ]"--=small iota, accent, Greek--> -<!ENTITY Iacgr SDATA "[Iacgr ]"--=capital Iota, accent, Greek--> -<!ENTITY idiagr SDATA "[idiagr]"--=small iota, dieresis, accent, Greek--> -<!ENTITY oacgr SDATA "[oacgr ]"--=small omicron, accent, Greek--> -<!ENTITY Oacgr SDATA "[Oacgr ]"--=capital Omicron, accent, Greek--> -<!ENTITY udigr SDATA "[udigr ]"--=small upsilon, dieresis, Greek--> -<!ENTITY Udigr SDATA "[Udigr ]"--=capital Upsilon, dieresis, Greek--> -<!ENTITY uacgr SDATA "[uacgr ]"--=small upsilon, accent, Greek--> -<!ENTITY Uacgr SDATA "[Uacgr ]"--=capital Upsilon, accent, Greek--> -<!ENTITY udiagr SDATA "[udiagr]"--=small upsilon, dieresis, accent, Greek--> -<!ENTITY ohacgr SDATA "[ohacgr]"--=small omega, accent, Greek--> -<!ENTITY OHacgr SDATA "[OHacgr]"--=capital Omega, accent, Greek-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOgrk3
Deleted
@@ -1,53 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOgrk3 PUBLIC - "ISO 8879:1986//ENTITIES Greek Symbols//EN"> - %ISOgrk3; ---> -<!ENTITY alpha SDATA "[alpha ]"--=small alpha, Greek--> -<!ENTITY beta SDATA "[beta ]"--=small beta, Greek--> -<!ENTITY gamma SDATA "[gamma ]"--=small gamma, Greek--> -<!ENTITY Gamma SDATA "[Gamma ]"--=capital Gamma, Greek--> -<!ENTITY gammad SDATA "[gammad]"--/digamma--> -<!ENTITY delta SDATA "[delta ]"--=small delta, Greek--> -<!ENTITY Delta SDATA "[Delta ]"--=capital Delta, Greek--> -<!ENTITY epsi SDATA "[epsi ]"--=small epsilon, Greek--> -<!ENTITY epsiv SDATA "[epsiv ]"--/varepsilon--> -<!ENTITY epsis SDATA "[epsis ]"--/straightepsilon--> -<!ENTITY zeta SDATA "[zeta ]"--=small zeta, Greek--> -<!ENTITY eta SDATA "[eta ]"--=small eta, Greek--> -<!ENTITY thetas SDATA "[thetas]"--straight theta--> -<!ENTITY Theta SDATA "[Theta ]"--=capital Theta, Greek--> -<!ENTITY thetav SDATA "[thetav]"--/vartheta - curly or open theta--> -<!ENTITY iota SDATA "[iota ]"--=small iota, Greek--> -<!ENTITY kappa SDATA "[kappa ]"--=small kappa, Greek--> -<!ENTITY kappav SDATA "[kappav]"--/varkappa--> -<!ENTITY lambda SDATA "[lambda]"--=small lambda, Greek--> -<!ENTITY Lambda SDATA "[Lambda]"--=capital Lambda, Greek--> -<!ENTITY mu SDATA "[mu ]"--=small mu, Greek--> -<!ENTITY nu SDATA "[nu ]"--=small nu, Greek--> -<!ENTITY xi SDATA "[xi ]"--=small xi, Greek--> -<!ENTITY Xi SDATA "[Xi ]"--=capital Xi, Greek--> -<!ENTITY pi SDATA "[pi ]"--=small pi, Greek--> -<!ENTITY piv SDATA "[piv ]"--/varpi--> -<!ENTITY Pi SDATA "[Pi ]"--=capital Pi, Greek--> -<!ENTITY rho SDATA "[rho ]"--=small rho, Greek--> -<!ENTITY rhov SDATA "[rhov ]"--/varrho--> -<!ENTITY sigma SDATA "[sigma ]"--=small sigma, Greek--> -<!ENTITY Sigma SDATA "[Sigma ]"--=capital Sigma, Greek--> -<!ENTITY sigmav SDATA "[sigmav]"--/varsigma--> -<!ENTITY tau SDATA "[tau ]"--=small tau, Greek--> -<!ENTITY upsi SDATA "[upsi ]"--=small upsilon, Greek--> -<!ENTITY Upsi SDATA "[Upsi ]"--=capital Upsilon, Greek--> -<!ENTITY phis SDATA "[phis ]"--/straightphi - straight phi--> -<!ENTITY Phi SDATA "[Phi ]"--=capital Phi, Greek--> -<!ENTITY phiv SDATA "[phiv ]"--/varphi - curly or open phi--> -<!ENTITY chi SDATA "[chi ]"--=small chi, Greek--> -<!ENTITY psi SDATA "[psi ]"--=small psi, Greek--> -<!ENTITY Psi SDATA "[Psi ]"--=capital Psi, Greek--> -<!ENTITY omega SDATA "[omega ]"--=small omega, Greek--> -<!ENTITY Omega SDATA "[Omega ]"--=capital Omega, Greek-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOgrk4
Deleted
@@ -1,53 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOgrk4 PUBLIC - "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN"> - %ISOgrk4; ---> -<!ENTITY b.alpha SDATA "[b.alpha ]"--=small alpha, Greek--> -<!ENTITY b.beta SDATA "[b.beta ]"--=small beta, Greek--> -<!ENTITY b.gamma SDATA "[b.gamma ]"--=small gamma, Greek--> -<!ENTITY b.Gamma SDATA "[b.Gamma ]"--=capital Gamma, Greek--> -<!ENTITY b.gammad SDATA "[b.gammad]"--/digamma--> -<!ENTITY b.delta SDATA "[b.delta ]"--=small delta, Greek--> -<!ENTITY b.Delta SDATA "[b.Delta ]"--=capital Delta, Greek--> -<!ENTITY b.epsi SDATA "[b.epsi ]"--=small epsilon, Greek--> -<!ENTITY b.epsiv SDATA "[b.epsiv ]"--/varepsilon--> -<!ENTITY b.epsis SDATA "[b.epsis ]"--/straightepsilon--> -<!ENTITY b.zeta SDATA "[b.zeta ]"--=small zeta, Greek--> -<!ENTITY b.eta SDATA "[b.eta ]"--=small eta, Greek--> -<!ENTITY b.thetas SDATA "[b.thetas]"--straight theta--> -<!ENTITY b.Theta SDATA "[b.Theta ]"--=capital Theta, Greek--> -<!ENTITY b.thetav SDATA "[b.thetav]"--/vartheta - curly or open theta--> -<!ENTITY b.iota SDATA "[b.iota ]"--=small iota, Greek--> -<!ENTITY b.kappa SDATA "[b.kappa ]"--=small kappa, Greek--> -<!ENTITY b.kappav SDATA "[b.kappav]"--/varkappa--> -<!ENTITY b.lambda SDATA "[b.lambda]"--=small lambda, Greek--> -<!ENTITY b.Lambda SDATA "[b.Lambda]"--=capital Lambda, Greek--> -<!ENTITY b.mu SDATA "[b.mu ]"--=small mu, Greek--> -<!ENTITY b.nu SDATA "[b.nu ]"--=small nu, Greek--> -<!ENTITY b.xi SDATA "[b.xi ]"--=small xi, Greek--> -<!ENTITY b.Xi SDATA "[b.Xi ]"--=capital Xi, Greek--> -<!ENTITY b.pi SDATA "[b.pi ]"--=small pi, Greek--> -<!ENTITY b.Pi SDATA "[b.Pi ]"--=capital Pi, Greek--> -<!ENTITY b.piv SDATA "[b.piv ]"--/varpi--> -<!ENTITY b.rho SDATA "[b.rho ]"--=small rho, Greek--> -<!ENTITY b.rhov SDATA "[b.rhov ]"--/varrho--> -<!ENTITY b.sigma SDATA "[b.sigma ]"--=small sigma, Greek--> -<!ENTITY b.Sigma SDATA "[b.Sigma ]"--=capital Sigma, Greek--> -<!ENTITY b.sigmav SDATA "[b.sigmav]"--/varsigma--> -<!ENTITY b.tau SDATA "[b.tau ]"--=small tau, Greek--> -<!ENTITY b.upsi SDATA "[b.upsi ]"--=small upsilon, Greek--> -<!ENTITY b.Upsi SDATA "[b.Upsi ]"--=capital Upsilon, Greek--> -<!ENTITY b.phis SDATA "[b.phis ]"--/straightphi - straight phi--> -<!ENTITY b.Phi SDATA "[b.Phi ]"--=capital Phi, Greek--> -<!ENTITY b.phiv SDATA "[b.phiv ]"--/varphi - curly or open phi--> -<!ENTITY b.chi SDATA "[b.chi ]"--=small chi, Greek--> -<!ENTITY b.psi SDATA "[b.psi ]"--=small psi, Greek--> -<!ENTITY b.Psi SDATA "[b.Psi ]"--=capital Psi, Greek--> -<!ENTITY b.omega SDATA "[b.omega ]"--=small omega, Greek--> -<!ENTITY b.Omega SDATA "[b.Omega ]"--=capital Omega, Greek-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOlat1
Deleted
@@ -1,72 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOlat1 PUBLIC - "ISO 8879:1986//ENTITIES Added Latin 1//EN"> - %ISOlat1; ---> -<!ENTITY aacute SDATA "[aacute]"--=small a, acute accent--> -<!ENTITY Aacute SDATA "[Aacute]"--=capital A, acute accent--> -<!ENTITY acirc SDATA "[acirc ]"--=small a, circumflex accent--> -<!ENTITY Acirc SDATA "[Acirc ]"--=capital A, circumflex accent--> -<!ENTITY agrave SDATA "[agrave]"--=small a, grave accent--> -<!ENTITY Agrave SDATA "[Agrave]"--=capital A, grave accent--> -<!ENTITY aring SDATA "[aring ]"--=small a, ring--> -<!ENTITY Aring SDATA "[Aring ]"--=capital A, ring--> -<!ENTITY atilde SDATA "[atilde]"--=small a, tilde--> -<!ENTITY Atilde SDATA "[Atilde]"--=capital A, tilde--> -<!ENTITY auml SDATA "[auml ]"--=small a, dieresis or umlaut mark--> -<!ENTITY Auml SDATA "[Auml ]"--=capital A, dieresis or umlaut mark--> -<!ENTITY aelig SDATA "[aelig ]"--=small ae diphthong (ligature)--> -<!ENTITY AElig SDATA "[AElig ]"--=capital AE diphthong (ligature)--> -<!ENTITY ccedil SDATA "[ccedil]"--=small c, cedilla--> -<!ENTITY Ccedil SDATA "[Ccedil]"--=capital C, cedilla--> -<!ENTITY eth SDATA "[eth ]"--=small eth, Icelandic--> -<!ENTITY ETH SDATA "[ETH ]"--=capital Eth, Icelandic--> -<!ENTITY eacute SDATA "[eacute]"--=small e, acute accent--> -<!ENTITY Eacute SDATA "[Eacute]"--=capital E, acute accent--> -<!ENTITY ecirc SDATA "[ecirc ]"--=small e, circumflex accent--> -<!ENTITY Ecirc SDATA "[Ecirc ]"--=capital E, circumflex accent--> -<!ENTITY egrave SDATA "[egrave]"--=small e, grave accent--> -<!ENTITY Egrave SDATA "[Egrave]"--=capital E, grave accent--> -<!ENTITY euml SDATA "[euml ]"--=small e, dieresis or umlaut mark--> -<!ENTITY Euml SDATA "[Euml ]"--=capital E, dieresis or umlaut mark--> -<!ENTITY iacute SDATA "[iacute]"--=small i, acute accent--> -<!ENTITY Iacute SDATA "[Iacute]"--=capital I, acute accent--> -<!ENTITY icirc SDATA "[icirc ]"--=small i, circumflex accent--> -<!ENTITY Icirc SDATA "[Icirc ]"--=capital I, circumflex accent--> -<!ENTITY igrave SDATA "[igrave]"--=small i, grave accent--> -<!ENTITY Igrave SDATA "[Igrave]"--=capital I, grave accent--> -<!ENTITY iuml SDATA "[iuml ]"--=small i, dieresis or umlaut mark--> -<!ENTITY Iuml SDATA "[Iuml ]"--=capital I, dieresis or umlaut mark--> -<!ENTITY ntilde SDATA "[ntilde]"--=small n, tilde--> -<!ENTITY Ntilde SDATA "[Ntilde]"--=capital N, tilde--> -<!ENTITY oacute SDATA "[oacute]"--=small o, acute accent--> -<!ENTITY Oacute SDATA "[Oacute]"--=capital O, acute accent--> -<!ENTITY ocirc SDATA "[ocirc ]"--=small o, circumflex accent--> -<!ENTITY Ocirc SDATA "[Ocirc ]"--=capital O, circumflex accent--> -<!ENTITY ograve SDATA "[ograve]"--=small o, grave accent--> -<!ENTITY Ograve SDATA "[Ograve]"--=capital O, grave accent--> -<!ENTITY oslash SDATA "[oslash]"--=small o, slash--> -<!ENTITY Oslash SDATA "[Oslash]"--=capital O, slash--> -<!ENTITY otilde SDATA "[otilde]"--=small o, tilde--> -<!ENTITY Otilde SDATA "[Otilde]"--=capital O, tilde--> -<!ENTITY ouml SDATA "[ouml ]"--=small o, dieresis or umlaut mark--> -<!ENTITY Ouml SDATA "[Ouml ]"--=capital O, dieresis or umlaut mark--> -<!ENTITY szlig SDATA "[szlig ]"--=small sharp s, German (sz ligature)--> -<!ENTITY thorn SDATA "[thorn ]"--=small thorn, Icelandic--> -<!ENTITY THORN SDATA "[THORN ]"--=capital THORN, Icelandic--> -<!ENTITY uacute SDATA "[uacute]"--=small u, acute accent--> -<!ENTITY Uacute SDATA "[Uacute]"--=capital U, acute accent--> -<!ENTITY ucirc SDATA "[ucirc ]"--=small u, circumflex accent--> -<!ENTITY Ucirc SDATA "[Ucirc ]"--=capital U, circumflex accent--> -<!ENTITY ugrave SDATA "[ugrave]"--=small u, grave accent--> -<!ENTITY Ugrave SDATA "[Ugrave]"--=capital U, grave accent--> -<!ENTITY uuml SDATA "[uuml ]"--=small u, dieresis or umlaut mark--> -<!ENTITY Uuml SDATA "[Uuml ]"--=capital U, dieresis or umlaut mark--> -<!ENTITY yacute SDATA "[yacute]"--=small y, acute accent--> -<!ENTITY Yacute SDATA "[Yacute]"--=capital Y, acute accent--> -<!ENTITY yuml SDATA "[yuml ]"--=small y, dieresis or umlaut mark-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOlat2
Deleted
@@ -1,131 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOlat2 PUBLIC - "ISO 8879:1986//ENTITIES Added Latin 2//EN"> - %ISOlat2; ---> -<!ENTITY abreve SDATA "[abreve]"--=small a, breve--> -<!ENTITY Abreve SDATA "[Abreve]"--=capital A, breve--> -<!ENTITY amacr SDATA "[amacr ]"--=small a, macron--> -<!ENTITY Amacr SDATA "[Amacr ]"--=capital A, macron--> -<!ENTITY aogon SDATA "[aogon ]"--=small a, ogonek--> -<!ENTITY Aogon SDATA "[Aogon ]"--=capital A, ogonek--> -<!ENTITY cacute SDATA "[cacute]"--=small c, acute accent--> -<!ENTITY Cacute SDATA "[Cacute]"--=capital C, acute accent--> -<!ENTITY ccaron SDATA "[ccaron]"--=small c, caron--> -<!ENTITY Ccaron SDATA "[Ccaron]"--=capital C, caron--> -<!ENTITY ccirc SDATA "[ccirc ]"--=small c, circumflex accent--> -<!ENTITY Ccirc SDATA "[Ccirc ]"--=capital C, circumflex accent--> -<!ENTITY cdot SDATA "[cdot ]"--=small c, dot above--> -<!ENTITY Cdot SDATA "[Cdot ]"--=capital C, dot above--> -<!ENTITY dcaron SDATA "[dcaron]"--=small d, caron--> -<!ENTITY Dcaron SDATA "[Dcaron]"--=capital D, caron--> -<!ENTITY dstrok SDATA "[dstrok]"--=small d, stroke--> -<!ENTITY Dstrok SDATA "[Dstrok]"--=capital D, stroke--> -<!ENTITY ecaron SDATA "[ecaron]"--=small e, caron--> -<!ENTITY Ecaron SDATA "[Ecaron]"--=capital E, caron--> -<!ENTITY edot SDATA "[edot ]"--=small e, dot above--> -<!ENTITY Edot SDATA "[Edot ]"--=capital E, dot above--> -<!ENTITY emacr SDATA "[emacr ]"--=small e, macron--> -<!ENTITY Emacr SDATA "[Emacr ]"--=capital E, macron--> -<!ENTITY eogon SDATA "[eogon ]"--=small e, ogonek--> -<!ENTITY Eogon SDATA "[Eogon ]"--=capital E, ogonek--> -<!ENTITY gacute SDATA "[gacute]"--=small g, acute accent--> -<!ENTITY gbreve SDATA "[gbreve]"--=small g, breve--> -<!ENTITY Gbreve SDATA "[Gbreve]"--=capital G, breve--> -<!ENTITY Gcedil SDATA "[Gcedil]"--=capital G, cedilla--> -<!ENTITY gcirc SDATA "[gcirc ]"--=small g, circumflex accent--> -<!ENTITY Gcirc SDATA "[Gcirc ]"--=capital G, circumflex accent--> -<!ENTITY gdot SDATA "[gdot ]"--=small g, dot above--> -<!ENTITY Gdot SDATA "[Gdot ]"--=capital G, dot above--> -<!ENTITY hcirc SDATA "[hcirc ]"--=small h, circumflex accent--> -<!ENTITY Hcirc SDATA "[Hcirc ]"--=capital H, circumflex accent--> -<!ENTITY hstrok SDATA "[hstrok]"--=small h, stroke--> -<!ENTITY Hstrok SDATA "[Hstrok]"--=capital H, stroke--> -<!ENTITY Idot SDATA "[Idot ]"--=capital I, dot above--> -<!ENTITY Imacr SDATA "[Imacr ]"--=capital I, macron--> -<!ENTITY imacr SDATA "[imacr ]"--=small i, macron--> -<!ENTITY ijlig SDATA "[ijlig ]"--=small ij ligature--> -<!ENTITY IJlig SDATA "[IJlig ]"--=capital IJ ligature--> -<!ENTITY inodot SDATA "[inodot]"--=small i without dot--> -<!ENTITY iogon SDATA "[iogon ]"--=small i, ogonek--> -<!ENTITY Iogon SDATA "[Iogon ]"--=capital I, ogonek--> -<!ENTITY itilde SDATA "[itilde]"--=small i, tilde--> -<!ENTITY Itilde SDATA "[Itilde]"--=capital I, tilde--> -<!ENTITY jcirc SDATA "[jcirc ]"--=small j, circumflex accent--> -<!ENTITY Jcirc SDATA "[Jcirc ]"--=capital J, circumflex accent--> -<!ENTITY kcedil SDATA "[kcedil]"--=small k, cedilla--> -<!ENTITY Kcedil SDATA "[Kcedil]"--=capital K, cedilla--> -<!ENTITY kgreen SDATA "[kgreen]"--=small k, Greenlandic--> -<!ENTITY lacute SDATA "[lacute]"--=small l, acute accent--> -<!ENTITY Lacute SDATA "[Lacute]"--=capital L, acute accent--> -<!ENTITY lcaron SDATA "[lcaron]"--=small l, caron--> -<!ENTITY Lcaron SDATA "[Lcaron]"--=capital L, caron--> -<!ENTITY lcedil SDATA "[lcedil]"--=small l, cedilla--> -<!ENTITY Lcedil SDATA "[Lcedil]"--=capital L, cedilla--> -<!ENTITY lmidot SDATA "[lmidot]"--=small l, middle dot--> -<!ENTITY Lmidot SDATA "[Lmidot]"--=capital L, middle dot--> -<!ENTITY lstrok SDATA "[lstrok]"--=small l, stroke--> -<!ENTITY Lstrok SDATA "[Lstrok]"--=capital L, stroke--> -<!ENTITY nacute SDATA "[nacute]"--=small n, acute accent--> -<!ENTITY Nacute SDATA "[Nacute]"--=capital N, acute accent--> -<!ENTITY eng SDATA "[eng ]"--=small eng, Lapp--> -<!ENTITY ENG SDATA "[ENG ]"--=capital ENG, Lapp--> -<!ENTITY napos SDATA "[napos ]"--=small n, apostrophe--> -<!ENTITY ncaron SDATA "[ncaron]"--=small n, caron--> -<!ENTITY Ncaron SDATA "[Ncaron]"--=capital N, caron--> -<!ENTITY ncedil SDATA "[ncedil]"--=small n, cedilla--> -<!ENTITY Ncedil SDATA "[Ncedil]"--=capital N, cedilla--> -<!ENTITY odblac SDATA "[odblac]"--=small o, double acute accent--> -<!ENTITY Odblac SDATA "[Odblac]"--=capital O, double acute accent--> -<!ENTITY Omacr SDATA "[Omacr ]"--=capital O, macron--> -<!ENTITY omacr SDATA "[omacr ]"--=small o, macron--> -<!ENTITY oelig SDATA "[oelig ]"--=small oe ligature--> -<!ENTITY OElig SDATA "[OElig ]"--=capital OE ligature--> -<!ENTITY racute SDATA "[racute]"--=small r, acute accent--> -<!ENTITY Racute SDATA "[Racute]"--=capital R, acute accent--> -<!ENTITY rcaron SDATA "[rcaron]"--=small r, caron--> -<!ENTITY Rcaron SDATA "[Rcaron]"--=capital R, caron--> -<!ENTITY rcedil SDATA "[rcedil]"--=small r, cedilla--> -<!ENTITY Rcedil SDATA "[Rcedil]"--=capital R, cedilla--> -<!ENTITY sacute SDATA "[sacute]"--=small s, acute accent--> -<!ENTITY Sacute SDATA "[Sacute]"--=capital S, acute accent--> -<!ENTITY scaron SDATA "[scaron]"--=small s, caron--> -<!ENTITY Scaron SDATA "[Scaron]"--=capital S, caron--> -<!ENTITY scedil SDATA "[scedil]"--=small s, cedilla--> -<!ENTITY Scedil SDATA "[Scedil]"--=capital S, cedilla--> -<!ENTITY scirc SDATA "[scirc ]"--=small s, circumflex accent--> -<!ENTITY Scirc SDATA "[Scirc ]"--=capital S, circumflex accent--> -<!ENTITY tcaron SDATA "[tcaron]"--=small t, caron--> -<!ENTITY Tcaron SDATA "[Tcaron]"--=capital T, caron--> -<!ENTITY tcedil SDATA "[tcedil]"--=small t, cedilla--> -<!ENTITY Tcedil SDATA "[Tcedil]"--=capital T, cedilla--> -<!ENTITY tstrok SDATA "[tstrok]"--=small t, stroke--> -<!ENTITY Tstrok SDATA "[Tstrok]"--=capital T, stroke--> -<!ENTITY ubreve SDATA "[ubreve]"--=small u, breve--> -<!ENTITY Ubreve SDATA "[Ubreve]"--=capital U, breve--> -<!ENTITY udblac SDATA "[udblac]"--=small u, double acute accent--> -<!ENTITY Udblac SDATA "[Udblac]"--=capital U, double acute accent--> -<!ENTITY umacr SDATA "[umacr ]"--=small u, macron--> -<!ENTITY Umacr SDATA "[Umacr ]"--=capital U, macron--> -<!ENTITY uogon SDATA "[uogon ]"--=small u, ogonek--> -<!ENTITY Uogon SDATA "[Uogon ]"--=capital U, ogonek--> -<!ENTITY uring SDATA "[uring ]"--=small u, ring--> -<!ENTITY Uring SDATA "[Uring ]"--=capital U, ring--> -<!ENTITY utilde SDATA "[utilde]"--=small u, tilde--> -<!ENTITY Utilde SDATA "[Utilde]"--=capital U, tilde--> -<!ENTITY wcirc SDATA "[wcirc ]"--=small w, circumflex accent--> -<!ENTITY Wcirc SDATA "[Wcirc ]"--=capital W, circumflex accent--> -<!ENTITY ycirc SDATA "[ycirc ]"--=small y, circumflex accent--> -<!ENTITY Ycirc SDATA "[Ycirc ]"--=capital Y, circumflex accent--> -<!ENTITY Yuml SDATA "[Yuml ]"--=capital Y, dieresis or umlaut mark--> -<!ENTITY zacute SDATA "[zacute]"--=small z, acute accent--> -<!ENTITY Zacute SDATA "[Zacute]"--=capital Z, acute accent--> -<!ENTITY zcaron SDATA "[zcaron]"--=small z, caron--> -<!ENTITY Zcaron SDATA "[Zcaron]"--=capital Z, caron--> -<!ENTITY zdot SDATA "[zdot ]"--=small z, dot above--> -<!ENTITY Zdot SDATA "[Zdot ]"--=capital Z, dot above-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOnum
Deleted
@@ -1,91 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOnum PUBLIC - "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN"> - %ISOnum; ---> -<!ENTITY half SDATA "[half ]"--=fraction one-half--> -<!ENTITY frac12 SDATA "[frac12]"--=fraction one-half--> -<!ENTITY frac14 SDATA "[frac14]"--=fraction one-quarter--> -<!ENTITY frac34 SDATA "[frac34]"--=fraction three-quarters--> -<!ENTITY frac18 SDATA "[frac18]"--=fraction one-eighth--> -<!ENTITY frac38 SDATA "[frac38]"--=fraction three-eighths--> -<!ENTITY frac58 SDATA "[frac58]"--=fraction five-eighths--> -<!ENTITY frac78 SDATA "[frac78]"--=fraction seven-eighths--> - -<!ENTITY sup1 SDATA "[sup1 ]"--=superscript one--> -<!ENTITY sup2 SDATA "[sup2 ]"--=superscript two--> -<!ENTITY sup3 SDATA "[sup3 ]"--=superscript three--> - -<!ENTITY plus SDATA "[plus ]"--=plus sign B:-- > -<!ENTITY plusmn SDATA "[plusmn]"--/pm B: =plus-or-minus sign--> -<!ENTITY lt SDATA "[lt ]"--=less-than sign R:--> -<!ENTITY equals SDATA "[equals]"--=equals sign R:--> -<!ENTITY gt SDATA "[gt ]"--=greater-than sign R:--> -<!ENTITY divide SDATA "[divide]"--/div B: =divide sign--> -<!ENTITY times SDATA "[times ]"--/times B: =multiply sign--> - -<!ENTITY curren SDATA "[curren]"--=general currency sign--> -<!ENTITY pound SDATA "[pound ]"--=pound sign--> -<!ENTITY dollar SDATA "[dollar]"--=dollar sign--> -<!ENTITY cent SDATA "[cent ]"--=cent sign--> -<!ENTITY yen SDATA "[yen ]"--/yen =yen sign--> - -<!ENTITY num SDATA "[num ]"--=number sign--> -<!ENTITY percnt SDATA "[percnt]"--=percent sign--> -<!ENTITY amp SDATA "[amp ]"--=ampersand--> -<!ENTITY ast SDATA "[ast ]"--/ast B: =asterisk--> -<!ENTITY commat SDATA "[commat]"--=commercial at--> -<!ENTITY lsqb SDATA "[lsqb ]"--/lbrack O: =left square bracket--> -<!ENTITY bsol SDATA "[bsol ]"--/backslash =reverse solidus--> -<!ENTITY rsqb SDATA "[rsqb ]"--/rbrack C: =right square bracket--> -<!ENTITY lcub SDATA "[lcub ]"--/lbrace O: =left curly bracket--> -<!ENTITY horbar SDATA "[horbar]"--=horizontal bar--> -<!ENTITY verbar SDATA "[verbar]"--/vert =vertical bar--> -<!ENTITY rcub SDATA "[rcub ]"--/rbrace C: =right curly bracket--> -<!ENTITY micro SDATA "[micro ]"--=micro sign--> -<!ENTITY ohm SDATA "[ohm ]"--=ohm sign--> -<!ENTITY deg SDATA "[deg ]"--=degree sign--> -<!ENTITY ordm SDATA "[ordm ]"--=ordinal indicator, masculine--> -<!ENTITY ordf SDATA "[ordf ]"--=ordinal indicator, feminine--> -<!ENTITY sect SDATA "[sect ]"--=section sign--> -<!ENTITY para SDATA "[para ]"--=pilcrow (paragraph sign)--> -<!ENTITY middot SDATA "[middot]"--/centerdot B: =middle dot--> -<!ENTITY larr SDATA "[larr ]"--/leftarrow /gets A: =leftward arrow--> -<!ENTITY rarr SDATA "[rarr ]"--/rightarrow /to A: =rightward arrow--> -<!ENTITY uarr SDATA "[uarr ]"--/uparrow A: =upward arrow--> -<!ENTITY darr SDATA "[darr ]"--/downarrow A: =downward arrow--> -<!ENTITY copy SDATA "[copy ]"--=copyright sign--> -<!ENTITY reg SDATA "[reg ]"--/circledR =registered sign--> -<!ENTITY trade SDATA "[trade ]"--=trade mark sign--> -<!ENTITY brvbar SDATA "[brvbar]"--=broken (vertical) bar--> -<!ENTITY not SDATA "[not ]"--/neg /lnot =not sign--> -<!ENTITY sung SDATA "[sung ]"--=music note (sung text sign)--> - -<!ENTITY excl SDATA "[excl ]"--=exclamation mark--> -<!ENTITY iexcl SDATA "[iexcl ]"--=inverted exclamation mark--> -<!ENTITY quot SDATA "[quot ]"--=quotation mark--> -<!ENTITY apos SDATA "[apos ]"--=apostrophe--> -<!ENTITY lpar SDATA "[lpar ]"--O: =left parenthesis--> -<!ENTITY rpar SDATA "[rpar ]"--C: =right parenthesis--> -<!ENTITY comma SDATA "[comma ]"--P: =comma--> -<!ENTITY lowbar SDATA "[lowbar]"--=low line--> -<!ENTITY hyphen SDATA "[hyphen]"--=hyphen--> -<!ENTITY period SDATA "[period]"--=full stop, period--> -<!ENTITY sol SDATA "[sol ]"--=solidus--> -<!ENTITY colon SDATA "[colon ]"--/colon P:--> -<!ENTITY semi SDATA "[semi ]"--=semicolon P:--> -<!ENTITY quest SDATA "[quest ]"--=question mark--> -<!ENTITY iquest SDATA "[iquest]"--=inverted question mark--> -<!ENTITY laquo SDATA "[laquo ]"--=angle quotation mark, left--> -<!ENTITY raquo SDATA "[raquo ]"--=angle quotation mark, right--> -<!ENTITY lsquo SDATA "[lsquo ]"--=single quotation mark, left--> -<!ENTITY rsquo SDATA "[rsquo ]"--=single quotation mark, right--> -<!ENTITY ldquo SDATA "[ldquo ]"--=double quotation mark, left--> -<!ENTITY rdquo SDATA "[rdquo ]"--=double quotation mark, right--> -<!ENTITY nbsp SDATA "[nbsp ]"--=no break (required) space--> -<!ENTITY shy SDATA "[shy ]"--=soft hyphen-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOpub
Deleted
@@ -1,100 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOpub PUBLIC - "ISO 8879:1986//ENTITIES Publishing//EN"> - %ISOpub; ---> -<!ENTITY emsp SDATA "[emsp ]"--=em space--> -<!ENTITY ensp SDATA "[ensp ]"--=en space (1/2-em)--> -<!ENTITY emsp13 SDATA "[emsp3 ]"--=1/3-em space--> -<!ENTITY emsp14 SDATA "[emsp4 ]"--=1/4-em space--> -<!ENTITY numsp SDATA "[numsp ]"--=digit space (width of a number)--> -<!ENTITY puncsp SDATA "[puncsp]"--=punctuation space (width of comma)--> -<!ENTITY thinsp SDATA "[thinsp]"--=thin space (1/6-em)--> -<!ENTITY hairsp SDATA "[hairsp]"--=hair space--> -<!ENTITY mdash SDATA "[mdash ]"--=em dash--> -<!ENTITY ndash SDATA "[ndash ]"--=en dash--> -<!ENTITY dash SDATA "[dash ]"--=hyphen (true graphic)--> -<!ENTITY blank SDATA "[blank ]"--=significant blank symbol--> -<!ENTITY hellip SDATA "[hellip]"--=ellipsis (horizontal)--> -<!ENTITY nldr SDATA "[nldr ]"--=double baseline dot (en leader)--> -<!ENTITY frac13 SDATA "[frac13]"--=fraction one-third--> -<!ENTITY frac23 SDATA "[frac23]"--=fraction two-thirds--> -<!ENTITY frac15 SDATA "[frac15]"--=fraction one-fifth--> -<!ENTITY frac25 SDATA "[frac25]"--=fraction two-fifths--> -<!ENTITY frac35 SDATA "[frac35]"--=fraction three-fifths--> -<!ENTITY frac45 SDATA "[frac45]"--=fraction four-fifths--> -<!ENTITY frac16 SDATA "[frac16]"--=fraction one-sixth--> -<!ENTITY frac56 SDATA "[frac56]"--=fraction five-sixths--> -<!ENTITY incare SDATA "[incare]"--=in-care-of symbol--> -<!ENTITY block SDATA "[block ]"--=full block--> -<!ENTITY uhblk SDATA "[uhblk ]"--=upper half block--> -<!ENTITY lhblk SDATA "[lhblk ]"--=lower half block--> -<!ENTITY blk14 SDATA "[blk14 ]"--=25% shaded block--> -<!ENTITY blk12 SDATA "[blk12 ]"--=50% shaded block--> -<!ENTITY blk34 SDATA "[blk34 ]"--=75% shaded block--> -<!ENTITY marker SDATA "[marker]"--=histogram marker--> -<!ENTITY cir SDATA "[cir ]"--/circ B: =circle, open--> -<!ENTITY squ SDATA "[squ ]"--=square, open--> -<!ENTITY rect SDATA "[rect ]"--=rectangle, open--> -<!ENTITY utri SDATA "[utri ]"--/triangle =up triangle, open--> -<!ENTITY dtri SDATA "[dtri ]"--/triangledown =down triangle, open--> -<!ENTITY star SDATA "[star ]"--=star, open--> -<!ENTITY bull SDATA "[bull ]"--/bullet B: =round bullet, filled--> -<!ENTITY squf SDATA "[squf ]"--/blacksquare =sq bullet, filled--> -<!ENTITY utrif SDATA "[utrif ]"--/blacktriangle =up tri, filled--> -<!ENTITY dtrif SDATA "[dtrif ]"--/blacktriangledown =dn tri, filled--> -<!ENTITY ltrif SDATA "[ltrif ]"--/blacktriangleleft R: =l tri, filled--> -<!ENTITY rtrif SDATA "[rtrif ]"--/blacktriangleright R: =r tri, filled--> -<!ENTITY clubs SDATA "[clubs ]"--/clubsuit =club suit symbol--> -<!ENTITY diams SDATA "[diams ]"--/diamondsuit =diamond suit symbol--> -<!ENTITY hearts SDATA "[hearts]"--/heartsuit =heart suit symbol--> -<!ENTITY spades SDATA "[spades]"--/spadesuit =spades suit symbol--> -<!ENTITY malt SDATA "[malt ]"--/maltese =maltese cross--> -<!ENTITY dagger SDATA "[dagger]"--/dagger B: =dagger--> -<!ENTITY Dagger SDATA "[Dagger]"--/ddagger B: =double dagger--> -<!ENTITY check SDATA "[check ]"--/checkmark =tick, check mark--> -<!ENTITY cross SDATA "[ballot]"--=ballot cross--> -<!ENTITY sharp SDATA "[sharp ]"--/sharp =musical sharp--> -<!ENTITY flat SDATA "[flat ]"--/flat =musical flat--> -<!ENTITY male SDATA "[male ]"--=male symbol--> -<!ENTITY female SDATA "[female]"--=female symbol--> -<!ENTITY phone SDATA "[phone ]"--=telephone symbol--> -<!ENTITY telrec SDATA "[telrec]"--=telephone recorder symbol--> -<!ENTITY copysr SDATA "[copysr]"--=sound recording copyright sign--> -<!ENTITY caret SDATA "[caret ]"--=caret (insertion mark)--> -<!ENTITY lsquor SDATA "[lsquor]"--=rising single quote, left (low)--> -<!ENTITY ldquor SDATA "[ldquor]"--=rising dbl quote, left (low)--> - -<!ENTITY fflig SDATA "[fflig ]"--small ff ligature--> -<!ENTITY filig SDATA "[filig ]"--small fi ligature--> -<!ENTITY fjlig SDATA "[fjlig ]"--small fj ligature--> -<!ENTITY ffilig SDATA "[ffilig]"--small ffi ligature--> -<!ENTITY ffllig SDATA "[ffllig]"--small ffl ligature--> -<!ENTITY fllig SDATA "[fllig ]"--small fl ligature--> - -<!ENTITY mldr SDATA "[mldr ]"--em leader--> -<!ENTITY rdquor SDATA "[rdquor]"--rising dbl quote, right (high)--> -<!ENTITY rsquor SDATA "[rsquor]"--rising single quote, right (high)--> -<!ENTITY vellip SDATA "[vellip]"--vertical ellipsis--> - -<!ENTITY hybull SDATA "[hybull]"--rectangle, filled (hyphen bullet)--> -<!ENTITY loz SDATA "[loz ]"--/lozenge - lozenge or total mark--> -<!ENTITY lozf SDATA "[lozf ]"--/blacklozenge - lozenge, filled--> -<!ENTITY ltri SDATA "[ltri ]"--/triangleleft B: l triangle, open--> -<!ENTITY rtri SDATA "[rtri ]"--/triangleright B: r triangle, open--> -<!ENTITY starf SDATA "[starf ]"--/bigstar - star, filled--> - -<!ENTITY natur SDATA "[natur ]"--/natural - music natural--> -<!ENTITY rx SDATA "[rx ]"--pharmaceutical prescription (Rx)--> -<!ENTITY sext SDATA "[sext ]"--sextile (6-pointed star)--> - -<!ENTITY target SDATA "[target]"--register mark or target--> -<!ENTITY dlcrop SDATA "[dlcrop]"--downward left crop mark --> -<!ENTITY drcrop SDATA "[drcrop]"--downward right crop mark --> -<!ENTITY ulcrop SDATA "[ulcrop]"--upward left crop mark --> -<!ENTITY urcrop SDATA "[urcrop]"--upward right crop mark -->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/ISOtech
Deleted
@@ -1,73 +0,0 @@ -<!-- (C) International Organization for Standardization 1986 - Permission to copy in any form is granted for use with - conforming SGML systems and applications as defined in - ISO 8879, provided this notice is included in all copies. ---> -<!-- Character entity set. Typical invocation: - <!ENTITY % ISOtech PUBLIC - "ISO 8879:1986//ENTITIES General Technical//EN"> - %ISOtech; ---> -<!ENTITY aleph SDATA "[aleph ]"--/aleph =aleph, Hebrew--> -<!ENTITY and SDATA "[and ]"--/wedge /land B: =logical and--> -<!ENTITY ang90 SDATA "[ang90 ]"--=right (90 degree) angle--> -<!ENTITY angsph SDATA "[angsph]"--/sphericalangle =angle-spherical--> -<!ENTITY ap SDATA "[ap ]"--/approx R: =approximate--> -<!ENTITY becaus SDATA "[becaus]"--/because R: =because--> -<!ENTITY bottom SDATA "[bottom]"--/bot B: =perpendicular--> -<!ENTITY cap SDATA "[cap ]"--/cap B: =intersection--> -<!ENTITY cong SDATA "[cong ]"--/cong R: =congruent with--> -<!ENTITY conint SDATA "[conint]"--/oint L: =contour integral operator--> -<!ENTITY cup SDATA "[cup ]"--/cup B: =union or logical sum--> -<!ENTITY equiv SDATA "[equiv ]"--/equiv R: =identical with--> -<!ENTITY exist SDATA "[exist ]"--/exists =at least one exists--> -<!ENTITY forall SDATA "[forall]"--/forall =for all--> -<!ENTITY fnof SDATA "[fnof ]"--=function of (italic small f)--> -<!ENTITY ge SDATA "[ge ]"--/geq /ge R: =greater-than-or-equal--> -<!ENTITY iff SDATA "[iff ]"--/iff =if and only if--> -<!ENTITY infin SDATA "[infin ]"--/infty =infinity--> -<!ENTITY int SDATA "[int ]"--/int L: =integral operator--> -<!ENTITY isin SDATA "[isin ]"--/in R: =set membership--> -<!ENTITY lang SDATA "[lang ]"--/langle O: =left angle bracket--> -<!ENTITY lArr SDATA "[lArr ]"--/Leftarrow A: =is implied by--> -<!ENTITY le SDATA "[le ]"--/leq /le R: =less-than-or-equal--> -<!ENTITY minus SDATA "[minus ]"--B: =minus sign--> -<!ENTITY mnplus SDATA "[mnplus]"--/mp B: =minus-or-plus sign--> -<!ENTITY nabla SDATA "[nabla ]"--/nabla =del, Hamilton operator--> -<!ENTITY ne SDATA "[ne ]"--/ne /neq R: =not equal--> -<!ENTITY ni SDATA "[ni ]"--/ni /owns R: =contains--> -<!ENTITY or SDATA "[or ]"--/vee /lor B: =logical or--> -<!ENTITY par SDATA "[par ]"--/parallel R: =parallel--> -<!ENTITY part SDATA "[part ]"--/partial =partial differential--> -<!ENTITY permil SDATA "[permil]"--=per thousand--> -<!ENTITY perp SDATA "[perp ]"--/perp R: =perpendicular--> -<!ENTITY prime SDATA "[prime ]"--/prime =prime or minute--> -<!ENTITY Prime SDATA "[Prime ]"--=double prime or second--> -<!ENTITY prop SDATA "[prop ]"--/propto R: =is proportional to--> -<!ENTITY radic SDATA "[radic ]"--/surd =radical--> -<!ENTITY rang SDATA "[rang ]"--/rangle C: =right angle bracket--> -<!ENTITY rArr SDATA "[rArr ]"--/Rightarrow A: =implies--> -<!ENTITY sim SDATA "[sim ]"--/sim R: =similar--> -<!ENTITY sime SDATA "[sime ]"--/simeq R: =similar, equals--> -<!ENTITY square SDATA "[square]"--/square B: =square--> -<!ENTITY sub SDATA "[sub ]"--/subset R: =subset or is implied by--> -<!ENTITY sube SDATA "[sube ]"--/subseteq R: =subset, equals--> -<!ENTITY sup SDATA "[sup ]"--/supset R: =superset or implies--> -<!ENTITY supe SDATA "[supe ]"--/supseteq R: =superset, equals--> -<!ENTITY there4 SDATA "[there4]"--/therefore R: =therefore--> -<!ENTITY Verbar SDATA "[Verbar]"--/Vert =dbl vertical bar--> - -<!ENTITY angst SDATA "[angst ]"--Angstrom =capital A, ring--> -<!ENTITY bernou SDATA "[bernou]"--Bernoulli function (script capital B)--> -<!ENTITY compfn SDATA "[compfn]"--B: composite function (small circle)--> -<!ENTITY Dot SDATA "[Dot ]"--=dieresis or umlaut mark--> -<!ENTITY DotDot SDATA "[DotDot]"--four dots above--> -<!ENTITY hamilt SDATA "[hamilt]"--Hamiltonian (script capital H)--> -<!ENTITY lagran SDATA "[lagran]"--Lagrangian (script capital L)--> -<!ENTITY lowast SDATA "[lowast]"--low asterisk--> -<!ENTITY notin SDATA "[notin ]"--N: negated set membership--> -<!ENTITY order SDATA "[order ]"--order of (script small o)--> -<!ENTITY phmmat SDATA "[phmmat]"--physics M-matrix (script capital M)--> -<!ENTITY tdot SDATA "[tdot ]"--three dots above--> -<!ENTITY tprime SDATA "[tprime]"--triple prime--> -<!ENTITY wedgeq SDATA "[wedgeq]"--R: corresponds to (wedge, equals)-->
View file
Smarty-3.1.13.tar.gz/documentation/entities/ISO/catalog
Deleted
@@ -1,19 +0,0 @@ -PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "ISOdia" -PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "ISOnum" -PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "ISOpub" -PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "ISOtech" -PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "ISOlat1" -PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "ISOlat2" -PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "ISOgrk1" -PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "ISOgrk2" -PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "ISOgrk3" -PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "ISOgrk4" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "ISOamsa" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "ISOamsb" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "ISOamsc" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "ISOamsn" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "ISOamso" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "ISOamsr" -PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "ISObox" -PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "ISOcyr1" -PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "ISOcyr2"
View file
Smarty-3.1.13.tar.gz/documentation/entities/file-entities.ent
Deleted
@@ -1,228 +0,0 @@ -<!-- DON'T TOUCH - AUTOGENERATED BY file-entities.php --> - -<!ENTITY programmers.api-variables SYSTEM '../current_lang/programmers/api-variables.xml'> -<!ENTITY programmers.bc SYSTEM '../current_lang/programmers/bc.xml'> -<!ENTITY programmers.charset SYSTEM '../current_lang/programmers/charset.xml'> -<!ENTITY programmers.caching SYSTEM '../current_lang/programmers/caching.xml'> -<!ENTITY programmers.resources SYSTEM '../current_lang/programmers/resources.xml'> -<!ENTITY programmers.resources.resources-custom SYSTEM '../current_lang/programmers/resources/resources-custom.xml'> -<!ENTITY programmers.resources.resources-extends SYSTEM '../current_lang/programmers/resources/resources-extends.xml'> -<!ENTITY programmers.resources.resources-file SYSTEM '../current_lang/programmers/resources/resources-file.xml'> -<!ENTITY programmers.resources.resources-streams SYSTEM '../current_lang/programmers/resources/resources-streams.xml'> -<!ENTITY programmers.resources.resources-string SYSTEM '../current_lang/programmers/resources/resources-string.xml'> -<!ENTITY programmers.plugins.plugins-writing SYSTEM '../current_lang/programmers/plugins/plugins-writing.xml'> -<!ENTITY programmers.plugins.plugins-resources SYSTEM '../current_lang/programmers/plugins/plugins-resources.xml'> -<!ENTITY programmers.plugins.plugins-block-functions SYSTEM '../current_lang/programmers/plugins/plugins-block-functions.xml'> -<!ENTITY programmers.plugins.plugins-functions SYSTEM '../current_lang/programmers/plugins/plugins-functions.xml'> -<!ENTITY programmers.plugins.plugins-howto SYSTEM '../current_lang/programmers/plugins/plugins-howto.xml'> -<!ENTITY programmers.plugins.plugins-inserts SYSTEM '../current_lang/programmers/plugins/plugins-inserts.xml'> -<!ENTITY programmers.plugins.plugins-compiler-functions SYSTEM '../current_lang/programmers/plugins/plugins-compiler-functions.xml'> -<!ENTITY programmers.plugins.plugins-outputfilters SYSTEM '../current_lang/programmers/plugins/plugins-outputfilters.xml'> -<!ENTITY programmers.plugins.plugins-modifiers SYSTEM '../current_lang/programmers/plugins/plugins-modifiers.xml'> -<!ENTITY programmers.plugins.plugins-prefilters-postfilters SYSTEM '../current_lang/programmers/plugins/plugins-prefilters-postfilters.xml'> -<!ENTITY programmers.plugins.plugins-naming-conventions SYSTEM '../current_lang/programmers/plugins/plugins-naming-conventions.xml'> -<!ENTITY programmers.caching.caching-custom SYSTEM '../current_lang/programmers/caching/caching-custom.xml'> -<!ENTITY programmers.caching.caching-setting-up SYSTEM '../current_lang/programmers/caching/caching-setting-up.xml'> -<!ENTITY programmers.caching.caching-multiple-caches SYSTEM '../current_lang/programmers/caching/caching-multiple-caches.xml'> -<!ENTITY programmers.caching.caching-groups SYSTEM '../current_lang/programmers/caching/caching-groups.xml'> -<!ENTITY programmers.caching.caching-cacheable SYSTEM '../current_lang/programmers/caching/caching-cacheable.xml'> -<!ENTITY programmers.advanced-features.advanced-features-prefilters SYSTEM '../current_lang/programmers/advanced-features/advanced-features-prefilters.xml'> -<!ENTITY programmers.advanced-features.advanced-features-template-inheritance SYSTEM '../current_lang/programmers/advanced-features/advanced-features-template-inheritance.xml'> -<!ENTITY programmers.advanced-features.advanced-features-template-settings SYSTEM '../current_lang/programmers/advanced-features/advanced-features-template-settings.xml'> -<!ENTITY programmers.advanced-features.advanced-features-streams SYSTEM '../current_lang/programmers/advanced-features/advanced-features-streams.xml'> -<!ENTITY programmers.advanced-features.advanced-features-security SYSTEM '../current_lang/programmers/advanced-features/advanced-features-security.xml'> -<!ENTITY programmers.advanced-features.advanced-features-objects SYSTEM '../current_lang/programmers/advanced-features/advanced-features-objects.xml'> -<!ENTITY programmers.advanced-features.advanced-features-static-classes SYSTEM '../current_lang/programmers/advanced-features/advanced-features-static-classes.xml'> -<!ENTITY programmers.advanced-features.advanced-features-outputfilters SYSTEM '../current_lang/programmers/advanced-features/advanced-features-outputfilters.xml'> -<!ENTITY programmers.advanced-features.advanced-features-postfilters SYSTEM '../current_lang/programmers/advanced-features/advanced-features-postfilters.xml'> -<!ENTITY programmers.advanced-features SYSTEM '../current_lang/programmers/advanced-features.xml'> -<!ENTITY programmers.smarty-constants SYSTEM '../current_lang/programmers/smarty-constants.xml'> -<!ENTITY programmers.api-functions SYSTEM '../current_lang/programmers/api-functions.xml'> -<!ENTITY programmers.api-functions.api-mute-expected-errors SYSTEM '../current_lang/programmers/api-functions/api-mute-expected-errors.xml'> -<!ENTITY programmers.api-functions.api-create-data SYSTEM '../current_lang/programmers/api-functions/api-create-data.xml'> -<!ENTITY programmers.api-functions.api-create-template SYSTEM '../current_lang/programmers/api-functions/api-create-template.xml'> -<!ENTITY programmers.api-functions.api-get-config-vars SYSTEM '../current_lang/programmers/api-functions/api-get-config-vars.xml'> -<!ENTITY programmers.api-functions.api-register-plugin SYSTEM '../current_lang/programmers/api-functions/api-register-plugin.xml'> -<!ENTITY programmers.api-functions.api-register-class SYSTEM '../current_lang/programmers/api-functions/api-register-class.xml'> -<!ENTITY programmers.api-functions.api-register-filter SYSTEM '../current_lang/programmers/api-functions/api-register-filter.xml'> -<!ENTITY programmers.api-functions.api-assign-by-ref SYSTEM '../current_lang/programmers/api-functions/api-assign-by-ref.xml'> -<!ENTITY programmers.api-functions.api-template-exists SYSTEM '../current_lang/programmers/api-functions/api-template-exists.xml'> -<!ENTITY programmers.api-functions.api-clear-all-cache SYSTEM '../current_lang/programmers/api-functions/api-clear-all-cache.xml'> -<!ENTITY programmers.api-functions.api-assign SYSTEM '../current_lang/programmers/api-functions/api-assign.xml'> -<!ENTITY programmers.api-functions.api-register-object SYSTEM '../current_lang/programmers/api-functions/api-register-object.xml'> -<!ENTITY programmers.api-functions.api-clear-all-assign SYSTEM '../current_lang/programmers/api-functions/api-clear-all-assign.xml'> -<!ENTITY programmers.api-functions.api-clear-assign SYSTEM '../current_lang/programmers/api-functions/api-clear-assign.xml'> -<!ENTITY programmers.api-functions.api-clear-compiled-tpl SYSTEM '../current_lang/programmers/api-functions/api-clear-compiled-tpl.xml'> -<!ENTITY programmers.api-functions.api-unregister-object SYSTEM '../current_lang/programmers/api-functions/api-unregister-object.xml'> -<!ENTITY programmers.api-functions.api-append SYSTEM '../current_lang/programmers/api-functions/api-append.xml'> -<!ENTITY programmers.api-functions.api-append-by-ref SYSTEM '../current_lang/programmers/api-functions/api-append-by-ref.xml'> -<!ENTITY programmers.api-functions.api-load-filter SYSTEM '../current_lang/programmers/api-functions/api-load-filter.xml'> -<!ENTITY programmers.api-functions.api-get-template-vars SYSTEM '../current_lang/programmers/api-functions/api-get-template-vars.xml'> -<!ENTITY programmers.api-functions.api-unregister-plugin SYSTEM '../current_lang/programmers/api-functions/api-unregister-plugin.xml'> -<!ENTITY programmers.api-functions.api-unregister-filter SYSTEM '../current_lang/programmers/api-functions/api-unregister-filter.xml'> -<!ENTITY programmers.api-functions.api-clear-cache SYSTEM '../current_lang/programmers/api-functions/api-clear-cache.xml'> -<!ENTITY programmers.api-functions.api-is-cached SYSTEM '../current_lang/programmers/api-functions/api-is-cached.xml'> -<!ENTITY programmers.api-functions.api-register-resource SYSTEM '../current_lang/programmers/api-functions/api-register-resource.xml'> -<!ENTITY programmers.api-functions.api-register-default-plugin-handler SYSTEM '../current_lang/programmers/api-functions/api-register-default-plugin-handler.xml'> -<!ENTITY programmers.api-functions.api-register-cacheresource SYSTEM '../current_lang/programmers/api-functions/api-register-cacheresource.xml'> -<!ENTITY programmers.api-functions.api-clear-config SYSTEM '../current_lang/programmers/api-functions/api-clear-config.xml'> -<!ENTITY programmers.api-functions.api-config-load SYSTEM '../current_lang/programmers/api-functions/api-config-load.xml'> -<!ENTITY programmers.api-functions.api-display SYSTEM '../current_lang/programmers/api-functions/api-display.xml'> -<!ENTITY programmers.api-functions.api-get-registered-object SYSTEM '../current_lang/programmers/api-functions/api-get-registered-object.xml'> -<!ENTITY programmers.api-functions.api-fetch SYSTEM '../current_lang/programmers/api-functions/api-fetch.xml'> -<!ENTITY programmers.api-functions.api-enable-security SYSTEM '../current_lang/programmers/api-functions/api-enable-security.xml'> -<!ENTITY programmers.api-functions.api-disable-security SYSTEM '../current_lang/programmers/api-functions/api-disable-security.xml'> -<!ENTITY programmers.api-functions.api-unregister-resource SYSTEM '../current_lang/programmers/api-functions/api-unregister-resource.xml'> -<!ENTITY programmers.api-functions.api-unregister-cacheresource SYSTEM '../current_lang/programmers/api-functions/api-unregister-cacheresource.xml'> -<!ENTITY programmers.api-functions.api-compile-all-templates SYSTEM '../current_lang/programmers/api-functions/api-compile-all-templates.xml'> -<!ENTITY programmers.api-functions.api-compile-all-config SYSTEM '../current_lang/programmers/api-functions/api-compile-all-config.xml'> -<!ENTITY programmers.api-functions.api-get-tags SYSTEM '../current_lang/programmers/api-functions/api-get-tags.xml'> -<!ENTITY programmers.api-functions.api-test-install SYSTEM '../current_lang/programmers/api-functions/api-test-install.xml'> -<!ENTITY programmers.api-functions.api-get-template-dir SYSTEM '../current_lang/programmers/api-functions/api-get-template-dir.xml'> -<!ENTITY programmers.api-functions.api-set-template-dir SYSTEM '../current_lang/programmers/api-functions/api-set-template-dir.xml'> -<!ENTITY programmers.api-functions.api-add-template-dir SYSTEM '../current_lang/programmers/api-functions/api-add-template-dir.xml'> -<!ENTITY programmers.api-functions.api-get-plugins-dir SYSTEM '../current_lang/programmers/api-functions/api-get-plugins-dir.xml'> -<!ENTITY programmers.api-functions.api-set-plugins-dir SYSTEM '../current_lang/programmers/api-functions/api-set-plugins-dir.xml'> -<!ENTITY programmers.api-functions.api-add-plugins-dir SYSTEM '../current_lang/programmers/api-functions/api-add-plugins-dir.xml'> -<!ENTITY programmers.api-functions.api-get-config-dir SYSTEM '../current_lang/programmers/api-functions/api-get-config-dir.xml'> -<!ENTITY programmers.api-functions.api-set-config-dir SYSTEM '../current_lang/programmers/api-functions/api-set-config-dir.xml'> -<!ENTITY programmers.api-functions.api-add-config-dir SYSTEM '../current_lang/programmers/api-functions/api-add-config-dir.xml'> -<!ENTITY programmers.api-functions.api-get-compile-dir SYSTEM '../current_lang/programmers/api-functions/api-get-compile-dir.xml'> -<!ENTITY programmers.api-functions.api-set-compile-dir SYSTEM '../current_lang/programmers/api-functions/api-set-compile-dir.xml'> -<!ENTITY programmers.api-functions.api-get-cache-dir SYSTEM '../current_lang/programmers/api-functions/api-get-cache-dir.xml'> -<!ENTITY programmers.api-functions.api-set-cache-dir SYSTEM '../current_lang/programmers/api-functions/api-set-cache-dir.xml'> -<!ENTITY programmers.api-variables.variable-auto-literal SYSTEM '../current_lang/programmers/api-variables/variable-auto-literal.xml'> -<!ENTITY programmers.api-variables.variable-allow-php-templates SYSTEM '../current_lang/programmers/api-variables/variable-allow-php-templates.xml'> -<!ENTITY programmers.api-variables.variable-compile-dir SYSTEM '../current_lang/programmers/api-variables/variable-compile-dir.xml'> -<!ENTITY programmers.api-variables.variable-plugins-dir SYSTEM '../current_lang/programmers/api-variables/variable-plugins-dir.xml'> -<!ENTITY programmers.api-variables.variable-right-delimiter SYSTEM '../current_lang/programmers/api-variables/variable-right-delimiter.xml'> -<!ENTITY programmers.api-variables.variable-php-handling SYSTEM '../current_lang/programmers/api-variables/variable-php-handling.xml'> -<!ENTITY programmers.api-variables.variable-default-modifiers SYSTEM '../current_lang/programmers/api-variables/variable-default-modifiers.xml'> -<!ENTITY programmers.api-variables.variable-error-reporting SYSTEM '../current_lang/programmers/api-variables/variable-error-reporting.xml'> -<!ENTITY programmers.api-variables.variable-compile-check SYSTEM '../current_lang/programmers/api-variables/variable-compile-check.xml'> -<!ENTITY programmers.api-variables.variable-config-overwrite SYSTEM '../current_lang/programmers/api-variables/variable-config-overwrite.xml'> -<!ENTITY programmers.api-variables.variable-config-read-hidden SYSTEM '../current_lang/programmers/api-variables/variable-config-read-hidden.xml'> -<!ENTITY programmers.api-variables.variable-default-config-handler-func SYSTEM '../current_lang/programmers/api-variables/variable-default-config-handler-func.xml'> -<!ENTITY programmers.api-variables.variable-default-template-handler-func SYSTEM '../current_lang/programmers/api-variables/variable-default-template-handler-func.xml'> -<!ENTITY programmers.api-variables.variable-use-sub-dirs SYSTEM '../current_lang/programmers/api-variables/variable-use-sub-dirs.xml'> -<!ENTITY programmers.api-variables.variable-config-booleanize SYSTEM '../current_lang/programmers/api-variables/variable-config-booleanize.xml'> -<!ENTITY programmers.api-variables.variable-cache-modified-check SYSTEM '../current_lang/programmers/api-variables/variable-cache-modified-check.xml'> -<!ENTITY programmers.api-variables.variable-compiler-class SYSTEM '../current_lang/programmers/api-variables/variable-compiler-class.xml'> -<!ENTITY programmers.api-variables.variable-left-delimiter SYSTEM '../current_lang/programmers/api-variables/variable-left-delimiter.xml'> -<!ENTITY programmers.api-variables.variable-debugging SYSTEM '../current_lang/programmers/api-variables/variable-debugging.xml'> -<!ENTITY programmers.api-variables.variable-default-resource-type SYSTEM '../current_lang/programmers/api-variables/variable-default-resource-type.xml'> -<!ENTITY programmers.api-variables.variable-default-config-type SYSTEM '../current_lang/programmers/api-variables/variable-default-config-type.xml'> -<!ENTITY programmers.api-variables.variable-autoload-filters SYSTEM '../current_lang/programmers/api-variables/variable-autoload-filters.xml'> -<!ENTITY programmers.api-variables.variable-debugging-ctrl SYSTEM '../current_lang/programmers/api-variables/variable-debugging-ctrl.xml'> -<!ENTITY programmers.api-variables.variable-escape-html SYSTEM '../current_lang/programmers/api-variables/variable-escape-html.xml'> -<!ENTITY programmers.api-variables.variable-force-cache SYSTEM '../current_lang/programmers/api-variables/variable-force-cache.xml'> -<!ENTITY programmers.api-variables.variable-force-compile SYSTEM '../current_lang/programmers/api-variables/variable-force-compile.xml'> -<!ENTITY programmers.api-variables.variable-cache-dir SYSTEM '../current_lang/programmers/api-variables/variable-cache-dir.xml'> -<!ENTITY programmers.api-variables.variable-caching-type SYSTEM '../current_lang/programmers/api-variables/variable-caching-type.xml'> -<!ENTITY programmers.api-variables.variable-caching SYSTEM '../current_lang/programmers/api-variables/variable-caching.xml'> -<!ENTITY programmers.api-variables.variable-cache-id SYSTEM '../current_lang/programmers/api-variables/variable-cache-id.xml'> -<!ENTITY programmers.api-variables.variable-cache-locking SYSTEM '../current_lang/programmers/api-variables/variable-cache-locking.xml'> -<!ENTITY programmers.api-variables.variable-locking-timeout SYSTEM '../current_lang/programmers/api-variables/variable-locking-timeout.xml'> -<!ENTITY programmers.api-variables.variable-compile-id SYSTEM '../current_lang/programmers/api-variables/variable-compile-id.xml'> -<!ENTITY programmers.api-variables.variable-compile-locking SYSTEM '../current_lang/programmers/api-variables/variable-compile-locking.xml'> -<!ENTITY programmers.api-variables.variable-direct-access-security SYSTEM '../current_lang/programmers/api-variables/variable-direct-access-security.xml'> -<!ENTITY programmers.api-variables.variable-template-dir SYSTEM '../current_lang/programmers/api-variables/variable-template-dir.xml'> -<!ENTITY programmers.api-variables.variable-debug-template SYSTEM '../current_lang/programmers/api-variables/variable-debug-template.xml'> -<!ENTITY programmers.api-variables.variable-config-dir SYSTEM '../current_lang/programmers/api-variables/variable-config-dir.xml'> -<!ENTITY programmers.api-variables.variable-trusted-dir SYSTEM '../current_lang/programmers/api-variables/variable-trusted-dir.xml'> -<!ENTITY programmers.api-variables.variable-cache-lifetime SYSTEM '../current_lang/programmers/api-variables/variable-cache-lifetime.xml'> -<!ENTITY programmers.api-variables.variable-use-include-path SYSTEM '../current_lang/programmers/api-variables/variable-use-include-path.xml'> -<!ENTITY programmers.api-variables.variable-merge-compiled-includes SYSTEM '../current_lang/programmers/api-variables/variable-merge-compiled-includes.xml'> -<!ENTITY programmers.api-variables.variable-smarty-debug-id SYSTEM '../current_lang/programmers/api-variables/variable-smarty-debug-id.xml'> -<!ENTITY programmers.plugins SYSTEM '../current_lang/programmers/plugins.xml'> -<!ENTITY bookinfo SYSTEM '../current_lang/bookinfo.xml'> -<!ENTITY appendixes.bugs SYSTEM '../current_lang/appendixes/bugs.xml'> -<!ENTITY appendixes.tips SYSTEM '../current_lang/appendixes/tips.xml'> -<!ENTITY appendixes.resources SYSTEM '../current_lang/appendixes/resources.xml'> -<!ENTITY appendixes.troubleshooting SYSTEM '../current_lang/appendixes/troubleshooting.xml'> -<!ENTITY designers.language-builtin-functions SYSTEM '../current_lang/designers/language-builtin-functions.xml'> -<!ENTITY designers.language-builtin-functions.language-function-php SYSTEM '../current_lang/designers/language-builtin-functions/language-function-php.xml'> -<!ENTITY designers.language-builtin-functions.language-function-shortform-assign SYSTEM '../current_lang/designers/language-builtin-functions/language-function-shortform-assign.xml'> -<!ENTITY designers.language-builtin-functions.language-function-assign SYSTEM '../current_lang/designers/language-builtin-functions/language-function-assign.xml'> -<!ENTITY designers.language-builtin-functions.language-function-append SYSTEM '../current_lang/designers/language-builtin-functions/language-function-append.xml'> -<!ENTITY designers.language-builtin-functions.language-function-block SYSTEM '../current_lang/designers/language-builtin-functions/language-function-block.xml'> -<!ENTITY designers.language-builtin-functions.language-function-call SYSTEM '../current_lang/designers/language-builtin-functions/language-function-call.xml'> -<!ENTITY designers.language-builtin-functions.language-function-debug SYSTEM '../current_lang/designers/language-builtin-functions/language-function-debug.xml'> -<!ENTITY designers.language-builtin-functions.language-function-extends SYSTEM '../current_lang/designers/language-builtin-functions/language-function-extends.xml'> -<!ENTITY designers.language-builtin-functions.language-function-function SYSTEM '../current_lang/designers/language-builtin-functions/language-function-function.xml'> -<!ENTITY designers.language-builtin-functions.language-function-nocache SYSTEM '../current_lang/designers/language-builtin-functions/language-function-nocache.xml'> -<!ENTITY designers.language-builtin-functions.language-function-while SYSTEM '../current_lang/designers/language-builtin-functions/language-function-while.xml'> -<!ENTITY designers.language-builtin-functions.language-function-include-php SYSTEM '../current_lang/designers/language-builtin-functions/language-function-include-php.xml'> -<!ENTITY designers.language-builtin-functions.language-function-literal SYSTEM '../current_lang/designers/language-builtin-functions/language-function-literal.xml'> -<!ENTITY designers.language-builtin-functions.language-function-include SYSTEM '../current_lang/designers/language-builtin-functions/language-function-include.xml'> -<!ENTITY designers.language-builtin-functions.language-function-if SYSTEM '../current_lang/designers/language-builtin-functions/language-function-if.xml'> -<!ENTITY designers.language-builtin-functions.language-function-strip SYSTEM '../current_lang/designers/language-builtin-functions/language-function-strip.xml'> -<!ENTITY designers.language-builtin-functions.language-function-capture SYSTEM '../current_lang/designers/language-builtin-functions/language-function-capture.xml'> -<!ENTITY designers.language-builtin-functions.language-function-ldelim SYSTEM '../current_lang/designers/language-builtin-functions/language-function-ldelim.xml'> -<!ENTITY designers.language-builtin-functions.language-function-foreach SYSTEM '../current_lang/designers/language-builtin-functions/language-function-foreach.xml'> -<!ENTITY designers.language-builtin-functions.language-function-for SYSTEM '../current_lang/designers/language-builtin-functions/language-function-for.xml'> -<!ENTITY designers.language-builtin-functions.language-function-insert SYSTEM '../current_lang/designers/language-builtin-functions/language-function-insert.xml'> -<!ENTITY designers.language-builtin-functions.language-function-section SYSTEM '../current_lang/designers/language-builtin-functions/language-function-section.xml'> -<!ENTITY designers.language-builtin-functions.language-function-setfilter SYSTEM '../current_lang/designers/language-builtin-functions/language-function-setfilter.xml'> -<!ENTITY designers.language-builtin-functions.language-function-config-load SYSTEM '../current_lang/designers/language-builtin-functions/language-function-config-load.xml'> -<!ENTITY designers.language-modifiers.language-modifier-strip SYSTEM '../current_lang/designers/language-modifiers/language-modifier-strip.xml'> -<!ENTITY designers.language-modifiers.language-modifier-lower SYSTEM '../current_lang/designers/language-modifiers/language-modifier-lower.xml'> -<!ENTITY designers.language-modifiers.language-modifier-indent SYSTEM '../current_lang/designers/language-modifiers/language-modifier-indent.xml'> -<!ENTITY designers.language-modifiers.language-modifier-upper SYSTEM '../current_lang/designers/language-modifiers/language-modifier-upper.xml'> -<!ENTITY designers.language-modifiers.language-modifier-strip-tags SYSTEM '../current_lang/designers/language-modifiers/language-modifier-strip-tags.xml'> -<!ENTITY designers.language-modifiers.language-modifier-count-characters SYSTEM '../current_lang/designers/language-modifiers/language-modifier-count-characters.xml'> -<!ENTITY designers.language-modifiers.language-modifier-cat SYSTEM '../current_lang/designers/language-modifiers/language-modifier-cat.xml'> -<!ENTITY designers.language-modifiers.language-modifier-nl2br SYSTEM '../current_lang/designers/language-modifiers/language-modifier-nl2br.xml'> -<!ENTITY designers.language-modifiers.language-modifier-string-format SYSTEM '../current_lang/designers/language-modifiers/language-modifier-string-format.xml'> -<!ENTITY designers.language-modifiers.language-modifier-wordwrap SYSTEM '../current_lang/designers/language-modifiers/language-modifier-wordwrap.xml'> -<!ENTITY designers.language-modifiers.language-modifier-date-format SYSTEM '../current_lang/designers/language-modifiers/language-modifier-date-format.xml'> -<!ENTITY designers.language-modifiers.language-modifier-capitalize SYSTEM '../current_lang/designers/language-modifiers/language-modifier-capitalize.xml'> -<!ENTITY designers.language-modifiers.language-modifier-spacify SYSTEM '../current_lang/designers/language-modifiers/language-modifier-spacify.xml'> -<!ENTITY designers.language-modifiers.language-modifier-escape SYSTEM '../current_lang/designers/language-modifiers/language-modifier-escape.xml'> -<!ENTITY designers.language-modifiers.language-modifier-unescape SYSTEM '../current_lang/designers/language-modifiers/language-modifier-unescape.xml'> -<!ENTITY designers.language-modifiers.language-modifier-from-charset SYSTEM '../current_lang/designers/language-modifiers/language-modifier-from-charset.xml'> -<!ENTITY designers.language-modifiers.language-modifier-to-charset SYSTEM '../current_lang/designers/language-modifiers/language-modifier-to-charset.xml'> -<!ENTITY designers.language-modifiers.language-modifier-replace SYSTEM '../current_lang/designers/language-modifiers/language-modifier-replace.xml'> -<!ENTITY designers.language-modifiers.language-modifier-truncate SYSTEM '../current_lang/designers/language-modifiers/language-modifier-truncate.xml'> -<!ENTITY designers.language-modifiers.language-modifier-default SYSTEM '../current_lang/designers/language-modifiers/language-modifier-default.xml'> -<!ENTITY designers.language-modifiers.language-modifier-regex-replace SYSTEM '../current_lang/designers/language-modifiers/language-modifier-regex-replace.xml'> -<!ENTITY designers.language-modifiers.language-modifier-count-words SYSTEM '../current_lang/designers/language-modifiers/language-modifier-count-words.xml'> -<!ENTITY designers.language-modifiers.language-modifier-count-paragraphs SYSTEM '../current_lang/designers/language-modifiers/language-modifier-count-paragraphs.xml'> -<!ENTITY designers.language-modifiers.language-modifier-count-sentences SYSTEM '../current_lang/designers/language-modifiers/language-modifier-count-sentences.xml'> -<!ENTITY designers.language-variables SYSTEM '../current_lang/designers/language-variables.xml'> -<!ENTITY designers.chapter-debugging-console SYSTEM '../current_lang/designers/chapter-debugging-console.xml'> -<!ENTITY designers.language-modifiers SYSTEM '../current_lang/designers/language-modifiers.xml'> -<!ENTITY designers.language-variables.language-config-variables SYSTEM '../current_lang/designers/language-variables/language-config-variables.xml'> -<!ENTITY designers.language-variables.language-variable-scopes SYSTEM '../current_lang/designers/language-variables/language-variable-scopes.xml'> -<!ENTITY designers.language-variables.language-variables-smarty SYSTEM '../current_lang/designers/language-variables/language-variables-smarty.xml'> -<!ENTITY designers.language-variables.language-assigned-variables SYSTEM '../current_lang/designers/language-variables/language-assigned-variables.xml'> -<!ENTITY designers.language-custom-functions SYSTEM '../current_lang/designers/language-custom-functions.xml'> -<!ENTITY designers.language-basic-syntax SYSTEM '../current_lang/designers/language-basic-syntax.xml'> -<!ENTITY designers.language-basic-syntax.language-syntax-variables SYSTEM '../current_lang/designers/language-basic-syntax/language-syntax-variables.xml'> -<!ENTITY designers.language-basic-syntax.language-syntax-quotes SYSTEM '../current_lang/designers/language-basic-syntax/language-syntax-quotes.xml'> -<!ENTITY designers.language-basic-syntax.language-math SYSTEM '../current_lang/designers/language-basic-syntax/language-math.xml'> -<!ENTITY designers.language-basic-syntax.language-syntax-comments SYSTEM '../current_lang/designers/language-basic-syntax/language-syntax-comments.xml'> -<!ENTITY designers.language-basic-syntax.language-syntax-functions SYSTEM '../current_lang/designers/language-basic-syntax/language-syntax-functions.xml'> -<!ENTITY designers.language-basic-syntax.language-syntax-attributes SYSTEM '../current_lang/designers/language-basic-syntax/language-syntax-attributes.xml'> -<!ENTITY designers.language-basic-syntax.language-escaping SYSTEM '../current_lang/designers/language-basic-syntax/language-escaping.xml'> -<!ENTITY designers.config-files SYSTEM '../current_lang/designers/config-files.xml'> -<!ENTITY designers.language-combining-modifiers SYSTEM '../current_lang/designers/language-combining-modifiers.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-checkboxes SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-checkboxes.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-image SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-image.xml'> -<!ENTITY designers.language-custom-functions.language-function-cycle SYSTEM '../current_lang/designers/language-custom-functions/language-function-cycle.xml'> -<!ENTITY designers.language-custom-functions.language-function-popup SYSTEM '../current_lang/designers/language-custom-functions/language-function-popup.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-radios SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-radios.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-select-date SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-select-date.xml'> -<!ENTITY designers.language-custom-functions.language-function-popup-init SYSTEM '../current_lang/designers/language-custom-functions/language-function-popup-init.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-table SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-table.xml'> -<!ENTITY designers.language-custom-functions.language-function-mailto SYSTEM '../current_lang/designers/language-custom-functions/language-function-mailto.xml'> -<!ENTITY designers.language-custom-functions.language-function-fetch SYSTEM '../current_lang/designers/language-custom-functions/language-function-fetch.xml'> -<!ENTITY designers.language-custom-functions.language-function-assign SYSTEM '../current_lang/designers/language-custom-functions/language-function-assign.xml'> -<!ENTITY designers.language-custom-functions.language-function-eval SYSTEM '../current_lang/designers/language-custom-functions/language-function-eval.xml'> -<!ENTITY designers.language-custom-functions.language-function-math SYSTEM '../current_lang/designers/language-custom-functions/language-function-math.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-options SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-options.xml'> -<!ENTITY designers.language-custom-functions.language-function-textformat SYSTEM '../current_lang/designers/language-custom-functions/language-function-textformat.xml'> -<!ENTITY designers.language-custom-functions.language-function-html-select-time SYSTEM '../current_lang/designers/language-custom-functions/language-function-html-select-time.xml'> -<!ENTITY designers.language-custom-functions.language-function-counter SYSTEM '../current_lang/designers/language-custom-functions/language-function-counter.xml'> -<!ENTITY preface SYSTEM '../current_lang/preface.xml'> -<!ENTITY getting-started SYSTEM '../current_lang/getting-started.xml'>
View file
Smarty-3.1.13.tar.gz/documentation/entities/global.ent
Deleted
@@ -1,32 +0,0 @@ -<!-- - $Id: global.ent 2661 2006-12-02 22:18:14Z pete_morgan $ - - Contains global "macros" for all the XML documents. - --> - -<!ENTITY url.smarty 'http://www.smarty.net/'> -<!ENTITY url.ml.archive 'http://groups.google.com/group/smarty-discussion'> -<!ENTITY ml.general.sub 'ismarty-discussion-subscribe@googlegroups.com'> - -<!ENTITY url.wiki 'http://smarty.incutio.com/'> -<!ENTITY url.forums 'http://www.smarty.net/forums/'> -<!ENTITY url.chat 'irc://irc.freenode.net/smarty'> -<!ENTITY url.faq_1 'http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions'> -<!ENTITY url.faq_2 'http://www.smarty.net/forums/viewforum.php?f=23'> - -<!ENTITY url.e-accel 'http://eaccelerator.net/'> -<!ENTITY url.ion-accel 'http://www.php-accelerator.co.uk'> -<!ENTITY url.mmcache-accel 'http://turck-mmcache.sourceforge.net/'> -<!ENTITY url.zend 'http://www.zend.com/'> -<!ENTITY url.overLib 'http://www.bosrup.com/web/overlib/'> - -<!-- to use like <ulink url="&url.php-manual;some_function"> --> -<!ENTITY url.php-manual 'http://php.net/'> - -<!-- The three special language constants --> -<!ENTITY true '<constant>TRUE</constant>'> -<!ENTITY false '<constant>FALSE</constant>'> -<!ENTITY null '<constant>NULL</constant>'> -<!-- use <type>NULL</type> if you're talking about the _type_ NULL, - use &null; if it's about the _value_ NULL - -->
View file
Smarty-3.1.13.tar.gz/documentation/entities/version.ent
Deleted
@@ -1,1 +0,0 @@ -<!ENTITY build-date "2012-07-09">
View file
Smarty-3.1.13.tar.gz/documentation/entities/version.ent.in
Deleted
@@ -1,1 +0,0 @@ -<!ENTITY build-date "{DATE}">
View file
Smarty-3.1.13.tar.gz/documentation/es
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/appendixes/bugs.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="bugs"> - <title>ERRORES</title> - <para> - Revise el archivo de <filename>BUGS</filename> que viene con - la ultima distribución del Smarty, o Revise el website. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/appendixes/resources.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="resources"> - <title>Fuentes</title> - <para> - La pagina principal del Smarty está localizada en - <ulink url="&url.smarty;">&url.smarty;</ulink>. - Usted puede ingresar a la lista de email enviando un e-mail a - &ml.general.sub;. El archivo de la lista de e-mail puede ser - visto en <ulink url="&url.ml.archive;">&url.ml.archive;</ulink>. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/appendixes/tips.xml
Deleted
@@ -1,433 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="tips"> - <title>Consejos y Trucos</title> - <para> - </para> - <sect1 id="tips.blank.var.handling"> - <title>Manipulación de Variables Vacias</title> - <para> - Cuando usted en algunas ocaciones quiere imprimir un valor que - usted defíne a una variable vacia en vez de imprimir nada, tal - como imprimir "&nbsp;" a fin de que el plano del fondo de - la tabla funcione correctamente. Muchos usarian una sentencia - <link linkend="language.function.if">{if}</link> para manejar esto, - mas existe otra forma con Smarty, usando el modificador de la variable - <link linkend="language.modifier.default"><emphasis>default</emphasis></link>. - </para> - <example> - <title>Imprimiendo &nbsp; cuando una variable esta vacia</title> - <programlisting> -<![CDATA[ -{* the long way *} - -{if $title eq ""} - -{else} - {$title} -{/if} - - -{* the short way *} - -{$title|default:" "} -]]> - </programlisting> - </example> - <para> - Ver tambien <link linkend="language.modifier.default">default</link> - y <link linkend="tips.default.var.handling">Default Variable Handling</link>. - </para> - </sect1> - - <sect1 id="tips.default.var.handling"> - <title>Manipulación del valor default de una variable</title> - <para> - Si una variable es usada frecuentemente en sus templates, - aplicando el modificador default toda vez que este es - mencionado puede evitar un bit desagradable. Usted puede - remediar esto con la atribución de un valor por default a - la variable con la función - <link linkend="language.function.assign">{assign}</link>. - </para> - <example> - <title>Atribuyendo el valor por default a una variable en el template</title> - <programlisting> -<![CDATA[ -{* ponga esto en algun lugar en la parte de arriba de su template *} -{assign var="title" value=$title|default:"no title"} - -{* Si el $titulo estaba vacio, este ahora tendra el valor "sin titulo" cuando -usted lo exiba *} -{$title} -]]> - </programlisting> - </example> - <para> - Vea tambiéen <link linkend="language.modifier.default">default</link> y - <link linkend="tips.blank.var.handling">Blank Variable Handling</link>. - </para> - - </sect1> - <sect1 id="tips.passing.vars"> - <title>Pasando la variable titulo a la cabecera del template</title> - <para> - Cuando la mayoria de sus templates usan los mismo encabezados y - los mismos pies de pagina, es común dividirlos uno en cada template - y entonces incluirlos <link linkend="language.function.include">{include}</link>. - Que pasara si el encabezado necesita tener un titulo diferente, - dependiendo de que pagina estas viniendo? usted puede pasar el - titulo en el encabezado cuando este es incluido. - </para> - <example> - <title>Pasando la variable titulo al encabezado del template</title> - <para> - <filename>mainpage.tpl</filename> - </para> - <programlisting> -<![CDATA[ - -{include file="header.tpl" title="Main Page"} -{* template body goes here *} -{include file="footer.tpl"} -]]> - </programlisting> - <para> - <filename>archives.tpl</filename> - </para> - <programlisting> -<![CDATA[ - -{config_load file="archive_page.conf"} -{include file="header.tpl" title=#archivePageTitle#} -{* template body goes here *} -{include file="footer.tpl"} -]]> - </programlisting> - <para> - <filename>header.tpl</filename> - </para> - <programlisting> -<![CDATA[ -<html> -<head> -<title>{$title|default:"BC News"}</title> -</head> -<body> -]]> - </programlisting> - <para> - <filename>footer.tpl</filename> - </para> - <programlisting> -<![CDATA[ -</body> -</html> -]]> - </programlisting> - </example> - <para> - Cuando la pagina principal es mostrada, el titulo de la "Página - Principal" es pasado al template <filename>header.tpl</filename>, - y será posteriormente usado como el titulo. Cuando la pagina de archivo - es mostrada, el titulo sera "Archivos". Observelo en el ejemplo de archivo, - nosotros estamos usando una variable del archivo - <filename>archives_page.conf</filename> en vez de una variable codificada - rigida. Tambien note que "BC news" es mostrada si la variable $titulo no - esta definida, usando el modificador de la variable - <link linkend="language.modifier.default">default</link>. - </para> - </sect1> - <sect1 id="tips.dates"> - <title>Fechas</title> - <para> - Como una regla basica, siempre pase fechas al Smarty como timestamps. - Esto permite al diseñador de template utilizar - <link linkend="language.modifier.date.format">date_format</link> - para el control completo sobre el formato de fechas, y también - facilita la comparación de fechas si es necesario. - </para> - <note> - <para> - En el Smarty 1.4.0, usted puede parsar fechas al Smarty como - timestamps unix,mysql, o cualquier otra fecha interpretable - por <ulink url="&url.php-manual;strtotime">strtotime()</ulink>. - </para> - </note> - <example> - <title>Usando date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -Jan 4, 2001 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -2001/01/04 -]]> - </screen> - <programlisting> -<![CDATA[ -{if $date1 < $date2} - ... -{/if} -]]> - </programlisting> - </example> - <para> - Cuando usa <link linkend="language.function.html.select.date">{html_select_date}</link> - en un template, el programador normalmente va a querer convertir - la salida de un formulario de vuelta al formato timestamp. Aquí - esta una función para ayudar con esto. - </para> - <example> - <title>Convirtiendo elementos en forma de fecha de vuelta a un timestamp</title> - <programlisting role="php"> -<![CDATA[ -<?php -// esto asume que la forma de sus elementos son nombradas como -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year, $startDate_Month, $startDate_Day); - -function makeTimeStamp($year="", $month="", $day="") -{ - if(empty($year)) { - $year = strftime("%Y"); - } - if(empty($month)) { - $month = strftime("%m"); - } - if(empty($day)) { - $day = strftime("%d"); - } - - return mktime(0, 0, 0, $month, $day, $year); -} -?> -]]> - </programlisting> - </example> - <para> - Vea también - <link linkend="language.function.html.select.date">{html_select_date}</link>, - <link linkend="language.function.html.select.time">{html_select_time}</link>, - <link linkend="language.modifier.date.format">date_format</link> - y <link linkend="language.variables.smarty.now">$smarty.now</link>, - </para> - - </sect1> - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - Los templates WAP/WML requieren de un encabezado de - <ulink url="&url.php-manual;header">Content-Type</ulink> de - PHP para ser pasado junto con el template. La forma mas fácil de - hacer esto seria escribir una función de manera habitual que imprima - el encabezado. Si usted esta usando el sistema de - <link linkend="caching">cache</link>, este no funcionara, entonces - nosotros haremos esto usando una etiqueta de - <link linkend="language.function.insert">{insert}</link> (recuerde que - las etiquetas insert no son "cacheadas!"). Asegurarse que no exista - ninguna salida al navegador antes del template, de otro modo el encabezado fallara. - </para> - <example> - <title>Usando insert para escribir un encabezado WML Content-Type</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Asegurarse que el apache esta configurado para las extenciones .wml ! -// ponga esta función en algun lugar de su aplicación, o en Smarty.addons.php -function insert_header($params) -{ - // this function expects $content argument - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} - -?> -]]> - </programlisting> - <para> - Su template de Smarty <emphasis>debe</emphasis> comenzar con la etiqueta - insert, como en el ejemplo: - </para> - <programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- begin new wml deck --> -<wml> -<!-- begin first card --> -<card> -<do type="accept"> -<go href="#two"/> -</do> -<p> -Welcome to WAP with Smarty! -Press OK to continue... -</p> -</card> -<!-- begin second card --> -<card id="two"> -<p> -Pretty easy isn't it? -</p> -</card> -</wml> -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.componentized.templates"> - <title>Templates con Componetes</title> - <para> - Tradicionalmente, programar templates en sus aplicaciones es de - la siguiente forma: Primero, usted acumula sus variables dentro de su - aplicación PHP, (talvez como requisiciones de una base de datos). - Entonces, usted instancia su objeto Smarty - <link linkend="api.assign">assign()</link>, atribuye valores a - las variables y muestra el template - <link linkend="api.display">display()</link>. Por ejemplo nosotros - tenemos un registrador de existencias en nuestro template. Nosotros - recolectaremos los datos de las existencias en nuestra aplicación, - entonces damos valor a estas variables en el template y lo mostramos. - Ahora esto seria genial si usted adicionara este registrador de - almacenamiento (stock ticker) a cualquier aplicación simplemente - incluyendolo en el template, y no preocuparse hacerca de como ir - a traer los datos al frente? - </para> - <para> - Usted puede escribir este plugin haciendo que traiga un - contenido y asignarlo a la variable del template. - </para> - <example> - <title>Templates con Componetes</title> - <para> - <filename>function.load_ticker.php</filename> - - deja el archivo en - <link linkend="variable.plugins.dir">$plugins directory</link> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// deja el archivo "function.load_ticker.php" en el directorio de plugins - -// configura nuestra función para traer los datos almacenados -function fetch_ticker($symbol) -{ - // ponga la lógica aquí que traera $ticker_name - // y $ticker_price de algun recurso - return $ticker_info; -} - -function smarty_function_load_ticker($params, &$smarty) -{ - // llama la función - $ticker_info = fetch_ticker($params['symbol']); - - // asigna las variables al template - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{load_ticker symbol="YHOO" assign="ticker"} - -Stock Name: {$ticker.name} Stock Price: {$ticker.price} -]]> - </programlisting> - </example> - <para> - Vea también <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.include">{include}</link> y - <link linkend="language.function.php">{php}</link>. - </para> - - </sect1> - <sect1 id="tips.obfuscating.email"> - <title>Ofuscando direcciones de E-mail</title> - <para> - Usted desea saber como su direccion de E-mail consigue entrar en - tantas listas de e-mail de spam? Una direccion unica spammers - recolecta direcciones de E-mail y de paginas web. Para ayudar a - combatir este problema, usted puede hacer que su direccion de - E-mail aparesca en javascript mostrado en el codigo HTML, este - mismo aparecera y funcionara correctamente en el navegador. - Esto se puede hacer con el plugin - <link linkend="language.function.mailto">{mailto}</link>. - </para> - <example> - <title>Ejemplo de ofuscamiento de una direccion de E-mail</title> - <programlisting> -<![CDATA[ -{* in index.tpl *} - -Send inquiries to -{mailto address=$EmailAddress encode="javascript" subject="Hello"} -]]> - </programlisting> - </example> - <note> - <title>Nota Técnica</title> - <para> - Este metodo no es 100% a pueba de fallas. Un spammer podría crear - un programa para recolectar el e-mail y para decodificar estos - valores, mas no es muy común. - </para> - </note> - <para> - Vea también <link linkend="language.modifier.escape">escape</link> - y <link linkend="language.function.mailto">{mailto}</link>. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/appendixes/troubleshooting.xml
Deleted
@@ -1,179 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="troubleshooting"> - <title>Localización de Errores</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Errores Smarty/PHP</title> - <para> - El Smarty puede obtener muchos errores tales como, atributos de - etiquetas perdidos o nombres de variables mal formadas. Si este - ocurre, Usted vera un error similar al siguiente: - </para> - <example> - <title>Errores de Smarty</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041 -]]> - </screen> - </example> - <para> - Smarty te mostra el nombre del template, el número de la linea y - el error. Después de esto, el error consiste en el número de la - linea de la clase Smarty donde ocurrio el error. - </para> - - <para> - Existen ciertos errores que el Smarty no puede entender, - tales como un etiqueta de cierre errado. Estos tipos de - erros normalmente termina en una interpretacion de error - del tiempo de compilacion de PHP. - </para> - - <example> - <title>Errores de analisis gramatical de PHP</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 -]]> - </screen> - </example> - - <para> - Cuando usted encuentra un error de analisis de PHP, el número de la - linea de error corresponde al script PHP compilado, no al template - en si. Normalmente usted puede en el template localizar el error de - sinxis. Algunas cosas que usted puede buscar: falta de cierre de - etiquetas para <link linkend="language.function.if">{if}{/if}}</link> - o <link linkend="language.function.if">{section}{/section}</link>, o - sintaxis de la lógica dentro de una etiqueta {if}. Si usted no encuentra - el error, usted tendra que abrir el archivo PHP compilado y dirigirse al - número de linea mostrado, donde el correspondiente error esta en el template. - </para> - <example> - <title>Otros errores comunes</title> - - <itemizedlist> - <listitem> - <screen> -<![CDATA[ -Warning: Smarty error: unable to read resource: "index.tpl" in... -or -Warning: Smarty error: unable to read resource: "site.conf" in... -]]> - </screen> - <para> - <itemizedlist> - <listitem> - <para> - El <link linkend="variable.template.dir">$template_dir</link> - no existe o es incorrecto, o - el archivo <filename>index.tpl</filename> no esta en la carpeta - <filename class="directory">templates/</filename> - </para> - </listitem> - <listitem> - <para> - La función <link linkend="language.function.config.load">{config_load}</link> - esta dentro del template (o <link linkend="api.config.load">config_load()</link> - habia sido llamado) y cualquira de los dos - <link linkend="variable.config.dir">$config_dir</link> - es incorrecto, no exista o - <filename>site.conf</filename> no existe en el directorio. - </para> - </listitem> - </itemizedlist> - </para> - - </listitem><listitem> - <screen> -<![CDATA[ -Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, -or is not a directory... -]]> - </screen> - <para> - Cualquiera de las dos el - <link linkend="variable.compile.dir">$compile_dir</link> - es asignado incorrectamente, el directorio no existe, - o <filename>templates_c</filename> es un archivo y no un directorio. - </para> - </listitem><listitem> - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $compile_dir '.... -]]> - </screen> - <para> - El <link linkend="variable.compile.dir">$compile_dir</link> - no puede ser reescrito por el servidor web. Vea a fondo la pagina de permisos del - <link linkend="installing.smarty.basic">instalación de smarty</link>. - </para> - - </listitem><listitem> - <screen> -<![CDATA[ -Fatal error: Smarty error: the $cache_dir 'cache' does not exist, -or is not a directory. in /.. -]]> - </screen> - <para> - Esto significa que - <link linkend="variable.caching">$caching</link> es habilitado y - cualquiera de los dos; el - <link linkend="variable.cache.dir">$cache_dir</link> - es asignado incorrectamente, o el directorio no existe, - o <filename>cache</filename> es un archivo y no un directorio. - </para> - - </listitem><listitem> - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $cache_dir '/... -]]> - </screen> - <para> - Esto significa que - <link linkend="variable.caching">$caching</link> es habilitado y el - <link linkend="variable.cache.dir">$cache_dir</link> - no puede ser rescrito por el web server. Ver ampliamente la pagina de permisos de - <link linkend="installing.smarty.basic">la instalacion de smarty</link>. - </para> - </listitem> - </itemizedlist> - </example> - - <para> - Vea también - <link linkend="chapter.debugging.console">debugging</link>, - <link linkend="variable.error.reporting">$error_reporting</link> - y <link linkend="api.trigger.error">trigger_error()</link>. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/bookinfo.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: ramirez Status: ready --> - <bookinfo id="bookinfo"> - <title>Smarty - El motor compilador de Plantillas para PHP</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname><surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Andrei</firstname><surname>Zmievski <andrei@php.net></surname> - </author> - </authorgroup> - <authorgroup id="translators"> - <author> - <firstname>Mario</firstname><surname>Ramírez - <mario_ramirez@fjcorona.com.mx></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2005</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/chapter-debugging-console.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="chapter.debugging.console"> - <title>Debugging Console</title> - <para> - Incluso en Smarty existe una consola para debug. La consola informa - a usted de todos los templates incluidos, las variables definidas y - las variables de archivos de configuración de la llamada actual del - template. Incluso un template llamado "debug.tpl" viene con la - distribución de Smarty el cual controla el formateo de la consola. - Defina <link linkend="variable.debugging">$debugging</link> en true en - el Smarty, y si es necesario defina - <link linkend="variable.debug.tpl">$debug_tpl</link> para la ruta - del recurso debug.tpl (Esto es SMARTY_DIR por - default). Cuando usted carga una pagina, una consola en javascript - abrira una ventana popup y dara a usted el nombre de todos los templates - incluidos y las variables definidas en la pagina actual. Para ver las - variables disponibles para un template en particular, vea la función - <link linkend="language.function.debug">{debug}</link>. Para desabilitar - la consola del debug, defina $debugging en false. Usted puede activar - temporalmente la consola del debug colocando SMARTY_DEBUG en la URL si - usted activo esta opción con - <link linkend="variable.debugging.ctrl">$debugging_ctrl</link>. - </para> - <note> - <title>Nota Técnica</title> - <para> - La consola de debug no funciona cuando usted usa la API <link - linkend="api.fetch">fetch()</link>, solo cuando estuviera usando - <link linkend="api.display">display()</link>. - Es un conjunto de comandos javascript - adicionados al final del template generado. Si a usted no le gusta el - javascript, usted puede editar el template debug.tpl para formatear la - salida como usted quiera. Los datos del debug no son guardados en cache - y los datos del debug.tpl no son incluidos en la consola debug. - </para> - </note> - <note> - <para> - Los tiempos de carga de cada template y de archivos de configuración - son en segundos, o en fracciones de segundo. - </para> - </note> - <para> - Vea también - <link linkend="troubleshooting">troubleshooting</link>, - <link linkend="variable.error.reporting">$error_reporting</link> - y <link linkend="api.trigger.error">trigger_error()</link>. - </para> - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/config-files.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="config.files"> - <title>Config Files</title> - <para> - Los archivos de configuración son utiles para diseñar y administrar - variables globales para los templates a partir de un archivo. - Un ejemplo son los colores del template. Normalmente si usted quiere - cambiar el esquema de colores de una aplicación, usted debe ir a cada - uno de los archivos del template y cambiar los colores. - Con un archivo de configuración, los colores pueden estar mantenidos - en un lugar y solo necesita actualizar este para cambiar los colores. - </para> - <example> - <title>Ejemplo de sintaxis de un archivo de configuración</title> - <programlisting> -<![CDATA[ -# global variables -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[Customer] -pageTitle = "Customer Info" - -[Login] -pageTitle = "Login" -focus = "username" -Intro = """This is a value that spans more - than one line. you must enclose - it in triple quotes.""" - -# hidden section -[.Database] -host=my.domain.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]> - </programlisting> - </example> - <para> - Los valores de las variables pueden estar entre comillas, mas no es - necesario. Usted puede usar comillas simples o dobles. Si usted - tuviera un valor que ocupe mas de una linea, coloque todo el valor - entre tres comillas ("""). Usted puede colocar comentarios en un - archivo de configuración con cualquier sintaxis que no sea valida - en un archivo de configuración. Nosotros recomendamos usar un - <literal>#</literal> en el princio de cada linea. - </para> - <para> - Este archivo de configuración tiene dos secciones. Los nombres de - secciones debe estar entre corchetes []. Los nombres de sección - pueden ser cadenas arbitrarias que no contengan los simbolos - <literal>[</literal> or <literal>]</literal>. Las cuatro variables - en la cabecera son variables globales, o no son variables de sección. - Estas variables son siempre cargadas del archivo de configuración. Si - una sección en particular fuera cargada, entonces las variables - globales y las variables de esta sección son cargadas. Si una variable - existe como global y dentro de una sección, la variable de sección - será utilizada. Si usted tuviera dos variables en la misma sección con - el mismo nombre, la ultima será utilizada. - </para> - <para> - Los archivos de configuración son cargados en el template con una - función incrustada <link linkend="language.function.config.load"> - <command>{config_load}</command></link>. - (Ver También <link linkend="api.config.load"><command>config_load()</command></link> ). - - </para> - <para> - Usted puede ocultar variables o secciones enteras colocando un punto - antes del nombre de la variable. Esto es útil si su aplicación lee los - archivos de configuración y los datos sensibles a partir de ellos que - la herramienta del template no lo necesita. Si usted tiene a otras - personas realizando la edición de templates, usted tendra la certesa - que ellos no leeran datos sensibles del archivo de configuración - cargando estos en el template. - </para> - <para> - Ver También <link - linkend="language.function.config.load">{config_load}</link>, <link - linkend="variable.config.overwrite">$config_overwrite</link>, <link - linkend="api.get.config.vars">get_config_vars()</link>, <link - linkend="api.clear.config">clear_config()</link> y <link - linkend="api.config.load">config_load()</link> - </para> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.basic.syntax"> - <title>Basic Syntax</title> - <para> - Todas las etiquetas del template deben estar marcadas por delimitadores. - Por default , estos delimitadores son <literal>{</literal> - y <literal>}</literal>, sino estos pueden - <link linkend="variable.left.delimiter">cambiar</link>. - </para> - <para> - Para estos ejemplos, nosotros asumiremos que usted está usando los - delimitadores por default. En Smarty, todo el contenido fuera de los - delimitadores es mostrado como contenido estatico, o igual(sin cambios). - Cuando Smarty encuentra etiquetas en el template, trata de interpretarlos, - e intenta mostrar la salida apropiada en su lugar. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.escaping"> - <title>Escaping Smarty Parsing</title> - <para> - En algunas ocaciones es deseable o hasta necesario que Smarty tenga que - ingonar sections o algun otro tipo analisis de sintaxis. Un ejemplo clasico - es con el codigo JavaScript o CSS incrustado en el template. El problema se - origina cuando aquellos lenguajes que utilizan los caracteres { y } los - cuales son también los <link - linkend="language.function.ldelim">delimitadores</link> por default para Smarty. - </para> - - <para> - Esta puede ser una simple situación separando enteramente su codigo JavaScript - y CSS dentro de un archivo personal y utilizar el metodo standar del HTML para - el acceso. - </para> - - <para> - Es posible usar literal incluyendo el contenido del bloque <link - linkend="language.function.literal">{literal} .. {/literal}</link>. - Similar a usar entidades HTML, usted puede usar <link - linkend="language.function.ldelim">{ldelim}</link>,<link - linkend="language.function.ldelim">{rdelim}</link> o <link - linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link> - para mostrar los delimitadores actuales. - </para> - - <para> - Esto a menudo es conveniente para cambios simples a Smarty's <link - linkend="variable.left.delimiter">$left_delimiter</link> y - <link linkend="variable.right.delimiter">$right_delimiter</link>. - </para> - <example> - <title>Ejemplo cambiando delimitadores</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; -$smarty->assign('foo', 'bar'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - Donde example.tpl es: - </para> - <programlisting> -<![CDATA[ -<script language="javascript"> -var foo = <!--{$foo}-->; -function dosomething() { - alert("foo is " + foo); -} -dosomething(); -</script> -]]> - </programlisting> - </example> - <para> - Ver También <link linkend="language.modifier.escape">escape modifier</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.math"> - <title>Matemáticas</title> - <para> - Las matemáticas pueden ser aplicadas directamente al los valores de - las variables. - </para> - <example> - <title>Ejemplos de matemáticas</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* some more complicated examples *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> - -<para> - Ver también la función<link linkend="language.function.math">{math}</link>. -</para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.attributes"> - <title>Atributos</title> - <para> - La mayoria de las <link linkend="language.syntax.functions">funciones</link> - llevan atributos que especifican o - cambian su funcionamiento. Los atributos para las funciones de - Smarty son muy parecidos a los atributos de HTML. Los valores - estaticos no necesitan estar entre comillas, pero si es recomendado - para cadenas y literales. Las variables también pueden ser usadas - y no precisamente estando entre comillas. - </para> - <para> - Algunos atributos requieren valores boleanos(true o false). - Estos pueden ser especificados como cualquier otro valor sin comillas - <literal>true</literal>, <literal>on</literal>, y - <literal>yes</literal>, o <literal>false</literal>, - <literal>off</literal>, y <literal>no</literal>. - </para> - <example> - <title>Sintaxis de atributos de Funciones</title> - <programlisting> -<![CDATA[ -{include file="header.tpl"} - -{include file="header.tpl" attrib_name="attrib value"} - -{include file=$includeFile} - -{include file=#includeFile# title="Smarty is cool"} - -{html_select_date display_days=yes} - -<select name="company"> - {html_options options=$choices selected=$selected} -</select> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.comments"> - <title>Comentarios</title> - <para> - Los comentarios en los templates son cercados por asteriscos, y por - los delimitadores, así: {* este es un comentario *}. - Los comentarios en Smarty no son mostrados en la salida final del - template. - semejantes a <!-- HTML comments --> - Estos son usados para hacer notas internas dentro del template. - </para> - <example> - <title>Comentarios</title> - <programlisting> -<![CDATA[ -<body> -{* this multiline - comment is - not sent to browser -*} - -{* include the header file here *} -{include file="header.tpl"} - - -{* Dev note: $includeFile is assigned foo.php script *} -<!-- this html comment is sent to browser --> -{include file=$includeFile} - -{include file=#includeFile#} - -{* display dropdown lists *} -<select name="company"> - {html_options options=$vals selected=$selected_id} -</select> -</body> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.functions"> - <title>Funciones</title> - <para> - Cada etiqueta Smarty muestra una - <link linkend="language.variables">variable</link> o utiliza algún - tipo de función. Las funciones son procesadas y mostradas colocando - los <link linkend="language.syntax.attributes">atributos</link> de - la función entre delimitadores, así: - {funcname attr1="val" attr2="val"}. - </para> - <example> - <title>Sintaxis de Funciones</title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf"} - -{include file="header.tpl"} - -{if $highlight_name} - Welcome, <font color="{#fontColor#}">{$name}!</font> -{else} - Welcome, {$name}! -{/if} - -{include file="footer.tpl"} -]]> - </programlisting> - </example> - <para> - Las funciones internas y las funciones habituales, ambas deben tener - la misma sintaxis dentro del template. Las funciones <emphasis - role="bold">internas</emphasis> que - funcionan en Smarty, son: - <link linkend="language.function.if">{if}</link>, - <link linkend="language.function.section">{section}</link> y - <link linkend="language.function.strip">{strip}</link>. - Estas no pueden ser modificadas. - Las funciones habituales son - funciones <emphasis role="bold">adicionales</emphasis> implementadas - por <link linkend="plugins">plugins</link>. Estas si pueden - ser modificadas como usted quiera, o usted también puede - adicionar nuevas. - <link linkend="language.function.html.options">{html_options}</link> y - <link linkend="language.function.popup">{popup}</link> - son ejemplos de funciones habituales. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.quotes"> - <title>Colocando variables entre comillas dobles</title> - <para> - Smarty puede reconocer <link linkend="language.syntax.variables">variables</link> - <link linkend="api.assign">asignadas</link> entre comillas aunque estas - solo tengan números, letras, guiones bajos y corchetes[]. - Con cualquier otro carácter(puntos, referencia de objetos, etc.) las - variables deben estar entre apostrofos. - Usted no puede incrustar <link linkend="language.modifiers">modificadores</link>, - Estos deben ser siempre aplicados fuera de las comillas. - - </para> - <example> - <title>Sintaxis entre comillas</title> - <programlisting> -<![CDATA[ -SYNTAX EXAMPLES: -{func var="test $foo test"} <-- sees $foo -{func var="test $foo_bar test"} <-- sees $foo_bar -{func var="test $foo[0] test"} <-- sees $foo[0] -{func var="test $foo[bar] test"} <-- sees $foo[bar] -{func var="test $foo.bar test"} <-- sees $foo (not $foo.bar) -{func var="test `$foo.bar` test"} <-- sees $foo.bar -{func var="test `$foo.bar` test"|escape} <-- modifiers outside quotes! - -PRACTICAL EXAMPLES: -{include file="subdir/$tpl_name.tpl"} <-- will replace $tpl_name with value -{cycle values="one,two,`$smarty.config.myval`"} <-- must have backticks -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="language.modifier.escape">escape</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: ramirez Status: ready --> -<sect1 id="language.syntax.variables"> - <title>Variables</title> - <para> - Las variable de Template que comiencen con signo de pesos. - Pueden contener números, letras y guiones bajos, muy parecido a - las <ulink url="&url.php-manual;language.variables">variables de PHP</ulink>. - Usted también puede hacer referencia a arreglos que puden ser numericos o - no-numericos. También puede hacer referencia a métodos y propiedades de objetos. - <link linkend="language.config.variables">Config file variables</link> es una - excepción de la sintaxis del signo de pesos. - También puede ser referenciado entre #signos de numeros#, o con la - variable especial <link linkend="language.variables.smarty.config">$smarty.config</link>. - </para> - <example> - <title>Variables</title> - <programlisting> -<![CDATA[ -{$foo} <-- displaying a simple variable (non array/object) -{$foo[4]} <-- display the 5th element of a zero-indexed array -{$foo.bar} <-- display the "bar" key value of an array, similar to PHP $foo['bar'] -{$foo.$bar} <-- display variable key value of an array, similar to PHP $foo[$bar] -{$foo->bar} <-- display the object property "bar" -{$foo->bar()} <-- display the return value of object method "bar" -{#foo#} <-- display the config file variable "foo" -{$smarty.config.foo} <-- synonym for {#foo#} -{$foo[bar]} <-- syntax only valid in a section loop, see {section} -{assign var=foo value="baa"}{$foo} <-- displays "baa", see {assign} - -Many other combinations are allowed - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passing parameters -{"foo"} <-- static values are allowed -]]> - </programlisting> - </example> - <para> - Vea también <link linkend="language.variables.smarty">$smarty reserved variables</link> - y <link linkend="language.config.variables">Config Variables</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.builtin.functions"> - <title>Funciones Integradas</title> - <para> - Smarty cuenta con varias funciones integradas. Las funciones Integradas - forman parte del lenguaje del template. Usted no puede crear funciones - personalizadas con el mismo nombre, ni puede modificar las funciones - integradas. - </para> - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.capture"> - <title>capture</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>default</emphasis></entry> - <entry>El nombre del bloque capturado</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable para dar valor a la salida - capturada</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {capture} es usado para recolectar toda la salida del template en una - variable en lugar de mostrarla. - Cualquier contenido entre {capture name="foo"} y {/capture} es - recoletado en una variable especificada y el atributo name. El - contenido capturado puede ser usado en el template a partir de la - variable especial - <link linkend="language.variables.smarty.capture">$smarty.capture.foo</link> - en donde foo es el valor - pasado para el atributo name. Si usted no pasa un atributo name, - entonces será usado "default". Todos lo comandos {capture} deben - estar entre {/capture}. Usted puede anidar(colocar uno dentro de - otro) comandos capture. - </para> - <note> - <title>Nota Tecnica</title> - <para> - Smarty 1.4.0 - 1.4.4 coloca el contenido capturado dentro de la - variable llamada $return. A partir de 1.4.5, este funcionamento fue - cambiado para usar el atributo name, entonces en consecuencia actualice - sus templates. - </para> - </note> - <caution> - <para> - Tenga cuidado cuando capture la salida del comando - <link linkend="language.function.insert">{insert}</link>. - Si tuviera activo el <link linkend="caching">cache</link> y tuviera - comandos <link linkend="language.function.insert">{insert}</link> y - usted espera que funcione con contenido de cache, no se capturara este contenido. - </para> - </caution> - <para> - <example> - <title>capturando contenido de template</title> - <programlisting> -<![CDATA[ -{* no queremos imprimir la fila de la tabla a menos que exista - contenido para desplegar *} -{capture name=banner} -{include file="get_banner.tpl"} -{/capture} -{if $smarty.capture.banner ne ""} - <tr> - <td> - {$smarty.capture.banner} - </td> - </tr> -{/if} -]]> -</programlisting> - </example> - </para> - <para> - Ver También - <link linkend="language.variables.smarty.capture">$smarty.capture</link>, - <link linkend="language.function.eval">{eval}</link>, - <link linkend="language.function.fetch">{fetch}</link>, - <link linkend="api.fetch">fetch()</link> - y <link linkend="language.function.assign">{assign}</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,176 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.config.load"> - <title>config_load</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre del archivo de configuración a incluir</entry> - </row> - <row> - <entry>section</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la sección a cargar</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - Como el scope carga las variables debe ser tratado de - manera local, como padre y no como global. local indica - que las variables son cargadas en el contexto del template - local. parent indica que las variables son cargadas en el - contexto actual y en el template que llamo. global indica - que las variables estan disponibles para todos los templates. - </entry> - </row> - <row> - <entry>global</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>No</emphasis></entry> - <entry> - Cuando las variables no son vistas en el template - padre (al que llamo este), lo mismo que scope=parent. - NOTA: este atributo esta obsoleto pero el atributo scope, - puede dar el soporte. Si scope es el indicado, este valor - es ignorado. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Esta función es usada para cargar las <link - linkend="language.config.variables">#variables#</link> - de un archivo de configuración dentro de un template. - Vea <link linkend="config.files">Config Files</link> para mayor - información. - </para> - <example> - <title>Función {config_load}</title> - <para> - ejemplo.conf - </para> - <programlisting> -<![CDATA[ -#this is config file comment - -# global variables -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -#customer variables section -[Customer] -pageTitle = "Customer Info" -]]> - </programlisting> - <para>y el template</para> - <programlisting> - <![CDATA[ - {config_load file="example.conf"} - - <html> - <title>{#pageTitle#|default:"No title"}</title> - <body bgcolor="{#bodyBgColor#}"> - <table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> - </table> - </body> - </html> - ]]> - </programlisting> - </example> - <para> - Los <link linkend="config.files">archivos de configuración</link> - pueden contener secciones también. Usted puede cargar variables de - una sección adicionando el atributo <emphasis>'section'</emphasis>. - </para> - <note> - <para> - <emphasis>Config file sections</emphasis> es la función integrada - de template <link - linkend="language.function.section"><emphasis>{section}</emphasis></link> - no tiene nada que ver uno con el otro, ellos justamente por casualidad - tiene en común el convensionalismo del nombre. - </para> - </note> - <example> - <title>Función config_load con section</title> - <programlisting> -<![CDATA[ -{config_load file="ejemplo.conf" section="Customer"} - -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - Vea también <link linkend="config.files">Config files</link>, - <link linkend="language.config.variables">Config variables</link>, - <link linkend="variable.config.dir">$config_dir</link>, - <link linkend="api.get.config.vars">get_config_vars()</link> - y <link linkend="api.config.load">config_load()</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,247 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.foreach"> - <title>{foreach},{foreachelse}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>from</entry> - <entry>array</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la matriz a la que usted estara pegando los elementos</entry> - </row> - <row> - <entry>item</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable que es el elemento - actual</entry> - </row> - <row> - <entry>key</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable que es la llave actual</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre del ciclo foreach para acessar a las propiedades del foreach</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Los ciclos(loop) <emphasis>foreach</emphasis> son una alternativa para loop - <link linkend="language.function.section"><emphasis>{section}</emphasis></link>. - <emphasis>foreach</emphasis> es usado para pegar cada elemento de una - <emphasis role="bold">matriz asociativa simple</emphasis>. - La sintaxis para <emphasis>foreach</emphasis> es mucho mas simple que - <emphasis>section</emphasis>, pero tiene una desventaja de que solo puede ser - usada en una única matriz. - La etiqueta <emphasis>foreach</emphasis> debe tener su par - <emphasis>/foreach</emphasis>. - Los parámetros requeridos son <emphasis>from</emphasis> e - <emphasis>item</emphasis>. El nombre del ciclo(loop) foreach puede ser - cualquier cosa que usted quiera, hecho de letras, números y subrayados. - Los ciclos(loop) <emphasis>foreach</emphasis> pueden ser anidados, - y el nombre de los ciclos(loop) anidados debe ser diferente uno de - otro. La variable <emphasis>from</emphasis> (normalmente una matriz de valores) - determina el número de veces del ciclo(loop) <emphasis>foreach</emphasis>. - <emphasis>foreachelse</emphasis> y ejecutando cuando no hubieren mas valores - en la variable <emphasis>from</emphasis>. - </para> -<example> -<title>foreach</title> -<programlisting role="php"> - <![CDATA[ - <?php - $arr = array( 1001,1002,1003); - $smarty->assign('custid', $arr); - ?> - ]]> -</programlisting> - - <programlisting> -<![CDATA[ -{* este ejemplo muestra todos los valores de la matriz $custid *} -{foreach from=$custid item=curr_id} - id: {$curr_id}<br /> -{/foreach} -]]> - </programlisting> - <para> - Esta es la salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -]]> - </screen> -</example> - -<example> -<title>foreach key</title> - <programlisting role="php"> -<![CDATA[ -// La llave contiene la llave para cada valor del ciclo(loop) -//asignacion fisica de esta manera: -<?php - $smarty->assign('contacts', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{foreach name=outer item=contact from=$contacts} - <hr /> - {foreach key=key item=item from=$contact} - {$key}: {$item}<br /> - {/foreach} -{/foreach} -]]> - </programlisting> - <para> - Esta es la salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -<hr /> - phone: 1<br /> - fax: 2<br /> - cell: 3<br /> -<hr /> - phone: 555-4444<br /> - fax: 555-3333<br /> - cell: 760-1234<br /> -]]> - </screen> - </example> - <example> - <title>Ejemplo de {foreach} - con base de datos (eg PEAR o ADODB)</title> -<programlisting role="php"> -<![CDATA[ -<?php - $sql = 'select contact_id, name, nick from contacts order by contact'; - $smarty->assign("contacts", $db->getAssoc($sql)); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{foreach key=cid item=con from=$contacts} - <a href="contact.php?contact_id={$cid}">{$con.name} - {$con.nick}</a><br /> -{/foreach} -]]> - </programlisting> - </example> - - <para> - El ciclo(Loop) foreach también tiene sus propias variables para - manipular las propiedades del foreach. - Estas son indicadas así: - <link linkend="language.variables.smarty.loops">{$smarty.foreach.foreachname.varname}</link> - con foreachname siendo el nombre especificado del atributo - <emphasis>name</emphasis> del foreach. - </para> - <para>Ver <link linkend="section.property.index">{section}</link> - para ejemplos ide las propiedades bajo las cuales son identicos. - </para> - - <sect2 id="foreach.property.iteration"> - <title>iteration</title> - <para> - iteration es usado para mostrar la interación actual del ciclo(loop). - iteration siempre comienza en 1 incrementado en uno cada interación. - </para> - </sect2> - - <sect2 id="foreach.property.first"> - <title>first</title> - <para> - <emphasis>first</emphasis> Toma el valor true si la interación actual del - foreach es la primera. - </para> - </sect2> - - <sect2 id="foreach.property.last"> - <title>last</title> - <para> - <emphasis>last</emphasis> Toma el valor de true si la interación actual - del foreach es la ultima. - </para> - </sect2> - - <sect2 id="foreach.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> Es usado como parámetro para el foreach. - <emphasis>show</emphasis> Es un valor booleano, true o false. - Si es false, el foreach no será mostrado. Si tuviera un - foreachelse presente, este será alternativamente mostrado. - </para> - - </sect2> - <sect2 id="foreach.property.total"> - <title>total</title> - <para> - <emphasis>total</emphasis> Es usado para mostrar el número de interaciones - del foreach. Este puede ser usado dentro o después de el. - </para> - <para> - Ver tambien <link linkend="language.function.section">{section}</link> y - <link linkend="language.variables.smarty.loops">$smarty.foreach</link>. - </para> - </sect2> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,231 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.if"> - <title>if,elseif,else</title> - <para> - Los comandos <emphasis>{if}</emphasis> del Smarty tiene mucho de la - flexibilidad del comando - <ulink url="&url.php-manual;if"><command>if</command></ulink> de php, - con algunas adiciones para la herramienta de template. - Todo <emphasis>{if}</emphasis> debe tener su <emphasis>{/if}</emphasis>. - <emphasis>{else}</emphasis> y <emphasis>{elseif}</emphasis> también son - permitidos. - Toda las condicionales de PHP son reconcidas, tal como - <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, etc. - </para> - - <para> - La siguiente es una lista de calificadores reconocidos, los cuales - deberan estar separados los dos elementos por espacios. - Nota loas articulos pueden listarse [entre corchetes] es opcional. - Equivalentes al lugar donde se apliquen en PHP. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Calificador</entry> - <entry>Alternativa</entry> - <entry>Ejemplo de Sintaxis</entry> - <entry>Significado</entry> - <entry>Equivalente en PHP</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>Iguales</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>Diferentes</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>Mayor que</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>menor que</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>mayor que o igual</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>menor que o igual</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>Igual e indentico</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>negación (unary)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>modulo</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>divisible por</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>[not] es numero par (unary)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>agrupar niveles pares [not]</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>[not] el numero es impar (unary)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>[not] agrupa los niveles impares</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> -<example> -<title>sentencia if</title> -<programlisting> -<![CDATA[ -{if $name eq "Fred"} - Welcome Sir. -{elseif $name eq "Wilma"} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* Un ejemplo con "or" logico *} -{if $name eq "Fred" or $name eq "Wilma"} - ... -{/if} - -{* El mismo que arriba *} -{if $name == "Fred" || $name == "Wilma"} - ... -{/if} - -{* La siguiente sintaxis no funcionara, el calificador de condición - deben estar separados entre ellos por espacios *} -{if $name=="Fred" || $name=="Wilma"} - ... -{/if} - - -{* los parentesis son permitidos *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* Usted también puede colocar funciones de PHP *} -{if count($var) gt 0} - ... -{/if} - -{* checa si el valor es par o impar *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* checa si la variable var es divisible por 4 *} -{if $var is div by 4} - ... -{/if} - -{* Checa si la variable var es igual, agrupandola por dos. i.e., -0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,147 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.include.php"> - <title>{include_php}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre del archivo php a incluir</entry> - </row> - <row> - <entry>once</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Cuando incluir o no el archivo php mas de una vez, - ser incluido varias veces</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable que recibirá la - salida del archivo php</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <note> - <title>Nota técnica</title> - <para> - {include_php} es muy desaprovechado desde Smarty, usted puede - lograr la misma funcionalidad por medio de las funciones de - costumbre del template. - La unica razón para usar {include_php} es si usted en realidad tiene - la necesidad de poner en cuarentena la funcion de php fuera del - directorio de <link linkend="variable.plugins.dir">plugins</link> y - su codigo de la aplicación. - Vea un <link linkend="tips.componentized.templates">ejemplo</link> - de templates componentizados para detalles. - </para> - </note> - <para> - Las etiquetas {include_php} son usadas para incluir un script PHP - dentro de su template. <link linkend="variable.security"> - Si la seguridad estuviera activada</link>, entonces - el script PHP debe estar localizado en la ruta <link - linkend="variable.trusted.dir">$trusted_dir</link>. - La etiqueta include_php debe tener el atributo "file", el cual - contiene la ruta del archivo PHP a ser incluido, o el relativo - al <link linkend="variable.trusted.dir">$trusted_dir</link>, o - una ruta absoluta. - </para> - <para> - Por default, los archivos son incluidos solo una vez a un cuando son - incluidos varias veces en el template. Usted puede especificar que este - sea incluido todas la veces con un atributo <emphasis>once</emphasis>. - Definindo como false incluira el script php cada vez que este sea - incluido en el template. - </para> - <para> - Usted puede opcionalmente pasar el atributo <emphasis>assign</emphasis>, - el cual especificara una variable del template la cual contendra toda la - salida del <emphasis>{include_php}</emphasis> en vez de mostrarla. - </para> - <para> - El objeto smarty esta disponible como $this dentro del script php que usted - incluyo. - </para> -<example> - <title>funcion {include_php}</title> - <para>load_nav.php</para> - <programlisting role="php"> -<![CDATA[ -<?php - -// carga variables de una base de datos mysql y defíne esta para el template -require_once("MySQL.class.php"); -$sql = new MySQL; -$sql->query("select * from site_nav_sections order by name",SQL_ALL); -$this->assign('sections',$sql->record); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{* ruta absoluta o relativa del $trusted_dir *} -{include_php file="/path/to/load_nav.php"} - -{foreach item="curr_section" from=$sections} - <a href="{$curr_section.url}">{$curr_section.name}</a><br /> -{/foreach} -]]> - </programlisting> -</example> - <para> - Ver también <link linkend="language.function.include">{include}</link>, - <link linkend="language.function.php">{php}</link>, <link - linkend="language.function.capture">{capture}</link>, <link - linkend="template.resources">Template Resources</link> y <link - linkend="tips.componentized.templates">Componentized Templates</link> - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,183 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.include"> - <title>include</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre del archivo de template a Incluir.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de una variable que contendra toda la - salida del template.</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable para pasar localmente a el template</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Las etiquetas {include} son usadas para incluir otros templates en - el template actual. Cualquier variable disponible en el template - actual, también esta disponible dentro del template incluido. - La etiqueta {include} debe tener el atributo "file", el cual contiene - la ruta del archivo a incluir. - </para> - <para> - Usted puede opcionalmente pasar el atributo <emphasis>'assign'</emphasis>, - el cual especificara el nombre de una variable de template para el cual - contendra toda la salida de {include} en vez de mostrarla. - </para> -<example> - <title>funcion {include}</title> - <programlisting> -<![CDATA[ -<html> -<head> - <title>{$title}</title> -</head> -<body> -{include file="page_header.tpl"} - -{* el cuerpo del template va aqui *} -{include file="/$tpl_name.tpl"} <-- will replace $tpl_name with value - -{include file="page_footer.tpl"} -</body> -</html> -]]> - </programlisting> -</example> - <para> - Usted también puede pasar variables al template incluidas como - atributos. Cualquier variable pasada al template incluidas como - atributos estan disponibles solamente dentro el espacio del template. - Las variables pasadas como atributos sobreescriben a las variables - del template actual, en el caso en el que estas tengan el mismo nombre. - </para> -<example> -<title>Función {include} pasando variables</title> - <programlisting> -<![CDATA[ -{include file="header.tpl" title="Main Menu" table_bgcolor="#c0c0c0"} - -{* el cuerpo del template va aqui *} - -{include file="footer.tpl" logo="http://my.example.com/logo.gif"} -]]> - </programlisting> - <para>Donde header.tpl puede ser</para> -<programlisting> -<![CDATA[ -<table border='1' width='100%' bgcolor='{$table_bgcolor|default:"#0000FF"}'> - <tr><td> - <h1>{$title}</h1> - </td></tr> -</table> -]]> -</programlisting> -</example> - -<example> - <title>{include} y asignacion de variables</title> - <para>En este ejemplo asignan el contenido de nav.tpl en la variable $navbar, - entonces la salida hasta arriba y hasta abajo de pagina. - </para> - <programlisting> - <![CDATA[ -<body> -{include file="nav.tpl" assign="navbar"} -{include file="header.tpl" title="Main Menu" table_bgcolor="#c0c0c0"} -{$navbar} - -{* el cuerpo del template va aqui *} - -{include file="footer.tpl" logo="http://my.example.com/logo.gif"} -{$navbar} -</body> -]]> - </programlisting> - </example> - - - - <para> - Use la sintaxis de <link linkend="template.resources">template resources</link> - para incluir archivos fuera del directorio - <link linkend="variable.template.dir">$template_dir</link>. - </para> -<example> -<title>Ejemplos de recursos para la función include</title> - <programlisting> -<![CDATA[ -{* ruta absoluta *} -{include file="/usr/local/include/templates/header.tpl"} - -{* ruta absoluta (lo mismo) *} -{include file="file:/usr/local/include/templates/header.tpl"} - -{* ruta absoluta de windows (DEBE usar el prefijo "file:") *} -{include file="file:C:/www/pub/templates/header.tpl"} - -{* incluir a partir del recurso de template denominado "db" *} -{include file="db:header.tpl"} -]]> - </programlisting> - <para> - ver también - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.php">{php}</link>, - <link linkend="template.resources">Template Resources</link> y - <link linkend="tips.componentized.templates">Componentized Templates</link>. - </para> - -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,147 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.insert"> - <title>insert</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la función insert(insert_name)</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable del template que recibirá la - salida</entry> - </row> - <row> - <entry>script</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de un php que será incluido antes que la - función insert sea llamada </entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable para pasar a la función insert</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - La etiqueta funciona parecido a las etiquetas <link - linkend="language.function.include">{include}</link>, excepto - que las etiquetas insert no van para el cache cuando - <link linkend="caching">caching</link> esta activado. - Esta sera executada a cada invocación del template. - </para> - <para> - Digamos que usted tiene un template con un banner en la parte de arriba - de la pagina. El banner puede contener cualquier mezcla de HTML, imagenes, - flash, etc. Así nosotros no podemos usar una liga(link) estatica aquí, - y nosotros no queremos que este el contenido oculto con la pagina. - Aquí vemos la etiqueta {insert}: el template conoce los valores - #banner_location_id# y #site_id# (obtenidos de un <link - linkend="config.files">archivo de configuración</link>), - y necesita llamar una función para obtener el contenido del banner. - </para> -<example> - <title>función {insert}</title> -<programlisting> -{* ejemplo de traer un banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} -</programlisting> -</example> - <para> - En este ejemplo, nosotros estamos usando el nombre "getBanner" - y pasando los parámetros #banner_location_id# y #site_id#. - El Smarty lo buscara en la función llamada insert_getBanner() - en su aplicación PHP, pasando los valores de #banner_location_id# - y #site_id# como primer argumento en una matriz asociativa. - Todos los nombres de las funciones insert en su aplicación deben - ser precedidas por "insert_" para prevenir posibles problemas con - nombres de funciones repetidos. Su función insert_getBanner() debe - hacer algo con los valores pasados y retornar los resultados. - Estos resultados son mostrados en el template en lugar de la - etiqueta insert. En este ejemplo, el Smarty llamara esta función: - insert_getBanner(array("lid" => "12345","sid" => "67890")); y - mostrara el resultado retornado en el lugar de la etiqueta insert. - </para> - <para> - Si usted proporciona el atributo "assign", la salida de la etiqueta - {insert} será dada a esta variable en vez de ser una salida en el template. - Nota: definir la salida a una variable no es util cuando el <link - linkend="variable.caching">cache</link> esta habilitado. - </para> - <para> - Si usted proporciona el atributo "script", este script php será - incluido (solo una vez) antes de la ejecución de la función {insert}. - Este es el caso donde la función insert no exista todavia, y el - script php debe ser incluido antes para que pueda funcionar. - La ruta puede ser absuluta o relativa a <link - linkend="variable.trusted.dir">$trusted_dir</link>. - Cuando <link linkend="variable.security">la seguridad esta activada</link>, - el script debe estar en <link linkend="variable.trusted.dir">$trusted_dir</link>. - </para> - <para> - El objeto Smarty es pasado como segundo argumento. De este modo - puede referenciar y modificar información del objeto Smarty dentro - de la función. - </para> - <note> - <title>Nota Tecnica</title> - <para> - Es posible tener partes del template fuera de la cache. - Si usted tuviera <link linkend="caching">caching</link> - activado, la etiqueta insert no podra heredar por la cache. - Esta sera ejecutada dinámicamente cada vez que la pagina - sea creada, igual con paginas en cache. Esto funciona bien - para cosas como banners, encuestas, clima, busqueda de - resultados, areas de opinión de usuario, etc. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.ldelim"> - <title>{ldelim},{rdelim}</title> - <para> - {ldelim} y {rdelim} son usados para - <link linkend="language.escaping">escapar</link> delimitadores en el template, - en nuestro caso "{" or "}". Usted puede usar solo - <link linkend="language.function.literal">{literal}{/literal}</link> para - escapar bloques de texto. - Vea tambien <link linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link>. - </para> - <example> - <title>{ldelim}, {rdelim}</title> - <programlisting> -<![CDATA[ -{* Esto mostrara los delimitadores del template *} - -{ldelim}funcname{rdelim} is how functions look in Smarty! -]]> - </programlisting> - <para> - La salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -{funcname} is how functions look in Smarty! -]]> - </screen> - <para>Otros ejemplos con algunos javascript</para> - <programlisting> -<![CDATA[ -<script language="JavaScript"> -function foo() {ldelim} - ... code ... -{rdelim} -</script> -]]> - </programlisting> - <para> - esta es la salida - </para> - <screen> -<![CDATA[ -<script language="JavaScript"> -function foo() { - .... code ... -} -</script> -]]> - </screen> - - </example> - <para>Vea también <link linkend="language.escaping">Escaping Smarty Parsing</link> </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.literal"> - <title>literal</title> - <para> - Las etiquetas literal permiten que un block de datos sea tomado literalmente, - no siendo interpretado por el smarty. Esto es generalmente utilizado alrededor - de bloques javascript o stylesheet, en donde pueden haber sintaxis - <link linkend="variable.left.delimiter">delimitadoras</link> que puedan - interferir con el template. - - Cualquer cosa dentro de las etiquetas {literal}{/literal} no es - interpretado, si no desplegado tal como esta. Si usted necesita en su - template etiquetas incrustadas en su bloque de literal, considere usar - <link linkend="language.function.ldelim">{ldelim}{rdelim}</link> para - escapar delimitadores individuales en lugar de eso. - </para> - <example> - <title>Etiqueta literal</title> - <programlisting> -<![CDATA[ -{literal} - <script type="text/javascript"> - - <!-- - function isblank(field) { - if (field.value == '') - { return false; } - else - { - document.loginform.submit(); - return true; - } - } - // --> - - </script> -{/literal} -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="language.escaping">Escaping Smarty Parsing</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.php"> - <title>{php}</title> - <para> - Las etiquetas {php} permiten a suetdd incrustar código php directamente - en el template. No será escapado, no importando la definición de - <link linkend="variable.php.handling">$php_handling</link>. - Esto es solo para usuario avanzados y normalmente no es necesario. - </para> -<example> - <title>Etiqueta {php}</title> - <programlisting role="php"> -<![CDATA[ -{php} - // incluyendo un script php - // directamente en el template. - include("/path/to/display_weather.php"); -{/php} -]]> - </programlisting> -</example> -<note> -<title>Nota técnica</title> -<para> - Para poder tener acceso a las variables de PHP puede ser necesario usar la palabra clave - <ulink url="&url.php-manual;global">global</ulink> de PHP. -</para> -</note> - <para> - ver También - <link linkend="variable.php.handling">$php_handling</link>, - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.include">{include}</link> y - <link linkend="tips.componentized.templates">Componentized Templates</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,794 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.section"> - <title>section,sectionelse</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la section</entry> - </row> - <row> - <entry>loop</entry> - <entry>mixed</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable para determinar el número de iteracciones</entry> - </row> - <row> - <entry>start</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry> La posición del índice de la section donde va a comenzar. - Si el valor es negativo, la posición del inicio se calculara - a partir del final de la matriz. Por ejemplo, si hubieran 7 valores - en la matriz y comienza por -2, el índice inicial es 5. - Valores inválidos (valores fuera del tamaño de la matriz) son - automáticamente truncados para el valor valido mas próximo. - </entry> - </row> - <row> - <entry>step</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>El valor del step que sera usado para el loop de la matriz. - Por ejemplo, step=2 realizara el loop con los índices 0,2,4, etc. - Si step es negativo, este avanzara en la matriz de atras para adelante. - </entry> - </row> - <row> - <entry>max</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el número máximo de ciclos(loops) para la section.</entry> - </row> - <row> - <entry>show</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Determina cuando mostrar o no esta sección</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Las section del template son usada para realizar un ciclo(loop) de - un <emphasis role="bold">arreglo de datos</emphasis>. - (al agiual que un <link linkend="language.function.foreach">{foreach}</link>). - Todas las etiquetas <emphasis>section</emphasis> - deben tener su par <emphasis>/section</emphasis>. Los parámetros - requeridos son <emphasis>name</emphasis> y <emphasis>loop</emphasis>. - El nombre de la section puede ser el que usted quiera, formado por - letras, números y subrayados. Las sections pueden ser anidadas, y los - nombres de la section anidadas deben ser diferentes unos de otros. - Las variables del loop (normalmente una matriz de valores) determina - el número de veces del loop de la section. Cuando estuviera mostrando - una variable dentro de una section, el nombre de la section debe estar - al lado de la variable dentro de corchetes []. - <emphasis>sectionelse</emphasis> es ejecutado cuando no hubiera valores - para la variable del loop(ciclo). - </para> -<example> -<title>section</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$data = array(1000,1001,1002); -$smarty->assign('custid',$data); - -?> -]]> -</programlisting> - <programlisting> -<![CDATA[ -{* this example will print out all the values of the $custid array *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br /> -{/section} -<hr /> -{* print out all the values of the $custid array reversed *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}<br /> -{/section} -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -<hr /> -id: 1002<br /> -id: 1001<br /> -id: 1000<br /> -]]> - </screen> - <para> - Otro par de ejemplos sin un arreglo asignado. - </para> -<programlisting> -<![CDATA[ -{section name=foo start=10 loop=20 step=2} - {$smarty.section.foo.index} -{/section} -<hr /> -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> -</programlisting> -<para> - Esta es la salida del ejemplo de arriba: -</para> -<screen> - <![CDATA[ -10 12 14 16 18 -<hr /> -20 18 16 14 12 10 -]]> - </screen> -</example> - -<example> -<title>loop(ciclo) de la variable section</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> -</programlisting> - <programlisting> -<![CDATA[ -{* la variable del loop solo determina el número de veces del ciclo. - Usted puede accesar a cualquier variable del template dentro de la section. - Este ejemplo asume que $custid, $name y $address son todas matrizes - conteniendo el mismo número de valores *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> - name: {$name[customer]}<br> - address: {$address[customer]}<br> - <p> -{/section} -]]> -</programlisting> - <para> - La salida del ajemplo de arriba: - </para> - <screen> -<![CDATA[ -<p> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th -</p> -<p> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln -</p> -<p> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st -</p> -]]> - </screen> - </example> - -<example> -<title>Nombres de section</title> - <programlisting> -<![CDATA[ -{* - El nombre de la section puede ser el que usted quiera, - y es usado para referenciar los datos dentro de una section -*} -{section name=anything loop=$custid} -<p> - id: {$custid[anything]}<br /> - name: {$name[anything]}<br /> - address: {$address[anything]} -</p> -{/section} -]]> - </programlisting> - </example> -<example> -<title>sections anidadas</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> -</programlisting> -<programlisting> -<![CDATA[ -{* Las sections pueden ser anidados tan profundamente como usted quiera. - Con las sections anidadas, usted puede accesar a estructuras complejas, - como una matriz multi-dimensional. En este ejemplo, $contact_type[customer] - es una matriz de tipos de contacto para el cliente actual. *} -{section name=customer loop=$custid} -<hr> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]}<br /> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br /> - {/section} -{/section} -]]> -</programlisting> - <para> - la salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -<hr> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th<br /> - home phone: 555-555-5555<br /> - cell phone: 666-555-5555<br /> - e-mail: john@myexample.com<br /> -<hr> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln<br /> - home phone: 123-456-4<br /> - web: www.example.com<br /> -<hr> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st<br /> - cell phone: 0457878<br /> -]]> - </screen> - </example> - -<example> -<title>sections y matrices asociativas</title> - <programlisting role="php"> - <![CDATA[ -<?php - -$data = array( - array('name' => 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); - -?> -]]> - </programlisting> - - <programlisting> -<![CDATA[ -{* - Este es un ejemplo que muestra los datos de una matriz asociativa - dentro de una section -*} -{section name=customer loop=$contacts} -<p> - name: {$contacts[customer].name}<br /> - home: {$contacts[customer].home}<br /> - cell: {$contacts[customer].cell}<br /> - e-mail: {$contacts[customer].email} -</p> -{/section} -]]> - </programlisting> - <para> - Esta es la salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -<p> - name: John Smith<br /> - home: 555-555-5555<br /> - cell: 666-555-5555<br /> - e-mail: john@myexample.com -</p> -<p> - name: Jack Jones<br /> - home phone: 777-555-5555<br /> - cell phone: 888-555-5555<br /> - e-mail: jack@myexample.com -</p> -<p> - name: Jane Munson<br /> - home phone: 000-555-5555<br /> - cell phone: 123456<br /> - e-mail: jane@myexample.com -</p> -]]> - </screen> - <para>Ejemplo usando una base de datos(eg usando Pear o Adodb)</para> - <programlisting role="php"> - <![CDATA[ -<?php - -$sql = 'select id, name, home, cell, email from contacts'; -$smarty->assign('contacts',$db->getAll($sql) ); - -?> -]]> -</programlisting> - - <programlisting> -<![CDATA[ -{* - salida de la base de datos, resultado en una tabla -*} -<table> -<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> -{section name=co loop=$contacts} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> -</programlisting> - </example> - -<example> -<title>{sectionelse}</title> - <programlisting> -<![CDATA[ -{* sectionelse se ejecutara si no hubieran valores en $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br /> -{sectionelse} - there are no values in $custid. -{/section} -]]> - </programlisting> - </example> - <para> - Las sections también tiene sus propias variables que manipulan las - propiedades de section. Estas son indicadas asi: - <link linkend="language.variables.smarty.loops">{$smarty.section.sectionname.varname}</link> - </para> - <note> - <para> - NOTA: a partir de Smarty 1.5.0, la sintaxis de las variables de las - propiedades de section ha sido cambiadas de {%sectionname.varname%} a - {$smarty.section.sectionname.varname}. La sintaxis antigua es aun - soportada, pero usted puede ver la referencia de la sintaxis nueva - en los ejemplos del manual. - </para> - </note> - <sect2 id="section.property.index"> - <title>index</title> - <para> - index es usado para mostrar el índice actual del cliclo(loop), comenzando - en cero (o comienza con el atributo dado), e incrementando por uno (o por - un atributo de paso dado). - </para> - <note> - <title>Nota Tecnica</title> - <para> - Si las propiedades de paso y comienzo del section son modificadas, - entonces estas funcionan igual a las propiedades de - <link linkend="section.property.iteration">iteration</link> de la - section, exepto que comienzan en 0 en vez de 1. - </para> - </note> - <example> - <title>{section} propiedades del index</title> - <programlisting> -<![CDATA[ -{* FYI, $custid[customer.index] y $custid[customer] are identical in meaning *} - -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -]]> - </programlisting> - <para> - salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.index.prev"> - <title>index_prev</title> - <para> - El index_prev es usado para mostrar el índice anterior del loop(ciclo). - del primer loop(ciclo) esto es definido como -1. - </para> - </sect2> - - <sect2 id="section.property.index.next"> - <title>index_next</title> - <para> - El index_next es usado para mostrar el próximo indice del loop. - del último loop, esto es uno mas que el índice actual( respetando - la definición del atributo step que se a dado.) - </para> - <example> -<title>{section} propiedades del index_next y index_prev</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$data = array(1001,1002,1003,1004,1005); -$smarty->assign('custid',$data); - -?> -]]> -</programlisting> - <programlisting> -<![CDATA[ -{* FYI, $custid[cus.index] and $custid[cus] are identical in meaning *} - -<table> - <tr> - <th>index</th><th>id</th> - <th>index_prev</th><th>prev_id</th> - <th>index_next</th><th>next_id</th> - </tr> -{section name=cus loop=$custid} - <tr> - <td>{$smarty.section.cus.index}</td><td>{$custid[cus]}</td> - <td>{$smarty.section.cus.index_prev}</td><td>{$custid[cus.index_prev]}</td> - <td>{$smarty.section.cus.index_next}</td><td>{$custid[cus.index_next]}</td> - </tr> -{/section} -</table> -]]> - </programlisting> - <para> - la salida del ejemplo de arriba esta contenido en la siguiente tabla: - </para> - <screen> -<![CDATA[ -index id index_prev prev_id index_next next_id -0 1001 -1 1 1002 -1 1002 0 1001 2 1003 -2 1003 1 1002 3 1004 -3 1004 2 1003 4 1005 -4 1005 3 1004 5 -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.iteration"> - <title>iteration</title> - <para> - iteration es usado para mostrar la iteración actual del loop(ciclo). - </para> - <note> - <para> - Esto no es afectado por las propiedades del section start, step y max, - distinto de las propriedades del <link linkend="section.property.index">index</link>. - Iteration también comineza con 1 en vez de 0 como index. - <link linkend="section.property.rownum">rownum</link> es un alias de iteration, - estas funcionan de manera identica. - </para> - </note> - <example> - <title>{section} propiedades de iteration</title> -<programlisting role="php"> -<![CDATA[ -<?php - -// array of 3000 to 3015 -$id = range(3000,3015); -$smarty->assign('custid',$id); - -?> -]]> -</programlisting> - <programlisting> -<![CDATA[ -{section name=cu loop=$custid start=5 step=2} - iteration={$smarty.section.cu.iteration} - index={$smarty.section.cu.index} - id={$custid[cu]}<br /> -{/section} -]]> - </programlisting> - <para> - salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -iteration=1 index=5 id=3005<br /> -iteration=2 index=7 id=3007<br /> -iteration=3 index=9 id=3009<br /> -iteration=4 index=11 id=3011<br /> -iteration=5 index=13 id=3013<br /> -iteration=6 index=15 id=3015<br /> -]]> - </screen> - <para> - Este ejemplo utiliza la propiedad iteration para salida a una tabla - bloqueando el encabezado para cada 5 renglones - (utilice <link linkend="language.function.if">{if}</link> con el operador mod). - </para> - <programlisting> -<![CDATA[ - <table> -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} - <tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> - {/if} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> - </programlisting> -</example> - </sect2> - - <sect2 id="section.property.first"> - <title>first</title> - <para> - first es definido como true se la - <link linkend="section.property.iteration">iteración</link> - actual de la section es la primera. - </para> - </sect2> - - <sect2 id="section.property.last"> - <title>last</title> - <para> - last es definido como true si la - <link linkend="section.property.iteration">iteración</link> - actual del section es la ultima. - </para> - <example> - <title>{section} propiedades first y last</title> - <para> - En este ciclo de ejemplo el arreglo $customer, en la salida es bloqueado - el encabezado en la primera iteracion y en la ultima la salida es bloqueda - para el pie de pagina. - (Utilice la propiedad section <link linkend="section.property.total">total</link>) - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers} - {if $smarty.section.customer.first} - <table> - <tr><th>id</th><th>customer</th></tr> - {/if} - - <tr> - <td>{$customers[customer].id}}</td> - <td>{$customers[customer].name}</td> - </tr> - - {if $smarty.section.customer.last} - <tr><td></td><td>{$smarty.section.customer.total} customers</td></tr> - </table> - {/if} -{/section} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="section.property.rownum"> - <title>rownum</title> - <para> - rownum es usado para mostrar la interación actual del loop(ciclo), - comenzando con 1. Es un alias para - <link linkend="section.property.iteration">iteration</link>, estas - funcionan de modo identico. - </para> - </sect2> - - <sect2 id="section.property.loop"> - <title>loop</title> - <para> - loop es usado para mostrar el ultimo número del índice del - loop(ciclo) de esta section. Esto puede ser usado dentro o fuera del section. - </para> - <example> - <title>{section} propiedades de index</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - -There were {$smarty.section.customer.loop} customers shown above. -]]> - </programlisting> - <para> - La salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> - -There were 3 customers shown above. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis>Es usado como parámetro para section. - <emphasis>show</emphasis> Es un valor booleano, true o false. - Si es false, la section no será mostrada. Si existiera un - sectionelse presente, este será alternativamente mostrado. - </para> - <example> - <title>section atributos de show</title> - <programlisting> -<![CDATA[ - {* - $show_customer_info debe ser pasado de la aplicacion PHP, - para regular cuando mostrar o no esta section shows - *} -{section name=customer loop=$custid show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$custid[customer]}<br /> -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - </programlisting> - <para> - La salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> - -the section was shown. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.total"> - <title>total</title> - <para> - total es usado para mostrar el número de iteraciones que está - section tendra. Este puede ser usado dentro o fuera del section. - </para> - <example> - <title>{section} propiedades de total</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - - There were {$smarty.section.customer.total} customers shown above. -]]> - </programlisting> - <para> - The above example will output: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -2 id: 1002<br /> -4 id: 1004<br /> - -There were 3 customers shown above. -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.function.foreach">{foreach}</link> - y <link linkend="language.variables.smarty.loops">$smarty.section</link>. - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.strip"> - <title>{strip}</title> - <para> - Muchas veces el diseñador de web tiene problemas con los espacios en - blanco y retornos de carro que afectan la salida del HTML - (browser "features"), si usted tiene que colocar todas sus etiquetas - juntas para tener los resultados deseados. Esto normalmente termina - en un template ilegible o que no se puede leer. - </para> - <para> - A cualquier cosa dentro de las etiquetas{strip}{/strip} en Smarty le - son retirados los espacios en blanco y retornos de carro al inicio y - al final de las lineas antes que sean mostrados. - De este modo usted puede manter su template legible, y no se peocupara - de que los espacios en blanco extras le causen problemas. - </para> - <note> - <title>Nota Técnica</title> - <para> - {strip}{/strip} no afeta el contenido de las variables del template. - Vea la función <link linkend="language.modifier.strip">strip modifier</link>. - </para> - </note> -<example> - <title>{strip} tags</title> - <programlisting> -<![CDATA[ -{* El siguiente código se ejecutara todo junto en una sola linea de salida *} -{strip} -<table border='0'> - <tr> - <td> - <A HREF="{$url}"> - <font color="red">This is a test</font> - </A> - </td> - </tr> -</table> -{/strip} -]]> - </programlisting> - <para> - salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -<table border=0><tr><td><A HREF="http://w... snipped...</td></tr></table> -]]> - </screen> - </example> - <para> - Note que en el ejemplo de arriba, todas las lineas comienzan y termina - con etiquetas HTML. Tenga cuidado en que todas las lineas corran - conjuntamente. Si usted tuviera textos planos simples en el inicio - o en el final de una linea, este estaria junto, y puede no ser el - resultado deseado. - </para> - <para> - Vea También <link linkend="language.modifier.strip">strip modifier</link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-combining-modifiers.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.combining.modifiers"> - <title>Combinando Modificadores</title> - <para> - Usted puede aplicar cualquier cantidad de modificadores para una variable. - Estos seran aplicados en el orden en el que fueron combinados, de izquierda - a derecha. Estos deben ser separados con el carácter <literal>|</literal>(pipe). - </para> - <example> - <title>Combinando Modificadores</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); - -?> -]]> - </programlisting> -<para> -Donde el template es: -</para> -<programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - La salida del ejemplode arriba: - </para> - <screen> -<![CDATA[ -Smokers are Productive, but Death Cuts Efficiency. -S M O K E R S A R ....snip.... H C U T S E F F I C I E N C Y . -s m o k e r s a r ....snip.... b u t d e a t h c u t s... -s m o k e r s a r e p r o d u c t i v e , b u t . . . -s m o k e r s a r e p. . . -]]> - </screen> - </example> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.custom.functions"> - <title>Custom Functions</title> - <para> - Smarty viene con varias funciones personalizadas que usted - puede usar en sus templates. - </para> - - &designers.language-custom-functions.language-function-assign; - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-debug; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-popup-init; - &designers.language-custom-functions.language-function-popup; - &designers.language-custom-functions.language-function-textformat; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-assign.xml
Deleted
@@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.assign"> - <title>{assign}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El nombre de la variable que esta ganando el valor</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El valor que esta siendo dado</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {assign} es usado para definir valores a las variables de template - <emphasis role="bold">durante la ejecución</emphasis> del template. - </para> -<example> - <title>{assign}</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob"} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>Accesando variables desde un script de PHP. {assign}</title> - <para> - Puedes accesar {assign} variables desde php usando - <link linkend="api.get.template.vars">get_template_vars()</link>. - sin embargo, las variables solo estan disponibles despues/durante - la ejecución del template como en el siguiente ejemplo - </para> -<programlisting> -<![CDATA[ -{* index.tpl *} -{assign var="foo" value="Smarty"} -]]> -</programlisting> -<programlisting role="php"> -<![CDATA[ -<?php - -// this will output nothing as the template has not been executed -echo $smarty->get_template_vars('foo'); - -// fetch the template to a dead variable -$dead = $smarty->fetch('index.tpl'); - -// this will output 'smarty' as the template has been executed -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// this will output 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> -</programlisting> - </example> - - <para> - La siguiente función <emphasis>optionally</emphasis> también puede asignar variables al template. - </para> - - <para> - <link linkend="language.function.capture">{capture}</link>, - <link linkend="language.function.include">{include}</link>, - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.insert">{insert}</link>, - <link linkend="language.function.counter">{counter}</link>, - <link linkend="language.function.cycle">{cycle}</link>, - <link linkend="language.function.eval">{eval}</link>, - <link linkend="language.function.fetch">{fetch}</link>, - <link linkend="language.function.math">{math}</link>, - <link linkend="language.function.textformat">{textformat}</link> - </para> - - <para> - Ver también <link linkend="api.assign">assign()</link> - y <link linkend="api.get.template.vars">get_template_vars()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.counter"> - <title>{counter}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>default</emphasis></entry> - <entry>El nombre del contador</entry> - </row> - <row> - <entry>start</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>El número inicial para contar a partir de</entry> - </row> - <row> - <entry>skip</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>El intervalo para contar</entry> - </row> - <row> - <entry>direction</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>up</emphasis></entry> - <entry>La dirección para contar (up/down)</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Cuando mostrar o no el valor</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable del template que va a recibir la salida</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {counter} es usada para mostrar un conteo. {counter} va a depender del - conteo en cada iteración. Usted puede ajustar el número, el intervalo - y la dirección del conteo, asi como determinar cuando mostrar o no el - conteo. Usted puede tener varios contadores al mismo tiempo, dando un - nombre único para cada uno. Si usted no da un nombre, sera usado - 'default' como nombre. - </para> - <para> - Si usted indica el atributo especial "assign", la salida de la función - counter se ira para esa variable del template en vez de ser mostrada en - el template. - </para> - <example> - <title>counter</title> - <programlisting> -<![CDATA[ -{* Inicia el conteo *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.cycle"> - <title>cycle</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>default</emphasis></entry> - <entry>El nombre del ciclo</entry> - </row> - <row> - <entry>values</entry> - <entry>mixed</entry> - <entry>Si</entry> - <entry><emphasis>N/A</emphasis></entry> - <entry>Los valores del ciclo, o una lista delimitada por - coma (vea el atributo delimiter), o una matriz de valores. - </entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Cuando mostrar o no el valor</entry> - </row> - <row> - <entry>advance</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Cuando avanzar o no hacia el siguiente valor</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>,</emphasis></entry> - <entry>El delimitador para usar el valor del atributo.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable del template que recibirá la salida</entry> - </row> - <row> - <entry>reset</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Este coloca al ciclo en el primer valor y no le permite avanzar</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {Cycle} es usado para hacer un ciclo a través de un conjunto - de valores. Esto hace mas fácil alternar entre dos o mas colores - en una tabla, o ciclos a travéz de una matriz de valores. - </para> - <para> - Usted puede usar el {cycle} en mas de un conjunto de valores en su - template supliendo el atributo name. De cada uno de los conjuntos - de valores. - </para> - <para> - Usted puede forzar que el valor actual no sea mostrado definiendo - el atributo print en false. Esto es útil para saltarse un valor. - </para> - <para> - El atributo advance es usado para repetir un valor. cuando se - definido en false, la próxima llamada para cycle mostrara el - mismo valor. - </para> - <para> - Si usted indica el atributo especial "assign", la saida de la - función cycle ira a la variable del template en vez de ser mostrado - ditectamente en el template. - </para> - <example> - <title>cycle</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> - </programlisting> - <screen> -<![CDATA[ -<tr bgcolor="#eeeeee"> - <td>1</td> -</tr> -<tr bgcolor="#d0d0d0"> - <td>2</td> -</tr> -<tr bgcolor="#eeeeee"> - <td>3</td> -</tr> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>javascript</emphasis></entry> - <entry>Tipo de salida, html o javascript</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {debug} Muestra el debug de la consola en la pagina. - Esto funciona independente de la definición de - <link linkend="chapter.debugging.console">debug</link>. - Ya que este es ejecutado en tiempo de ejecución, este solo - puede mostrar las variables definidas, no en el template, es - decir en uso. Usted puede ver todas las variables disponibles - del template con scope. - </para> - <para> - Ver también <link linkend="chapter.debugging.console">Debugging console</link> - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.eval"> - <title>{eval}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>variable (o cadena) para evaluar</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable del template que recibirá la salida</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {eval} es usado para evaluar una variable como de template. Esto puede - ser usado para cosas como incrustar tags(etiquetas)/variables del - template dentro de las variables o tags(etiquetas)/variables dentro - de las variables de un archivo de configuración. - </para> - <para> - Si usted indica el atributo especial "assign", la salida de la - función eval se ira para esta variable de template en vez de - aparecer en el template. - </para> - <note> - <title>Nota Técnica</title> - <para> - Al evaluar las variables son tratas igual que el template. - Ellas sigen el mismo funcionamiento para escape y seguridad tal - como si ellas fueran templates. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - Las variables evaluadas son compiladas en cada invocación, las - vesiones compiladas no son salvas. Sin embargo, si usted tiene - activado el cache, la salida se va a fijar en la - <link linkend="caching">cache</link> junto con el resto del template. - </para> - </note> -<example> - <title>{eval}</title> - <programlisting> -<![CDATA[ - setup.conf - ---------- - - emphstart = <strong> - emphend = </strong> - title = Welcome to {$company}'s home page! - ErrorCity = You must supply a {#emphstart#}city{#emphend#}. - ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - </programlisting> - <para> - Where index.tpl is: - </para> - <programlisting> -<![CDATA[ - {config_load file="setup.conf"} - - {eval var=$foo} - {eval var=#title#} - {eval var=#ErrorCity#} - {eval var=#ErrorState# assign="state_error"} - {$state_error} -]]> - </programlisting> - <para> - La salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - This is the contents of foo. - Welcome to Foobar Pub & Grill's home page! - You must supply a <strong>city</strong>. - You must supply a <strong>state</strong>. - -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.fetch"> - <title>{fetch}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El archivo, sitio http o ftp para mandar llamar</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable del template que va a recibir la salida</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {fetch} es usado para obtener archivos de sistema local, http o ftp, y - mostrar el contenido. Si el nombre del archivo comienza con "http://", - la página del web site sera traida y mostrada. Si el nombre del archivo - comienza con "ftp://", el archivo será obtenido del servidor ftp y - mostrado. Para archivos locales, debe ser dada la ruta completa del - sistema de archivos, o una ruta relativa de el script php a ejecutar. - </para> - <para> - Si usted indica el atributo especial "assign", la salida de la función - {fetch} se ira a una variable de template en vez de ser mostrada en el - template. (nuevo en Smarty 1.5.0) - </para> - <note> - <title>Nota Técnica</title> - <para> - Esto no soporta redirecionamento http, tenga la certeza de incluirlo - en la barra el seguimiento para ir a buscar donde sea necesario. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - Si tiene activada la seguridad en su template y usted estuviera - recibiendo un archivo del sistema de archivos local, esto permitira - que solo archivos de uno de los directorios estuviera definido como - seguro. (<link linkend="variable.secure.dir">$secure_dir</link>) - </para> - </note> - <example> - <title>fetch</title> - <programlisting> -<![CDATA[ -{* include some javascript in your template *} -{fetch file="/export/httpd/www.example.com/docs/navbar.js"} - -{* embed some weather text in your template from another web site *} -{fetch file="http://www.myweather.com/68502/"} - -{* fetch a news headline file via ftp *} -{fetch file="ftp://user:password@ftp.example.com/path/to/currentheadlines.txt"} - -{* assign the fetched contents to a template variable *} -{fetch file="http://www.myweather.com/68502/" assign="weather"} -{if $weather ne ""} - <b>{$weather}</b> -{/if} -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="language.function.capture">{capture}</link>, - <link linkend="language.function.eval">{eval}</link> - y <link linkend="api.fetch">fetch()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,201 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.html.checkboxes"> - <title>{html_checkboxes}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>Nombre de la lista checkbox</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Si, a menos que se este utilizando el atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Una matriz de valores para los botones checkbox</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Si, a menos que estuviera usando el atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz de salida para los botones checkbox</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>El(s) elemento(s) checkbox marcado(s)</entry> - </row> - <row> - <entry>options</entry> - <entry>arreglo asociativo</entry> - <entry>Si, a menos que este usando values y output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Una matriz asociativa de valores y salida</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Cadena de texto para separar cada checkbox</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Adicionar la etiqueta <label> para la salida</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_checkboxes} es una - <link linkend="language.custom.functions">función personalizada</link> - que crea un grupo de checkbox con datos privistos. Este cuida cuales items(s) - estan selecionados por default. Los atributos requeridos son - values y output, a menos que usted use options. - Toda la salida es compatible con XHTML. - </para> - <para> - Todos los parámetros que no esten en la lista de arriba - son mostrados como nombre/valor dentro de cada etiqueta - <input> creada. - </para> - <example> - <title>{html_checkboxes}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> -donde el template es - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" values=$cust_ids output=$cust_names - selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - o donde el codigo es: - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - y el template es - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" options=$cust_checkboxes selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - salida de ambos ejemplos: - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label> -<br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title> - ejemplo de base de datos (eg PEAR o ADODB): - </title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select * from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> -<programlisting> -<![CDATA[ -{html_checkboxes name="type" options=$types selected=$contact.type_id separator="<br />"} -]]> -</programlisting> - </example> - <para> - Vea también - <link linkend="language.function.html.radios">{html_radios}</link> - y <link linkend="language.function.html.options">{html_options}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: ramirez Status: ready --> - <sect1 id="language.function.html.image"> - <title>{html_image}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>nombre/ruta de la imagen</entry> - </row> - <row> - <entry>height</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>Altura actual de la imagen</emphasis></entry> - <entry>altura con la cual la imagen debe ser mostrada</entry> - </row> - <row> - <entry>width</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>Largo actual de la imagen</emphasis></entry> - <entry>largo con el cual la imagen debe ser mostrada</entry> - </row> - <row> - <entry>basedir</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>document root del servidor web</emphasis></entry> - <entry>ruta relativa para la base del directorio</entry> - </row> - <row> - <entry>alt</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>""</emphasis></entry> - <entry>descripción alternativa de la imagen</entry> - </row> - <row> - <entry>href</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>valor href a donde la imagen será ligada</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_image} es una - <link linkend="language.custom.functions">función habitual</link> - que genera una etiqueta HTML para una imagen. La altura y lo largo - son automáticamente calculadas a partir del archivo de la imagen si - ningún valor suplido. - </para> - <para> - basedir es el directorio base en el cual las rutas relativas de las - imagenes estan basados. Si no lo proporciona, el document root del - servidor (<link linkend="language.variables.smarty">env</link> variable - de ambiente DOCUMENT_ROOT) es usada como el - directorio base. Si la <link linkend="variable.security">$security</link> - esta habilitada, la ruta para la imagen debe estar dentro de un directorio seguro. - </para> - <para> - <parameter>href</parameter> es el valor href a donde la imagen - sera ligada. Si un link es proporcionado, una etiqueta <a - href="LINKVALUE"><a> es puesta alrededor de la imagen. - </para> - <para> - Todos los parametros que no esten dentro de la lista de arriba - son mostrados como pares de nombre/valor dentro de la etiqueta - creada <img>. - </para> - <note> - <title>Nota Técnica</title> - <para> - {html_image} requiere un acceso a disco para leer la imagen y - calcular la altura y el largo. Si usted no usa <link - linkend="caching">cache</link> en el template, - generalmente es mejor evitar {html_image} y utilizar - las etiquetas de imagen estáticas para un optimo funcionamiento. - </para> - </note> - <example> - <title>html_image example</title> - <programlisting> -<![CDATA[ -where index.tpl is: -------------------- -{html_image file="pumpkin.jpg"} -{html_image file="/path/from/docroot/pumpkin.jpg"} -{html_image file="../path/relative/to/currdir/pumpkin.jpg"} -]]> - </programlisting> - <para> - la posible saldida puede ser: - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,210 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.options"> - <title>{html_options}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Si, a menos que use el atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz de valores para el menu dropdown</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Si, a menos que use el atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz de salida para el menu dropdown</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>los elemento(s) de la option selecionado(s)</entry> - </row> - <row> - <entry>options</entry> - <entry>arreglo asociativo</entry> - <entry>Si, a menos que utilize valores y salida</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz asociativa de valores y salida</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>nombre del grupo seleccionado</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_options} es una - <link linkend="language.custom.functions">función customizada</link> - que crea un grupo html <select><option> con los datos proporcionados. - Este se encarga de cuidar cuales datos han sido selecionado por default. - Los atributos son valores y salidas, a menos que usted utilice - options en lugar de eso. - </para> - <para> - Si un valor es una matriz, este será tratado como un <optgroup> html, - y mostrara los grupos. La recursión es soportada por <optgroup>. - Todas las salidas son compatibles con XHTML. - </para> - <para> - Si el atributo opcional <emphasis>name</emphasis> es dado, las - etiquetas <select name="groupname"></select> - encapsularan la lista de opciones. - De otra manera solo es generada la lista de opciones. - </para> - <para> - Todos los parámetros que no estan en la lista de arriba son - exibidos como name/value-pairs dentro de las etiquetas <select>. - Estas son ignoradas si la opcion <emphasis>name</emphasis> no es dada. - </para> -<example> - <title>{html_options}</title> - <para> - <emphasis role="bold">Ejemplo 1:</emphasis> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - donde el template es: - </para> - <programlisting> -<![CDATA[ -<select name=customer_id> - {html_options values=$cust_ids output=$cust_names selected=$customer_id} -</select> -]]> - </programlisting> - <para> - <emphasis role="bold">Ejemplo 2:</emphasis> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_options', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> -donde el template es: - </para> - <programlisting> -<![CDATA[ -<select name=customer_id> - {html_options options=$cust_options selected=$customer_id} -</select> -]]> - </programlisting> - <para> - Salida de ambos ejemplos de arriba: - </para> - <screen> -<![CDATA[ -<select name=customer_id> - <option label="Joe Schmoe" value="1000">Joe Schmoe</option> - <option label="Jack Smith" value="1001" selected="selected">Jack Smith</option> - <option label="Jane Johnson" value="1002">Jane Johnson</option> - <option label="Charlie Brown" value="1003">Charlie Brown</option> -</select> - -]]> - </screen> - </example> - <example> - <title>{html_options} - Ejemplo con base de datos (eg PEAR o ADODB):</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> -</programlisting> -<para> -Donde el template es: -</para> -<programlisting> -<![CDATA[ -<select name="type_id"> - <option value='null'>-- none --</option> - {html_options name="type" options=$types selected=$contact.type_id} -</select> -]]> - </programlisting> - </example> - <para> - vea también - <link linkend="language.function.html.checkboxes">{html_checkboxes}</link> - y <link linkend="language.function.html.radios">{html_radios}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,200 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.radios"> - <title>{html_radios}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>Nombre de la lista del radio</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Si, a menos que utilice el atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz de valores para radio buttons</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Si, a menos que utilice el atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz de salida para radio buttons</entry> - </row> - <row> - <entry>selected</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>El elemento del radio selccionado</entry> - </row> - <row> - <entry>options</entry> - <entry>arreglo asociativo</entry> - <entry>Si, a menos qie utilice valores y salida</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>una matriz asociativa de valores y salida</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>cadena de texto para separar cada objeto de radio</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_radios} es una - <link linkend="language.custom.functions">función customizada</link> - que crea grupos de botones de radio html con los datos proporcionados. - Este esta atento para saber cual objeto esta selccionado por default. - Los atributos requeridos son valores y salidas, a menos que usted - use option en lugar de eso. Toda salida es compatible con XHTML. - </para> - <para> - Todos los parámetros que no estan en la lista de arriba son impresos - como pares de name/value dentro de cada etiqueta <input> creada. - </para> - -<example> - <title>{html_radios} : Ejemplo 1</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{html_radios name="id" values=$cust_ids output=$cust_names - selected=$customer_id separator="<br />"} - ]]> - </programlisting> -</example> -<example> - <title>{html_radios} : Ejemplo 2</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - Salida de ambos ejemplos: - </para> - <screen> -<![CDATA[ -<label for="id_1000"> -<input type="radio" name="id" value="1000" id="id_1000" />Joe -Schmoe</label><br /> -<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" -checked="checked" />Jack -Smith</label><br /> -<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane -Johnson</label><br /> -<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie -Brown</label><br /> -]]> - </screen> - </example> - <example> - <title>{html_radios}- Ejemplo con base de Datos (eg PEAR o ADODB):</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> -</programlisting> -<para> -y el template: -</para> -<programlisting> -<![CDATA[ -{html_radios name="type" options=$types selected=$contact.type_id separator="<br />"} -]]> -</programlisting> - </example> - <para> - ver también - <link linkend="language.function.html.checkboxes">{html_checkboxes}</link> - y <link linkend="language.function.html.options">{html_options}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,362 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.select.date"> - <title>{html_select_date}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Date_</entry> - <entry>Con el prefijo el nombre de la variable</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/YYYY-MM-DD</entry> - <entry>No</entry> - <entry>Tiempo actual en el timestamp de unix o el - formato YYYY-MM-DD</entry> - <entry>Cual date/time a usar</entry> - </row> - <row> - <entry>start_year</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Año actual</entry> - <entry> El primer año primero en el menu dropdown, o - el número de año, o el relativo al año actual (+/- N) - </entry> - </row> - <row> - <entry>end_year</entry> - <entry>string</entry> - <entry>No</entry> - <entry>de la misma forma que start_year</entry> - <entry>El ultimo año en el menu dropdown, o el - número de año, o el relativo al año actual (+/- N) - </entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Muestra los dias o no</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Muestra los meses o no</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Muestra los años o no</entry> - </row> - <row> - <entry>month_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%B</entry> - <entry>Cual debe ser el formato de salida del mes - dentro de (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%02d</entry> - <entry>Cual debe ser el formato de salida del dia dentro de (sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%d</entry> - <entry>Cual debe ser el formato de salida del valor - del dia dentro de (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Se mostrara o no el año como texto</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Muestra los años en orden inverso</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - si un nombre es dado, las cajas de seleción - seran exibidas semejantes a los resultados - que estaran retornando al PHP en la forma. - name[Day], name[Year], name[Month]. - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona el tamaño al atributo para la - etiqueta select si fue dada</entry> - </row> - <row> - <entry>month_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona el tamaño del atributo para la - etiqueta select si fue dada</entry> - </row> - <row> - <entry>year_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona el tamaño del atributo para la - etiqueta select si fue dada</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras para todas las - etiquetas select/input si fueron dadas</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras para todas las - etiquetas select/input si fueron dadas</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras para todas las - etiquetas select/input si fueron dadas</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras para todas las - etiquetas select/input si fueron dadas</entry> - </row> - <row> - <entry>field_order</entry> - <entry>string</entry> - <entry>No</entry> - <entry>MDY</entry> - <entry>El orden para ser mostrados los campos</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>Cadena a mostrar entre los diferentes campos</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%m</entry> - <entry> formato strftime de los valores del mes, - el default es %m para el número del mes. - </entry> - </row> - <row> - <entry>year_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Si es proporcionado entonces el primer elemento - es el año select-box tiene este valor como etiqueta y - "" como valor. - Esto es util para hacer una lectura en el select-box - por ejemplo "por favor seccione el año". - Note que este puede usar valores como "-MM-DD" como - atributos de time indicando que el año sea desmarcado. - </entry> - </row> - <row> - <entry>month_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Si es proporcinado entonces el mes es el primer - elemento select-box tiene este valor como etiqueta y - "" como valor. - Note que usted puede usar valores como "YYYY--DD" como - atributos de time indicando que el mes sea desmarcado. - </entry> - </row> - <row> - <entry>day_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Si es proporcinado entonces es dias es el - primer elemento select-box tiene este valor como - etiqueta y "" como valor. - Note que usted puede usar valores como "YYYY-MM--" - como atributos de time indicando que el dia sea - desmarcado. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_select_date} es una - <link linkend="language.custom.functions">función customizada</link> - que crea menus dropdowns de fechas para usted. Este puede mostrar - algunos o todos por año, mes y dia. - </para> -<example> - <title>{html_select_date}</title> - <para>Codigo del Template</para> - <programlisting> -<![CDATA[ -{html_select_date} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> - ..... snipped ..... -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> - ..... snipped ..... -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected="selected">13</option> -<option value="14">14</option> -<option value="15">15</option> - ..... snipped ..... -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2001" selected="selected">2001</option> -</select> -]]> - </screen> - </example> - <example> - <title>{html_select_date}</title> - <programlisting> -<![CDATA[ -{* el año seleccionado puede ser relativo al año actual *} -{html_select_date prefix="StartDate" time=$time start_year="-5" - end_year="+1" display_days=false} -]]> - </programlisting> - <para> - esta es la salida: (el año actual es 2000) - </para> - <screen> -<![CDATA[ -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="StartDateYear"> -<option value="1995">1995</option> -<option value="1996">1996</option> -<option value="1997">1997</option> -<option value="1998">1998</option> -<option value="1999">1999</option> -<option value="2000" selected="selected">2000</option> -<option value="2001">2001</option> -</select> -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.function.html.select.time">{html_select_time}</link>, - <link linkend="language.modifier.date.format">date_format</link>, - <link linkend="language.variables.smarty.now">$smarty.now</link> - y <link linkend="tips.dates">date tips</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,343 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.html.select.time"> - <title>{html_select_time}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Time_</entry> - <entry>con el prefijo el nombre de la variable</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>No</entry> - <entry>current time</entry> - <entry>cual date/time va a usar</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Mostrar o no las horas</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Mostrar o no los minutos</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Mostrar o no los segundos</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Mostrar o no el meridiano (am/pm)</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Usar o no reloj de 24 horas</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>1</entry> - <entry>número de los intervalos de los minutos del menu dropdown</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>1</entry> - <entry>número de los intervalos de los segundos del menu dropdown</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>No</entry> - <entry>n/a</entry> - <entry>muestra los valores del arreglo con este nombre</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras a las etiquetas select/input - si fueron proporcionados</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras a las etiquetas select/input - si fueron proporcionados</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras a las etiquetas select/input - si fueron proporcionados</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras a las etiquetas select/input - si fueron proporcionados</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras a las etiquetas select/input - si fueron proporcionados</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_select_time} es una - <link linkend="language.custom.functions">función customizada</link> - que crea menus dropdowns de tiempo para usted. Esta puede mostrar - algunos valores, o todo en hora, minuto, segundo y am/pm. - </para> - <para> - Los atributos de time pueden tener diferentes formatos. Este puede ser - un unico timestamp o una cadena conteniendo YYYYMMDDHHMMSS o una cadena - parseda por php's <ulink url="&url.php-manual;strtotime">strtotime()</ulink>. - </para> - <example> - <title>{html_select_time}</title> - <programlisting> -<![CDATA[ -template code: --------------- -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> - </example> - <para> - Ver también - <link linkend="language.variables.smarty.now">$smarty.now</link>, - <link linkend="language.function.html.select.date">{html_select_date}</link> - y <link linkend="tips.dates">date tips</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,196 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.table"> - <title>{html_table}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>matriz de datos para el ciclo(loop)</entry> - </row> - <row> - <entry>cols</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>3</emphasis></entry> - <entry>Número de columnas para la tabla. Si el atributo cols esta vacio, - los renglones seran determinados, entonces el numero de columnas - sera calculado por el numero de renglones y el numero de elementos a - mostrar para ser ajustado a las columnas de todos los elementos que seran - mostrados, si ambos, renglones y columnas, son omitidos las columnas por - default son 3. - </entry> - </row> - <row> - <entry>rows</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry> Número de renglones en la tabla. Si el atributo rows es vacio, - las columnas seran determinadas, entonces el numero de renglones sera - calculado por el numero de columnas y el numero de elementos a mostrar - para ser ajustado el numero de renglones al total de elementos a ser mostrados. - </entry> - </row> - <row> - <entry>inner</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>cols</emphasis></entry> - <entry> Dirección consecutiva de los elementos en el arreglo para ser representados. - <emphasis>cols</emphasis> manera en que los elementos son mostrados columna - por columna. <emphasis>rows</emphasis> manera en que los elementos son mostrados - renglon por renglon. - </entry> - </row> - <row> - <entry>table_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>atributos para la etiqueta table</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>atributos para la etiqueta tr (arreglos del ciclo)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>atributos para la etiqueta td (arreglos del ciclo)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>valor de relleno de las celdas para el ultimo - renglon con (si hay alguno)</entry> - </row> - - <row> - <entry>hdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>right</emphasis></entry> - <entry> dirección de una linea para ser representada. posibles valores: - <emphasis>left</emphasis> (left-to-right), <emphasis>right</emphasis> (right-to-left) - </entry> - </row> - <row> - <entry>vdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>down</emphasis></entry> - <entry>Dirección de las columnas para ser representadas. posibles valores: - <emphasis>down</emphasis> (top-to-bottom), <emphasis>up</emphasis> (bottom-to-top) - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {html_table} Es una - <link linkend="language.custom.functions">función customizada</link> - que transforma un arreglo de datos en una tabla HTML. El atributo - <emphasis>cols</emphasis> determina el número de columnas que tendra la tabla. - Los valores <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> y - <emphasis>td_attr</emphasis> determinan los atributos dados para las etiquetas - tabla, tr y td. Si <emphasis>tr_attr</emphasis> o <emphasis>td_attr</emphasis> - son arreglos, ellos entraran en un ciclo. <emphasis>trailpad</emphasis> y el - valor depositado dentro de trailing cells en la ultima linea de la tabla si existe - alguna presente. - </para> - -<example> -<title>html_table</title> - <programlisting role="php"> -<![CDATA[ -php code: ---------- -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -template code: --------------- -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} -]]> - </programlisting> - <para> - La salida de ambos ejemplos: - </para> - <screen> -<![CDATA[ -<table border="1"> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</table> -<table border="0"> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td> </td><td> </td><td> </td></tr> -</table> -<table border="1"> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr> -</table> -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,175 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.mailto"> - <title>{mailto}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La dirección de correo electronico(e-mail)</entry> - </row> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El texto para mostrar, el default es la dirección de correo (e-mail)</entry> - </row> - <row> - <entry>encode</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>none</emphasis></entry> - <entry>Como codificar el e-mail. Puede ser - <literal>none</literal>, <literal>hex</literal>, - <literal>javascript</literal> o <literal>javascript_charcode</literal>. - </entry> - </row> - <row> - <entry>cc</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry> La dirección de correo(e-mail) para mandar una - copia el carbon(cc). Separados por una coma. - </entry> - </row> - <row> - <entry>bcc</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Dirección de correo electronico(e-mail) para mandar - una copia al carbon ofuscada(bcc). Separando las direcciones por comas. - </entry> - </row> - <row> - <entry>subject</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Asunto del correo electronico(e-mail).</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>newsgroup para enviar. separando las direcciones por comas. - </entry> - </row> - <row> - <entry>followupto</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Direcciones para acompañar. Separe las direcciones con comas. - </entry> - </row> - <row> - <entry>extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry> Cualquier otra información que usted quiera pasar - por el link, tal como plantillas de estilo - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {mailto} automatiza el proceso de creación de links de correo - electronico(e-mail) y opcionalmente los codifica. - Codificar el correo electronico(e-mail) hace mas difícil que - las web spiders tomen las direciones de nuestro sitio. - </para> - <note> - <title>Nota Técnica</title> - <para> - javascript es probablemente el codificador mas utilizado, aunque - usted puede utilizar también codificación hexadecimal. - </para> - </note> -<example> - <title>{mailto}</title> - <programlisting> -<![CDATA[ - {mailto address="me@example.com"} -<a href="mailto:me@example.com" >me@example.com</a> - - {mailto address="me@example.com" text="send me some mail"} -<a href="mailto:me@example.com" >send me some mail</a> - - {mailto address="me@example.com" encode="javascript"} -<script type="text/javascript" language="javascript"> - eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b')) -</script> - - {mailto address="me@example.com" encode="hex"} -<a href="mailto:%6d%65.. snipped..3%6f%6d">m&..snipped...#x6f;m</a> - - {mailto address="me@example.com" subject="Hello to you!"} - <a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a> - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} - <a href="mailto:me@example.com?cc=you@example.com%2Cthey@example.com" >me@example.com</a> - -{mailto address="me@example.com" extra='class="email"'} - <a href="mailto:me@example.com" class="email">me@example.com</a> - -{mailto address="me@example.com" encode="javascript_charcode"} - <script type="text/javascript" language="javascript"> - <!-- -{document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))} - //--> - </script> -]]> -</programlisting> - </example> - <para> - ver también - <link linkend="language.modifier.escape">escape</link>, - <link linkend="tips.obfuscating.email">Obfuscating E-mail Addresses</link> - y <link linkend="language.function.textformat">{textformat}</link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,186 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.math"> - <title>math</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La ecuación a ejecutar</entry> - </row> - <row> - <entry>format</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El formato del resultado (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numeric</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Valor de la variable de la ecuación</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable de template cuya salida sera asignada</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numeric</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Valor de la variable de la ecuación</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {math} permite diseñar ecuaciones matemáticas dentro del template. - Cualquier variable numérica del template puede ser usada en - ecuaciones, y el resultado es mostrado en lugar de la etiqueta. - Las variables usadas en ecuaciones son pasadas como parámetros, - que pueden ser variables de template o valores estáticos. - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans y tan son todos los - operadores validos. Verifique la documentación de PHP para mas - información acerca de estas funciones matemáticas. - </para> - <para> - Si usted proporciona el atributo especial "assign", la salida de la - función matemática será atribuido a esta variable de template en - vez de ser mostrada en el template. - </para> - <note> - <title>Nota Técnica</title> - <para> - {math} es una función de muy alto rendimiento debido a que se puede - usar con la función <ulink url="&url.php-manual;eval">eval()</ulink> - de PHP. Hacer las matemáticas en PHP es mucho mas eficiente, asi en - cualquier momento es posible hacer calculos matemáticos en PHP asignarlos - a una variable y lanzar los resultados al template. Defínitivamente evite - llamadas repetitivas de funciones matemáticas, dentro de los ciclos - <link linkend="language.function.section">{section}</link>. - </para> - </note> -<example> - <title>{math}</title> - <para> - <emphasis role="bold">Ejemplo a:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $height=4, $width=5 *} - - {math equation="x + y" x=$height y=$width} -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - 9 -]]> - </screen> - <para> - <emphasis role="bold">Ejemplo b:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - - {math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - 100 -]]> - </screen> - <para> - <emphasis role="bold">Ejemplo c:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* you can use parenthesis *} - - {math equation="(( x + y ) / z )" x=2 y=10 z=2} -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - 6 -]]> - </screen> - <para> - <emphasis role="bold">Ejemplo d:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* you can supply a format parameter in sprintf format *} - - {math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - ]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - 9.44 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-popup-init.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.popup.init"> - <title>{popup_init}</title> - <para> - <link linkend="language.function.popup">{popup}</link> es una integración - de <ulink url="&url.overLib;">overLib</ulink>, una biblioteca usada para - ventanas popup. Esta es usada como contexto de infomación sensitiva, como - ventanas de ayuda o herramientas. {popup_init} debe ser usada una vez hasta - arriba de cada pagina donde usted planea usar la función - <link linkend="language.function.popup">popup</link>. - <ulink url="&url.overLib;">overLib</ulink> fue escrita por Erik Bosrup, y la - pagina esta localizada en <ulink url="&url.overLib;">&url.overLib;</ulink>. - </para> - <para> - A partir da versión 2.1.2 de Smarty, overLib NO viene con la - distribución. Descargar el overLib, coloque el archivo overlib.js - dentro de su document root e indique la ruta relativa en el parámetro - "src" de {popup_init}. - </para> - <example> - <title>popup_init</title> - <programlisting> -<![CDATA[ -<head> -{* popup_init debe ser llamado una sola vez hasta arriba de la pagina *} -{popup_init src="/javascripts/overlib.js"} -</head> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-popup.xml
Deleted
@@ -1,442 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.popup"> - <title>popup</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El text/html para mostrar en la ventana popup</entry> - </row> - <row> - <entry>trigger</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>onMouseOver</emphasis></entry> - <entry>El que va a ser usado para que aparezca la - ventana. Puede ser onMouseOver u onClick</entry> - </row> - <row> - <entry>sticky</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Hace que el poppup se quede cerca hasta que se cierre</entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el texto para el título</entry> - </row> - <row> - <entry>fgcolor</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El color que va a ser usado dentro de la caja popup</entry> - </row> - <row> - <entry>bgcolor</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>El color del borde de la caja popup</entry> - </row> - <row> - <entry>textcolor</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el color del texto dentro de la caja popup</entry> - </row> - <row> - <entry>capcolor</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el color del título de la caja</entry> - </row> - <row> - <entry>closecolor</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el color del texto para cerrar</entry> - </row> - <row> - <entry>textfont</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el color del texto para ser usado en el texto principal</entry> - </row> - <row> - <entry>captionfont</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el tipo de letra para ser usado en el Título</entry> - </row> - <row> - <entry>closefont</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el tipo de letra para el texto "Close"</entry> - </row> - <row> - <entry>textsize</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el tipo de letra del texto principal</entry> - </row> - <row> - <entry>captionsize</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el tamaño del tipo de letra del título</entry> - </row> - <row> - <entry>closesize</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el tamaño del tipo de letra del texto "Close"</entry> - </row> - <row> - <entry>width</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el ancho de la caja</entry> - </row> - <row> - <entry>height</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne la altura de la caja</entry> - </row> - <row> - <entry>left</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Hace que el popups vaya para la izquierda del ratón</entry> - </row> - <row> - <entry>right</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Hace que el popups vaya para la derecha del ratón</entry> - </row> - <row> - <entry>center</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Hace que el popups vaya al centro del ratón</entry> - </row> - <row> - <entry>above</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry> Hace que el popups vaya por encima del - rató. NOTA:solamente es posible si el height fue definido - </entry> - </row> - <row> - <entry>below</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Hace que el popups vaya por abajo del ratón</entry> - </row> - <row> - <entry>border</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Torna en gruesos o finos los bordes del popups</entry> - </row> - <row> - <entry>offsetx</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A que distancia del ratón aparecera el popup, horizontalmente - </entry> - </row> - <row> - <entry>offsety</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A que distancia del ratón aparecera el popup, verticalmente - </entry> - </row> - <row> - <entry>fgbackground</entry> - <entry>url to image</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne una imagen para usar en vez del color del popup. - </entry> - </row> - <row> - <entry>bgbackground</entry> - <entry>url to image</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry> defíne una imagen para ser usada como borde en - vez de un color para el popup. - NOTA:Usted debe definir bgcolor como "" o el color aparecera también. - NOTA: Cuando tuviera un link "Close", el Netscape rediseñara las - celdas de la tabla, haciendo que las cosas aparezcan incorrectamente - </entry> - </row> - <row> - <entry>closetext</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el texto "Close" a otra cosa</entry> - </row> - <row> - <entry>noclose</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>No muestra el texto "Close" pegado con el título</entry> - </row> - <row> - <entry>status</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el texto en la barra de estado del navegador </entry> - </row> - <row> - <entry>autostatus</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el texto en la barra de estado para el texto del popup. - NOTA: sobreescribe la definición del status.</entry> - </row> - <row> - <entry>autostatuscap</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne el texto de la barra de estado como el texto del título - NOTA: sobreescribe el status y autostatus - </entry> - </row> - <row> - <entry>inarray</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry> Indica al overLib desde que índice de la - matriz ol_text debe leer el texto, localizada en overlib.js. - Este parámetro puede ser usado en vez del texto - </entry> - </row> - <row> - <entry>caparray</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Indica al overLib a partir de que índice de la - matriz ol_caps leer el título</entry> - </row> - <row> - <entry>capicon</entry> - <entry>url</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Muestra la imagen antes del título</entry> - </row> - <row> - <entry>snapx</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Instantanea el popup a una posición - constante en una cuadricula horizontal</entry> - </row> - <row> - <entry>snapy</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Instantanea el popup a una posición - constante en una cuadricula vertical</entry> - </row> - <row> - <entry>fixx</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Cierra el popups en una posición horizontal - Nota: pasa por encima de otros colocados horizontal</entry> - </row> - <row> - <entry>fixy</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Cierra popups en posición vertical - Note: pasa por encima de otros colocados vertical</entry> - </row> - <row> - <entry>background</entry> - <entry>url</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Defíne una imagen para ser usada como fondo en - vez de la tabla</entry> - </row> - <row> - <entry>padx</entry> - <entry>integer,integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Rellena el fondo de la imagen con espacios en blanco - horizontal para colocar el texto. - Nota: este es un comando de dos parámetros</entry> - </row> - <row> - <entry>pady</entry> - <entry>integer,integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Rellena el fondo de la imagen con espacios en blanco - vertical para colocar el texto. - Nota: este es un comando de dos parámetros</entry> - </row> - <row> - <entry>fullhtml</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Permite a usted controlar completamente el html sobre - la figura de fondo. - El código HTML es esperado en el atributo "text"</entry> - </row> - <row> - <entry>frame</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Controla popups en frames diferentes. Para mayores informes - sobre esta función vea la pagina de overlib</entry> - </row> - <row> - <entry>timeout</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>LLama especificamente a una función javascript - y toma el valor que retorna, como el texto que se - va a mostrar en la ventana popup</entry> - </row> - <row> - <entry>delay</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Hace que el popup funcione como un tooltip. - Este aparecera solo con un retraso en milesimas de segundo</entry> - </row> - <row> - <entry>hauto</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Determina automáticamente si el popup debe - aparecer a la izquierda o a la derecha del ratón. </entry> - </row> - <row> - <entry>vauto</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Determina automáticamente si el popup debe - aparecer abajo o arriba del ratón.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {popup} es usado para crear ventanas popup con javascript. - <link linkend="language.function.popup.init">{popup_init}</link> DEBE ser - llamado primero para poder trabajar. - </para> -<example> -<title>popup</title> - <programlisting> -<![CDATA[ -{* popup_init debe ser llamado una vez hasta arriba de la pagina *} -{popup_init src="/javascripts/overlib.js"} - -{* crea un link con una ventana popup que aparece cuando se pasa el mouse sobre este *} -<a href="mypage.html" {popup text="This link takes you to my page!"}>mypage</a> - -{* usted puede usar html, links, etc en el texto del popup *} -<a href="mypage.html" {popup sticky=true caption="mypage contents" -text="<ul><li>links</li><li>pages</li><li>images</li></ul>" -snapx=10 snapy=10}>mypage</a> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="language.function.popup.init">{popup_init}</link> - y <ulink url="&url.overLib;">overLib</ulink>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,292 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.textformat"> - <title>{textformat}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nombre del Atributo</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>estilo pre-definido</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Número de caracteres para endentar cada linea.</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Número de caracteres para endentar la primera linea</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>(single space)</emphasis></entry> - <entry>El carácter (o cadena de caracteres) para endentar</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>80</emphasis></entry> - <entry>Cuantos caracteres tendra cada linea</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>Caracter (o cadena de caracteres) a usar para saltar cada linea - </entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Si es true, wrap saltara la linea en el carácter exacto - en vez de saltar al final de la palabra. </entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable del template que recibirá la salida </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {textformat} es una <link linkend="plugins.block.functions">función de bloque</link> - usada para formatear texto. Básicamente limpa espacios y caracteres especiales, y - formatea los párrafos cortando el texto al final de la palabra y endentando lineas. - </para> - <para> - Usted puede definir los parámetros explícitamente, o usar un estilo pre-definido. - Actualmente el único estilo disponible es "email". - </para> -<example> - <title>{textformat}</title> - <programlisting> -<![CDATA[ - {textformat wrap=40} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - Salida del ajemplo de arriba: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. - This is foo. This is foo. This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4 indent_first=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat style="email"} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - Salida del ejemplo de arriba: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. This is foo. This is foo. This is - foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo - foo. - -]]> - </screen> - </example> - <para> - Ver también - <link linkend="language.function.strip">{strip}</link> - y <link linkend="language.modifier.wordwrap">{wordwrap}</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers.xml
Deleted
@@ -1,121 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.modifiers"> - <title>Modificadores de variables</title> - <para> - Los modificadores de variables pueden ser aplicados a variables, - funciones habituales o cadenas. Para aplicar un modificador, especifique - el valor seguido por <literal>|</literal>(pipe) y el nombre del modificador. - Un modificador necesita parámetros adicionales que afetan en su funcionamento. - Estos parámetros siguen al nombre del modificador y son separados por - <literal>:</literal> (dos puntos). - </para> - <example> - <title>Ejemplo de modificador</title> - <programlisting> -<![CDATA[ -{* apply modifier to a variable *} -{$title|upper} -{* modifier with parameters *} -{$title|truncate:40:"..."} - -{* apply modifier to a function parameter *} -{html_table loop=$myvar|upper} -{* with parameters *} -{html_table loop=$myvar|truncate:40:"..."} - -{* apply modifier to literal string *} -{"foobar"|upper} - -{* using date_format to format the current date *} -{$smarty.now|date_format:"%Y/%m/%d"} - -{* apply modifier to a custom function *} -{mailto|upper address="me@domain.dom"} -]]> - </programlisting> - </example> - <para> - Si usted aplica un modificador a una matriz en lugar del valor de - una variable, el modificador va a ser aplicado en cada uno de los - valores de la matriz. Si usted realmente quisiera que el modificador - funcionara en una matriz entera, debe colocar el simbolo - <literal>@</literal> antes del nombre del modificador, así como: - <literal>{$articleTitle|@count}</literal> (esto mostrara el número de - elementos de la matriz $articleTitle.) - </para> - <para> - Los modificadores pueden ser cargados automáticamente a partir de su - <link linkend="variable.plugins.dir">$plugins_dir</link> (vea también: - <link linkend="plugins.naming.conventions">Naming Conventions</link>) - o pueden ser registrados explicitamente (vea: - <link linkend="api.register.modifier">register_modifier</link>). - Adicionalmente, todas las funciones de php pueden ser - utilizadas como modificadores implicitamente. - (El ejemplo <literal>@count</literal> de arriba usa actualmente la - función count de php y no un modificador de Smarty). - Usar funciones de php como modificadores tiene dos pequeños problemas: - Primero, algunas veces al ordenar los parámetros de una función - esto no es aconsejable (<literal>{"%2.f"|sprintf:$float}</literal> - actualmente funciona, pero existe algo mas intuitivo - Por ejemplo: <literal>{$float|string_format:"%2.f"}</literal> - que es proporcionado con la distribución de Smarty). - Segundo: con <link linkend="variable.security">$security</link> activado, - todas las funciones de php que sean utilizadas como modificadores deben - ser declaradas como variables de una matriz - <link linkend="variable.security.settings">$security_settings['MODIFIER_FUNCS'] - </link>. - </para> - <para> - Ver también - <link linkend="api.register.modifier">register_modifier()</link>, - <link linkend="api.register.function">register_function()</link>, - <link linkend="plugins">Extending Smarty with plugins</link> - y <link linkend="plugins.modifiers">modifiers</link>, - </para> - - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posicion del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Este determina que palabra con digitos no debe ser convertida</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este es usado para convertir a mayuscula la primera letra de todas la - palabras de una variable. - - </para> - <example> - <title>capitalize</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|capitalize} -{$articleTitle|capitalize:true} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -next x-men film, x3, delayed. -Next X-Men Film, x3, Delayed. -Next X-Men Film, X3, Delayed. -]]> - </screen> - </example> - <para>Ver también <link linkend="language.modifier.lower">lower</link> - <link linkend="language.modifier.upper">upper</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.cat"> - <title>cat</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posiscion del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>cat</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Este es el valor para concatenar con la variable dada.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este valor es concatenado con la variable dada. - </para> - <example> - <title>cat</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:" yesterday."} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -Psychics predict world didn't end yesterday. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Este determina cuando incluir o no los espacios - en blanco al contar.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este es usado para contar el número de carácteres en una variable. - </para> - <example> - <title>count_characters</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -Cold Wave Linked to Temperatures. -29 -33 -]]> - </screen> - </example> - <para> - ver también - <link linkend="language.modifier.count.words">count_words</link>, - <link linkend="language.modifier.count.sentences">count_sentences</link> y - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - Este es usado para contar el número de parrafos en la variable. - </para> - <example> - <title>count_paragraphs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_paragraphs} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2 -]]> - </screen> - </example> - <para> - ver también <link linkend="language.modifier.count.characters">count_characters</link>, - <link linkend="language.modifier.count.sentences">count_sentences</link> y - <link linkend="language.modifier.count.words">count_words</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - Este es usado para contar el número de frases en la variable. - </para> - <example> - <title>count_sentences</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_sentences} -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2 -]]> - </screen> - </example> - <para> - ver también <link linkend="language.modifier.count.characters">count_characters</link>, - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link> y - <link linkend="language.modifier.count.words">count_words</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - Este es usado para contar el número de palabras en la variable. - </para> - <example> - <title>count_words</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_words} -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -7 -]]> - </screen> - </example> - <para> - ver también <link linkend="language.modifier.count.characters">count_characters</link>, - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link> y - <link linkend="language.modifier.count.sentences">count_sentences</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,252 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.date.format"> - <title>date_format</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%b %e, %Y</entry> - <entry>Este es el formato para la fecha mostrada.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>n/a</entry> - <entry>Este es el default de la fecha si el valor de entrada - es vacio.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Estos formatos de fecha y hora estan dentro del formato determinado - <ulink url="&url.php-manual;strftime">strftime()</ulink>. - Las fechas pueden ser pasadas a Smarty como <ulink - url="&url.php-manual;function.time">timestamps</ulink> - unix, timestamps mysql, o como cualquier cadena compuesta de mes dia - año (pasada por <ulink url="&url.php-manual;strtotime">strtotime()</ulink>). - El diseñador puede usar entonces date_format para tener un control completo - del formateo de la fecha. Si la fecha pasada para - <command>date_format</command> estuviera vacia y un segundo parámetro fuera - pasado, este será usado como la fecha a formatear. - </para> - <example> - <title>date_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - </programlisting> - <para> - Where template is (uses <link linkend="language.variables.smarty.now">$smarty.now</link>): - </para> - <programlisting> -<![CDATA[ -{$smarty.now|date_format} -{$smarty.now|date_format:"%D"} -{$smarty.now|date_format:"%I:%M %p"} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:"%H:%M:%S"} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -Feb 6, 2001 -02/06/01 -02:33 pm -Feb 5, 2001 -Monday, February 5, 2001 -14:33:00 -]]> - </screen> - </example> - <para> - <command>date_format</command> especificadores de conversión: - <itemizedlist> - <listitem><para> - %a - nombre del día de la semana abreviado de acuerdo al local actual - </para></listitem> - <listitem><para> - %A - nombre del día de la semana anterior de acuerdo al local actual - </para></listitem> - <listitem><para> - %b - nombre del mes abreviado de acuerdo al local actual - </para></listitem> - <listitem><para> - %B - nombre del mes anterior de acuerdo al local actual - </para></listitem> - <listitem><para> - %c - Representación preferencial de la fecha y hora local actual - </para></listitem> - <listitem><para> - %C - año con dos dígitos (o año dividido por 100 y truncadopara un entero, intervalo de 00 a 99) - </para></listitem> - <listitem><para> - %d - día del mes como un número decimal (intervalo de 00 a 31) - </para></listitem> - <listitem><para> - %D - Lo mismo que %m/%d/%y - </para></listitem> - <listitem><para> - %e - Día del mes como un número decimal, un único dígito y precedido por un - espacio (intervalo de 1 a 31) - </para></listitem> - <listitem><para> - %g - Año basado en la semana, sin el siglo [00,99] - </para></listitem> - <listitem><para> - %G - Año basado en la semana, incluyendo el siglo [0000,9999] - </para></listitem> - <listitem><para> - %h - Lo mismo que %b - </para></listitem> - <listitem><para> - %H - Hora como un número decimal usando un relój de 24 horas (intervalo de 00 a 23) - </para></listitem> - <listitem><para> - %I - Hora como un número decimal usando un relój de 12 horas (intervalo de 01 a 12) - </para></listitem> - <listitem><para> - %j - Día del año como um número decimal (intervalo de 001 a 366) - </para></listitem> - <listitem><para> - %k - Hora (relój de 24 horas) digítos únicos que son precedidos por un - espacio en blanco (intervalo de 0 a 23) - </para></listitem> - <listitem><para> - %l - Hora como un número decimal usando un relój de 12 horas, digítos - únicos son precedidos por un espacio en blanco (intervalo de 1 a 12) - </para></listitem> - <listitem><para> - %m - Mes como número decimal (intervalo de 01 a 12) - </para></listitem> - <listitem><para> - %M - Minuto como un número decimal - </para></listitem> - <listitem><para> - %n - Caracter de nueva linea - </para></listitem> - <listitem><para> - %p - Cualquiera `am' o `pm' de acuerdo con el valor de la hora dado, - o la cadena correspondiente a la local actual - </para></listitem> - <listitem><para> - %r - Hora con notación a.m. y p.m. - </para></listitem> - <listitem><para> - %R - Hora con notación de 24 horas - </para></listitem> - <listitem><para> - %S - Segundo como número decimal - </para></listitem> - <listitem><para> - %t - Caracter tab - </para></listitem> - <listitem><para> - %T - Hora actual, igual a %H:%M:%S - </para></listitem> - <listitem><para> - %u - Día de la semana como un número decimal [1,7], representando con 1 el lunes - </para></listitem> - <listitem><para> - %U - Número de la semana del año actual como un número decimal, - comenzando con el primer domingo como primer dia de la primera semana - </para></listitem> - <listitem><para> - %V - Número de la semana del año actual como número decimal de acuerdo - con el ISO 8601:1988, intervalo de 01 a 53, en donde 1 es la primera - semana que tenga por lo menos cuatro dias en el año actual, siendo - domingo el primer dia de la semana. - </para></listitem> - <listitem><para> - %w - Día de la semana como decimal, siendo domingo 0 - </para></listitem> - <listitem><para> - %W - Número de la semana del año actual como número decimal, - comenzando con el primer lunes como primer dia de la primera semana - </para></listitem> - <listitem><para> - %x - Representación preferida para la fecha local actual sin la hora - </para></listitem> - <listitem><para> - %X - Representación preferida de la hora local actual sin la fecha - </para></listitem> - <listitem><para> - %y - Año como número decimal sin el siglo(intervalo de 00 a 99) - </para></listitem> - <listitem><para> - %Y - Año como número decimal incluyendo el siglo - </para></listitem> - <listitem><para> - %Z - Zona horaria, o nombre, o abreviación - </para></listitem> - <listitem><para> - %% - Un carácter `%' - </para></listitem> - </itemizedlist> - <note> - <title>NOTA PARA PROGRAMADORES:</title> - <para> - <command>date_format</command> es escencialmente una envoltura para la - función <ulink url="&url.php-manual;strftime">strftime()</ulink> de PHP. - Usted debera tener mas o menos especificadores de conversiones disponibles - de acuerdo con la función <ulink url="&url.php-manual;strftime">strftime()</ulink> - del sistema operacional en donde PHP fue compilado. Cheque en la pagina - del manual de su sistema una lista completa de especificadores validos. - </para> - </note> - </para> - <para> - Ver también <link linkend="language.variables.smarty.now">$smarty.now</link>, - <ulink url="&url.php-manual;strftime">php function strftime()</ulink>, - <link linkend="language.function.html.select.date">{html_select_date}</link> - y <link linkend="tips.dates">date tips</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.default"> - <title>default</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Pocisión del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Este es el valor por defecto para mostrar una variable - que estuviera vacia.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este es usado para definir un valor por defecto para una variable. - Si esta variable estuviera vacia o no estuviera definida, el valor por - defecto es mostrado. El valor por defecto es usado como argumento. - </para> - <example> - <title>default</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|default:"no title"} -{$myTitle|default:"no title"} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -no title -]]> - </screen> - </example> - <para> - Ver también <link linkend="tips.default.var.handling">Default Variable Handling</link> - y <link linkend="tips.blank.var.handling">Blank Variable Handling</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.escape"> - <title>escape</title> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Posibles Valores</entry> - <entry>Default</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry>html,htmlall,url,quotes,hex,hexentity,javascript</entry> - <entry>html</entry> - <entry>Este es el formato de escape a utilizar.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este es usado para escapar html, url, comillas simples para escapar una - variable que no este escapada, escapar hex, hexentity o javascript. - Por default, la variable html es escapada. - </para> - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|escape} -{$articleTitle|escape:"html"} {* escapes & " ' < > *} -{$articleTitle|escape:"htmlall"} {* escapes ALL html entities *} -{$articleTitle|escape:"url"} -{$articleTitle|escape:"quotes"} -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27 -\'Stiff Opposition Expected to Casketless Funeral Plan\' -<a href="mailto:%62%6f%..snip..%65%74">bob..snip..et</a> -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.escaping">Escaping Smarty Parsing</link> - y <link linkend="tips.obfuscating.email">Obfuscating E-mail Addresses</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.indent"> - <title>indent</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>4</entry> - <entry>Este defíne con cuantos carácteres endentar.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>(un espacio)</entry> - <entry>Este defíne cual carácter va a ser usado para endentar.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Esta endenta una cadena en cada linea, el default es 4. - Como parámetro opcional, usted puede especificar el número de - carácteres para endentar. Como segundo parámetro opcional, - usted puede especificar el carácter que desea usar para endentar. - (Use "\t" para tabs.) - </para> - <example> - <title>indent</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); - - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. -]]> - </screen> - </example> - <para> - ver también <link linkend="language.modifier.strip">strip</link> - y <link linkend="language.modifier.spacify">spacify</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - Esta es usada para convertir a minúsculas una variable. - </para> - <example> - <title>lower</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|lower} -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung. -]]> - </screen> - </example> - <para> - ver también <link linkend="language.modifier.upper">upper</link> y - <link linkend="language.modifier.capitalize">Capitalize</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - Todos los saltos de linea seran convertidos a etiquetas <br /> - como datos de la variable. Esto equivale a la función - <ulink url="&url.php-manual;nl2br">nl2br()</ulink> de PHP. - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|nl2br} -]]> - </programlisting> - <para> - esta debe ser la salida: - </para> - <screen> -<![CDATA[ -Sun or rain expected<br />today, dark tonight -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.modifier.wordwrap">word_wrap</link>, - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link> - y <link linkend="language.modifier.count.sentences">count_sentences</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta es la expresión regular a ser substituida.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta es la cadena que sustituira a la expresión regular.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Localiza una expresión regular y la remplaza en la variable. Use la sintaxis para - <ulink url="&url.php-manual;preg_replace">preg_replace()</ulink> del manual de PHP. - </para> - <example> - <title>regex_replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{* replace each carriage return, tab and new line with a space *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} -]]> - </programlisting> - <para> - Esta es la salida: - </para> - <screen> -<![CDATA[ -Infertility unlikely to -be passed on, experts say. -Infertility unlikely to be passed on, experts say. -]]> - </screen> - </example> - <para> - Vea también <link linkend="language.modifier.replace">replace</link> - y <link linkend="language.modifier.escape">escape</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.replace"> - <title>replace</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta es la cadena a ser substituida.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta es la cadena que ira a substituir.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Una simple busqueda y substituir en la variable. Esta es equivalente a la - función <ulink url="&url.php-manual;str_replace">str_replace()</ulink> de PHP. - </para> - <example> - <title>replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|replace:"Garden":"Vineyard"} -{$articleTitle|replace:" ":" "} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. -]]> - </screen> - </example> - <para> - ver también <link linkend="language.modifier.regex.replace">regex_replace</link> - y <link linkend="language.modifier.escape">escape</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.spacify"> - <title>spacify</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>one space</emphasis></entry> - <entry>Este se inserta entre cada carácter de la variable.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Inserta un espacio entre cada carácter de una variable. Usted puede - opcionalmente pasar un carácter (o una cadena) diferente para insertar. - </para> - <example> - <title>spacify</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W e n t W r o n g i n J e t C r a s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ ^^W^^e^^n^^t^^ ^^W^^r^^o^^n^^g^^ ^^i^^n^^ ^^J^^e^^t^^ ^^C^^r^^a^^s^^h^^,^^ ^^E^^x^^p^^e^^r^^t^^s^^ ^^S^^a^^y^^. -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.modifier.wordwrap">wordwrap</link> - y <link linkend="language.modifier.nl2br">nl2br</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.string.format"> - <title>string_format</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Si</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Este es el formato que debera usar. (sprintf)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Esta es una manera de formatear cadenas, como números decimales y otros. - Use la sintaxis de <ulink url="&url.php-manual;sprintf">sprintf</ulink> para formatearlo. - </para> - <example> - <title>string_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('number', 23.5787446); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -23.5787446 -23.58 -24 -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.modifier.date.format">date_format</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>bool</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Este determina cuando las etiquetas seran remplazadas por ' ' o por ''</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este retira las etiquetas de marcación, basicamente todo entre < y >. - </para> - <example> - <title>strip_tags</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New -Kidney</font> from Dad she Hasn't Seen in <b>years</b>."); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *} -{$articleTitle|strip_tags:false} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - Este substituye todos los espacios repetidos, nuevas lineas y tabs - por un unico espacio u otra cadena indicada. - </para> - <note> - <title>Nota</title> - <para> - Si usted quiere substituir bloques de texto de un template use la - función <link linkend="language.function.strip">{strip}</link>. - </para> - </note> - <example> - <title>strip</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:" "} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother of eight makes hole in one. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.truncate"> - <title>truncate</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Desdcripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>80</entry> - <entry>Este determina para cuantos carácteres truncar.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>...</entry> - <entry>Este es el texto para adicionar si el truncamiento ocurre. La - longitud NO se incluye para la logitud del truncamiento</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Este determina cuando truncar o no o al final de una - palabra(false), o un carácter exacto(true). - </entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Este determina cuando ocurre el truncamiento al final de la cadena(false), - o en el centro de la cadena(true). Nota cuando este es true, - entonces la palabra limite es ignorada.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este trunca la variable en una cantidad de cacarteres, el default es 80. - Como segundo parámetro opcional, usted puede especificar una cadena - para mostrar al final si la variable fue truncada. Los carácteres en la - cadena son incluidos tamando el original para el truncamiento. - Por default, truncate intentara cortar al final de una palabra. - Se usted quisiera cortar una cantidad exacta de carácteres, pase el - tercer parámetro, que es opcional, como true. - </para> - <example> - <title>truncate</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E... -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - Este es usado para convertir a mayusculas una variable. - </para> - <example> - <title>upper</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE. -]]> - </screen> - </example> - <para> - Ver también <link linkend="language.modifier.lower">lower</link> y - <link linkend="language.modifier.capitalize">capitalize</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posición del Parametro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Default</entry> - <entry>Descripción</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>80</entry> - <entry>Este determina en cuantas columnas cortar.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>Esta es la cadena usada para cortar.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Este determina cuando cortar o no, o al final de una - palabra(false), o en un carácter exacto(true). - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este <command>wordwrap</command> corta una cadena para un ancho de columna, - el default es 80. Como segundo parámetro opcional, usted puede especificar - la cadena que será usada para cortar el texto para la próxima linea (el default - es un retorno de carro \n). Por default, (wordwrap) intentara cortar al final - de una palabra. Si usted quisiera cortar un tamaño exacto de cacarteres, - pase al tercer parámetro, que es opcional, como true. - Este es equivalente a la función <ulink url="&url.php-manual;wordwrap">wordwrap()</ulink> de PHP. - </para> - <example> - <title>wordwrap</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years."); - -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br />\n"} - -{$articleTitle|wordwrap:30:"\n":true} -]]> - </programlisting> - <para> - Esta es la Salida: - </para> - <screen> -<![CDATA[ -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br /> -from dad she hasn't seen in<br /> -years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. -]]> - </screen> - </example> - <para> - Ver También <link linkend="language.modifier.nl2br">nl2br</link> - y <link linkend="language.function.textformat">{textformat}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-variables.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.variables"> - <title>Variables</title> - <para> - Smarty tiene varios tipos diferentes de variables. El tipo de variable - depende de cual simbolo este prefijado(incluido dentro). - </para> - <para> - Las variables de Smarty no pueden ser mostradas directamente - o usadas como argumentos para - <link linkend="language.syntax.attributes">atributos</link>, - <link linkend="language.syntax.functions">funciones</link> y - <link linkend="language.modifiers">modificadores</link>, dentro - de expresiones condicionales, etc. Para mostrar una variable, - simplesmente coloque esta entre delimitadores siendo esta la única - cosa entre ellos. Ejemplos: - <programlisting> -<![CDATA[ -{$Name} - -{$Contacts[row].Phone} - -<body bgcolor="{#bgcolor#}"> -]]> - </programlisting> - </para> - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,198 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.assigned.variables"> - <title>Variables definidas desde PHP</title> - <para> - Las variables que son <link linkend="api.assign">asignadas</link> desde PHP - son referenciadas precedidas estas con una señal de cifrado <literal>$</literal>. - Las variables definidas dentro del template como una función - <link linkend="language.function.assign">assign</link> también son - mostradas de esta manera. - </para> - <example> - - <title>variables definidas</title> - <para> php script</para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; - -$smarty->assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Donde el contenido de index.tpl es: - </para> -<programlisting> -<![CDATA[ -Hello {$firstname} {$lastname}, glad to see you can make it. -<br /> -{* this will not work as $vars are case sensitive *} -This weeks meeting is in {$meetingplace}. -{* this will work *} -This weeks meeting is in {$meetingPlace}. -]]> - </programlisting> - - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -Hello Doug Evans, glad to see you can make it. -<br /> -This weeks meeting is in . -This weeks meeting is in New York. -]]> - </screen> - </example> - <sect2 id="language.variables.assoc.arrays"> - <title>Arreglos asociativos</title> - <para> - Usted también puede referenciar matrices asociativas en variables - que son definidas desde PHP especificando la clave después del - simbolo '.'(punto). - </para> - <example> - <title>Accesando variables de matriz asociativa</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Donde el contenido de index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$Contacts.fax}<br /> -{$Contacts.email}<br /> -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}<br /> -{$Contacts.phone.cell}<br /> -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.array.indexes"> - <title>Índices de Matrices</title> - <para> - Usted podra referencia matrizes por su índice, muy semejantes a la - sintaxis de PHP. - </para> - <example> - <title>Accesando matrices por sus índices</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -{$Contacts[0]}<br /> -{$Contacts[1]}<br /> -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}<br /> -{$Contacts[2][1]}<br /> -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.objects"> - <title>Objects</title> - <para> - Las propiedades de los <link linkend="advanced.features.objects">objetos</link> - definidos desde PHP pueden ser referenciados especificando el nombre de la propiedad - después del simbolo '->'. - </para> - <example> - <title>Accesando propiedades de los Objetos</title> - <programlisting> -<![CDATA[ -name: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - esta es la salida: - </para> - <screen> -<![CDATA[ -name: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.config.variables"> - <title>Variables cargadas desde archivos de configuración</title> - <para> - Las variables que son cargadas de - <link linkend="config.files">archivos de configuración</link> son - referenciadas incluyendo entre ellas el signo(#), o como variables - de Smarty - <link linkend="language.variables.smarty.config">$smarty.config</link>. - La segunda sintaxis es util para incrustar valores de un atributo - dentro de comillas. - </para> - <example> - <title>Variables de configuración</title> - <para> - foo.conf: - </para> - <programlisting> -<![CDATA[ -pageTitle = "This is mine" -bodyBgColor = "#eeeeee" -tableBorderSize = "3" -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" -]]> - </programlisting> - <para> - index.tpl: - </para> - <programlisting> -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - index.tpl: (sintaxis alternativa) - </para> - <programlisting> -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - esta es la salida de ambos ejemplos: - </para> - <screen> -<![CDATA[ -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </screen> - </example> - <para> - Las variables de un archivo de configuración no pueden ser - usadas hasta después de que son cargadas por los archivos de - configuración. - Este procedimento es explicado posteriormente en este documento en - <link linkend="language.function.config.load"><command>{config_load}</command></link>. - </para> - <para> - Ver también <link linkend="language.syntax.variables">Variables</link> y - <link linkend="language.variables.smarty">$smarty reserved variables</link> - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,168 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.variables.smarty"> - <title>La variable reservada {$smarty}</title> - <para> - La variable reservada {$smarty} puede ser utilizada para accesar a - variables especiales del template. A continuación una lista completa. - </para> - - <sect2 id="language.variables.smarty.request"> - <title>Solicitud de Variables</title> - <para> - La <ulink url="&url.php-manual;reserved.variables">solicitud de variables</ulink> - como $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV y $_SESSION - (Ver <link linkend="variable.request.vars.order">$request_vars_order</link> - y <link linkend="variable.request.use.auto.globals">$request_use_auto_globals</link>) - pueden ser accesadas como se muestra en los ejemplos de abajo: - </para> - <example> - <title>Mostrando solicitud de variables</title> - <programlisting> -<![CDATA[ -{* display value of page from URL (GET) http://www.domain.com/index.php?page=foo *} -{$smarty.get.page} - -{* display the variable "page" from a form (POST) *} -{$smarty.post.page} - -{* display the value of the cookie "username" *} -{$smarty.cookies.username} - -{* display the server variable "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* display the system environment variable "PATH" *} -{$smarty.env.PATH} - -{* display the php session variable "id" *} -{$smarty.session.id} - -{* display the variable "username" from merged get/post/cookies/server/env *} -{$smarty.request.username} -]]> - </programlisting> - </example> - <note> - <para> - Por historicas razones {$SCRIPT_NAME} puede ser accesado directamente - sin embargo {$smarty.server.SCRIPT_NAME} es el sugerido para accesar - este valor. - </para> - </note> - </sect2> - - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - El <ulink url="&url.php-manual;function.time">timestamp</ulink> - actual puede ser accesado con {$smarty.now}. El número refleja el - número de segundos pasados desde la llamada Epoca (1 de Enero de 1970) - y puede ser pasado directamente para el modificador - <link linkend="language.modifier.date.format">date_format</link> para - mostrar la fecha. - </para> - <example> - <title>Usando {$smarty.now}</title> - <programlisting> -<![CDATA[ -{* utilice el modificador date_format para mostrar la fecha y hora actual *} -{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - Usted puede accesar al valor de constantes PHP directamente. - Ver también <link linkend="smarty.constants">smarty constants</link> - - </para> - <example> - <title>Usando {$smarty.const}</title> - <programlisting> -<![CDATA[ -{$smarty.const._MY_CONST_VAL} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - La salida capturada via - <link linkend="language.function.capture">{capture}..{/capture}</link> - puede ser accesada usando la variable {$smarty}. - vea la sección <link linkend="language.function.capture">{capture}</link> - para un ejemplo. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - La variable {$smarty} puede ser usada para referir - <link linkend="language.config.variables">variables de configuración</link> - cargadas. {$smarty.config.foo} es un sinónimo para {#foo#}. vea la sección - sobre <link linkend="language.function.config.load">{config_load}</link> - para un ejemplo. - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}, {$smarty.foreach}</title> - <para> - La variable {$smarty} puede ser usada para hacer referencia a las - propiedades 'section' y 'foreach' del loop. Ver la documentación - sobre <link linkend="language.function.section">section</link> y - <link linkend="language.function.foreach">foreach</link>. - </para> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Esta variable contiene el nombre actual del template que esta siendo - procesado. - </para> - </sect2> - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - Esta variable contiene la versión Smarty con que es compilado el template. - </para> - </sect2> - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}, {$smarty.rdelim}</title> - <para> - Esta variable es usada para imprimir literalmente el valor left-delimiter y right-delimiter. - Ver tambien <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>. - </para> - <para> - Ver también <link linkend="language.syntax.variables">Variables</link> - y <link linkend="language.config.variables">Config Variables</link> - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/getting-started.xml
Deleted
@@ -1,581 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<part id="getting.started"> - <title>Iniciando</title> - - <chapter id="what.is.smarty"> - <title>Que es Smarty?</title> - <para> - Smarty es un motor de plantillas para PHP. Mas especificamente, esta - herramienta facilita la manera de separar la aplicación lógica y el - contenido en la presentación. - La mejor descripción esta en una situación donde la aplicación - del programador y la plantilla del diseñador juegan diferentes roles, - o en la mayoria de los casos no la misma persona. - </para> - <para> - Por ejemplo: - Digamos que usted crea una pagina web, es decir, despliega el articulo - de un diario. El encabezado del articulo, el rotulo, el autor y el - cuerpo son elementos del contenido, estos no contiene información de - como quieren ser presentados. Estos son pasados por la aplicación - Smarty, donde el diseñador edita la plantilla, y usa una combinación de - etiquetas HTML y etiquetas de plantilla para formatear la presentación - de estos elementos (HTML, tablas, color de fondo, tamaño de letras, - hojas de estilo, etc...). - Un día el programador necesita cambiar la manera de recuperar el - contenido del articulo(un cambio en la aplicación lógica.). Este - cambio no afectara al diseñador de la plantilla, el contenido llegara a - la plantilla exactamente igual. De la misma manera, si el diseñador de - la plantilla quiere rediseñarla en su totalidad, estos cambios no - afectaran la aplicación lógica. - Por lo tanto, el programador puede hacer cambios en la aplicación lógica - sin que sea necesario restructurar la plantilla. Y el diseñador de la - plantilla puede hacer cambios sin que haya rompimiento con la aplicación - lógica. - </para> - <para> - One design goal of Smarty is the separation of business logic and - presentation logic. This means templates can certainly contain logic under - the condition that it is for presentation only. Things such as including - other templates, altering table row colors, upper-casing a variable, - looping over an array of data and displaying it, etc. are all examples of - presentation logic. This does not mean that Smarty forces a separation of - business and presentation logic. Smarty has no knowledge of which is which, - so placing business logic in the template is your own doing. Also, if you - desire <emphasis>no</emphasis> logic in your templates you certainly can - do so by boiling the content down to text and variables only. - </para> - <para> - Ahora un pequeño resumen sobre que no hace Smarty. Smarty no intenta - separar completamente la lógica de la plantilla. No hay problema entre la - lógica y su plantilla bajo la condición que esta lógica sea - estrictamente para presentación. - Un consejo: mantener la aplicación lógica fuera de la plantilla, y la - presentación fuera de la aplicación lógica. - Esto tiene como finalidad tener un objeto mas manipulable y escalable para - un futuro proximo. - </para> - <para> - Un único aspecto acerca de Smarty es la compilación de la plantilla. - De esta manera Smarty lee la plantilla y crea los scripts de PHP. Una vez - creados, son executados sobre él. - Por consiguiente no existe ningún costo por analizar gramaticalmente - cada archivo de template por cada requisición, y cada template puede llevar - toda la ventaja del compilador de cache de PHP tal como Zend Accelerator - (<ulink url="&url.zend;">&url.zend;</ulink>) o PHP Accelerator - (<ulink url="&url.ion-accel;">&url.ion-accel;</ulink>). - </para> - <para> - Algunas de las características de Smarty: - </para> - <itemizedlist> - <listitem> - <para> - Es extremamente rápido. - </para> - </listitem> - <listitem> - <para> - Es eficiente ya que puede interpretar el trabajo mas sucio. - </para> - </listitem> - <listitem> - <para> - No analiza gramaticalmente desde arriba el template, solo compila una vez. - </para> - </listitem> - <listitem> - <para> - El esta atento para solo recompilar los archivos de plantilla que fueron - cambiados. - </para> - </listitem> - <listitem> - <para> - Usted puede crear <link linkend="language.custom.functions"> - funciones habituales </link> - y <link linkend="language.modifiers">modificadores de variables </link> - customizados, de modo que el lenguaje de la platilla es altamente extensible. - </para> - </listitem> - <listitem> - <para> - Sintaxis de etiquetas delimitadoras para configuración de la plantilla, - así lo puede usar {}, {{}}, <!--{}-->, etc. - </para> - </listitem> - <listitem> - <para> - Los construtoress if/elseif/else/endif son pasados por el interpretador - de PHP, así la sintaxis de la expresión {if ...} puede ser compleja o - simple de la forma que usted quiera. - </para> - </listitem> - <listitem> - <para> - Permite un anidamiento ilimitado de sections, ifs, etc. - </para> - </listitem> - <listitem> - <para> - Es posible incrustar directamente codigo PHP en los archivos de plantilla, - aunque esto puede no ser necesario(no recomendado) dado que la herramienta - se puede ajustar. - </para> - </listitem> - <listitem> - <para> - Soporte de caching incrustado - </para> - </listitem> - <listitem> - <para> - Fuentes de Plantilla absoluto - </para> - </listitem> - <listitem> - <para> - Funciones habituales de manipulación de cache - </para> - </listitem> - <listitem> - <para> - Arquitectura de Plugin - </para> - </listitem> - </itemizedlist> - </chapter> - <chapter id="installation"> - <title>Instalación</title> - - <sect1 id="installation.requirements"> - <title>Requerimentos</title> - <para> - Smarty Requiere un servidor web corriendo PHP 4.0.6 o posterior. - </para> - </sect1> - - <sect1 id="installing.smarty.basic"> - <title>Instalación Básica</title> - <para> - Instale los archivos de la libreria de Smarty que estan en el directorio - de distribución /libs/. - Estos son los archivos PHP que usted NO EDITARA. Estos archivos son toda - las aplicaciones comunes y ellos son actualizados cuando usted actualiza - a una nueva versión de Smarty. - </para> - <example> - <title>Archivos de la libreria Smarty</title> - <screen> -<![CDATA[ -Smarty.class.php -Smarty_Compiler.class.php -Config_File.class.php -debug.tpl -/internals/*.php (all of them) -/plugins/*.php (all of them) -]]> - </screen> - </example> - <para> - Smarty utiliza una constante de PHP llamada <link - linkend="constant.smarty.dir">SMARTY_DIR</link> que es la ruta para - el directorio de la biblioteca de Smarty 'libs/'. Basicamente, si su - aplicación puede encontrar el archivo <filename>Smarty.class.php - </filename>, usted no necesita definir <link linkend="constant.smarty.dir">SMARTY_DIR</link>, - Smarty lo encontrará. Por consiguiente si, <filename>Smarty.class.php - </filename> no esta incluido en el path, y no es abastecido por - una ruta absoluta para encontrar su aplicación, entonces usted - debe definir SMARTY_DIR manualmente. SMARTY_DIR <emphasis>debe - </emphasis> incluir una barra de seguimento. - </para> - <para> - Aquí esta un ejemplo de como se crea una instancia de Smarty en sus - scripts PHP: - </para> - - <example> - <title>Creando una instancia Smarty de Smarty</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <para> - Intente correr el script de arriba. Si usted obtiene un error diciendo que - el archivo <filename>Smarty.class.php</filename> - no fue encontrado, puedes usar una de las siguientes opciones: - </para> - - <example> - <title>Reemplazar por la ruta absulta de la libreria del archivo</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('/usr/local/lib/php/Smarty/Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <example> - <title>Adicionar el directorio de la libreria para incluirlo en el - include_path de PHP</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Edite su archivo php.ini, y adicione el directorio de la libreria de Smarty -// include_path y reinicie su servidor web. -// Entonces lo siguiente debe funcionar: -require('Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <example> - <title>Defina la constante SMARTY_DIR manualmente</title> - <programlisting role="php"> -<![CDATA[ -<?php -define('SMARTY_DIR', '/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <para> - Ahora que la libreria de archivos esta en su sitio, es tiempo - de configurar los directorios de Smarty para su aplicación. - </para> - <para> - Smarty require cuatro directorios (por defaul) llamados - <filename class="directory">'templates/'</filename>, - <filename class="directory">'templates_c/'</filename>, - <filename class="directory">'configs/'</filename> y - <filename class="directory">'cache/'</filename>. - </para> - <para> - Cada uno de estos son para definir las propiedades de las clases de Smarty. - <link linkend="variable.template.dir"> - <varname>$template_dir</varname></link>, - <link linkend="variable.compile.dir"> - <varname>$compile_dir</varname></link>, - <link linkend="variable.config.dir"> - <varname>$config_dir</varname></link>, y - <link linkend="variable.cache.dir"> - <varname>$cache_dir</varname></link> respectivamente. - Es altamente recomendado que usted configure un grupo - separado de estos directorios para cada aplicación que utilice de Smarty. - </para> - <para> - Asegurece que usted sabe la ubicación del document root de su servidor - web. En nuestro ejemplo, el document root esta en - <filename class="directory">/web/www.example.com/docs/</filename>. - Los directorios de Smarty solo son - accesados por la libreria de Smarty y nunca son accesados directamente - por el navegador. Por consiguiente para evitar cualquier preocupación - con la seguridad, es recomendado colocar estos directorios - <emphasis> fuera </emphasis> del document root. - </para> - <para> - Para nuestro ejemplo de instalación, configuraremos el ambiente de Smarty - para una aplicación de libro de visitas. Escojemos una aplicación solo - con el proposito de crear un directorio de nombre convencional. - Usted puede usar el mismo ambiente para cualquier aplicación, solamente - sustituya "guestbook" con el nombre de su aplicación. - Nosotros colocaremos nuestros directorios de Smarty dentro de - <filename class="directory">/web/www.example.com/smarty/guestbook/</filename>. - </para> - <para> - Usted necesita tener por lo menos un archivo dentro de su document root, - y que sea accesado por el navegador. Nosotros llamamos el script de - <emphasis>'index.php'</emphasis>, y lo colocamos en un subdirectorio dentro del - document root llamado <filename class="directory">/guestbook/</filename>. - </para> - - <note> - <title>Nota Técnica: </title> - <para> - Es conveniente configurar el servidor de forma que "index.php" pueda - ser identificado como el índice del directório padre, de esta manera - si usted accesa http://www.example.com/guestbook/, el script - index.php será ejecutado sin "index.php" ni la URL. - En Apache usted puede definir el sitio adicionando "index.php" en el - final de su configuración del directorio <emphasis>DirectoryIndex</emphasis> - (separando cada uno con espacios.) como en el ejemplo de httpd.conf. - </para> - <para> - <emphasis>DirectoryIndex - index.htm index.html index.php index.php3 default.html index.cgi - </emphasis> - </para> - </note> - - <para> - Veamos nuestra estructura de archivos hasta hora: - </para> - - <example> - <title>Ejemplo de estrutura de archivo</title> - <screen> -<![CDATA[ -/usr/local/lib/php/Smarty/Smarty.class.php -/usr/local/lib/php/Smarty/Smarty_Compiler.class.php -/usr/local/lib/php/Smarty/Config_File.class.php -/usr/local/lib/php/Smarty/debug.tpl -/usr/local/lib/php/Smarty/internals/*.php -/usr/local/lib/php/Smarty/plugins/*.php - -/web/www.example.com/smarty/guestbook/templates/ -/web/www.example.com/smarty/guestbook/templates_c/ -/web/www.example.com/smarty/guestbook/configs/ -/web/www.example.com/smarty/guestbook/cache/ - -/web/www.example.com/docs/guestbook/index.php -]]> - </screen> - </example> - - <para> - Smarty necesitara <emphasis role="bold">permisos de escritura</emphasis> - (usuarios de windows ingnorar) para - <link linkend="variable.compile.dir"><emphasis>$compile_dir</emphasis></link> y - <link linkend="variable.cache.dir"><emphasis>$cache_dir</emphasis></link>, - esto garantiza que el usuario del servidor pueda escribir en ellos. - Este es generalmente el usuarios "nobody" y el grupo "nobody". - Para usuarios con X sistema operativo, el default es "www" y el grupo "www". - Si usted esta usando Apache, puede ver en su archivo httpd.conf - (normalmente en "/usr/local/apache/conf/") cual es el usuario y - grupo que estan siendo usados. - </para> - - <example> - <title>Configurando permisos de archivos</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/smarty/guestbook/templates_c/ -chmod 770 /web/www.example.com/smarty/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/ -chmod 770 /web/www.example.com/smarty/guestbook/cache/ -]]> - </programlisting> - </example> - - <note> - <title>Nota Técnica: </title> - <para> - chmod 770 puede ser una seguridad bastante fuerte, solo le permite al - usuario "nobody" y al grupo "nobody" acesso de lectura/escritura a los - directorios. Si usted quiere abrir permiso de lectura a cualquiera - (en la mayoria de las veces para su propia conveniencia de querer ver - estos archivos), usted puede usar el 775 en lugar del 770. - </para> - </note> - - <para> - Nosotros necesitamos crear el archivo index.tpl, para que Smarty lo - pueda cargar. Este estara localizado en su - <link linkend="variable.template.dir">$template_dir</link>. - </para> - - <example> - <title>Editando /web/www.example.com/smarty/guestbook/templates/index.tpl</title> - <screen> -<![CDATA[ - -{* Smarty *} - -Hello, {$name}! -]]> - </screen> - </example> - - <note> - <title>Nota Técnica:</title> - <para> - {* Smarty *} Esto es un <link linkend="language.syntax.comments">comentario - </link> en el template. Este no es obligatorio, pero si una buena practica - iniciar todos sus archivos de plantilla con estos comentarios. - Esto hace facilmente reconocibles a los archivos a pesar la extención - del archivo. Por ejemplo, editores de texto pueden reconocer el archivo - y habilitar un realce de sintaxis especial. - </para> - </note> - - <para> - Ahora vamos a editar el index.php. crearemos una instancia de Smarty, - daremos valor a las variables del template y mostraremos el archivo - index.tpl. - En el ambiente de nuestro ejemplo, "/usr/local/lib/php/Smarty" esta - dentro de include_path. Asegurese que exista el mismo, o utilice la - ruta absoluta. - </para> - - <example> - <title>Editando /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// load Smarty library -require('Smarty.class.php'); - -$smarty = new Smarty; - -$smarty->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <note> - <title>Nota Técnica: </title> - <para> - En nuestro ejemplo, estamos configurando rutas absolutas para todos - los directorios de Smarty. - Si <filename class="directory">/web/www.example.com/smarty/guestbook/ - </filename> está dentro de su include_path de PHP, entonces estas - declaraciones no son necesarias. Sin embargo, esto es mas eficiente y - (por experiencia) tiene menos tendencia a errores en relación a - determinar las rutas absolutas. Esto garantiza que Smarty esta recibiendo - los archivos del directorio que usted desea. - </para> - </note> - - <para> - Ahora carge el archivo <filename>index.php</filename> desde su navegador web. - Usted debera ver "Hello, Ned!" - </para> - <para> - Usted a completado la configuracion basica para el Smarty! - </para> - </sect1> - <sect1 id="installing.smarty.extended"> - <title>Expandiendo la configuración</title> - - <para> - Esta es una continuación de la <link linkend="installing.smarty.basic"> - instalación básica</link>, por favor lea esta primero! - </para> - <para> - Una forma un poco mas flexible de configurar el Smarty, expandir las - clases e iniciar su ambiente de Smarty. Es, en vez de configurar rutas - de directorios repetidamente, asigne esas mismas a variables, etc., - nosotros podemos facilitar eso. Vamos a crear un nuevo directorio en - "/php/includes/guestbook/" y llamemos al nuevo archivo <filename>setup.php - </filename>. En nuestro ejemplo, "/php/includes" está en nuestro include_path. - Verifique que usted también lo definio, o utilice rutas absolutas de - los archivos. - </para> - - <example> - <title>Editando /php/includes/guestbook/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// load Smarty library -require('Smarty.class.php'); - -// The setup.php file is a good place to load -// required application library files, and you -// can do that right here. An example: -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function Smarty_GuestBook() - { - - // Class Constructor. - // These automatically get set with each new instance. - - $this->Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <para> - Ahora vamos a modificar el archivo index.php para usar el setup.php: - </para> - - <example> - <title>Editando /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <para> - Ahora usted vera que es completamente simple crear una instancia de - Smarty, solo use Smarty_GuestBook, que automáticamente inicializa todo - para nuestra aplicación. - </para> - - </sect1> - - </chapter> -</part> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/language-defs.ent
Deleted
@@ -1,6 +0,0 @@ -<!-- $Revision: 1988 $ --> - -<!ENTITY SMARTYManual "Smarty Manual"> -<!ENTITY SMARTYDesigners "Smarty For Template Designers"> -<!ENTITY SMARTYProgrammers "Smarty For Programmers"> -<!ENTITY Appendixes "Appendixes">
View file
Smarty-3.1.13.tar.gz/documentation/es/language-snippets.ent
Deleted
@@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - -<!ENTITY note.parameter.merge '<note> - <title>Nota Tecnica</title> - <para> - El parametro <parameter>merge</parameter> es la llave respectiva del arreglo, asi si - usted asocia dos arreglos indexados numericamente, estos se sobre escriben uno al otro o - tener como resultado llaves no-secuenciales. Este es diferente a la funcion array_merge() de PHP - la cual limpia las llaves numericas y las vuelve a renumerar. - </para> -</note>'> - -<!ENTITY parameter.compileid '<para> - Como tercer parametro opcional, usted puede pasar <parameter>compile_id</parameter>. - Este en el caso que usted quira compilar diferentes versiones del mismo Tempalte, - tal como tener separadas varios Templates compilados de diferentes lenguajes. - Otro uso para compile_id es cuando usted usa mas de un $template_dir pero solo un $compile_dir. - Ponga separado <parameter>compile_id</parameter> por cada $template_dir, de otra manera - los tempate con el mismo nombre se sobre escibiran uno sobre otro. - Uste puede poner también la variable <link linkend="variable.compile.id">$compile_id</link> - una vez en lugar de pasar esta por cada llamada a la función. -</para>'>
View file
Smarty-3.1.13.tar.gz/documentation/es/livedocs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 2129 $ --> -<!-- EN-Revision: 1.1 Maintainer: ramirez Status: ready --> - -<!ENTITY livedocs.author 'Autor:<br />'> -<!ENTITY livedocs.editors 'Editado por:<br />'> -<!ENTITY livedocs.copyright 'Copyright © %s por %s'> -<!ENTITY livedocs.published 'Poublicado en: %s'>
View file
Smarty-3.1.13.tar.gz/documentation/es/make_chm_index.html
Deleted
@@ -1,37 +0,0 @@ -<HTML> -<!-- $Revision: 2340 $ --> -<HEAD> - <TITLE>Manual de Smarty</TITLE> - <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=ISO-8859-1"> - <LINK REL="STYLESHEET" HREF="style.css"> -</HEAD> -<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> -<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> -<TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" -CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">Manual de Smarty</TH></TR><TR><TD -COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> -<TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> - -<P><TABLE ALIGN="CENTER"> -<TR><TD ALIGN="CENTER"> -<H1 CLASS="title">Smarty Manual</H1> -<DIV CLASS="author">Monte Ohrt</DIV> -<DIV CLASS="author">Andrei Zmievski</DIV> -</TD></TR></TABLE> -<BR><P ALIGN="CENTER">This file was generated: [GENTIME]<BR> -Ir a <A HREF="http://www.smarty.net/download-docs.php">http://www.smarty.net/download-docs.php</A> - para obtener la version actual.</P> - -<BR><P CLASS="copyright" ALIGN="CENTER">Copyright © 2001 - 2005 New Digital Group, Inc.</P> - -</TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> -<TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> -<TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> -<TR><TD COLSPAN="3"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD> -</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> -</BODY></HTML> -
View file
Smarty-3.1.13.tar.gz/documentation/es/preface.xml
Deleted
@@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <preface id="preface"> - <title>Prólogo</title> - <para> - Esta es indudablemente una de las preguntas que mas se hacen en las listas - de correo de PHP: Como hacer mis scripts de PHP independientes del diseño?. - Mientras PHP se encarga de como "incrustar scripts en lenguaje HTML", - después de escribir los proyectos que mezclan PHP y HTML libremente, - esto trae como consecuencia la idea de separar la forma y el contenido, - muy buena idea[TM]. En adición, en muchas compañias la - interpretación de esquema es diseñador y programador por separado. - Por consiguiente, la busqueda trae como solución una plantilla(template). - </para> - <para> - Por ejemplo en nuestra compañia, el desarrollo de una aplicación es - como sigue: Después de tener la documentación necesaria, el - diseñador de web diseña el prototipo de la interfaz y la entrega al - programador. El programador implementa las reglas de negocio en PHP y usa el - prototipo para crear el "esqueleto" de la plantilla. - El proyeto esta en manos de la persona responsable del HTML designer/web page - que produzca la plantilla para su gloria completa. El proyecto debe ir y regresar - entre programación/HTML varias veces. De esa manera, es importante para - tener un buen suporte de templates porque los programadores no quieren hacer nada - con HTML ni quieren diseño HTML al rededor del codigo PHP. - Los diseñadores precisan de soporte para archivos de configuración, bloques - dinámicos y otras interfaces usadas, mas ellos no quieren ocuparse con las - compejidades del lenguaje de programación PHP. - </para> - <para> - Buscando, actualmente existen muchas soluciones de templates disponibles para - PHP, la mayor parte de ellos les provee de una forma rudimentaria de - sustitución de variables dentro del template y hace una forma limitada - de la funcionalidad dinámica del bloque. - Pero nuestras necesidades requieren mas que eso. - Porque no queremos programadores que no quieran tener trato con HTML del todo, - pero esto puede ser casi inevitable. - Por ejemplo, si un diseñador quiere alternar colores de fondo sobre bloques - dinámicos, esto tuvo que trabajarse con el programador anticipadamente. - Nosotros necesitamos también que los diseñadores esten capacitados para - usar archivos de configuración, y colocar variables de ellos dentro de - los templates. La lista continua. - </para> - <para> - Nosotros empezamos escribiendo por fuera una especulación para un - motor de plantillas(templates) atrasado de 1999. - Después de terminar la especulación, comenzamos a trabajar - un motor de plantillas escrito en C que esperanzadoramente fue aceptado - para ser incorporado con PHP. - No solamente nos encontramos con algunas complicadas barreras tecnicas, - si no también hubo acalorados debates sobre lo que exactamente - debia de hacer o no un motor de plantillas. - De esta experiencia, decidimos que un motor de platillas devería - ser escrito en PHP como una clase, para que cualquiera lo use de la misma - forma como ellos ven. - Así nosotros escribimos un motor que es <productname>SmartTemplate - </productname> nunca volvio a existir(nota: esa clase nunca fue - enviada al público). Esta era una clase que ralizaba casi todo lo que nosotros - necesitabamos: sustitución de variables regulares, soporte incluso - de otras plantillas, integración con archivos de configuración, - incrustación de código PHP, funcionalidades 'if' limitada y muchos - mas bloques dinámicos robustos que podrían ser anidados muchas veces. - Todo esto con expresiones regulares y el código producido seria mejor, como - diriamos nosotros, impenetrable. - Eso era también notoriamente lento en grandes aplicaciones por todas - las interpretaciones y expresiones regulares trabajando en cada - requisición. - El mayor problema del punto de vista de un programador era todo el trabajo - necesario en el procesamiento del scripts PHP y procesamiento de bloques - dinámicos de la plantilla. Como hacemos eso facilmente? - </para> - <para> - Entonces se origino la visión de que finalmente se convirtiera en - Smarty. Nosotros sabemos que rápido es el código PHP sin las cabeceras - y la interpretación de plantillas(templates). - También sabemos que meticuloso y arrogante es el lenguaje PHP su poder - debe ser aceptable para un diseñador, y este podría ser enmascarado con - una simples sintaxis de plantillas(templates). - Entonces que pasara si nosotros convinamos las dos fuerzas? - De esta manera, nacio Smarty... - </para> - </preface> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="advanced.features"> - <title>Caracteristicas Avanzadas</title> -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; - -&programmers.advanced-features.section-template-cache-handler-func; - -&programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,121 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="advanced.features.objects"> - <title>Objetos</title> - <para> - El Smarty permite acceso a objetos de PHP a través de sus templates. - Hay dos formas de accesarlos. Una forma es - <link linkend="api.register.object">registrando objetos</link> para el - template, entonces acceselos mediante sintaxis similar a las funciones - habituales. La otra es <link linkend="api.assign">asignar objetos</link> al - template y accesarlos como si fueran una variable asignada. El primer método - tiene una sintaxis de template mucho mas agradable. Y también mas segura, a - medida que un objeto registrado puede ser reescrito a ciertos métodos y - propiedades. Sin embargo tanto, <emphasis role="bold">un objeto registrado - no puede ser puesto en loop o ser asignado en arreglos de objetos</emphasis>, - etc. El método que usted escoja sera determinado por sus necesidades, pero - utilice el primero método si es posible para mantener un minimo de sintaxis - en el template. - </para> - <para> - Si <link linkend="variable.security">$security</link> esta habilitada, - ninguno de los dos métodos privados o funciones pueden ser accesados - (comenzando con "_"). Si un metodo y propiedades de un mismo nombre existe, - el método será usado. - </para> - <para> - Usted puede restringir los métodos y propiedades que pueden ser accesados - listandolos en un arreglo como el tercer parámetro de registro. - </para> - <para> - Por default, los parámetros pasados a los objetos a a través de los - templates son pasados de la misma forma en que las - <link linkend="language.custom.functions">funciones de costumbre</link> - los obtienen. Un arreglo asociativo es pasado como el primer parámetro, - y el objeto smarty como el segundo. Si usted quiere que los parámetros - pasados uno de cada vez por cada argumento pasen como parámetros de un - objeto tradicional, defina el cuarto parámetro de registro en falso. - </para> - <para> - El quinto parámetro opcional solo tiene efecto con - <parameter>format</parameter> siendo <literal>true</literal> - y conteniendo una lista de métodos de ob que seran tratados - como bloques. Esto significa que estos métodos tienen una - etiqueta de cierre en el template - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) y - los parámetros para los métodos tienen la misma sinopsis como - los parámetros de <link - linkend="plugins.block.functions">block-function-plugins</link>: - Ellos reciben 4 parámetros - <parameter>$params</parameter>, - <parameter>$content</parameter>, - <parameter>&$smarty</parameter> y - <parameter>&$repeat</parameter> también se comportan como - block-function-plugins. - </para> - <example> - <title>usando un objeto registrado o atribuido</title> - <programlisting role="php"> -<![CDATA[ -<?php -// el objeto - -class My_Object { - function meth1($params, &$smarty_obj) { - return "this is my meth1"; - } -} - -$myobj = new My_Object; -// registrando el objeto (será por referencia) -$smarty->register_object("foobar",$myobj); -// Si usted quiere restringir acceso a ciertos metodos o propriedades, listelos -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// Si usted quiere usar el formato de parámetro del objeto tradicional, pase un booleano en false -$smarty->register_object("foobar",$myobj,null,false); - -// también puede asignar ojetos. Posible cuando se asignan por referencia. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - <para> - y como debera accesar a su objeto en index.tpl - </para> - <programlisting> -<![CDATA[ -{* accesando a nuestro objeto registrado *} -{foobar->meth1 p1="foo" p2=$bar} - -{* usted también puede asignar la salida *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* accesando a nuestro objeto asignado *} -{$myobj->meth1("foo",$bar)} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="advanced.features.outputfilters"> - <title>Filtros de salida</title> - <para> - Cuando el template es invocado a través de display() o fetch(), - su salida puede ser enviada a través de uno o mas filtros de salida. - Este es diferente a los postfilters porque los postfilters operan en - los templates compilados antes de ser salvados en disco, y los filtros - de salida operan en la salida del template cuando este es ejecutado. - </para> - - <para> - Los Filtros de Salida pueden ser - <link linkend="api.register.outputfilter">registrado</link> o - cargados del directorio de plugins usando la función - <link linkend="api.load.filter">load_filter()</link> o - configurando a variable - <link linkend="variable.autoload.filters">$autoload_filters</link>. - El Smarty pasara la salida como el primer argumento, y espera - que la función retorne el resultado del procesamiento. - </para> - <example> - <title>Usando un filtro de salida de template</title> - <programlisting role="php"> -<![CDATA[ -<?php -// ponga esto en su aplicación -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// registra el outputfilter -$smarty->register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// Ahora cualquier ocurrencia de una dirección de email en la salida -// del template tendra una simple protección contra spambots -?> -]]> -</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="advanced.features.postfilters"> - <title>Postfilters</title> - <para> - Los postfilters de template son funciones de PHP con las cuales sus - templates son corridos inmediatamente después de ser compilados. - Los postfilters pueden ser <link linkend="api.register.postfilter"> - registrado</link> o cargados del directorio de plugins usando la función - <link linkend="api.load.filter">load_filter()</link> o por la variable - de configuración - <link linkend="variable.autoload.filters">$autoload_filters</link>. - El Smarty pasara el código fuente del template - compilado como el primer argumento, y espera que la función retorne el - resultado del procesamiento. - </para> - <example> - <title>Usando un postfilter de template</title> - <programlisting role="php"> -<![CDATA[ -<?php -// ponga esto en su aplicación -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Created by Smarty! -->;\n\" ?>;\n".$tpl_source; -} - -// registra el postfilter -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> -]]> -</programlisting> - <para> - Observe como hacer la compilacion para Smarty del template index.tpl: - </para> - <screen> - <![CDATA[ - <!-- Created by Smarty! --> - {* rest of template content... *} - ]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="advanced.features.prefilters"> - <title>Prefilters</title> - <para> - Los prefilters de Template son funciones de PHP que corren sus - templates antes de ser compilados. Esto es bueno para procesar - por adelantado sus templates y remover comentarios no deseados, - vigilando a las personas que coloquen en sus templates, etc. - </para> - <para> - Los Prefilters pueden ser - <link linkend="api.register.prefilter">registrado</link> - o cargado del directorio de plugins usando la función - <link linkend="api.load.filter">load_filter()</link> o por la - configuración de la variable - <link linkend="variable.autoload.filters">$autoload_filters</link>. - </para> - <para> - El Smarty pasara el código fuente del template como el primer argumento, - y espera que la función le retorne el código fuente del template - resultante. - </para> - <example> - <title>usando un prefiltro prefilter de template</title> -<programlisting role="php"> -<![CDATA[ -<?php -// ponga esto en su aplicación -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace("/<!--#.*-->/U","",$tpl_source); -} - -// registrar el prefilter -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> -]]> -</programlisting> - <para> - Esto eliminara todos los comentarios en el codigo del template. - </para> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="section.template.cache.handler.func"> - <title>Función manipuladora de cache</title> - <para> - Como una alternativa al uso del mecanismo de caching por default basado - en archivo, usted puede especificar una función habitual de manipulación - de cache que será usada para leer, escribir y limpar archivos de cache. - </para> - <para> - Cree una función en su aplicación para que Smarty la use como un - manipulador de cache. Defina el nombre de la variable de clase en el - <link linkend="variable.cache.handler.func">$cache_handler_func</link>. - El Smarty ahora usara esta para manipular datos en el cache. El primer - parámetro es la acción, que puede ser uno de estos 'read', 'write' y - 'clear'. El segundo parámetro es el objeto de Smarty. El tercer parámetro - es el contenido que esta en el cache. Sobre 'write', el Smarty pasa el - contenido en cache en estos parámetros. sobre 'read', el Smarty espera - que su función acepte este parámetro por referencia y poblar estos con los - datos en cache. Sobre 'clear', el Smarty pasa una variable en cero desde - aquí que esta no es usada. El cuarto parámetro es el nombre del archivo de - template(necesario para leer/escribir). El quinto parámetro es la cache_id - (opcional). El sexto parámetro es la compile_id (opcional). - </para> - <para> - NOTA: El ultimo parámetro ($exp_time) fue adicionado en el Smarty-2.6.0. - </para> - <example> - <title> ejemplo usando MySQL como una fuente de cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - -ejemplo de uso: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -mysql database is expected in this format: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // set db host, user and pass here - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // create unique cache id - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // read cache from database - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_content = gzuncompress($row["CacheContents"]); - } else { - $cache_content = $row["CacheContents"]; - } - $return = $results; - break; - case 'write': - // save cache to database - - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - // clear cache info - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // clear them all - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - // error, unknown action - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> -</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,257 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="template.resources"> - <title>Recursos</title> - <para> - Los templates pueden venir de una variedad de fuentes. Cuando usted - muestra un template con - <link linkend="api.display">display()</link> o - <link linkend="api.fetch">fetch()</link>, o incluye un template - dentro de otro template, usted suministra un tipo de recurso, seguido - por la ruta correcta y el nombre del template. - Si un recurso no es dado explicitamente el valor de - <link linkend="variable.default.resource.type">$default_resource_type</link> - es asumido. - </para> - <sect2 id="templates.from.template.dir"> - <title>Templates desde $template_dir</title> - <para> - Los templates desde el - <link linkend="variable.template.dir">$template_dir</link> no requieren - recursos del template, aunque usted puede usar el file: resource for - consistancy(recurso por consistencia). Justamente proporcionando - la ruta(path) del template que usted quiere usar en relación al - directorio root <link linkend="variable.template.dir">$template_dir</link>. - </para> - <example> - <title>Usando templates desde $template_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php -// desde el script de PHP -$smarty->display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // igual al de arriba -?> - -{* dentro del template de Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* igual al de arriba *} -]]> -</programlisting> - </example> - </sect2> - <sect2 id="templates.from.any.dir"> - <title>Templates partiendo de cualquier directorio</title> - <para> - Los templates de fuera del - <link linkend="variable.template.dir">$template_dir</link> requieren - el file: tipo de recurso del template, seguido por la ruta absoluta - y el nombre del template. - </para> - <example> - <title>usando templates desde cualquier directorio</title> - <programlisting role="php"> -<![CDATA[ -<?php -// desde el script de PHP -$smarty->display("file:/export/templates/index.tpl"); -$smarty->display("file:/path/to/my/templates/menu.tpl"); -?> -]]> - </programlisting> - <para> - dentro del template Smarty: - </para> - <programlisting> -<![CDATA[ -{include file="file:/usr/local/share/templates/navigation.tpl"} -]]> - </programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Rutas de archivos de Windows</title> - <para> - Si usted esta utilizando una maquina con windows, las rutas de - los archivos normalmente incluyen la letra del drive (C:) en el - comienzo del nombre de la ruta. Asegurarse de usar "file:" en la - ruta para evitar conflictos de nombres y poder obtener los - resultados desados. - </para> - <example> - <title>usando templates con rutas de archivos de windows</title> - <programlisting role="php"> -<![CDATA[ -<?php -// dentro del script de PHP -$smarty->display("file:C:/export/templates/index.tpl"); -$smarty->display("file:F:/path/to/my/templates/menu.tpl"); -?> -]]> - </programlisting> - <para> - dentro del template de Smarty - </para> - <programlisting> -<![CDATA[ -{include file="file:D:/usr/local/share/templates/navigation.tpl"} -]]> -</programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>Templates partiendo de otras fuentes</title> - <para> - Se pueden retomar templates usando cualquier fuente posible a la - que usted pueda acceder con PHP: base de datos, sockets, LDAP, etc. - Usted puede hacer esto escribiendo las funciones de plugin de recurso - y registrandolas con Smarty. - </para> - - <para> - Vea la sección <link linkend="plugins.resources">resource plugins</link> - para mayor informacion sobre las funciones que puede utilizar. - </para> - - <note> - <para> - Nota Usted puede activar manualmente el recurso <literal>file</literal> - incrustado, pero no puede suministrar un recurso que busca templates a - partir del sistema de archivos de alguna otra forma registrando bajo - otro nombre de recurso. - </para> - </note> - <example> - <title>Usando recursos habituales</title> - <programlisting role="php"> -<![CDATA[ -<?php -// ponga estas funciones en algun lugar de su aplicación -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // llame su base de datos parta traer los datos al template, - // poblando el $tpl_source - - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // llame su base de datos para traer los datos y poblar el $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // asume que todos los templates son seguros - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // no usar para templates -} - -// registrar el nombre del recurso "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// usando el recurso a partir del script PHP -$smarty->display("db:index.tpl"); -?> -]]> -</programlisting> - <para> - usando el recurso dentro del template de Smarty - </para> - <programlisting> -<![CDATA[ -{include file="db:/extras/navigation.tpl"} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Función manipuladora de Template por default</title> - <para> - Usted puede especificar la función que será usada para devolver - el contenido del template dentro del evento del template no puede - ser retomado desde su recurso. Un uso distinto es para crear - templates que no existen "on-the-fly" (templates cuyo contenido - cambia mucho, bastante variable). - </para> - <example> - <title> usando la función manipuladora de template por default</title> - <programlisting role="php"> -<![CDATA[ -<?php -// ponga esta función en algun lugar de su aplicación - -function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) -{ - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - // create the template file, return contents. - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // not a file - return false; - } -} - -// defina la función manipuladora por default -$smarty->default_template_handler_func = 'make_template'; -?> -]]> -</programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: ramirez Status: ready --> -<chapter id="api.functions"> - <title>La clase Methods() de Smarty</title> -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>append_by_ref</refname> - <refpurpose>pasando valores por referencia</refpurpose> - </refnamediv> - <refsect1> - <title>Descipción</title> - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Este es usado para <link linkend="api.append">pasar</link> valores al - templete por referencia. Si usted pasa una variable por referencia entonces - cambiara su valor, el valor asignado sufrira el cambio también. Para - <link linkend="advanced.features.objects">objetos</link>, append_by_ref() - también envia una copia en memoria del objeto adicionado. Vea el manual de - PHP en referenciando variables para una mejor explicación del asunto. - Si usted pasa el tercer parámetro en true, el valor será mezclado con el - arreglo en ves de ser adicionado. - </para> - ¬e.parameter.merge; - <example> - <title>append_by_ref</title> - <programlisting role="php"> -<![CDATA[ -<?php -// appending name/value pairs -$smarty->append_by_ref("Name", $myname); -$smarty->append_by_ref("Address", $address); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.append">append()</link> - y <link linkend="api.assign">assign()</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-append.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.append"> - <refnamediv> - <refname>append()</refname> - <refpurpose>agregando elementos a una matriz asignada</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Este es usado para adicionar un elemento en un arreglo asignado. - Si usted adiciona una cadena como valor, este se convertira en - un valor del arreglo y entonces lo adiciona. Usted puede - explicitamente pasar pares de nombres/valores, o arreglos asociativos - conteniendo los pares nombre/valor. Si usted pasa el tercer parámetro - opcional como true, el valor se únira al arreglo actual en vez de ser - adicionado. - </para> - ¬e.parameter.merge; - <example> - <title>append</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passing name/value pairs -$smarty->append("Name", "Fred"); -$smarty->append("Address", $address); - -// passing an associative array -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - </programlisting> - </example> - <para>Ver también - <link linkend="api.append.by.ref">append_by_ref()</link>, - <link linkend="api.assign">assign()</link> - y - <link linkend="api.get.template.vars">get_template_vars()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assign_by_ref</refname> - <refpurpose>pasando valores por referencia</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Este es usado para <link linkend="api.assign">asignar</link> valores por - referencia al template en vez de hacer una copia. Vea el manual de PHP en - la parte sobre referencia de variables para una explicación mas detallada. - </para> - <note> - <title>Nota Técnica</title> - <para> - Este es usado para asignar valores por referencia al template. - Si ested asigna una variable por referencia entonces cambiara - este valor, el valor asignado exprimentara el cambio también. - Para <link linkend="advanced.features.objects">objetos</link>, - assign_by_ref() también exite una copia del objetos asignado en memoria. - Vea el manual de PHP en refereciando variables para una mejor explicación. - </para> - </note> - <example> - <title>assign_by_ref()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passing name/value pairs -$smarty->assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.assign">assign()</link>, - <link linkend="api.clear.all.assign">clear_all_assign()</link>, - <link linkend="api.append">append()</link> - y <link linkend="language.function.assign">{assign}</link> - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-assign.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.assign"> - <refnamediv> - <refname>assign()</refname> - <refpurpose>pasando valores para el template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Usted puede explicitamente pasar pares de nombres/valores, o un arreglo - asociativo conteniendo el par de nombre/valor. - </para> - <example> - <title>assign()</title> -<programlisting role="php"> -<![CDATA[ -<?php -// pasando pares de nombre/valor -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// pasando un arreglo asosiativo -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// pasando un row desde una base de datos (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> -</programlisting> - <para> - Accesando estos en el template con - </para> -<programlisting> -<![CDATA[ -{$Name} -{$Address} -{$city} -{$state} - -{$contact.id}, {$contact.name},{$contact.email} -?> -]]> -</programlisting> - </example> - <para> - Para ver una asignacion de arreglos mas compleja - <link linkend="language.function.foreach">{foreach}</link> - y - <link linkend="language.function.section">{section}</link> - </para> - - <para> - Vea también <link linkend="api.assign.by.ref">assign_by_ref()</link>, - <link linkend="api.get.template.vars">get_template_vars()</link>, - <link linkend="api.clear.assign">clear_assign()</link>, - <link linkend="api.append">append()</link> - y - <link linkend="language.function.assign">{assign}</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clear_all_assign()</refname> - <refpurpose>>limpia el valor de todas las variables asignadas</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <example> - <title>clear_all_assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passing name/value pairs -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// will output above -print_r( $smarty->get_template_vars() ); - -// clear all assigned variables -$smarty->clear_all_assign(); - -// will output nothing -print_r( $smarty->get_template_vars() ); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.clear.assign">clear_assign()</link>, - <link linkend="api.clear.config">clear_config()</link>, - <link linkend="api.assign">assign()</link> - y <link linkend="api.append">append()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clear_all_cache</refname> - <refpurpose>limpia completamente el cache del template</refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Como un parámetro opcional, usted puede proporcionar un periodo minimo - en segundos que el archivo de cache debe tener antes de ser anulado. - </para> - <example> - <title>clear_all_cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear the entire cache -$smarty->clear_all_cache(); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.clear.cache">clear_cache()</link>, - <link linkend="api.is.cached">is_cached()</link> - y - <link linkend="caching">caching</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clear_assign()</refname> - <refpurpose>limpia el valor de una variable asignada</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Este puede ser un valor simple, o un arreglo de valores. - </para> - <example> - <title>clear_assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear a single variable -$smarty->clear_assign('Name'); - -// clear multiple variables -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.clear.all.assign">clear_all_assign()</link>, - <link linkend="api.clear.config">clear_config()</link>, - <link linkend="api.get.template.vars">get_template_vars()</link>, - <link linkend="api.assign">assign()</link> - y <link linkend="api.append">append()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clear_cache()</refname> - <refpurpose>Esto limpia el cache de un template especifico</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Si usted tiene <link linkend="caching.multiple.caches">multiples</link> caches - en este archivo, usted puede limpiar un cache especifico proporcionando el - <parameter>cache_id</parameter> como segundo parámetro Usted también puede pasar - el <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - como un tercer parámetro. Usted puede <link linkend="caching.groups">"agrupar"</link> - templates conjuntamente de esta manera estos pueden ser removidos como un grupo. - Vea el <link linkend="caching">caching section</link> para mayor información. - Como un cuarto parámetro opcional, usted puede proporcionar un periodo - minimo en segundos que el archivo de cache debe tener antes de ser anulado. - </para> - <example> - <title>clear_cache()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear the cache for a template -$smarty->clear_cache('index.tpl'); - -// clear the cache for a particular cache id in an multiple-cache template -$smarty->clear_cache('index.tpl', 'CACHEID'); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.clear.all.cache">clear_all_cache()</link> - y - <link linkend="caching">caching</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clear_compiled_tpl()</refname> - <refpurpose>Esto limpia la vesion compilada del recurso de un template especifico</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Esto limpia la versión compilada del recurso del template especificado, - o todos los archivos de templates compilados si no fueron especificados. - si usted pasa <link linkend="variable.compile.id">$compile_id</link> solo - sera compilado este template especificado - <link linkend="variable.compile.id">$compile_id</link> es limpiado. - Si usted lo pasa con ex_time, entonces solo compilara los templates - anteriores al exp_time segundo seran limpiados, por default todos los - templates son compilados y limpiados independientemente de su tiempo de vida. - Esta función es solo para uso avanzado, normalmente no es necesaria. - </para> - <example> - <title>clear_compiled_tpl()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear a specific template resource -$smarty->clear_compiled_tpl("index.tpl"); - -// clear entire compile directory -$smarty->clear_compiled_tpl(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.config"> - <refnamediv> - <refname>clear_config()</refname> - <refpurpose>Esto limpia todas las variables de configuración</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Esto limpia todas las variables de - <link linkend="language.config.variables">configuración asignadas</link>. - Si es proporcionado el nombre de una variable, solo esa variable es limpiada. - </para> - <example> - <title>clear_config()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear all assigned config variables. -$smarty->clear_config(); - -// clear one variable -$smarty->clear_config('foobar'); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.get.config.vars">get_config_vars()</link>, - <link linkend="language.config.variables">config variables</link>, - <link linkend="config.files">config files</link>, - <link linkend="language.function.config.load">{config_load}</link>, - <link linkend="api.config.load">config_load()</link> - y - <link linkend="api.clear.assign">clear_assign()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.config.load"> - <refnamediv> - <refname>config_load()</refname> - <refpurpose>Carga el archivo de configuración y lo asigna al template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Esto carga el <link linkend="config.files">archivo de configuración</link> de - datos y lo asigna al template. Esto funciona idéntico a la función - <link linkend="language.function.config.load">{config_load}</link>. - </para> - <note> - <title>Nota Técnica</title> - <para> - A partir de Smarty 2.4.0, las variables de template asignadas son - mantenidas a través de <link linkend="api.fetch">fetch()</link> y - <link linkend="api.display">display()</link>. Las variables de - configuración cargadas de config_load() son siempre de alcance global. - Los archivos de configuracion también son compilados para - execución rapida, y respetar el - <link linkend="variable.force.compile">force_compile</link> y - <link linkend="variable.compile.check">compile_check</link> de - configuración. - </para> - </note> - <example> - <title>config_load()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// load config variables and assign them -$smarty->config_load('my.conf'); - -// load a section -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="language.function.config.load">{config_load}</link>, - <link linkend="api.get.config.vars">get_config_vars()</link>, - <link linkend="api.clear.config">clear_config()</link>, - y - <link linkend="language.config.variables">config variables</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-display.xml
Deleted
@@ -1,108 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.display"> - <refnamediv> - <refname>display()</refname> - <refpurpose>Despliega el Template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Este despliega el template diferente de <link - linkend="api.fetch">fetch()</link>. Cargando un tipo valido de path - <link linkend="template.resources">template resource</link>. - Como un segundo parámetro opcional, usted puede pasar un - identificador de cache. - Vea el <link linkend="caching">caching section</link> para mayor - información. - </para> - ¶meter.compileid; - <example> - <title>display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; -$smarty->caching = true; - -// only do db calls if cache doesn't exist -if(!$smarty->is_cached("index.tpl")) { - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// display the output -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - </example> - <para> - Use la sintaxis <link linkend="template.resources">template resources</link> - para mostrar archivos fuera del directorio - <link linkend="variable.template.dir">$template_dir</link>. - </para> - <example> - <title>Ejemplos de recursos de la función display</title> - <programlisting role="php"> -<![CDATA[ -<?php -// absolute filepath -$smarty->display('/usr/local/include/templates/header.tpl'); - -// absolute filepath (same thing) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// windows absolute filepath (MUST use "file:" prefix) -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// include from template resource named "db" -$smarty->display('db:header.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.fetch">fetch()</link> y - <link linkend="api.template.exists">template_exists()</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch()</refname> - <refpurpose>Retorna la salida del template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>$compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Este retorna la salida del template en vez de - <link linkend="api.display">desplegarla</link>. - Proporcionando un tipo y path valido - <link linkend="template.resources">template resource</link>. - Como un segundo parámetro opcional, usted puede pasar el - identificador de cache. - vea el <link linkend="caching">caching section</link> para - mayor información. - </para> - ¶meter.compileid; - - <para> - <example> - <title>fetch()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// only do db calls if cache doesn't exist -if(!$smarty->is_cached('index.tpl')) { - - // dummy up some data - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name','Fred'); - $smarty->assign('Address',$address); - $smarty->assign($db_data); - -} - -// capture the output -$output = $smarty->fetch('index.tpl'); - -// do something with $output here - -echo $output; -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Usando fetch() y enviando a un e-mail</title> - <para> - El template email_body.tpl - </para> - <programlisting> -<![CDATA[ -Dear {$contact.name}, - -Welcome and thankyou for signing up as a member of our user group, - -Click on the link below to login with your user name of '{$contact.login_id}' -so you can post in our forums. - -http://{$smarty.server.SERVER_NAME}/index.php?page=login - -List master -Some user group - -{include file="email_disclaimer.tpl"} -]]> - </programlisting> - <para> - El template email_disclaimer.tpl usando el modificador - <link linkend="language.function.textformat">{textformat}</link>. - </para> - <programlisting> -<![CDATA[ -{textformat wrap=40} -Unless you are named "{$contact.name}", you may read only the "odd numbered -words" (every other word beginning with the first) of the message above. If you have -violated that, then you hereby owe the sender 10 GBP for each even -numbered word you have read -{/textformat} -]]> - </programlisting> - <para> - y el script de PHP usando la función - <ulink url="&url.php-manual;function.mail">mail()</ulink> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// get contact from database eg using pear or adodb -$query = 'select name, email, login_id from contacts where contact_id='.$contact_id; -$contact = $db->getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - </programlisting> - </example> - </para> - - <para> - Ver también - <link linkend="language.function.fetch">{fetch}</link> - <link linkend="api.display">display()</link>, - <link linkend="language.function.eval">{eval}</link>, - y - <link linkend="api.template.exists">template_exists()</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>get_config_vars()</refname> - <refpurpose>retorna el valor asignado a la variable de configuración</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Si no tiene un parámetro asignado, un arreglo de todas las - <link linkend="language.config.variables">variables - de los archivos de configuración</link> es retornado. - </para> - <example> - <title>get_config_vars()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// get loaded config template var 'foo' -$foo = $smarty->get_config_vars('foo'); - -// get all loaded config template vars -$config_vars = $smarty->get_config_vars(); - -// take a look at them -print_r($config_vars); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.clear.config">clear_config()</link>, - <link linkend="language.function.config.load">{config_load}</link>, - <link linkend="api.config.load">config_load()</link> - y - <link linkend="api.get.template.vars">get_template_vars()</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>get_registered_object()</refname> - <refpurpose>Este retorna una referencia para un objeto registrado.</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Este es útil dentro de una función habitual cuando usted - necesita acesar directamente a un - <link linkend="api.register.object">objeto registrado</link>. - Ver <link linkend="advanced.features.objects">objects</link> para mas - información; - </para> - <example> - <title>get_registered_object()</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, &$smarty) -{ - if (isset($params['object'])) { - // get reference to registered object - $obj_ref = &$smarty->get_registered_object($params['object']); - // use $obj_ref is now a reference to the object - } -} -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.register.object">register_object()</link>, - <link linkend="api.unregister.object">unregister_object()</link> - y - <link linkend="advanced.features.objects">objects section</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>get_template_vars()</refname> - <refpurpose>Retorna el valor asignado a una variable</refpurpose> - </refnamediv> - <refsect1> - <title>descripción</title> - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Si no tiene un parámetro dado, un arreglo de todas las variables - <link linkend="api.assign">asignadas</link> es retornado. - </para> - <example> - <title>get_template_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// get assigned template var 'foo' -$foo = $smarty->get_template_vars('foo'); - -// get all assigned template vars -$tpl_vars = $smarty->get_template_vars(); - -// take a look at them -print_r($tpl_vars); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.assign">assign()</link>, - <link linkend="language.function.assign">{assign}</link>, - <link linkend="api.assign.by.ref">assign_by_ref()</link>, - <link linkend="api.append">append()</link>, - <link linkend="api.clear.assign">clear_assign()</link>, - <link linkend="api.clear.all.assign">clear_all_assign()</link> - y - <link linkend="api.get.config.vars">get_config_vars()</link> - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.is.cached"> - <refnamediv> - <refname>is_cached()</refname> - <refpurpose>Retorna true si hay cache valido para ese template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Esto solamente funciona si <link linkend="variable.caching"> - caching</link> está asignado a true. - ver también <link linkend="caching">caching section</link>. - </para> - <example> - <title>is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl")) { -// do database calls, assign vars here -} - -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - </example> - <para> - Usted también puede pasar un identificador de $cache como un - segundo parámetro opcional en el caso que usted quiera - <link linkend="caching.multiple.caches">multiples caches</link> - para el template dado. - </para> - <para> - Usted puede proporcionar el identidicador como un tercer parametro - opcional. Si usted omite ese parametro la persistencia del - <link linkend="variable.compile.id">$compile_id</link> es usada. - </para> - <para> - Si usted no quiere pasar el - <link linkend="variable.compile.id">identificador de cache</link> - solamente quiere pasar el compile id debe pasar <literal>null</literal> - como el identidficador de cache. - </para> - <example> - <title>is_cached() con templates con multiple-cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // do database calls, assign vars here -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - </programlisting> - </example> - - - <note> - <title>Nota técnica</title> - <para> - Si <literal>is_cached</literal> retorna true el carga actualmente - la salida del cache y lo guarda internamente. cualquier subsecuente - llama a <link linkend="api.display">display()</link> o - <link linkend="api.fetch">fetch()</link> y retorna este internamente - guardando la salida y no intenta volver a cargar el archivo del cache. - Esto previene una condicion de la carrera que puede ocurrir cuando un - segundo proceso limpie el cache entre las llamadas a is_cached mostradas - en el ejemplo de arriba. Esto significa tambien llamar al - <link linkend="api.clear.cache">clear_cache()</link> y otros cambios - en el cache-settings que no tiene efecto despues que - <literal>is_cached</literal> retorna true. - </para> - </note> - <para> - Ver también - <link linkend="api.clear.cache">clear_cache()</link>, - <link linkend="api.clear.all.cache">clear_all_cache()</link>, - y - <link linkend="caching">caching section</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.load.filter"> - <refnamediv> - <refname>load_filter()</refname> - <refpurpose>Carga un filtro de plugin</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - El primer argumento especifíca el tipo de filtro a cargar y puede - ser uno de los siguientes: 'pre', 'post', o 'output'. El segundo - argumento especifíca el nombre del filtro del plugin, por ejemplo, - 'trim'. - </para> - <example> - <title>loading filter plugins</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->load_filter('pre', 'trim'); // load prefilter named 'trim' -$smarty->load_filter('pre', 'datefooter'); // load another prefilter named 'datefooter' -$smarty->load_filter('output', 'compress'); // load output filter named 'compress' -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.register.prefilter">register_prefilter()</link>, - <link linkend="api.register.postfilter">register_postfilter()</link>, - <link linkend="api.register.outputfilter">register_outputfilter()</link>, - <link linkend="variable.autoload.filters">$autoload_filters</link> - y - <link linkend="advanced.features">Advanced features</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-block.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.block"> - <refnamediv> - <refname>register_block()</refname> - <refpurpose>Registra dinamicamente bloques de funciones de plugins </refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Use este para registrar dinámicamente bloques de funciones de - plugins. Pase el bloque de nombres de función, seguido por una - llamada de función PHP que implemente esto. - </para> - <para> - La llamada de una funcion-php <parameter>impl</parameter> - puede ser cualquier (a) cadena conteniendo el nombre de la - función o (b) un arreglo con el formato - <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo la referencia a un - objeto y <literal>$method</literal> siendo una cadena - conteniendo el nombre del método o (c) un arreglo con el - formato <literal>array(&$class, $method)</literal> con - <literal>$class</literal> siendo un nombre de clase y - <literal>$method</literal> siendo un método de esta clase. - </para> - <para> - <parameter>cacheable</parameter> y <parameter>cache_attrs</parameter> - pueden ser omitidos en la mayoria de los casos. Vea <link - linkend="caching.cacheable">Controlando modos de salida de cache de los - plugins </link> para saber como usar las propiedades. - </para> - <example> - <title>register_block()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_block('translate', 'do_translation'); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // do some translation with $content - return $translation; - } -} -?> -]]> - </programlisting> - <para> - Donde el template es: - </para> - <programlisting> -<![CDATA[ -{* template *} -{translate lang="br"} -Hello, world! -{/translate} -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.unregister.block">unregister_block()</link> - y - <link linkend="plugins.block.functions">Plugin Block Functions</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-compiler-function.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.compiler.function"> - <refnamediv> - <refname>register_compiler_function</refname> - <refpurpose>Registra dinamicamente un plugin de una funcion compiladora</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Pase el nombre de la - <link linkend="plugins.compiler.functions">función compiladora</link>, - seguido por la función PHP que implemente esto. - </para> - <para> - La llamada a la funcion-php <parameter>impl</parameter> puede ser - </para> - <orderedlist numeration="loweralpha"> - <listitem> - <para> - a una cadena conteniendo el nombre de la función - </para> - </listitem><listitem> - <para>un arreglo con la forma <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo una referencia para un objeto y - <literal>$method</literal> siendo una cadena conteniendo el nombre del método - </para> - </listitem><listitem> - <para>un arreglo con la forma - <literal>array(&$class, $method)</literal> con - <literal>$class</literal> siendo el nombre de una clase y - <literal>$method</literal> siendo el método de esta clase. - </para> - </listitem> - </orderedlist> - <para> - <parameter>cacheable</parameter> puede ser omitido en la mayoria de los casos. - Vea <link linkend="caching.cacheable">Controlando modos de Salida de - Cache de los Plugins</link> para obtener mayor información. - </para> -<para> -Ver también <link linkend="api.unregister.compiler.function">unregister_compiler_function() </link> -y <link linkend="plugins.compiler.functions">Plugin Compiler Functions</link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-function.xml
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function()</refname> - <refpurpose>Registra dinamicamente un plugin de función para un template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Pase en el template el nombre de la función, seguido - por el nombre de la función PHP que implementa esto. - </para> - <para> - La llamada a la funcion-php <parameter>impl</parameter> puede ser: - </para> - <orderedlist numeration="loweralpha"> - <listitem> - <para> - a una cadena conteniendo el nombre de la función o - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo una referencia para un objeto y - <literal>$method</literal> siendo una cadena conteniendo el nombre del método - </para> - </listitem><listitem> - <para> - un arreglo con la forma <literal>array(&$class, $method)</literal> - con <literal>$class</literal> siendo el nombre de una clase y - <literal>$method</literal> siendo un metodo de esa clase. - </para> - </listitem> - </orderedlist> - - <para> - <parameter>cacheable</parameter> y <parameter>cache_attrs</parameter> pueden ser omitidos - en la mayoria de los caasos. - Vea <link linkend="caching.cacheable">Controlando modos de Salida Cache de - los Plugins</link> para obtener mayores informes. - </para> - <example> - <title>register_function()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_function('date_now', 'print_current_date'); - -function print_current_date($params, &$smarty) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} -?> -]]> - </programlisting> - <para> - y en el template - </para> -<programlisting> -<![CDATA[ -{date_now} - -{* or to format differently *} -{date_now format="%Y/%m/%d"} -]]> -</programlisting> -</example> - -<para> -Ver también <link linkend="api.unregister.function">unregister_function()</link> -y <link linkend="plugins.functions">Plugin functions</link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-modifier.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.modifier"> - <refnamediv> - <refname>register_modifier()</refname> - <refpurpose>mofidica dinámicamente plugins registrados</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Pase en el template el nombre del modificador, seguido de la - función PHP que implemente esto. - </para> - <para> - La llamada de la funcion-php <parameter>impl</parameter> puede ser - </para> - <orderedlist numeration="loweralpha"> - <listitem> - <para>una cadena conteniendo el nombre de la función - </para> - </listitem><listitem> - <para>un arreglo con la forma <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo una referencia para un objeto y - <literal>$method</literal> siendo una cadena conteniendo el nombre de un metodo - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$class, $method)</literal> con - <literal>$class</literal> siendo el nombre de una clase y - <literal>$method</literal> siendo un metodo de esta clase. - </para> - </listitem> - </orderedlist> - <example> - <title>register_modifier()</title> -<programlisting role="php"> -<![CDATA[ -<?php - -// let's map PHP's stripslashes function to a Smarty modifier. -$smarty->register_modifier('sslash', 'stripslashes'); - -?> -]]> -</programlisting> -<para>template</para> -<programlisting> -<![CDATA[ -<?php -{* use 'sslash' to strip slashes from variables *} -{$var|sslash} -?> -]]> -</programlisting> - - </example> - <para> - Ver También - <link linkend="api.unregister.modifier">unregister_modifier()</link>, - <link linkend="api.register.function">register_function()</link>, - <link linkend="language.modifiers">modifiers</link>, - <link linkend="plugins">Extending Smarty with plugins</link> - y - <link linkend="plugins.modifiers">Creating Plugin modifiers</link>, - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.object"> - <refnamediv> - <refname>register_object()</refname> - <refpurpose>Registr un objeto para usar en el template</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Vea <link linkend="advanced.features.objects">object section</link> para ejemplos. - </para> - <para> - Vea también - <link linkend="api.get.registered.object">get_registered_object()</link>, - y - <link linkend="api.unregister.object">unregister_object()</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-outputfilter.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter()</refname> - <refpurpose>Registra dinamicamente filtros de salida</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Use este para registrar dinámicamente <link - linkend="plugins.outputfilters">filtros de salida</link> para - operaciones en la <link linkend="api.display">salida</link> - del template antes de mostrarlo. - Vea <link linkend="advanced.features.outputfilters">Filtros de - Salida de Templates</link> para mayores informes de como - configurar una función de filtro de salida. - </para> - <para> - La llamada de la funcion-php <parameter>function</parameter> puede ser - </para> - <orderedlist numeration="loweralpha"> - <listitem> - <para> - una cadena conteniendo un nombre de función - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo referencia a un objeto y - <literal>$method</literal> siendo una cadena conteniendo el nombre de un metodo - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$class, $method)</literal> con - <literal>$class</literal> siendo el nombre de la clase y - <literal>$method</literal> siendo un método de esta clase. - </para> - </listitem> - </orderedlist> -<para> -Vea también -<link linkend="api.unregister.outputfilter">unregister_outputfilter()</link>, -<link linkend="api.register.prefilter">register_prefilter()</link>, -<link linkend="api.register.postfilter">register_postfilter()</link>, -<link linkend="api.load.filter">load_filter()</link>, -<link linkend="variable.autoload.filters">$autoload_filters</link> -y -<link linkend="advanced.features.outputfilters">template output filters</link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-postfilter.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter()</refname> - <refpurpose>Resgistr dinamicamente postfiltros</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Use esto para registrar dinámicamente <link - linkend="advanced.features.postfilters">postfiltros</link> para - correr templates directos después de ser compilados. - Vea <link linkend="advanced.features.postfilters">postfiltros - de template</link> para mayores informes de como configurar - funciones de postfiltering. - </para> - <para> - La llamada de la funcion-php <parameter>function</parameter> puede ser: - </para> - <orderedlist numeration="loweralpha"> - <listitem> - <para> - una cadena conteniendo un nombre de función - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo una referencia para un - objeto y <literal>$method</literal> siendo una cadena conteniendo - el nombre de un método - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$class, $method)</literal> con - <literal>$class</literal> siendo un nombre de clase y - <literal>$method</literal> siendo un método de esta clase. - </para> - </listitem> - </orderedlist> - <para> - Vea También - <link linkend="api.unregister.postfilter">unregister_postfilter()</link>, - <link linkend="api.register.prefilter">register_prefilter()</link>, - <link linkend="api.register.outputfilter">register_ouputfilter()</link>, - <link linkend="api.load.filter">load_filter()</link>, - <link linkend="variable.autoload.filters">$autoload_filters</link> - y <link linkend="advanced.features.outputfilters">template output filters</link>. -</para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-prefilter.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter()</refname> - <refpurpose>Registra dinamicamente prefiltros</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Use esto para registrar - <link linkend="advanced.features.prefilters">prefiltros</link> - dinámicamente para correr templates antes de que estos sean compilados. - Vea <link linkend="advanced.features.prefilters">template prefilters</link> - para mayores informes de como configurar una función de prefiltering. - </para> - <para> - La llamada de la funcion-php <parameter>function</parameter> puede ser: - </para> - <orderedlist numeration="loweralpha"> - <listitem> - <para> - una cadena conteniendo un nombre de función - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$object, $method)</literal> con - <literal>&$object</literal> siendo una referencia para un - objeto y <literal>$method</literal> siendo una cadena conteniendo - el nombre de un método - </para> - </listitem><listitem> - <para> - un arreglo con la forma - <literal>array(&$class, $method)</literal> con - <literal>$class</literal> siendo un nombre de clase y - <literal>$method</literal> siendo un método de esta clase. - </para> - </listitem> - </orderedlist> - - <para> - Ver también - <link linkend="api.unregister.prefilter">unregister_prefilter()</link>, - <link linkend="api.register.postfilter">register_postfilter()</link>, - <link linkend="api.register.outputfilter">register_ouputfilter()</link>, - <link linkend="api.load.filter">load_filter()</link>, - <link linkend="variable.autoload.filters">$autoload_filters</link> - y <link linkend="advanced.features.outputfilters">template output filters</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource</refname> - <refpurpose>Registra dinamicamente un plugin de recurso</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Use esto para registrar dinámicamente un - <link linkend="template.resources">recurso de plugin</link> con Smarty. - Pase el nombre o el recurso y o el arreglo de funciones que implementa - esto. Vea <link linkend="template.resources">template resources</link> - para mayor información de como configurar una función para mandar llamar - templates. - </para> - <note> - <title>Nota técnica</title> - <para> - El nombre del recurso debe tener al menos dos caracteres de largo. - Un nombre de recurso de un carácter será ignorado y usado como parte - del path del archivo como, $smarty->display('c:/path/to/index.tpl'); - </para> - </note> - <para> - La php-funcion-array <parameter>resource_funcs</parameter> debe tener - 4 o 5 elementos. Con 4 elementos los elementos son las llamadas para - las respectivas funciones de recurso "source", "timestamp", "secure" - y "trusted". Con 5 elementos el primer elemento - tiene que ser un objeto por referencia o un nombre de clase del objeto - o una clase implementando el recurso y los 4 elementos siguientes tiene - que ser los nombres de los métodos implementando "source", "timestamp", - "secure" y "trusted". - </para> - <example> - <title>register_resource</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_resource('db', array('db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted')); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.unregister.resource">unregister_resource()</link> - y <link linkend="template.resources">template resources</link> -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.template.exists"> - <refnamediv> - <refname>template_exists()</refname> - <refpurpose>Verifica si el template especificado existe</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Este puede aceptar un path para el template en el filesystem o un recurso de - cadena especificando el template. - </para> - <example> - <title>template_exists()</title> - <para> - Este ejemplo utiliza $_GET['page'] este incluye el contenido del template. Si el - template no existe entonces un error de pagina es deplegado en su lugar. - </para> - <para> - El <filename>page_container.tpl</filename> - </para> - <programlisting role="php"> -<![CDATA[ -<html> -<head><title>{$title}</title></head> -<body> -{include file='page_top.tpl'} - -{* include middle content page *} -{include file=$page_mid} - -{include file='page_footer.tpl'} -</body> -]]> - </programlisting> - <para> - y el script PHP - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// set the filename eg index.inc.tpl -$mid_template = $_GET['page'].'.inc.tpl'; - -if( !$smarty->template_exists($mid_template) ){ - $mid_template = 'page_not_found.inc.tpl'; -} -$smarty->assign('page_mid', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.display">display()</link>, - <link linkend="api.fetch">fetch()</link>, - <link linkend="language.function.include">{include}</link> - y <link linkend="language.function.insert">{insert}</link> - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-trigger-error.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error</refname> - <refpurpose>Despliega un mensaje de error</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción </title> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Esta función puede ser usada para la salida de un mensaje de error - usando Smarty. El parámetro <parameter>level</parameter> es uno de - los valores usados para la función de php - <ulink url="&url.php-manual;trigger_error">trigger_error()</ulink>, - ex.: E_USER_NOTICE, E_USER_WARNING, etc. - Por default es E_USER_WARNING. - </para> - <para> - Ver también - <link linkend="variable.error.reporting">$error_reporting</link>, - <link linkend="chapter.debugging.console">debugging</link> - y - <link linkend="smarty.php.errors">Troubleshooting</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-block.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block</refname> - <refpurpose>Des-registra dinamicamente un plugin de bloque de funciones</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción</title> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Use esto para des-registrar dinámicamente un - <link linkend="plugins.block.functions">bloque de funciones de plugin</link>. - Pase en el bloque el <parameter>nombre</parameter> de la función. - </para> - <para> - Ver también - <link linkend="api.register.block">register_block()</link> - y - <link linkend="plugins.block.functions">Block Functions Plugins</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-compiler-function.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function()</refname> - <refpurpose>des-registrar dinámicamente una función de compilación</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Pase el <parameter>nombre</parameter> de la función compiladora. - </para> - <para> - Ver también <link linkend="api.register.compiler.function">register_compiler_function() </link> - y <link linkend="plugins.compiler.functions">Plugin Compiler Functions</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-function.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function()</refname> - <refpurpose>des-registrar dinámicamente una función de plugin del template</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Pase en el template el nombre de la función. - </para> - <example> - <title>unregister_function()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// nosotros no queremos que el diseñador del template tenga acceso a -// nuestros archivos de sistema - -$smarty->unregister_function("fetch"); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.register.function">register_function() </link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-modifier.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.modifier"> - <refnamediv> - <refname>unregister_modifier()</refname> - <refpurpose>des-registrar dinámicamente un modificador de plugin</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Pase en el template el nombre del modificador. - </para> - <example> - <title>unregister_modifier()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// nosotros no queremos que el diseñador de template use strip tags -// para los elementos - -$smarty->unregister_modifier("strip_tags"); -?> -]]> - </programlisting> - </example> - <para> - Ver también <link linkend="api.register.modifier">register_modifier()</link> - y <link linkend="plugins.modifiers">Plugin modifiers</link>, - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregister_object()</refname> - <refpurpose>Des-registra dinamicamente un objeto</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Ver también <link linkend="api.register.object">register_object()</link> - y <link linkend="advanced.features.objects">objects section</link> - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-outputfilter.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter()</refname> - <refpurpose>des-registra dinámicamente un filtro de salida</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Use este para des-registrar dinámicamente un filtro de salida. - </para> - <para> - Ver también <link linkend="api.register.outputfilter">register_outputfilter()</link> - y <link linkend="advanced.features.outputfilters">template output filters</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-postfilter.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter()</refname> - <refpurpose>Des-registra dinamicamente un postfiltro</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Ver también - <link linkend="api.unregister.postfilter">register_postfilter()</link> - y <link linkend="plugins.prefilters.postfilters">template post filters</link>. -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-prefilter.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter()</refname> - <refpurpose>Des-registra dinamicamente un prefiltro</refpurpose> - </refnamediv> - <refsect1> - <title>Descripción </title> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Ver también - <link linkend="api.register.prefilter">register_prefilter()</link> - y <link linkend="plugins.prefilters.postfilters">pre filters</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource()</refname> - <refpurpose>Des-registra dinamicamente un plugin de recurso</refpurpose> - </refnamediv> - <refsect1> - <title> Descripción</title> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Pase en el parámetro el nombre del recurso. - </para> - <example> - <title>unregister_resource()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->unregister_resource("db"); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="api.register.resource">register_resource()</link> - y - <link linkend="template.resources">template resources</link> -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="api.variables"> - <title>Clase Variables de Smarty</title> - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - Si existe algun filtro que usted desea cargar en cada llamada de - template, usted puede especificar cual variable usar y el Smarty - ira automáticamente a cargarlos para usted. La variable es un - arreglo asociativo donde las llaves son tipos de filtro y los - valores son arreglos de nombres de filtros. - Por ejemplo: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - </programlisting> - </informalexample> - </para> - <para> - Ver también - <link linkend="api.register.outputfilter">register_outputfilter()</link>, - <link linkend="api.register.prefilter">register_prefilter()</link>, - <link linkend="api.register.postfilter">register_postfilter()</link> - y - <link linkend="api.load.filter">load_filter()</link> - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - Este es el nombre del directorio donde los caches del template - son almacenados. Por default es - <filename class="directory">"./cache"</filename>, esto significa que - buscara el directorio de cache en el mismo directorio que ejecuta - el scripts PHP. - <emphasis role="bold">Este directorio debe ser regrabable por el - servidor web</emphasis> - (<link linkend="installing.smarty.basic">ver intalación</link>). - Usted puede usar también su propia - <link linkend="section.template.cache.handler.func">función habitual - de mantenimiento</link> de cache para manipular los archivos de cache, que - ignorará está configuración. - Ver tambien <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>. - </para> - - <note> - <title>Nota Técnica</title> - <para> - Esta configuración debe ser cualquiera de estas dos, un path - relativo o absoluto. include_path no es usado para escribir archivos. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - No es recomendado colocar este directorio bajo el directorio - document root del servidor web. - </para> - </note> - <para> - Ver también - <link linkend="variable.caching">$caching</link>, - <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>, - <link linkend="variable.cache.lifetime">$cache_lifetime</link>, - <link linkend="variable.cache.handler.func">$cache_handler_func</link>, - <link linkend="variable.cache.modified.check">$cache_modified_check</link> - y <link linkend="caching">Caching section</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - Usted puede proporcionar una función por default para manipular - archivos de cache en vez de usar el metodo incrustado usando el - <link linkend="variable.cache.dir">$cache_dir</link>. - Para mas detalles vea la sección - <link linkend="section.template.cache.handler.func"> - cache handler function section</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - Este es la duración del tiempo en segundos que un cache de template - es valido. Una vez que este tiempo está expirado, el cache sera - regenerado. $caching debe ser asignado a "true" para $cache_lifetime - hasta tener algún propósito. Un valor de -1 forza el cache a nunca - expirar. Un valor de 0 forzara a que el cache sea siempre regenerado - (bueno solo para probar, el método mas eficiente para desabilitar cache - es asignar <link linkend="variable.caching">$caching</link> = false.) - </para> - <para> - Si <link linkend="variable.force.compile">$force_compile</link> - está habilitado, los archivos de cache serán regenerados todo el - tiempo, efectivamente desabilitando caching. Usted puede limpiar - todos los archivos de cache con la función - <link linkend="api.clear.all.cache">clear_all_cache()</link>, - o archivos individuales de cache (o grupos) con la función - <link linkend="api.clear.cache">clear_cache()</link>. - </para> - <note> - <title>Nota Técnica</title> - <para> - Si usted quisiera dar a ciertos templates su propio tiempo de - vida de cache, usted puede hacer esto asignando - <link linkend="variable.caching">$caching</link> = 2, entonces - determina $cache_lifetime a un único valor justo antes de llamar - <link linkend="api.display">display()</link> - o <link linkend="api.fetch">fetch()</link>. - </para> - </note> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.modified.check"> - <title>$cache_modified_check</title> - <para> - Si es asignado true, Smarty respetara el If-Modified-Since - encabezado enviado para el cliente. Si el timestamp del - archivo de cache no fue alterado desde la ultima visita, - entonces un encabezado "304 Not Modified" sera enviado en - vez del contenido. - Esto funciona solamente en archivos de cache sin etiquetas - <link linkend="language.function.insert"><command>{insert}</command></link>. - </para> - <para> - Ver también - <link linkend="variable.caching">$caching</link>, - <link linkend="variable.cache.lifetime">$cache_lifetime</link>, - <link linkend="variable.cache.handler.func">$cache_handler_func</link>, - y - <link linkend="caching">Caching section</link>. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.caching"> - <title>$caching</title> - <para> - Este informa al Smarty si hay o no salida de cache para el template - en el <link linkend="variable.cache.dir">$cache_dir</link>. - Por default tiene asignado 0, o desabilitado. Si su template genera - contenido redundante, es necesario ligar el $caching. Esto tendra un - benefico significativo en el rendimiento. Usted puede tener - <link linkend="caching.multiple.caches">multiples</link> caches para el mismo template. - Un valor de 1 o 2 caching habilitados. - 1 anuncia a Smarty para usar la variable actual - <link linkend="variable.cache.lifetime">$cache_lifetime</link> hasta - determinar si el cache expiro. Un valor 2 anuncia a Smarty para usar - el valor <link linkend="variable.cache.lifetime">$cache_lifetime</link> - al tiempo en que le cache fue generado. - De esta manera usted puede determinar el <link - linkend="variable.cache.lifetime">$cache_lifetime</link> inmediatamente - antes de <link linkend="api.fetch">buscar</link> el template para tener - el control cuando este cache en particular expira. - Vea también <link linkend="api.is.cached">is_cached()</link>. - </para> - <para> - Si <link linkend="variable.compile.check">$compile_check</link> está habilitado, - el contenido del cache se regenerara si alguno de los dos templates o archivos - de configuración que son parte de este cache estuviera modificado. - Si <link linkend="variable.force.compile">$force_compile</link> está habilitado, - el contenido del cache siempre sera regenerado. - </para> - -<para> - Ver También - <link linkend="variable.cache.dir">$cache_dir</link>, - <link linkend="variable.cache.lifetime">$cache_lifetime</link>, - <link linkend="variable.cache.handler.func">$cache_handler_func</link>, - <link linkend="variable.cache.modified.check">$cache_modified_check</link> -y <link linkend="caching">Caching section</link>. -</para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - En cada llamada de la aplicación PHP, Smarty prueba para ver si el - template actual fue modificado (diferentes time stamp) desde la - ultima compilación. Si este fue modificado, se recompilara el template. - Si el template no fue compilado, este ira a compilar de cualquier - manera esa configuración. Por default esta variable es determinada como - true. Una vez que la aplicación esta en producción (los templates no - seran modificados), el paso compile_check no es necesario. asegurese de - determinar $compile_check a "false" para un mejor funcionamiento. - Note que si usted modifica está para "false" y el archivo de template - está modificado, usted *no* vera los cambios desde el template hasta que - no sea recompilado. Si el <link linkend="variable.caching">caching</link> - esta habilitado y compile_check está habilitado, entonces los archivos de - cache tienen que ser regenerados si el archivo de template es muy complejo - o el archivo de configuración fue actualizado. - vea <link linkend="variable.force.compile">$force_compile</link> - o <link linkend="api.clear.compiled.tpl">clear_compiled_tpl()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - Ese es el nombre del directorio donde los templates compilados - están localizados, Por default están en - <filename class="directory">"./templates_c"</filename> , esto - significa que lo buscara en el directorio de templates en el - mismo directorio que esta ejecutando el script php. - <emphasis role="bold">Este directorio debe tener permiso de - escritura para el servidor web</emphasis> - (<link linkend="installing.smarty.basic">ver la instalación</link>). - también <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>. - - </para> - <note> - <title>Nota Técnica</title> - <para> - Esa configuración debe ser un path relativo o un path - absoluto. include_path no se usa para escribir archivos. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - No es recomendado colocar este directorio bajo el directorio - document root de su servidor web. - </para> - </note> - <para> - Ver también <link linkend="variable.compile.id">$compile_id</link> - y <link linkend="variable.use.sub.dirs">$use_sub_dirs</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Identificador de compilación persistente. Como una alternativa - para pasar el mismo compile_id a cada llamada de función, usted - puede asignar este compile_id y este será usado implicitamente - después. - </para> - <para> - Con el compile_id usted puede trabajar con limitacion porque usted - no puede usar el mismo - <link linkend="variable.compile.dir">$compile_dir</link> - para diferentes - <link linkend="variable.template.dir">$template_dirs</link>. - Si usted asigna distintos compile_id para cada template_dir entonces - Smarty puede hacer la compilacion de los templates por cada compile_id. - </para> - <para> - Si usted tiene por ejemplo un - <link linkend="plugins.prefilters.postfilters">prefilter</link> - este localiza su template (es decir: traduce al lenguaje las dependencias por partes) - y lo compila, entonces usted debe usar el lenguaje actual como $compile_id - y usted obtendrá un conjunto de plantillas compiladas para cada idioma que usted utilice. - </para> - <para> - otro ejemplo puede ser si usa el mismo directorio para compilar - multiples dominios / multiples host virtuales. - </para> - <example> - <title>$compile_id</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = 'path/to/shared_compile_dir'; - -?> -]]> - </programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Especifica el nombre del compilador de clases que Smarty usara - para compilar los templates. El default es 'Smarty_Compiler'. - Solo para usuarios avanzados. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - Si es asignado true, los valores del archivo de configuración de - on/true/yes y off/false/no se convierten en valores booleanos - automáticamente. De esta forma usted puede usar los valores en un - template como: {if #foobar#} ... {/if}. Si foobar estuviera on, - true o yes, la condición {if} se ejecutara. true es el default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - Este es el directorio usado para almacenar - <link linkend="config.files">archivos de configuración</link> - usados en los templates. - El default es <filename class="directory">"./configs"</filename>, - esto significa que lo buscara en el directorio de templates en - el mismo directorio que esta ejecutando el script php. - </para> - <note> - <title>Nota Técnica</title> - <para> - No es recomendado colocar este directorio bajo el directorio - document root de su servidor web. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-config-fix-newlines.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.fix.newlines"> - <title>$config_fix_newlines</title> - <para> - Si es asignado true, mac y dos newlines (\r y \r\n) en el archivo de - configuración seran convertidos a \n cuando estos fueran interpretados. - true es el defaut. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - Si es asignado true, las variables leidas en el - <link linkend="config.files">archivo de configuración</link> se - sobreescribiran unas a otras. De lo contrario, las variables seran - guardadas en un arreglo. Esto es útil si usted quiere almacenar - arreglos de datos en archivos de configuración, solamente lista - tiempos de cada elemento múltiplo. true por default. - </para> - <example> - <title>Arreglo de variables de configuración</title> - <para> - Este ejemplo utiliza - <link linkend="language.function.cycle">{cycle}</link> para - la salida a una tabla alternando colores por renglon rojo/verde/azul - con $config_overwrite = false. - </para> - <para>El archivo de configuración.</para> - <programlisting> -<![CDATA[ -# row colors -rowColors = #FF0000 -rowColors = #00FF00 -rowColors = #0000FF -]]> - </programlisting> - <para> - El template con ciclo - <link linkend="language.function.section">{section}</link>. - </para> - <programlisting> -<![CDATA[ -<table> - {section name=r loop=$rows} - <tr bgcolor="{cycle values=#rowColors#}"> - <td> ....etc.... </td> - </tr> - {/section} -</table> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="language.function.config.load">{config_load}</link>, - <link linkend="config.files">config files</link>, - <link linkend="api.get.config.vars">get_config_vars()</link>, - <link linkend="api.clear.config">clear_config()</link> - y - <link linkend="api.config.load">config_load()</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - Si es asignado true, esconde secciones (nombres de secciones comenzando con - un periodo) en el <link linkend="config.files">archivo de configuración</link> - pueden ser leidos del template. Tipicamente desearia esto como false, de esta - forma usted puede almacenar datos sensibles en el archivo de configuración - como un parámetro de base de datos y sin preocuparse que el template los carge. - false es el default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-debug-tpl.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.debug.tpl"> - <title>$debug_tpl</title> - <para> - Este es el nombre del archivo de template usado para el debug de la - consola. Por default, es nombrado <filename>debug.tpl</filename> y esta - localizado en el <link linkend="constant.smarty.dir">SMARTY_DIR</link>. - </para> - <para> - Ver también - <link linkend="variable.debugging">$debugging</link> - y - <link linkend="chapter.debugging.console">Debugging console</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - Esto permite rutas alternativas para habilitar el debug. - NONE no significa que métodos alternativos son permitidos. - URL significa cuando la palabra SMARTY_DEBUG fue encontrada - en el QUERY_STRING, que el debug está habilitado para la - llamada del script. Si - <link linkend="variable.debugging">$debugging</link> es true, - ese valor es ignorado. - </para> - <para> - Ver también <link linkend="chapter.debugging.console">Debugging console</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - Este habilita el - <link linkend="chapter.debugging.console">debugging console</link>. - La consola es una ventana de javascript que informa a usted - sobre los archivos del template incluidos y las variables - destinadas a la pagina del template actual. - </para> - <para> - Ver también - <link linkend="language.function.debug">{debug}</link>, - <link linkend="variable.debug.tpl">$debug_tpl</link>, - y <link linkend="variable.debugging.ctrl">$debugging_ctrl</link> - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - Este es un arreglo de modificadores implicitamente aplicados para cada - variable en el template. Por Ejemplo, cada variable HTML-escape por - default, usa el arreglo('escape:"htmlall"'); Para hacer que las variables - excenten los modificadores por default, pase el modificador especial - "smarty" con un valor de parámetro "nodefaults" modificando esto, tal - como {$var|smarty:nodefaults}. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - Este anuncia a Smarty el tipo de recurso a usar implicitamente. - El valor por default es 'file', significa que - $smarty->display('index.tpl'); y - $smarty->display('file:index.tpl'); son identicos en el significado. - Para mas detalles vea el capitulo <link linkend="template.resources">resource</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - Esta función es llamada cuando un template no puede ser obtenido - desde su recurso. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - Cuando este valor es asignado a non-null-value este valor es - usado como un nivel - <ulink url="&url.php-manual;error_reporting">error_reporting</ulink> - dentro de display() y fetch(). - Cuando <link linkend="chapter.debugging.console">debugging</link> es - habilitado este valor es ignorado y el error-level no es tocado. - </para> - <para> - Ver también - <link linkend="api.trigger.error">trigger_error()</link>, - <link linkend="chapter.debugging.console">debugging</link> - y - <link linkend="troubleshooting">Troubleshooting</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - Este forza al Smarty a (re)compilar templates en cada llamada. - Esta configuración sobrescribe - <link linkend="variable.compile.check">$compile_check</link>. - Por default este - es desabilitado. Es útil para el desarrollo y - <link linkend="chapter.debugging.console">debug</link>. - Nunca debe ser usado en ambiente de producción. Si el - <link linkend="variable.caching">cache</link> esta habilitado, - los archivo(s) de cache seran regenerados todo el tiempo. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - Este es el delimitador izquierdo usado por el lenguaje de template. - El default es "{". - </para> - <para> - Ver también <link linkend="variable.right.delimiter">$right_delimiter</link> - y <link linkend="language.escaping">escaping smarty parsing</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - Este informa al Smarty como manipular códigos PHP contenidos en los - templates. Hay cuatro posibles configuraciones, siendo el default - SMARTY_PHP_PASSTHRU. Observe que esto NO afectara los códigos php - dentro de las etiquetas - <link linkend="language.function.php">{php}{/php}</link> en el template. - </para> - <itemizedlist> - <listitem><para>SMARTY_PHP_PASSTHRU - Smarty echos tags as-is.</para></listitem> - <listitem><para>SMARTY_PHP_QUOTE - Smarty abre comillas a las etiquetas - de entidades html.</para></listitem> - <listitem><para>SMARTY_PHP_REMOVE - Smarty borra las etiquetas del - template.</para></listitem> - <listitem><para>SMARTY_PHP_ALLOW - Smarty ejecuta las etiquetas como - código PHP.</para></listitem> - </itemizedlist> - <note> - <para> - Incrustar codigo PHP dentro del template es sumamente desalentador. - Use <link linkend="language.custom.functions">custom functions</link> - o <link linkend="language.modifiers">modifiers</link> en vez de eso. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - Este es el directorio (o directorios) donde Smarty procurara ir - a buscar los plugins que sean necesarios. - El default es <filename class="directory">"plugins"</filename> - bajo el <link linkend="constant.smarty.dir">SMARTY_DIR</link>. - Si usted proporciona un path relativo, Smarty procurara ir primero - bajo el <link linkend="constant.smarty.dir">SMARTY_DIR</link>, - Entonces relativo para el cwd(current working directory), - Entonces relativo para cada entrada de su PHP include path. - Si $plugins_dir es un arreglo de directorios, Smarty buscara los - plugins para cada directorio de plugins en el orden en el que fueron - proporcionados. - </para> - <note> - <title>Nota Técnica</title> - <para> - Para un mejor funcionamiento, no configure su plugins_dir para que - use el include path PHP. Use un path absoluto, o un path relativo - para SMARTY_DIR o el cwd (current working directory). - </para> - </note> - <example> - <title>multiple $plugins_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - </programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-request-use-auto-globals.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.request.use.auto.globals"> - <title>$request_use_auto_globals</title> - <para> - Especifica si el Smarty debe usar variables globales del php - $HTTP_*_VARS[] ($request_use_auto_globals=false valor por default) - o $_*[] ($request_use_auto_globals=true). Esto afecta a los templates - que hacen uso de - <link linkend="language.variables.smarty">{$smarty.request.*}, {$smarty.get.*}</link> etc. . - Atención: Si usted asigna $request_use_auto_globals a true, - <link linkend="variable.request.vars.order">variable.request.vars.order </link> - no tendran efecto los valores de configuracion de php - <literal>gpc_order</literal> sera usados. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-request-vars-order.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.request.vars.order"> - <title>$request_vars_order</title> - <para> - El orden en el cual las variables requeridas seran registradas, - similar al variables_order en el php.ini - </para> - <para> - Ver también <link linkend="language.variables.smarty">$smarty.request</link> - y <link linkend="variable.request.use.auto.globals">$request_use_auto_globals</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - Este es el delimitador derecho usado por el lenguaje de template. - El default es "}". - </para> - <para> - ver también <link linkend="variable.left.delimiter">$left_delimiter</link> - y <link linkend="language.escaping">escaping smarty parsing</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-secure-dir.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.secure.dir"> - <title>$secure_dir</title> - <para> - Este es un arreglo de todos los directorios locales que son - considerados seguros. - <link linkend="language.function.include">{include}</link> y - <link linkend="language.function.fetch">{fetch}</link> usan estos (directorios) - cuando <link linkend="variable.security">security está habilitada</link>. - </para> -<para> - Ver también - <link linkend="variable.security.settings">Security settings</link>, - y <link linkend="variable.trusted.dir">$trusted_dir</link>. -</para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-security-settings.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.security.settings"> - <title>$security_settings</title> - <para> - Estas son usadas para cancelar o especificar configuraciones de - seguridad cuando - <link linkend="variable.security">security esta habilitado</link>. - Estas son las posibles configuraciones. - </para> - <itemizedlist> - <listitem> - <para> - PHP_HANDLING - true/false. la configuracion de - <link linkend="variable.php.handling">$php_handling</link> - no es checada por security. - </para> - </listitem> - <listitem> - <para> - IF_FUNCS - Este es un arreglo de nombres de funciones PHP - permitidas en los bloques - <link linkend="language.function.if">IF</link>. - </para> - </listitem> - <listitem> - <para> - INCLUDE_ANY - true/false. Si es asignado true, algun template - puede ser incluido para un archivo de sistema, a pesar de toda la - lista de <link linkend="variable.secure.dir">$secure_dir</link>. - </para> - </listitem> - <listitem> - <para> - PHP_TAGS - true/false. Si es asignado true, las etiquetas - <link linkend="language.function.php">{php}{/php}</link> son - permitidas en los templates. - </para> - </listitem> - <listitem> - <para>MODIFIER_FUNCS - Este es un arreglo de nombres de - funciones PHP permitidas usadas como modificadores de variables. - </para> - </listitem> - <listitem> - <para> - ALLOW_CONSTANTS - true/false. Si es asignado true, la constante a travez de - <link linkend="language.variables.smarty.const">{$smarty.const.name}</link> - es autorizada en el template. El default es asignado "false" por seguridad. - </para> - </listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-security.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.security"> - <title>$security</title> - <para> - $security true/false, el default es false. Security es bueno - para situaciones cuando usted tiene partes inconfiables editando - el template (via ftp por ejemplo) y usetd quiere reducir los - riesgos de comportamiento de seguridad del sistema a través del - lenguaje del template. Al habilitar la seguridad forza las siguientes - reglas del lenguaje del template, a menos que especifique control con - <link linkend="variable.security.settings">$security_settings</link>: - </para> - <itemizedlist> - <listitem> - <para> - Si <link linkend="variable.php.handling">$php_handling</link> está - asignado a SMARTY_PHP_ALLOW, este es implicitamente cambiado a - SMARTY_PHP_PASSTHRU - </para> - </listitem> - <listitem> - <para> - Las funciones PHP no son permitidas en sentencias - <link linkend="language.function.if">{if}</link>, - excepto quellas que esten especificadas en - <link linkend="variable.security.settings">$security_settings</link> - </para> - </listitem> - <listitem> - <para> - Los templates solo pueden ser incluidos en el - directorio listado en arreglo - <link linkend="variable.secure.dir">$secure_dir</link> - </para> - </listitem> - <listitem> - <para> - Los archivos locales solamente pueden ser traidos del - directorio listado en - <link linkend="variable.secure.dir">$secure_dir</link> usando - el arreglo <link linkend="language.function.fetch">{fetch}</link> - </para> - </listitem> - <listitem> - <para> - Estas etiquetas - <link linkend="language.function.php">{php}{/php}</link> no son permitidas - </para> - </listitem> - <listitem> - <para> - Las funciones PHP no son permitidas como modificadores, - excepto si estan especificados en el - <link linkend="variable.security.settings">$security_settings</link> - </para> - </listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - Este es el nombre por default del directorio del template. Si - usted no proporciona un tipo de recurso que incluya archivos, - entonces estos se encontraran aquí. - Por default <filename class="directory">"./templates"</filename>, - esto significa que lo buscara en el directorio del - <filename class="directory">templates</filename> en el mismo - directorio que esta ejecutando el script PHP. - </para> - <note> - <title>Nota Técnica</title> - <para> - No es recomendado colocar este directorio bajo el directorio - document root de su servidor web. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - $trusted_dir solamente es usado cuando - <link linkend="variable.security">$security</link> está habilitado. - Este es un arreglo de todos los directorios que son considerados - confiables. Los directorios confiables son de donde usted extraera - sus script PHP que son ejecutados directamente desde el template con - <link linkend="language.function.include.php">{include_php}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> - Smarty puede crear subdirectorios bajo los directorios - <link linkend="variable.compile.dir">templates_c</link> y - <link linkend="variable.cache.dir">cache</link> - si $use_sub_dirs es asignado true. - En un ambiente donde hay potencialmente decenas de miles de archivos creados, - esto puede ayudar la velocidad de sistema de archivos. - Por otro lado, algunos ambientes no permiten que procesos de PHP creen directorios, - este debe ser desabilitado. El valor por defaulr es false (disabled). - Los Sub directorios son mas eficientes, entonces aprovechelo si puede. - </para> - <para> - Teóricamente usted obtiene mayor eficiencia en sun sistema de archivos con 10 directorios - que contengan 100 archivos, que con un directorio que contenga 1000 archivos. - Este era ciertamente un caso con Solaris 7 (UFS)... con un nuevo sistema de archivos - como ext3 y un levantado especial, la diferencia es casi nula. - </para> - <note> - <title>Nota Técnica</title> - <para> - $use_sub_dirs=true doesn't trabaja con - <ulink url="&url.php-manual;features.safe-mode">safe_mode=On</ulink>, - esto es porque es switchable y porque puede estar en off por default. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - Desde Smarty-2.6.2 <varname>use_sub_dirs</varname> esta por default en false. - </para> - </note> - <para> - Ver también - <link linkend="variable.compile.dir">$compile_dir</link>, - y - <link linkend="variable.cache.dir">$cache_dir</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/caching.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="caching"> - <title>Cache</title> - <para> - Caching es usado para aumentar la velocidad de llamada de - <link linkend="api.display">display()</link> o - <link linkend="api.fetch">fetch()</link> salvando esto en un - archivo de salida. Si hay una versión de cache disponible - para la llamada, este es mostrado en vez de regresar la salida - de datos. Caching puede hacer cosas tremendamente rápidas, - especialmente templates con largo tiempo de computo. - Desde la salida de datos de - <link linkend="api.display">display()</link> o - <link linkend="api.fetch">fetch()</link> está en - cache, un archivo de cache podría ser compuesto por diversos - archivos de templates, archivos de configuración, etc. - </para> - <para> - Dado que sus templates son dinámicos, es importante tener cuidado - de como usa la cache y por cuanto tiempo. Por ejemplo, si usted esta - mostrando la pagina principal de su web site y esta no tiene cambios - muy frecuentes en su contenido, esta puede funcionar bien en la cache - por una hora o mas. por otro lado, si usted esta mostrando una pagina - con un mapa de tiempo que contenga nueva información por minuto, no - tiene sentido hacer cache nuestra página. - </para> -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.cacheable"> - <title>Controlando salida de Cacheabilidad de plugins</title> - <para> - Desde Smarty-2.6.0 los caches de plugins pueden ser declarados - o registrados. - El tercer parámetro para <link linkend="api.register.block">register_block()</link>, - <link linkend="api.register.compiler.function">register_compiler_function()</link> - y <link linkend="api.register.block">register_function()</link> es llamado - <parameter>$cacheable</parameter> y el default es true que es - también el comportamiento de plugins en la versiones anteriores - a Smarty 2.6.0. - </para> - - <para> - Cuando registre un plugin con $cacheable=false el plugin es llamado - todo el tiempo en la pagina que está siendo mostrada, aun si la - pagina viene desde el cache. - La función de plugin tiene un comportamiento parecido al de - la función <link linkend="plugins.inserts">insert</link>. - </para> - - <para> - En contraste con <link linkend="language.function.insert">{insert}</link> - el atributo para el plugin no está en cache por default. Ellos pueden ser - declarados para ser cacheados con el cuarto parámetro - <parameter>$cache_attrs</parameter>. <parameter>$cache_attrs</parameter> - es un arreglo de nombres de atributos que deben ser cacheados, entonces la - función de plugin pega el valor como si fuera el tiempo en que la pagina - fue escrita para el cache todo el tiempo este es traido desde el cache. - </para> - - <example> - <title>Previniendo que una saída de plugin de ser cacheada</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // fetch $obj from db and assign... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -Time Remaining: {remaining endtime=$obj->endtime} -]]> - </programlisting> - <para> - El número en segundos hasta el endtime del $obj este sufre cambios - en cada display de la pagina, aun si la pagina esta en cache. Desde - que el atributo endtime sea cacheado el objeto solamente tiene que - ser jalado de la base de datos cuando la pagina esta escrita en la - cache mas no en requisiciones de la pagina. - </para> - </example> - - <example> - <title>Previniendo una pasada entera del template para el cache</title> - <programlisting role="php"> -<![CDATA[ -index.php: - -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Donde index.tpl es: - </para> - <programlisting> -<![CDATA[ -Page created: {"0"|date_format:"%D %H:%M:%S"} - -{dynamic} - -Now is: {"0"|date_format:"%D %H:%M:%S"} - -... do other stuff ... - -{/dynamic} -]]> - </programlisting> - </example> - - <para> - Cuando recarga la pagina usted notara que ambas fechas son diferentes. - Una es "dinamica" y la otra es "estática". Usted puede hacer todo entre - las etiquetas {dynamic}...{/dynamic} y tener la certeza de que no sera - cacheado como el resto de la pagina. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/caching/caching-groups.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.groups"> - <title>Cache Groups</title> - <para> - Usted puede hacer agrupamientos mas elaborados configurando grupos de - cache_id. Esto se logra con la separación de cada sub-grupo con una - barra vertical "|" en el valor del cache_id. Usted puede tener tantos - sub-grupos como guste. - </para> - <para> - Usted puede pensar que los grupos de cache son parecidos a un - directorio para organizar. por ejemplo, un grupo de cache con - "a|b|b" podria pensarse como la estructura del directorio "a/b/c/". - clear_cache(null,"a|b|c") esto seria para quitar los archivos - "/a/b/c/*". clear_cache(null,"a|b") esto seria para quitar los - archivos "/a/b/*". Si usted espicifica el compile_id como - clear_cache(null,"a|b","foo") este tratara de agregarlo al grupo - de cache "/a/b/c/foo/". Si usted especifica el nombre del template - tal como clear_cache("foo.tpl","a|b|c") entonces el smarty intentara - borrar "/a/b/c/foo.tpl". - Usted no puede borrar un nombre de template especifico bajo multiples - grupos de cache como "/a/b/*/foo.tpl", el grupo de cache trabaja solo - de izquierda a derecha. Usted puede necesitar para su grupos de - templates un unico grupo de cache jerarquico para poder limpiarlos - como grupos. - </para> - <para> - El agupamiento de cache no debe ser confundido con su directorio - jerarquico del template, El agrupamiento de cache no tiene ninguna - ciencia de como sus templates son estructurados. - Por ejemplo, si usted tiene una estructura display('themes/blue/index.tpl'), - usted no puede limpiar el cache para todo bajo el diretorio "themes/blue". - Si usted quiere hacer esto, usted debe agruparlos en el cache_id, como - display('themes/blue/index.tpl','themes|blue'); Entonces usted puede - limpiar los caches para el tema azul con clear_cache(null,'themes|blue'); - </para> - <example> - <title>Grupos de cache_id</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear all caches with "sports|basketball" as the first two cache_id groups -$smarty->clear_cache(null,"sports|basketball"); - -// clear all caches with "sports" as the first cache_id group. This would -// include "sports|basketball", or "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -// clear the foo.tpl cache file with "sports|basketball" as the cache_id -$smarty->clear_cache("foo.tpl","sports|basketball"); - - -$smarty->display('index.tpl',"sports|basketball"); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.multiple.caches"> - <title>Multiples caches por pagina</title> - <para> - Usted puede tener multiples archivos de cache para una simples llamada - de <link linkend="api.display">display()</link> - o <link linkend="api.fetch">fetch()</link>. - Vamos a decir que una llamada a - display('index.tpl') debe tener varios contenidos de salida diferentes - dependiendo de alguna condición, y usted quiere separar los caches para - cada una. Usted puede hacer esto pasando un cache_id como un segundo - parámetro en la llamada de la función. - </para> - <example> - <title>Pasando un cache_id para display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Arriba, nosotros pasamos la variable $my_cache_id a - <link linkend="api.display">display()</link> con - el cache_id. Para cada valor unico de $my_cache_id, un cache por - separado sera generado para cada index.tpl. En este ejemplo, - "article_id" fue pasado en URL y es usado como el cache_id. - </para> - <note> - <title>Nota Técnica</title> - <para> - Tenga mucho cuidado cuando pase valores del cliente (web browser) - dentro de Smarty (o alguna aplicación PHP). Aunque el ejemplo de - arriba usar el article_id desde una URL parece facil, esto podría - tener fatales consecuencias. El cache_id es usado para crear un - directorio en el sistema de archivos, entonces si el usuario decide - pasar un valor extremadamente largo para article_id, o escribir un - script que envia article_ids aleatorios en un paso rápido, esto - posiblemente podría causar problemas a nivel del servidor. Tenga la - certeza de limpiar algún dato pasado antes de usarlo. En este ejemplo, - tal vez usted sabia que el article_id tiene un largo de 10 caracteres - este es constituido solamente de alfanuméricos, y debe ser un article_id - valido en la base de datos. Verifique esto! - </para> - </note> - <para> - Asegurarse de pasar el mismo cache_id como el segundo parámetro - para <link linkend="api.is.cached">is_cached()</link> y - <link linkend="api.clear.cache">clear_cache()</link>. - </para> - <example> - <title>Pasando un cache_id para is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Usted puede limpar todos los caches para un cache_id en particular - pasando el primer parámetro null a - <link linkend="api.clear.cache">clear_cache()</link>.. - </para> - <example> - <title> Limpando todos los caches para un cache_id en particular</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear all caches with "sports" as the cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -?> -]]> - </programlisting> - </example> - <para> - De esta manera, usted puede "agrupar" sus caches conjuntamente dando les - el mismo cache_id. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,199 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.setting.up"> - <title>Configurando el Cache</title> - <para> - Lo primero que se tiene que hacer es habilitar el cache. esto es configurar - <link linkend="variable.caching">$caching</link> = true (o 1.) - </para> - <example> - <title>Habilitando Cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Con el caching habilitado, la llamada a la función display('index.tpl') traera - el template como siempre, pero también salvara una copia en el archivo de salida - (una copia de cache) en el <link linkend="variable.cache.dir">$cache_dir</link>. - En la proxima llamada de display('index.tpl'), la copia en cache sera usada en - vez de traer nuevamente el template. - </para> - <note> - <title>Nota Técnica</title> - <para> - Los archivos en el <link linkend="variable.cache.dir">$cache_dir</link> son - nombrados similarmente al nombre del archivo de template. - Aunque ellos tengan una extensión ".php", ellos no son realmente scripts - ejecutables de php. No edite estos archivos! - </para> - </note> - <para> - Cada pagina en cache tiene un periodo de tiempo limitado determinado por - <link linkend="variable.cache.lifetime">$cache_lifetime</link>. - El default del valor es 3600 segundos, o 1 hora. Después de este tiempo - expira, el cache es regenerado. Es posible dar tiempos individuales para - caches con su propio tiempo de expiración para configuración - <link linkend="variable.caching">$caching</link> = 2. - Vea la documentación en - <link linkend="variable.cache.lifetime">$cache_lifetime</link> - para mas detalles. - </para> - <example> - <title>Configurando cache_lifetime por cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // lifetime is per cache - -// set the cache_lifetime for index.tpl to 5 minutes -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// set the cache_lifetime for home.tpl to 1 hour -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTE: the following $cache_lifetime setting will not work when $caching = 2. -// The cache lifetime for home.tpl has already been set -// to 1 hour, and will no longer respect the value of $cache_lifetime. -// The home.tpl cache will still expire after 1 hour. -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Si <link linkend="variable.compile.check">$compile_check</link> está habilitado, - cada archivo de template y archivo de configuración que está involucrado con el - archivo en cache es checado por modificadores. Si alguno de estos archivos fue - modificado desde que el ultimo cache fue generado, el cache es regenerado - inmediatamente. Esto es una forma de optimizar ligeramente el rendimiento de las - cabeceras, dejar <link linkend="variable.compile.check">$compile_check</link> - determinado false. - </para> - <example> - <title>Habilitando $compile_check</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Si <link linkend="variable.force.compile">$force_compile</link> está habilitado, - los archivos de cache siempre seran regenerados. Esto definitivamente desactiva - el caching. - <link linkend="variable.force.compile">$force_compile</link> generalmente - es usado para propositos de debug solamente, una forma mas eficiente - de desactivar el caching es asignando - <link linkend="variable.caching">$caching</link> = false (ó 0.) - </para> - <para> - La función <link linkend="api.is.cached">is_cached()</link> puede ser - usada para testar si un template tiene un cache valido o no. Si usted - tiene un template con cache que requiera alguna cosa como un retorno - de base de datos, usted puede usar esto para saltar este proceso. - </para> - <example> - <title>Usando is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Usted puede guardar partes de su pagina dinámica con la función - de template <link linkend="language.function.insert">{insert}</link>. - Vamos a decir que su pagina entera puede tener cache excepto para un - banner que es mostrado abajo del lado derecho de su pagina. Usando - la función insert para el banner, usted puede guardar ese elemento - dinámico dentro de un contenido de cache. Vea la documentación en - <link linkend="language.function.insert">{insert}</link> para detalles - y ejemplos. - </para> - <para> - Usted puede limpiar todos los archivos de cache con la función - <link linkend="api.clear.all.cache">clear_all_cache()</link>, - los archivos de cache individuales (o grupos) con la función - <link linkend="api.clear.cache">clear_cache()</link>. - </para> - <example> - <title>Limpiando el cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear out all cache files -$smarty->clear_all_cache(); - -// clear only cache for index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="plugins"> - <title>Extendiendo Smarty con plugins</title> - <para> - La version 2.0 introduce la arquitectura de plugin que es usada para - casi todas las funcionalidades adaptables del Smarty. Esto incluye: - <itemizedlist spacing="compact"> - <listitem><simpara>funciones</simpara></listitem> - <listitem><simpara>modificadores</simpara></listitem> - <listitem><simpara>funciones de bloque</simpara></listitem> - <listitem><simpara>funciones de compilación</simpara></listitem> - <listitem><simpara>prefiltros</simpara></listitem> - <listitem><simpara>postfiltros</simpara></listitem> - <listitem><simpara>filtros de salida</simpara></listitem> - <listitem><simpara>recursos(fuentes)</simpara></listitem> - <listitem><simpara>inserts</simpara></listitem> - </itemizedlist> - Con la excepción de recursos, la compatibildad con la forma antigua - de funciones de manipulación de registro via register_* API es conservada. - Si usted no uso el API en lugar de eso modifico las variables de clase - <literal>$custom_funcs</literal>, <literal>$custom_mods</literal>, y otras - directamente, entonces usted va a necesitar ajustar sus scripts para - cualquiera que use el API o convertir sus funciones habituales en plugins. - </para> - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.block.functions"><title>Block Functions</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - <paramdef>boolean <parameter>&$repeat</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Las funciones de bloque son funciones de forma: {func} .. {/func}. - En otras palabras, estas encapsulan un bloque del template y operan - el contenido de este bloque. Las funciones de bloque toman precedencia - sobre las funciones habituales con el mismo nombre, es decir, usted no - puede tener ambas, las funciones habituales {func} y las funciones de - bloque {func} .. {/func}. - </para> - <para> - Por default la implementación de su función es llamada dos - veces por el Smarty: una vez por la etiqueta de apertura, y - la otra por la etiqueta de cierre - (vea <literal>&$repeat</literal> abajo para ver como hacer - cambios a esto). - </para> - <para> - Solo la etiqueta de apertura de la función de bloque puede tener - atributos. Todos los atributos pasados a las funciones de template - estan contenidos en <parameter>$params</parameter> como un arreglo - asociativo. Usted puede accesar a cualquiera de estos valores - directamente, e.g. <varname>$params['start']</varname>. - Los atributos de la etiqueta de apertura son también son accesibles - a su función cuando se procesa la etiqueta de cierre. - </para> - <para> - El valor de la variable <parameter>$content</parameter> depende de - que si su función es llamada por la etiqueta de cierre o de apertura. - En caso de que la etiqueta sea de apertura, este será - <literal>null</literal>, si la etiqueta es de cierre el valor será - del contenido del bloque del template. Se debe observar que el bloque - del template ya a sido procesado por el Smarty, asi todo lo que usted - recibirá es la salida del template, no el template original. - </para> - - <para> - El parámetro <parameter>&$repeat</parameter> es pasado por - referencia para la función de implementación y proporciona - la posibilidad de controlar cuantas veces será mostrado el bloque. - Por default <parameter>$repeat</parameter> es <literal>true</literal> - en la primera llamada de la block-function (etiqueta de apertura del - bloque) y <literal>false</literal> en todas las llamadas subsecuentes - a la función de boque (etiqueta de cierre del boque). Cada vez que es - implementada la función retorna con el <parameter>&$repeat</parameter> - siendo true, el contenido entre {func} .. {/func} es evaluado y es - implementado a la función es llamada nuevamente con el nuevo contenido - del bloque en el parámetro <parameter>$content</parameter>. - </para> - - <para> - Si usted tiene funciones de bloque anidadas, es posible descubrir - cual es el padre de la función de bloque accesando la variable - <varname>$smarty->_tag_stack</varname>. - Solo hacer un var_dump() sobre ella y la estrutura estara visible. - </para> - <para> - Vea tambien: - <link linkend="api.register.block">register_block()</link>, - <link linkend="api.unregister.block">unregister_block()</link>. - </para> - <example> - <title>Función de bloque</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // do some intelligent translation thing here with $content - return $translation; - } -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.compiler.functions"><title>Funciones Compiladoras</title> - <para> - Las funciones compiladoras solo son llamadas durante la compilación - del template. Estas son útiles para inyectar codigo PHP o contenido - estático time-sensitive dentro del template. Si existen ambas, una - función compiladora y una función habitual registrada bajo el mismo - nombre, la función compiladora tiene precedencia. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - En las funciones compiladoras son pasados dos parámetros: - la etiqueta string del argumento de la etiqueta - basicamente, - todo a partir del nombre de la función hasta el delimitador del - cierre, y el objeto del Smarty. Es supuesto que retorna el codigo - PHP para ser inyectado dentro del template compilado. - </para> - <para> - Vea también - <link linkend="api.register.compiler.function">register_compiler_function()</link>, - <link linkend="api.unregister.compiler.function">unregister_compiler_function()</link>. - </para> - <example> - <title>Función compiladora simple</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> -</programlisting> - <para> - Esta función puede ser llamada en un template de la siguiente forma: - </para> - <programlisting> -{* esta función es ejecutada solamente en tiempo de compilación *} -{tplheader} - </programlisting> - <para> - El codigo PHP resultante en el template compilado seria algo asi: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.functions"><title>Funciones de Template</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Todos los atributos pasados para las funciones de template a partir - del template estan contenidas en <parameter>$params</parameter> como - un arreglo asociativo. - </para> - <para> - La salida(valor de retorno) de la función será substituida en - el lugar de la etiqueta de la función en el template (la función - <function>fetch</function>, por ejemplo). - Alternativamente, la función puede simplemente ejecutar alguna - otra tarea sin tener alguna salida (la función <function>assign</function>). - </para> - <para> - Si la función necesita pasar valores a algunas variables del template - o utilizar alguna otra funcionalidad del Smarty, esta puede usar el - objeto <parameter>$smarty</parameter> alimentandolo para hacer eso. - </para> - <para> - Vea tambien: - <link linkend="api.register.function">register_function()</link>, - <link linkend="api.unregister.function">unregister_function()</link>. - </para> - <para> - <example> - <title>Función de plugin con salida</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> -</programlisting> - </example> - </para> - <para> - que puede ser usada en el template de la siguiente forma: - </para> - <programlisting> -Question: Will we ever have time travel? -Answer: {eightball}. - </programlisting> - <para> - <example> - <title>Función de plugin sin salida</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - if (empty($params['var'])) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - </programlisting> - </example> - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.howto"> - <title>Como funcionan los Plugins</title> - <para> - Los plugins son siempre cargados cuando son requeridos. solo los - calificativos especificos, funciones, recursos, etc convocados en - scripts del template seran leidos. Además, cada plugin es cargado - una sola vez, aun si usted tiene corriendo varias instancias - diferentes de Smarty dentro de la misma petición. - </para> - <para> - Pre/posfiltros y salidas de filtros son una parte de un caso especial. - Dado que ellos no son mensionados en los templates, ellos deben ser - registrados o leidos explicitamente mediante funciones de API antes de - que el template sea procesado. El orden en el cual son ejecutados - multiples filtros del mismo tipo depende del orden en el que estos son - registrados o leidos. - </para> - <para> - El <link linkend="variable.plugins.dir">directorio de directory</link> - puede ser una cadena que contenga una ruta o un arreglo que contenga - multiples rutas. Para instalar un plugin, simplemente coloquelo en el - directorio y el Smarty lo usara automáticamente. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.inserts"><title>Inserts</title> - <para> - Los Plugins Insert son usados para implementar funciones que son - invocadas por las etiquetas - <link linkend="language.function.insert"><command>insert</command></link> - en el template. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - El primer parámetro de la función es un arreglo asociativo de - atributos pasados al insert. - </para> - <para> - La función insert debe retornar el resultado que ira a sustituir - el lugar de la etiqueta <command>insert</command> en el template. - </para> - <example> - <title>insert plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.modifiers"><title>Modificadores</title> - <para> - Los modificadores son funciones que son aplicadas a una variable - en el template antes de ser mostrada o usada en algun otro contexto. - Los modificadores pueden ser encadenados conjuntamente. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - El primer parámetro en el modificador de plugin es el valor sobre - el cual el modificador es precisa para funcionar. El resto de los - parámetros pueden ser opcionales, dependiendo de cual tipo de operación - va a ser ejecutada. - </para> - <para> - El modificador debe retornar el resultado de su procesamiento. - </para> - <para> - Vea Tambien - <link linkend="api.register.modifier">register_modifier()</link>, - <link linkend="api.unregister.modifier">unregister_modifier()</link>. - </para> - <example> - <title> Plugin modificador simple</title> - <para> - Este plugin básicamente es un alias de una función incorporada - en PHP. Este no tiene ningun parámetro adicional. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> -</programlisting> - </example> - <para></para> - <example> - <title>Plugin modificador mas complejo</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.naming.conventions"> - <title>Nombres convencionales</title> - <para> - Los archivos y funciones de Plugin deben seguir una convención - de apariencia muy especifica a fin de que pueda ser localizada - por el Smarty. - </para> - <para> - Los archivos de plugin deben ser nombrados de la siguiente forma: - <blockquote> - <para> - <filename> - <replaceable>type</replaceable>.<replaceable>name</replaceable>.php - </filename> - </para> - </blockquote> - </para> - <para> - Donde <literal>type</literal> es uno de los siguientes tipo de plugin: - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - <para> - Y <literal>name</literal> seria un identificador valido (solo, letras, - números, y underscores). - </para> - <para> - Algunos ejemplos: <literal>function.html_select_date.php</literal>, - <literal>resource.db.php</literal>, <literal>modifier.spacify.php</literal>. - </para> - <para> - Las funciones de plugin dentro de los archivos de plugin deben ser - nombradas de la siguiente forma: - <blockquote> - <para> - <function>smarty_<replaceable>type</replaceable>_<replaceable>name</replaceable></function> - </para> - </blockquote> - </para> - <para> - El significado de <literal>type</literal> and <literal>name</literal> son - los mismo que loas anteriores. - </para> - <para> - El Smarty mostrara mensajes de error apropiados si el archivo de - plugins que es necesario no es encontrado, o si el archivo a la - función de plugin esta nombrado inadecuadamente. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.outputfilters"><title>Filtros de Salida</title> - <para> - Los Filtros de salida operan en la salida del template, después - que el template es cargado y ejecutado, pero antes que la salida - sea mostrada. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - El primer parámetro de la función de filtro de salida es la - salida del template que necesita ser procesada, y el segundo - parámetro es la instancia del Smarty invocando el plugin. - El plugin debe hacer el procesamiento y retornar los resultados. - </para> - <example> - <title>plugin de filtro de salida</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.prefilters.postfilters"> - <title>Prefiltros/Postfiltros</title> - <para> - Los Plugins Prefilter y postfilter con muy similares en concepto; - donde ellos difieren es en la ejecución -- mas precisamente en el - tiempo sus ejecuciones. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Los Prefilters son usados para procesar el fuente del template inmediatamente - antes de la compilación. El primer parámetro de la función del prefilter es el - fuente del template, posiblemente modificado por algunos otros prefilters. - El Plugin es supuesto que retorne el fuente modificado. Observe que este código - no es salvado en ningun lugar, este es solo usado para la compilación. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Los Postfilters son usados para procesar la salida compilada del template - (el código PHP) inmediatamente después de que la compilacion es terminada - pero antes de que el template compilado sea salvado en el sistema de archivos. - El primer parámetro para la función postfilter es el código del template - compilado, posiblemente modificado por otros postfilters. - El plugin se supone retornara la versión modificada de este código. - </para> - <example> - <title>prefilter plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>postfilter plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.resources"><title>Fuentes</title> - <para> - Las fuentes de los plugins son como una forma generica de suministrar - código fuente de template o componentes de script PHP al Smarty. Algunos - ejemplos de fuentes: base de datos, LDAP, memoria compartida, sockets, etc. - </para> - - <para> - Existe un total de 4 funciones que necesitan estar registradas para - cada tipo de fuente. Cada función recibirá el fuente requerido como - primer parámetro y el objeto de Smarty como ultimo parámetro. - El resto de los parámetros dependen de la función. - </para> - - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - La primera función debe devolver el recurso. Su segundo parámetro - es una variable pasada por referencia donde el resultado debe ser - almacenado. La función debe retornar <literal>true</literal> si - esta pudo recuperar satisfactoriamente el recurso y en caso contrario - retornara <literal>false</literal>. - </para> - - <para> - La segunda función debe devolver la ultima modificación del - recurso requerido (como un timestamp Unix). El segundo parámetro - es una variable pasada por referencia donde el timestamp sera - almacenado. La función debe retornar <literal>true</literal> - si el timestamp pudo ser determinado satisfactoriamente, y en - caso contrario retornara <literal>false</literal>. - </para> - - <para> - La tercera función debe retornar <literal>true</literal> o - <literal>false</literal>, dependiendo si el recurso requerido - es seguro o no. Esta función es usada solo para recursos de - template pero esta debe ser definida. - </para> - - <para> - La cuarta función debe retornar <literal>true</literal> o - <literal>false</literal>, dependiendo si el recurso requerido - es seguro o no. Esta función es usada solo para componetes de - script de PHP solicitado por las etiquetas - <command>include_php</command> o <command>insert</command> - con el atributo <structfield>src</structfield>. Sin embargo, - este debe ser definido para los recurso del template. - </para> - <para> - Vea también - <link linkend="api.register.resource">register_resource()</link>, - <link linkend="api.unregister.resource">unregister_resource()</link>. - </para> - <example> - <title>Plugin resource (recurso)</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // do database call here to fetch your template, - // populating $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // do database call here to populate $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // assume all templates are secure - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // not used for templates -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.writing"> - <title>Escribiendo Plugins</title> - <para> - Los Plugins pueden ser leidos por el Smarty automáticamente del - sistema de archivos o pueden ser registrados en tiempo de - ejecución por medio de una de las funciones de API register_* . - Estos también pueden ser usados con la función API unregister_*. - </para> - <para> - Para los plugins que son registrados en tiempo de ejecución, el - nombre de la(s) función(es) de plugin no tiene que seguir la - convención de apariencia. - </para> - <para> - Si un plugin depende de alguna función alimentada por otro plugin - (como es el caso con algunos plugins incrustados con el Smarty), - entonces la forma apropiada para leer el plugin necesario es esta: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -require_once $smarty->_get_plugin_filepath('function', 'html_options'); -?> -]]> - </programlisting> - <para> - Como regla general, el objeto Smarty siempre es pasado a los - plugins como ultimo parámetro (con dos excepciones: los - modificadores no pasan el objeto de Smarty del todo y los - blocks obtenidos son pasados <parameter>&$repeat</parameter> - después el objeto de Smarty para manter compatibilidad con - antiguas versiones de Smarty). - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/es/programmers/smarty-constants.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="smarty.constants"> - <title>Constantes</title> - - <sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - Esta debe ser la ruta completa del path para la localización - de los archivos de clases de Smarty. Si esta no fuera definida, - Entonces Smarty intentara determinar el valor apropiado - automáticamente. Si es definido, el path <emphasis role="bold"> - debe finalizar con una diagonal</emphasis>. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// set path to Smarty directory *nix style -define('SMARTY_DIR','/usr/local/lib/php/Smarty/libs/'); - -// path to Smarty windows style -define('SMARTY_DIR','c:/webroot/libs/Smarty/libs/'); - -// hack (not recommended) that works on both *nix and wind -// Smarty is assumend to be in 'includes' dir under script -define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty/libs/'); - -// include the smarty class Note 'S' is upper case -require_once(SMARTY_DIR.'Smarty.class.php'); -?> -]]> - </programlisting> - </example> - <para> - Ver también - <link linkend="language.variables.smarty.const">$smarty.const</link> - y - <link - linkend="variable.php.handling">$php_handling constants</link> - </para> - </sect1> -<sect1 id="constant.smarty.core.dir"> - <title>SMARTY_CORE_DIR</title> - <para> - Esta debe ser la ruta completa de localización del sistema de archivos - de Smarty core. Si no es definido, Smarty tomara por default esta constante de - <emphasis>libs/</emphasis> - bajo el sub-directory <link linkend="constant.smarty.dir">SMARTY_DIR</link>. - Si es definida, la ruta debe terminar con una diagonal. - Use esta constante cuando necesite incluir manualmente algun archivo de core.* - </para> - <example> - <title>SMARTY_CORE_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// load core.get_microtime.php -require_once(SMARTY_CORE_DIR.'core.get_microtime.php'); - -?> -]]> - </programlisting> - </example> - - <para> - Ver también - <link linkend="language.variables.smarty.const">$smarty.const</link> - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/appendixes/bugs.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer:gerald Status: ready --> -<chapter id="bugs"> - <title>BUGS</title> - <para> - Vérifiez le fichier de BUGS fourni avec la dernière version de Smarty ou - consultez le site Web. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/appendixes/resources.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> - -<chapter id="resources"> - <title>Ressources</title> - <para> - La page Web de Smarty se trouve à l'adresse suivante : - <ulink url="&url.smarty;">&url.smarty;</ulink> - </para> - <itemizedlist> - <listitem><para> - Vous pouvez souscrire à la mailing liste en envoyant un email à - <literal>&ml.general.sub;</literal>. - Les archives de la mailing list se trouvent à l'adresse suivante : - <ulink url="&url.ml.archive;">ici</ulink> - </para></listitem> - <listitem><para> - Les forums sur <ulink url="&url.forums;">&url.forums;</ulink> - </para></listitem> - <listitem><para> - Le wiki sur <ulink url="&url.wiki;">&url.wiki;</ulink> - </para></listitem> - <listitem><para> - Le chat sur <ulink url="&url.wiki;">irc.freenode.net#smarty</ulink> - </para></listitem> - <listitem><para> - La FAQ <ulink url="&url.faq_1;">ici</ulink> et <ulink url="&url.faq_2;">ici</ulink> - </para></listitem> - </itemizedlist> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/appendixes/tips.xml
Deleted
@@ -1,439 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: didou Status: ready --> - -<chapter id="tips"> - <title>Trucs et astuces</title> - <para></para> - <sect1 id="tips.blank.var.handling"> - <title>Gestion des variables non-assignées</title> - <para> - Peut-être voudrez-vous des fois afficher une valeur par - défaut pour une variable qui n'a pas été assignée, comme - pour afficher <literal>&nbsp;</literal> afin que les couleurs - de fond des tableaux fonctionnent. Beaucoup utiliseraient une - instruction <link linkend="language.function.if"><varname>{if}</varname></link> - pour gérer celà, mais il existe un moyen - plus facile dans Smarty : l'utilisation du modificateur - de variable - <link linkend="language.modifier.default"><varname>default</varname></link>. - <note> - <para>Les erreurs <quote>de variable indéfinie</quote> seront affichés si - la fonction PHP - <ulink url="&url.php-manual;error_reporting"> - <varname>error_reporting()</varname></ulink> vaut <constant>E_ALL</constant> - et qu'une variable n'a pas été assignée à Smarty. - </para> - </note> - </para> - <example> - <title>Afficher &nbsp; quand une variable est vide</title> - <programlisting> -<![CDATA[ -{* la méthode pas adaptée *} -{if $title eq ''} - -{else} - {$title} -{/if} - - -{* la bonne méthode *} -{$title|default:' '} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.modifier.default"><varname>default</varname></link> et - <link linkend="tips.default.var.handling">la gestion des variables par défaut</link>. - </para> - </sect1> - - <sect1 id="tips.default.var.handling"> - <title>Gestion des variables par défaut</title> - <para> - Si une variable est utilisée fréquemment dans vos templates, - lui appliquer le modificateur - <link linkend="language.modifier.default"><varname>default</varname></link> - peut être un peu fastidieux. - Vous pouvez remédier à celà en lui assignant une valeur par défaut - avec la fonction <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> - <example> - <title>Assigner une valeur par défaut à une variable de template</title> -<programlisting> -<![CDATA[ -{* faites cela quelque part en haut de votre template *} -{assign var='title' value=$title|default:'no title'} - -{* si $title est vide, il contiendra alors la valeur "no title" *} -{$title} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.modifier.default"><varname>default</varname></link> et - <link linkend="tips.blank.var.handling">la gestion des variables non-assignées</link>. - </para> - </sect1> - - <sect1 id="tips.passing.vars"> - <title>Passage du titre à un template d'en-tête</title> - <para> - Quand la majorité de vos templates utilisent les mêmes en-tête et pied-de-page, - il est d'usage de les mettre dans leurs propres templates et de les inclure - (<link linkend="language.function.include"><varname>{include}</varname></link>). - Mais comment faire si l'en-tête doit avoir un titre différent, selon la page - d'où on vient ? Vous pouvez passer le titre à l'en-tête en tant qu' - <link linkend="language.syntax.attributes">attribut</link> quand il est inclus. - </para> - - <example> - <title>Passer le titre au template d'en-tête</title> - - <para> - <filename>mainpage.tpl</filename> - Lorsque la page principal est construite, - le titre <quote>Man Page</quote> est passé au <filename>header.tpl</filename> et sera utilisé - en tant que titre. - </para> - <programlisting> -<![CDATA[ -{include file='header.tpl' title='Main Page'} -{* le corps du template va ici *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>archives.tpl</filename> - Lorsque la page principal est construite, le titre - sera <quote>Archives</quote>. Notez que dans cet exemple, nous utilisons une variable du fichier - <filename>archives_page.conf</filename> au lieu d'une variable classique. - </para> - <programlisting> -<![CDATA[ -{config_load file='archive_page.conf'} - -{include file='header.tpl' title=#archivePageTitle#} -{* corps du template ici *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>header.tpl</filename> - Notez que <quote>Smarty News</quote> est affiché - si la variable <literal>$title</literal> n'est pas définie, en utilisant le modificateur de variable par - <link linkend="language.modifier.default"><varname>default</varname></link>. - </para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{$title|default:'Smarty News'}</title> - </head> - <body> - ]]> - </programlisting> - - <para> - <filename>footer.tpl</filename> - </para> - <programlisting> -<![CDATA[ -</body> -</html> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.dates"> - <title>Dates</title> - <para> - De façon générale, essayez de toujours passer les dates à Smarty - sous forme de <ulink url="&url.php-manual;time">timestamp</ulink>. - Cela permet aux designers de templates d'utiliser - <link linkend="language.modifier.date.format"><varname>date_format</varname></link> - pour avoir un contrôle total sur le formatage des dates et de comparer - facilement les dates entre elles. - </para> - <example> - <title>Utilisation de date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Jan 4, 2009 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -2009/01/04 -]]> - </screen> - <para> - Les dates peuvent être comparées dans le template en utilisant les timestamps, comme ceci : - </para> - <programlisting> -<![CDATA[ -{if $date1 < $date2} - ... -{/if} -]]> - </programlisting> - </example> - <para> - En utilisant la fonction - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> - dans un template, le programmeur veut en général convertir le - résultat d'un formulaire en un timestamp. - Voici une fonction qui devrait vous être utile. - </para> - <example> - <title>Conversion des éléments date d'un formulaire en timestamp</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// celà suppose que vos éléments de formulaire soient nommés -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year, $startDate_Month, $startDate_Day); - -function makeTimeStamp($year='', $month='', $day='') -{ - if(empty($year)) { - $year = strftime('%Y'); - } - if(empty($month)) { - $month = strftime('%m'); - } - if(empty($day)) { - $day = strftime('%d'); - } - - return mktime(0, 0, 0, $month, $day, $year); -} -?> -]]> - </programlisting> - </example> - - <para> - Voir aussi - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link>, - <link linkend="language.function.html.select.time"><varname>{html_select_time}</varname></link>, - <link linkend="language.modifier.date.format"><varname>date_format</varname></link> et - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>, - </para> - </sect1> - - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - Les templates WAP/WML nécessitent un en-tête - <ulink url="&url.php-manual;header">Content-Type</ulink> qui doit être - passé avec le template. Le moyen le plus facile de faire celà est d'écrire - une fonction utilisateur qui écrit l'en-tête. Si vous utilisez le - <link linkend="caching">cache</link>, - celà ne fonctionnera pas. Nous utiliserons donc une balise d'insertion - (<link linkend="language.function.insert">{insert}</link>) - (rappelez-vous que les balises d'insertion ne sont pas mises en cache !). - Assurez-vous qu'aucune sortie - rien n'est transmise au navigateur avant l'appel du template, sans quoi - la modification de l'en-tête échouera. - </para> - <example> - <title>Utilisation d'{insert} pour écrire un en-tête Content-Type WML</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// assurez-vous que Apache est configuré pour les extensions .wml ! -// mettez cette fonction quelque part dans votre applications -// ou dans Smarty.addons.php -function insert_header() -{ - // cette fonction attend un argument $content - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} - -?> -]]> - </programlisting> - <para> - votre template Smarty <emphasis>doit</emphasis> commencer avec la balise d'insertion : - </para> - <programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- begin new wml deck --> -<wml> - <!-- begin first card --> - <card> - <do type="accept"> - <go href="#two"/> - </do> - <p> - Welcome to WAP with Smarty! - Press OK to continue... - </p> - </card> - <!-- begin second card --> - <card id="two"> - <p> - Pretty easy isn't it? - </p> - </card> -</wml> -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.componentized.templates"> - <title>Templates composants</title> - <para> - Traditionnellemnt, la programmation avec des templates dans les applications - se déroule de la façon suivante : d'abord vous récupérez vos variables - dans l'application PHP (peut-être avec des requêtes en base de données), puis - vous instanciez votre objet Smarty, - <link linkend="api.assign"><varname>assign()</varname></link> - les variables et <link linkend="api.display"><varname>display()</varname></link> le - template. Disons par exemple que nous avons un téléscripteur dans - notre template. Nous récupérerions les données dans notre application, - puis les assignerions ensuite pour les afficher. Mais ne serait-ce pas - mieux de pouvoir ajouter ce téléscripteur à n'importe quelle application - en incluant directement le template sans avoir à se soucier de la récupération - des données ? - </para> - <para> - Vous pouvez réaliser celà en écrivant un plugin personnalisé pour récupérer le contenu - et l'assigner à une variable du template. - </para> - <example> - <title>Template composant</title> - <para> - <filename>function.load_ticker.php</filename> - - Efface le fichier du répertoire des - <link linkend="variable.plugins.dir"><parameter>$plugins</parameter></link> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// notre fonction pour récupérer les données -function fetch_ticker($symbol,&$ticker_name,&$ticker_price) -{ - // du traitement qui récupère $ticker_name - // depuis la ressource ticker - return $ticker_info; -} - -function smarty_function_load_ticker($params, &$smarty) -{ - // appel de la fonction - $ticker_info = fetch_ticker($params['symbol']); - - // assignation de la variable de template - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{load_ticker symbol='SMARTY' assign="ticker"} - -Stock Name: {$ticker.name} Stock Price: {$ticker.price} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link> et - <link linkend="language.function.php"><varname>{php}</varname></link>. - </para> - </sect1> - <sect1 id="tips.obfuscating.email"> - <title>Dissimuler les adresses email</title> - <para> - Vous-êtes vous déjà demandé pourquoi vos adresses emails sont sur autant - de listes de diffusion de spam ? Une façon pour les spammers de récupérer les - adresses est de parcourir les pages Web. Voici une façon de remédier - à ce problème : mettre votre adresse email dans du Javascript brouillé - au milieu de votre source HTML, sans que celà ne gêne l'affichage sur le - navigateur Web. Cela est fait grâce au plugin - <link linkend="language.function.mailto"><varname>{mailto}</varname></link>. - </para> - <example> - <title>Exemple de dissimulation d'une adresse email</title> -<programlisting> -<![CDATA[ -<div id="contact">Envoyer une demande à -{mailto address=$EmailAddress encode='javascript' subject='Bonjour'} -]]> - </programlisting> - </example> - <note> - <title>Note technique</title> - <para> - Cette méthode n'est pas infaillible. Un spammer peut programmer son - collecteur d'email pour passer outre cette astuce, mais c'est cependant - peu probable. - </para> - </note> - <para> - Voir aussi - <link linkend="language.modifier.escape"><varname>escape</varname></link> et - <link linkend="language.function.mailto"><varname>{mailto}</varname></link>. - </para> - </sect1> - </chapter> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/appendixes/troubleshooting.xml
Deleted
@@ -1,193 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer:gerald Status: ready --> - -<chapter id="troubleshooting"> - <title>Diagnostic des erreurs</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Erreurs Smarty/PHP</title> - <para> - Smarty peut identifier de nombreuses erreurs comme des attributs de - balises manquants ou de noms de variables malformés. Dans ce cas-là, - vous verrez apparaître une erreur semblable à : - </para> - <example> - <title>erreurs Smarty</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' -in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name -in /path/to/smarty/Smarty.class.php on line 1041 -]]> - </screen> - </example> - - <para> - Smarty vous indique le nom du template, le numéro de la ligne et l'erreur. - Après cela, vous pouvez connaître le numéro de ligne où il y a eu erreur dans - la définition de la classe Smarty. - </para> - - <para> - Il y a certaines erreurs que Smarty ne peut pas détecter, comme les - balises fermantes manquantes. Ce type d'erreurs est la plupart du temps - repéré dans la phase de compilation PHP du template compilé. - </para> - - <example> - <title>Erreur d'analyse PHP</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 -]]> - </screen> - </example> - <para> - Quand vous rencontrez une erreur d'analyse PHP, le numéro de la ligne - indiqué est celui du fichier PHP compilé et non du template. Vous pouvez alors - regarder le template et détecter l'erreur. Voici quelques erreurs fréquentes : - balises fermantes pour - <link linkend="language.function.if"><varname>{if}{/if}</varname></link> - ou - <link linkend="language.function.if"><varname>{section}{/section}</varname></link> - manquantes, ou syntaxe logique incorrecte dans une instruction <varname>{if}</varname>. - Si vous ne trouvez pas l'erreur, vous devrez alors ouvrir le fichier PHP compilé et aller à la - ligne correspondante pour trouver d'où vient l'erreur. - </para> - <example> - <title>Autres erreurs communes</title> - <screen> -<![CDATA[ -Warning: Smarty error: unable to read resource: "index.tpl" in... -ou -Warning: Smarty error: unable to read resource: "site.conf" in... -]]> - </screen> - <para> - <itemizedlist> - <listitem> - <para> - Le dossier - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - est incorrect, n'existe pas ou le fichier - the file <filename>index.tpl</filename> n'est pas dans le dossier - <filename class="directory">templates/</filename>. - </para> - </listitem> - <listitem> - <para> - Une fonction - <link linkend="language.function.config.load"><varname>{config_load}</varname></link> - est dans un template (ou - <link linkend="api.config.load"><varname>config_load()</varname></link> - a été appelé) et soit - <link linkend="variable.config.dir"><varname>$config_dir</varname></link> - est incohérent, n'existe pas, ou - <filename>site.conf</filename> n'est pas dans le dossier. - </para> - </listitem> - </itemizedlist> - </para> - <screen> - <![CDATA[ - Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, - or is not a directory... - ]]> - </screen> - <itemizedlist> - <listitem> - <para> - Soit le dossier - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link> - n'est pas correctement défini, le dossier n'existe pas, ou - <filename>templates_c</filename> est un fichier et non un dossier. - </para> - </listitem> - </itemizedlist> - <screen> - <![CDATA[ - Fatal error: Smarty error: unable to write to $compile_dir '.... - ]]> - </screen> - <itemizedlist> - <listitem> - <para> - Le dossier <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link> - n'est pas accessible en écriture par le serveur web. Voir le bas - de la page sur l'<link linkend="installing.smarty.basic">installation de - Smarty</link> pour les permissions. - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $cache_dir 'cache' does not exist, -or is not a directory. in /.. -]]> - </screen> - <itemizedlist> - <listitem> - <para> - Cela signifie que - <link linkend="variable.caching"><parameter>$caching</parameter></link> est activé et soit - le dossier - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - n'est pas correctement défini, le dossier n'existe pas, ou - <filename>cache</filename> est un fichier et non un dossier. - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $cache_dir '/... -]]> - </screen> - <itemizedlist> - <listitem> - <para> - Cela signifie que - <link linkend="variable.caching"><parameter>$caching</parameter></link> est activé et - le dossier - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - n'est pas accessible en écriture par le serveur web. Voir le bas - de la page sur l'<link linkend="installing.smarty.basic">installation de - Smarty</link> pour les permissions. - </para> - </listitem> - </itemizedlist> - </example> - - <para> - Voir aussi - <link linkend="chapter.debugging.console">le débogage</link>, - <link linkend="variable.error.reporting"><parameter>$error_reporting</parameter></link> et - <link linkend="api.trigger.error"><varname>trigger_error()</varname></link>. - </para> - </sect1> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/bookinfo.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: didou Status: ready --> -<bookinfo id="bookinfo"> - <title>Smarty - le moteur et compilateur de templates PHP</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname> - <surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Andrei</firstname> - <surname>Zmievski <andrei@php.net></surname> - </author> - </authorgroup> - <authorgroup id="translators"> - <author> - <firstname>Arnaud</firstname> - <surname>Cogoluègnes <arnaud.cogoluegnes@free.fr></surname> - </author> - <author> - <firstname>Gérald</firstname> - <surname>Croës <gcroes@aston.fr></surname> - </author> - <author> - <firstname>Mehdi</firstname> - <surname>Achour <didou@php.net></surname> - </author> - <author> - <firstname>Yannick</firstname> - <surname>Yannick <yannick@php.net></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2005</year> - <holder>New Digital Group, Inc.</holder> - </copyright> -</bookinfo> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/chapter-debugging-console.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: gerald Status: ready --> - -<chapter id="chapter.debugging.console"> - <title>Console de débogage</title> - <para> - Il existe une console de débogage dans Smarty. La console vous indique - toutes les templates <link linkend="language.function.include">incluses</link>, - les variables <link linkend="api.assign">assignées</link> et chargées depuis un fichier de - <link linkend="language.config.variables">configuration</link> pour le template courant. - Un template appelé <literal>debug.tpl</literal> est inclus dans la distribution de Smarty qui contrôle - le formattage de la console. Définissez <link linkend="variable.debugging">$debugging</link> - à &true; dans Smarty et, si besoin, vous pouvez définir - <link linkend="variable.debug.tpl"><parameter>$debug_tpl</parameter></link> - de façon à ce que ce dernier contienne le chemin du template à utiliser(dans - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> par defaut). - Lorsque vous chargez la page, une console javascript est censée surgir - et vous donner les noms de toutes les variables inclues et assignées dans - votre page courante. Pour voir toutes les variables d'un template particulier, - voir la fonction <link linkend="language.function.debug"><varname>{debug}</varname></link>. - Pour désactiver la console de débogage, définissez - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> à &false;. - Vous pouvez également temporairement activer le débogage en indiquant - <literal>SMARTY_DEBUG</literal> dans l'url si tant est que l'option - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link> - soit activée. - </para> - <note> - <title>Note technique</title> - <para> - La console de débogage ne fonctionne pas si vous utilisez l'API - <link linkend="api.fetch"><varname>fetch()</varname></link>, - mais seulement lorsque vous utilisez - <link linkend="api.display"><varname>display()</varname></link>. - C'est en effet un jeu d'instructions javascripts à la fin du template qui déclenchent - l'ouverture de la fenêtre. Si vous n'aimez pas javascript, vous pouvez modifier - <literal>debug.tpl</literal> pour formater les données de la façon qui vous conviendra le - mieux. Les données de débogage ne sont pas mises en cache et les - informations de debug.tpl ne sont pas incluses dans la sortie de la - console de débogage. - </para> - </note> - <note> - <para> - Le temps de chargement des templates et des fichiers de configuration sont - indiqués en secondes. - </para> - </note> - <para> - Voir aussi - <link linkend="troubleshooting">troubleshooting</link>, - <link linkend="variable.error.reporting"><parameter>$error_reporting</parameter></link> - et <link linkend="api.trigger.error"><varname>trigger_error()</varname></link>. - </para> - </chapter> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/config-files.xml
Deleted
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: gerald Status: ready --> - -<chapter id="config.files"> - <title>Fichiers de configuration</title> - <para> - Les fichiers de configuration sont un moyen interressant pour gérer - des variables depuis un seul et même fichier. L'exemple le plus courant - étant le schéma de couleurs du template. Normalement, pour changer le - schéma de couleur d'une application, vous devriez aller - dans chaque template et changer la couleur des éléments (ou les classes css). - Avec un fichier de configuration, il vous est possible de conserver - la couleur dans un seul endroit, puis de la mettre à jour une seule fois. - </para> - <example> - <title>Exemple de fichier de configuration</title> - <programlisting> -<![CDATA[ -# variables globales -titrePage = "Menu principal" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[client] -titrePage = "Infos client" - -[Login] -titrePage = "Login" -focus = "utilisateur" -Intro = """Une valeur qui tient sur - plusieur lignes. Vous devez la placer - entre trois guillemets.""" - -# hidden section -[.Database] -host=mon.example.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]> - </programlisting> - </example> - <para> - Les valeurs des <link linkend="language.config.variables">variables de fichiers de configuration</link> - peuvent être entre guillemets, sans que celà soit nécessaire. Si vous vouler utiliser des - valeurs sur plusieurs lignes, vous devrez les entourer de triples - guillemets ("""). Vous pouvez insérer des commentaires dans les fichiers de - configuration en utilisant une syntaxe quelquonque, non valide. - Nous recommandons l'utilisation de <literal>#</literal> (dièse) en début - de ligne. - </para> - <para> - Cet exemple de fichier de configuration contient deux sections. Les noms des - sections sont entourés de crochets []. Les noms de section peuvent être - des chaînes, ne contenant aucun des symboles <literal>[</literal> et - <literal>]</literal>. Dans notre exemple, les 4 variables du début sont - des variables dites globales, qui ne sont pas contenue dans une section. - Ces variables sont toujours chargées depuis le fichier de configuration. - Si une section est chargée, alors toutes les variables de cette section - ainsi que les variables globales sont chargées. Si une variable existe - à la fois en tant que globale et à la fois en tant que variable de - section, la variable de section est prioritaire. - Si vous appelez deux variables dans une même section de la même façon, - la dernière déclarée prime. (voir - <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link>) - </para> - <para> - Les fichiers de configuration sont chargés dans le template grâce aux - fonctions <link - linkend="language.function.config.load"><varname>{config_load}</varname></link> - (voir aussi <link linkend="api.config.load"><varname>config_load()</varname></link>). - </para> - <para> - Vous pouvez masquer des variables ou des sections entières en préfixant - le nom de la variable ou le nom de la section avec une virgule. - Ce procédé est utile si votre application récupère ses données depuis - plusieurs fichiers de configuration et récupère des données sensibles dont - vos templates n'ont pas besoin. Si des tiers éditent des templates, vous - êtes sûr que ces derniers n'accèderont pas à ces données de configuration - en les chargeant depuis le template. - </para> - <para> - Voir aussi - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link>, - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>, - <link linkend="api.clear.config"><varname>clear_config()</varname></link> et - <link linkend="api.config.load"><varname>config_load()</varname></link>. - </para> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<chapter id="language.basic.syntax"> - <title>Bases syntaxiques</title> - <para> - Toutes les balises Smarty sont entourées de délimiteurs. Par défaut, - ils sont <literal>{</literal> et - <literal>}</literal>, mais ils peuvent être <link linkend="variable.left.delimiter">modifiés</link>. - </para> - <para> - Pour les exemples de ce manuel, nous supposons que vous utiliserez leur valeur par défaut. - Dans Smarty, le contenu qui est situé en dehors des délimiteurs - est affiché comme contenu statique, inchangé. Lorsque Smarty rencontre - des balises de template, il tente de les comprendre et en affiche la sortie - appropriée, en lieu et place. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: gerald Status: ready --> - -<sect1 id="language.escaping"> - <title>Désactiver l'analyse de Smarty</title> - <para> - Il est quelques fois utile, voir nécessaire, de demander à Smarty d'ignorer - certaines sections que seraient analysées sinon. Un exemple classique est - l'incorporation de code Javascript ou CSS dans les templates. Le problème - est que ces langages utilisent les caractères { et }, qui sont aussi les - <link linkend="language.function.ldelim">délimiteurs</link> Smarty par défaut. - </para> - - <para> - Le plus simple pour éviter une telle situation est de placer vos codes - Javascript et CSS dans des fichiers séparés, puis d'utiliser les méthodes - standards HTML pour y accéder. - </para> - - <para> - Inclure du contenu tel quel est possible en utilisant les blocs - <link linkend="language.function.literal"><varname>{literal} .. {/literal}</varname></link>. - Similairement à l'utilisation d'entités HTML, vous pouvez utiliser - <link linkend="language.function.ldelim"><varname>{ldelim}</varname></link> et - <link linkend="language.function.ldelim"><varname>{rdelim}</varname></link>, ou - <link linkend="language.variables.smarty.ldelim"><varname>{$smarty.ldelim}</varname></link> - pour afficher les délimiteurs. - </para> - - <para> - Il est souvent plus simple de modifier les délimiteurs de Smarty : - <link linkend="variable.left.delimiter"><parameter>$left_delimiter</parameter></link> et - <link linkend="variable.right.delimiter"><parameter>$right_delimiter</parameter></link>. - </para> - <example> - <title>Exemple de changement de délimiteur</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - Où le template est: - </para> - <programlisting> -<![CDATA[ -Bienvenue <!--{$name}--> sur Smarty -<script language="javascript"> -var foo = <!--{$foo}-->; -function dosomething() { - alert("foo = " + foo); -} -dosomething(); -</script> -]]> - </programlisting> - </example> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready --> - -<sect1 id="language.math"> - <title>Opérations mathématiques</title> - <para> - Les opérations mathématiques peuvent être directement appliquées aux - variables. - </para> - <example> - <title>Exemples d'opérations mathématiques</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* quelques exemples plus compliqués *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> - - <para> - Voir aussi la fonction - <link linkend="language.function.math"><varname>{math}</varname></link> - pour les équations complexes et - <link linkend="language.function.eval"><varname>{eval}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: gerald Status: ready --> - -<sect1 id="language.syntax.attributes"> - <title>Paramètres</title> - <para> - La plupart des <link linkend="language.syntax.functions">fonctions</link> - attendent des paramètres qui régissent leur - comportement. Les paramètres des fonctions Smarty sont très proches des - attributs des balises HTML. Les valeurs numériques n'ont pas besoin d'être - entourées par des guillemets, par contre, ces guillemets sont recommandées lors - de l'utilisation de chaînes de caractères. Des variables peuvent aussi être - utilisées en tant que paramètres, et ne doivent pas être entourées de guillemets. - </para> - <para> - Certains paramètres requièrent des valeurs booléennes (&true; ou &false;). - Elles peuvent être spécifiées par l'une des valeures suivantes, sans guillemet: - <literal>true</literal>, <literal>on</literal>, et <literal>yes</literal>, - ou <literal>false</literal>, <literal>off</literal>, et <literal>no</literal>. - </para> - <example> - <title>Paramètres de fonction, syntaxe</title> -<programlisting> - <![CDATA[ -{include file='header.tpl'} - -{include file='header.tpl' attrib_name='attrib value'} - -{include file=$includeFile} - -{include file=#includeFile# title='Smarty est cool'} - -{html_select_date display_days=yes} - -{mailto address='smarty@example.com'} - -<select name='company'> - {html_options options=$choices selected=$selected} -</select> -]]> -</programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> - -<sect1 id="language.syntax.comments"> - <title>Commentaires</title> - <para> - Les commentaires dans Smarty sont entourés d'asterisques, - et entourés par le <link linkend="variable.left.delimiter">délimiteurs</link> - de cette façon : - </para> - <informalexample> - <programlisting> -<![CDATA[ -{* ceci est un comentaire *} -]]> - </programlisting> - </informalexample> - <para> - Les commentaires Smarty ne sont PAS affichés dans la sortie finale du - template, différemment des <literal><!-- commentaires HTML --></literal>. - Ils sont utilisés pour des notes internes, dans le template que personne ne verra ;) - </para> - <example> - <title>Commentaires dans un template</title> - <programlisting> -<![CDATA[ -{* Je suis un commentaire Smarty, je n'existe pas dans la sortie compilée *} -<html> - <head> - <title>{$title}</title> - </head> - <body> - -{* un autre commentaire Smarty sur une seule ligne *} -<!-- Un commentaire Html qui sera envoyé au navigateur --> - -{* ces multi-lignes sont des commentaires -qui ne sont pas envoyées au navigateur -*} - -{********************************************************* -Un bloc de commentaires multilignes contenant les crédits -@ author: bg@example.com -@ maintainer: support@example.com -@ para: var that sets block style -@ css: the style output -**********************************************************} - -{* Inclusion du fichier d'en-tête contenant le logo principal *} -{include file='header.tpl'} - -{* Note aux développeurs : $includeFile est assigné au script foo.php *} -<!-- Affichage du bloc principal --> -{include file=$includeFile} - -{* Ce block <select> est redondant *} -{* -<select name="company"> - {html_options options=$vals selected=$selected_id} -</select> -*} - -<!-- L'affichage de l'en-tête est désactivé --> -{* $affiliate|upper *} - -{* Vous ne pouvez pas imbriquer des commentaires *} -{* -<select name="company"> - {* <option value="0">-- none -- </option> *} - {html_options options=$vals selected=$selected_id} -</select> -*} - -{* Balise cvs pour un template, ci-dessous, le 36 DOIT ÊTRE une devise américaine sinon, -il sera converti en cvs.. *} -{* $Id: Exp $ *} -{* $Id: *} -</body> -</html> -]]> -</programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.syntax.functions"> - <title>Fonctions</title> - <para> - Les balises Smarty affichent une <link linkend="language.variables">variable</link> - ou invoquent une fonction. Elles sont appelées - lorsqu'elles sont entourées, ainsi que leurs - <link linkend="language.syntax.attributes">paramètres</link>, des délimiteurs Smarty. - Par exemple : <literal>{nomfonction attr1='val' attr2='val'}</literal>. - </para> - <example> - <title>syntaxe des fonctions</title> - <programlisting> -<![CDATA[ -{config_load file='colors.conf'} -{include file='header.tpl'} -{insert file='banner_ads.tpl' title='Smarty est cool !'} - -{if $logged_in} - Bonjour, <font color="{#fontColor#}">{$name}!</font> -{else} - Bonjour, {$name}! -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - </programlisting> - </example> - <itemizedlist> - <listitem> - <para> - Les <link linkend="language.builtin.functions">fonctions natives</link> et les - <link linkend="language.custom.functions">fonctions utilisateurs</link> ont toutes deux la même - syntaxe, dans les templates. - </para></listitem> - - <listitem> - <para> - Les fonctions natives sont relatives - au traitement <emphasis role="bold">interne</emphasis> de Smarty, - comme <link linkend="language.function.if"><varname>{if}</varname></link>, - <link linkend="language.function.section"><varname>{section}</varname></link> et - <link linkend="language.function.strip"><varname>{strip}</varname></link>. - Il n'y a aucune raison à ce qu'elles soient modifiées ou changées. - </para></listitem> - -<listitem> - <para> - Les fonctions utilisateurs sont des fonctions <emphasis role="bold">additionnelles</emphasis>, - implémentées par l'intermédiaire de <link linkend="plugins">plugins</link>. - Elles peuvent être modifiées pour correspondre - à vos besoins, et vous pouvez en créer de nouvelles. - <link linkend="language.function.html.options"><varname>{html_options}</varname></link> et - <link linkend="language.function.popup"><varname>{popup}</varname></link> - sont deux exemples de fonctions utilisateurs. - </para></listitem> -</itemizedlist> - - <para> - Voir aussi - <link linkend="api.register.function"><varname>register_function()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: gerald Status: ready --> - -<sect1 id="language.syntax.quotes"> - <title>Variables insérées dans des chaînes de caractères</title> - - <itemizedlist> - <listitem> - <para> - Smarty est capable d'interpréter les - <link linkend="language.syntax.variables">variables</link> <link - linkend="api.assign">assignées</link> à l'intérieur de - chaînes entre guillemets, du moment que leur nom est exclusivement composé - de chiffres, lettres, underscores et crochets - Voir le <ulink url="&url.php-manual;language.variables">nommage</ulink> pour plus de détails. - </para></listitem> - - <listitem><para> - Si le nom de la variable - contient tout autre caractère (point, référence à un objet, etc.) - la variable doit être entourée <link linkend="language.syntax.quotes">d'apostrophes - inverses</link> (`). - </para></listitem> - - <listitem><para> - Vous ne pouvez jamais insérer de - <link linkend="language.modifiers">modificateurs</link>, ils doivent toujours être appliquer à - l'extérieur des guillemets. - </para></listitem> - </itemizedlist> - - <example> - <title>Exemples de synthaxes</title> - <programlisting> -<![CDATA[ -{func var="test $foo test"} <-- comprends $foo -{func var="test $foo_bar test"} <-- comprends $foo_bar -{func var="test $foo[0] test"} <-- comprends $foo[0] -{func var="test $foo[bar] test"} <-- comprends $foo[bar] -{func var="test $foo.bar test"} <-- comprends $foo (not $foo.bar) -{func var="test `$foo.bar` test"} <-- comprends $foo.bar -{func var="test `$foo.bar` test"|escape} <-- modifieurs à l'extérieur des guillemets ! -]]> - </programlisting> -</example> - - <example> - <title>Exemples pratiques</title> - <programlisting> -<![CDATA[ -{* remplacera $tpl_name par la valeur *} -{include file="subdir/$tpl_name.tpl"} - -{* ne remplacera pas $tpl_name *} -{include file='subdir/$tpl_name.tpl'} <-- - -{* doit contenir des apostophes inverses car il contient un . *} -{cycle values="one,two,`$smarty.config.myval`"} - -{* identique à $module['contact'].'.tpl' dans un script PHP -{include file="`$module.contact`.tpl"} - -{* identique à $module[$view].'.tpl' dans un script PHP -{include file="$module.$view.tpl"} -]]> - </programlisting> - </example> - - <para> - Voir aussi - <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> - -<sect1 id="language.syntax.variables"> - <title>Variables</title> - <para> - Les variables de template commence par un signe dollar (<literal>$</literal>). - Elles peuvent contenir des nombres, des lettres et des underscores, tout - comme une <ulink url="&url.php-manual;language.variables">variable PHP</ulink>. - Vous pouvez référencer des tableaux indexés - numériquement ou non. Vous pouvez aussi référencer des propriétés d'objet - ainsi que des méthodes. - </para> - <para> - Les <link linkend="language.config.variables">variables des fichiers de - configuration</link> sont une exception à la synthaxe utilisant un signe dollar. Elles peuvent être - référencées en les entourant du signe dièse (<literal>#</literal>) ou via la variable spéciale - <link linkend="language.variables.smarty.config"><parameter>$smarty.config</parameter></link>. - </para> - <example> - <title>Variables</title> - <programlisting> -<![CDATA[ -{$foo} <-- affiche une variable simple (qui n'estpas un tableau ou un objet) -{$foo[4]} <-- affiche le 5ème élément d'un tableau indexé -{$foo.bar} <-- affiche la clé "bar" d'un tableau, identique à $foo['bar'] en PHP -{$foo.$bar} <-- affiche la valeur de la clé d'un tableau, identique à $foo[$bar] en PHP -{$foo->bar} <-- affiche la propriété "bar" de l'objet -{$foo->bar()} <-- affiche la valeur retournée de la méthode "bar" de l'objet -{#foo#} <-- affiche la variable du fichier de configuration "foo" -{$smarty.config.foo} <-- synonyme pour {#foo#} -{$foo[bar]} <-- synthaxe uniquement valide dans une section de boucle, voir {section} -{assign var=foo value='baa'}{$foo} <-- affiche "baa", voir {assign} - -Plusieurs autres combinaisons sont autorisées - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passage de paramètres -{"foo"} <-- les valeurs statiques sont autorisées - -{* affiche la variable serveur "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - </programlisting> - </example> - - <para> - Les variables spéciales comme <literal>$_GET</literal>, <literal>$_SESSION</literal>, etc. - sont également disponibles, lisez le chapitre sur les variables réservées - <emphasis><link linkend="language.variables.smarty"><parameter>$smarty</parameter></link></emphasis> - pour plus de détails. - </para> - - <para> - Voir aussi - <link linkend="language.variables.smarty"><parameter>$smarty</parameter></link>, - les <link linkend="language.config.variables">variables de configuration</link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link> et - <link linkend="api.assign"><varname>assign()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: gerald Status: ready --> - -<chapter id="language.builtin.functions"> - <title>Fonctions natives</title> - <para> - Smarty est fourni en standard avec plusieurs fonctions natives. - Ces fonctions natives sont partie intégrante du moteur de Smarty. - Vous ne pouvez pas créer de - <link linkend="language.custom.functions">fonctions utilisateurs</link> - qui portent le même nom qu'une fonction native et vous ne pouvez pas non - plus en modifier le comportement. - </para> - <para> - Quelques-unes de ces fonctions ont un attribut - <parameter>assign</parameter> qui récupère le résultat de la - fonction et la place dans une variable nommée dans le template plutôt que - de l'afficher ; tout comme la fonction - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.15 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.capture"> - <title>{capture}</title> - - <para> - <varname>{capture}</varname> est utilisé pour récupérer la sortie d'éléments dans - une variable au lieu de les afficher. Tout contenu situé entre - <varname>{capture name='foo'}</varname> et <varname>{/capture}</varname> - est intercepté dans une variable dont le nom est spécifié dans l'attribut - <parameter>name</parameter>. - </para> - <para> - Le contenu capturé peut être utilisé dans - le template par l'intermédiaire de la variable spéciale - <link linkend="language.variables.smarty.capture"><parameter>$smarty.capture.foo</parameter></link> - où <quote>foo</quote> est la valeur de l'attribut <parameter>name</parameter>. - Si vous ne donnez pas de valeur à l'attribut <parameter>name</parameter>, alors - <quote>default</quote> est utilisé en tant que nom, i.e. - <parameter>$smarty.capture.default</parameter>. - </para> - <para> - <varname>{capture}</varname> peut être imbriqué. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>non</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Le nom du bloc capturé</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable à laquelle la sortie sera assignée</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <note> - <title>Attention</title> - <para> - Faîtes attention lorsque vous interceptez la sortie de commandes - <link linkend="language.function.insert"><varname>{insert}</varname></link>. - Si vous avez configuré le <link linkend="caching">cache</link> pour que ce - dernier soit actif, et que vous avez des commandes <link - linkend="language.function.insert"><varname>{insert}</varname></link> - supposées s'exécuter dans un contenu en cache, ne tentez pas de capturer - ce contenu. - </para> -</note> - <para> - <example> - <title>{capture} avec le nom de l'attribut</title> - <programlisting> -<![CDATA[ -{* nous ne voulons afficher une balise div que si le contenu est affiché. *} -{capture name=banner} - {include file='get_banner.tpl'} -{/capture} -{if $smarty.capture.banner ne ""} -<div id="banner">{$smarty.capture.banner}</div> -{/if} -]]> - </programlisting> - </example> - - <example> - <title>{capture} dans une variable de template</title> - <para>Cet exemple démontre également la fonction - <link linkend="language.function.popup"><varname>{popup}</varname></link> - </para> - <programlisting> -<![CDATA[ -{capture name=some_content assign=popText} -Le serveur est {$smarty.server.SERVER_NAME|upper} sur {$smarty.server.SERVER_ADDR}<br> -Votre IP est {$smarty.server.REMOTE_ADDR}. -{/capture} -<a href="#" {popup caption='Information sur le serveur' text=$popText}>Aide</a> -]]> - </programlisting> - </example> - - </para> - <para> - Voir aussi - <link linkend="language.variables.smarty.capture"><parameter>$smarty.capture</parameter></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>, - <link linkend="api.fetch"><varname>fetch()</varname></link> et - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,186 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.config.load"> - <title>{config_load}</title> - - <para> - <varname>{config_load}</varname> est utiliseé pour charger des variables - <link linkend="language.config.variables"><parameter>#variables#</parameter></link> - depuis un <link linkend="config.files">fichier de configuration</link> - dans un template. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom du fichier de configuration à inclure</entry> - </row> - <row> - <entry>section</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la section à charger</entry> - </row> - <row> - <entry>scope</entry> - <entry>chaîne de caractère</entry> - <entry>non</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - La façon dont la portée des variables est définie, soit - local, parent ou global. local signifie que la variable est - chargée dans le contexte du template. parent indique que - la variable est disponible tant dans le template qui - l'a inclus que dans le template parent, ayant réalisé - l'inclusion du sous template. global signifie que la variable - est diponible dans tous les templates. - </entry> - </row> - <row> - <entry>global</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>No</emphasis></entry> - <entry> - Si oui ou non les variables sont disponibles pour les - templates parents, identique à scope=parent. - Note: Cet attribut est obsolète depuis l'apparition - de l'attribut scope, il est toutefois toujours supporté. - Si scope est défini, global est ignoré. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Fonction {config_load}</title> - <para> - Le fichier <filename>example.conf</filename> - </para> - <programlisting> -<![CDATA[ -#ceci est un commentaire de fichier de configuration - -#variables globales -pageTitle = "Menu principal" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -#section de variables personnalisées -[Customer] -pageTitle = "Info personnalisée" -]]> - </programlisting> - <para>et le template</para> - <programlisting> -<![CDATA[ -{config_load file='example.conf'} - -<html> -<title>{#pageTitle#|default:"No title"}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - Les <link linkend="config.files">fichiers de configuration</link> peuvent contenir des sections. - Vous pouvez charger des variables d'une section donnée avec le - nouvel attribut <parameter>section</parameter>. - </para> - <note> - <para> - Les <emphasis>sections</emphasis> des fichiers de configuration - et la fonction native - <link linkend="language.function.section"><varname>{section}</varname></link> - n'ont rien en commun, il s'avère simplement qu'elles portent le même nom. - </para> - </note> - <example> - <title>fonction {config_load} avec section</title> - <programlisting> -<![CDATA[ -{config_load file='example.conf' section='Customer'} - -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - - <para> - Voir aussi <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link> - pour les tableaux de variables de configuration. -</para> - - <para> - Voir aussi - les <link linkend="config.files">fichiers de configuration</link>, - les <link linkend="language.config.variables">variables de configuration</link>, - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>, - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link> et - <link linkend="api.config.load"><varname>config_load()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,457 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.11 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.foreach"> - <title>{foreach},{foreachelse}</title> - <para> - <varname>{foreach}</varname> est utilisé pour parcourir un - <emphasis role="bold">simple tableau associatif</emphasis>, - contrairement à <link linkend="language.function.section"><varname>{section}</varname></link> - qui effectue une boucle sur les <emphasis role="bold">tableaux de données</emphasis>. - La synthaxe pour - <varname>{foreach}</varname> est plus simple que - <link linkend="language.function.section"><varname>{section}</varname></link>, - mais <emphasis role="bold">ne peut être utilisé que pour des tableau simple</emphasis>. - Chaque <varname>{foreach}</varname> doit aller de paire avec une balise fermante - <varname>{/foreach}</varname>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>from</entry> - <entry>tableau</entry> - <entry>oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le tableau à parcourir</entry> - </row> - <row> - <entry>item</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable "élément courant"</entry> - </row> - <row> - <entry>key</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable représentant la clef courante.</entry> - </row> - <row> - <entry>name</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la boucle foreach, qui nous permettra - d'accéder à ses propriétés.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <itemizedlist> - <listitem><para> - Required attributes are <parameter>from</parameter> and <parameter>item</parameter>. - </para></listitem> - - <listitem><para> - The <parameter>name</parameter> of the <varname>{foreach}</varname> loop can be anything - you like, made up of letters, numbers and underscores, like - <ulink url="&url.php-manual;language.variables">PHP variables</ulink>. - </para></listitem> - - <listitem><para> - <varname>{foreach}</varname> loops can be nested, and the nested - <varname>{foreach}</varname> names must be unique from each other. - </para></listitem> - - <listitem><para> - The <parameter>from</parameter> attribute, usually an array of values, - determines the number of times <varname>{foreach}</varname> will loop. - </para></listitem> - - <listitem><para> - <varname>{foreachelse}</varname> is executed when there are no - values in the <parameter>from</parameter> variable. - </para></listitem> - - <listitem><para> - <varname>{foreach}</varname> loops also have their own variables that handle properties. - These are accessed with: - <link linkend="language.variables.smarty.loops"> - <parameter>{$smarty.foreach.name.property}</parameter></link> with - <quote>name</quote> being the - <parameter>name</parameter> attribute. - </para> - <note> - <title>Note</title> - <para>The <parameter>name</parameter> attribute is only required when - you want to access a <varname>{foreach</varname>} property, unlike - <link linkend="language.function.section"><varname>{section}</varname></link>. - Accessing a <varname>{foreach}</varname> property with <parameter>name</parameter> - undefined does not throw an error, but leads to unpredictable results instead. - </para> - </note> - </listitem> - - <listitem><para> - <varname>{foreach}</varname> properties are - <link linkend="foreach.property.index"><parameter>index</parameter></link>, - <link linkend="foreach.property.iteration"><parameter>iteration</parameter></link>, - <link linkend="foreach.property.first"><parameter>first</parameter></link>, - <link linkend="foreach.property.last"><parameter>last</parameter></link>, - <link linkend="foreach.property.show"><parameter>show</parameter></link>, - <link linkend="foreach.property.total"><parameter>total</parameter></link>. - </para></listitem> - </itemizedlist> - - <example> - <title>L'attribut <parameter>item</parameter></title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array(1000, 1001, 1002); -$smarty->assign('myArray', $arr); -?> -]]> - </programlisting> - <para> - Template pour afficher <parameter>$myArray</parameter> dans une liste non-ordonnée. - </para> - <programlisting> -<![CDATA[ -<ul> - {foreach from=$myArray item=foo} - <li>{$foo}</li> - {/foreach} -</ul> -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<ul> - <li>1000</li> - <li>1001</li> - <li>1002</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>Utilisation des attributs <parameter>item</parameter> et <parameter>key</parameter></title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array(9 => 'Tennis', 3 => 'Natation', 8 => 'Programmation'); -$smarty->assign('myArray', $arr); -?> -]]> - </programlisting> - <para> - Le template affiche le tableau <parameter>$myArray</parameter> comme paire clé/valeur, - comme la fonction PHP - <ulink url="&url.php-manual;foreach"><varname>foreach</varname></ulink>. - </para> - <programlisting> -<![CDATA[ -<ul> - {foreach from=$myArray key=k item=v} - <li>{$k}: {$v}</li> - {/foreach} -</ul> -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<ul> - <li>9: Tennis</li> - <li>3: Natation</li> - <li>8: Programmation</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>{foreach} avec un attribut associatif <parameter>item</parameter></title> - <programlisting role="php"> -<![CDATA[ -<?php -$items_list = array(23 => array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') -); -$smarty->assign('items', $items_list); -?> -]]> - </programlisting> - <para> - Le template affiche <parameter>$items</parameter> avec - <parameter>$myId</parameter> dans l'URL. - </para> - <programlisting> -<![CDATA[ -<ul> - {foreach from=$items key=myId item=i} - <li><a href="item.php?id={$myId}">{$i.no}: {$i.label}</li> - {/foreach} - </ul> - ]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<ul> -<li><a href="item.php?id=23">2456: Salad</li> -<li><a href="item.php?id=96">4889: Cream</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>{foreach} avec <parameter>item</parameter> et <parameter>key</parameter></title> - <para>Assigne un tableau à Smarty, la clé contient la clé pour chaque valeur de la boucle.</para> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('contacts', array( -array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') -)); -?> -]]> - </programlisting> - <para>Le template affiche <parameter>$contact</parameter>.</para> - <programlisting> -<![CDATA[ -{foreach name=outer item=contact from=$contacts} - <hr /> - {foreach key=key item=item from=$contact} - {$key}: {$item}<br /> - {/foreach} -{/foreach} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<hr /> -phone: 1<br /> -fax: 2<br /> -cell: 3<br /> -<hr /> -phone: 555-4444<br /> -fax: 555-3333<br /> -cell: 760-1234<br /> -]]> - </screen> - </example> - - <example> - <title>Exemple d'une base de données avec {foreachelse}</title> - <para>Exemple d'un script de recherche dans une base de données (e.g. PEAR ou ADODB), - le résultat de la requête est assigné à Smarty.</para> - <programlisting role="php"> -<![CDATA[ -<?php -$search_condition = "where name like '$foo%' "; -$sql = 'select contact_id, name, nick from contacts '.$search_condition.' order by name'; -$smarty->assign('results', $db->getAssoc($sql) ); -?> -]]> - </programlisting> - <para>Le template qui affiche <quote>None found</quote> - si aucun résultat avec <varname>{foreachelse}</varname>.</para> - <programlisting> -<![CDATA[ -{foreach key=cid item=con from=$results} -<a href="contact.php?contact_id={$cid}">{$con.name} - {$con.nick}</a><br /> -{foreachelse} -Aucun élément n'a été trouvé dans la recherche -{/foreach} -]]> - </programlisting> - </example> - - <sect2 id="foreach.property.index"> - <title>.index</title> - <para> - <parameter>index</parameter> contient l'index courant du tableau, en commançant par zéro. - </para> - <example> - <title>Exemple avec <parameter>index</parameter></title> - <programlisting role="php"> - <![CDATA[ - {* L'en-tête du block est affiché toutes les 5 lignes *} -<table> - {foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - <tr><th>Title</th></tr> - {/if} - <tr><td>{$i.label}</td></tr> - {/foreach} -</table> -]]> - </programlisting> - </example> -</sect2> - -<sect2 id="foreach.property.iteration"> - <title>.iteration</title> - <para> - <parameter>iteration</parameter> contient l'itération courante de la boucle et commence - toujours à 1, contrairement à - <link linkend="foreach.property.index"><parameter>index</parameter></link>. - Il est incrémenté d'un, à chaque itération. - </para> - <example> - <title>Exemple avec <parameter>iteration</parameter> et <parameter>index</parameter></title> - <programlisting role="php"> -<![CDATA[ -{* this will output 0|1, 1|2, 2|3, ... etc *} -{foreach from=$myArray item=i name=foo} -{$smarty.foreach.foo.index}|{$smarty.foreach.foo.iteration}, -{/foreach} -]]> - </programlisting> - </example> -</sect2> -<sect2 id="foreach.property.first"> - <title>.first</title> - <para> - <parameter>first</parameter> vaut &true; si l'itération courante de - <varname>{foreach}</varname> est l'initial. - </para> - <example> - <title>Exemple avec <parameter>first</parameter></title> - <programlisting role="php"> -<![CDATA[ - {* affiche LATEST sur le premier élément, sinon, l'id *} - <table> - {foreach from=$items key=myId item=i name=foo} - <tr> - <td>{if $smarty.foreach.foo.first}LATEST{else}{$myId}{/if}</td> - <td>{$i.label}</td> - </tr> - {/foreach} -</table> -]]> - </programlisting> - </example> -</sect2> -<sect2 id="foreach.property.last"> - <title>.last</title> - <para> - <parameter>last</parameter> est défini à &true; si l'itération courante de - <varname>{foreach}</varname> est la dernière. - </para> - <example> - <title>Exemple avec <parameter>last</parameter></title> - <programlisting role="php"> -<![CDATA[ -{* Ajout une barre horizontale à la fin de la liste *} -{foreach from=$items key=part_id item=prod name=products} -<a href="#{$part_id}">{$prod}</a>{if $smarty.foreach.products.last}<hr>{else},{/if} -{foreachelse} -... contenu ... -{/foreach} -]]> - </programlisting> - </example> -</sect2> -<sect2 id="foreach.property.show"> - <title>.show</title> - <para> - <parameter>show</parameter> est utilisé en tant que paramètre à <varname>{foreach}</varname>. - <parameter>show</parameter> est une valeur booléenne. S'il vaut - &false;, <varname>{foreach}</varname> ne sera pas affiché. - S'il y a un <varname>{foreachelse}</varname>, il sera affiché alternativement. - </para> -</sect2> - -<sect2 id="foreach.property.total"> - <title>.total</title> - <para> - <parameter>total</parameter> contient le nombre d'itérations que cette boucle - <varname>{foreach}</varname> effectuera. - Il peut être utilisé dans ou après un <varname>{foreach}</varname>. - </para> - <example> - <title>Exemple avec <parameter>total</parameter></title> - <programlisting role="php"> -<![CDATA[ -{* affiche les lignes retournées à la fin *} -{foreach from=$items key=part_id item=prod name=foo} -{$prod.name><hr/> -{if $smarty.foreach.foo.last} -<div id="total">{$smarty.foreach.foo.total} items</div> -{/if} -{foreachelse} -... quelque chose d'autre ... -{/foreach} -]]> - </programlisting> -</example> - - <para> - Voir aussi - <link linkend="language.function.section"><varname>{section}</varname></link> - et <link linkend="language.variables.smarty.loops"><parameter>$smarty.foreach</parameter></link>. - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,257 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.if"> - <title>{if},{elseif},{else}</title> - <para> - L'instruction <varname>{if}</varname> dans Smarty dispose de la même flexibilité que l'instruction - PHP <ulink url="&url.php-manual;if">if</ulink>, - avec quelques fonctionnalités supplémentaires pour le - moteur de template. Tous les <varname>{if}</varname> doivent être - utilisés de pair avec un <varname>{/if}</varname>. - <varname>{else}</varname> et <varname>{elseif}</varname> sont également - des balises autorisées. Toutes les conditions et fonctions PHP sont reconnues, - comme <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, - <emphasis>is_array()</emphasis>, etc. - </para> - <para> - Si <link linkend="variable.security"><parameter>$security</parameter></link> est actif, - alors le tableau <emphasis>IF_FUNCS</emphasis> dans le tableau - <link linkend="variable.security.settings"><parameter>$security_settings</parameter></link> (?!). - </para> - <para> - La liste suivante présente les opérateurs reconnus, qui doivent être entourés d'espaces. - Remarquez que les éléments listés entre [crochets] sont optionnels. Les équivalents - PHP sont indiqués lorsque applicables. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Opérateur</entry> - <entry>Syntaxe alternative</entry> - <entry>Exemple de syntaxe</entry> - <entry>Signification</entry> - <entry>Equivalent PHP</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>égalité</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>différence</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>supérieur à</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>inférieur à</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>supérieur ou égal à</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>inférieur ou égal à</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>égalité (type et valeur)</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>négation</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>modulo</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>divisible par</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>est [ou non] un nombre pair</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>paritée de groupe</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>est [ou non] un nombre impair</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>est [ou non] un groupe impair</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Instruction {if}</title> - <programlisting> -<![CDATA[ -{if $name eq 'Fred'} - Bienvenue, Monsieur. -{elseif $name eq 'Wilma'} - Bienvenue m'dame. -{else} - Bienvenue, qui que vous soyez. -{/if} - -{* Un exemple avec l'opérateur or *} -{if $name eq 'Fred' or $name eq 'Wilma'} - ... -{/if} - -{* même chose que ci-dessus *} -{if $name == 'Fred' || $name == 'Wilma'} - ... -{/if} - -{* les parenthèses sont autorisées *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* vous pouvez également faire appel aux fonctions PHP *} -{if count($var) gt 0} - ... -{/if} - -{* Vérifie si c'est un tableau. *} -{if is_array($foo) } -..... -{/if} - -{* Vérifie si la variable est nulle. *} -{if isset($foo) } - ..... -{/if} - -{* teste si les valeurs sont paires(even) ou impaires(odd) *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* teste si la variable est divisible par 4 *} -{if $var is div by 4} - ... -{/if} - -{* teste si la variable est paire, par groupe de deux i.e., -0=paire, 1=paire, 2=impaire, 3=impaire, 4=paire, 5=paire, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=paire, 1=paire, 2=paire, 3=impaire, 4=impaire, 5=impaire, etc. *} -{if $var is even by 3} - ... -{/if} - -]]> - </programlisting> - </example> - <example> - <title>Plus d'exemples avec {if}</title> - <programlisting> -<![CDATA[ -{if isset($name) && $name = 'Blog'} - {* faire quelque chose *} -{elseif $name == $foo} - {* faire quelque chose *} -{/if} - -{if is_array($foo) && count($foo) > 0) - {* faire une boucle foreach *} - {/if} - ]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.include.php"> - <title>{include_php}</title> - - <note> - <title>Notes techniques</title> - <para> - <varname>{include_php}</varname> est presque obsolète dans Smarty. - Vous pouvez obtenir des résultats équivalents en utilisant les fonctions utilisateur. - La seule raison qui peut vous pousser à utiliser <varname>{include_php}</varname> - est que vous avez besoin de mettre une de vos fonction en quarantaine vis à vis du - répertoire <link linkend="variable.plugins.dir"><filename>plugins/</filename></link> - ou de votre application. Reportez-vous à l'exemple des - <link linkend="tips.componentized.templates">templates composants</link> - pour plus de détails. - </para> - </note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>chaîne de caractère</entry> - <entry>oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom du fichier PHP à inclure</entry> - </row> - <row> - <entry>once</entry> - <entry>boléen</entry> - <entry>Non</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Inclure plusieurs fois ou non le fichier PHP si - plusieurs demandes d'inclusions sont faîtes.</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>le nom de la variable PHP dans laquelle la sortie - sera assignée plutôt que directement affichée.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Les balises <varname>{include_php}</varname> sont utilisées pour inclure directement - un script PHP dans vos templates. Si - <link linkend="variable.security"><parameter>$security</parameter></link> est activé, - alors le script à exécuter doit être placé dans le chemin - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>. La balise - <varname>{include_php}</varname> attends l'attribut <parameter>file</parameter>, - qui contient le chemin du fichier PHP à inclure, relatif à - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>, ou absolu. - </para> - <para> - Par défaut, les fichiers PHP ne sont inclus qu'une seule fois, même si - la demande d'inclusion survient plusieurs fois dans le template. - Vous pouvez demander à ce que ce fichier soit inclus à chaque demande - grâce à l'attribut <parameter>once</parameter>. Mettre l'attribut once à - &false; aura pour effet d'inclure le script PHP à chaque fois que demandé - dans le template. - </para> - <para> - Vous pouvez donner une valeur à l'attribut optionnel - <parameter>assign</parameter>, pour demander à la fonction - <varname>{include_php}</varname> d'assigner la sortie du script PHP - à la variable spécifiée plutôt que d'en afficher directement le résultat. - </para> - <para> - L'objet Smarty est disponible en tant que <parameter>$this</parameter> dans le script PHP inclus. - </para> - <example> - <title>Fonction {include_php}</title> - <para>Le fichier <filename>load_nav.php</filename></para> - <programlisting role="php"> -<![CDATA[ -<?php - -// charge des variables depuis une base de données mysql et les assigne au template. -require_once('MySQL.class.php'); -$sql = new MySQL; -$sql->query('select * from site_nav_sections order by name',SQL_ALL); -$this->assign('sections',$sql->record); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{* chemin absolu, ou relatif à $trusted_dir *} -{include_php file='/chemin/vers/load_nav.php'} - -{foreach item='nav' from=$navigation} - <a href="{$nav.url}">{$nav.name}</a><br /> -{/foreach} -]]> - </programlisting> - </example> - - <para> - Voir aussi - <link linkend="language.function.include"><varname>{include}</varname></link>, - <link linkend="variable.security"><parameter>$security</parameter></link>, - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>, - <link linkend="language.function.php"><varname>{php}</varname></link>, - <link linkend="language.function.capture"><varname>{capture}</varname></link>, les - <link linkend="template.resources">ressources de template</link> et les - <link linkend="tips.componentized.templates">composants de templates</link>. - </para> -</sect1> - - <!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,215 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.include"> - <title>{include}</title> - - <para> - Les balises <varname>{include}</varname> sont utilisées pour inclure des templates à - l'intérieur d'autres templates. Toutes les variables disponibles - dans le template réalisant l'inclusion sont disponibles dans le - template inclus. - </para> - - <itemizedlist> - <listitem><para> - La balise <varname>{include}</varname> doit contenir l'attribut - <parameter>file</parameter> qui contient le chemin vers la ressource de - template. - </para></listitem> - - <listitem><para> - La définition de l'attribut optionnel <parameter>assign</parameter> - spécifie la variable de template assignée à la sortie de - <varname>{include}</varname> au lieu d'être affichée. Similaire à - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para></listitem> - - <listitem><para> - Les variables peuvent être passées à des templates inclus comme - <link linkend="language.syntax.attributes">attributs</link>. - Toutes les variables explicitement passées à un template inclus - ne sont disponibles que dans le contexte du fichier inclus. - Les attributs de variables écrasent les variables courantes de template, - dans le cas où les noms sont les mêmes. - </para></listitem> - - <listitem><para> - Toutes les valeurs de variables assignées sont restaurées une fois le contexte - du template inclus refermés. Ceci signifie que vous pouvez utiliser toutes les - variables depuis un template inclus dans le template inclus. Mais les modifications - faites aux variables dans le template inclus ne sont pas visibles dans le template - incluant, parès l'instruction <varname>{include}</varname> statement. - </para></listitem> - - <listitem><para> - Utilisez la synthaxe pour les - <link linkend="template.resources">ressources de template</link> aux fichiers - <varname>{include}</varname> en dehors du dossier - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para></listitem> - </itemizedlist> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom du template à inclure</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable dans laquelle sera assignée - la sortie de include</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[type de variable]</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variables à passer au template</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Exemple avec {include}</title> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{$title}</title> - </head> - <body> - {include file='page_header.tpl'} - - {* Le corps du template va ici, la variable $tpl_name est remplacé par - une valeur, e.g.'contact.pl' *} - {include file='$tpl_name.tpl'} - - {include file='page_footer.tpl'} - </body> -</html> -]]> - </programlisting> - </example> - <example> - <title>Fonction {include}, passage de variables</title> - <programlisting> -<![CDATA[ -{include file='links.tpl' title='Newest links' links=$link_array} -{* body of template goes here *} -{include file='footer.tpl' foo='bar'} -]]> - </programlisting> - <para>Le template ci-dessus inclut l'exemple <filename>links.tpl</filename></para> - <programlisting> -<![CDATA[ -<div id="box"> - <h3>{$title}{/h3> - <ul> - {foreach from=$links item=l} - .. faites quelques choses ici ... - </foreach} - </ul> -</div> -]]> - </programlisting> - </example> - - - <example> - <title>{include} et assignement à une variable</title> - <para>Cet exemple assigne le contenu de <filename>nav.tpl</filename> à la variable - <varname>$navbar</varname>, qui est alors affichée en haut et en bas de la page. - </para> - <programlisting> -<![CDATA[ -<body> - {include file='nav.tpl' assign=navbar} - {include file='header.tpl' title='Smarty is cool'} - {$navbar} - {* le corps du template va ici *} - {$navbar} - {include file='footer.tpl'} -</body> -]]> - </programlisting> - </example> - <example> - <title>Divers {include}, exemple de ressource template</title> - <programlisting> -<![CDATA[ -{* chemin absolu *} -{include file='/usr/local/include/templates/header.tpl'} - -{* chemin absolu (même chose) *} -{include file='file:/usr/local/include/templates/header.tpl'} - -{* chemin absolu windows (DOIT utiliser le préfixe "file:") *} -{include file='file:C:/www/pub/templates/header.tpl'} - -{* inclusion d'une ressource template "db" *} -{include file='db:header.tpl'} - -{* inclusion d'un template $variable - eg $module = 'contacts' *} -{include file="$module.tpl"} -{* ne fonctionne pas avec des simples guillemets ie aucun substitution de variables *} -{include file='$module.tpl'} - -{* include a multi $variable template - eg amber/links.view.tpl *} -{include file="$style_dir/$module.$view.tpl"} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link>, - <link linkend="language.function.php"><varname>{php}</varname></link>, - les <link linkend="template.resources">ressources de template</link> et - les <link linkend="tips.componentized.templates">templates composants</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,169 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.insert"> - <title>{insert}</title> - - <para> - Les balises <varname>{insert}</varname> fonctionnent à peu près comme les balises - <link linkend="language.function.include"><varname>{include}</varname></link>, - à l'exception que leur sortie n'est PAS placée en cache lorsque - <link linkend="caching">le cache</link> du template est activé. - Les balises {insert} seront exécutées à chaque appel du template. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>le nom de la fonction insert (insert_name)</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable qui recevra la sortie</entry> - </row> - <row> - <entry>script</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom du script PHP inclus avant que la fonction - insert ne soit appelée.</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable à passer à la fonction insert</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Supposons que vous avez un template avec un emplacement - pour un bandeau publicitaire en haut de page. - Ce bandeau publicitaire peut contenir toutes sortes de contenus - HTML, images, flash, etc. Nous ne pouvons pas placer du contenu - statique à cet endroit. Nous ne voulons pas non plus que ce - contenu fasse partie du cache. Arrive alors la balise {insert}. - Le template connais #emplacement_bandeau# et #id_site# (récupérés - depuis un <link linkend="config.files">fichier de configuration</link>), - et à besoin d'un appel de fonction pour récupérer le contenu du bandeau. - </para> - <example> - <title>Fonction {insert}</title> - <programlisting> -{* exemple de récupération d'un bandeau publicitaire *} -{insert name="getBanner" lid=#emplacement_bandeau# sid=#id_site#} - </programlisting> - </example> - <para> - Dans cet exemple, nous utilisons le nom <quote>getBanner</quote> et lui passons les - paramètres #emplacement_bandeau# et #id_site#. Smarty va rechercher une - fonction appelée insert_getBanner () dans votre application PHP, et lui - passer les valeurs #banner_location_id# et #site_id# comme premier - paramètre, dans un tableau associatif. Tous les noms des fonctions {insert} - de votre application doivent être prefixées de "insert_" pour remédier - à d'éventuels conflits de nommage. Votre fonction insert_getBanner () - est supposée traiter les valeurs passées et retourner - un résultat. Ces résultats sont affichés dans le template en lieu et - place de la balise. Dans cet exemple, Smarty appellera cette fonction - insert_getBanner(array("lid" => "12345","sid" => "67890")); et affichera - le résultat retourné à la place de la balise {insert}. - </para> - <itemizedlist> - <listitem> - <para> - Si vous donnez une valeur à l'attribut <parameter>assign</parameter>, la sortie de la balise - <varname>{insert}</varname> sera assigné à une variable de template de ce nom au lieu d'être - affichée directement. - <note> - <para> - Assigner la sortie à une variable n'est pas - très utile lorsque le <link linkend="variable.caching">cache</link> est activé. - </para> - </note> - </para></listitem> - - <listitem> - <para> - Si vous donnez une valeur à l'attribut <parameter>script</parameter>, ce script PHP sera - inclus (une seule fois) avant l'exécution de la fonction <varname>{insert}</varname>. - Le cas peut survenir lorsque la fonction <varname>{insert}</varname> n'existe pas encore, - et que le script PHP chargé de sa définission doit être inclus. - </para> - <para> - Le chemin doit être absolu ou relatif à - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>. - Lorsque - <link linkend="variable.security"><parameter>$security</parameter></link> est actif, - le script doit être situé dans - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>. - </para></listitem> -</itemizedlist> - <para> - L'objet Smarty est passé comme second argument. De cette façon, vous - pouvez utiliser ou modifier des informations sur l'objet Smarty, - directement depuis votre fonction <varname>{insert}</varname>. - </para> - <note> - <title>Note technique</title> - <para> - Il est possible d'avoir des portions de template qui ne soient pas - gérables par le cache. Même si vous avez activé l'option - <link linkend="caching">caching</link>, les balises <varname>{insert}</varname> - ne feront pas partie du cache. Elles retourneront un contenu dynamique - à chaque invocation de la page. Cette méthode est très pratique pour - des éléments tels que les bandeaux publicitaires, les enquêtes, - la météo, les résultats de recherche, retours utilisateurs, etc. - </para> - </note> - <para> - Voir aussi - <link linkend="language.function.include"><varname>{include}</varname></link> - </para> - </sect1> - - <!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.ldelim"> - <title>{ldelim},{rdelim}</title> - <para> - <varname>{ldelim}</varname> et <varname>{rdelim}</varname> sont utilisés pour - <link linkend="language.escaping">échapper</link> - les délimiteurs en tant que tels, dans notre cas, - <emphasis role="bold">{</emphasis> et <emphasis role="bold">}</emphasis>. - Vous pouvez toujours utiliser - <link linkend="language.function.literal"><varname>{literal}{/literal}</varname></link> - pour échapper des blocks de texte, e.g. Javascript ou css. - Voir aussi - <link linkend="language.variables.smarty.ldelim"><parameter>{$smarty.ldelim}</parameter></link>. - </para> - <example> - <title>{ldelim}, {rdelim}</title> - <programlisting> -<![CDATA[ -{* Affiche les délimiteurs de template *} - -{ldelim}nomFonction{rdelim} est la façon dont sont appelées les fonctions dans Smarty ! -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -{nomFonction} est la façon dont sont appelées les fonctions dans Smarty ! -]]> - </screen> - - <para>Un autre exemple avec du javascript</para> - <programlisting> -<![CDATA[ -<script language="JavaScript"> - function foo() {ldelim} - ... code ... - {rdelim} -</script> -]]> - </programlisting> - <para> - affichera : - </para> - <screen> -<![CDATA[ -<script language="JavaScript"> - function foo() { - .... code ... - } -</script> -]]> - </screen> - </example> - - <example> - <title>un autre exemple avec Javascript</title> - <programlisting> -<![CDATA[ -<script language="JavaScript" type="text/javascript"> - function myJsFunction(){ldelim} - alert("Le nom du serveur\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} -</script> -<a href="javascript:myJsFunction()">Cliquez ici pour des informations sur le serveur</a> - ]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.literal"><varname>{literal}</varname></link> et - la <link linkend="language.escaping">désactivation de l'analyse de Smarty</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.literal"> - <title>{literal}</title> - <para> - Les balises <varname>{literal}</varname> permettent à un bloc de données - d'être pris tel - quel, sans qu'il ne soit interprété par Smarty. Très pratique lors - de l'emplois d'éléments tels que javascript, acolades et autres - qui peuvent confondre le moteur de template. Tout le contenu situé - entre les balises <varname>{literal}{/literal}</varname> ne sera pas interprété, et - affiché comme du contenu statique. Si vous voulez inclure des tags de template - dans votre block <varname>{literal}</varname>, utilisez plutôt - <link linkend="language.function.ldelim"><varname>{ldelim}{rdelim}</varname></link> - pour échapper les délimiteurs individuels. - </para> - <example> - <title>Balises {literal}</title> - <programlisting> -<![CDATA[ -{literal} -<script language=javascript> - -<!-- - function isblank(field) { - if (field.value == '') - { return false; } - else - { - document.loginform.submit(); - return true; - } - } -// --> - -</script> -{/literal} -]]> - </programlisting> - </example> - - <example> - <title>Exemple avec Javascript</title> - <programlisting> -<![CDATA[ -<script language="JavaScript" type="text/javascript"> - {literal} - function myJsFunction(name, ip){ - alert("Le nom du serveur\n" + name + "\n" + ip); - } - {/literal} -</script> -<a href="javascript:myJsFunction('{$smarty.server.SERVER_NAME}','{$smarty.server.SERVER_ADDR}')">Cliquez ici pour plus d'informations sur le serveur</a> -]]> - </programlisting> - </example> - - <example> - <title>Un peu de css dans un template</title> - <programlisting> -<![CDATA[ -{* inclure ce style... comme une expérimentation ! *} -<style type="text/css"> - {literal} - /* C'est une idée intéressante pour cette section */ - .madIdea{ - border: 3px outset #ffffff; - margin: 2 3 4 5px; - background-color: #001122; - } - {/literal} -</style> -<div class="madIdea">Avec Smarty, vous pouvez inclure du css dans le template</div> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.ldelim"><varname>{ldelim} {rdelim}</varname></link> et - la <link linkend="language.escaping">désactivation de l'analyse de Smarty</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.13 Maintainer: gerald Status: ready --> - -<sect1 id="language.function.php"> - <title>{php}</title> - <para> - Les balises <varname>{php}</varname> permettent de rajouter du code PHP - directement dans le template. Ils ne seront pas ignorés, quelle que soit la valeur de <link - linkend="variable.php.handling"><parameter>$php_handling</parameter></link>. Pour les - utilisateurs avancés seulement, son utilisation n'est normalement pas - nécessaire et n'est pas recommandée. - </para> - <note> - <title>Notes techniques</title> - <para> - Pour accéder aux variables PHP dans les blocks <varname>{php}</varname>, vous devriez avoir besoin - d'utiliser le mot clé PHP <ulink url="&url.php-manual;global"><literal>global</literal></ulink>. - </para> - </note> - <example> - <title>Exemple avec la balise {php}</title> - <programlisting> -<![CDATA[ -{php} - // inclusion directe d'un script PHP depuis le template. - include('/chemin/vers/display_weather.php'); -{/php} -]]> - </programlisting> - </example> - - <example> - <title>Balises {php} avec le mot clé global et assignement d'une variable</title> - <programlisting role="php"> -<![CDATA[ -{* ce template inclut un bloc {php} qui assigne la variable $varX *} -{php} - global $foo, $bar; - if($foo == $bar){ - echo 'Ceci apparaîtera dans le template'; - } -$this->assign('varX','Strawberry'); -{/php} -{* affichage de la variable *} -<strong>{$varX}</strong> est ma glâce favorite :-) -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link>, - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link> et - <link linkend="tips.componentized.templates">les templates composantes</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,838 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.19 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.section"> - <title>{section},{sectionelse}</title> - <para> - Une <varname>{section}</varname> - sert à boucler dans des <emphasis role="bold">tableaux de données</emphasis>, - contrairement à <link linkend="language.function.foreach"><varname>{foreach}</varname></link> - qui est utilisé pour boucler dans un - <emphasis role="bold">simple tableau associatif</emphasis>. - Chaque balise <varname>{section}</varname> doit aller de paire avec une - balise <varname>{/section}</varname> fermante. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la section</entry> - </row> - <row> - <entry>loop</entry> - <entry>mixed</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Valeur qui détermine le nombre de fois que la boucle sera exécutée</entry> - </row> - <row> - <entry>start</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>0</emphasis></entry> - <entry> - La position de l'index ou la section commencera son - parcours. Si la valeur donnée est négative, la position de - départ est calculée depuis la fin du tableau. Par exemple, - s'il existe 7 valeurs dans le tableau à parcourir et que start - est à -2, l'index de départ sera 5. Les valeurs incorrectes - (en dehors de la portée du tableau) sont automatiquements - tronquées à la valeur correcte la plus proche - </entry> - </row> - <row> - <entry>step</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>1</emphasis></entry> - <entry>La valeur du pas qui sera utilisé pour parcourir le - tableau.Par exemple, step=2 parcourera les indices - 0,2,4, etc. Si step est négatif, le tableau sera parcouru en sens - inverse</entry> - </row> - <row> - <entry>max</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Définit le nombre maximum de fois que le tableau sera - parcouru</entry> - </row> - <row> - <entry>show</entry> - <entry>booléen</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Détermine s'il est nécessaire d'afficher la - section ou non</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Les paramètres requis sont <parameter>name</parameter> et <parameter>loop</parameter>. - </para></listitem> - - <listitem><para> - Le <parameter>name</parameter> de la <varname>{section}</varname> est, selon votre choix, - composé de lettres, chiffres et underscores, comme pour les - <ulink url="&url.php-manual;language.variables">variables PHP</ulink>. - </para></listitem> - - <listitem><para> - Les sections peuvent être imbriquées mais leurs noms doivent être uniques. - </para></listitem> - - <listitem><para> - L'attribut <parameter>loop</parameter>, habituellement un tableau de valeurs, - détermine le nombre de fois que - <varname>{section}</varname> doit boucler. - </para></listitem> - - <listitem><para> - Lors de l'affichage d'une variable dans une <varname>{section}</varname>, le nom de la - <varname>{section}</varname> doit être fournis après le nom de la variable entre crochets []. - </para></listitem> - - <listitem><para> - <varname>{sectionelse}</varname> est exécuté lorsqu'aucune valeur n'est trouvée dans la variable à - parcourir. - </para></listitem> - - <listitem><para> - <varname>{section}</varname> a également ces propres variables qui gérent les propriétés - de la <varname>{section}</varname>. - Ces propriétés sont accessibles comme ceci : <link linkend="language.variables.smarty.loops"> - <parameter>{$smarty.section.name.property}</parameter></link> - où <quote>name</quote> est l'attribut <parameter>name</parameter>. - </para></listitem> - - <listitem><para> - Les propriétés de <varname>{section}</varname> sont - <link linkend="section.property.index"><parameter>index</parameter></link>, - <link linkend="section.property.index.prev"><parameter>index_prev</parameter></link>, - <link linkend="section.property.index.next"><parameter>index_next</parameter></link>, - <link linkend="section.property.iteration"><parameter>iteration</parameter></link>, - <link linkend="section.property.first"><parameter>first</parameter></link>, - <link linkend="section.property.last"><parameter>last</parameter></link>, - <link linkend="section.property.rownum"><parameter>rownum</parameter></link>, - <link linkend="section.property.loop"><parameter>loop</parameter></link>, - <link linkend="section.property.show"><parameter>show</parameter></link>, - <link linkend="section.property.total"><parameter>total</parameter></link>. - </para></listitem> -</itemizedlist> - - <example> - <title>Boucler dans un simple tableau avec {section}</title> -<para> -<link linkend="api.assign"><varname>assign()</varname></link> un tableau à Smarty -</para> -<programlisting role="php"> -<![CDATA[ -<?php -$data = array(1000,1001,1002); -$smarty->assign('custid',$data); -?> -]]> -</programlisting> -<para>Le template qui affiche le tableau</para> - <programlisting> -<![CDATA[ -{* Cet exemple affichera toutes les valeurs du tableau $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br /> -{/section} -<hr /> -{* Affiche toutes les valeurs du tableau $custid, en ordre inverse *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}<br /> -{/section} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -<hr /> -id: 1002<br /> -id: 1001<br /> -id: 1000<br /> -]]> - </screen> - </example> - - - <example> - <title>{section} sans un tableau assigné</title> -<programlisting> -<![CDATA[ -{section name=foo start=10 loop=20 step=2} - {$smarty.section.foo.index} -{/section} -<hr /> -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> -</programlisting> -<para> - L'exemple ci-dessus affichera : -</para> -<screen> - <![CDATA[ -10 12 14 16 18 -<hr /> -20 18 16 14 12 10 -]]> - </screen> - </example> - - -<example> - <title>Nommage d'une {section}</title> - <para> - Le <parameter>name</parameter> de la <varname>{section}</varname> peut être ce que vous - voulez, voir les <ulink url="&url.php-manual;language.variables">variables PHP</ulink>. - Il sera utilisé pour référencer les données de la <varname>{section}</varname>. - </para> - <programlisting> -<![CDATA[ -{section name=anything loop=$myArray} - {$myArray[anything].foo} - {$name[anything]} - {$address[anything].bar} -{/section} -]]> - </programlisting> - </example> - - - <example> - <title>Boucler dans un tableau associatif avec {section}</title> - <para> - Voici un exemple d'affichage d'un tableau associatif de données avec - <varname>{section}</varname>. Ce qui suit est le script PHP assignant - le tableau <parameter>$contacts</parameter> à Smarty. - </para> - <programlisting role="php"> - <![CDATA[ -<?php -$data = array( - array('name' => 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); -?> -]]> - </programlisting> - -<para>Le template pour afficher <parameter>$contacts</parameter></para> - <programlisting> -<![CDATA[ -{section name=customer loop=$contacts} -<p> - name: {$contacts[customer].name}<br /> - home: {$contacts[customer].home}<br /> - cell: {$contacts[customer].cell}<br /> - e-mail: {$contacts[customer].email} -</p> -{/section} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<p> - name: John Smith<br /> - home: 555-555-5555<br /> - cell: 666-555-5555<br /> - e-mail: john@myexample.com -</p> -<p> - name: Jack Jones<br /> - home phone: 777-555-5555<br /> - cell phone: 888-555-5555<br /> - e-mail: jack@myexample.com -</p> -<p> - name: Jane Munson<br /> - home phone: 000-555-5555<br /> - cell phone: 123456<br /> - e-mail: jane@myexample.com -</p> -]]> - </screen> -</example> - - <example> - <title>{section} démontrant l'utilisation de la variable <varname>loop</varname></title> - <para>Cet exemple suppose que <parameter>$custid</parameter>, <parameter>$name</parameter> - et <parameter>$address</parameter> sont tous des tableaux contenant le même - nombre de valeurs. Tout d'abord, le script PHP qui assigne les tableaux à Smarty.</para> -<programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 Abbey road', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> -</programlisting> -<para>La variable <parameter>loop</parameter> détermine uniquement le nombre - de fois qu'il faut boucler. - Vous pouvez accéder à n'importe quelle variable du template dans la - <varname>{section}</varname></para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -<p> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]} -</p> -{/section} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<p> - id: 1000<br /> - name: John Smith<br /> - address: 253 Abbey road -</p> -<p> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln -</p> -<p> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st -</p> -]]> - </screen> - </example> - - - - <example> - <title>{section} imbriquée</title> - <para> - Les sections peuvent être imbriquées autant de fois que vous le voulez. - Avec les sections imbriquées, vous pouvez accéder aux structures de données - complexes, comme les tableaux multi-dimentionnels. Voici un script PHP qui assigne les - tableaux. - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> -</programlisting> -<para>Dans ce template, <emphasis>$contact_type[customer]</emphasis> est un tableau de - types de contacts.</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -<hr> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]}<br /> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br /> - {/section} -{/section} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<hr> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th<br /> - home phone: 555-555-5555<br /> - cell phone: 666-555-5555<br /> - e-mail: john@myexample.com<br /> -<hr> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln<br /> - home phone: 123-456-4<br /> - web: www.example.com<br /> -<hr> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st<br /> - cell phone: 0457878<br /> -]]> - </screen> - </example> - - -<example> -<title>Exemple avec une base de données et {sectionelse}</title> - <para>Les résultats d'une recherche dans une base de données - (e.g. ADODB ou PEAR) sont assignés à Smarty</para> - <programlisting role="php"> - <![CDATA[ -<?php -$sql = 'select id, name, home, cell, email from contacts ' - ."where name like '$foo%' "; -$smarty->assign('contacts', $db->getAll($sql)); -?> -]]> -</programlisting> -<para>Le template pour afficher le résultat de la base de données dans un tableau HTML</para> - <programlisting> -<![CDATA[ -<table> -<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> -{section name=co loop=$contacts} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{sectionelse} - <tr><td colspan="5">Aucun élément n'a été trouvé</td></tr> -{/section} -</table> -]]> -</programlisting> - </example> - - - <sect2 id="section.property.index"> - <title>.index</title> - <para> - <parameter>index</parameter> contient l'index courant du tableau, en commençant par zéro ou par - <parameter>start</parameter> s'il est fourni. Il s'incrémente d'un en un ou de - <parameter>step</parameter> s'il est fourni. - </para> - <note> - <title>Note technique</title> - <para> - Si les propriétés <parameter>step</parameter> et <parameter>start</parameter> - ne sont pas modifiés, alors le fonctionnement est le même que celui de la propriété - <link linkend="section.property.iteration"><parameter>iteration</parameter></link>, - mise à part qu'il commence à zéro au lieu de un. - </para> - </note> - <example> -<title>Exemple avec la propriété <varname>index</varname></title> -<para> -<note><title>FYI</title> -<para><literal>$custid[customer.index]</literal> et -<literal>$custid[customer]</literal> sont identiques.</para> -</note> -</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="section.property.index.prev"> - <title>.index_prev</title> - <para> - <parameter>index_prev</parameter> est l'index de la boucle précédente. - Lors de la première boucle, il vaut -1. - </para> - </sect2> - - <sect2 id="section.property.index.next"> - <title>.index_next</title> - <para> - <parameter>index_next</parameter> est l'index de la prochaine boucle. - Lors de la prochaine boucle, il vaudra un de moins que l'index courant, suivant - la configuration de l'attribut <parameter>step</parameter>, s'il est fourni. - </para> - - <example> -<title>Exemple avec les propriétés <varname>index</varname>, <varname>index_next</varname> - et <varname>index_prev</varname></title> -<programlisting role="php"> -<![CDATA[ -<?php -$data = array(1001,1002,1003,1004,1005); -$smarty->assign('rows',$data); -?> -]]> -</programlisting> -<para>Le template pour afficher le tableau ci-dessus dans un tableau HTML</para> - <programlisting> -<![CDATA[ -{* $rows[row.index] et $rows[row] sont identiques *} -<table> - <tr> - <th>index</th><th>id</th> - <th>index_prev</th><th>prev_id</th> - <th>index_next</th><th>next_id</th> - </tr> -{section name=row loop=$rows} - <tr> - <td>{$smarty.section.row.index}</td><td>{$rows[row]}</td> - <td>{$smarty.section.row.index_prev}</td><td>{$rows[row.index_prev]}</td> - <td>{$smarty.section.row.index_next}</td><td>{$rows[row.index_next]}</td> - </tr> -{/section} -</table> -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera un tableau HTML contenant : - </para> - <screen> -<![CDATA[ -index id index_prev prev_id index_next next_id -0 1001 -1 1 1002 -1 1002 0 1001 2 1003 -2 1003 1 1002 3 1004 -3 1004 2 1003 4 1005 -4 1005 3 1004 5 -]]> - </screen> - </example> - </sect2> - - - <sect2 id="section.property.iteration"> - <title>.iteration</title> - <para> - <parameter>iteration</parameter> contient l'itération courante de la boucle et commence à un. - </para> - <note> - <para> - Ceci n'est pas affecté par les propriétés <varname>{section}</varname> - <parameter>start</parameter>, <parameter>step</parameter> et - <parameter>max</parameter> contrairement à la propriété - <link linkend="section.property.index"><parameter>index</parameter></link>. - <parameter>iteration</parameter> commence également à un au lieu de zéro - contrairement à <parameter>index</parameter>. - <link linkend="section.property.rownum"><parameter>rownum</parameter></link> - est un alias de <parameter>iteration</parameter>, ils sont identiques. - </para> - </note> - <example> -<title>Exemple avec la propriété <varname>iteration</varname></title> -<programlisting role="php"> -<![CDATA[ -<?php -// array of 3000 to 3015 -$id = range(3000,3015); -$smarty->assign('arr',$id); -?> -]]> -</programlisting> -<para>Le template pour afficher tous les autres éléments du tableau <literal>$arr</literal> comme - <literal>step=2</literal></para> - <programlisting> -<![CDATA[ -{section name=cu loop=$arr start=5 step=2} - iteration={$smarty.section.cu.iteration} - index={$smarty.section.cu.index} - id={$custid[cu]}<br /> -{/section} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -iteration=1 index=5 id=3005<br /> -iteration=2 index=7 id=3007<br /> -iteration=3 index=9 id=3009<br /> -iteration=4 index=11 id=3011<br /> -iteration=5 index=13 id=3013<br /> -iteration=6 index=15 id=3015<br /> -]]> - </screen> - <para> - Un autre exemple d'utilisation de la propriété - <parameter>iteration</parameter> est d'afficher un bloc d'en-tête d'un tableau toutes - les 5 lignes. - Utilisez la fonction <link linkend="language.function.if"><varname>{if}</varname></link> - avec l'opérateur mod. - </para> - <programlisting> -<![CDATA[ -<table> -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} - <tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> - {/if} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> - </programlisting> -</example> - </sect2> - - - <sect2 id="section.property.first"> - <title>.first</title> - <para> - <parameter>first</parameter> est défini à &true; si l'itération courante de - <varname>{section}</varname> est l'initiale. - </para> - </sect2> - - - <sect2 id="section.property.last"> - <title>.last</title> - <para> - <parameter>last</parameter> est défini à &true; - si l'itération courante de la section est la dernière. - </para> - <example> - <title>Exemple avec les propriétés <varname>first</varname> et <varname>last</varname></title> - <para> - Cet exemple boucle sur le tableau <varname>$customers</varname>, - affiche un bloc d'en-tête lors de la première itération et, lors de la dernière, - affiche un bloc de pied de page. Utilise aussi la propriété - <link linkend="section.property.total"><parameter>total</parameter></link>. - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers} - {if $smarty.section.customer.first} - <table> - <tr><th>id</th><th>customer</th></tr> - {/if} - - <tr> - <td>{$customers[customer].id}}</td> - <td>{$customers[customer].name}</td> - </tr> - - {if $smarty.section.customer.last} - <tr><td></td><td>{$smarty.section.customer.total} customers</td></tr> - </table> - {/if} -{/section} -]]> - </programlisting> - </example> - </sect2> - - - <sect2 id="section.property.rownum"> - <title>.rownum</title> - <para> - <parameter>rownum</parameter> contient l'itération courante de la boucle, - commençant à un. C'est un alias de <link - linkend="section.property.iteration"><parameter>iteration</parameter></link>, - ils fonctionnent exactement de la même façon. - </para> - </sect2> - - <sect2 id="section.property.loop"> - <title>.loop</title> - <para> - <parameter>loop</parameter> contient le dernier index de la boucle de la section. - Il peut être utilisé dans ou après la <varname>{section}</varname>. - </para> - <example> - <title>Exemple avec la propriété <varname>loop</varname></title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -There are {$smarty.section.customer.loop} customers shown above. -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -There are 3 customers shown above. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.show"> - <title>.show</title> - <para> - <parameter>show</parameter> est utilisé en tant que paramètre à la section et est une valeur booléenne. - S'il vaut &false;, la section ne sera pas affichée. S'il y a un - <varname>{sectionelse}</varname>, il sera affiché de façon alternative. - </para> - <example> - <title>Exemple avec la propriété <varname>show</varname></title> - <para>Une valeur booléenne <varname>$show_customer_info</varname> est passée - depuis l'application PHP, pour réguler l'affichage ou non de cette section.</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$customers[customer]}<br /> -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> - -the section was shown. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.total"> - <title>.total</title> - <para> - <parameter>total</parameter> contient le nombre d'itérations que cette - <varname>{section}</varname> bouclera. Il peut être utilisé dans ou après une - <varname>{section}</varname>. - </para> - <example> - <title>Exemple avec la propriété <varname>total</varname></title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - There are {$smarty.section.customer.total} customers shown above. -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> et - <link linkend="language.variables.smarty.loops"><parameter>$smarty.section</parameter></link>. - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.strip"> - <title>{strip}</title> - <para> - Il est fréquent que les designers web rencontrent des problèmes - dus aux espaces et retours chariots, qui affectent le rendu HTML - ("fonctionnalités" des navigateurs), les obligeant à coller les - balises les unes aux autres. Cette solution rend généralement le - code illisible et impossible à maintenir. - </para> - <para> - Tout contenu situé entre les balises <varname>{strip}{/strip}</varname> se verra - allégé des espaces superflus et des retours chariots en début ou en fin - de ligne, avant qu'il ne soit affiché. De la sorte, vous pouvez - conserver vos templates lisibles, sans vous soucier des effets - indésirables que peuvent apporter les espaces superflus. - </para> - <note> - <para> - <varname>{strip}{/strip}</varname> n'affecte en aucun cas le contenu des variables de - template. Voir aussi le <link linkend="language.modifier.strip">modificateur - strip</link> pour un rendu identique pour les variables. - </para> - </note> - <example> - <title>Balises strip</title> - <programlisting> -<![CDATA[ -{* la suite sera affichée sur une seule ligne *} -{strip} -<table border='0'> - <tr> - <td> - <a href="{$url}"> - <font color="red">Un test</font> - </a> - </td> - </tr> -</table> -{/strip} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<table border='0'><tr><td><a href="http://mon.example.com"><font color="red">Un test</font></a></td></tr></table> -]]> - </screen> - </example> - <para> - Notez que dans l'exemple ci-dessus, toutes les lignes commencent et - se terminent par des balises HTML. Sachez que si vous avez du texte - en début ou en fin de ligne dans des balises strip, ce dernier sera collé - au suivant/précédent et risque de ne pas être affiché selon - l'effet désiré. - </para> - <para> - Voir aussi - le <link linkend="language.modifier.strip">modificateur <varname>strip</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-combining-modifiers.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: gerald Status: ready --> -<chapter id="language.combining.modifiers"> - <title>Combiner des modificateurs de variable.</title> - <para> - Vous pouvez appliquer un nombre quelquonque de modificateurs à une variable. - Ils seront invoqués dans l'ordre d'apparition, de la gauche vers la droite. - Ils doivent être séparés par un <literal>|</literal> (pipe). - </para> - <example> - <title>Combiner des modificateurs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('titreArticle', 'Les fumeurs sont productifs, mais la mort -tue l\'efficacitée.'); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|upper|spacify} -{$titreArticle|lower|spacify|truncate} -{$titreArticle|lower|truncate:30|spacify} -{$titreArticle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - Celà va afficher : - </para> - <screen> -<![CDATA[ -Les fumeurs sont productifs, mais la mort tue l'efficacitée. -L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M O R T T U E L ' E F F I C A C I T É E . -L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M... -L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M... -L e s f u m e u r s s o n t p r o d u c t i f s , . . . -L e s f u m e u r s s. . . -]]> - </screen> - </example> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: gerald Status: ready --> - -<chapter id="language.custom.functions"> - <title>Fonctions utilisateur</title> - <para> - Smarty est livré avec plusieurs fonctions utilisateurs que vous pouvez - appeler dans vos templates. - </para> - - &designers.language-custom-functions.language-function-assign; - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-debug; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-popup; - &designers.language-custom-functions.language-function-popup-init; - &designers.language-custom-functions.language-function-textformat; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-assign.xml
Deleted
@@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.assign"> - <title>{assign}</title> - <para> - <varname>{assign}</varname> est utilisé pour déclarer des variables de template - <emphasis role="bold">durant l'exécution du template</emphasis>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable assignée</entry> - </row> - <row> - <entry>value</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La valeur assignée</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{assign}</title> - <programlisting> -<![CDATA[ -{assign var='name' value='Bob'} - -La valeur de $name est {$name}. -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -La valeur de $name est Bob. -]]> - </screen> - </example> - - <example> - <title>{assign} avec quelques fonctions mathématiques</title> - <para>Cet exemple complexe doit avoir ces variables entre crochets.</para> - <programlisting> -<![CDATA[ -{assign var=running_total value=`$running_total+$some_array[loop].some_value`} -]]> - </programlisting> - </example> - - <example> - <title>Accès aux variables {assign} depuis un script PHP</title> - <para> - Pour accéder aux variables <varname>{assign}</varname> depuis le script PHP, utilisez - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>. - Ci-dessous, le template qui crée la variable <parameter>$foo</parameter>. - </para> - <programlisting> -<![CDATA[ -{assign var='foo' value='Smarty'} -]]> - </programlisting> - <para> - Les variables de template ne sont disponibles que après/durant l'exécution du template, - comme dans le script ci-dessous. - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// ceci n'affichera rien car le template n'a pas encore été exécuté -echo $smarty->get_template_vars('foo'); - -// Récupère le template dans une variable -$whole_page = $smarty->fetch('index.tpl'); - -// Ceci affichera 'smarty' car le template a été exécuté -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// Ceci affichera 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - </programlisting> - </example> - - - <para> - Les fonctions suivantes peuvent <emphasis>optionnellement</emphasis> assigner - des variables de template. - </para> - - <para> - <link linkend="language.function.capture"><varname>{capture}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link>, - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link>, - <link linkend="language.function.counter"><varname>{counter}</varname></link>, - <link linkend="language.function.cycle"><varname>{cycle}</varname></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>, - <link linkend="language.function.math"><varname>{math}</varname></link> et - <link linkend="language.function.textformat"><varname>{textformat}</varname></link>. - </para> - <para> - Voir aussi - <link linkend="api.assign"><varname>assign()</varname></link> et - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.counter"> - <title>{counter}</title> - <para> - <varname>{counter}</varname> affiche un compteur. - <varname>{counter}</varname> retient la valeur - du compte à chaque itération. Vous pouvez adapter le nombre, l'intervale - et la direction du compteur, ainsi que décider d'afficher ou non - les valeurs. Vous pouvez lancer plusieurs compteurs simultanément en - leur donnant des noms uniques. Si vous ne donnez pas de nom à un - compteur, <quote>default</quote> sera utilisé. - </para> - <para> - Si vous donnez une valeur à l'attribut <parameter>assign</parameter>, - alors la sortie de la fonction <varname>{counter}</varname> sera assignée - à la variable de template donnée plutôt que d'être directement affichée. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Le nom du compteur</entry> - </row> - <row> - <entry>start</entry> - <entry>numérique</entry> - <entry>Non</entry> - <entry><emphasis>1</emphasis></entry> - <entry>La valeur initiale du compteur</entry> - </row> - <row> - <entry>skip</entry> - <entry>numérique</entry> - <entry>Non</entry> - <entry><emphasis>1</emphasis></entry> - <entry>L'intervale du compteur</entry> - </row> - <row> - <entry>direction</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>up</emphasis></entry> - <entry>la direction du compteur (up/down) [compte / décompte]</entry> - </row> - <row> - <entry>print</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>S'il faut afficher cette valeur ou non</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable dans laquelle la valeur du compteur - sera assignée.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{counter}</title> - <programlisting> -<![CDATA[ -{* initialisation du compteur *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,152 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.cycle"> - <title>{cycle}</title> - <para> - <varname>{cycle}</varname> est utilisé pour boucler sur un ensemble de valeurs. - Très pratique pour alterner entre deux ou plusieurs couleurs dans un tableau, - ou plus généralement pour boucler sur les valeurs d'un tableau. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Le nom du cycle</entry> - </row> - <row> - <entry>values</entry> - <entry>divers</entry> - <entry>Oui</entry> - <entry><emphasis>N/A</emphasis></entry> - <entry>Les valeurs sur lesquelles boucler, soit une liste - séparée par des virgules, (voir l'attribut delimiter), - soit un tableau de valeurs</entry> - </row> - <row> - <entry>print</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>S'il faut afficher ou non cette valeur</entry> - </row> - <row> - <entry>advance</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>Oui ou non aller à la prochaîne valeur</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>,</emphasis></entry> - <entry>Le délimiteur à utiliser dans la liste.</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La variable de template dans laquelle la sortie - sera assignée</entry> - </row> - <row> - <entry>reset</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Le cycle sera défini à la première valeur</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem> - <para> - Vous pouvez définir plusieurs <varname>{cycle}</varname> dans votre template, en leur - donnant des noms uniques (attribut <parameter>name</parameter>). - </para></listitem> - <listitem><para> - Vous pouvez empêcher la valeur courante de s'afficher en définissant - l'attribut <parameter>print</parameter> à &false;. Ce procédé peut être - utile pour discrètement passer outre une valeur de la liste. - </para></listitem> - <listitem><para> - L'attribut <parameter>advance</parameter> est utilisé pour répéter une valeur. Lorsque - définit à &false;, le prochain appel de <varname>{cycle}</varname> ramènera la même valeur. - </para></listitem> - <listitem><para> - Si vous définissez l'attribut spécial <parameter>assign</parameter>, la sortie de la fonction - <varname>{cycle}</varname> y sera assignée plutôt que d'être directement affichée. - </para></listitem> -</itemizedlist> - <example> - <title>{cycle}</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> -</programlisting> - <para>Le template ci-dessus affichera :</para> - <screen> -<![CDATA[ -<tr bgcolor="#eeeeee"> - <td>1</td> -</tr> -<tr bgcolor="#d0d0d0"> - <td>2</td> -</tr> -<tr bgcolor="#eeeeee"> - <td>3</td> -</tr> -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.debug"> - <title>{debug}</title> - <para> - <varname>{debug}</varname> amène la console de débogage sur la page. - Fonctionne quelle que soit la valeur du paramètre - <link linkend="chapter.debugging.console">debug</link> de Smarty. - Comme ce dernier est appelé lors de l'exécution, il n'est capable - d'afficher que les variables <link linkend="api.assign">assignées</link> - au template, et non les templates en cours d'utilisation. Toutefois, vous - voyez toutes les variables disponibles pour le template courant. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>javascript</emphasis></entry> - <entry>Type de sortie, html ou javascript</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Voir aussi - <link linkend="chapter.debugging.console">la console de débogage</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.eval"> - <title>{eval}</title> - <para> - <varname>{eval}</varname> évalue une variable comme si cette dernière - était un template. - Peut être utile pour embarquer des balises de templates ou des variables - de template dans des variables ou des balises/variables dans des - variables de fichiers de configuration. - </para> - <para> - Si vous définissez l'attribut <parameter>assign</parameter>, la sortie sera assignée à la - variable de template désignée plutôt que d'être affichée dans le - template. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable (ou chaîne de caractères) à évaluer</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable PHP dans laquelle la sortie - sera assignée</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <note> - <title>Note technique</title> - <para> - <itemizedlist> - <listitem><para> - Les variables évaluées sont traitées de la même façon que les templates. - Elles suivent les mêmes règles de traitement et de sécurité, comme si - elles étaient réellement des templates. - </para></listitem> - - <listitem><para> - Les variables évaluées sont compilées à chaque invocation, et la version - compilée n'est pas sauvegardée ! Toutefois, si le - <link linkend="caching">cache</link> est activé, la sortie sera placée en - cache avec le reste du template. - </para></listitem> -</itemizedlist> -</para> - </note> - <example> - <title>{eval}</title> -<para>Le contenu du fichier de configuration, <filename>setup.conf</filename>.</para> - <programlisting> -<![CDATA[ -#setup.conf -#---------- -emphstart = <strong> -emphend = </strong> -titre = Bienvenue sur la homepage de {$company} ! -ErrorVille = Vous devez spécifier un nom de {#emphstart#}ville{#emphend#}. -ErrorDept = Vous devez spécifier un {#emphstart#}département{#emphend#}. -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{config_load file='setup.conf'} - -{eval var=$foo} -{eval var=#titre#} -{eval var=#ErrorVille#} -{eval var=#ErrorDept# assign='state_error'} -{$state_error} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -Ceci est le contenu de foo. -Bienvenue sur la homepage de FictifLand. -Vous devez spécifier un nom de <strong>ville</strong>. -Vous devez spécifier un <strong>département</strong>. -]]> - </screen> - </example> - - <example> - <title>un autre exemple avec {eval}</title> - <para> - Ceci va afficher le nom du serveur (en majuscule) et son IP. - La variable <parameter>$str</parameter> également venir d'une requête de base de données. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -$str = 'Le nom du serveur est {$smarty.server.SERVER_NAME|upper} ' -.'at {$smarty.server.SERVER_ADDR}'; -$smarty->assign('foo',$str); -?> - ]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{eval var=$foo} -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.fetch"> - <title>{fetch}</title> - <para> - <varname>{fetch}</varname> est utilisé pour récupérer des fichiers depuis le système de - fichier local, depuis un serveur http ou ftp, et en afficher le contenu. - </para> - - <itemizedlist> - <listitem> - <para> - Si le nom du fichier commence par <parameter>http://</parameter>, la page internet sera - récupérée, puis affichée. - <note> - <para> - Ceci ne supporte pas les redirections http. Assurez vous d'inclure les - slash de fin sur votre page web si nécessaire. - </para> - </note> - </para> - </listitem> - - <listitem> - <para> - Si le nom du fichier commence par <parameter>ftp://</parameter>, - le fichier sera récupéré depuis le serveur ftp, et affiché. - </para> - </listitem> - - <listitem> - <para> - Pour les fichiers du système local, le chemin doit être absolu ou - relatif au chemin d'exécution du script PHP. - <note> - <para> - Si la variable de template <link linkend="variable.security"> - <parameter>$security</parameter></link> - est activée et que vous récupérez un fichier depuis le système - de fichiers local, <varname>{fetch}</varname> - ne permettra que les fichiers se trouvant dans un des dossiers - définis dans les <link linkend="variable.secure.dir">dossiers sécurisés</link>. - </para> - </note> - </para> - </listitem> - - <listitem> - <para> - Si l'attribut <parameter>assign</parameter> est défini, l'affichage - de la fonction <varname>{fetch}</varname> sera assignée à cette - variable de template au lieu d'être affichée dans le template. - </para> - </listitem> - </itemizedlist> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le fichier, site http ou ftp à récupérer</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable PHP dans laquelle la sortie - sera assignée plutôt que d'être directement affichée. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Exempe avec {fetch}</title> - <programlisting> -<![CDATA[ -{* Inclus du javascript dans votre template *} -{fetch file='/export/httpd/www.example.com/docs/navbar.js'} - -{* récupère les informations météo d'un autre site sur votre page *} -{fetch file='http://www.myweather.com/68502/'} - -{* récupère les titres depuis un fichier ftp *} -{fetch file='ftp://user:password@ftp.example.com/path/to/currentheadlines.txt'} -{* comme ci-dessus mais avec des variables *} -{fetch file="ftp://`$user`:`$password`@`$server`/`$path`"} - -{* assigne le contenu récupéré à une variable de template *} -{fetch file='http://www.myweather.com/68502/' assign='weather'} -{if $weather ne ''} -<div id="weather">{$weather}</div> -{/if} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.capture"><varname>{capture}</varname></link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link> - <link linkend="language.function.eval"><varname>{eval}</varname></link> et - <link linkend="api.fetch"><varname>fetch()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,245 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.checkboxes"> - <title>{html_checkboxes}</title> - <para> - <varname>{html_checkboxes}</varname> est une - <link linkend="language.custom.functions">fonction utilisateur</link> - qui crée un groupe de cases à cocher avec les données fournies. Elle prend - en compte la liste des éléments sélectionnés par défaut. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>Nom de la liste de cases à cocher</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Oui, à moins que vous n'utilisiez l'attribut - option</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau de valeurs pour les cases à - cocher</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Oui, à moins que vous n'utilisiez l'attribut - option</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau de sortie pour les cases à cocher</entry> - </row> - <row> - <entry>selected</entry> - <entry>chaîne de caractères/tableau</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Les éléments cochés de la liste</entry> - </row> - <row> - <entry>options</entry> - <entry>Tableau associatif</entry> - <entry>Oui, à moins que vous n'utilisiez values et - output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau associatif de valeurs et - sorties</entry> - </row> - <row> - <entry>separator</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>chaîne de caractère pour séparer chaque case - à cocher</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Assigne les balises d'un checkbox à un tableau plutôt que de les afficher</entry> - </row> - <row> - <entry>labels</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Ajoute la balise <label>- à la sortie</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Assigne la sortie à un tableau dont chaque checkbox est un élément.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem> - <para> - Les attributs requis sont <parameter>values</parameter> et - <parameter>output</parameter>, à moins que vous utilisez - <parameter>options</parameter> à la place. - </para> - </listitem> - <listitem> - <para> - Tous les affichages sont conformes XHTML. - </para> - </listitem> - <listitem> - <para> - Tous les paramètres qui ne sont pas dans la liste ci-dessus - sont affichés sous la forme de paires nom/valeur dans chaque - balise <input> crées. - </para> - </listitem> - </itemizedlist> - - <example> - <title>{html_checkboxes}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( -'Joe Schmoe', -'Jack Smith', -'Jane Johnson', -'Charlie Brown') -); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - où index.tpl est : - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - ou bien, le code PHP est : - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_checkboxes', array( -1000 => 'Joe Schmoe', -1001 => 'Jack Smith', -1002 => 'Jane Johnson', -1003 => 'Charlie Brown') -); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - et index.tpl est : - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='id' options=$cust_checkboxes - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - Les deux examples donnent à l'écran : - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label> -<br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title> - Exemple avec une base de données (eg PEAR ou ADODB) : - </title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, contact_type, contact from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - Le résultat des requêtes de la base de données sera affiché avec : - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.html.radios"><varname>{html_radios}</varname></link> et - <link linkend="language.function.html.options"><varname>{html_options}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.image"> - <title>{html_image}</title> - <para> - <varname>{html_image}</varname> est une - <link linkend="language.custom.functions">fonction utilisateur</link> qui génère la balise - HTML pour une image. La hauteur et la longueur de l'image sont calculés - automatiquement depuis le fichier image si aucune n'est spécifiée. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>nom/chemin des images</entry> - </row> - <row> - <entry>height</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>Hauteur de l'image actuelle</emphasis></entry> - <entry>Hauteur de l'image à afficher</entry> - </row> - <row> - <entry>width</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>Longueur de l'image actuelle</emphasis></entry> - <entry>Longueur de l'image à afficher</entry> - </row> - <row> - <entry>basedir</entry> - <entry>chaîne de caractères</entry> - <entry>non</entry> - <entry><emphasis>racine du serveur web</emphasis></entry> - <entry>Répertoire depuis lequel baser le calcul des - chemins relatifs</entry> - </row> - <row> - <entry>alt</entry> - <entry>chaîne de caractères</entry> - <entry>non</entry> - <entry><emphasis><quote></quote></emphasis></entry> - <entry>Description alternative de l'image</entry> - </row> - <row> - <entry>href</entry> - <entry>chaîne de caractères</entry> - <entry>non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>valeur de l'attribut href, indiquant le lien vers l'image</entry> - </row> - <row> - <entry>path_prefix</entry> - <entry>chaîne de caractères</entry> - <entry>non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Préfixe pour le chemin de la sortie</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - <parameter>basedir</parameter> est le dossier de base dans lequel - les images sont basées. S'il n'est pas fourni, la variable d'environnement - <varname>$_ENV['DOCUMENT_ROOT']</varname> sera utilisée. - Si <link linkend="variable.security"><parameter>$security</parameter></link> - est activé, le chemin vers l'image doit être présent dans le - <link linkend="variable.secure.dir">dossier de sécurité</link>. - </para></listitem> - - <listitem><para> - <parameter>href</parameter> est la valeur de l'attribut href de l'image. - Si le lien est fourni, une balise <literal><a href="LINKVALUE"><a></literal> - sera placée autour de la balise de l'image. - </para> </listitem> - - <listitem><para> - <parameter>path_prefix</parameter> est un préfixe optionnel que vous pouvez fournir. - Il est utile si vous voulez fournir un nom de serveur différent pour l'image. - </para></listitem> - - <listitem><para> - Tous les paramètres qui ne sont pas dans la liste ci-dessus sont affichés - sous la forme d'une paire nom/valeur dans la balise - <literal><img></literal> créée. - </para></listitem> -</itemizedlist> - - <note> - <title>Note technique</title> - <para> - <varname>{html_image}</varname> requiert un accès au disque dur pour lire l'image et - calculer ses dimensions. Si vous n'utilisez pas un <link linkend="caching">cache</link>, - il est généralement préférable d'éviter d'utiliser <varname>{html_image}</varname> - et de laisser les balises images statiques pour de meilleures - performances. - </para> - </note> - <example> - <title>Exemple avec {html_image}</title> - <programlisting> -<![CDATA[ -{html_image file='pumpkin.jpg'} -{html_image file='/path/from/docroot/pumpkin.jpg'} -{html_image file='../path/relative/to/currdir/pumpkin.jpg'} -]]> - </programlisting> - <para> - L'affichage possible du template ci-dessus pourrait être : - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" /> -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,281 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.options"> - <title>{html_options}</title> - <para> - <varname>{html_options}</varname> est une - <link linkend="language.custom.functions">fonction personnalisée</link> - qui crée un groupe d'options avec les données fournies. Elle prend en charge - les éléments sélectionnés par défaut. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Oui, à moins que vous n'utilisiez - l'attribut options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau de valeurs pour les listes - déroulantes</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Oui, à moins que vous n'utilisiez - l'attribut options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau de libellés pour la liste - déroulante</entry> - </row> - <row> - <entry>selected</entry> - <entry>chaîne de caractères/tableau</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Les éléments sélectionnés</entry> - </row> - <row> - <entry>options</entry> - <entry>Tableau associatif</entry> - <entry>Oui, à moins que vous n'utilisiez option - et values</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau associatif valeur / libellé</entry> - </row> - <row> - <entry>name</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Nom du goupe d'options</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Les attributs requis sont - <parameter>values</parameter> et <parameter>output</parameter>, - à moins que vous n'utilisiez <parameter>options</parameter> à la place. - </para></listitem> - - <listitem><para> - Si l'attribut optionnel <parameter>name</parameter> est fourni, les balises - <literal><select></select></literal> seront créées, - sinon, UNIQUEMENT la liste <literal><option></literal> sera générée. - </para></listitem> - - <listitem><para> - Si la valeur fournie est un tableau, il sera traité comme un - <literal><optgroup></literal> HTML, et affichera les groupes. - La récursivité est supportée avec <literal><optgroup></literal>. - </para></listitem> - - <listitem><para> - Tous les paramètres qui ne sont pas dans la liste ci-dessus sont affichés - sous la forme de paire nom/valeur dans la balise - <literal><select></literal>. Ils seront ignorés si le paramètre optionnel - <parameter>name</parameter> n'est pas fourni. - </para></listitem> - - <listitem><para> - Tous les affichages sont conformes XHTML. - </para></listitem> - </itemizedlist> - - <example> - <title>Un tableau associatif avec l'attribut <varname>options</varname></title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') -); -$smarty->assign('mySelect', 9904); -?> -]]> - </programlisting> - <para> - Le template suivant génèrera une liste. Notez la présence - de l'attribut <parameter>name</parameter> qui crée les - balises <literal><select></literal>. - </para> - <programlisting> -<![CDATA[ -{html_options name=foo options=$myOptions selected=$mySelect} -]]> - </programlisting> - - <para> - L'affichage de l'exemple ci-dessus sera : - </para> - <screen> -<![CDATA[ -<select name="foo"> - <option label="Joe Schmoe" value="1800">Joe Schmoe</option> - <option label="Jack Smith" value="9904" selected="selected">Jack Smith</option> - <option label="Charlie Brown" value="2003">Charlie Brown</option> -</select> -]]> - </screen> - </example> - - <example> - <title>Tableaux séparés pour <varname>values</varname> et - <varname>ouptut</varname></title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('cust_ids', array(56,92,13)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 92); -?> -]]> - </programlisting> - <para> - Les tableaux ci-dessus seront affichés avec le template suivant - (notez l'utilisation de la fonction PHP <ulink url="&url.php-manual;function.count"> - <varname>count()</varname></ulink> en tant que modificateur pour - définir la taille du select). - </para> - <programlisting> -<![CDATA[ -<select name="customer_id" size="{$cust_names|@count}"> - {html_options values=$cust_ids output=$cust_names selected=$customer_id} -</select> -]]> - </programlisting> - <para> - L'exemple ci-dessous affichera : - </para> - <screen> -<![CDATA[ -<select name="customer_id"> - <option label="Joe Schmoe" value="56">Joe Schmoe</option> - <option label="Jack Smith" value="92" selected="selected">Jane Johnson</option> - <option label="Charlie Brown" value="13">Charlie Brown</option> -</select> -]]> - </screen> - </example> - <example> - <title>Exemple avec une base de données (e.g. ADODB ou PEAR)</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id -from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - Où le template pourrait être celui-ci. Notez l'utilisation du modificateur - <link linkend="language.modifier.truncate"><varname>truncate</varname></link>. - </para> - <programlisting> -<![CDATA[ -<select name="type_id"> - <option value='null'>-- none --</option> - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} -</select> -]]> - </programlisting> - </example> - - <example> - <title>Exemple avec <optgroup> </title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr['Sport'] = array(6 => 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - </programlisting> - <para>Le script ci-dessus et le template suivant - </para> - <programlisting> -<![CDATA[ -{html_options name=foo options=$myOptions selected=$mySelect} -]]> - </programlisting> - - <para> - affichera : - </para> - <screen> -<![CDATA[ -<select name="breakTime"> - <optgroup label="Sport"> - <option label="Golf" value="6">Golf</option> - <option label="Cricket" value="9">Cricket</option> - <option label="Swim" value="7" selected="selected">Swim</option> - </optgroup> - <optgroup label="Rest"> - <option label="Sauna" value="3">Sauna</option> - <option label="Massage" value="1">Massage</option> - </optgroup> -</select> -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.function.html.checkboxes"><varname>{html_checkboxes}</varname></link> - et - <link linkend="language.function.html.radios"><varname>{html_radios}</varname></link> - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,225 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.radios"> - <title>{html_radios}</title> - <para> - <varname>{html_radios}</varname> est une - <link linkend="language.custom.functions">fonction personnalisée</link> - qui crée des boutons radio html à partir des données fournies. Elle prend en - charge les éléments sélectionnés par défaut. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>Nom de la liste boutons radio</entry> - </row> - <row> - <entry>values</entry> - <entry>tableau</entry> - <entry>Oui, à moins que vous n'utilisiez l'attribut - options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le tableau des valeurs des boutons radio</entry> - </row> - <row> - <entry>output</entry> - <entry>tableau</entry> - <entry>Oui, à moins que vous n'utilisiez l'attribut - options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau de libellés pour les boutons radio</entry> - </row> - <row> - <entry>checked</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Les boutons radios sélectionnés</entry> - </row> - <row> - <entry>options</entry> - <entry>tableau associatif</entry> - <entry>Oui, à moins que vous n'utilisiez values - et outputs</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Un tableau associatif valeurs / libellés</entry> - </row> - <row> - <entry>separator</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Chaîne de séparation à placer entre les - boutons radio</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Assigne les balises des boutons radio à un tableau plutôt que de les afficher</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - Les attributs requis sont <parameter>values</parameter> et - <parameter>output</parameter>, à moins que vous n'utilisez - <parameter>options</parameter> à la place. - </para></listitem> - - <listitem><para> - Tous les affichages sont conformes XHTML. - </para></listitem> - - <listitem><para> - Tous les paramètres qui ne sont pas dans la liste ci-dessus sont - affichés sous la forme de paire nom/valeur dans la balise - <literal><input></literal> créées. - </para></listitem> - </itemizedlist> - - <example> - <title>{html_radios} : Première exemple</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> - -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} -]]> - </programlisting> - </example> - <example> - <title>{html_radios} : Deuxième exemple</title> - <programlisting> -<![CDATA[ -<?php - -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' options=$cust_radios - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - Les deux exemples ci-dessus afficheront : - </para> - <screen> -<![CDATA[ -<label for="id_1000"> - <input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br /> -<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br /> -<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br /> -<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title>{html_radios} - Exemple avec une base de données (e.g. PEAR ou ADODB):</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - La variable assignée depuis la base de données ci-dessus sera affichée - avec le template : - </para> - <programlisting> -<![CDATA[ -{html_radios name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.html.checkboxes"><varname>{html_checkboxes}</varname></link> et - <link linkend="language.function.html.options"><varname>{html_options}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,362 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.select.date"> - <title>{html_select_date}</title> - <para> - <varname>{html_select_date}</varname> est une - <link linkend="language.custom.functions">fonction personnalisée</link> - qui crée des listes déroulantes pour saisir la date. Elle peut afficher n'importe - quel jour, mois et année. - Tous les paramètres qui ne sont pas dans la liste ci-dessous sont - affichés sous la forme pair nom/valeur dans les balises - <literal><select></literal> des jours, mois et années. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>Date_</entry> - <entry>Avec quoi préfixer le nom de variable</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/YYYY-MM-DD</entry> - <entry>Non</entry> - <entry>la date courante au format unix YYYY-MM-DD - format</entry> - <entry>La date / heure à utiliser</entry> - </row> - <row> - <entry>start_year</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>current year</entry> - <entry>La première année dans la liste déroulante, soit - le numéro de l'année, soit un nombre relatif à l'année - courante (+/- N).</entry> - </row> - <row> - <entry>end_year</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>même chose que start_year</entry> - <entry>La dernière année dans la liste déroulante, soit - le numéro de l'année, soit un nombre relatif à l'année - courante (+/- N).</entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>true</entry> - <entry>Si l'on souhaite afficher les jours ou pas.</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>true</entry> - <entry>Si l'on souhaite afficher les mois ou pas.</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>true</entry> - <entry>Si l'on souhaite afficher les années ou pas.</entry> - </row> - <row> - <entry>month_format</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>%B</entry> - <entry>le format du mois (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>%02d</entry> - <entry>Le format du jour (sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>%d</entry> - <entry>Le format de la valeur du jour (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>false</entry> - <entry>S'il faut afficher l'année au format texte</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>false</entry> - <entry>Affiche les années dans l'ordre inverse</entry> - </row> - <row> - <entry>field_array</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry> - Si un nom est donné, la liste déroulante sera affichée - de telle façon que les résultats seront retournés à PHP - sous la forme nom[Day] (jour), nom[Year] (année), - nom[Month] (Mois). - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute un attribut size à la liste - déroulante des jours.</entry> - </row> - <row> - <entry>month_size</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute un attribut size à la liste - déroulante des mois.</entry> - </row> - <row> - <entry>year_size</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute un attribut size à la liste - déroulante des années.</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires à - toutes les balises select/input.</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select/input du jour.</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select/input du mois.</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select/input de l'année.</entry> - </row> - <row> - <entry>field_order</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>MDY</entry> - <entry>L'ordre dans lequel afficher les - listes déroulantes.</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>\n</entry> - <entry>la chaîne de caractères affichée entre les - différents champs.</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>%m</entry> - <entry>Le format strftime de la valeur des mois, par défaut %m - pour les numéros.</entry> - </row> - <row> - <entry>year_empty</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>S'il est renseigné, alors le premier élément de la boite de sélection - affiche le texte donné en tant que libellé et dispose de la valeur <quote></quote>. - Utile par exemple lorsque vous souhaitez que la boite de sélection affiche - <quote>Sélectionnez une année</quote>. - A savoir que vous pouvez spécifier des valeurs de la forme <quote>-MM-DD</quote> pour - l'attribut time afin d'indiquer une année non sélectionnée.</entry> - </row> - <row> - <entry>month_empty</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>S'il est renseigné, le premier élément de la boite de sélection - affiche le texte donné en tant que libellé et dispose de la valeur <quote></quote>. - A savoir que vous pouvez spécifier des valeurs de la forme <quote>YYYY--DD</quote> pour - l'attribut time afin d'indiquer qu'il manque le moi.</entry> - </row> - <row> - <entry>day_empty</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>S'il est renseigné, le premier élément de la boite de sélection - affiche le texte donné en tant que libellé et dispose de la valeur <quote></quote>. - A savoir que vous pouvez spécifier des valeurs de la forme <quote>YYYY-MM-</quote> pour - l'attribut time afin d'indiquer qu'il manque le jour. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <para> - Il y a une fonction PHP utile sur la - <link linkend="tips.dates">page des astuces sur les dates</link> pour convertir - les valeurs <varname>{html_select_date}</varname> en un timestamp. - </para> - </note> - - <example> - <title>{html_select_date} : Premier exemple</title> - <para>Code du template</para> - <programlisting> -<![CDATA[ -{html_select_date} -]]> - </programlisting> - <para> - Ce qui donne en sortie : - </para> - <screen> -<![CDATA[ -<select name="Date_Month"> - <option value="1">January</option> - <option value="2">February</option> - <option value="3">March</option> - ..... coupé ..... - <option value="10">October</option> - <option value="11">November</option> - <option value="12" selected="selected">December</option> -</select> -<select name="Date_Day"> - <option value="1">01</option> - <option value="2">02</option> - <option value="3">03</option> - ..... coupé ..... - <option value="11">11</option> - <option value="12">12</option> - <option value="13" selected>13</option> - <option value="14">14</option> - <option value="15">15</option> - ..... coupé ..... - <option value="29">29</option> - <option value="30">30</option> - <option value="31">31</option> -</select> -<select name="Date_Year"> - <option value="2006" selected="selected">2006</option> -</select> - -]]> - </screen> - </example> - <example> - <title>{html_select_date} : Deuxième exemple</title> - <programlisting> -<![CDATA[ -{* le démarage et la fin de l'année peuvent être relatif à l'année courante *} -{html_select_date prefix="StartDate" time=$time start_year="-5" - end_year="+1" display_days=false} -]]> - </programlisting> - <para> - Ce qui donne en sortie: (L'année courante est 2000) - </para> - <screen> -<![CDATA[ -<select name="StartDateMonth"> - <option value="1">January</option> - <option value="2">February</option> - ..... coupé ..... - <option value="11">November</option> - <option value="12" selected="selected">December</option> -</select> -<select name="StartDateYear"> - <option value="1995">1995</option> - ..... coupé ..... - <option value="1999">1999</option> - <option value="2000" selected="selected">2000</option> - <option value="2001">2001</option> -</select> -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.function.html.select.time"><varname>{html_select_time}</varname></link>, - <link linkend="language.modifier.date.format"><varname>date_format</varname></link>, - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link> et - les <link linkend="tips.dates">astuces sur les dates</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,232 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.select.time"> - <title>{html_select_time}</title> - <para> - <varname>{html_select_time}</varname> est une - <link linkend="language.custom.functions">fonction personnalisée</link> - qui crée des listes déroulantes pour saisir une heure. Elle prends en charge l'heure, - les minutes, les secondes et le méridian. - </para> - <para> - L'attribut <parameter>time</parameter> accepte comme paramètre différents - formats. Ils peuvent être un timestamp unique, une chaîne respectant le format - <literal>YYYYMMDDHHMMSS</literal> ou une chaîne - valide pour la fonction php - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>Time_</entry> - <entry>Par quoi préfixer la variable.</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>Non</entry> - <entry>current time</entry> - <entry>Quel jour / heure utiliser.</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>&true;</entry> - <entry>S'il faut afficher l'heure.</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>&true;</entry> - <entry>S'il faut afficher les minutes.</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>&true;</entry> - <entry>S'il faut afficher les secondes.</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>&true;</entry> - <entry>S'il faut afficher le méridian (am/pm)</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>&true;</entry> - <entry>S'il faut utiliser l'horloge 24 heure.</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>integer</entry> - <entry>Non</entry> - <entry>1</entry> - <entry>Intervalle des minutes dans la liste - déroulante</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>Non</entry> - <entry>1</entry> - <entry>Intervalle des secondes dans la liste - déroulante</entry> - </row> - <row> - <entry>field_array</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>n/a</entry> - <entry>Nom du tableau dans lequel les valeures - seront stockées.</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select / input.</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select / input de l'heure.</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select / input des minutes.</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select / input des secondes.</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>null</entry> - <entry>Ajoute des attributs supplémentaires aux balises - select / input du méridian.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>html_select_time</title> - <programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - À 9:20 et 23 secondes du matin, le template ci-dessus affichera : - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -...coupé... -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -...coupé... -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -...coupé... -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -...coupé... -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -...coupé... -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -...coupé... -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>, - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> et - les <link linkend="tips.dates">astuces sur les dates</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,253 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.html.table"> - <title>{html_table}</title> - <para> - <varname>{html_table}</varname> est une - <link linkend="language.custom.functions">fonction personnalisée</link> - qui transforme un tableau de données dans un tabeau HTML. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom de l'attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>tableau</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Tableau de données à parcourir</entry> - </row> - <row> - <entry>cols</entry> - <entry>mixed</entry> - <entry>Non</entry> - <entry><emphasis>3</emphasis></entry> - <entry> - Nombre de colonnes de la table ou une liste de noms de colonnes séparés par une - virgule ou un tableau contenant les noms des colonnes. Si l'attribut "cols" est vide, - mais que des lignes sont données, alors le nombre de colonnes sera calculé - en utilisant le nombre de lignes et le nombre d'éléments à afficher pour qu'il y - ait juste assez de colonnes pour afficher tous les éléments. Si les lignes et - les colonnes sont omis tous les deux, la valeur par défaut de "cols" sera appliquée, - à savoir 3. Si fourni en tant que liste ou tableau, le nombre de colonnes - est calculé par rapport au nombre d'éléments de la liste ou du tableau. - </entry> - </row> - <row> - <entry>rows</entry> - <entry>entier</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry> - Nombre de lignes de la table. Si l'attribut "rows" est vide, mais que des colonnes - sont données, alors le nombre de lignes sera calculée en utilisant le nombre de colonnes - et le nombre d'éléments à afficher pour qu'il y ait juste assez de lignes pour afficher - tous les éléments. - </entry> - </row> - <row> - <entry>inner</entry> - <entry>chaîne de caractères</entry> - <entry>No</entry> - <entry><emphasis>cols</emphasis></entry> - <entry> - La direction du rendu des éléments consécutifs dans la boucle du tableau. - <emphasis>cols</emphasis> signifie que les éléments doivent être - afficher colonnes par colonnes. - <emphasis>rows</emphasis> signifie que les éléments doivent être - afficher lignes par lignes. - </entry> - </row> - <row> - <entry>caption</entry> - <entry>chaîne de caractères</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry> - Texte à utiliser pour l'élément <literal><caption></literal> du tableau. - </entry> - </row> - <row> - <entry>table_attr</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>attributs pour la balise <literal><table></literal></entry> - </row> - <row> - <entry>th_attr</entry> - <entry>chaîne de caractères</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attributs pour les balises <literal><th></literal> - (les tableaux sont parcourus)</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attributs pour les balises <literal><tr></literal> (les tableaux sont parcourus)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Attributs pour les balises <literal><td></literal> - (les tableaux sont parcourus)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>Valeur avec laquelle remplir les cellules - restantes de la dernière ligne (si il y en a)</entry> - </row> - <row> - <entry>hdir</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>right</emphasis></entry> - <entry> - Direction du rendu. Les valeurs possibles sont <emphasis>right</emphasis> (left-to-right), - <emphasis>left</emphasis> (right-to-left) - </entry> - </row> - <row> - <entry>vdir</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>down</emphasis></entry> - <entry> - Direction des colonnes lors du rendu. Les valeurs possibles sont : - <emphasis>down</emphasis> (top-to-bottom), <emphasis>up</emphasis> - (bottom-to-top) - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - L'attribut <parameter>cols</parameter> détermine le nombre - de colonnes dans le tableau. - </para></listitem> - - <listitem><para> - Les valeurs <parameter>table_attr</parameter>, <parameter>tr_attr</parameter> - et <parameter>td_attr</parameter> déterminent les attributs fournis dans les balises - <literal><table></literal>, <literal><tr></literal> - et <literal><td></literal>. - </para></listitem> - - <listitem><para> - Si <parameter>tr_attr</parameter> ou <parameter>td_attr</parameter> - est un tableau, il sera parcourru. - </para></listitem> - - <listitem><para> - <parameter>trailpad</parameter> est la valeur utilisée pour compléter les cellules - vides de la dernière ligne s'il y en a. - </para></listitem> - </itemizedlist> - - <example> - <title>{html_table}</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Les variables assignées depuis PHP peuvent être affichées comme le démontre - cet exemple. - </para> - <programlisting> -<![CDATA[ -{**** Premier exemple ****} -{html_table loop=$data} - -<table border="1"> - <tbody> - <tr><td>1</td><td>2</td><td>3</td></tr> - <tr><td>4</td><td>5</td><td>6</td></tr> - <tr><td>7</td><td>8</td><td>9</td></tr> - </tbody> -</table> - - -{**** Deuxième exemple ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - -<table border="0"> - <tbody> - <tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> - <tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> - <tr><td>9</td><td> </td><td> </td><td> </td></tr> - </tbody> -</table> - - -{**** Troisième exemple ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - -<table border="1"> - <thead> - <tr> - <th>first</th><th>second</th><th>third</th><th>fourth</th> - </tr> - </thead> - <tbody> - <tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> - <tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> - <tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr> - </tbody> -</table> -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,174 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.mailto"> - <title>{mailto}</title> - <para> - <varname>{mailto}</varname> crée un lien <literal>mailto:</literal> - automatiquement encodé (optionnel). - L'encodage rend la tâche de récupération des e-mails sur votre - site plus difficiles aux "web spiders". - </para> - <note> - <title>Note technique</title> - <para> - Javascript n'est certainement pas la forme d'encodage la plus robuste. - Vous pouvez également utiliser un encodage hexadécimal. - </para> - </note> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>L'adresse email</entry> - </row> - <row> - <entry>text</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le texte à afficher, par défaut l'adresse email</entry> - </row> - <row> - <entry>encode</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>none</emphasis></entry> - <entry>Comment encoder l'adresse email. - <literal>none</literal>, <literal>hex</literal>, <literal>javascript</literal> - et <literal>javascript_charcode</literal> sont des valeurs correctes.</entry> - </row> - <row> - <entry>cc</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Les adresses email en copie (Cc). - Séparez les entrées par une virgule.</entry> - </row> - <row> - <entry>bcc</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Les adresses email en copie cachées (Bcc). - Séparez les entrées par une virgule.</entry> - </row> - <row> - <entry>subject</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Sujet de l'email.</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Newsgroup où poster le message. - Séparez les entrées par une virgule.</entry> - </row> - <row> - <entry>followupto</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Adresses où transmettre le message. - Séparez les entrées par une virgule. - </entry> - </row> - <row> - <entry>extra</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Toute information que vous souhaitez passer au lien, - par exemple une classe css.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Exemple avec {mailto}</title> - <programlisting> - <![CDATA[ -{mailto address="moi@example.com"} -<a href="mailto:moi@example.com" >moi@example.com</a> - -{mailto address="moi@example.com" text="envoie moi un email"} -<a href="mailto:moi@example.com" >envoie-moi un email</a> - -{mailto address="moi@example.com" encode="javascript"} -<script type="text/javascript" language="javascript"> - eval(unescape('%64%6f% ... coupé ...%61%3e%27%29%3b')) -</script> - -{mailto address="moi@example.com" encode="hex"} -<a href="mailto:%6d%65.. coupé..3%6f%6d">m&..coupé...#x6f;m</a> - -{mailto address="moi@example.com" subject="Hello to you!"} -<a href="mailto:moi@example.com?subject=Hello%20to%20you%21" >me@example.com</a> - -{mailto address="moi@example.com" cc="toi@example.com,eux@example.com"} -<a href="mailto:moi@example.com?cc=toi@example.com%2Ceux@example.com" >moi@example.com</a> - -{mailto address="moi@example.com" extra='class="email"'} -<a href="mailto:moi@example.com" class="email">moi@example.com</a> - -{mailto address="moi@example.com" encode="javascript_charcode"} -<script type="text/javascript" language="javascript"> -<!-- -{document.write(String.fromCharCode(60,97, ... coupé ....60,47,97,62))} -//--> -</script> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.modifier.escape"><varname>escape</varname></link>, - <link linkend="language.function.textformat"><varname>{textformat}</varname></link> - et <link linkend="tips.obfuscating.email">le camouflage des adresses E-mail</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,208 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.math"> - <title>{math}</title> - <para> - <varname>{math}</varname> autorise les designers de templates à effectuer - des opérations dans le template. - </para> - <itemizedlist> - <listitem><para> - Toute valeur numérique peut être utilisée dans une - opération, et le résultat sera affiché à la place des balises - "equation". - </para></listitem> - - <listitem><para> - Les variables utilisées dans l'opération sont passées en - tant que paramètre, et peuvent être des variables de templates ou des - valeurs statiques. - </para></listitem> - - <listitem><para>+, -, /, *, abs, ceil, cos, - exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt, - srans et tan sont tous des opérateurs valides. Voir la - documentation PHP pour plus d'informations sur ces fonctions - <ulink url="&url.php-manual;eval">mathématiques</ulink>. - </para></listitem> - - <listitem><para> - Si vous spécifiez l'attribut <parameter>assign</parameter>, la sortie - de la fonction <varname>{math}</varname> sera assignée à la variable - donnée plutôt que d'être directement affichée. - </para></listitem> - </itemizedlist> - - <note> - <title>Note technique</title> - <para> - <varname>{math}</varname> est une fonction coûteuse en terme de - performances, du fait qu'elle utilise la fonction PHP - <ulink url="&url.php-manual;eval"><varname>eval()</varname></ulink>. - Effectuer les calculs dans votre code PHP est beaucoup plus efficient, donc, chaque fois - que possible, effectuez vos calculs directement dans PHP et - <link linkend="api.assign">assignez</link> le résultat au template. - Evitez coût que coût les appels répétitifs à la fonction <varname>{math}</varname>, - comme on pourait le faire une - une boucle <link linkend="language.function.section"><varname>{section}</varname></link>. - </para> - </note> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>L'opération à éxécuter</entry> - </row> - <row> - <entry>format</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le format du résultat (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numeric</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Les variables de l'opération</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variable de template dans laquelle la sortie - sera assignée</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numeric</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Valeurs des variables de l'opération</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{math}</title> - <para> - <emphasis role="bold">Exemple a :</emphasis> - </para> - <programlisting> -<![CDATA[ -{* $height=4, $width=5 *} - -{math equation="x + y" x=$height y=$width} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - 9 -]]> - </screen> - <para> - <emphasis role="bold">Exemple b :</emphasis> - </para> - <programlisting> -<![CDATA[ -{* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - -{math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - 100 -]]> - </screen> - <para> - <emphasis role="bold">Exemple c :</emphasis> - </para> - <programlisting> -<![CDATA[ -{* vous pouvez utiliser des parenthèses *} - -{math equation="(( x + y ) / z )" x=2 y=10 z=2} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - 6 -]]> - </screen> - <para> - <emphasis role="bold">Exemple d :</emphasis> - </para> - <programlisting> -<![CDATA[ -{* vous pouvez définir un format sprintf pour l'affichage *} - -{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - 9.44 -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-popup-init.xml
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.popup.init"> - <title>{popup_init}</title> - <para> - <link linkend="language.function.popup">{popup}</link> - est une intégration de <ulink url="&url.overLib;">overLib</ulink>, - une librairie capable de réaliser des fenêtres surgissantes (nous parlerons de "popup"). - Ce type de fenêtre est utilisé pour apporter des informations - contextuelles, comme des infobulles d'aides ou astuces. - </para> - - <itemizedlist> - <listitem><para> - <varname>{popup_init}</varname> doit être appelé une <emphasis>seule fois</emphasis>, - de préférence dans la balise <literal><head></literal>, dans toutes les pages si vous - comptez utiliser la fonction <link linkend="language.function.popup"> - <varname>{popup}</varname></link>. - </para></listitem> - - <listitem><para> - Le chemin est relatif au script exécuté ou un chemin complet (i.e. non relatif au template). - </para></listitem> - - <listitem><para> - <ulink url="&url.overLib;">overLib</ulink> - a été écrit par Erik Bosrup, et le site de l'auteur/le téléchargement est disponible à l'adresse sur - <ulink url="&url.overLib;">&url.overLib;</ulink>. - </para></listitem> -</itemizedlist> - - <example> - <title>{popup_init}</title> - <programlisting> -<![CDATA[ -<head> -{* popup_init doit être appelé une fois en début de page. *} -{popup_init src='/javascripts/overlib.js'} - -{* exemple avec une url complète *} -{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'} -</head> - -// le premier exemple affichera -<head> - <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> - <script type="text/javascript" language="JavaScript" src="javascripts/overlib/overlib.js"></script> -</head> -]]> - </programlisting> - </example> - -<note> -<title>Validation XHTML</title> -<para><literal>{popup_init}</literal> ne valide pas en validation stricte et vous devriez - obtenir l'erreur : -<literal>document type does not allow element "div" here;</literal> -(i.e. une balise <literal><div></literal> dans la balise <literal><head></literal>). - -Ceci signifie que vous devez inclure les balises <literal><script></literal> et -<literal><div></literal> manuellement. -</para> -</note> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-popup.xml
Deleted
@@ -1,458 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.popup"> - <title>{popup}</title> - <para> - <varname>{popup}</varname> est utilisé pour créer une fenêtre popup javascript. - <link linkend="language.function.popup.init"><varname>{popup_init}</varname></link> - DOIT être appelé en premier pour que cela fonctionne. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>text</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le texte/code html à afficher dans la popup</entry> - </row> - <row> - <entry>trigger</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>onMouseOver</emphasis></entry> - <entry>L'évènement utilisé pour rendre la popup active, - onMouseOver ou onClick.</entry> - </row> - <row> - <entry>sticky</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Rends la popup active jusqu'a ce qu'elle soit - explicitement fermée.</entry> - </row> - <row> - <entry>caption</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Défini le libellé du titre</entry> - </row> - <row> - <entry>fgcolor</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Couleur interne de la popup</entry> - </row> - <row> - <entry>bgcolor</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Couleur de la bordure de la popup</entry> - </row> - <row> - <entry>textcolor</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Couleur du texte à l'intérieur de la - popup</entry> - </row> - <row> - <entry>capcolor</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Couleur du libellé de la popup</entry> - </row> - <row> - <entry>closecolor</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Couleur du texte de fermeture</entry> - </row> - <row> - <entry>textfont</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La police à utiliser dans le texte principal</entry> - </row> - <row> - <entry>captionfont</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La police à utiliser dans le libellé</entry> - </row> - <row> - <entry>closefont</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La police pour le texte de fermeture</entry> - </row> - <row> - <entry>textsize</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Taille de la police texte prinicpal</entry> - </row> - <row> - <entry>captionsize</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Taille de la police du libellé</entry> - </row> - <row> - <entry>closesize</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Taille de la police du bouton "fermer"</entry> - </row> - <row> - <entry>width</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Longeur de la popup</entry> - </row> - <row> - <entry>height</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Hauteur de la popup</entry> - </row> - <row> - <entry>left</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>La popup va à gauche de la souris</entry> - </row> - <row> - <entry>right</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>La popup va à droite de la souris</entry> - </row> - <row> - <entry>center</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>La popup est centrée par rapport à la - position de la souris</entry> - </row> - <row> - <entry>above</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>la popup est au dessus de la souris. NOTE: - possible uniquement si la hauteur est définie</entry> - </row> - <row> - <entry>below</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>La popup apparait en dessous de la souris</entry> - </row> - <row> - <entry>border</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Rends la bordure de la popup plus épaisse ou plus - fine</entry> - </row> - <row> - <entry>offsetx</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A quelle distance du curseur la popup apparaitra horizontalement.</entry> - </row> - <row> - <entry>offsety</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A quelle distance du curseur la popup apparaitra verticalement.</entry> - </row> - <row> - <entry>fgbackground</entry> - <entry>url vers l'image</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Une image à utiliser à la place de la couleur de - fonds dans la popup</entry> - </row> - <row> - <entry>bgbackground</entry> - <entry>url vers l'image</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Image à utiliser à la place de la bordure de la - popup. NOTE: vous veillerez à définir bgcolor à "" ou la - couleur apparaitra de même. NOTE: Lorsque vous avez un - lien de fermeture, Netscape effectuera un nouveau rendu - des cellules du tableau, affichant mal les éléments</entry> - </row> - <row> - <entry>closetext</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Définit le texte de fermeture par autre chose - que "Close"</entry> - </row> - <row> - <entry>noclose</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>N'affiche pas le bouton "Close" pour les fenêtres - "collantes". - </entry> - </row> - <row> - <entry>status</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Défini le texte de la barre de statut - du navigateur</entry> - </row> - <row> - <entry>autostatus</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Défini le texte de la barre de statut au contenu - de la popup. NOTE: Ecrase l'attribut status.</entry> - </row> - <row> - <entry>autostatuscap</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Défini le texte de la barre de statut au libellé - de la popup. NOTE: Ecrase l'attribut status.</entry> - </row> - <row> - <entry>inarray</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Indique à overLib de lire le texte à cet index dans le - tableau ol_text, situé dans overlib.js. Ce paramètre peut être - utilisé à la place de text.</entry> - </row> - <row> - <entry>caparray</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Indique à overlib de lire le libellé depuis le - tableau ol_caps</entry> - </row> - <row> - <entry>capicon</entry> - <entry>url</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Affiche l'image spécifiée avant le libellé de la - popup</entry> - </row> - <row> - <entry>snapx</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Aligne la popup sur une grille horizontale</entry> - </row> - <row> - <entry>snapy</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Aligne la popup sur une grille verticale</entry> - </row> - <row> - <entry>fixx</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Vérrouille la popup à une position horizontale. - Note: remplace les autres paramètres de position - horizontale</entry> - </row> - <row> - <entry>fixy</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Vérouille la popup à une position verticale - Note: remplace les autres paramètres de position - verticale</entry> - </row> - <row> - <entry>background</entry> - <entry>url</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Défini l'image à utiliser plutôt que le tableau - de fond</entry> - </row> - <row> - <entry>padx</entry> - <entry>entier, entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Écarte l'image de fond du reste des éléments - avec un espace horizontal, pour le positionnement du texte. - Note: c'est un attribut à deux paramètres.</entry> - </row> - <row> - <entry>pady</entry> - <entry>entier, entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Écarte l'image de fond du reste des éléments - avec un espace vertical, pour le positionnement du texte. - Note: c'est un attribut à deux paramètres.</entry> - </row> - <row> - <entry>fullhtml</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Vous autorise à placer du code html en tant que - contenu de la popup. Le code html est attendu dans - l'attribut text.</entry> - </row> - <row> - <entry>frame</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Contrôle la popup dans un cadre différent. - Voir la documentation d'overlib pour plus de détails - sur cette fonction.</entry> - </row> - <row> - <entry>function</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Appelle la fonction javascript spécifiée et prends - sa valeur de retour comme texte devant être affiché - dans la popup.</entry> - </row> - <row> - <entry>delay</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La popup se comporte comme une infobulle. - Elle disparaitra au bout d'un certain délai, en - millisecondes.</entry> - </row> - <row> - <entry>hauto</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Détermine automatiquement si la popup doit être - à gauche ou à droite de la souris</entry> - </row> - <row> - <entry>vauto</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Détermine automatiquement si la popup doit être - au-dessus ou au-dessous de la souris</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{popup}</title> - <programlisting> -<![CDATA[ -{* popup_init doit être appelé en haut de votre page *} -{popup_init src='/javascripts/overlib.js'} - -{* création d'un lien avec une popup qui apparait sur l'évènement onMouseOver *} -<A href="mypage.html" {popup text='Ce lien vous amène sur ma page!'}>mypage</A> - -{* vous pouvez utiliser du html, des liens, etc. dans vos popup *} -<a href="mypage.html" {popup sticky=true caption='Contenu de la page' -text="<ul><li>links</li><li>pages</li><li>images</li></ul>" -snapx=10 snapy=10 trigger='onClick'}>ma page</a> - -{* un popup via une cellule du tableau *} -<tr><td {popup caption='Détails de cette partie' text=$part_long_description}>{$part_number}</td></tr> -]]> - </programlisting> - </example> - <para> - Il y a également un autre bon exemple sur la page de la documentation de - <link linkend="language.function.capture">{capture}</link>. - </para> - <para> - Voir aussi - <link linkend="language.function.popup.init">{popup_init}</link> et - <ulink url="&url.overLib;">overLib</ulink>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,303 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.function.textformat"> - <title>{textformat}</title> - <para> - <varname>{textformat}</varname> est une - <link linkend="plugins.block.functions">fonction de bloc</link> - utilisée pour formater du texte. - Elle nettoie la chaîne de ses espaces et caractères spéciaux, puis - formate les paragraphes en ajustant ces derniers à une certaine limite, - puis en indentant les lignes. - </para> - <para> - Vous pouvez soit utiliser un style prédéfini, soit définir explicitement - chaque attribut. Actuellement, seul le style prédéfini <quote>email</quote> est - disponible. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nom attribut</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Style prédéfini</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>Non</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Taille de l'indentation pour chaque - ligne</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>Non</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Taille de l'indentation de la - première ligne</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>(single space)</emphasis></entry> - <entry>Le caractère (ou la chaîne) à utiliser pour - indenter</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>Non</entry> - <entry><emphasis>80</emphasis></entry> - <entry>À combien de caractères doit on ajuster chaque - ligne</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>Le caractère (ou chaîne de caractères) avec lequel - terminer les lignes</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>Si true, wrap réduira les lignes au caractère exact - au lieu d'ajuster à la fin d'un mot</entry> - </row> - <row> - <entry>assign</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le nom de la variable PHP dans laquelle la - sortie sera assignée</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{textformat}</title> - <programlisting> -<![CDATA[ -{textformat wrap=40} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - -This is foo. This is foo. This is foo. -This is foo. This is foo. This is foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo -foo. bar foo bar foo foo. bar foo bar -foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ -{textformat wrap=40 indent=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ -{textformat wrap=40 indent=4 indent_first=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ -{textformat style="email"} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ - -This is foo. This is foo. This is foo. This is foo. This is foo. This is -foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo -foo. -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.function.strip">{strip}</link> et - <link linkend="language.modifier.wordwrap">{wordwrap}</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers.xml
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.25 Maintainer: gerald Status: ready --> - -<chapter id="language.modifiers"> - <title>Modificateurs de variables</title> - <para> - Les modificateurs de variables peuvent être appliqués aux - <link linkend="language.syntax.variables">variables</link>, - <link linkend="language.custom.functions">fonctions utilisateurs</link> - ou chaînes de caractères. Pour appliquer un modificateur - de variable, tappez une valeure suivie de <literal>|</literal> - (pipe) et du nom du modificateur. Un modificateur de variable - est succeptible d'accepter des paramètres additionnels, qui en affectent - le comportement. Ces paramètres suivent le nom du modificateur et - sont séparés par un <literal>:</literal> (deux points). - <emphasis>Toutes les fonctions PHP peuvent être utilisées en tant que modifieurs - implicitement</emphasis> (plus d'informations ci-dessous) et les modificateurs peuvent - être <link linkend="language.combining.modifiers">combinés</link>. - </para> - <example> - <title>Exemple de modificateur</title> - <programlisting> -<![CDATA[ -{* applique un modificateur à une variable *} -{$titre|upper} - -{* modificateur avec paramètres *} -{$titre|truncate:40:'...'} - -{* applique un modificateur à un paramètre de fonction *} -{html_table loop=$mavariable|upper} -{* avec paramètres *} -{html_table loop=$mavariable|truncate:40:'...'} - -{* applique un modificateur à une chaine de caractères *} -{'foobar'|upper} - -{* utilise date_format pour mettre en forme la date *} -{$smarty.now|date_format:"%d/%m/%Y"} - -{* applique un modificateur à une fonction utilisateur *} -{mailto|upper address='smarty@example.com'} - -{* utilisation de la fonction PHP str_repeat *} -{'='|str_repeat:80} - -{* Compteur PHP *} -{$myArray|@count} - -{* mélange aléatoire des IP du serveur grâce à PHP *} -{$smarty.server.SERVER_ADDR|shuffle} - -(* ceci va mettre en majuscule et tronque le tableau *} -<select name="name_id"> - {html_options output=$myArray|upper|truncate:20} -</select> -]]> - </programlisting> - </example> - <itemizedlist> - <listitem> - <para> - Si vous appliquez un modificateur de variable à un tableau plutôt qu'à une - variable simple, le modificateur sera appliqué à chaque valeur du tableau. - Si vous souhaitez que le modificateur travaille réellement avec le tableau - en tant que tel, vous devez préfixer le nom du modificateur avec un symbole - <literal>@</literal> - <note> - <title>Exemple</title> - <para><literal>{$articleTitle|@count}</literal> - affichera le nombre - d'éléments dans le tableau <parameter>$articleTitle</parameter> en utilisant - la fonction PHP <ulink url="&url.php-manual;count"><varname>count()</varname></ulink> - comme modificateur. - </para> - </note> - </para> -</listitem> - - <listitem> - <para> - Les modificateurs sont chargés automatiquement depuis votre répertoire - de plugin <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link> - ou peuvent être enregistrés explicitement avec - <link linkend="api.register.modifier"><varname>register_modifier()</varname></link> ; - ceci est utile pour partager une fonction dans un scirpt PHP et les templates Smarty. - </para> -</listitem> - - <listitem> - <para> - Toutes les fonction PHP peuvent être utilisées comme modificateur, - sans autre déclaration, tel que dans l'exemple ci-dessus. - Cepdendant, l'utilisation de fonctions PHP comme modificateurs - contient deux petits pièges à éviter : - <itemizedlist> - <listitem><para>Le premier - quelques fois, l'ordre des paramètres de la fonction - n'est pas celui attendu. Le formattage de <literal>$foo</literal> avec - <literal>{"%2.f"|sprintf:$foo}</literal> fonctionne actuellement, mais - n'est pas aussi intuitif que - <literal>{$foo|string_format:"%2.f"}</literal>, ce qui est fournit par Smarty. - </para></listitem> - <listitem><para> - Le deuxième - Si <link linkend="variable.security"> - <parameter>$security</parameter></link> est activé, toutes les fonctions PHP - qui devront être utilisées comme modificateurs, doivent être déclarées dans l'élément - <literal>MODIFIER_FUNCS</literal> du tableau - <link linkend="variable.security.settings"> - <parameter>$security_settings</parameter></link>. - </para></listitem> - </itemizedlist> - </para></listitem> - </itemizedlist> - <para> - Voir aussi - <link linkend="api.register.modifier"><varname>register_modifier()</varname></link>, - <link linkend="language.combining.modifiers">les modificateurs combinés</link>. - et <link linkend="plugins">étendre Smarty avec des plugins</link>. - </para> - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <para> - Met la première lettre de chaque mot d'une variable en majuscule. - C'est l'équivalent de la fonction PHP - <ulink url="&url.php-manual;ucfirst"> - <varname>ucfirst()</varname></ulink>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>booléen</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>Détermine si oui ou non les mots contenant des chiffres - doivent être mis en majuscule</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Mise en majuscule</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('titreArticle', 'Le nouveau php5 est vraiment performant !'); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|capitalize} -{$titreArticle|capitalize:true} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Le nouveau php5 est vraiment performant ! -Le Nouveau php5 Est Vraiment Performant ! -Le Nouveau Php5 Est Vraiment Performant ! -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.lower"><varname>lower</varname></link> et - <link linkend="language.modifier.upper"><varname>upper</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.cat"> - <title>cat</title> - <para> - Cette valeur est concaténée à la variable donnée. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>cat</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Valeur à concaténer à la variable donnée.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>cat</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "'Les devins ont prévus que le monde existera toujours"); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:' demain.'} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Les devins ont prévus que le monde existera toujours demain. -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <para> - Compte le nombre de caractères dans une variable. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>Non</entry> - <entry>&false;</entry> - <entry>Si l'on doit inclure les espaces dans le compte.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>count_characters</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('titreArticle', 'Vagues de froid liées à la température.'); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|count_characters} -{$titreArticle|count_characters:true} -]]> - </programlisting> - <para> - Ce qui donne en sortie : - </para> - <screen> -<![CDATA[ -Vagues de froid liées à la température. -33 -39 -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>, - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> et - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - Compte le nombre de paragraphes dans une variable. - </para> - <example> - <title>count_paragraphs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$TitreArticle} -{$TitreArticle|count_paragraphs} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -La guerre apporte la paix, au prix de la vie des innocents. -1 -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>, - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> et - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - Compte le nombre de phrases dans une variable. - </para> - <example> - <title>count_sentences</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$TitreArticle} -{$TitreArticle|count_sentences} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Deux navires rentrent en collision -- Un des deux coule. Des vaches enragées blessent un fermier -à coups de haches. -2 -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>, - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> et - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - Compte le nombre de mots dans une variable. - </para> - <example> - <title>count_words</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('TitreArticle', 'Un anneau pour les gouverner tous.'); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|count_words} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Un anneau pour les gouverner tous. -6 -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>, - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> et - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,280 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.date.format"> - <title>date_format</title> - <para> - Formate une date / heure au format - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> donné. - Les dates peuvent être passées à smarty en tant que - <ulink url="&url.php-manual;function.time">timestamp</ulink> unix, - timestamp mysql ou comme chaîne quelconque contenant mois jour année - (interprétable par - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>). - Les concepteurs de templates peuvent utiliser <varname>date_format</varname> pour contrôler - parfaitement le format de sortie de la date. - Si la date passée à <varname>date_format</varname> est vide, et qu'un - second paramètre est donné, ce dernier sera utilisé comme étant la date à formater. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>%b %e, %Y</entry> - <entry>Format de sortie de la date.</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>n/a</entry> - <entry>Date par défaut si aucune n'est spécifiée en entrée.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <note> - <para> - Depuis Smarty 2.6.10, les valeurs numériques passées à <varname>date_format</varname> - sont <emphasis>toujours</emphasis> (excepté pour les timestamps mysql, voir - ci-dessous) interprétées comme un timestamp Unix. - </para> - <para> - Avant la version 2.6.10 de Smarty, les chaînes numériques qui étaient - également analysables par <varname>strtotime()</varname> - en PHP (comme <literal>YYYYMMDD</literal>), - étaient, parfois, dépendament de l'implémentation de <varname>strtotime()</varname>, - interprétées en tant que des chaînes date et NON des timestamps. - </para> - <para> - La seule exception est les timestamps MySQL : Ils sont uniquement numériques - et d'une longueur de 14 caractères (<literal>YYYYMMDDHHMMSS</literal>). Les timestamps - MySQL ont la priorité sur les timestamps Unix. - </para> - </note> - <note> - <title>Note pour les développeurs</title> - <para> - <varname>date_format</varname> est essentiellement un gestionnaire pour la fonction PHP - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink>. - Vous pourriez avoir plus ou moins d'options disponibles suivant le système sur lequel - la fonction PHP <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> - a été compilé. Vérifiez la documentation pour votre système pour avoir une liste complète - des options disponibles. - </para> - </note> - </para> - <example> - <title>date_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$config['date'] = '%I:%M %p'; -$config['time'] = '%H:%M:%S'; -$smarty->assign('config',$config); -$smarty->assign('hier', strtotime('-1 day')); - -?> -]]> - </programlisting> - <para> - Où le template est (utilisation de - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>) : - </para> - <programlisting> -<![CDATA[ -{$smarty.now|date_format} -{$smarty.now|date_format:"%D"} -{$smarty.now|date_format:$config.date} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:$config.time} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Jan 1, 2022 -02/06/01 -02:33 pm -Dec 31, 2021 -Monday, December 1, 2021 -14:33:00 -]]> - </screen> - </example> - <para> - Conversion de <command>date_format</command> : - <itemizedlist> - <listitem><para> - %a - Abréviation du jour de la semaine, selon les paramètres locaux. - </para></listitem> - <listitem><para> - %A - Nom du jour de la semaine, selon les paramètres locaux. - </para></listitem> - <listitem><para> - %b - Abréviation du nom du jour, selon les paramètres locaux. - </para></listitem> - <listitem><para> - %B - Nom complet du mois, selon les paramètres locaux. - </para></listitem> - <listitem><para> - %c - Préférences d'affichage selon les paramètres locaux. - </para></listitem> - <listitem><para> - %C - Siècle, (L'année divisée par 100 et tronquée comme un entier, de 00 à 99) - </para></listitem> - <listitem><para> - %d - Jour du mois, en tant que nombre décimal (de 01 à 31) - </para></listitem> - <listitem><para> - %D - même chose que %m/%d/%y - </para></listitem> - <listitem><para> - %e - Jour du mois en tant que nombre décimal. Un chiffre unique est précédé par - un espace (de 1 à 31) - </para></listitem> - <listitem><para> - %g - Position de la semaine dans le siècle [00,99] - </para></listitem> - <listitem><para> - %G - Position de la semaine, incluant le siècle [0000,9999] - </para></listitem> - <listitem><para> - %h - identique à %b - </para></listitem> - <listitem><para> - %H - L'heure en tant que décimale, en utilisant une horloge sur 24 (de 00 à 23) - </para></listitem> - <listitem><para> - %I - L'heure en tant que décimale en utilisant une horloge sur 12 (de 01 to 12) - </para></listitem> - <listitem><para> - %j - jour de l'année (de 001 à 366) - </para></listitem> - <listitem><para> - %k - Heure (horloge sur 24). Les numéros à un chiffre sont précédés d'un espace. (de 0 à 23) - </para></listitem> - <listitem><para> - %l - Heure (horloge sur 12). Les numéros à un chiffre sont précédés d'un espace. (de 1 à 12) - </para></listitem> - <listitem><para> - %m - Mois en tant que nombre décimal (de 01 à 12) - </para></listitem> - <listitem><para> - %M - Minute en tant que nombre décimal - </para></listitem> - <listitem><para> - %n - Retour chariot (nouvelle ligne). - </para></listitem> - <listitem><para> - %p - soit am soit pm selon l'heure donnée, ou alors leurs correspondances locales. - </para></listitem> - <listitem><para> - %r - heure en notation a.m. et p.m. - </para></listitem> - <listitem><para> - %R - Heure au format 24 heures - </para></listitem> - <listitem><para> - %S - Secondes en tant que nombre décimal. - </para></listitem> - <listitem><para> - %t - Caractère tabulation. - </para></listitem> - <listitem><para> - %T - Heure courante, équivalent à %H:%M:%S - </para></listitem> - <listitem><para> - %u - Jour de la semaine en tant que nombre décimal [1,7], ou 1 représente le lundi. - </para></listitem> - <listitem><para> - %U - Le numéro de la semaine en nombre décimal, utilisant le premier dimanche - en tant que premier jour de la première semaine. - </para></listitem> - <listitem><para> - %V - Le numéro de la semaine de l'année courante selon la norme ISO 8601:1988, - de 01 à 53, ou la semaine 1 est la première semaine qui dispose au minimum - de 4 jours dans l'année courante et ou Lundi est le premier jour - de cette semaine. - </para></listitem> - <listitem><para> - %w - Jour de la semaine en tant que nombre décimal, dimanche étant 0 - </para></listitem> - <listitem><para> - %W - Le numéro de la semaine de l'année courante en tant que nombre décimal, - ou Lundi est le premier jour de la première semaine. - </para></listitem> - <listitem><para> - %x - Représentation préférée de la date selon les paramètres locaux. - </para></listitem> - <listitem><para> - %X - Représentation préférée de l'heure selon les paramètres locaux, sans la - date. - </para></listitem> - <listitem><para> - %y - L'année en tant que nombre décimal, sans le siècle. (de 00 à 99) - </para></listitem> - <listitem><para> - %Y - L'année en tant que nombre décimal, avec le siècle. - </para></listitem> - <listitem><para> - %Z - Zone horraire, nom ou abréviation - </para></listitem> - <listitem><para> - %% - Un caractère litéral `%' - </para></listitem> - </itemizedlist> - </para> - <para> - Voir aussi - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>, - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink>, - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> et - les <link linkend="tips.dates">astuces sur les dates</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.default"> - <title>default</title> - <para> - Utilisé pour définir une valeur par défaut à une variable. - Si la variable est vide ou indéfinie, la valeur donnée est affichée - en lieu et place. <literal>default</literal> attends un seul argument. - </para> - <para> - <note> - <para> - Avec <ulink url="&url.php-manual;error_reporting"> - <varname>error_reporting(E_ALL)</varname></ulink>, les variables non - déclarées lanceront toujours une erreur dans le template. Cette fonction est - utile pour remplacer les chaînes vides ou de longueurs vides. - </para> - </note> - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>La valeur par défaut de la sortie si la variable - d'entrée est vide.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>Défaut</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('TitreArticle', 'Les portes de la moria restent fermées.'); -$smarty->assign('email',''); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$articleTitle|default:'Aucun titre'} -{$myTitle|default:'Aucun titre'} -{$email|default:'Aucune adresse email disponible'} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Les portes de la moria restent fermées. -Aucun titre -Aucune adresse email disponible -]]> - </screen> - </example> - <para> - Voir aussi - la <link linkend="tips.default.var.handling">gestion des variables par défaut</link> - et la <link linkend="tips.blank.var.handling">gestion de l'effacement des variables</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.escape"> - <title>escape</title> - <para> - <varname>escape</varname> est utilisé pour encoder / échapper - une variable pour quelles soient compatibles - avec les <literal>url</literal> <literal>html</literal>, avec les hexadécimaux, - avec les entités hexadécimales, avec <literal>javascript</literal> - et avec les e-mails. - Par défaut, ce paramètre est <literal>html</literal>. - </para> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Valeurs possibles</entry> - <entry>Défaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry> - <literal>html</literal>, <literal>htmlall</literal>, - <literal>url</literal>, - <literal>urlpathinfo</literal>, <literal>quotes</literal>, - <literal>hex</literal>, <literal>hexentity</literal>, - <literal>javascript</literal>, <literal>mail</literal> - </entry> - <entry><literal>html</literal></entry> - <entry>Format d'échappement à utiliser.</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry> - <literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, ... n'importe quel jeu de - caractères supporté par - <ulink url="&url.php-manual;htmlentities"><varname>htmlentities()</varname></ulink> - </entry> - <entry><literal>ISO-8859-1</literal></entry> - <entry>Le jeu de caractères passé à htmlentities()</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); -?> -]]> - </programlisting> - <para> - Voici des exemples de template avec <literal>escape</literal> suivis par l'affichage produit. - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'html'} {* échappe les caractères & " ' < > *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* échappe toutes les entités html *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -<a href="?title={$articleTitle|escape:'url'}">cliquez-ici</a> -<a href="?title=%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27">cliquez-ici</a> - -{$articleTitle|escape:'quotes'} -\'Stiff Opposition Expected to Casketless Funeral Plan\' - -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> -{$EmailAddress|escape:'mail'} {* ceci convertit un email en texte *} -<a href="mailto:%62%6f%..snip..%65%74">bob..snip..et</a> - -{'mail@example.com'|escape:'mail'} -smarty [AT] example [DOT] com -]]> - </programlisting> - </example> - - <example> - <title>Autres exemples</title> - <para>Les fonctions PHP peuvent être utilisées comme modificateurs, suivant la - configuration de - <link linkend="variable.security"> - <varname>$security</varname></link>. - </para> - <screen> -<![CDATA[ -{* le paramètre "rewind" enregistre l'emplacement courant *} -<a href="{$SCRIPT_NAME}?page=foo&rewind={$smarty.server.REQUEST_URI|urlencode}">click here</a> -]]> - </screen> - <para> - Et ceci est utile pour les e-mails, mais lisez plutôt la documentation de - <link linkend="language.function.mailto"><varname>{mailto}</varname></link></para> -<screen> -<![CDATA[ -{* email address mangled *} -<a href="mailto:{$EmailAddress|escape:'hex'}">{$EmailAddress|escape:'mail'}</a> -]]> - </screen> - </example> - <para> - Voir aussi la - l'<link linkend="language.escaping">anayse Smarty d'échappement</link>, - <link linkend="language.function.mailto"><varname>{mailto}</varname></link> et - le <link linkend="tips.obfuscating.email">mascage des adresses e-mail</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.indent"> - <title>indent</title> - <para> - Indente chacune des lignes d'une chaîne. Comme paramètre optionnel, - vous pouvez spécifier le nombre de caractères à utiliser pour l'indentation (4 par défaut). - Comme second paramètre optionnel, vous - pouvez spécifier le caractère à utiliser pour l'indentation (utilisez - <literal>"\t"</literal> pour les tabulations). - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry>4</entry> - <entry>De combien de caractères l'indentation doit être effectuée.</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry>(espace)</entry> - <entry>Caractère à utiliser pour l'indentation.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>indent</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); -?> -]]> -</programlisting> -<para> -Où le template est : -</para> -<programlisting> -<![CDATA[ -{$TitreArticle} - -{$TitreArticle|indent} - -{$TitreArticle|indent:10} - -{$TitreArticle|indent:1:"\t"} -]]> -</programlisting> -<para> -Affichera : -</para> -<screen> -<![CDATA[ -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. -]]> -</screen> -</example> -<para> - Voir aussi - <link linkend="language.modifier.strip"><varname>strip</varname></link>, - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> et - <link linkend="language.modifier.spacify"><varname>spacify</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - Met une variable en minuscules. C'est l'équivalent de la fonction PHP - <ulink url="&url.php-manual;strtolower"><varname>strtolower()</varname></ulink>. - </para> - <example> - <title>lower</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('TitreArticle', 'Deux Suspects Se Sont Sauvés.'); -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$TitreArticle} -{$TitreArticle|lower} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Deux Suspects Se Sont Sauvés. -deux suspects se sont sauvés. -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.upper"><varname>upper</varname></link> et - <link linkend="language.modifier.capitalize"><varname>capitalize</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - Transforme toutes les fins de lignes en balises <literal><br /></literal>. - Équivalent à la fonction PHP - <ulink url="&url.php-manual;nl2br"><varname>nl2br()</varname></ulink>. - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$TitreArticle|nl2br} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Pluie ou soleil attendu<br />aujourd'hui, nuit noire -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.wordwrap"><varname>word_wrap</varname></link>, - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> et - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <para> - Un rechercher / remplacer avec une expression régulière. Utilise la même - syntaxe que la fonction PHP - <ulink url="&url.php-manual;preg_replace"><varname>preg_replace()</varname></ulink>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Expression régulière à remplacer.</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractère</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>La chaîne de remplacement.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>regex_replace</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('TitreArticle', "L'infertilité est un maux grandissant\n, disent les experts."); - -?> -]]> -</programlisting> -<para> -Où le template est : -</para> -<programlisting> -<![CDATA[ -{* Remplace tous les retours chariot et les tabulation par une nouvelle ligne avec un espace *} - -{$TitreArticle} -{$TitreArticle|regex_replace:"/[\r\t\n]/":" "} -]]> -</programlisting> -<para> -Affichera : -</para> -<screen> -<![CDATA[ -L'infertilité est un maux grandissant -, disent les experts. -L'infertilité est un maux grandissant, disent les experts. -]]> -</screen> -</example> -<para> - Voir aussi - <link linkend="language.modifier.replace"><varname>replace</varname></link> et - <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,104 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.replace"> - <title>replace</title> - <para> - Un simple remplacement de chaîne de caractères. C'est l'équivalent - de la fonction PHP - <ulink url="&url.php-manual;str_replace"><varname>str_replace()</varname></ulink>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>chaîne à remplacer.</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>chaîne de remplacement.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>replace</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('titreArticle', "Child's Stool Great for Use in Garden."); - -?> -]]> -</programlisting> -<para> -Ou le template est : -</para> -<programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|replace:'Garden':'Vineyard'} -{$titreArticle|replace:' ':' '} -]]> -</programlisting> -<para> -Affichera : -</para> -<screen> -<![CDATA[ -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. -]]> -</screen> -</example> -<para> - Voir aussi - <link linkend="language.modifier.regex.replace"><varname>regex_replace</varname></link> et - <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.spacify"> - <title>spacify</title> - <para> - <varname>spacify</varname> est un moyen pour insérer un espace entre tous les caractères - d'une variable. Optionnellement, vous pouvez lui passer un caractère - (ou une chaîne) différent de l'espace à insérer. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry><emphasis>espace</emphasis></entry> - <entry>Ce qui est inséré entre chaque caractère de la variable.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>spacify</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('titreArticle', 'Quelque chose s\'est mal passé et à provoqué -cet accident, disent les experts'); - -?> -]]> -</programlisting> -<para> -Où le template est : -</para> -<programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|spacify} -{$titreArticle|spacify:"^^"} -]]> -</programlisting> -<para> -Affichera : -</para> -<screen> -<![CDATA[ -Quelquechose s'est mal passé et à provoqué cet accident, disent les experts. -Q u e l q u e c h o s e .... snip .... l e s e x p e r t s . -Q^^u^^e^^l^^q^^u.... snip .... ^r^^t^^s^^. -]]> -</screen> -</example> -<para> - Voir aussi - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> et - <link linkend="language.modifier.nl2br"><varname>nl2br</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.string.format"> - <title>string_format</title> - <para> - Un moyen pour formater les chaînes de caractères, comme par exemple les - nombres décimaux. Utilise la syntaxe de - <ulink url="&url.php-manual;sprintf"><varname>sprintf()</varname></ulink> - pour formater les éléments. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>chaîne de caractères</entry> - <entry>Oui</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Le format à utiliser (sprintf)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>string_format</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('nombre', 23.5787446); - -?> -]]> -</programlisting> -<para> -Où le template est : -</para> -<programlisting> -<![CDATA[ -{$nombre} -{$nombre|string_format:"%.2f"} -{$nombre|string_format:"%d"} -]]> -</programlisting> -<para> -Affichera : -</para> -<screen> -<![CDATA[ -23.5787446 -23.58 -24 -]]> -</screen> -</example> -<para> - Voir aussi - <link linkend="language.modifier.date.format"><varname>date_format</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <para> - Supprime toutes les balises, et plus généralement tout ce qui se trouve - entre <literal><</literal> et <literal>></literal>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>bool</entry> - <entry>Non</entry> - <entry>&true;</entry> - <entry>Si l'on remplace les éléments par ' ' ou par ''</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>strip_tags</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind Woman Gets <font face=\"helvetica\">New - Kidney</font> from Dad she Hasn't Seen in <b>years</b>." - ); - -?> -]]> -</programlisting> -<para> -Où le template est : -</para> -<programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|strip_tags} {* identique à {$titreArticle|strip_tags:true} *} -{$titreArticle|strip_tags:false} -]]> -</programlisting> -<para> -Affichera : -</para> -<screen> -<![CDATA[ -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> -</screen> -</example> -<para> - Voir aussi - <link linkend="language.modifier.replace"><varname>replace</varname></link> - et - <link linkend="language.modifier.regex.replace"><varname>regex_replace</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - Remplace les espaces multiples, les nouvelles lignes et les tabulations - par un espace simple, ou une chaîne donnée. - </para> - <note> - <title>Note</title> - <para> - Si vous voulez réaliser cette action sur un bloc complet du template, - utilisez la fonction <link linkend="language.function.strip"><varname>{strip}</varname></link>. - </para> - </note> - <example> - <title>strip</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('titreArticle', "Une réunion autour\n d'un feu de cheminée\t -est toujours agréable."); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|strip} -{$titreArticle|strip:' '} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> - <![CDATA[ -Une réunion autour - d'un feu de cheminée est toujours agréable. -Une réunion autour d'un feu de cheminée est toujours agréable. -Une réunion autour d'un feu de cheminée est toujours - agréable. -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.function.strip"><varname>{strip}</varname></link> et - <link linkend="language.modifier.truncate"><varname>truncate</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,132 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.truncate"> - <title>truncate</title> - <para> - Tronque une variable à une certaine longueur, par défaut 80. - Un second paramètre optionnel permet de spécifier une chaîne à afficher - à la fin de la variable une fois tronquée. Les caractères de fin sont - inclus dans la longueur de la chaîne à tronquer. Par défaut, - <varname>truncate</varname> tentera de couper la chaîne à la fin d'un mot. - Si vous voulez tronquer la chaîne au caractère exact, donnez la valeur &true; au - dernier paramètre optionnel. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry>80</entry> - <entry>Le nombre de caractères maximums au-delà duquel - on effectue le troncage</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractère</entry> - <entry>Non</entry> - <entry>...</entry> - <entry>Le texte qui remplace le texte tronqué. Sa longueur est - incluse dans la configuration de la longueur à tronquer.</entry> - </row> - <row> - <entry>3</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry>&false;</entry> - <entry>Détermine si le troncage est effectué sur - le dernier mot (&false;), ou au caractère exact (&true;). - </entry> - </row> - <row> - <entry>4</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry>&false;</entry> - <entry>Ceci détermine si le troncage intervient à la fin de la - chaîne (&false;), ou au milieu de la chaîne (&true;). Notez que si - ceci vaut &true;, alors les limites de mots sont ignorées.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>truncate</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('titreArticle', 'Deux soeurs réunies après 18 ans de séparation.'); - -?> -]]> -</programlisting> -<para> -Où le template est : -</para> -<programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|truncate} -{$titreArticle|truncate:30} -{$titreArticle|truncate:30:""} -{$titreArticle|truncate:30:"---"} -{$titreArticle|truncate:30:"":true} -{$titreArticle|truncate:30:"...":true} -{$articleTitle|truncate:30:'..':true:true} -]]> -</programlisting> -<para> -Ce qui donne en sortie : -</para> -<screen> -<![CDATA[ -Deux soeurs réunies après 18 ans de séparation. -Deux soeurs réunies après... -Deux soeurs réunies après -Deux soeurs réunies après--- -Deux soeurs réunies après 18 a -Deux soeurs réunies après 1... -Deux soeurs ... de séparation. -]]> -</screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - Met une variable en majuscules. C'est l'équivalent de la fonction PHP - <ulink url="&url.php-manual;strtoupper"><varname>strtoupper()</varname></ulink>. - </para> - <example> - <title>upper</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('titreArticle', "Si l'attaque n'est pas mise en place -rapidement, celà risque de durer longtemps."); -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} -{$titreArticle|upper} -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -Si l'attaque n'est pas mise en place rapidement, celà risque de durer longtemps. -SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CELÀ RISQUE DE DURER LONGTEMPS. - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.lower"><varname>lower</varname></link> et - <link linkend="language.modifier.capitalize"><varname>capitalize</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <para> - Ajuste une chaîne de caractères à une taille de colonne, par défaut 80. - Un second paramètre optionnel vous permet de spécifier la chaîne à utiliser - pour l'ajustement à la nouvelle ligne (retour chariot <literal>"\n"</literal> par défaut). - Par défaut, <varname>wordwrap</varname> tente un ajustement à la fin d'un mot. - Si vous voulez autoriser le découpage des mots pour un ajustement au caractère près, - passez &true; au troisième paramètre optionnel. Ceci est l'équivalent de la - fonction PHP <ulink url="&url.php-manual;wordwrap"><varname>wordwrap()</varname></ulink>. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Position du paramètre</entry> - <entry>Type</entry> - <entry>Requis</entry> - <entry>Defaut</entry> - <entry>Description</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>entier</entry> - <entry>Non</entry> - <entry>80</entry> - <entry>La nombre de colonnes sur lequel ajuster l'affichage.</entry> - </row> - <row> - <entry>2</entry> - <entry>chaîne de caractères</entry> - <entry>Non</entry> - <entry>\n</entry> - <entry>chaîne de caractères utilisée pour l'ajustement.</entry> - </row> - <row> - <entry>3</entry> - <entry>booléen</entry> - <entry>Non</entry> - <entry>&false;</entry> - <entry>Détermine si l'ajustement se fait en fin de mot - (&false;) ou au caractère exact (&true;).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>wordwrap</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{$titreArticle} - -{$titreArticle|wordwrap:30} - -{$titreArticle|wordwrap:20} - -{$titreArticle|wordwrap:30:"<br>\n"} - -{$titreArticle|wordwrap:30:"\n":true} -]]> - </programlisting> - <para> - L'exemple ci-dessus affichera : - </para> - <screen> -<![CDATA[ -Une femme aveugle obtient un nouveau rein d'un père qu'elle n'a pas vu depuis des années. - -Une femme aveugle obtient un -nouveau rein d'un père -qu'elle n'a pas vu depuis -des années. - -Une femme aveugle -obtient un nouveau -rein d'un père -qu'elle n'a pas vu -depuis des années. - -Une femme aveugle obtient un<br>; -nouveau rein d'un père<br>; -qu'elle n'a pas vu depuis<br>; -des années. - -Une femme aveugle obtient un n -ouveau rein d'un père qu'elle -n'a pas vu depuis des années. -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="language.modifier.nl2br"><varname>nl2br</varname></link> et - <link linkend="language.function.textformat"><varname>{textformat}</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-variables.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: gerald Status: ready --> - -<chapter id="language.variables"> - <title>Variables</title> - <para> - Smarty possède différents types de variables. Le type de ces variables dépend - du symbole qui les préfixe, ou des symboles qui les entourent. - </para> - <para> - Les variables de Smarty peuvent être soit affichées directement, soit utilisées - comme <link linkend="language.syntax.attributes">arguments</link> pour les - <link linkend="language.syntax.functions">fonctions</link> - et <link linkend="language.modifiers">modificateurs</link>, à l'intérieur d'expressions - conditionnelles, etc. - Pour afficher une variable, il suffit de l'entourer par des - <link linkend="variable.left.delimiter">délimiteurs</link> de - telle sorte qu'elle soit la seule chose qu'ils contiennent. - <example> - <title>Exemple de variables</title> - <programlisting> -<![CDATA[ -{$Nom} - -{$Contacts[enreg].Telephone} - -<body bgcolor="{#bgcolor#}"> -]]> -</programlisting> -</example> -<note> - <title>Astuce</title> - <para>La façon de la simple d'analyser les variables Smarty est - d'utiliser la - <link linkend="chapter.debugging.console">console de débogage</link>. - </para> -</note> - </para> - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,201 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<sect1 id="language.assigned.variables"> - <title>Variables assignées depuis PHP</title> - <para> - Pour utiliser une variables <link linkend="api.assign">assignées</link> depuis PHP, il - faut la préfixer par le symbole dollar <literal>$</literal>. - Les variables asignées depuis un template grâce à la fonction - <link linkend="language.function.assign"><varname>{assign}</varname></link> sont - manipulées de la même façon. - </para> - <example> - <title>Variables assignées</title> - <para>Script PHP</para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; - -$smarty->assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Où <filename>index.tpl</filename> est : - </para> - <programlisting> -<![CDATA[ -Bonjour {$firstname} {$lastname}, heureux de voir que tu es arrivé ici. -<br /> -{* ceci ne fonctionnera pas car $vars est sensible à la casse *} -Cette semaine, le meeting est à {$meetingplace}. -{* ceci fonctionnera *} -Cette semaine, le meeting est à {$meetingPlace}. -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -Bienvenue Doug, heureux de voir que tu es arrivé ici. -<br /> -Cette semaine, le meeting est à . -Cette semaine, le meeting est à New York. -]]> - </screen> - </example> - - <sect2 id="language.variables.assoc.arrays"> - <title>Tableaux associatifs</title> - <para> - Vous pouvez également utiliser des variables sous forme de tableaux - associatifs assignées depuis PHP en en spécifiant la clef, - après le symbole '.' (point). - </para> - <example> - <title>Accéder aux variables de tableaux associatifs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Où <filename>index.tpl</filename> est : - </para> - <programlisting> -<![CDATA[ -{$Contacts.fax}<br /> -{$Contacts.email}<br /> -{* vous pouvez afficher des tableaux de tableaux *} -{$Contacts.phone.home}<br /> -{$Contacts.phone.cell}<br /> -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - - <sect2 id="language.variables.array.indexes"> - <title>Tableaux indexés</title> - <para> - Vous pouvez utiliser des tableaux indexés de la même façon - que vous le faites en PHP. - </para> - <example> - <title>Accès aux tableaux grâce à l'index</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Où <filename>index.tpl</filename> est : - </para> - <programlisting> -<![CDATA[ -{$Contacts[0]}<br /> -{$Contacts[1]}<br /> -{* Vous pouvez également afficher des tableaux *} -{$Contacts[2][0]}<br /> -{$Contacts[2][1]}<br /> -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.objects"> - <title>Objets</title> - <para> - Les attributs des <link linkend="advanced.features.objects">objets</link> - assignés depuis PHP peuvent être utilisées en - en spécifiant le nom après le symbole <literal>-></literal>. - </para> - <example> - <title>Accéder aux attributs des objets</title> - <programlisting> -<![CDATA[ -nom: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - Affichera : - </para> - <screen> -<![CDATA[ -nom: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.example.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="language.config.variables"> - <title>Variables chargées depuis des fichiers de configuration</title> - <para> - Les variables récupérées depuis un - <link linkend="config.files">fichier de configuration</link> sont utilisées - entourées du symbole dièse (#), ou via la variable spéciale smarty - <link linkend="language.variables.smarty.config"><parameter>$smarty.config</parameter></link>. - La dernière synthaxe est utile pour mettre entre guillemets les valeurs des attributs. - </para> - <example> - <title>variables de fichiers de configuration</title> - <para> - Exemple de fichier de configuration - <filename>foo.conf</filename> : - </para> - <programlisting> -<![CDATA[ -pageTitle = "C'est le mien" -bodyBgColor = '#eeeeee' -tableBorderSize = 3 -tableBgColor = '#bbbbbb' -rowBgColor = '#cccccc' -]]> - </programlisting> - <para> - Exemple de template : - </para> - <programlisting> -<![CDATA[ -{config_load file='foo.conf'} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> -<td>First</td> -<td>Last</td> -<td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - Un template démontrant la méthode - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link> : - </para> - <programlisting> -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> -<td>First</td> -<td>Last</td> -<td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - Les deux exemples ci-dessus afficheront : - </para> - <screen> -<![CDATA[ -<html> -<title>C'est le mien</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> -<td>First</td> -<td>Last</td> -<td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </screen> - </example> - <para> - Les variables de fichier de configuration ne peuvent être utilisés tant - qu'elles n'ont pas été chargées. Cette procédure est expliquée - plus loin dans le document, voir <link - linkend="api.config.load"><varname>{config_load}</varname></link>. - </para> - <para> - Voir aussi - les <link linkend="language.syntax.variables">variables</link> et - les <link linkend="language.variables.smarty">variables réservées $smarty</link>. -</para> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,227 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> - -<sect1 id="language.variables.smarty"> - <title>Variable réservée {$smarty}</title> - <para> - La variable PHP réservée <parameter>{$smarty}</parameter> peut être - utilisée pour accéder à plusieurs - variables d'environnements. En voici la liste complète. - </para> - - <sect2 id="language.variables.smarty.request"> - <title>Variables de requête</title> - <para> - Les <ulink url="&url.php-manual;reserved.variables">variables de requête</ulink> - comme <literal>$_GET</literal>, <literal>$_POST</literal>, - <literal>$_COOKIE</literal>, <literal>$_SERVER</literal>, - <literal>$_ENV</literal> et <literal>$_SESSION</literal> - (voir - <link linkend="variable.request.vars.order"><varname>$request_vars_order</varname></link> - et - <link linkend="variable.request.use.auto.globals"><varname>$request_use_auto_globals</varname></link>) - peuvent être utilisées comme dans l'exemple suivant : - </para> - <example> - <title>Afficher des variables de requête</title> - <programlisting> -<![CDATA[ -{* Affiche la valeur de page dans l'url ($_GET) http://www.example.com/index.php?page=foo *} -{$smarty.get.page} - -{* affiche la variable "page" récupérée depuis un formulaire ($_POST['page']) *} -{$smarty.post.page} - -{* affiche la valeur du cookie "utilisateur" ($_COOKIE['username']) *} -{$smarty.cookies.utilisateur} - -{* affiche la variable serveur "SERVER_NAME" ($_SERVER['SERVER_NAME']) *} -{$smarty.server.SERVER_NAME} - -{* affiche la variable d'environnement "PATH" *} -{$smarty.env.PATH} - -{* affiche la variable de session PHP "id" ($_SESSION['id']) *} -{$smarty.session.id} - -{* affiche la variable "utilisateur" du regroupement de get/post/cookies/server/env *} -{$smarty.request.utilisateur} -]]> - </programlisting> - </example> - <note> - <para> - Pour des raisons historiques, <parameter>{$SCRIPT_NAME}</parameter> peut être accédé - directement, cependant, <parameter>{$smarty.server.SCRIPT_NAME}</parameter> est - la solution proposée pour accéder à cette valeur. - </para> - <programlisting> -<![CDATA[ -<a href="{$SCRIPT_NAME}?page=smarty">click me</a> -<a href="{$smarty.server.SCRIPT_NAME}?page=smarty">click me</a> -]]> - </programlisting> - </note> - </sect2> - - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - Le <ulink url="&url.php-manual;function.time">timestamp</ulink> - courant peut être récupéré grâce à <parameter>{$smarty.now}</parameter>. - La valeur correspond au nombre de secondes écoulées depuis - Epoch (1 Janvier 1970) et peut être passé directement au modificateur - de variable date - <link linkend="language.modifier.date.format"><varname>date_format</varname></link> - à des fins d'affichage. Notez que - <ulink url="&url.php-manual;function.time"><varname>time()</varname></ulink> - est appelé à chaque invocation, i.e. - un script qui prend 3 secondes à s'exécuter avec <parameter>$smarty.now</parameter> - au début et à la fin montrera les 3 secondes de différence. - <example> - <title>Utilisation de {$smarty.now}</title> - <programlisting> -<![CDATA[ -{* utilise le modificateur de variable date_format pour afficher la date et heure *} -{$smarty.now|date_format:'%d-%m-%Y %H:%M:%S'} -]]> - </programlisting> - </example> - </para> - </sect2> - - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - Vous pouvez directement accéder aux constantes PHP. - Voir aussi les <link linkend="smarty.constants">constantes smarty</link>. - </para> - <informalexample> - <programlisting role="php"> -<![CDATA[ -// la constante définie dans PHP -define('_MY_CONST_VAL','CHERRIES'); -]]> -</programlisting> -</informalexample> -<para>Affiche la constante dans un template comme :</para> -<informalexample> - <programlisting> -<![CDATA[ -{* la sortie de la constante PHP dans le template *} -{$smarty.const._MA_CONSTANTE_} -]]> -</programlisting> -</informalexample> - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - La sortie du template réalisée via - <link linkend="language.function.capture"><varname>{capture}..{/capture}</varname></link> - peut être récupérée par l'intermédiaire de la variable - <parameter>{$smarty.capture}</parameter>. Voir la section - sur <link linkend="language.function.capture"><varname>{capture}</varname></link> pour un - exemple à ce sujet. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - La variable <parameter>{$smarty.config}</parameter> peut être utilisée pour désigner une - <link linkend="language.config.variables">variable d'un fichier de configuration</link>. - <parameter>{$smarty.config.foo}</parameter> est un synonyme de - <parameter>{#foo#}</parameter>. Voir la section - <link linkend="language.function.config.load">{config_load}</link> - pour un exemple à ce sujet. - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}, {$smarty.foreach}</title> - <para> - La variable <link linkend="language.function.section"><varname>{section}</varname></link> - peut être utilisée pour accéder aux propriétés - des boucles <parameter>{$smarty.section}</parameter> et - <parameter>{$smarty.foreach}</parameter>. Voir la documentation de - <link linkend="language.function.section"><varname>{section}</varname></link> et - <link linkend="language.function.foreach"><varname>{foreach}</varname></link>. - Ils ont des valeurs vraiment utiles comme - <varname>.first</varname>, <varname>.index</varname>, etc. - </para> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Retourne le nom du template courant. Cet exemple montre le <filename>container.tpl</filename> - ainsi que le <filename>banner.tpl</filename> inclu avec - <parameter>{$smarty.template}</parameter>. - </para> - <programlisting> -<![CDATA[ -<b>Le conteneur principal est {$smarty.template}</b> -{include file='banner.tpl'} -]]> - </programlisting> - <para> - Affichera : - </para> - <programlisting> -<![CDATA[ -<b>Le conteneur principal est container.tpl</b> -banner.tpl -]]> - </programlisting> - </sect2> - - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - Retourne la version de Smarty ayant servie à compiler le template. - </para> - <programlisting> -<![CDATA[ -<div id="footer">Généré par Smarty {$smarty.version}</div> -]]> - </programlisting> - </sect2> - - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}, {$smarty.rdelim}</title> - <para> - Ces variables sont utilisées pour afficher le délémiteur gauche et le délimiteur droit. Lisez aussi - la partie <link linkend="language.function.ldelim"> - <varname>{ldelim},{rdelim}</varname></link>. - </para> - <para> - Voir aussi - les <link linkend="language.syntax.variables">variables</link> et - les <link linkend="language.config.variables">variables de configuration</link>. - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/getting-started.xml
Deleted
@@ -1,600 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> - -<part id="getting.started"> - <title>Pour commencer</title> - - <chapter id="what.is.smarty"> - <title>Qu'est-ce que Smarty ?</title> - <para> - Smarty est un moteur de template pour PHP. Plus précisément, il facilite - la séparation entre la logique applicative et la présentation. - Celà s'explique plus facilement dans une situation où le - programmeur et le designer de templates jouent des rôles différents, ou, - comme la plupart du temps, sont deux personnes distinctes. - </para> - <para> - Supposons par exemple que vous concevez une page Web qui affiche un - article de newsletter. Le titre, le sous-titre, l'auteur et le corps - sont des éléments de contenu, ils ne contiennent aucune information - concernant la présentation. Ils sont transmis à Smarty par l'application, - puis le designer de templates éditent les templates et utilisent une - combinaison de balises HTML et de balises de templates pour formater - la présentation de ces éléments (tableaux HTML, couleurs d'arrière-plan, - tailles des polices, feuilles de styles, etc.). Un beau jour le programmeur - a besoin de changer la façon dont le contenu de l'article - est récupéré (un changement dans la logique applicative). Ce - changement n'affecte pas le designer de templates, le contenu - arrivera toujours au template de la même façon. De même, si le - le designer de templates veut changer complétement l'apparence - du template, aucun changement dans la logique de l'application - n'est nécessaire. Ainsi le programmeur peut changer la logique - de l'application sans restructurer les templates, et le designer - de templates peut changer les templates sans briser la logique - applicative. - </para> - <para> - Un des objectifs de Smarty est la séparation de la logique métier de la - logique de présentation. Celà signifie que les templates peuvent contenir - des traitements, du moment qu'il soit relatif à de la présentation. - Inclure d'autres templates, alterner les couleurs des lignes - d'un tableau, mettre du texte en majuscule, parcourir un tableau de données - pour l'afficher, etc. sont toutes des actions relatives à du traitement - de présentation. Celà ne signifie pas que Smarty requiert une telle séparation - de votre part. Smarty ne sais pas quoi est quoi, c'est donc à vous de placer - la logique de présentation dans vos templates. Ainsi, si vous - <emphasis>ne désirez pas</emphasis> - disposer de logique métier dans vos templates, placez tous vos contenus - dans des variables au format texte uniquement. - </para> - <para> - L'un des aspects unique de Smarty est la compilation des templates. - Celà signifie que Smarty lit les templates et crée des scripts PHP à partir - de ces derniers. Une fois créés, ils sont exécutés. - Il n'y a donc pas d'analyse coûteuse de template à chaque requête, - et les templates peuvent bénéficier des solutions de cache PHP - comme Zend Accelerator (<ulink url="&url.zend;">&url.zend;</ulink>) ou - PHP Accelerator. - </para> - <para> - Quelques caractéristiques de Smarty : - </para> - <itemizedlist> - <listitem> - <para> - Il est très rapide. - </para> - </listitem> - <listitem> - <para> - Il est efficace, le parser PHP s'occupe du sale travail. - </para> - </listitem> - <listitem> - <para> - Pas d'analyse de template coûteuse, une seule compilation. - </para> - </listitem> - <listitem> - <para> - Il sait ne recompiler que les fichiers de templates qui ont été modifiés. - </para> - </listitem> - <listitem> - <para> - Vous pouvez créer des <link linkend="language.custom.functions"> - fonctions utilisateurs</link> et des <link linkend="language.modifiers"> - modificateurs de variables</link> personnalisés, le langage de - template est donc extrémement extensible. - </para> - </listitem> - <listitem> - <para> - Syntaxe des templates configurable, vous - pouvez utiliser {}, {{}}, <!--{}-->, etc. comme - <link linkend="variable.left.delimiter">délimiteurs tag</link>. - </para> - </listitem> - <listitem> - <para> - Les instructions <link - linkend="language.function.if">if/elseif/else/endif</link> - sont passées au parser PHP, la syntaxe de l'expression {if...} - peut être aussi simple ou aussi complexe que vous - le désirez. - </para> - </listitem> - <listitem> - <para> - Imbrication illimitée de <link linkend="language.function.section">sections</link>, de 'if', etc. autorisée. - </para> - </listitem> - <listitem> - <para> - Il est possible d'inclure du <link linkend="language.function.php">code PHP</link> - directement dans vos templates, bien que celà ne soit pas obligatoire - (ni conseillé), vû que le moteur est extensible. - </para> - </listitem> - <listitem> - <para> - Support de <link linkend="caching">cache</link> intégré. - </para> - </listitem> - <listitem> - <para> - Sources de <link - linkend="template.resources">templates</link> arbitraires. - </para> - </listitem> - <listitem> - <para> - Fonctions de <link - linkend="section.template.cache.handler.func">gestion de cache</link> personnalisables. - </para> - </listitem> - <listitem> - <para> - Architecture de <link linkend="plugins">plugins</link> - </para> - </listitem> - </itemizedlist> - </chapter> - - <chapter id="installation"> - <title>Installation</title> - - <sect1 id="installation.requirements"> - <title>Ce dont vous avez besoin</title> - <para> - Smarty nécessite un serveur Web utilisant PHP 4.0.6 ou supérieur. - </para> - </sect1> - - <sect1 id="installing.smarty.basic"> - <title>Installation de base</title> - <para> - Copiez les fichiers bibliothèques de Smarty du sous-dossier - <filename>/libs/</filename> de la distribution à un emplacement - accessible à PHP. Ce sont des fichiers PHP que vous NE DEVEZ PAS - modifier. Ils sont partagés par toutes les applications et ne seront - mis à jour que lorsque vous installerez une nouvelle version de - Smarty. - </para> - <example> - <title>fichiers nécessaires de la bibliothèque SMARTY</title> - <screen> -<![CDATA[ -Smarty.class.php -Smarty_Compiler.class.php -Config_File.class.php -debug.tpl -/internals/*.php (tous) -/plugins/*.php (tous doivent être sûr, peut-être votre site n'a besoin seulement que d'un sous-ensemble) -]]> - </screen> - </example> - - <para> - Smarty utilise une <ulink url="&url.php-manual;define">constante</ulink> PHP appelée <link - linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> qui - représente le <emphasis role="bold">chemin complet</emphasis> de la bibliothèque Smarty. - En fait, si votre application trouve le fichier - <filename>Smarty.class.php</filename>, vous n'aurez pas - besoin de définir la variable - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>, - Smarty s'en chargera pour vous. - En revanche, si <filename>Smarty.class.php</filename> - n'est pas dans votre répertoire d'inclusion ou que vous ne - donnez pas un chemin absolu à votre application, vous - devez définir <constant>SMARTY_DIR</constant> explicitement. - <constant>SMARTY_DIR</constant> - <emphasis role="bold">doit</emphasis> avoir être terminé par un slash. - </para> - - <example> - <title>Créer une instance de Smarty</title> - <para> - Voici comment créer une instance de Smarty dans vos scripts PHP : - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// Note : Smarty a un 'S' majuscule -require_once('Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <para> - Essayez de lancer le script ci-dessus. Si vous obtenez une erreur indiquant - que le fichier <filename>Smarty.class.php</filename> n'est pas trouvé, - tentez l'une des actions suivantes : - </para> - - <example> - <title>Définition manuelle de la constante SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Style *nix (notez le 'S' majuscule) -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// Style Windows -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>Définir le chemin absolu au fichier de la bibliothèque</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Style *nix (notez le 'S' majuscule) -require_once('/usr/local/lib/php/Smarty-v.e.r/libs/Smarty.class.php'); - -// Style Windows -require_once('c:/webroot/libs/Smarty-v.e.r/libs/Smarty.class.php'); - -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>Ajout du dossier contenant la bibliothèque à l'include_path de PHP</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Editez votre fichier php.ini, ajoutez le dossier contenant la -// bibliothèque Smarty à l'include_path et redémarrez le serveur web. -// Puis, ce qui suit devrait fonctionner : -require_once('Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <para> - Maintenant que les fichiers de la librairie sont en place, - il est temps de définir les répertoires de Smarty, pour votre application. - </para> - <para> - Smarty a besoin de quatre répertoires qui sont, par défaut, - <filename class="directory">'templates/'</filename>, - <filename class="directory">'templates_c/'</filename>, - <filename class="directory">'configs/'</filename> et - <filename class="directory">'cache/'</filename>. - </para> - <para> - Chacun d'entre eux peut être défini - via les attributs <link linkend="variable.template.dir"> - <varname>$template_dir</varname></link>, - <link linkend="variable.compile.dir"> - <varname>$compile_dir</varname></link>, <link linkend="variable.config.dir"> - <varname>$config_dir</varname></link> et - <link linkend="variable.cache.dir"> - <varname>$cache_dir</varname></link> respectivement. Il est vivement - conseillé que vous régliez ces répertoires séparément pour chaque - application qui utilise Smarty. - </para> - <para> - Assurez-vous de bien connaître chemin de la racine - de votre arborescence Web. Dans notre exemple, la racine - est <filename - class="directory">/web/www.example.com/docs/</filename>. Seul Smarty - accède aux répertoires en question, et jamais le serveur Web. - Pour des raisons de sécurité, il est donc conseillé de - sortir ces répertoires dans un répertoire - <emphasis>en dehors</emphasis> de l'arborescence - Web. - </para> - <para> - Dans notre exemple d'installation, nous allons régler l'environnement - de Smarty pour une application de livre d'or. Nous avons ici choisi - une application principalement pour mettre en évidence une - convention de nommage des répertoires. Vous pouvez utiliser le même - environnement pour n'importe quelle autre application, il suffit de - remplacer <quote>livredor</quote> avec le nom de votre application. - Nous allons mettre nos répertoires Smarty dans - <filename - class="directory">/web/www.example.com/smarty/livredor/</filename>. - </para> - <para> - Vous allez avoir besoin d'au moins un fichier à la racine de - l'arborescence Web, - il s'agit du script auquel l'internaute a accès. Nous allons l'appeler - <emphasis>'index.php'</emphasis> et le placer dans un sous-répertoire - appelé <filename class="directory">/livredor/</filename>. - </para> - - <note> - <title>Technical Note</title> - <para> - Il est pratique de configurer le serveur Web de - sorte que <filename>index.php</filename> soit identifié comme fichier - par défaut de ce répertoire. Aicnsi, si l'on tape - <literal>http://www.example.com/livredor/</literal>, le script - <filename>index.php</filename> soit exécuté sans que - <filename>index.php</filename> ne soit spécifié dans l'URL. Avec - Apache, vous pouvez régler cela en ajoutant <filename>index.php</filename> - à la ligne où se trouve <literal>DirectoryIndex</literal> (séparez chaque entrée - par un espace) dans le <filename>httpd.conf</filename>. - <informalexample> - <programlisting> -<![CDATA[DirectoryIndex index.htm index.html index.cgi index.php]]> - </programlisting> - </informalexample> - </para> - </note> - <para> - Jetons un coup d'oeil à la structure de fichier obtenue : - </para> - - <example> - <title>Structure de fichiers</title> - <screen> -<![CDATA[ -/usr/local/lib/php/Smarty-v.e.r/libs/Smarty.class.php -/usr/local/lib/php/Smarty-v.e.r/libs/Smarty_Compiler.class.php -/usr/local/lib/php/Smarty-v.e.r/libs/Config_File.class.php -/usr/local/lib/php/Smarty-v.e.r/libs/debug.tpl -/usr/local/lib/php/Smarty-v.e.r/libs/internals/*.php -/usr/local/lib/php/Smarty-v.e.r/libs/plugins/*.php - -/web/www.example.com/smarty/guestbook/templates/ -/web/www.example.com/smarty/guestbook/templates_c/ -/web/www.example.com/smarty/guestbook/configs/ -/web/www.example.com/smarty/guestbook/cache/ - -/web/www.example.com/docs/guestbook/index.php -]]> - </screen> - </example> - - <para> - Smarty a besoin d'<emphasis role="bold">accéder en écriture</emphasis> - aux répertoires <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> et <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link>, - assurez-vous donc que le serveur Web dispose de ces droits d'accès. - Il s'agit généralement de l'utilisateur "nobody" et du group - "nobody". Pour les utilisateurs de OS X, l'utilisateur par défaut - est "web" et le group "web". Si vous utilisez Apache, vous pouvez - parcourir le fichier <filename>httpd.conf</filename> (en général dans - "/usr/local/apache/conf/") pour déterminer quel est l'utilisateur - et le groupe auquel il appartient. - </para> - - <example> - <title>régler les permissions d'accès</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/smarty/livredor/templates_c/ -chmod 770 /web/www.example.com/smarty/livredor/templates_c/ - -chown nobody:nobody /web/www.example.com/smarty/livredor/cache/ -chmod 770 /web/www.example.com/smarty/livredor/cache/ -]]> - </programlisting> - </example> - - <note> - <title>Note</title> - <para> - La commande chmod 770 est relativement bien sécurisée, elle donne - à l'utilisateur "nobody" et au groupe "nobody" les accès en - lecture/écriture aux répertoires. Si vous voulez donner le droit d'accès - en lecture à tout le monde (principalement pour pouvoir accéder - vous-même à ces fichiers), vous pouvez lui préférer chmod 775. - </para> - </note> - - <para> - Nous devons créer le fichier <filename>index.tpl</filename> que Smarty va charger. - Il va se trouver dans le dossier - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para> - - <example> - <title>Notre /web/www.example.com/smarty/templates/index.tpl</title> - <screen> -<![CDATA[ - -{* Smarty *} - -Bonjour, {$name}, Bienvenue dans Smarty ! -]]> - </screen> - </example> - - - <note> - <title>Note technique</title> - <para> - <literal>{* Smarty *}</literal> est un - <link linkend="language.syntax.comments">commentaire</link> - de template. Il n'est pas obligatoire mais il est bon de commencer tous vos templates - avec ce commentaire. Celà rend le fichier facilement - reconnaissable en plus de son extension. Les éditeurs - de texte peuvent par exemple reconnaître le fichier et - adapter la coloration syntaxique. - </para> - </note> - - <para> - Maintenant passons à l'édition du fichier <filename>index.php</filename>. Nous allons - créer une instance de Smarty, - <link linkend="api.assign"><varname>assigner</varname></link> - une valeur à une variable de template et - <link linkend="api.display">afficher</link> le résultat avec <filename>index.tpl</filename>. - </para> - - <example> - <title>Édition de /web/www.example.com/docs/livredor/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php -// charge la bibliothèque Smarty -require_once(SMARTY_DIR . 'Smarty.class.php'); - -$smarty = new Smarty(); - -$smarty->template_dir = '/web/www.example.com/smarty/livredor/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/livredor/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/livredor/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/livredor/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <note> - <title>Note techique</title> - <para> - Dans notre exemple, nous avons configuré les chemins absolus - pour chacun des répertoires Smarty. Si - <filename - class="directory">/web/www.example.com/smarty/livredor/</filename> - est dans votre include_path PHP alors ces réglages ne sont pas nécessaires. - Quoi qu'il en soit, il est plus efficace et (par expérience) - moins générateur d'erreurs de les définir avec des chemins - absolus. Celà nous garantit que Smarty récupèrera les bons fichiers. - </para> - </note> - - <para> - Et maintenant appelez le fichier <filename>index.php</filename> avec navigateur - Web. Vous devriez voir "Bonjour, Ned, Bienvenue dans Smarty !". - </para> - <para> - Vous venez de terminer l'installation de base de Smarty ! - </para> - </sect1> - <sect1 id="installing.smarty.extended"> - <title>Configuration avancée</title> - - <para> - Ceci est la suite de <link - linkend="installing.smarty.basic">l'installation de base</link>, veuillez - lire cette dernière avant de poursuivre. - </para> - - <para> - Une manière un peu plus commode de configurer Smarty est de faire votre - propre classe fille et de l'initialiser selon votre environnement. - De la sorte, nous n'aurons plus besoin de configurer à chaques fois les - chemins de notre environnement. Créons un nouveau répertoire - <filename>/php/includes/livredor/</filename> et un nouveau fichier - appelé <filename>setup.php</filename>. - Dans notre exemple d'environnement, <filename>/php/includes</filename> est notre - include_path PHP. Assurez-vous de faire la même chose ou alors d'utiliser - des chemins absolus. - </para> - - <example> - <title>Édition de /php/includes/livredor/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php -// charge la librairie Smarty -require('Smarty.class.php'); - -// le fichier setup.php est un bon -// endroit pour charger les fichiers -// de librairies de l'application et vous pouvez -// faire celà juste ici. Par exemple : -// require('livredor/livredor.lib.php'); - -class Smarty_livredor extends Smarty { - - function Smarty_livredor() { - - // Constructeur de la classe. - // Appelé automatiquement à l'instanciation de la classe. - - $this->Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/livredor/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/livredor/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/livredor/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/livredor/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <para> - Modifions maintenant le fichier <filename>index.php</filename> pour qu'il utilise - <filename>setup.php</filename> - </para> - - <example> - <title>Édition de /web/www.example.com/docs/livredor/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('livredor/setup.php'); - -$smarty = new Smarty_livredor(); - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - </example> - - <para> - Vous savez maintenant qu'il est facile de créer une instance de Smarty, - correctement configurée, en utilisant <literal>Smarty_livredor()</literal> - qui initialise automatiquement tout ce qu'il faut pour votre application. - </para> - - </sect1> - - </chapter> -</part> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/language-defs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 2066 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> - -<!ENTITY SMARTYManual "Smarty - le moteur et compilateur de template PHP"> -<!ENTITY SMARTYDesigners "Smarty pour les graphistes"> -<!ENTITY SMARTYProgrammers "Smarty pour les programmeurs"> -<!ENTITY Appendixes "Appendices">
View file
Smarty-3.1.13.tar.gz/documentation/fr/language-snippets.ent
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<!ENTITY note.parameter.merge '<note> - <title>Note technique</title> - <para> - Le paramètre <parameter>merge</parameter> respecte les clés du tableau, - donc, si vous fusionnez deux tableaux indexés numériquement, ils peuvent - se recouvrir les uns les autres ou aboutir à des clés non séquentielles. Ceci - est diférent de la fonction PHP <ulink url="&url.php-manual;array_merge">array_merge()</ulink> - qui élimine des clés numériques et les renumérote. - </para> -</note>'> - -<!ENTITY parameter.compileid '<para> -En tant que troisième paramètre optionnel, vous pouvez passer un -identifiant de compilation <parameter>$compile_id</parameter>. -C'est au cas où vous voudriez compiler plusieurs versions du -même template, par exemple, pour avoir des templates compilés -pour différents langages. Une autre utilité pour l'identifiant de compilation -<parameter>$compile_id</parameter> est lorsque vous utilisez plus d'un -<link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> mais -seulement un <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>. -Définissez un <parameter>$compile_id</parameter> -séparé pour chaque -<link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>, -sinon, les templates du même nom s'effaceront. Vous pouvez également -définir la variable <link linkend="variable.compile.id">$compile_id</link> une seule -fois plutôt que de la passer à chaque appel à la fonction.</para>'> - -<!ENTITY api.register.snippet '<para> - La fonction PHP de callback <parameter>function</parameter> peut être soit : - <itemizedlist> - <listitem><para> - Une chaîne de caractères contenant la fonction <parameter>name</parameter> - </para></listitem> - - <listitem><para> - Un tableau sous la forme <literal>array(&$object, $method)</literal> où - <literal>&$object</literal> est une référence d'objet et - <literal>$method</literal> une chaîne contenant le nom de la méthode - </para></listitem> - - <listitem><para> - Un tableau sous la forme - <literal>array($class, $method)</literal> où - <literal>$class</literal> est le nom de la classe et - <literal>$method</literal> est une méthode de la classe. - </para></listitem> - </itemizedlist> - </para>'> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/livedocs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 2066 $ --> -<!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> - -<!ENTITY livedocs.author 'Auteurs :<br />'> -<!ENTITY livedocs.editors 'Editeurs :<br />'> -<!ENTITY livedocs.copyright 'Copyright © %s pour le compte de %s'> -<!ENTITY livedocs.published 'Publié le : %s'>
View file
Smarty-3.1.13.tar.gz/documentation/fr/make_chm_index.html
Deleted
@@ -1,37 +0,0 @@ -<HTML> -<!-- $Revision: 2391 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> -<HEAD> - <TITLE>Manuel Smarty</TITLE> - <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=ISO-8859-1"> - <LINK REL="STYLESHEET" HREF="style.css"> -</HEAD> -<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> -<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> -<TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" -CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">Smarty Manual</TH></TR><TR><TD -COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> -<TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> - -<P><TABLE ALIGN="CENTER"> -<TR><TD ALIGN="CENTER"> -<H1 CLASS="title">Manuel Smarty</H1> -<DIV CLASS="author">Monte Ohrt</DIV> -<DIV CLASS="author">Andrei Zmievski</DIV> -</TD></TR></TABLE> -<BR><P ALIGN="CENTER">Ce fichier a été généré : [GENTIME]<BR> -Allez sur <A HREF="http://www.smarty.net/download-docs.php">http://www.smarty.net/download-docs.php</A> -pour récupérer la version actuelle.</P> - -<BR><P CLASS="copyright" ALIGN="CENTER">Copyright © 2001 - 2005 New Digital Group, Inc.</P> - -</TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> -<TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> -<TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> -<TR><TD COLSPAN="3"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD> -</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> -</BODY></HTML>
View file
Smarty-3.1.13.tar.gz/documentation/fr/preface.xml
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready --> -<preface id="preface"> - <title>Préface</title> - <para> - "Comment rendre mes scripts PHP indépendants de la présentation ?". - Voici sans doute la question la plus posée sur la mailing list - PHP. Alors que PHP est étiqueté "langage de script - pour HTML", on se rend vite compte, après quelques projets qui mélangent - sans complexe HTML et PHP, que la séparation entre la forme et - le contenu, c'est bien [TM]. De plus, dans de nombreuses entreprises - les rôles du designer et du programmeur sont distincts. La solution template - coule donc de source. - </para> - <para> - Dans notre entreprise par exemple, le développement d'une application - se fait de la manière suivante : une fois le cahier des charges écrit, - le designer réalise une maquette, et donne ses interfaces - au programmeur. Le programmeur implémente les fonctionnalités applicatives - et utilise les maquettes pour faire des squelettes de templates. Le projet - est alors passé au designer HTML/responsable de la mise en page qui amène les - templates jusqu'au faîte de leur gloire. Il est possible que le projet fasse - une fois ou deux des allers/retours entre la programmation et la présentation. - En conséquence, il est important de disposer d'un bon système de template. Les - programmeurs ne veulent pas avoir à faire au HTML, et ne veulent pas non plus - que les designers HTML bidouillent le code PHP. Les designers ont besoin d'outils - comme des fichiers de configuration, des blocs dynamiques et d'autres solutions - pour répondre à des problématiques d'interface, mais ne veulent pas - nécessairement avoir à faire à toutes les subtilités de la programmation PHP. - </para> - <para> - Un rapide tour d'horizon des solutions type template aujourd'hui et - l'on s'aperçoit que la plupart d'entre elles n'offrent que des moyens - rudimentaires pour substituer des variables dans des templates, ainsi que des - fonctionnalités limitées de blocs dynamiques. Cependant nous avons - besoin d'un peu plus. Nous ne voulons pas que les programmeurs - s'occupent de la présentation HTML du TOUT, mais celà est pratiquement - inévitable. Par exemple, si un designer veut des couleurs d'arrière plan - différentes pour alterner entre différents blocs dynamiques, il est nécessaire - que ce dernier travaille avec le programmeur. Nous avons aussi besoin que les - designers soient capables de travailler avec leurs propres fichiers - de configuration pour y récupérer des variables, exploitables dans leurs - templates. Et la liste est longue. - </para> - <para> - Fin 1999, nous avons commencé à écrire une spécification pour un moteur de - template. Une fois la spécification terminée, - nous avons commencé à travailler sur un moteur de template écrit - en C qui pourrait, avec un peu de chance, être inclus à PHP. - Non seulement nous avons rencontré des problèmes techniques complexes, - mais nous avons participés à de nombreux débats sur ce que devait - et ce que ne devait pas faire un moteur de template. De cette expérience nous avons - décidé qu'un moteur de template se devait d'être écrit sous la forme d'une - classe PHP, afin que quiconque puisse l'utiliser à sa convenance. Nous - avons donc réalisé un moteur de template qui se contentait de faire celà, - et <productname>SmartTemplate</productname> a vu le jour (note : cette - classe n'a jamais été soumise au public). C'était une classe qui - faisait pratiquement tout ce que nous voulions : substitution de variables, - inclusion d'autres templates, intégration avec des fichiers de configuration, - intégration de code PHP, instruction 'if' basique et une gestion plus robuste - des blocks dynamiques imbriqués. Elle faisait tout celà avec des expressions - rationnelles et le code se révéla, comment dire, impénétrable. De plus, elle était - relativement lente pour les grosses applications à cause de l'analyse - et du travail sur les expressions rationnelles qu'elle devait faire à chaque - exécution. Le plus gros problème du point de vue du programmeur était - tout le travail nécessaire en amont, dans le script PHP, pour configurer - et exécuter les templates, et les blocs dynamiques. Comment rendre tout ceci - plus simple ? - </para> - <para> - Puis vint la vision de ce que devait devenir Smarty. Nous - savons combien le code PHP peut être rapide sans le coût - d'analyse des templates. Nous savons aussi combien fastidieux - et décourageant peut paraître le langage pour le designer moyen, et que - celà peut être remplacé par une syntaxe spécifique, beaucoup - plus simple. Et si nous combinions les deux forces ? Ainsi, Smarty - était né...:-) - </para> -</preface> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<chapter id="advanced.features"> - <title>Fonctionnalités avancées</title> - &programmers.advanced-features.advanced-features-objects; - &programmers.advanced-features.advanced-features-prefilters; - - &programmers.advanced-features.advanced-features-postfilters; - - &programmers.advanced-features.advanced-features-outputfilters; - - &programmers.advanced-features.section-template-cache-handler-func; - - &programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,142 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<sect1 id="advanced.features.objects"> - <title>Objets</title> - <para> - Smarty donne l'accès aux <ulink url="&url.php-manual;object">objets</ulink> - PHP à travers les templates. Il y a 2 moyens d'y avoir accès. - </para> - <itemizedlist spacing="compact"> - <listitem><para> - Le premier consiste à - <link linkend="api.register.object">allouer les objets</link> - au template puis de les utiliser avec une syntaxe similaire a celles - des <link linkend="language.custom.functions">fonctions personnalisées</link>. - </para></listitem> - <listitem><para> - Le deuxième moyen consiste à <link linkend="api.assign">assigner</link> des objets - aux templates et de les utiliser comme n'importe quelle - variable. - </para></listitem> - </itemizedlist> - <para> - La première méthode a une syntaxe beaucoup plus sympathique. - Elle est aussi plus sécurisée, puisqu'un objet alloué ne peut avoir accès - qu'a certaines méthodes et propriétés. Néanmoins, - <emphasis role="bold">un objet alloué ne peut pas avoir de lien sur lui-même - ou être mis dans un tableau d'objet</emphasis>, etc. - Vous devez choisir la méthode qui correspond a vos - besoins, mais tGchez d'utiliser la première méthode autant que possible - afin de réduire la syntaxe des templates au minimum. - </para> - <para> - Si l'option de <link linkend="variable.security">sécurité</link> - est activée, aucune méthode ou fonctions privées - n'est accessible (commentant par "_"). S'il existe une méthode et une - propriété du même nom, c'est la méthode qui sera utilisée. - </para> - <para> - Vous pouvez restreindre l'accès aux méthodes et aux propriétés en - les listant dans un tableau en tant que troisième paramètre - d'allocation. - </para> - <para> - Par défaut, les paramètres passés aux objets depuis le template le sont de la - même façon que les <link linkend="language.custom.functions">fonctions utilisateurs</link> - les récupèrent. - Le premier paramètre correspond à un tableau associatif, le second à l'objet - Smarty. Si vous souhaitez que les paramètres soient passés un à un, comme - dans un appel traditionnel, définissez registration, quatrième paramètre optionnel, - à &false;. - </para> - <para> - Le cinquième paramètre optionnel n'a d'effet que si le paramètre - <parameter>format</parameter> vaut <literal>true</literal> et il contient - une liste de méthodes qui doivent être traitées comme des blocks. Celà signifie - que ces méthodes ont un tag fermant dans le template - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) et que les paramètres - de ces méthodes fonctionnent de la même façon que les paramètres des - <link linkend="plugins.block.functions">blocks de fonctions des plugins</link> : - Ils contiennent 4 paramètres - <parameter>$params</parameter>, - <parameter>$content</parameter>, - <parameter>&$smarty</parameter> et - <parameter>&$repeat</parameter> et ils fonctionnent de la même - façon que les blocks de fonctions des plugins. - </para> - <example> - <title>Utilisation d'un objet alloué ou assigné</title> - <programlisting role="php"> -<![CDATA[ -<?php -// la classe - -class My_Object() { - function meth1($params, &$smarty_obj) { - return 'Ceci est ma methode 1'; - } -} - -$myobj = new My_Object; -// enregistre l'objet -$smarty->register_object('foobar',$myobj); -// on restreint l'accès a certaines méthodes et propriétés en les listant -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); -// pour utiliser le format habituel de paramètre objet, passez le booléen = false -$smarty->register_object('foobar',$myobj,null,false); - -// on peut aussi assigner des objets. Assignez par référence quand c'est possible -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> - -?> -]]> - </programlisting> - <para> - Et voici comment accéder à vos objets dans <filename>index.tpl</filename> : - </para> - <programlisting> -<![CDATA[ -{* accès a notre objet enregistré *} -{foobar->meth1 p1="foo" p2=$bar} - -{* on peut aussi assigner la sortie *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output) - -{* access our assigned object *} -{$myobj->meth1("foo",$bar)} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.object"><varname>register_object()</varname></link> et - <link linkend="api.assign"><varname>assign()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="advanced.features.outputfilters"> - <title>Filtres de sortie</title> - <para> - Quand le template est appelé via les fonctions - <link linkend="api.display"><varname>display()</varname></link> ou - <link linkend="api.fetch"><varname>fetch()</varname></link>, - sa sortie est envoyée à travers un ou plusieurs filtres de sorties. - Ils diffèrent des <link linkend="advanced.features.postfilters">filtres - de post-compilation</link> dans le sens où ils agissent sur la sortie - des templates, une fois exécutés, et non sur les sources des templates. - </para> - - <para> - Les filtres de sortie peuvent être soit - <link linkend="api.register.outputfilter">déclarés</link> soit - chargés depuis les <link linkend="variable.plugins.dir">répertoires - des plugins</link> en utilisant la fonction - <link linkend="api.load.filter"><varname>load_filter()</varname></link> - ou en réglant la variable - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>. - Smarty passera la sortie du template en premier argument et attendra - de la fonction qu'elle retourne le résultat de l'exécution. - </para> - <example> - <title>Utilisation d'un filtre de sortie</title> - <programlisting> -<![CDATA[ -<?php -// mettez ceci dans votre application -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// enregistre le filtre de sortie -$smarty->register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// dorénavant toute occurence d'un adresse email dans le résultat du template -// aura un protection simple contre les robots spammers -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.outputfilter"><varname>register_outpurfilter()</varname></link>, - <link linkend="api.load.filter"><varname>load_filter()</varname></link>, - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>, - les <link linkend="advanced.features.postfilters">filtres de post-compilation</link> et - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="advanced.features.postfilters"> - <title>Filtres de post-compilation</title> - <para> - Les filtres de post-compilation sont des fonctions PHP que vos templates - exécutent <emphasis>après avoir été compilés</emphasis>. Les filtres de post-compilation - peuvent être soit <link linkend="api.register.postfilter">déclarés</link>, soit chargés - depuis les <link linkend="variable.plugins.dir">répertoires des plugins</link> - en utilisant la fonction - <link linkend="api.load.filter"><varname>load_filter()</varname></link> ou en réglant - la variable - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>. - Smarty passera le template compilé en tant que premier paramètre et attendra - de la fonction qu'elle retourne le résultat de l'exécution. - </para> - <example> - <title>Utilisation d'un filtre de post-compilation de templates</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettez celà dans votre application -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Créé par Smarty ! -->\n\"; ?>\n".$tpl_source; -} - -// enregistre le filtre de post-compilation -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Votre template Smarty <filename>index.tpl</filename> ressemblera, après compilation à : - </para> - <screen> -<![CDATA[ -<!-- Créé par Smarty ! --> -{* reste du contenu du template... *} -]]> - </screen> - </example> - <para> - Voir aussi - <link linkend="api.register.postfilter"><varname>register_postfilter()</varname></link>, - <link linkend="advanced.features.prefilters">les pré-filtres</link> et - <link linkend="api.load.filter"><varname>load_filter()</varname></link>. - </para> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="advanced.features.prefilters"> - <title>Filtres de pré-compilation</title> - <para> - Les filtres de pré-compilation sont des fonctions PHP que vos templates - exécutent <emphasis>avant qu'ils ne soient compilés</emphasis>. Celà peut être utile - pour pré-traiter vos templates afin d'enlever les commentaires - inutiles, garder un oeil sur ce que les gens mettent dans leurs templates, etc. - </para> - <para> - Les filtre de pré-compilations peuvent être soit - <link linkend="api.register.prefilter">déclarés</link>, soit chargés - à partir des <link linkend="variable.plugins.dir">répertoires de plugins</link> - en utilisant la fonction <link linkend="api.load.filter"><varname>load_filter()</varname></link> ou - en réglant la variable - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>. - </para> - <para> - Smarty passera à la fonction le code source en tant que premier argument, - et attendra en retour le code modifié. - </para> - <example> - <title>Utilisation un filtre de pré-compilation de template</title> - <para> - Ceci va effacer tous les commentaires de la source du template. - </para> - <programlisting> -<![CDATA[ -<?php -// mettre ceci dans votre application -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace("/<!--#.*-->/U",'',$tpl_source); -} - -// enregistrer le filtre de pré-compilation -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.prefilter"><varname>register_prefilter()</varname></link>, - les <link linkend="advanced.features.postfilters">post-filtres</link> et - <link linkend="api.load.filter"><varname>load_filter()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,188 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready --> - -<sect1 id="section.template.cache.handler.func"> - <title>Fonction de gestion du cache</title> - <para> - Une alternative au mécanisme de cache par défaut (basé sur des fichiers - de cache) consiste à spécifier une fonction de gestion de cache utilisateur - qui sera utilisée pour lire, écrire et effacer les fichiers de cache. - </para> - <para> - Il suffit de créer dans votre application une fonction que Smarty - utilisera pour la gestion du cache et d'assigner le nom de cette - fonction à la variable de classe - <link linkend="variable.cache.handler.func">$cache_handler_func</link>. - Smarty utilisera alors cette fonction pour gérer les données du cache. - </para> - - <itemizedlist> - <listitem><para> - Le premier argument est l'action, qui sera <literal>read</literal>, <literal>write</literal> and - <literal>clear</literal>. - </para></listitem> - - <listitem><para> - Le second paramètre est l'objet Smarty. - </para></listitem> - - <listitem><para> - Le troisième est le contenu - du cache. Pour écrire, Smarty passe le contenu du cache dans ces paramètres. - Pour lire, Smarty s'attend à ce que votre fonction accepte ce paramètre - par référence et que vous le remplissiez avec les données du cache. Pour effacer, - il suffit de passer une variable fictive car cette dernière n'est pas utilisée. - </para></listitem> - - <listitem><para> - Le quatrième paramètre est le nom du fichier de template (utile pour - lire/écrire). - </para></listitem> - - <listitem><para> - Le cinquième paramètre est l'identifiant <parameter>$cache_id</parameter>. - </para></listitem> - - <listitem><para> - Le sixième est l'identifiant optionnel <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link>. - </para></listitem> - - <listitem><para> - Le septième et dernier paramètre <parameter>$exp_time</parameter> - a été ajouté dans Smarty-2.6.0. -</para></listitem> - -</itemizedlist> - - <example> - <title>Exemple d'utilisation de MySQL pour la source du cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -/***** - -exemple d'usage : - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -la base mysql est attendu dans ce format : - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*****/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) -{ - // l'hôte de la bd, l'utilisateur, et le mot de passe - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // crée un identifiant de cache unique - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // récupère le cache dans la base de données - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // sauvegarde le cache dans la base de données - - if($use_gzip && function_exists("gzcompress")) { - // compresse le contenu pour gagner de la place - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - case 'clear': - // efface les données du cache - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // les efface toutes - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - default: - // erreur, action inconnue - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - </programlisting> - </example> -</sect1> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,255 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="template.resources"> - <title>Ressources</title> - <para> - Les templates peuvent provenir d'une grande variété de ressources. Quand vous - affichez (<link linkend="api.display"><varname>display()</varname></link>) ou - récupérez (<link linkend="api.fetch"><varname>fetch()</varname></link>) un - template, ou quand vous incluez un template dans un autre template, vous fournissez - un type de ressource, suivi par le chemin approprié et le nom du template. - Si une ressource n'est pas explicitement donnée, la valeur de la variable <link - linkend="variable.default.resource.type"><parameter>$default_resource_type</parameter></link> - sera utilisée. - </para> - <sect2 id="templates.from.template.dir"> - <title>Templates depuis $template_dir</title> - <para> - Les templates du répertoire - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> n'ont pas - besoin d'une ressource template, bien que vous puissiez utiliser - la ressource "file" pour être cohérent. Vous n'avez qu'à fournir - le chemin vers le template que vous voulez utiliser, relatif - au répertoire racine - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para> - <example> - <title>Utilisation de templates depuis $template_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // le même que ci-dessus -?> - -{* le template Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* le même que ci-dessus *} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="templates.from.any.dir"> - <title>Templates à partir de n'importe quel répertoire</title> - <para> - Les templates en-dehors du répertoire - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - nécessitent le type de ressource template, suivi du chemin absolu et du nom du - template. - </para> - <example> - <title>Utilisation d'un template depuis n'importe quel répertoire</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - Le template Smarty : - </para> - <programlisting> -<![CDATA[ -{include file='file:/usr/local/share/templates/navigation.tpl'} -]]> - </programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Chemin de fichiers Windows</title> - <para> - Si vous utilisez Windows, les chemins de fichiers sont la plupart - du temps sur un disque identifié par une lettre (c:) au début du chemin. - Assurez-vous de bien mettre <literal>file:</literal> dans le chemin pour éviter des - conflits d'espace de noms et obtenir les résultats escomptés. - </para> - <example> - <title>Utilisation de templates avec des chemins de fichiers Windows</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - Le template Smarty : - </para> - <programlisting> -<![CDATA[ -{include file='file:D:/usr/local/share/templates/navigation.tpl'} -]]> - </programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>Templates depuis d'autres sources</title> - <para> - Vous pouvez récupérer les templates à partir de n'importe quelle - source à laquelle vous avez accès avec PHP : base de données, - sockets, LDAP et ainsi de suite. Il suffit d'écrire les fonctions - de ressource plugins et de les enregistrer auprès de Smarty. - </para> - - <para> - Reportez-vous à la section <link linkend="plugins.resources">ressource plugins</link> - pour plus d'informations sur les fonctions que vous êtes censé fournir. - </para> - - <note> - <para> - Notez que vous ne pouvez pas écraser la ressource <literal>file:</literal> native, - toutefois, vous pouvez fournir une ressource qui récupère un template depuis - le système de fichier par un autre moyen en l'enregistrant sous un autre - nom de ressource. - </para> - </note> - <example> - <title>Utilisation de ressources utilisateurs</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettez ces fonctions quelque part dans votre application -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // requête BD pour récupérer le template - // et remplir $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // requête BD pour remplir $tpl_timestamp - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // on suppose que tous les templates sont svrs - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // pas utilisée pour les templates dans notre cas -} - -// enregistre le nom de ressource "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// utilise la ressource depuis le script PHP -$smarty->display("db:index.tpl"); -?> -]]> - </programlisting> - <para> - Le template Smarty : - </para> - <programlisting> -<![CDATA[ -{include file='db:/extras/navigation.tpl'} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Fonction de gestion de template par défaut</title> - <para> - Vous pouvez spécifier une fonction qui sera utilisée pour - récupérer le contenu d'un template dans le cas où le template - ne peut pas être récupéré depuis sa ressource. Une utilisation possible est - la création de templates à la volée. - </para> - <example> - <title>utilisation de la fonction de gestion de template par défaut</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettez cette fonction quelque part dans votre application - -function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, -&$smarty_obj) -{ - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - // crée le fichier de template et renvoie le contenu - $template_source = "Ceci est un nouveau template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // pas un fichier - return false; - } -} - -// règle la fonction par défaut -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - </programlisting> - </example> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> - -<chapter id="api.functions"> - <title>Méthodes</title> - &programmers.api-functions.api-append; - &programmers.api-functions.api-append-by-ref; - &programmers.api-functions.api-assign; - &programmers.api-functions.api-assign-by-ref; - &programmers.api-functions.api-clear-all-assign; - &programmers.api-functions.api-clear-all-cache; - &programmers.api-functions.api-clear-assign; - &programmers.api-functions.api-clear-cache; - &programmers.api-functions.api-clear-compiled-tpl; - &programmers.api-functions.api-clear-config; - &programmers.api-functions.api-config-load; - &programmers.api-functions.api-display; - &programmers.api-functions.api-fetch; - &programmers.api-functions.api-get-config-vars; - &programmers.api-functions.api-get-registered-object; - &programmers.api-functions.api-get-template-vars; - &programmers.api-functions.api-is-cached; - &programmers.api-functions.api-load-filter; - &programmers.api-functions.api-register-block; - &programmers.api-functions.api-register-compiler-function; - &programmers.api-functions.api-register-function; - &programmers.api-functions.api-register-modifier; - &programmers.api-functions.api-register-object; - &programmers.api-functions.api-register-outputfilter; - &programmers.api-functions.api-register-postfilter; - &programmers.api-functions.api-register-prefilter; - &programmers.api-functions.api-register-resource; - &programmers.api-functions.api-trigger-error; - - &programmers.api-functions.api-template-exists; - &programmers.api-functions.api-unregister-block; - &programmers.api-functions.api-unregister-compiler-function; - &programmers.api-functions.api-unregister-function; - &programmers.api-functions.api-unregister-modifier; - &programmers.api-functions.api-unregister-object; - &programmers.api-functions.api-unregister-outputfilter; - &programmers.api-functions.api-unregister-postfilter; - &programmers.api-functions.api-unregister-prefilter; - &programmers.api-functions.api-unregister-resource; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>append_by_ref()</refname> - <refpurpose>Ajoute des valeurs par référence</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour <link linkend="api.append">ajouter</link> des valeurs à un - template par référence plutôt que par copie. - Si vous ajoutez une variable par référence puis changez sa - valeur, le changement est aussi répercuté sur la valeur assignée. - Pour les <link linkend="advanced.features.objects">objets</link>, - <varname>append_by_ref()</varname> ne fait pas de copie en mémoire de l'objet - assigné. Voir la documentation PHP pour plus d'informations sur les - références de variable. - Si vous passez le troisième paramètre à &true;, la valeur - sera fusionnée avec le tableau courant plutôt que d'être ajoutée. - </para> - ¬e.parameter.merge; - <example> - <title>Exemple avec append_by_ref</title> - <programlisting role="php"> -<![CDATA[ -<?php -// ajoute des paires nom/valeur -$smarty->append_by_ref('Nom',$myname); -$smarty->append_by_ref('Adresse',$address); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.append"><varname>append()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> et - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>. -</para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-append.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.append"> - <refnamediv> - <refname>append()</refname> - <refpurpose>Ajoute un élément à un tableau assigné</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Si vous utilisez cette fonction avec une chaîne de caractères, elle est - convertie en tableau auquel on ajoute ensuite l'élément. Vous pouvez - explicitement passer des paires nom/valeur. Si vous passez le troisième - paramètre (optionel) à &true;, la valeur sera fusionnée - avec le tableau plutôt que d'être ajoutée. - </para> - ¬e.parameter.merge; - <example> - <title>Exemple avec append</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passe des paires nom/valeur -$smarty->append("Nom","Fred"); -$smarty->append("Adresse",$address); - -$array = array(1 => 'un', 2 => 'deux'); -$smarty->append('X', $array); -$array2 = array(3 => 'trois', 4 => 'quatre'); -// La ligne suivante ajoute un second élément au tableau X -$smarty->append('X', $array2); - -// passe un tableau associatif -$smarty->append(array('Ville' => 'Lincoln','Pays' => 'Nebraska')); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.append.by.ref"><varname>append_by_ref()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> et - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assign_by_ref()</refname> - <refpurpose>Assigne des valeurs par référence</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour <link linkend="api.assign">assigner</link> des valeurs aux - templates par référence plutôt que par copie. Référez-vous au manuel PHP - pour une explication plus précise sur les références des variables. - </para> - <note> - <title>Note technique</title> - <para> - Si vous assignez une variable par référence puis changez sa - valeur, le changement est aussi répercuté sur la valeur assignée. - Pour les <link linkend="advanced.features.objects">objets</link>, - <varname>assign_by_ref()</varname> ne fait pas de copie en mémoire de l'objet - assigné. Référez-vous au manuel PHP pour une explication plus précise sur - les références de variable. - </para> - </note> - <example> - <title>Exemple avec assign_by_ref()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passe des paires noms/valeurs -$smarty->assign_by_ref("Nom",$myname); -$smarty->assign_by_ref("Adresse",$address); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.assign"><varname>assign()</varname></link>, - <link linkend="api.clear.all.assign"><varname>clear_all_assign()</varname></link>, - <link linkend="api.append"><varname>append()</varname></link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link> et - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-assign.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<refentry id="api.assign"> - <refnamediv> - <refname>assign()</refname> - <refpurpose>Assigne des valeurs au template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Vous pouvez explicitement passer des paires nom/valeur, ou - des tableaux associatifs contenant des paires nom/valeur. - </para> - <example> - <title>Exemple avec assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passe des paires nom/valeur -$smarty->assign("Nom","Fred"); -$smarty->assign("Adresse",$address); - -// passe un tableau associatif -$smarty->assign(array('Ville' => 'Lincoln','Pays' => 'Nebraska')); - -// passe un tableau -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// Passe une ligne d'une base de données (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - </programlisting> - <para> - Accéder à cela dans un template avec - </para> - <programlisting> -<![CDATA[ -{* notez que les variables sont sensibles à la casse, comme en PHP *} -{$Name} -{$Address} -{$city} -{$state} - -{$foo.no}, {$foo.label} -{$contact.id}, {$contact.name},{$contact.email} -]]> - </programlisting> - </example> - <para> - Pour des assignements plus complexes de tableaux, lisez - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> et - <link linkend="language.function.section"><varname>{section}</varname></link>. - </para> - <para> - Voir aussi - <link linkend="api.assign.by.ref"><varname>assign_by_ref()</varname></link>, - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>, - <link linkend="api.clear.assign"><varname>clear_assign()</varname></link>, - <link linkend="api.append"><varname>append()</varname></link> et - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clear_all_assign()</refname> - <refpurpose>Efface les valeurs de toutes les variables assignées</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <example> - <title>Exemple avec clear_all_assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passe des paires nom/valeur -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// affichera -print_r( $smarty->get_template_vars() ); - -// efface toutes les variables assignées -$smarty->clear_all_assign(); - -// n'affichera rien -print_r( $smarty->get_template_vars() ); - -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.clear.assign"><varname>clear_assign()</varname></link>, - <link linkend="api.clear.config"><varname>clear_config()</varname></link>, - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> et - <link linkend="api.append"><varname>append()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clear_all_cache()</refname> - <refpurpose>Efface les fichiers de cache des templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Vous pouvez passer un paramètre optionnel afin d'indiquer l'âge minimun - que doivent avoir les fichiers de cache pour qu'ils soient effacés. - </para> - <example> - <title>Exemple avec clear_all_cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// efface le cache -$smarty->clear_all_cache(); - -// efface tous les fichiers vieux d'une heure -$smarty->clear_all_cache(3600); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.clear.cache"><varname>clear_cache()</varname></link>, - <link linkend="api.is.cached"><varname>is_cached()</varname></link> et - le <link linkend="caching">cache</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clear_assign()</refname> - <refpurpose>Efface la valeur d'une variable assignée</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Il peut s'agir d'une simple valeur ou d'un tableau de valeur. - </para> - <example> - <title>Exemple avec clear_assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// efface une variable -$smarty->clear_assign('Name'); - -// efface plusieurs variables -$smarty->clear_assign(array('Name','Address','Zip')); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.clear.all.assign"><varname>clear_all_assign()</varname></link>, - <link linkend="api.clear.config"><varname>clear_config()</varname></link>, - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>, - <link linkend="api.assign"><varname>assign()</varname></link> et - <link linkend="api.append"><varname>append()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clear_cache()</refname> - <refpurpose>Efface le cache d'un template spécifique</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - - <itemizedlist> - <listitem><para> - Si vous avez <link linkend="caching.multiple.caches">plusieurs fichiers de cache</link> - pour ce template, vous pouvez en spécifier un en particulier en passant son identifiant - <parameter>cache_id</parameter> en deuxième paramètre. - </para></listitem> - <listitem><para> - Vous pouvez aussi passer un identifiant de compilation - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - en troisième paramètre. Vous pouvez <link linkend="caching.groups">grouper</link> - des templates ensemble afin qu'ils puissent être supprimés en groupe. Référez-vous à la - section sur le <link linkend="caching">cache</link> pour plus d'informations. - </para></listitem> - <listitem><para> - Vous pouvez passer un quatrième paramètre pour indiquer un âge - minimum en secondes que le fichier en cache doit avoir avant d'être effacé. - </para></listitem> - </itemizedlist> - - <example> - <title>Exemple avec clear_cache()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// efface le fichier de cache de ce template -$smarty->clear_cache('index.tpl'); - -// efface un fichier de cache grâce à son identifiant de cache -$smarty->clear_cache('index.tpl','CACHEID'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi le - <link linkend="api.clear.all.cache"><varname>clear_all_cache()</varname></link> et - la section sur le <link linkend="caching">cache</link>. - </para> - </refsect1> -</refentry> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clear_compiled_tpl()</refname> - <refpurpose>Efface la version compilée d'un template spécifié</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour effacer la version compilée du template spécifié ou - de tous les templates si aucun n'est spécifié. - Si vous passez uniquement un - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>, - le template compilé correspondant à ce - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - sera effacé. Si vous passez un exp_time, les templates compilés plus vieux que - <parameter>exp_time</parameter> secondes - seront effacés, par défaut, tous les templates compilés seront - effacés au vû de leurs âges. Cette fonction est destinée à un usage - avancé et n'est habituellement pas utilisée. - </para> - <example> - <title>Exemple avec clear_compiled_tpl()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// efface la version compilée du template spécifié -$smarty->clear_compiled_tpl('index.tpl'); - -// efface tout le contenu du répertoire des templates compilés -$smarty->clear_compiled_tpl(); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.clear.cache"><varname>clear_cache()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.clear.config"> - <refnamediv> - <refname>clear_config()</refname> - <refpurpose>Efface toutes les variables de configuration assignées</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour effacer toutes les <link linkend="language.config.variables">variables - de configuration</link> assignées. - Si un nom de variable est spécifié, seule cette variable sera effacée. - </para> - <example> - <title>Exemple avec clear_config()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// efface toutes les variables de configuration assignées -$smarty->clear_config(); - -// efface une seule variable -$smarty->clear_config('foobar'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi les - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>, - les <link linkend="language.config.variables">variables de configuration</link>, - les <link linkend="config.files">fichiers de configuration</link>, - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.config.load"><varname>config_load()</varname></link> et - <link linkend="api.clear.assign"><varname>clear_assign()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.config.load"> - <refnamediv> - <refname>config_load()</refname> - <refpurpose>Charge les données d'un fichier de configuration et les assigne au template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour charger des données d'un <link linkend="config.files">fichier - de configuration</link> et les assigner a un template. Cette fonction fonctionne - exactement comme la fonction de template <link - linkend="language.function.config.load"><varname>{config_load}</varname></link>. - </para> - <note> - <title>Note technique</title> - <para> - Comme pour Smarty 2.4.0, les variables de templates assignées - sont conservées entre chaque appel à - <link linkend="api.fetch"><varname>fetch()</varname></link> et - <link linkend="api.display"><varname>display()</varname></link>. - Les variables de configuration chargées avec <varname>config_load()</varname> sont - globales. Les fichiers de configuration sont aussi compilés pour une - exécution plus rapide et respecte les réglages de <link - linkend="variable.force.compile"><parameter>$force_compile</parameter></link> et de <link - linkend="variable.compile.check"><parameter>$compile_check</parameter></link>. - </para> - </note> - <example> - <title>Exemple avec config_load()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// charge les variables de configuration et les assigne -$smarty->config_load('my.conf'); - -// charge une section -$smarty->config_load('my.conf','foobar'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>, - <link linkend="api.clear.config"><varname>clear_config()</varname></link> et les - <link linkend="language.config.variables">variables de configuration</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-display.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<refentry id="api.display"> - <refnamediv> - <refname>display()</refname> - <refpurpose>Affiche le template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - Utilisée pour afficher un template. Il faut fournir un type et un - chemin de <link - linkend="template.resources">ressource template</link> - valides. Vous pouvez passer en second paramètre un identifiant - de fichier de <parameter>$cache id</parameter>. Reportez-vous à la section - <link linkend="caching">cache</link> pour plus de renseignements. - </para> - ¶meter.compileid; - <example> - <title>Exemple avec display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include(SMARTY_DIR.'Smarty.class.php'); -$smarty = new Smarty(); -$smarty->caching = true; - -// ne fait un appel à la base de données que si le fichier -// de cache n'existe pas -if(!$smarty->is_cached('index.tpl')) { - - // quelques données - $address = '245 N 50th'; - $db_data = array( - 'Ville' => 'Lincoln', - 'Pays' => 'Nebraska', - 'Code postal' = > '68502' - ); - - $smarty->assign('Nom','Fred'); - $smarty->assign('Adresse',$address); - $smarty->assign($db_data); - -} - -// affichage -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Utilisez la syntaxe des <link - linkend="template.resources">ressources templates</link> - pour afficher des fichiers en-dehors du répertoire - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>. - </para> - <example> - <title>Exemples de fonction d'affichage de ressources templates</title> - <programlisting role="php"> -<![CDATA[ -<?php -// chemin absolu -$smarty->display('/usr/local/include/templates/header.tpl'); - -// chemin absolu (mêm chose) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// chemin absolu Windows (on DOIT utiliser le préfixe "file:") -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// inclue à partir de la ressource template nommée "db" -$smarty->display('db:header.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.fetch"><varname>fetch()</varname></link> et - <link linkend="api.template.exists"><varname>template_exists()</varname></link>. - </para> - </refsect1> -</refentry> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,158 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch()</refname> - <refpurpose>Retourne le résultat du template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>$compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - Utilisée pour renvoyer le résultat du template plutôt que de - l'<link linkend="api.display">afficher</link>. - Il faut passer un type et un chemin de <link - linkend="template.resources">ressource template</link> - valides. Vous pouvez passer un identifiant de cache <parameter>$cache id</parameter> en deuxième - paramètre. Reportez-vous à la section <link linkend="caching">cache - </link> pour plus de renseignements. - </para> - ¶meter.compileid; - - <para> - <example> - <title>Exemple avec fetch()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// ne fait un appel à la base de données que si le fichier -// de cache n'existe pas -if(!$smarty->is_cached('index.tpl')) -{ - - // quelques données - $address = '245 N 50th'; - $db_data = array( - 'Ville' => 'Lincoln', - 'Pays' => 'Nebraska', - 'Code postal' = > '68502' - ); - - $smarty->assign('Nom','Fred'); - $smarty->assign('Adresse',$address); - $smarty->assign($db_data); - -} - -// récupère le résultat -$output = $smarty->fetch('index.tpl'); - -// fait quelque chose avec $output ici - -echo $output; -?> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>Utilisation de fetch() pour envoyer un email</title> - <para> - Le template <filename>email_body.tpl</filename> : - </para> - <programlisting> -<![CDATA[ -Cher {$contact.name}, - -Bienvenu et merci d'être devenu membre de notre groupe d'utilisateur, - -Cliquez sur le lien ci-dessous pour vous identifier avec votre nom d'utilisateur '{$contact.login_id}' -et vous pourrez utiliser nos forums. - -http://{$smarty.server.SERVER_NAME}/login/ - -Liste principale -Quelques groupes d'utilisateurs - -{include file="email_disclaimer.tpl"} -]]> - </programlisting> - <para> - Le template <filename>email_disclaimer.tpl</filename> qui utilise le modificateur - <link linkend="language.function.textformat"><varname>{textformat}</varname></link>. - </para> - <programlisting> -<![CDATA[ -{textformat wrap=40} -Unless you are named "{$contact.name}", you may read only the "odd numbered -words" (every other word beginning with the first) of the message above. If you have -violated that, then you hereby owe the sender 10 GBP for each even -numbered word you have read -{/textformat} -]]> - </programlisting> - <para> - et le script PHP utilisant la fonction PHP - <ulink url="&url.php-manual;function.mail"><varname>mail()</varname></ulink> - </para> - <programlisting role="php"> - <![CDATA[ -<?php - -// Récupération du contact depuis une base de données eg utilisation de pear ou adodb -$query = 'select name, email, login_id from contacts where contact_id='.$contact_id; -$contact = $db->getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - </programlisting> - </example> - </para> - <para> - Voir aussi - <link linkend="language.function.fetch"><varname>{fetch}</varname></link> - <link linkend="api.display"><varname>display()</varname></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link> et - <link linkend="api.template.exists"><varname>template_exists()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>get_config_vars()</refname> - <refpurpose>Retourne la valeur de la variable de configuration passée en paramètre</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Si aucun paramètre n'est donné, un tableau de toutes les variables de - configuration chargées est retourné. - </para> - <example> - <title>Exemple avec get_config_vars()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// récupère la variable de configuration chargée #foo# -$foo = $smarty->get_config_vars('foo'); - -// récupère toutes les variables de configuration chargées -$all_config_vars = $smarty->get_config_vars(); - -// les affiche a l'écran -print_r($all_config_vars); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.clear.config"><varname>clear_config()</varname></link>, - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.config.load"><varname>config_load()</varname></link> et - <link linkend="api.get.template.vars"><varname>get_template_vars()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>get_registered_object()</refname> - <refpurpose>Retourne la référence d'un objet enregistré</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Utile quand vous voulez accéder directement à un - <link linkend="api.register.object">objet enregistré</link> - avec une fonction utilisateur. Lisez la documentation sur les - <link linkend="advanced.features.objects">objets</link> pour plus d'informations. - </para> - <example> - <title>Exemple avec get_registered_object()</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, &$smarty) -{ - if (isset[$params['object']]) { - // récupère la référence de l'objet enregistré - $obj_ref =& $smarty->get_registered_object($params['object']); - // $obj_ref est maintenant une référence vers l'objet - } -} -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.object"><varname>register_object()</varname></link>, - <link linkend="api.unregister.object"><varname>unregister_object()</varname></link> et - la <link linkend="advanced.features.objects">section sur les objets</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>get_template_vars()</refname> - <refpurpose>Retourne la valeur assignée passée en paramètre</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Si aucun paramètre n'est donné, un tableau de toutes les variables - <link linkend="api.assign">assignées</link> est retourné. - </para> - <example> - <title>Exemple avec get_template_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// récupère la variable 'foo' assignée au template -// get assigned template var 'foo' -$myVar = $smarty->get_template_vars('foo'); - -// récupère toutes les variables assignées a ce template -$all_tpl_vars = $smarty->get_template_vars(); - -// les affiche a l'écran -print_r($all_tpl_vars); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.assign"><varname>assign()</varname></link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link>, - <link linkend="api.append"><varname>append()</varname></link>, - <link linkend="api.clear.assign"><varname>clear_assign()</varname></link>, - <link linkend="api.clear.all.assign"><varname>clear_all_assign()</varname></link> et - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<refentry id="api.is.cached"> - <refnamediv> - <refname>is_cached()</refname> - <refpurpose>Retourne &true; s'il y a un fichier de cache valide pour ce template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - - <itemizedlist> - <listitem><para> - Celà fonctionne seulement si <link linkend="variable.caching"> - <parameter>$caching</parameter></link> est défini à &true;, voir aussi la - <link linkend="caching">section sur le cache</link> pour plus d'informations. - </para></listitem> - - <listitem><para> - Vous pouvez aussi passer en second paramètre un identifiant - de <parameter>$cache_id</parameter> au cas où vous voudriez - <link linkend="caching.multiple.caches">plusieurs - fichiers</link> de cache pour ce template. - </para></listitem> - - <listitem><para> - Vous pouvez donner un - <link linkend="variable.compile.id"><parameter>$compile id</parameter></link> - en tant que troisième paramètre. Si vous ne spécifiez pas ce paramètre, le - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> persistant sera utilisé. - </para></listitem> - - <listitem><para> - Si vous ne voulez pas passer un <parameter>$cache_id</parameter> mais plutôt un - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link>, vous devez passer - &null; en tant que <parameter>$cache_id</parameter>. - </para></listitem> - </itemizedlist> - - <note> - <title>Note technique</title> - <para> - Si <varname>is_cached()</varname> retourne &true;, il charge en fait le cache existant et - le stocke en interne. Tout appel supplémentaire à - <link linkend="api.display"><varname>display()</varname></link> ou - <link linkend="api.fetch"><varname>fetch()</varname></link> retournera ce - contenu stocké en interne - sans tenter de recharger le fichier en cache. Celà évite des problématiques d'accès concurents, - lorsqu'un second processus efface le cache entre l'appel de - <varname>is_cached()</varname> et l'appel à - <link linkend="api.display"><varname>display()</varname></link> - comme dans l'un de nos exemples ci-dessus. Celà signifie également que les appels à - <link linkend="api.clear.cache"><varname>clear_cache()</varname></link> - et les changements de paramètres du cache peuvent n'avoir aucun effet alors que - <varname>is_cached()</varname> a retourné &true;. - </para> - </note> - - <example> - <title>Exemple avec is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { -//aucun appel à la base de donnée -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <example> - <title>Exemple avec is_cached() et plusieurs templates</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl', 'FrontPage')) { - //appel de la base de données, assignation des variables -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.clear.cache"><varname>clear_cache()</varname></link>, - <link linkend="api.clear.all.cache"><varname>clear_all_cache()</varname></link> et - la <link linkend="caching">section sur le cache</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.load.filter"> - <refnamediv> - <refname>load_filter()</refname> - <refpurpose>Charge un plugin de filtrage</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Le premier argument spécifie le type du filtre - et peut prendre l'une des valeurs suivantes : <literal>pre</literal>, <literal>post</literal> ou - <literal>output</literal>. Le second argument spécifie le nom du plugin - de filtrage. - </para> - <example> - <title>Chargement de plugins de filtrage</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// charge un pré-filtre nommé 'trim' -$smarty->load_filter('pre', 'trim'); - -// charge un autre pré-filtre nommé 'datefooter' -$smarty->load_filter('pre', 'datefooter'); - -// charge un filtre de sortie nommé 'compress' -$smarty->load_filter('output', 'compress'); - -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.prefilter"><varname>register_prefilter()</varname></link>, - <link linkend="api.register.postfilter"><varname>register_postfilter()</varname></link>, - <link linkend="api.register.outputfilter"><varname>register_outputfilter()</varname></link>, - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link> et - les <link linkend="advanced.features">fonctionnalités avancées</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-block.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.register.block"> - <refnamediv> - <refname>register_block()</refname> - <refpurpose>Déclare dynamiquement des plugins de fonction de blocs</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour déclarer dynamiquement des <link linkend="plugins.block.functions">plugins de fonction - de blocs</link>. Il faut passer en paramètre le nom de la fonction - de blocs, suivi du nom de la fonction PHP qui l'implémente. - </para> - &api.register.snippet; - <para> - Les paramètre <parameter>cacheable</parameter> et - <parameter>cache_attrs</parameter> peuvent être omis dans la plupart - des cas. Voir <link - linkend="caching.cacheable">Contrôler la mise en cache des sorties des Plugins</link> - pour plus d'informations concernant cette utilisation. - </para> - <example> - <title>Exemple avec register_block()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Déclaration de la fonction -function do_translation ($params, $content, &$smarty, &$repeat) { - if ($content) { - $lang = $params['lang']; - // fait de la traduction avec la variable $content - echo $translation; - } -} - -// Enregistrement avec Smarty -$smarty->register_block('translate', 'do_translation'); -?> -]]> - </programlisting> - <para> - Le template Smarty : - </para> - <programlisting> -<![CDATA[ -{translate lang='br'}Bonjour le monde !{/translate} -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.unregister.block"><varname>unregister_block()</varname></link> et - les <link linkend="plugins.block.functions">plugins de fonction de blocs</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-compiler-function.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.register.compiler.function"> - <refnamediv> - <refname>register_compiler_function()</refname> - <refpurpose>Déclare dynamiquement un plugin de fonction de compilation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Il faut passer en paramètres le nom de la <link linkend="plugins.compiler.functions">fonction - de compilation</link>, suivi par la fonction PHP qui l'implémente. - </para> - &api.register.snippet; - <para> - Le paramètre <parameter>cacheable</parameter> peut être omis dans la - plupart des cas. Voir <link - linkend="caching.cacheable">Contrôler la mise en cache des sorties des Plugins</link> - pour plus d'informations concernant cette utilisation. - </para> - <para> - Voir aussi - <link linkend="api.unregister.compiler.function"> - <varname>unregister_compiler_function()</varname></link> et - les <link linkend="plugins.compiler.functions">plugins de fonction de compilation</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-function.xml
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function()</refname> - <refpurpose>Déclare dynamiquement des plugins de fonction de templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Il faut passer en paramètres le nom de la <link linkend="plugins.functions">fonction - de templates</link>, suivi par le nom de la fonction PHP qui l'implémente. - </para> - &api.register.snippet; - <para> - Les paramètres <parameter>cacheable</parameter> et - <parameter>cache_attrs</parameter> peut être omis dans la - plupart des cas. Voir <link - linkend="caching.cacheable">Contrôler la mise en cache des sorties des Plugins</link> - pour plus d'informations concernant cette utilisation. - </para> - <example> - <title>Exemple avec register_function()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_function('date_now', 'print_current_date'); - -function print_current_date ($params) { - extract($params); - if(empty($format)) - $format="%b %e, %Y"; - echo strftime($format,time()); -} - -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -{date_now} - -{* ou, formaté différemment *} -{date_now format="%Y/%m/%d"} -]]> - </programlisting> - </example> - - <para> - Voir aussi - <link linkend="api.unregister.function"><varname>unregister_function()</varname></link> et - les <link linkend="plugins.functions">plugins de fonction</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-modifier.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<refentry id="api.register.modifier"> - <refnamediv> - <refname>register_modifier()</refname> - <refpurpose>Déclare dynamiquement un plugin de modificateur</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Il faut passer en paramètre le nom du modificateur de variables, - suivi de la fonction PHP qui l'implémente. - </para> - &api.register.snippet; - <example> - <title>register_modifier()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Associons la fonction PHP stripslashes a un modificateur Smarty. -$smarty->register_modifier('ss', 'stripslashes'); -?> -]]> - </programlisting> - <para> - Où le template est : - </para> - <programlisting> -<![CDATA[ -<?php -{* utiliser 'sslash' pour utiliser la fonction PHP strislashes() *} -{$var|sslash} -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.unregister.modifier"><varname>unregister_modifier()</varname></link>, - <link linkend="api.register.function"><varname>register_function()</varname></link>, - les <link linkend="language.modifiers">modifieurs</link>, - l'<link linkend="plugins">extension de Smarty avec des plugins</link> et - la <link linkend="plugins.modifiers">création de plugins modifieurs</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<refentry id="api.register.object"> - <refnamediv> - <refname>register_object()</refname> - <refpurpose>Enregistre un objet à utiliser dans un template</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter> - </methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Reportez-vous à la section - <link linkend="advanced.features.objects">objet</link> de - ce manuel pour plus d'informations. - </para> - <para> - Voir aussi - <link linkend="api.get.registered.object"><varname>get_registered_object()</varname></link> et - <link linkend="api.unregister.object"><varname>unregister_object()</varname></link>. - </para> - </refsect1> -</refentry> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-outputfilter.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter()</refname> - <refpurpose>Déclare dynamiquement des filtres de sortie</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour déclarer dynamiquement des - <link linkend="plugins.outputfilters">filtres de sortie</link>, pour - agir sur la sortie d'un template avant qu'il ne soit <link linkend="api.display">affiché</link>. - Reportez-vous à la section <link linkend="advanced.features.outputfilters"> - filtres de sortie</link> pour plus d'information sur le sujet. - </para> - &api.register.snippet; - <para> - Voir aussi - <link linkend="api.unregister.outputfilter"><varname>unregister_outputfilter()</varname></link>, - <link linkend="api.load.filter"><varname>load_filter()</varname></link>, - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link> et - les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>. - </para> - </refsect1> - </refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-postfilter.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter()</refname> - <refpurpose>Déclare dynamiquement des filtres de post-compilation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour déclarer dynamiquement des - <link linkend="advanced.features.postfilters">filtres de post-compilation</link> pour y faire - passer des templates une fois qu'ils ont été compilés. Reportez-vous - à la section - <link linkend="advanced.features.postfilters">filtres de post-compilation de templates</link> - pour avoir plus de renseignements sur la façon de paramétrer les fonctions - de post-compilation. - </para> - &api.register.snippet; - <para> - Voir aussi - <link linkend="api.unregister.postfilter"> - <varname>unregister_postfilter()</varname></link>, - <link linkend="api.register.prefilter"> - <varname>register_prefilter()</varname></link>, - <link linkend="api.load.filter"><varname>load_filter()</varname></link>, - <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> et - les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>. - </para> - </refsect1> -</refentry> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-prefilter.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter()</refname> - <refpurpose>Déclare dynamiquement des filtres de pré-compilation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour déclarer dynamiquement des - <link linkend="advanced.features.prefilters">filtres de pré-compilation</link> pour y faire - passer des templates avant qu'ils ne soient compilés. Reportez-vous - à la section - <link linkend="advanced.features.postfilters">filtres de pré-compilation de templates</link> - pour avoir plus de renseignements sur la façon de paramétrer les fonctions - de pré-compilation. - </para> - &api.register.snippet; - <para> - Voir aussi - <link linkend="api.unregister.prefilter"><varname>unregister_prefilter()</varname></link>, - <link linkend="api.register.postfilter"><varname>register_postfilter()</varname></link>, - <link linkend="api.register.outputfilter"><varname>register_ouputfilter()</varname></link>, - <link linkend="api.load.filter"><varname>load_filter()</varname></link>, - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link> et - les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>. - </para> - </refsect1> -</refentry> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource()</refname> - <refpurpose>Déclare dynamiquement une ressource plugin</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour déclarer dynamiquement une <link linkend="template.resources">ressource plugin</link> - dans Smarty. Il faut passer en paramètre le nom de la ressource - et le tableau des fonctions PHP qui l'implémentent. Reportez-vous - à la section <link linkend="template.resources">ressources templates</link> - pour avoir plus d'informations sur la façon de paramétrer une fonction - récupérant des templates. - <note> - <title>Note technique</title> - <para> - Un nom de ressource doit être composé d'au moins deux caractères. - Les noms de ressources d'un seul caractère seront ignorés et utilisés - comme étant une partie du chemin du fichier, comme avec - $smarty->display('c:/path/to/index.tpl'); - </para> - </note> - - </para> - - <itemizedlist> - <listitem><para> - Le tableau de fonctions PHP <parameter>resource_funcs</parameter> - doit être composé de 4 ou 5 éléments. - </para></listitem> - <listitem><para> - S'il est composé de 4 éléments, - les éléments seront les noms de fonctions pour, respectivement, - <literal>source</literal>, <literal>timestamp</literal>, <literal>secure</literal> et - <literal>trusted</literal> de la ressource. - </para></listitem> - <listitem><para> - S'il est composé de 5 éléments, le premier élément devra être une - référence sur un objet ou le nom d'une classe de l'objet ou une classe - implémentant la ressource et les 4 éléments suivants doivent être - les noms des méthodes implémentant <literal>source</literal>, - <literal>timestamp</literal>, <literal>secure</literal> - et <literal>trusted</literal>. - </para></listitem> - </itemizedlist> - - <example> - <title>Exemple avec register_resource()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_resource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.unregister.resource"><varname>unregister_resource()</varname></link> et - les <link linkend="template.resources">ressources de template</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<refentry id="api.template.exists"> - <refnamediv> - <refname>template_exists()</refname> - <refpurpose>Vérifie si un template spécifique existe</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Elle accepte soit un chemin vers le template, soit une ressource de type - chaîne de caractères spécifiant le nom du template. - </para> - - <example> - <title>template_exists()</title> - <para> - Cet exemple utilise <literal>$_GET['page']</literal> pour inclure le contenu d'un template. - Si le template n'existe pas, une page d'erreur sera affiché à la place. - Le fichier <filename>page_container.tpl</filename> : - </para> - <programlisting role="php"> -<![CDATA[ -<html> - <head><title>{$title}</title></head> - <body> - {include file='page_top.tpl'} - - {* inclure le contenu du milieu de la page *} - {include file=$page_mid} - - {include file='page_footer.tpl'} - </body> - ]]> - </programlisting> - <para> - Et le script PHP - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// Définit le nom du fichier eg index.inc.tpl -$mid_template = $_GET['page'].'.inc.tpl'; - -if( !$smarty->template_exists($mid_template) ){ - $mid_template = 'page_not_found.inc.tpl'; -} -$smarty->assign('page_mid', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.display"><varname>display()</varname></link>, - <link linkend="api.fetch"><varname>fetch()</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link> et - <link linkend="language.function.insert"><varname>{insert}</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-trigger-error.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error()</refname> - <refpurpose>Affiche un message d'erreur</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Cette fonction peut-être utilisée pour afficher un message d'erreur - en utilisant Smarty. Le paramètre <parameter>level</parameter> - peut prendre l'une des valeures utilisées par la fonction PHP - <ulink url="&url.php-manual;trigger_error"><varname>trigger_error()</varname></ulink>, - i.e. <literal>E_USER_NOTICE</literal>, <literal>E_USER_WARNING</literal>, etc. Par défaut - il s'agit de <literal>E_USER_WARNING</literal>. - </para> - <para> - Voir aussi - <link linkend="variable.error.reporting"><parameter>$error_reporting</parameter></link>, - le <link linkend="chapter.debugging.console">débogage</link> et - <link linkend="smarty.php.errors">Troubleshooting</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-block.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block()</refname> - <refpurpose>Désalloue dynamiquement un plugin de fonction de blocs</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour désallouer dynamiquement un <link linkend="plugins.block.functions">plugin de fonction - de blocs</link>. Passez en paramètre le nom <parameter>name</parameter> du bloc. - </para> - <para> - Voir aussi - <link linkend="api.register.block"><varname>register_block()</varname></link> et - les <link linkend="plugins.block.functions">plugins de fonctions de blocs</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-compiler-function.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function()</refname> - <refpurpose>Désalloue dynamiquement une fonction de compilation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Passez en paramètre le nom <parameter>name</parameter> de - la fonction de compilation. - </para> - <para> - Voir aussi - <link linkend="api.register.compiler.function"> - <varname>register_compiler_function()</varname></link> et - les <link linkend="plugins.compiler.functions">plugins de fonction de compilation</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-function.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function()</refname> - <refpurpose>Désalloue dynamiquement un plugin de fonction de templates</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Passez en paramètres le nom de la fonction de templates. - </para> - <example> - <title>Exemple avec unregister_function()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// nous ne voulons pas que les designers de templates aient accès -// au système de fichiers. -$smarty->unregister_function('fetch'); - -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.function"><varname>register_function()</varname></link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-modifier.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.modifier"> - <refnamediv> - <refname>unregister_modifier()</refname> - <refpurpose>Désalloue dynamiquement un plugin modificateur de variable</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Passez en paramètre le nom du modificateur de templates. - </para> - <example> - <title>Exemple avec unregister_modifier()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// nous ne voulons pas que les designers de templates -// suppriment les balises des élements - -$smarty->unregister_modifier('strip_tags'); - -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.modifier"><varname>register_modifier()</varname></link> et - les <link linkend="plugins.modifiers">plugins modificateur</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregister_object()</refname> - <refpurpose>Désalloue dynamiquement un objet</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Voir aussi - <link linkend="api.register.object"><varname>register_object()</varname></link> et - la <link linkend="advanced.features.objects">section sur les objets</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-outputfilter.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter()</refname> - <refpurpose>Désalloue dynamiquement un filtre de sortie</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Utilisée pour désallouer dynamiquement un filtre de sortie. - </para> - <para> - Voir aussi - <link linkend="api.register.outputfilter"><varname>register_outputfilter()</varname></link> et - les <link linkend="advanced.features.outputfilters">filtres de sortie de template</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-postfilter.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter()</refname> - <refpurpose>Désallouer dynamiquement un filtre de post-compilation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Voir aussi - <link linkend="api.unregister.postfilter"><varname>register_postfilter()</varname></link> et - les <link linkend="plugins.prefilters.postfilters">filtres de post-compilation</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-prefilter.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter()</refname> - <refpurpose>Désalloue dynamiquement un filtre de pré-compilation</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Voir aussi - <link linkend="api.register.prefilter"><varname>register_prefilter()</varname></link> et - les <link linkend="plugins.prefilters.postfilters">pré-filtres</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource()</refname> - <refpurpose>Désalloue dynamiquement un plugin ressource</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Passez en paramètre le nom de la ressource. - </para> - <example> - <title>Exemple avec unregister_resource()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->unregister_resource("db"); - -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.resource"><varname>register_resource()</varname></link> et - les <link linkend="template.resources">ressources de template</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<chapter id="api.variables"> - <title>Variables</title> - - &programmers.api-variables.variable-template-dir; - &programmers.api-variables.variable-compile-dir; - &programmers.api-variables.variable-config-dir; - &programmers.api-variables.variable-plugins-dir; - &programmers.api-variables.variable-debugging; - &programmers.api-variables.variable-debug-tpl; - &programmers.api-variables.variable-debugging-ctrl; - &programmers.api-variables.variable-autoload-filters; - &programmers.api-variables.variable-compile-check; - &programmers.api-variables.variable-force-compile; - &programmers.api-variables.variable-caching; - &programmers.api-variables.variable-cache-dir; - &programmers.api-variables.variable-cache-lifetime; - &programmers.api-variables.variable-cache-handler-func; - &programmers.api-variables.variable-cache-modified-check; - &programmers.api-variables.variable-config-overwrite; - &programmers.api-variables.variable-config-booleanize; - &programmers.api-variables.variable-config-read-hidden; - &programmers.api-variables.variable-config-fix-newlines; - &programmers.api-variables.variable-default-template-handler-func; - &programmers.api-variables.variable-php-handling; - &programmers.api-variables.variable-security; - &programmers.api-variables.variable-secure-dir; - &programmers.api-variables.variable-security-settings; - &programmers.api-variables.variable-trusted-dir; - &programmers.api-variables.variable-left-delimiter; - &programmers.api-variables.variable-right-delimiter; - &programmers.api-variables.variable-compiler-class; - &programmers.api-variables.variable-request-vars-order; - &programmers.api-variables.variable-request-use-auto-globals; - &programmers.api-variables.variable-error-reporting; - &programmers.api-variables.variable-compile-id; - &programmers.api-variables.variable-use-sub-dirs; - &programmers.api-variables.variable-default-modifiers; - &programmers.api-variables.variable-default-resource-type; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> - -<sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - Si vous désirez charger des filtres a chaque invocation - de templates, vous pouvez le spécifier en utilisant cette - variable. Les types de filtres et les valeurs sont des - tableaux comportant le nom des filtres. - <informalexample> - <programlisting> -<![CDATA[ -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -]]> - </programlisting> - </informalexample> - </para> - <para> - Voir aussi - <link linkend="api.register.outputfilter"><varname>register_outputfilter()</varname></link>, - <link linkend="api.register.prefilter"><varname>register_prefilter()</varname></link>, - <link linkend="api.register.postfilter"><varname>register_postfilter()</varname></link> et - <link linkend="api.load.filter"><varname>load_filter()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> - -<sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - Il s'agit du nom du répertoire où les caches des templates - sont stockés. Par défaut il s'agit de - <filename class="directory">./cache</filename>, ce qui signifie - que Smarty va chercher ce répertoire - dans le même répertoire que le script PHP en cours d'exécution. - <emphasis role="bold">Ce dossier doit être accessible en écriture par - le serveur web</emphasis> - (<link linkend="installing.smarty.basic">Voir l'installation</link> pour plus d'informations). - Vous pouvez aussi utiliser votre propre fonction de - <link linkend="section.template.cache.handler.func">gestion de cache - personnalisé</link> pour contrôler les fichiers de cache, qui ignorera - cette configuration. - Voir aussi <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>. - </para> - <note> - <title>Note technique</title> - <para> - Ce réglage doit être soit un chemin absolu, soit un chemin - relatif. include_path n'a aucune influence lors de l'écriture des fichiers. - </para> - </note> - <note> - <title>Note technique</title> - <para> - Il n'est pas conseillé de mettre ce répertoire - dans l'arborescence Web. - </para> - </note> - <para> - Voir aussi - <link linkend="variable.caching"><parameter>$caching</parameter></link>, - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>, - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>, - <link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link>, - <link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link> et - la <link linkend="caching">section sur le cache</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> - -<sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - Vous pouvez utiliser votre propre fonction de gestion du cache plutôt que - d'utiliser celle livrée avec Smarty - (<link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>). - Référez-vous à la section sur la - <link linkend="section.template.cache.handler.func">fonction de gestion de cache - personnalisée</link> pour plus de détails. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> - -<sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - Il s'agit de la durée en secondes pendant laquelle un cache de template - est valide. Une fois cette durée dépassée, le cache est regénéré. - </para> - - <itemizedlist> - <listitem><para> - <parameter>$caching</parameter> doit être activé (soit 1 ou 2) pour que - <parameter>$cache_lifetime</parameter> ait une quelconque utilité. - </para></listitem> - - <listitem><para> - Avec une valeur de -1, le cache n'expire jamais. - </para></listitem> - - <listitem><para>Avec une valeur de 0, le cache est toujours regénéré (utile - a des fins de tests seulement. Une meilleure façon de désactiver - le cache est de mettre <link - linkend="variable.caching"><parameter>$caching</parameter></link> = 0). - </para></listitem> - <listitem><para> - Si vous souhaitez donner a certains templates leur propre durée de vie - en cache, vous pouvez le faire en réglant <link linkend="variable.caching"> - <parameter>$caching</parameter></link> à 2, - puis <parameter>$cache_lifetime</parameter> à une unique valeur juste avant d'appeler - <link linkend="api.display"><varname>display()</varname> - </link> ou <link linkend="api.fetch"><varname>fetch()</varname></link>. - </para></listitem> - </itemizedlist> - - <para> - Si <link linkend="variable.force.compile"><parameter>$force_compile</parameter></link> est - activé, les fichiers du cache seront regénérés a chaque fois, - désactivant ainsi le cache. Vous pouvez effacer tous les fichiers du cache - avec la function - <link linkend="api.clear.all.cache"><varname>clear_all_cache()</varname></link> - ou de façon individuelle (ou groupée) avec la fonction <link - linkend="api.clear.cache"><varname>clear_cache()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> - -<sect1 id="variable.cache.modified.check"> - <title>$cache_modified_check</title> - <para> - Si cette variable est à &true;, Smarty respectera l'en-tête - If-Modified-Since envoyé par le client. Si la date de dernière - modification du fichier de cache n'a pas changé depuis la dernière - visite, alors un en-tête <literal>'304: Not Modified'</literal> sera envoyé à la place - du contenu. Celà ne fonctionne qu'avec du contenu mis en cache hors de la - balise <link linkend="language.function.insert"><varname>{insert}</varname></link>. - </para> - <para> - Voir aussi - <link linkend="variable.caching"><parameter>$caching</parameter></link>, - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>, - <link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link> - et la <link linkend="caching">section sur le cache</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="variable.caching"> - <title>$caching</title> - <para> - Ce paramètre demande à Smarty de mettre ou non en cache la sortie des - templates. - Par défaut, ce réglage est à 0 (désactivé). Si vos templates - générent du contenu redondant, il est conseillé d'activer le - cache. Celà permettra un gain de performance conséquent. - </para> - - <para> - Vous pouvez aussi avoir de - <link linkend="caching.multiple.caches">nombreux fichiers de cache</link> - pour un même template. - </para> - - <itemizedlist> - <listitem><para> - Une valeur de 1 ou 2 active le cache. - </para></listitem> - - <listitem><para> - 1 indique a Smarty d'utiliser la variable - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - pour déterminer si le fichier de cache a expiré. - </para></listitem> - <listitem><para> - Une valeur de 2 indique à Smarty d'utiliser la valeur - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - spécifiée à la - génération du cache. Ainsi vous pouvez régler - la durée de vie d'un fichier de cache avant de <link linkend="api.fetch">récupérer</link> - le template pour avoir un certain contrôle quand ce fichier en particulier expire. Voir - aussi <link linkend="api.is.cached"><varname>is_cached()</varname></link>. - </para></listitem> - - <listitem><para> - Si <link linkend="variable.compile.check"><parameter>$compile_check</parameter></link> - est actif, le contenu du cache sera regénéré si un des templates ou un des fichiers de - configuration qui fait partie de ce fichier de cache a été modifié. - </para></listitem> - <listitem><para> - Si <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> est actif, le contenu du cache - est toujours regénéré. - </para></listitem> - </itemizedlist> - - <para> - Voir aussi - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>, - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>, - <link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link>, - <link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link>, - <link linkend="api.is.cached"><varname>is_cached()</varname></link> et - la <link linkend="caching">section sur le cache</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - A chaque invocation de l'application PHP, Smarty fait - un test pour voir si le template courant a été modifié - (date de dernière modification différente) depuis sa - dernière compilation. S'il a changé, le template est recompilé. - Si le template n'a pas encore été compilé, il le sera - quelque soit la valeur de ce réglage. - Par défaut cette valeur est à &true;. - </para> - <para> - Quand une application est mise en production (les templates - ne changent plus), cette vérification n'est pas nécessaire. - Assurez-vous de mettre <parameter>$compile_check</parameter> à &false; - pour des performances maximales. Notez que si vous mettez ce paramètre à &false; et qu'un - template est modifié, vous ne verrez *pas* le changement - car le template ne sera *pas* recompilé. Si le processus de cache - est activé et que <parameter>$compile_check</parameter> l'est aussi, alors les fichiers - du cache seront regénérés si un template concerné ou un fichier de - configuration concerné est modifié. Voir aussi <link - linkend="variable.force.compile"><parameter>$force_compile</parameter></link> ou <link - linkend="api.clear.compiled.tpl"><varname>clear_compiled_tpl()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - C'est le nom du répertoire où se trouvent les templates - compilés. Par défaut, il s'agit de <filename class="directory">./templates_c</filename>, - ce qui signifie que Smarty va chercher ce répertoire - dans le même répertoire que le script PHP en cours d'exécution. - <emphasis role="bold">Ce dossier doit être accessible en écriture - par le serveur web.</emphasis> - (<link linkend="installing.smarty.basic">Voir l'installation</link> pour plus d'informations). - </para> - <note> - <title>Note technique</title> - <para> - Ce réglage doit être soit un chemin absolu, soit un chemin - relatif. include_path n'est pas utilisé pour écrire des fichiers. - </para> - </note> - <note> - <title>Note technique</title> - <para> - Il n'est pas conseillé de mettre ce répertoire - sous la racine de l'arborescence Web. - </para> - </note> - <para> - Voir aussi - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> et - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Identifiant persistant du compilateur. On peut passer le même - <parameter>$compile_id</parameter> a chaque appel de fonction mais une - alternative consiste à régler ce - <parameter>$compile_id</parameter>, qui sera utilisé implicitement. - </para> - <para> - Avec un <parameter>$compile_id</parameter>, vous pouvez contourner la limitation qui fait - que vous ne pouvez pas utiliser le même - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link> pour - différents <link linkend="variable.template.dir"><parameter>$template_dirs</parameter></link>. - Si vous définissez un <parameter>$compile_id</parameter> distinct pour - chaque <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>, - alors Smarty indique aux templates compilés à part par leur - <parameter>$compile_id</parameter>. - </para> - <para> - Si vous avez par exemple un <link linkend="plugins.prefilters.postfilters">pré-filtre</link> - qui traduit vos templates au moment de la compilation, alors, vous devriez utiliser le langage - courant comme <parameter>$compile_id</parameter> et vous devriez obtenir un jeu - de templates compilés pour chaque langage que vous utiliserez. - </para> - <para> - Un autre exemple serait d'utiliser le même dossier de compilation - à travers de multiples domaines / vhosts. - </para> - <example> - <title>$compile_id dans un environement d'hôte virtuel</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/chemin/vers/shared_compile_dir'; - -?> -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> - -<sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Spécifie le nom de la classe du compilateur qui va être utilisée pour - compiler les templates. Le compilateur par défaut est - 'Smarty_Compiler'. Réservé aux utilisateurs avancés. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> - -<sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - Si cette variable est à &true;, les valeurs <literal>on/true/yes</literal> - et <literal>off/false/no</literal> dans - <link linkend="config.files">les fichiers de configuration</link> - sont automitiquement converties en booléen. De cette façon vous pouvez - utiliser ces valeurs dans le template de la façon suivante : <literal>{if #foobar#}...{/if}</literal>. - Si foobar est à <literal>on</literal>, <literal>true</literal> ou <literal>yes</literal>, - l'instruction <varname>{if}</varname> sera exécutée. &true; par défaut. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - Il s'agit du répertoire utilisé pour stocker les - <link linkend="config.files">fichiers de configuration</link> - utilisés dans les templates. - La valeur par défaut est <filename class="directory">./configs</filename>, - ce qui signifie que Smarty va chercher ce répertoire - dans le même répertoire que le script PHP qui s'exécute. - </para> - <note> - <title>Note technique</title> - <para> - Il n'est pas conseillé de mettre ce répertoire - sous la racine de l'arborescence Web. - </para> - </note> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-config-fix-newlines.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> - -<sect1 id="variable.config.fix.newlines"> - <title>$config_fix_newlines</title> - <para> - Si cette variable est mise à &true;, les caractéres de nouvelles lignes mac et dos - (<literal>'\r'</literal> et <literal>'\r\n'</literal>) sont convertis en - <literal>'\n'</literal> quand ils sont analysés. &true; par défaut. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - Si cette variable est à &true; (par défaut), les variables lues dans les - <link linkend="config.files">fichiers de configuration</link> - peuvent s'écraser entre elles. Sinon les variables - seront mises dans un tableau. Très utile si vous voulez stocker - des tableaux de données dans des fichiers de configuration, listez - simplement chaque élément plusieurs fois. - </para> - - <example> - <title>Tableau de variables de configuration</title> - <para> - Cet exemple utilise - <link linkend="language.function.cycle"><varname>{cycle}</varname></link> - pour afficher un tableau dont les lignes sont alternativement rouge/verte/bleu - avec <parameter>$config_overwrite</parameter> = &false;. - </para> - <para>Le fichier de configuration</para> - <programlisting> -<![CDATA[ -# couleur des lignes -rowColors = #FF0000 -rowColors = #00FF00 -rowColors = #0000FF -]]> - </programlisting> - <para> - Le template avec une boucle - <link linkend="language.function.section"><varname>{section}</varname></link>. - </para> - <programlisting> -<![CDATA[ -<table> - {section name=r loop=$rows} - <tr bgcolor="{cycle values=#rowColors#}"> - <td> ....etc.... </td> - </tr> - {/section} -</table> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>, - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>, - <link linkend="api.clear.config"><varname>clear_config()</varname></link>, - <link linkend="api.config.load"><varname>config_load()</varname></link> et - les <link linkend="config.files">fichiers de configuration</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - Si cette variable est à &true;, les sections cachées (dont les noms - commencent par un point) dans les <link linkend="config.files">fichiers de configuration</link> - peuvent être lues depuis les templates. On laisse habituellement celà à &false;, de - cette façon vous pouvez stocker des données sensibles dans les fichiers - de configuration, par exemple des paramètres de base de données, - sans vous soucier de la façon dont les templates les chargent. - Mise à &false; par défaut. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-debug-tpl.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="variable.debug.tpl"> - <title>$debug_tpl</title> - <para> - C'est le nom du fichier template utilisé pour la - console de débogage. Par défaut <filename>debug.tpl</filename>, - il se situe dans <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>. - </para> - <para> - Voir aussi - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> et - la <link linkend="chapter.debugging.console">console de débogage</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - Cela permet d'avoir différents moyens pour activer - le débogage. <literal>NONE</literal> signifie qu'aucune - méthode alternative n'est autorisée. <literal>URL</literal> - signifie que si <literal>SMARTY_DEBUG</literal> se - trouve dans <literal>QUERY_STRING</literal>, le débogage - est activé à l'invocation du script. Si - <link linkend="variable.debugging">$debugging</link> - est à &true;, cette valeur est sans effet. - </para> - <example> - <title>$debugging_ctrl sur localhost</title> - <programlisting role="php"> -<![CDATA[ -<?php -// affiche la console de débogage uniquement sur localhost ie -// http://localhost/script.php?foo=bar&SMARTY_DEBUG -$smarty->debugging = false; // the default -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - la <link linkend="chapter.debugging.console">console de débogage</link> et - <link linkend="variable.debugging"><parameter>$debugging</parameter></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - Celà active la - <link linkend="chapter.debugging.console">console de débogage</link>. - La console est une fenêtre javascript qui vous informe des templates - <link linkend="language.function.include">inclus</link> et des variables - <link linkend="api.assign">assignées</link> depuis PHP et des - <link linkend="language.config.variables">variables des fichiers de configuration</link> - pour le script courant. Il ne montre pas les variables assignées - dans un template avec - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> - <para> - Voir aussi - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link> - sur la façon d'activer le débogage depuis l'url. - </para> - <para> - Voir aussi - <link linkend="language.function.debug"><varname>{debug}</varname></link>, - <link linkend="variable.debug.tpl"><parameter>$debug_tpl</parameter></link> et - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link>. - </para> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> - -<sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - Il s'agit d'un tableau de modificateurs utilisé pour assigner - une valeur par défaut a chaque variable dans un template. - Par exemple, pour par défaut échapper les caractéres HTML de chaque variable, - utilisez <literal>array('escape:"htmlall"')</literal>. Pour rendre une variable indépendante - des modificateurs par défaut, passez-lui en paramètre le modificateur - <literal>nodefaults</literal> : <literal>{$var|smarty:nodefaults}</literal>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> - -<sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - Ceci dit à smarty quel type de ressource utiliser implicitement. La valeur - par défaut est <literal>file</literal>, signifiant que - <literal>$smarty->display('index.tpl')</literal> et - <literal>$smarty->display('file:index.tpl')</literal> sont la même chose. Voyez le chapitre - <link linkend="template.resources">ressource</link> pour plus de détails. - </para> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - -->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> - -<sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - Cette fonction est appelée quand un template ne peut pas être - obtenu avec sa ressource. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> - -<sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - Lorsque cette valeur est configurée à une valeur non nulle, - sa valeur est utilisée comme le - <ulink url="&url.php-manual;error_reporting"><varname>error_reporting</varname></ulink>-level - de PHP à l'intérieur de <link linkend="api.display"><varname>display()</varname></link> - et <link linkend="api.fetch"><varname>fetch()</varname></link>. Lorsque le <link - linkend="chapter.debugging.console">déboguage</link> - est ignoré, cette valeur est ignorée et error-level est non-modifié. - </para> - <para> - Voir aussi - <link linkend="api.trigger.error"><varname>trigger_error()</varname></link>, - le <link linkend="chapter.debugging.console">débogage</link> et - <link linkend="troubleshooting">Troubleshooting</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - Celà oblige Smarty à (re)compiler les templates à chaque - invocation. Ce réglage supplante - <link linkend="variable.compile.check"><parameter>$compile_check</parameter></link>. - Par défaut, il vaut &false;. Ceci est commode pour le développement - et le <link linkend="chapter.debugging.console">débogage</link> - mais ne devrait jamais être utilisé dans un environnment de production. - Si le système de <link linkend="variable.caching">cache</link> est actif, les - fichiers du cache seront regénérés à chaque appel. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - Il s'agit du délimiteur gauche utilisé par le moteur de templates. La - valeur par défaut est <literal>{</literal>. - </para> - <para> - Voir aussi - <link linkend="variable.right.delimiter"><parameter>$right_delimiter</parameter></link> et - l'<link linkend="language.escaping">analyse d'échapement Smarty</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> - -<sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - Indique à Smarty comment interpréter le code PHP - intégré dans les templates. Il y a quatre valeurs possibles, par - défaut <constant>SMARTY_PHP_PASSTHRU</constant>. Notez - que celà n'affecte PAS le code PHP entouré des balises - <link linkend="language.function.php"><varname>{php}{/php}</varname></link> - dans le template. - </para> - <itemizedlist> - <listitem><para><constant>SMARTY_PHP_PASSTHRU</constant> - Smarty écrit les balises - telles quelles.</para></listitem> - <listitem><para><constant>SMARTY_PHP_QUOTE</constant> - Smarty transforme les balises - en entités HTML.</para></listitem> - <listitem><para><constant>SMARTY_PHP_REMOVE</constant> - Smarty supprime les balises - des templates.</para></listitem> - <listitem><para><constant>SMARTY_PHP_ALLOW</constant> - Smarty exécute les balises - comme du code PHP.</para></listitem> - </itemizedlist> - <note> - <para> - Intégrer du code PHP dans les templates est vivement - déconseillé. Préférez les - <link linkend="language.custom.functions">fonctions utilisateurs</link> ou les - <link linkend="language.modifiers">modificateurs de variables</link>. - </para> - </note> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - C'est le répertoire (ou les répertoires) dans lequel Smarty ira chercher - les plugins dont il a besoin. La valeur par défaut est - <filename class="directory">plugins/</filename> sous - le répertoire <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>. - Si vous donnez un chemin relatif, Smarty - regardera d'abord relativement au - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>, puis relativement - au répertoire de travail courant, puis relativement à chaque entrée de votre répertoire - d'inclusion PHP. Si <parameter>$plugins_dir</parameter> est un tableau de répertoires, Smarty - cherchera les plugins dans chaque répertoire de plugins, - <emphasis role="bold">dans l'ordre donné</emphasis>. - </para> - <note> - <title>Note technique</title> - <para> - Pour des raisons de performances, ne réglez pas votre <parameter>$plugins_dir</parameter> - pour qu'il utilise votre include_path PHP. Utilisez un - chemin absolu ou un chemin relatif a <constant>SMARTY_DIR</constant> ou - au répertoire de travail courant. - </para> - </note> - - <example> - <title>Ajout d'un dossier local de plugins</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - </programlisting> - </example> - - <example> - <title>Plusieurs $plugins_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-request-use-auto-globals.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> - -<sect1 id="variable.request.use.auto.globals"> - <title>$request_use_auto_globals</title> - <para> - Spécifie si Smarty doit utiliser les variables PHP <literal>$HTTP_*_VARS[]</literal> - ($request_use_auto_globals=&false; qui est la valeur par défaut) ou - <literal>$_*[]</literal> ($request_use_auto_globals=&true;). Cela affecte les templates - qui utilisent - <link linkend="language.variables.smarty"><literal>{$smarty.request.*}, {$smarty.get.*}</literal></link> etc.. - </para> - <note> - <title>Attention</title> - <para> - Si vous configurez <literal>$request_use_auto_globals to true</literal> à &true;, - <link linkend="variable.request.vars.order"><parameter>$request_vars_order</parameter></link> - n'a plus d'effets et la valeur de la directive de configuration - <literal>gpc_order</literal> de PHP est utilisée. - </para> - </note> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-request-vars-order.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="variable.request.vars.order"> - <title>$request_vars_order</title> - <para> - L'ordre dans lequel les variables de requêtes sont enregistrées, - identique a variables_order dans php.ini. - </para> - <para> - Voir aussi - <link linkend="language.variables.smarty"><parameter>$smarty.request</parameter></link> et - <link linkend="variable.request.use.auto.globals"><parameter>$request_use_auto_globals</parameter></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - Il s'agit du délimiteur droit utilisé par le moteur de templates. - La valeur par défaut est <literal>}</literal>. - </para> - <para> - Voir aussi - <link linkend="variable.left.delimiter"><parameter>$left_delimiter</parameter></link> et - l'<link linkend="language.escaping">analyse d'échappement Smarty</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-secure-dir.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> - -<sect1 id="variable.secure.dir"> - <title>$secure_dir</title> - <para> - Il s'agit d'un tableau contenant tous les fichiers et répertoires locaux qui sont - considérés comme sécurisés. - <link linkend="language.function.include"><varname>{include}</varname></link> et - <link linkend="language.function.fetch"><varname>{fetch}</varname></link> l'utilisent quand - la <link linkend="variable.security">sécurité</link> est activée. - </para> - <example> - <title>Exemple avec $secure_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php -$secure_dirs[] = '/path/to/site/root/templates/'; -$secure_dirs[] = '/path/to/includes/'; -$smarty->secure_dir = $secure_dirs; -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - la <link linkend="variable.security.settings">configuration pour la sécurité</link>et - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>. -</para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-security-settings.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready --> - -<sect1 id="variable.security.settings"> - <title>$security_settings</title> - <para> - Ces réglages servent à écraser ou spécifier les paramètres de sécurité - quand <link linkend="variable.security">celle-ci </link>est activée. - Les réglages possibles sont les suivants : - </para> - <itemizedlist> - <listitem> - <para> - <constant>PHP_HANDLING</constant> - booléen. Si &true;, le - réglage <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link> - n'est pas vérifié. - </para> - </listitem> - <listitem> - <para> - <constant>IF_FUNCS</constant> - Le tableau des noms de fonctions - PHP autorisées dans les intructions - <link linkend="language.function.if"><varname>{if}</varname></link>. - </para> - </listitem> - <listitem> - <para> - <constant>INCLUDE_ANY</constant> - booléen. Si &true;, - les templates peuvent être inclus de n'importe où, quelque soit - le contenu de <link linkend="variable.secure.dir"><parameter>$secure_dir</parameter></link>. - </para> - </listitem> - <listitem> - <para> - <constant>PHP_TAGS</constant> - booléen. Si &true;, - les balises <link linkend="language.function.php"><varname>{php}{/php}</varname></link> - sont autorisées dans les templates. - </para> - </listitem> - <listitem> - <para> - <constant>MODIFIER_FUNCS</constant> - Le tableau des noms de fonctions - autorisées à être utilisées comme modificateurs de - variables. - </para> - </listitem> - <listitem> - <para> - <constant>ALLOW_CONSTANTS</constant> - booléen. Si l'accès aux constantes via - la syntaxe <link linkend="language.variables.smarty.const">{$smarty.const.name}</link> - est autorisé ou non. - </para> - </listitem> - </itemizedlist> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-security.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="variable.security"> - <title>$security</title> - <para> - Cette variable vaut &false; par défaut. La sécurité est de rigueur - quand vous n'êtes pas complétement sûr des personnes qui éditent les templates - (par ftp par exemple) et que vous voulez réduire le risque que - la sécurité du système soit compromise par le langage de template. - Activer cette option de sécurité applique les régles suivantes - au langage de template, à moins que - <link linkend="variable.security.settings"><parameter>$security_settings</parameter></link> - ne spécifie le contraire : - </para> - <itemizedlist> - <listitem> - <para> - Si <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link> - est réglée à <constant>SMARTY_PHP_ALLOW</constant>, cela est implicitement - changé à <constant>SMARTY_PHP_PASSTHRU</constant>. - </para> - </listitem> - <listitem> - <para> - Les fonctions PHP ne sont pas autorisées dans les - instructions <link linkend="language.function.if"><varname>{if}</varname></link>, - à part celles déclarées dans - <link linkend="variable.security.settings"><parameter>$security_settings</parameter></link>. - </para> - </listitem> - <listitem> - <para> - Les templates ne peuvent être inclus que depuis - des répertoires listés dans le tableau - <link linkend="variable.secure.dir"><parameter>$secure_dir</parameter></link>. - </para> - </listitem> - <listitem> - <para> - Les fichiers locaux ne peuvent être récupérés que depuis - les répertoires listés dans le tableau - <link linkend="variable.secure.dir"><parameter>$secure_dir</parameter></link> en - utilisant <link linkend="language.function.fetch"><varname>{fetch}</varname></link>. - </para> - </listitem> - <listitem> - <para> - Les balises <link linkend="language.function.php"><varname>{php}{/php}</varname></link> - ne sont pas autorisées. - </para> - </listitem> - <listitem> - <para> - Les fonctions PHP ne sont pas autorisées en tant - modificateurs, à part celles spécifiées dans - <link linkend="variable.security.settings"><parameter>$security_settings</parameter></link>. - </para> - </listitem> - </itemizedlist> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - C'est le nom par défaut du répertoire des templates. - Si vous ne spécifiez aucun chemin lors de l'utilisation de templates, Smarty - les cherchera à cet emplacement. Par défaut, il s'agit de - <filename class="directory">./templates</filename>, ce qui signifie - qu'il va chercher le répertoire <filename class="directory">templates/</filename> - dans le répertoire où se trouve le script PHP en cours d'exécution. - </para> - - <note> - <title>Note technique</title> - <para> - Il n'est pas conseillé de mettre ce répertoire dans l'arborescence Web. - </para> - </note> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - <parameter>$trusted_dir</parameter> n'est utilisée lorsque - <link linkend="variable.security"><parameter>$security</parameter></link> est activée. - C'est un tableau de tous les répertoires qui peuvent être considérés comme svrs. - Les répertoires svrs sont ceux qui contiennent des scripts PHP qui - sont exécutés directement depuis les templates avec - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>. - </para> - </sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> - Smarty va créer des sous-dossiers dans les dossiers - <link linkend="variable.compile.dir">templates_c</link> et - <link linkend="variable.cache.dir">cache</link> - si la variable <parameter>$use_sub_dirs</parameter> est défini à &true; (Par défaut, vaut &false;). - Dans un environnement où il peut y avoir potentiellement des centaines de milliers - de fichiers de créés, ceci peut rendre le système de fichiers plus rapide. - D'un autre côté, quelques environnements n'acceptent pas que les processus PHP - créent des dossiers, donc, cette variable doit être désactivée par défaut. - </para> - <para> - Les sous-dossiers sont plus efficaces, utilisez-les - donc si vous le pouvez. - Théoriquement, vous obtiendrez plus de performance sur un système de fichier - contenant 10 dossiers contenant chaque, 100 fichiers plutôt qu'un dossier - contenant 1000 fichiers. C'est par exemple le cas avec Solaris 7 (UFS)... - avec les systèmes de fichiers récents comme ext3 ou reiserfs, la différence - est proche de zéro. - </para> - <note> - <title>Note technique</title> - <itemizedlist> - <listitem> - <para><literal>$use_sub_dirs=true</literal> ne fonctionne pas avec - <ulink url="&url.php-manual;features.safe-mode">safe_mode=On</ulink>, - raison pour laquelle c'est paramétrable et que c'est désactivé par défaut. - </para> - </listitem> - <listitem> - <para><literal>$use_sub_dirs=true</literal> sous Windows peut causer des problèmes.</para> - </listitem> - <listitem> - <para>Safe_mode est obsolète depuis PHP6.</para> - </listitem> - </itemizedlist> - </note> - - <para> - Voir aussi - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>, - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> et - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/caching.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<chapter id="caching"> - <title>Cache</title> - <para> - Le cache est utilisée pour accélérer l'appel de <link - linkend="api.display"><varname>display()</varname></link> ou de <link - linkend="api.fetch"><varname>fetch()</varname></link> en sauvegardant leur résultat - dans un fichier. Si un fichier de cache est disponible lors d'un appel, - il sera affiché sans qu'il ne soit nécessaire de regénérer le résultat. - Le système de cache peut accélérer les traitements de façon impressionnante, - en particulier les templates dont la compilation est très longue. Comme - le résultat de <link linkend="api.display"><varname>display()</varname></link> ou de - <link linkend="api.fetch"><varname>fetch()</varname></link>est dans le cache, un fichier de cache - peut être composé de plusieurs fichiers de templates, plusieurs fichiers - de configuration, etc. - </para> - <para> - Comme les templates sont dynamiques, il est important de faire attention - à la façon dont les fichiers de cache sont générés, et pour combien de temps. - Si par exemple vous affichez la page d'accueil de votre site Web dont le - contenu ne change pas souvent, il peut être intéressant de mettre cette page - dans le cache pour une heure ou plus. A l'inverse, si vous affichez une page - de météo mise a jour toutes les minutes, mettre cette page en cache - n'a aucun sens. - </para> - &programmers.caching.caching-setting-up; - &programmers.caching.caching-multiple-caches; - &programmers.caching.caching-groups; - - &programmers.caching.caching-cacheable; -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,143 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.10 Maintainer: didou Status: ready --> - -<sect1 id="caching.cacheable"> - <title>Contrôler la mise en cache des sorties des Plugins</title> - <para> - Depuis Smarty-2.6.0, la mise en cache des plugins peut être déclarée lors - de leur inscription. Les troisièmes paramètres de - <link linkend="api.register.block"><varname>register_block()</varname></link>, - <link linkend="api.register.compiler.function"> - <varname>register_compiler_function()</varname></link> - et <link linkend="api.register.block"><varname>register_function()</varname></link> sont appelés - <parameter>$cacheable</parameter> et valent &true; par défaut, ce qui est - aussi le comportement par défaut des versions de Smarty précédent la 2.6.0 - </para> - - <para> - Lors de l'inscription d'un plugin avec <literal>$cacheable=false</literal>, le plugin est - appelé à chaque fois que la page est affichée, même si la page vient du - cache. La fonction plugin se comporte presque comme la fonction - <link linkend="plugins.inserts"><varname>{insert}</varname></link>. - </para> - - <para> - Contrairement à <link linkend="plugins.inserts"><varname>{insert}</varname></link> - les attributs pour le plugin ne sont pas mis en cache par défaut. Celà peut - être le cas en utilisant le quatrième paramètre - <parameter>$cache_attrs</parameter>. <parameter>$cache_attrs</parameter> - est un tableau de noms d'attributs qui doivent être mis en cache, pour que - la fonction plugin reçoive les valeurs telles qu'elles étaient définies lorsque - la page a été mise en cache, à chaque récupération à partir du cache. - </para> - - <example> - <title>Eviter la mise en cache du résultat d'un plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = 1; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) { - return $remain . " second(s)"; - } else { - return "done"; - } -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // récupération de $obj à partir de la page et assignation... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Où <filename>index.tpl</filename> contient : - </para> - <programlisting> -<![CDATA[ -Time Remaining: {remaining endtime=$obj->endtime} -]]> - </programlisting> - <para> - Le nombre de secondes avant que la date de fin de <literal>$obj</literal> ne soit atteinte - change à chaque affichage de la page, même si la page est mise en cache. - Comme l'attribut endtime est mis en cache, il n'y a que l'objet qui ait - besoin d'être extrait de la base de données lors de la mise en cache de - la page, mais pas lors des affichages ultérieurs de la page. - </para> - </example> - - <example> - <title>Eviter la mise en cache d'une portion du template</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Où <filename>index.tpl</filename> contient : - </para> - <programlisting> -<![CDATA[ -Création de la page : {'0'|date_format:'%D %H:%M:%S'} - -{dynamic} - -Heure actuelle : {'0'|date_format:'%D %H:%M:%S'} - -... faîtes quelque chose ici ... - -{/dynamic} -]]> - </programlisting> - </example> - - <para> - Lors du rechargement de la page, vous remarquerez que les deux dates sont - différentes. L'une est <quote>dynamic</quote> et l'autre est <quote>static</quote>. - Vous pouvez faire ce que vous voulez entre <literal>{dynamic}...{/dynamic}</literal> - et être sûrs que cela ne sera pas mis en cache comme le reste de la page. - </para> - - </sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/caching/caching-groups.xml
Deleted
@@ -1,104 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> - -<sect1 id="caching.groups"> - <title>Groupes de fichiers de cache</title> - <para> - Vous pouvez faire des groupements plus élaborés en paramétrant les - groupes de <parameter>$cache_id</parameter>. Il suffit de séparer chaque sous-groupe - avec une barre verticale <literal>|</literal> dans la valeur de <parameter>$cache_id</parameter>. - Vous pouvez faire autant de sous-groupes que vous le désirez. - </para> - - <itemizedlist> - <listitem><para> - Vous pouvez voir les groupes de cache comme une hiérarchie de dossiers. - Par exemple, un groupe de cache <literal>'a|b|c'</literal> peut être considéré comme - la hiérarchie de dossiers <literal>'/a/b/c/'</literal>. - </para></listitem> - - <listitem><para> - <literal>clear_cache(null,'a|b|c')</literal> - supprimera les fichiers - <literal>'/a/b/c/*'</literal>. <literal>clear_cache(null,'a|b')</literal> - supprimera les fichiers <literal>'/a/b/*'</literal>. - </para></listitem> - - <listitem><para> - Si vous spécifiez un - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - de cette façon <literal>clear_cache(null,'a|b','foo')</literal> il sera traité comme un groupe de - cache apposé <literal>'/a/b/c/foo/'</literal>. - </para></listitem> - - <listitem><para> - Si vous spécifiez un nom de template de cette façon - <literal>clear_cache('foo.tpl','a|b|c')</literal> alors Smarty tentera d'effacer - <literal>'/a/b/c/foo.tpl'</literal>. - </para></listitem> - - <listitem><para> - Vous ne POUVEZ PAS effacer un nom de template spécifié sous un groupe de - cache multiple comme <literal>'/a/b/*/foo.tpl'</literal>, le groupement de cache fonctionne - UNIQUEMENT de gauche à droite. Vous pourriez vouloir grouper vos templates - sous un groupe de cache simple hiérarchisé pour être capable de les effacer - comme un groupe. - </para></listitem> - </itemizedlist> - - <para> - Le groupement de cache ne devrait pas être confondu avec votre hiérarchie - de dossiers de templates, le groupement de cache n'a aucune connaissance - de la façon dont vos templates sont structurés. Donc, par exemple, si - vous avez une structure de template comme <filename>themes/blue/index.tpl</filename> et - que vous voulez être capable d'effacer tous les fichiers de cache pour le thème <quote>blue</quote>, - vous devriez créer une structure de groupe de cache qui reflète la structure - de fichiers de vos templates, comme <literal>display('themes/blue/index.tpl','themes|blue')</literal>, - et les effacer avec <literal>clear_cache(null,'themes|blue')</literal>. - </para> - <example> - <title>Groupes d'identifiants de cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// efface tous les fichiers de cache avec "sports|basketball" comme premiers -// groupes d'identifiants de cache -$smarty->clear_cache(null,'sports|basketball'); - -// efface tous les fichiers de cache "sports" comme premier groupe d'identifiants. -// Inclue donc "sports|basketball" ou "sports|nimportequoi|nimportequoi|..." -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> - -<sect1 id="caching.multiple.caches"> - <title>Caches multiples pour une seule page</title> - <para> - Vous pouvez avoir plusieurs fichiers de caches pour un même appel - aux fonctions <link linkend="api.display"><varname>display()</varname></link> ou - <link linkend="api.fetch"><varname>fetch()</varname></link>. Imaginons qu'un appel a - display('index.tpl') puisse avoir plusieurs résultats, en fonction de - certaines conditions, et que vous vouliez des fichiers de cache séparés - pour chacun d'eux. Vous pouvez faire celà en passant un identifiant de - cache (<parameter>$cache_id</parameter>) en deuxiéme paramètre à l'appel de fonction. - </para> - <example> - <title>Passage d'un $cache_id à display()</title> - <programlisting> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Nous passons ci-dessus la variable <literal>$my_cache_id</literal> à - <link linkend="api.display"><varname>display()</varname></link> comme - identifiant de cache. Pour chaque valeur distincte de <literal>$my_cache_id</literal>, - un fichier de cache distinct va être créé. Dans cet exemple, - <literal>article_id</literal> a été passé dans l'URL et est utilisé en tant qu'identifiant - de cache. - </para> - <note> - <title>Note technique</title> - <para> - Soyez prudent en passant des valeurs depuis un client (navigateur Web) - vers Smarty (ou vers n'importe quelle application PHP). Bien que l'exemple - ci-dessus consistant à utiliser article_id depuis l'URL puisse paraetre - commode, le résultat peut s'avérer mauvais. L'identifiant - de cache est utilisé pour créer un répertoire sur le système de fichiers, - donc si l'utilisateur décide de donner une trés grande valeur à article_id - ou d'écrire un script qui envoie des article_id de façon aléatoire, - celà pourra causer des problémes coté serveur. Assurez-vous de bien - tester toute donnée passée en paramètre avant de l'utiliser. Dans cet - exemple, peut-être savez-vous que article_id a une longueur de 10 - caractéres, est exclusivement composé de caractéres alph-numériques et - doit avoir une valeur contenue dans la base de données. Vérifiez-le bien ! - </para> - </note> - <para> - Assurez-vous de bien passer le même identifiant aux fonctions - <link linkend="api.is.cached"><varname>is_cached()</varname></link> et - <link linkend="api.clear.cache"><varname>clear_cache()</varname></link>. - </para> - <example> - <title>Passer un cache_id a is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // pas de fichier de cache dispo, on assigne donc les variables - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Vous pouvez effacer tous les fichiers de cache pour un identifiant - de cache particulier en passant &null; en tant que premier paramètre - à <link linkend="api.clear.cache"><varname>clear_cache()</varname></link>. - </para> - <example> - <title>Effacement de tous les fichiers de cache pour un identifiant de cache particulier</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// efface tous les fichiers de cache avec "sports" comme identifiant -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - </programlisting> - </example> - <para> - De cette manière, vous pouvez "grouper" vos fichiers de cache en leur - donnant le même identifiant. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,207 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> - -<sect1 id="caching.setting.up"> - <title>Paramétrer le cache</title> - <para> - La première chose à faire est d'activer le cache en - mettant - <link linkend="variable.caching"><parameter>$caching</parameter></link> - <literal> = 1 (ou 2)</literal>. - </para> - <example> - <title>Activation du cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 1; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Avec le cache activé, la fonction <literal>display('index.tpl')</literal> va afficher - le template mais sauvegardera par la même occasion une copie du résultat - dans un fichier (de cache) du répertoire - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>. - Au prochain appel de <literal>display('index.tpl')</literal>, le fichier de cache sera préféré - à la réutilisation du template. - </para> - <note> - <title>Note technique</title> - <para> - Les fichiers situés dans - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - sont nommés de la même façon que les templates. - Bien qu'ils aient une extension <filename>.php</filename>, ils ne sont pas vraiment - directement exécutable. N'éditez surtout pas ces fichiers ! - </para> - </note> - <para> - Tout fichier de cache a une durée de vie limitée déterminée par <link - linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>. La valeur par - défaut est 3600 secondes, i.e. 1 heure. Une fois que cette durée est - dépassée, le cache est regénéré. Il est possible de donner - une durée d'expiration propre à chaque fichier de cache en réglant - <link linkend="variable.caching"><parameter>$caching</parameter></link><literal>=2</literal>. - Se reporter à la documentation de <link - linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> pour plus de - détails. - </para> - <example> - <title>Réglage individuel de $cache_lifetime</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // régler la durée de vie individuellement - -// règle la durée de vie du cache a 15 minutes pour index.tpl -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// règle la durée de vie du cache à 1 heure pour home.tpl -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTE : le réglage suivant ne fonctionne pas quand $caching = 2. La durée de vie -// du fichier de cache de home.tpl a déja été réglée a 1 heure et ne respectera -// plus la valeur de $cache_lifetime. Le cache de home.tpl expirera toujours -// dans 1 heure. -$smarty->cache_lifetime = 30; // 30 secondes -$smarty->display('home.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Si - <link linkend="variable.compile.check"><parameter>$compile_check</parameter></link> - est actif, chaque fichier de template et de configuration qui a un rapport - avec le fichier de cache sera vérifié pour détecter une éventuelle - modification. Si l'un de ces fichiers a été modifié depuis que le fichier de cache a été - généré, le cache est immédiatement regénéré. Ce processus est couteux, donc, - pour des raisons de performances, mettez ce paramètre à &false; pour une application - en production. - </para> - <example> - <title>Activation de $compile_check</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 1; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Si <link linkend="variable.force.compile"><parameter>$force_compile</parameter></link> est actif, - les fichiers de cache sont toujours regénérés. Ceci revient finalement à - désactiver le cache. <link linkend="variable.force.compile"><parameter>$force_compile</parameter></link> - est utilisé à des fins de <link linkend="chapter.debugging.console">débogage</link>, - un moyen plus efficace de désactiver le cache est de régler - <link linkend="variable.caching"><parameter>$caching</parameter></link><literal> = 0</literal>. - </para> - <para> - La fonction <link linkend="api.is.cached"><varname>is_cached()</varname></link> permet - de tester si un template a ou non un fichier de cache valide. - Si vous disposez d'un template en cache qui requiert une requête - à une base de données, vous pouvez utiliser cette méthode plutôt - que $compile_check. - </para> - <example> - <title>Exemple avec is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 1; - -if(!$smarty->is_cached('index.tpl')) { - // pas de cache disponible, on assigne - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Vous pouvez rendre dynamiques seulement certaines parties d'une - page avec la fonction de template <link - linkend="language.function.insert"><varname>{insert}</varname></link>. - Imaginons que toute une page doit être mise en cache à part - une bannière en bas à droite. En utilisant une fonction - <link linkend="language.function.insert"><varname>{insert}</varname></link> pour la - bannière, vous pouvez garder cet élément dynamique dans le contenu qui - est en cache. Reportez-vous à la documentation - <link linkend="language.function.insert"><varname>{insert}</varname></link> pour plus de détails - ainsi que des exemples. - </para> - <para> - Vous pouvez effacer tous les fichiers du cache avec la fonction <link - linkend="api.clear.all.cache"><varname>clear_all_cache()</varname></link>, ou de façon - individuelle <link linkend="caching.groups">(ou par groupe)</link> - avec la fonction <link linkend="api.clear.cache"><varname>clear_cache()</varname></link>. - </para> - <example> - <title>Nettoyage du cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 1; - -// efface le fichier de cache du template 'index.tpl' -$smarty->clear_cache('index.tpl'); - -// efface tous les fichiers du cache -$smarty->clear_all_cache(); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> -<chapter id="plugins"> - <title>Etendre Smarty avec des plugins</title> - <para> - La version 2.0 a introduit l'architecture de plugin qui est - utilisée pour pratiquement toutes les fonctionnalités - personnalisables de Smarty. Ceci comprend : - <itemizedlist spacing="compact"> - <listitem><simpara>les fonctions</simpara></listitem> - <listitem><simpara>les modificateurs</simpara></listitem> - <listitem><simpara>les fonctions de blocs</simpara></listitem> - <listitem><simpara>les fonctions de compilation</simpara></listitem> - <listitem><simpara>les filtres de pré-compilation</simpara></listitem> - <listitem><simpara>les filtres de post-compilation</simpara></listitem> - <listitem><simpara>les filtres de sorties</simpara></listitem> - <listitem><simpara>les ressources</simpara></listitem> - <listitem><simpara>les insertions</simpara></listitem> - </itemizedlist> - A part pour les ressources, la compatibilité avec les anciennes - façons d'enregistrer les fonctions de gestion avec l'API register_ - est conservée. Si vous n'avez pas utilisé cette API et que vous avez - à la place directement modifié les variables de classes - <literal>$custom_funcs</literal>, <literal>$custom_mods</literal> et - d'autres, vous devez alors modifier vos scripts pour utiliser - l'API ou convertir vos fonctionnalités personnalisées en plugins. - </para> - - &programmers.plugins.plugins-howto; - - &programmers.plugins.plugins-naming-conventions; - - &programmers.plugins.plugins-writing; - - &programmers.plugins.plugins-functions; - - &programmers.plugins.plugins-modifiers; - - &programmers.plugins.plugins-block-functions; - - &programmers.plugins.plugins-compiler-functions; - - &programmers.plugins.plugins-prefilters-postfilters; - - &programmers.plugins.plugins-outputfilters; - - &programmers.plugins.plugins-resources; - - &programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,125 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.block.functions"> - <title>Fonctions de blocs</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Les fonctions de blocs sont des fonctions de la forme <literal>{func} .. {/func}</literal>. - En d'autres mots, elles englobent des blocs de template et opèrent sur les - contenus de ces blocs. Les fonctions de blocs ont la priorité sur les - <link linkend="language.custom.functions">fonctions utilisateurs</link> - de même nom, ce qui signifie que vous ne - pouvez avoir une fonction utilisateur <literal>{func}</literal> et une fonction de bloc - <literal>{func}..{/func}</literal>. - </para> - - <itemizedlist> - <listitem><para> - Par défaut, l'implémentation de votre fonction est appelée deux fois par Smarty : - une fois pour la balise ouvrante et une autre fois pour la balise - fermante (voir <literal>$repeat</literal> ci-dessous - sur la façon de modifier ce comportement). - </para></listitem> - <listitem><para> - Seule la balise ouvrante d'une fonction de bloc peut avoir des - <link linkend="language.syntax.attributes">attributs</link>. - Tous les attributs passés par le template aux fonctions de templates sont - contenus dans le tableau associatif <parameter>$params</parameter>. - Votre fonction a aussi accès aux attributs de la balise - ouvrante quand c'est la balise fermante qui est exécutée. - </para></listitem> - <listitem><para> - La valeur de la variable <parameter>$content</parameter> est différente - selon si votre fonction est appelée pour la balise ouvrante ou la - balise fermante. Si c'est pour la balise ouvrante, elle sera à &null; et si c'est la balise fermante, - elle sera égale au contenu du bloc de template. Notez que le bloc de template - aura déjà été exécuté par Smarty, vous recevrez donc la sortie du - template et non sa source. - </para></listitem> - - <listitem><para> - Le paramètre <parameter>$repeat</parameter> est passé - par référence à la fonction d'implémentation et fournit la possibilité - de contrôler le nombre d'affichage du bloc. Par défaut, - <parameter>$repeat</parameter> vaut - &true; lors du premier appel à la fonction de bloc (le bloc d'ouverture du tag) et - &false; lors de tous les autres appels à la fonction - de bloc (le bloc de fermeture du tag). Chaque fois que la fonction - d'implémentation retourne avec le paramètre - <parameter>$repeat</parameter> vallant &true;, le contenu situé - <literal>{func}...{/func}</literal> est évalué et la fonction d'implémentation est appelé - une nouvelle fois avec le nouveau bloc de contenu en tant que paramètre - <parameter>$content</parameter>. - </para></listitem> - </itemizedlist> - - <para> - Si vous imbriqué des fonctions de bloc, il est possible de connaître - la fonction de bloc parente grâce à la variable <literal>$smarty->_tag_stack</literal>. - Faîtes un <ulink url="&url.php-manual;var_dump"><varname>var_dump()</varname></ulink> - dessus et la structure devrait apparaître. - </para> - <example> - <title>Fonction de bloc</title> - <programlisting role="php"> - <![CDATA[ -<?php -/* -* Smarty plugin -* ------------------------------------------------------------- -* Fichier : block.translate.php -* Type : bloc -* Nom : translate -* Rôle : traduire un bloc de texte -* ------------------------------------------------------------- -*/ -function smarty_block_translate($params, $content, &$smarty, &$repeat) -{ - // n'affiche que lors de la balise fermante - if(!$repeat){ - if (isset($content)) { - $lang = $params['lang']; - // effectuer une bonne traduction ici avec $content - return $translation; - } - } -} -?> -]]> - </programlisting> - </example> - <para> - Voir aussi : - <link linkend="api.register.block"><varname>register_block()</varname></link> et - <link linkend="api.unregister.block"><varname>unregister_block()</varname></link>. - </para> -</sect1> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - -->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.compiler.functions"> - <title>Fonctions de compilation</title> - <para> - Les fonctions de compilation sont appelées durant la compilation du template. - Elles sont utiles pour injecter du code PHP ou du contenu "statique variant - avec le temps" (bandeau de pub par ex.). Si une fonction de compilation et - une <link linkend="language.custom.functions">fonction personnalisée</link> - ont le même nom, la fonction de compilation a priorité. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Les fonctions de compilation ont deux paramètres : une chaîne contenant - la balise - en gros, tout, depuis le nom de la fonction jusqu'au délimiteur de fin - et - l'objet Smarty. Elles sont censées retourner le code PHP qui doit être - injecté dans le template compilé. - </para> - <example> - <title>Fonction de compilation simple</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : compiler.tplheader.php - * Type : compilation - * Nom : tplheader - * Rôle : Renvoie l'en-tête contenant le nom du fichier - * source et le temps de compilation. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - </programlisting> - <para> - Cette fonction peut-être appelée depuis le template comme suivant : - </para> - <programlisting> -<![CDATA[ -{* cette fonction n'est executée que lors de la compilation *} -{tplheader} -]]> - </programlisting> - <para> - Le code PHP résultant dans les templates compilés ressemblerait à ça : - </para> - <programlisting role="php"> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> - <para> - Voir aussi : - <link linkend="api.register.compiler.function"><varname>register_compiler_function()</varname></link> et - <link linkend="api.unregister.compiler.function"><varname>unregister_compiler_function()</varname></link>. - </para> -</sect1> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - -->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,132 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.functions"> - <title>Les fonctions de templates</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Tous les <link linkend="language.syntax.attributes">attributs</link> - passés aux fonctions de template à partir du template - sont contenus dans le tableau associatif <parameter>$params</parameter>. - </para> - <para> - Le retour de la fonction sera substituée à la balise de fonction - du template (fonction - <link linkend="language.function.fetch"><varname>{fetch}</varname></link> - par exemple). Sinon, la fonction peut simplement accomplir une autre tâche sans sortie - (la fonction <link linkend="language.function.assign"> - <varname>{assign}</varname></link> par exemple). - </para> - <para> - Si la fonction a besoin d'assigner des variables aux templates ou d'utiliser - d'autres fonctionnalités fournies par Smarty, elle peut recevoir un - objet <parameter>$smarty</parameter> pour celà. - </para> - <para> - <example> - <title>Fonction de plugin avec sortie</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : function.eightball.php - * Type : fonction - * Nom : eightball - * Rôle : renvoie une phrase magique au hasard - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> - </programlisting> - </example> - </para> - <para> - peut être utilisée dans le template de la façon suivante : - </para> - <programlisting> -Question: Will we ever have time travel? -Answer: {eightball}. - </programlisting> - <para> - <example> - <title>Fonction de plugin sans sortie</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : function.assign.php - * Type : fonction - * Nom : assign - * Purpose : assigne une valeur a une variable de template - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - extract($params); - - if (empty($var)) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($var, $value); -} -?> -]]> - </programlisting> - </example> - </para> - <para> - Voir aussi : - <link linkend="api.register.function"><varname>register_function()</varname></link> et - <link linkend="api.unregister.function"><varname>unregister_function()</varname></link>. - </para> -</sect1> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - -->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> -<sect1 id="plugins.howto"> - <title>Comment fonctionnent les plugins</title> - <para> - Les plugins sont toujours chargés à la demande. Seuls les modificateurs - de variables, les ressources, etc invoqués dans les scripts de templates - seront chargés. De plus, chaque plugin n'est chargé qu'une fois, et ce - même si vous avez plusieurs instances de Smarty qui tournent dans - la même requête. - </para> - <para> - Les filtres de post/pré-compilation et les filtres de sortie sont des cas - un peu spéciaux. - Comme ils ne sont pas mentionnés dans les templates, ils doivent être déclarés - ou chargés explicitement via les fonctions de l'API avant que le template - ne soit exécuté. L'ordre dans lequel les filtres multiples d'un même type - sont exécutés dépend de l'ordre dans lequel ils sont enregistrés ou chargés. - </para> - <para> - Le <link linkend="variable.plugins.dir">répertoire de plugin</link> peut - être une chaîne de caractères contenant un chemin ou un tableau contenant - de multiples chemins. Pour installer un plugin, placez-le simplement - dans un de ces dossiers et Smarty l'utilisera automatiquement. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.inserts"> - <title>Insertions</title> - <para> - Les plugins d'insertion sont utilisés pour implémenter les fonctions - qui sont appelées par les balises - <link linkend="language.function.insert"><varname>{insert}</varname></link> - dans les templates. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Le premier paramètre passé à la fonction est une tableau associatif - d'attributs. - </para> - <para> - La fonction d'insertion est supposée retourner le résultat qui sera - substitué à la balise <varname>{insert}</varname> dans le template. - </para> - <example> - <title>Plugin d'insertion</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : insert.time.php - * Type : temps - * Nom : time - * Rôle : Insert la date/heure courante conformément - * au format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - return strftime($params['format']); -} -?> -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.modifiers"> - <title>Modificateurs</title> - <para> - Les <link linkend="language.modifiers">modificateurs</link> - sont de petites fonctions appliquées à une variable - de template avant qu'elle ne soit affichée ou utilisée dans un autre contexte. - Les modificateurs peuvent être chaînés entre eux. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - Le premier paramètre passé au modificateur est la valeur - sur laquelle le modificateur est supposé opérer. Les autres paramétres - peuvent être optionnels, dépendant de quel genre d'opération doit être - effectué. - </para> - <para> - Le modificateur doit <ulink url="&url.php-manual;return">retourner</ulink> - le résultat de son exécution. - </para> - <example> - <title>Plugin modificateur simple</title> - <para> - Ce plugin est un alias d'une fonction PHP. Il n'a aucun paramètre - supplémentaires. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : modifier.capitalize.php - * Type : modificateur - * Name : capitalize - * Rôle : met une majuscule aux mots d'une phrase - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>Un plugin modificateur un peu plus complexe</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : modifier.truncate.php - * Type : modificateur - * Name : truncate - * Rôle : Tronque une chaene a une certaine longueur si - * nécessaire, la coupe optionnellement au milieu - * d'un mot et ajoute la chaene $etc - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> - <para> - Voir aussi : - <link linkend="api.register.modifier"><varname>register_modifier()</varname></link> et - <link linkend="api.unregister.modifier"><varname>unregister_modifier()</varname></link>. - </para> -</sect1> - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - -->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.naming.conventions"> - <title>Conventions de nommage</title> - <para> - Les fichiers et les fonctions de plugins doivent suivre une convention - de nommage très spécifique pour être localisés par Smarty. - </para> - <para> - Les fichiers de <emphasis role="bold">plugins</emphasis> doivent être nommés de la façon suivante : - <blockquote> - <para> - <filename> - <replaceable>type</replaceable>.<replaceable>nom</replaceable>.php - </filename> - </para> - </blockquote> - </para> - - <itemizedlist> - <listitem><para> - Où <literal>type</literal> est l'une des valeurs suivantes : - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - </listitem> - - <listitem><para> - Et <literal>nom</literal> doit être un identifiant valide : lettres, nombres - et underscore seulement, voir les - <ulink url="&url.php-manual;language.variables">variables php</ulink>. - </para></listitem> - - <listitem><para> - Quelques exemples : <filename>function.html_select_date.php</filename>, - <filename>resource.db.php</filename>, - <filename>modifier.spacify.php</filename>. - </para> - </listitem> - </itemizedlist> - <para> - Les fonctions de <emphasis role="bold">plugins</emphasis> dans les fichiers de plugins doivent être - nommées de la façon suivante : - <blockquote> - <para> - <function>smarty_<replaceable>type</replaceable>_<replaceable>nom</replaceable></function> - </para> - </blockquote> - </para> - - <itemizedlist> - <listitem><para> - Les significations de <literal>type</literal> et de <literal>nom</literal> sont les mêmes - que précédemment. - </para></listitem> - <listitem><para> - Un exemple de nom de modificateur <varname>foo</varname> serait - <literal>function smarty_modifier_foo()</literal>. - </para></listitem> - </itemizedlist> - <para> - Smarty donnera des messages d'erreurs appropriés si le fichier de plugin - n'est pas trouvé ou si le fichier ou la fonction de plugin ne sont - pas nommés correctement. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.outputfilters"> - <title>Filtres de sortie</title> - <para> - Les plugins de filtres de sortie opèrent sur la sortie du template, - après que le template a été chargé et exécuté, mais avant que - la sortie ne soit affichée. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Le premier paramètre passé à la fonction du filtre de sortie est la - sortie du template qui doit être modifiée et le second paramètre - est l'instance de Smarty appelant le plugin. Le plugin est supposé - faire un traitement et en retourner le résultat. - </para> - <example> - <title>Plugin de filtre de sortie</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : outputfilter.protect_email.php - * Type : filtre de sortie - * Nom : protect_email - * Rôle: Convertie les @ en %40 pour protéger des - * robots spammers. - * ------------------------------------------------------------- - */ -function smarty_outputfilter_protect_email($output, &$smarty) -{ - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); -} -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.outputfilter"> - <varname>register_outputfilter()</varname></link> et - <link linkend="api.unregister.outputfilter"> - <varname>unregister_outputfilter()</varname></link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.prefilters.postfilters"> - <title>filtres de pré-compilation/filtres de post-compilation</title> - <para> - Les filtres de pré-compilation et les filtres de post-compilation ont des concepts très - proches. Ils différent dans leur exécution, plus précisément dans le - moment où ils sont exécutés. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Les filtres de pré-compilation sont utilisés pour transformer la source d'un template - juste avant la compilation. Le premier paramètre passé à la fonction - de filtre de pré-compilation est la source du template, éventuellement modifiée par - d'autres filtres de pré-compilations. Le plugin est supposé retourner la source modifiée. - Notez que cette source n'est sauvegardée nulle part, elle est seulement - utilisé pour la compilation. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Les filtres de post-compilation sont utilisés pour modifier la sortie du template - (le code PHP) juste après que la compilation a été faîte mais juste - avant que le template ne soit sauvegardé sur le système de fichiers. - Le premier paramètre passé à la fonction de filtre de post-compilation est le code - du template compilé, éventuellement déja modifié par d'autres filtres de post-compilations. - Le plugin est censé retourner la version modifiée du code. - </para> - <example> - <title>Plugin de filtre de post-compilation</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : prefilter.pre01.php - * Type : filtre de pré-compilation - * Nom : pre01 - * Rôle : Passe les balises HTML en minuscules. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>Plugin de filtre de post-compilation</title> - <programlisting role="php"> -<![CDATA[ -/* - * Smarty plugin - * ------------------------------------------------------------- - * Fichier : postfilter.post01.php - * Type: filtre de post-compilation - * Nom : post01 - * Rôle : Renvoie du code qui liste toutes les variables - * du template. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="api.register.prefilter"> - <varname>register_prefilter()</varname></link>, - <link linkend="api.unregister.prefilter"> - <varname>unregister_prefilter()</varname></link> - <link linkend="api.register.postfilter"> - <varname>register_postfilter()</varname></link> et - <link linkend="api.unregister.postfilter"> - <varname>unregister_postfilter()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.resources"><title>Ressources</title> - <para> - Les plugins ressources sont un moyen générique de fournir des sources - de templates ou des composants de scripts PHP à Smarty. Quelques exemples - de ressources : bases de données, LDAP, mémoire partagée, sockets, etc. - </para> - <para> - Il y au total quatre fonctions qui ont besoin d'être enregistrées pour - chaque type de ressource. Chaque fonction reçoit le nom de la ressource demandée - comme premier paramètre et l'objet Smarty comme dernier paramètre. - Les autres paramètres dépendent de la fonction. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <itemizedlist> - <listitem> - <para> - La première fonction est supposée récupérer la ressource. Son second - paramètre est une variable passée par référence où le résultat doit être - stocké. La fonction est supposée retourner &true; si - elle réussit à récupérer la ressource et &false; sinon. - </para></listitem> - - <listitem><para> - La seconde fonction est supposée récupérer la date de dernière modification - de la ressource demandée (comme un timestamp UNIX). Le second paramètre - est une variable passée par référence dans laquelle la date doit - être stockée. La fonction est supposée renvoyer &true; si elle - réussit à récupérer la date et &false; sinon. - </para></listitem> - - <listitem><para> - La troisième fonction est supposée retourner &true; - ou &false; selon si la ressource demandée est sûre - ou non. La fonction est utilisée seulement pour les ressources templates - mais doit tout de même être définie. - </para></listitem> - - <listitem><para> - La quatrième fonction est supposée retourner &true; - ou &false; selon si l'on peut faire confiance ou - non à la ressource demandée. Cette fonction est utilisée seulement - pour les composants de scripts PHP demandés par les balises - <link linkend="language.function.include.php"> - <varname>{include_php}</varname></link> ou - <link linkend="language.function.insert"><varname>{insert}</varname></link> - ayant un attribut <parameter>src</parameter>. Quoiqu'il en soit, - elle doit être définie pour les ressources templates. - </para></listitem> - </itemizedlist> - - <example> - <title>resource plugin</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* -* Smarty plugin -* ------------------------------------------------------------- -* Fichier : resource.db.php -* Type : ressource -* Nom : db -* Rôle : Récupére des templates depuis une base de données -* ------------------------------------------------------------- -*/ -function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // fait des requêtes BD pour récupérer votre template - // et remplir $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // fait des requêtes BD pour remplir $tpl_timestamp - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // suppose que tous les templates sont svrs - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // inutilisée pour les templates -} -?> -]]> - </programlisting> - </example> - <para> - Voir aussi : - <link linkend="api.register.resource">register_resource()</link> et - <link linkend="api.unregister.resource">unregister_resource()</link>. - </para> -</sect1> - - <!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> - -<sect1 id="plugins.writing"> - <title>Ecrire des plugins</title> - <para> - Les plugins peuvent être soit chargés automatiquement par Smarty - depuis le système de fichier, soit être déclarés - pendant l'exécution via une fonction register_* de l'API. Ils peuvent - aussi être désalloués en utilisant une fonction unregister_* de - l'API. - </para> - <para> - Pour les plugins qui ne sont pas enregistrés pendant l'exécution, le nom - des fonctions n'ont pas à suivre la convention de nommage. - </para> - <para> - Si certaines fonctionnalités d'un plugin dépendent d'un autre plugin - (comme c'est le cas de certains plugins accompagnant Smarty), alors - la maniére appropriée de charger le plugin est la suivante : - </para> - <programlisting role="php"> -<![CDATA[ -<?php -require_once $smarty->_get_plugin_filepath('function', 'html_options'); -?> -]]> - </programlisting> - <para> - Une règle générale est que chaque objet Smarty est toujours passé au plugin - en tant que dernier paramètre, sauf pour deux exceptions : - </para> - <itemizedlist> - <listitem><para> - les modificateurs ne sont pas passés du tout à l'objet Smarty - </para></listitem> - <listitem><para> - les blocs récupèrent le paramètre - <parameter>$repeat</parameter> passé après l'objet Smarty afin de - conserver une compatibilité avec les anciennes versions de Smarty. - </para></listitem> - </itemizedlist> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/programmers/smarty-constants.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> - -<chapter id="smarty.constants"> - <title>Constantes</title> - - <sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - Il doit s'agir du <emphasis role="bold">chemin complet</emphasis> - du répertoire où se trouvent les fichiers classes de Smarty. - S'il n'est pas défini dans votre script, Smarty essaiera alors d'en - déterminer automatiquement la valeur. - S'il est défini, le chemin <emphasis role="bold">doit se terminer par un slash</emphasis>. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// définit le chemin du répertoire de Smarty sur un système *nix -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// définit le chemin du répertoire de Smarty sur un système Windows -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// inclut la classe Smarty. Notez le 'S' en majuscule -require_once(SMARTY_DIR . 'Smarty.class.php'); -?> -]]> - </programlisting> - </example> - <para> - Voir aussi - <link linkend="language.variables.smarty.const"><parameter>$smarty.const</parameter></link> et - <link linkend="variable.php.handling"><parameter>$php_handling constants</parameter></link>. - </para> - </sect1> - <sect1 id="constant.smarty.core.dir"> - <title>SMARTY_CORE_DIR</title> - <para> - Il doit s'agir du <emphasis>chemin complet</emphasis> du répertoire où - se trouvent les fichiers internes de Smarty. S'il n'est - pas défini, Smarty placera comme valeur par défaut la - valeur de la constante précédente - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>. S'il est - défini, le chemin doit se terminer par un slash. Utilisez cette - constante lorsque vous incluez manuellement n'importe - quel fichier core.*. - </para> - <example> - <title>SMARTY_CORE_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// chargement de core.get_microtime.php -require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - -?> -]]> - </programlisting> - </example> - - <para> - Voir aussi - <link linkend="language.variables.smarty.const"><parameter>$smarty.const</parameter></link>. - </para> - </sect1> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/fr/translation.xml
Deleted
@@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> -<translation> - <intro> - Ceci est le fichier généré par smarty/docs/scripts/revcheck.php. - Il vous permet de voir rapidement quels sont les fichiers qui - doivent être mis à jour ainsi que la personne qui s'en occupe. - </intro> - - <translators> - <person name="Gérald Croës" email="gerald@php.net" nick="gerald" cvs="yes" editor="yes" /> - <person name="Arnaud Cogoluègnes" email="arnaud@php.net" nick="nono" cvs="yes" /> - <person name="Mehdi Achour" email="didou@php.net" nick="didou" cvs="yes" /> - <person name="Yannick Torres" email="yannick@php.net" nick="yannick" cvs="yes" /> - <person name="Raoul Lourse" email="nobody@php.net" nick="nobody" cvs="yes" /> - </translators> - - <work-in-progress> - </work-in-progress> - -</translation>
View file
Smarty-3.1.13.tar.gz/documentation/it
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/appendixes/bugs.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="bugs"> - <title>BUGS</title> - <para> - Verificate il file <filename>BUGS</filename> compreso nella - distribuzione più recente di Smarty, oppure controllate - direttamente sul sito web. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/appendixes/resources.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="resources"> - <title>Risorse</title> - <para> - La homepage di Smarty è <ulink - url="&url.smarty;">&url.smarty;</ulink>. - Potete sottoscrivere la mailing list inviando una e-mail - a &ml.general.sub;. L'archivio della mailing list è - disponibile a <ulink url="&url.ml.archive;">&url.ml.archive;</ulink>. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/appendixes/tips.xml
Deleted
@@ -1,378 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="tips"> - <title>Tips & Tricks (trucchi e consigli)</title> - <para> - </para> - <sect1 id="tips.blank.var.handling"> - <title>Gestione delle variabili vuote</title> - <para> - Certe volte potreste voler stampare un valore di default per una - variabile vuota invece di stampare niente, ad esempio "&nbsp;" - in modo che gli sfondi delle tabelle funzionino regolarmente. Molti - userebbero una {if} per gestire questo caso, ma c'è un modo più veloce - con Smarty, che è l'uso del modificatore <emphasis>default</emphasis>. - </para> - <example> - <title>Stampare &nbsp; quando una variabile è vuota</title> - <programlisting> -<![CDATA[ -{* il modo lungo *} - -{if $title eq ""} - -{else} - {$title} -{/if} - - -{* il modo breve *} - -{$title|default:" "} -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.default.var.handling"> - <title>Gestione dei default delle variabili</title> - <para> - Se una variabile viene usata più volte nel template, applicarle ogni - volta il modificatore default può diventare pesante. E' possibile - rimediare a ciò assegnando alla variabile il suo valore di default - con la funzione <link - linkend="language.function.assign">assign</link>. - </para> - <example> - <title>Assegnazione del valore di default a una variabile del template</title> - <programlisting> -<![CDATA[ -{* mettete questo da qualche parte in cima al template *} -{assign var="title" value=$title|default:"no title"} - -{* se $title era vuota, ora contiene il valore "no title" quando la stampate *} -{$title} -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.passing.vars"> - <title>Passare una variabile titolo ad un template di intestazione</title> - <para> - Quando la maggior parte dei template usa gli stessi intestazione e pié di - pagina, è abbastanza comune creare dei template a parte per questi ultimi - e poi includerli negli altri. Ma cosa succede se l'intestazione ha bisogno - di avere un titolo diverso a seconda della pagina in cui ci troviamo? - Potete passare il titolo all'intestazione nel momento dell'inclusione. - </para> - <example> - <title>Passare la variabile titolo al template dell'intestazione</title> - <programlisting> -<![CDATA[ -mainpage.tpl ------------- - -{include file="header.tpl" title="Main Page"} -{* qui va il corpo del template *} -{include file="footer.tpl"} - - -archives.tpl ------------- - -{config_load file="archive_page.conf"} -{include file="header.tpl" title=#archivePageTitle#} -{* template body goes here *} -{include file="footer.tpl"} - - -header.tpl ----------- -<HTML> -<HEAD> -<TITLE>{$title|default:"BC News"}</TITLE> -</HEAD> -<BODY> - - -footer.tpl ----------- -</BODY> -</HTML> -]]> - </programlisting> - </example> - <para> - Quando viene disegnata la pagina principale, il titolo "Main Page" viene - passato a header.tpl, e quindi sarà usato come titolo. Quando viene - disegnata la pagina degli archivi, il titolo sarà "Archives". Notate - che nell'esempio degli archivi abbiamo usato una variabile del file - archives_page.conf invece che una definita nel codice. Notate anche che - se la variabile $title non è impostata viene stampato "BC News", attraverso - il modificatore di variabile <emphasis>default</emphasis>. - </para> - </sect1> - <sect1 id="tips.dates"> - <title>Date</title> - <para> - Come regola generale, passate sempre le date a Smarty in forma di - timestamp. Questo consente ai progettisti di usare <link - linkend="language.modifier.date.format">date_format</link> per un - pieno controllo sulla formattazione delle date, e rende semplice - anche il confronto fra date quando necessario. - </para> - <note> - <para> - A partire da Smarty 1.4.0, potete passare date a Smarty come - timestamp unix, timestamp mysql, o qualsiasi altro formato - leggibile da strtotime(). - </para> - </note> - <example> - <title>uso di date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Jan 4, 2001 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -2001/01/04 -]]> - </screen> - <programlisting> -<![CDATA[ -{if $date1 < $date2} - ... -{/if} -]]> - </programlisting> - </example> - <para> - Quando usate {html_select_date} in un template, il programmatore - probabilmente vorrà convertire l'output del modulo in un formato - timestamp. Ecco una funzione che può aiutarvi in questo. - </para> - <example> - <title>convertire le date provenienti da un modulo in timestamp</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// stabiliamo che gli elementi del modulo si chiamino -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year, $startDate_Month, $startDate_Day); - -function makeTimeStamp($year="", $month="", $day="") -{ - if(empty($year)) { - $year = strftime("%Y"); - } - if(empty($month)) { - $month = strftime("%m"); - } - if(empty($day)) { - $day = strftime("%d"); - } - - return mktime(0, 0, 0, $month, $day, $year); -} -?> -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - I template WAP/WML richiedono header php di tipo Content-Type che deve - essere passato insieme al template. Il modo più semplice per farlo sarebbe - scrivere una funzione utente che stampi l'header. Tuttavia, se usate - il caching, questo sistema non funziona, per cui lo faremo con il tag - insert (ricordate che i tag insert non vanno in cache!). Assicuratevi - che nulla sia inviato in output al browser prima del template, altrimenti - l'header non potrà essere spedito. - </para> - <example> - <title>usare insert per scrivere un header Content-Type WML</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// assicuratevi che apache sia configurato per le estensioni .wml! -// mettete questa funzione da qualche parte nell'applicazione, oppure -// in Smarty.addons.php -function insert_header($params) -{ - // la funzione si aspetta un parametro $content - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} - -?> -]]> - </programlisting> - <para> - il template <emphasis>deve</emphasis> iniziare con il tag insert: - </para> - <programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- begin new wml deck --> -<wml> - <!-- begin first card --> - <card> - <do type="accept"> - <go href="#two"/> - </do> - <p> - Welcome to WAP with Smarty! - Press OK to continue... - </p> - </card> - <!-- begin second card --> - <card id="two"> - <p> - Pretty easy isn't it? - </p> - </card> -</wml> -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.componentized.templates"> - <title>Template a componenti</title> - <para> - Tradizionalmente, programmare le applicazioni a template funziona - così: per prima cosa si accumulano le variabili nell'applicazione - PHP (magari con query al database). Poi, si istanzia l'oggetto - Smarty, si assegnano le variabili e si visualizza il template. - Allora supponiamo di avere, ad esempio, un riquadro che visualizza - le quotazioni di Borsa (stock ticker) nel nostro template. In - questo caso raccoglieremmo i dati sulle azioni nell'applicazione, - poi assegneremmo le variabili al template e le visualizzeremmo. Ma - non sarebbe bello poter aggiungere questo stock ticker a qualsiasi - applicazione semplicemente includendo il template, senza preoccuparci - della parte relativa al caricamento dei dati? - </para> - <para> - E' possibile fare questo scrivendo un plugin personalizzato che - recuperi il contenuto e lo assegni ad una variabile del template. - </para> - <example> - <title>template a componenti</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// mettiamo il file "function.load_ticker.php" nella directory dei plugin - -// scriviamo la funzione che carica i dati -function fetch_ticker($symbol) -{ - // qui metteremo la logica che carica $ticker_info da qualche parte - return $ticker_info; -} - -function smarty_function_load_ticker($params, &$smarty) -{ - // chiamiamo la funzione - $ticker_info = fetch_ticker($params['symbol']); - - // assegnamo la variabile del template - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -index.tpl ---------- - -{* in index.tpl *} - -{load_ticker symbol="YHOO" assign="ticker"} - -Stock Name: {$ticker.name} Stock Price: {$ticker.price} -]]> - </programlisting> - </example> - </sect1> - <sect1 id="tips.obfuscating.email"> - <title>Offuscare gli indirizzi E-mail</title> - <para> - Vi siete mai chiesti come fanno i vostri indirizzi E-mail a finire su - così tante mailing list di spam? Uno dei modi che hanno gli spammer - per raccogliere indirizzi E-mail è dalle pagine web. Per combattere - questo problema, potete fare in modo che gli indirizzi E-mail appaiano - in maniera criptata da javascript nel sorgente HTML, anche se continueranno - ad essere visti e a funzionare correttamente nel browser. E' possibile - farlo con il plugin mailto. - </para> - <example> - <title>Esempio di offuscamento di indirizzo E-mail</title> - <programlisting> -<![CDATA[ -{* in index.tpl *} - -Send inquiries to -{mailto address=$EmailAddress encode="javascript" subject="Hello"} -]]> - </programlisting> - </example> - <note> - <title>Nota tecnica</title> - <para> - Questo metodo non è sicuro al 100%. Uno spammer, concettualmente, potrebbe - programmare il suo raccoglitore di e-mail per decodificare questi valori, - ma non è una cosa semplice. - </para> - </note> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/appendixes/troubleshooting.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="troubleshooting"> - <title>Troubleshooting</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Errori Smarty/PHP</title> - <para> - Smarty è in grado di trovare molti errori, ad esempio attributi - mancanti nei tag, o nomi di variabile non corretti. Quando questo - succede, vedrete un errore simile al seguente: - </para> - <example> - <title>Errori Smarty</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041 -]]> - </screen> - </example> - <para> - Smarty vi mostra il nome del template, il numero di riga e l'errore. - Dopodiché, vi viene mostrato anche il numero reale di riga nella classe - Smarty alla quale si è verificato l'errore. - </para> - - <para> - Ci sono alcuni errori che Smarty non riesce a trovare, ad esempio tag - di chiusura mancanti. Questi tipi di errore di solito portano ad errori - di parsing PHP al momento della compilazione. - </para> - - <example> - <title>Errori di parsing PHP</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 -]]> - </screen> - </example> - - <para> - Quando vi trovate davanti un errore di parsing PHP, il numero di riga - indicato corrisponderà allo script PHP compilato, non al template sorgente. - Normalmente dando un'occhiata al template si riesce a capire dov'è - l'errore di sintassi. Ecco alcuni errori comuni da controllare: mancanza - del tag di chiusura per blocchi {if}{/if} o {section}{/section}, oppure - problemi di sintassi all'interno di un tag {if}. Se non riuscite a trovare - l'errore, andata nel file compilato PHP e trovate il numero di riga indicato - per capire dove si trova l'errore corrispondente nel template. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/bookinfo.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <bookinfo id="bookinfo"> - <title>Smarty - il motore di template PHP con compilatore</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname> - <surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Andrei</firstname> - <surname>Zmievski <andrei@php.net></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2004</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/chapter-debugging-console.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="chapter.debugging.console"> - <title>Console di Debugging</title> - <para> - C'è una console di debugging inclusa in Smarty. La console vi informa di - tutti i template che sono stati inclusi, le variabili assegnate e quelle - dei file di configurazione per la chiamata attuale del template. Nella - distribuzione di Smarty è incluso un template chiamato "debug.tpl" che - controlla la formattazione della console. Impostate $debugging a true in - Smarty, e se necessario impostate $debug_tpl con il percorso del file - debug.tpl (di default si trova nella SMARTY_DIR). Quando caricate la pagina, - dovrebbe apparire in pop up una console creata con javascript che vi informa di - tutti i nomi dei template inclusi e delle variabili assegnate nella pagina - attuale. Per vedere le variabili disponibili per un particolare template, - consultate la funzione <link linkend="language.function.debug">{debug}</link>. - Per disabilitare la console di debugging impostate $debugging a false. - Potete anche attivare temporaneamente la console mettendo SMARTY_DEBUG - nell'URL, se abilitate questa opzione con <link - linkend="variable.debugging.ctrl">$debugging_ctrl</link>. - </para> - <note> - <title>Nota tecnica</title> - <para> - La console di debugging non funziona quando usate la API fetch(), funziona - solo con display(). E' un insieme di istruzioni javascript aggiunte in - fondo al template generato. Se non vi piace l'uso di javascript, potete - modificare il template debug.tpl per formattare l'output come preferite. - I dati di debug non vengono messi in cache e i dati relativi a debug.tpl non - sono inclusi nell'output della console di debug. - </para> - </note> - <note> - <para> - I tempi di caricamento di ogni template e file di configurazione sono in - secondi o frazioni di secondo. - </para> - </note> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/config-files.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="config.files"> - <title>File di configurazione</title> - <para> - I file di configurazione sono utili ai progettisti per gestire le - variabili globali del template in un unico file. Un esempio è quello - dei colori. Normalmente, se volete cambiare lo schema dei colori di - un'applicazione, dovreste andare in ogni template a cambiare i colori. - Con un file di configurazione, i colori possono essere tenuti in un - unico punto, e solo un file deve essere modificato. - </para> - <example> - <title>Esempio di sintassi di file di configurazione</title> - <programlisting> -<![CDATA[ -# variabili globali -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[Customer] -pageTitle = "Customer Info" - -[Login] -pageTitle = "Login" -focus = "username" -Intro = """Questo è un valore che occupa più - di una riga. Dovete racchiuderlo - fra triple virgolette.""" - -# sezione nascosta -[.Database] -host=my.example.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]> - </programlisting> - </example> - <para> - I valori delle variabili dei file di configurazione possono essere - fra virgolette, ma non è necessario. Potete usare sia gli apici singoli - ('), sia le virgolette doppie ("). Se avete un valore che occupa più - di una riga, racchiudete l'intero valore fra triple virgolette ("""). - Potete mettere commenti usando qualsiasi sintassi che non sia valida - per il file di configurazione. Noi consigliamo l'uso di un cancelletto - (<literal>#</literal>) all'inizio della riga. - </para> - <para> - Questo esempio di file di configurazione ha due sezioni. I nomi di sezione - sono racchiusi fra parentesi quadre []. I nomi di sezioni possono essere - stringhe dal contenuto arbitrario, purché non comprenda <literal>[</literal> - o <literal>]</literal>. Le quattro variabili in alto sono variabili globali, - non contenute in alcuna sezione. Queste variabili vengono sempre caricate - dal file di configurazione. Se viene caricata una particolare sezione, - allora saranno caricate le variabili globali e quelle di quella sezione. - Se una variabile esiste sia come globale che in una sezione, verrà usata - la variabile di sezione. Se date lo stesso nome a due variabili nella stessa - sezione verrà usato l'ultimo valore. - </para> - <para> - I file di configurazione vengono caricati nel template con la funzione - <command>config_load</command>. - </para> - <para> - Potete nascondere variabili o intere sezioni anteponendo un punto al nome - della variabile o della sezione. Questo è utile se la vostra applicazione - legge dai file di configurazione dati sensibili di cui il motore di - template non ha bisogno. Se affidate a terzi la modifica del template, - potete stare sicuri che non potranno leggere dati sensibili dal file di - configurazione caricandolo nel template. - </para> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.basic.syntax"> - <title>Sintassi di base</title> - <para> - Tutti i tag dei template di Smarty sono racchiusi fra delimitatori. - Per default i delimitatori sono <literal>{</literal> e - <literal>}</literal>, ma possono essere cambiati. - </para> - <para> - Per questi esempi supporremo di usare i delimitatori di default. - In Smarty, tutto il contenuto al di fuori dei delimitatori viene - mostrato come contenuto statico, senza modifiche. Quando Smarty - incontra i tag dei template, cerca di interpretarli, e visualizza - al loro posto l'output relativo. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.escaping"> - <title>Evitare il parsing di Smarty</title> - <para> - A volte è desiderabile o necessario che Smarty ignori sezioni che altrimenti - verrebbero analizzate. Un esempio tipico è l'incorporazione di codice Javascript - o CSS in un template. Il problema nasce dal fatto che questi linguaggi utilizzano - i caratteri { e } che per Smarty sono i delimitatori di default. - </para> - - <para> - La cosa più semplice sarebbe evitare queste situazioni tenendo il codice Javascript - e CSS separato in appositi file e usando i collegamenti standard dell'HTML per - recuperarli. - </para> - - <para> - E' possibile includere contenuto letterale usando blocchi di questo tipo: - <link linkend="language.function.literal">{literal} .. {/literal}</link>. - Potete anche usare, in modo simile alle entità HTML, <link - linkend="language.function.ldelim">{ldelim}</link>,<link - linkend="language.function.ldelim">{rdelim}</link> oppure <link - linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link>,<link - linkend="language.variables.smarty.rdelim">{$smarty.rdelim}</link> - per visualizzare i delimitatori senza che Smarty ne analizzi il contenuto. - </para> - - <para> - Spesso risulta semplicemente conveniente cambiare il <link - linkend="variable.left.delimiter">$left_delimiter</link> ed il - <link linkend="variable.right.delimiter">$right_delimiter</link> di Smarty. - </para> - <example> - <title>esempio di cambio dei delimitatori</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; -$smarty->assign('foo', 'bar'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - Dove example.tpl è: - </para> - <programlisting> -<![CDATA[ -<script language="javascript"> -var foo = <!--{$foo}-->; -function dosomething() { - alert("foo is " + foo); -} -dosomething(); -</script> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.math"> - <title>Funzioni aritmetiche</title> - <para> - Le funzioni aritmetiche possono essere applicate direttamente ai valori delle variabili. - </para> - <example> - <title>esempi di funzioni aritmetiche</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* alcuni esempi più complessi *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.attributes"> - <title>Attributi</title> - <para> - La maggior parte delle funzioni accetta attributi che specificano - o modificano il loro comportamento. Gli attributi delle funzioni - Smarty assomigliano agli attributi HTML. I valori statici non hanno - bisogno di essere racchiusi fra virgolette, ma è raccomandato farlo - per le stringhe. Possono essere usate anche variabili, che non devno - essere fra virgolette. - </para> - <para> - Alcuni attributi richiedono valori booleani (vero o falso). Per - specificarli si possono usare i seguenti valori, senza virgolette: - <literal>true</literal>, <literal>on</literal>, e <literal>yes</literal>, - oppure <literal>false</literal>, <literal>off</literal>, e - <literal>no</literal>. - </para> - <example> - <title>sintassi per gli attributi delle funzioni</title> - <programlisting> -<![CDATA[ -{include file="header.tpl"} - -{include file=$includeFile} - -{include file=#includeFile#} - -{html_select_date display_days=yes} - -<select name="company"> -{html_options values=$vals selected=$selected output=$output} -</select> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.comments"> - <title>Commenti</title> - <para> - I commenti nei template sono preceduti e seguiti da asterischi, i quali - sono a loro volta compresi dai tag delimitatori: {* questo è un commento *} - I commenti di Smarty non vengono visualizzati nell'output del template. - Sono usati per note interne al template. - </para> - <example> - <title>Commenti</title> - <programlisting> -<![CDATA[ -{* Smarty *} - -{* includiamo il file dell'header *} -{include file="header.tpl"} - -{include file=$includeFile} - -{include file=#includeFile#} - -{* visualizziamo una casella a discesa *} -<select name="company"> -{html_options values=$vals selected=$selected output=$output} -</select> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.functions"> - <title>Funzioni</title> - <para> - Ogni tag di Smarty può stampare una <link linkend="language.variables">variable</link> - o chiamare una qualche funzione. Le funzioni vengono richiamate richiudendo - la funzione e i suoi attributi fra i delimitatori, così: {nomefunzione - attr1="val" attr2="val"}. - </para> - <example> - <title>sintassi delle funzioni</title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf"} - -{include file="header.tpl"} - -{if $highlight_name} - Welcome, <font color="{#fontColor#}">{$name}!</font> -{else} - Welcome, {$name}! -{/if} - -{include file="footer.tpl"} -]]> - </programlisting> - </example> - <para> - Sia le funzioni incorporate che le funzioni utente hanno la stessa - sintassi nel template. Le funzioni incorporate sono il cuore pulsante - di Smarty, ad esempio <command>if</command>, <command>section</command> e - <command>strip</command>. Non possono essere modificate. Le funzioni - utente sono funzioni addizionali sviluppate attraverso i plugin. Potete - modificarle a piacere, e potete crearne di nuove. <command>html_options</command> - e <command>html_select_date</command> sono esempi di funzioni utente. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.syntax.quotes"> - <title>Incorporare variabili fra virgolette</title> - <para> - Smarty riconosce le variabili incorporate nelle stringhe fra virgolette (") - se contengono solo numeri, lettere, underscore (_) e parentesi quadre ([]). - Se sono presenti altri caratteri (punti, riferimento a oggetti, ecc.) la - variabile deve essere posta tra backticks (`). I backticks si possono ottenere - digitando ALT+96 (sul tastierino numerico). - </para> - <example> - <title>embedded quotes syntax</title> - <programlisting> -<![CDATA[ -ESEMPI DI SINTASSI: -{func var="test $foo test"} <-- riconosce $foo -{func var="test $foo_bar test"} <-- riconosce $foo_bar -{func var="test $foo[0] test"} <-- riconosce $foo[0] -{func var="test $foo[bar] test"} <-- riconosce $foo[bar] -{func var="test $foo.bar test"} <-- riconosce $foo (non $foo.bar) -{func var="test `$foo.bar` test"} <-- riconosce $foo.bar - -ESEMPI PRATICI: -{include file="subdir/$tpl_name.tpl"} <-- sostituisce $tpl_name col valore relativo -{cycle values="one,two,`$smarty.config.myval`"} <-- necessita di backticks -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.builtin.functions"> - <title>Funzioni incorporate</title> - <para> - Smarty è dotato di numerose funzioni incorporate. Queste funzioni - sono integrate nel linguaggio del template: non è possibile creare funzioni - utente con gli stessi nomi, e nemmeno modificare le funzioni - incorporate. - </para> - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.capture"> - <title>capture</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Nome del blocco catturato</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile cui assegnare l'output catturato</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - capture si usa per intercettare l'output del template assegnandolo - ad una variabile invece di visualizzarlo. Qualsiasi contenuto compreso - fra {capture name="foo"} e {/capture} viene aggiunto alla variabile - specificata nell'attributo name. Il contenuto catturato può essere - usato nel template utilizzando la variabile speciale $smarty.capture.foo - dove foo è il nome passato nell'attributo name. Se non fornite un - attributo name, verrà usato "default". Tutti i comandi {capture} - devono essere chiusi con {/capture}. E' possibile nidificarli. - </para> - <note> - <title>Nota tecnica</title> - <para> - Le versioni da 1.4.0 a 1.4.4 di Smarty mettevano il contenuto catturato - nella variabile $return. A partire dalla 1.4.5 si utilizza l'attributo - name, quindi modificate i vostri template di conseguenza. - </para> - </note> - <caution> - <para> - Fate attenzione se catturate l'output di <command>insert</command>. - Se avete il caching attivato e usate comandi <command>insert</command> - che vi aspettate vengano eseguiti nel contenuto in cache, non - catturate questo contenuto. - </para> - </caution> - <para> - <example> - <title>catturare il contenuto del template</title> - <programlisting> -<![CDATA[ -{* vogliamo stampare la riga di tabella solo se c'è del contenuto *} -{capture name=banner} -{include file="get_banner.tpl"} -{/capture} -{if $smarty.capture.banner ne ""} - <tr> - <td> - {$smarty.capture.banner} - </td> - </tr> -{/if} -]]> -</programlisting> - </example> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,148 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.config.load"> - <title>config_load</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome del file di configurazione da importare</entry> - </row> - <row> - <entry>section</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della sezione da caricare</entry> - </row> - <row> - <entry>scope</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - Campo di applicazione delle variabili caricate, - che può essere local, parent o global. local significa - che le variabili vengono caricate nel contesto del - template locale. parent significa che le variabili - vengono caricate sia nel contesto locale che nel template - genitore che lo ha chiamato. global significa che le - variabili sono disponibili a tutti i template. - </entry> - </row> - <row> - <entry>global</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry> - Se le variabili sono visibili o meno al template - genitore: equivale a scope=parent. NOTA: Questo attributo - è deprecato per via dell'esistenza dell'attributo scope, - ma è ancora supportato. Se è presente scope, questo valore - è ignorato. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Questa funzione è usata per caricare variabili nel template da - un file di configurazione. - Vedere <link linkend="config.files">Config Files</link> per - maggiori informazioni. - </para> - <example> - <title>funzione config_load</title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf"} - -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - I file di configurazione possono contenere sezioni. Potete caricare - variabili da una sezione con l'attributo aggiuntivo - <emphasis>section</emphasis>. - </para> - <note> - <para> - <emphasis>Le sezioni dei file di configurazione</emphasis> e la funzione - incorporata dei template chiamata <emphasis>section</emphasis> non hanno - nulla a che fare fra di loro, hanno soltanto lo stesso nome. - </para> - </note> - <example> - <title>funzione config_load con section</title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf" section="Customer"} - -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,191 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.foreach"> - <title>foreach,foreachelse</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>from</entry> - <entry>array</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Array sul quale viene eseguito il ciclo</entry> - </row> - <row> - <entry>item</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile che rappresenta - l'elemento attuale</entry> - </row> - <row> - <entry>key</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile che rappresenta la chiave attuale</entry> - </row> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome del ciclo foreach per l'accesso alle sue proprietà</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - I cicli <emphasis>foreach</emphasis> sono un'alternativa ai cicli - <emphasis>section</emphasis>. <emphasis>foreach</emphasis> si usa - per ciclare su un singolo array associativo. La sintassi di - <emphasis>foreach</emphasis> è molto più semplice di - <emphasis>session</emphasis>, ma in compenso può essere usata solo - per un array singolo. I tag <emphasis>foreach</emphasis> devono - essere chiusi con <emphasis>/foreach</emphasis>. I parametri - obbligatori sono <emphasis>from</emphasis> e <emphasis>item</emphasis>. - Il nome del ciclo foreach può essere quello che preferite, composto - di lettere, numeri e underscore. I cicli <emphasis>foreach</emphasis> - possono essere nidificati, ma i nomi dei cicli nidificati devono - essere diversi tra di loro. La variabile <emphasis>from</emphasis> - (di solito un array di valori) determina quante volte verrà eseguito - il ciclo <emphasis>foreach</emphasis>. - <emphasis>foreachelse</emphasis> viene eseguito quando non ci sono - valori nella variabile <emphasis>from</emphasis>. - </para> -<example> -<title>foreach</title> -<programlisting> - -{* questo esempio stamperà tutti i valori dell'array $custid *} -{foreach from=$custid item=curr_id} - id: {$curr_id}<br> -{/foreach} - -OUTPUT: - -id: 1000<br> -id: 1001<br> -id: 1002<br></programlisting> -</example> - -<example> -<title>foreach con key</title> -<programlisting> -{* key contiene la chiave per ogni valore del ciclo - -l'assegnazione può essere qualcosa del genere: - -$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), - array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); - -*} - -{foreach name=outer item=contact from=$contacts} - {foreach key=key item=item from=$contact} - {$key}: {$item}<br> - {/foreach} -{/foreach} - -OUTPUT: - -phone: 1<br> -fax: 2<br> -cell: 3<br> -phone: 555-4444<br> -fax: 555-3333<br> -cell: 760-1234<br></programlisting> -</example> - - <para> - I cicli foreach hanno anche le proprie variabili che gestiscono le proprietà - del foreach. Queste vengono indicate così: {$smarty.foreach.foreachname.varname}, - dove foreachname è il nome indicato come attributo <emphasis>name</emphasis> - del foreach - </para> - - - <sect2 id="foreach.property.iteration"> - <title>iteration</title> - <para> - iteration si usa per mostrare l'iterazione corrente del ciclo. - </para> - <para> - iteration comincia sempre per 1 ed è incrementata di uno - ad ogni iterazione. - </para> - </sect2> - - <sect2 id="foreach.property.first"> - <title>first</title> - <para> - <emphasis>first</emphasis> vale true quando l'iterazione attuale è la prima del ciclo. - </para> - </sect2> - - <sect2 id="foreach.property.last"> - <title>last</title> - <para> - <emphasis>last</emphasis> vale true quando l'iterazione attuale è l'ultima del ciclo. - </para> - </sect2> - - <sect2 id="foreach.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> si usa come parametro per il foreach. - <emphasis>show</emphasis> è un valore booleano, true o false. Quando - è false, il foreach non verrà visualizzato. Se è presente un - foreachelse, verrà visualizzato al suo posto. - </para> - - </sect2> - <sect2 id="foreach.property.total"> - <title>total</title> - <para> - <emphasis>total</emphasis> si usa per visualizzare il numero di iterazioni che il - ciclo foreach effettuerà. Può essere usato all'interno o dopo il foreach. - </para> - </sect2> - - - - - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,219 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.if"> - <title>if,elseif,else</title> - <para> - Le istruzioni <emphasis>{if}</emphasis> in Smarty hanno praticamente la - stessa flessibilità delle istruzioni if PHP, con qualche caratteristica - aggiuntiva per il motore di template. - Ogni <emphasis>{if}</emphasis> deve essere chiuso con un - <emphasis>{/if}</emphasis>. Sono previsti anche <emphasis>{else}</emphasis> - e <emphasis>{elseif}</emphasis>. Sono riconosciuti tutti gli operatori condizionali - di PHP, come <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, ecc. - </para> - - <para> - Quella che segue è una lista degli operatori riconosciuti, che devono - essere separati con degli spazi dagli elementi circostanti. Notate che - gli elementi mostrati fra [parentesi quadre] sono opzionali. Quando esistono - sono mostrati gli equivalenti in PHP. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Operatore</entry> - <entry>Alternative</entry> - <entry>Esempio di sintassi</entry> - <entry>Significato</entry> - <entry>Equivalente PHP</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>uguale</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>diverso</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>maggiore di</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>minore di</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>maggiore o uguale</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>minore o uguale</entry> - <entry><=</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>negazione (unario)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>modulo (resto della divisione)</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>divisibile per</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>[non] è un numero pari (unario)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>livello di raggruppamento [non] pari</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>[non] è un numero dispari (unario)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>livello di raggruppamento [non] dispari</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> -<example> -<title>Istruzioni if</title> -<programlisting> -{if $name eq "Fred"} - Welcome Sir. -{elseif $name eq "Wilma"} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* un esempio con "or" logico *} -{if $name eq "Fred" or $name eq "Wilma"} - ... -{/if} - -{* come sopra *} -{if $name == "Fred" || $name == "Wilma"} - ... -{/if} - -{* questa sintassi NON funziona, gli operatori condizionali - devono essere separati con spazi dagli elementi circostanti *} -{if $name=="Fred" || $name=="Wilma"} - ... -{/if} - - -{* si possono usare le parentesi *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* potete anche incorporare chiamate a funzioni php *} -{if count($var) gt 0} - ... -{/if} - -{* test su valori pari o dispari *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* test se var è divisibile per 4 *} -{if $var is div by 4} - ... -{/if} - -{* test se var è pari, raggruppato per due. Ad es.: -0=pari, 1=pari, 2=dispari, 3=dispari, 4=pari, 5=pari, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=pari, 1=pari, 2=pari, 3=dispari, 4=dispari, 5=dispari, etc. *} -{if $var is even by 3} - ... -{/if}</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.include.php"> - <title>include_php</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome del file php da includere</entry> - </row> - <row> - <entry>once</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Se includere o no il file php più di una volta nel - caso venga richiesto più volte</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile cui sarà assegnato l'output - di include_php</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <note> - <title>Nota Tecnica</title> - <para> - include_php è deprecato da Smarty, in quanto potete ottenere la - stessa funzionalità attraverso una funzione utente. - L'unica ragione per usare include_php è se avete una reale - necessità di tenere fuori la funzione php dalla directory dei plugin - o dal vostro codice applicativo. Vedere l'<link - linkend="tips.componentized.templates">esempio di template a - componenti</link> per i dettagli. - </para> - </note> - <para> - i tag include_php sono usati per includere uno script php nel - template. Se la security è abilitata, lo script php si deve - trovare nel percorso di $trusted_dir. Il tag include_php deve - avere l'attributo "file", che contiene il percorso al file da - includere, che può essere assoluto relativo alla directory $trusted_dir. - </para> - <para> - include_php è un ottimo modo per gestire template a componenti, e - tiene il codice PHP separato dai file dei template. Diciamo che abbiamo - un template che mostra la navigazione del nostro sito, che viene - prelevata dinamicamente da un database. Possiamo tenere la logica PHP - che ottiene il contenuto del database in una directory separata, ed - includerla in cima al template. Ora possiamo includere questo - template ovunque senza preoccuparci che l'applicazione abbia - preventivamente caricato i dati del database. - </para> - <para> - Per default, i file php sono inclusi una sola volta, anche se richiesti - più volte nel template. Potete specificare che devono essere inclusi - ogni volta con l'attributo <emphasis>once</emphasis>. Se impostate - once a false, lo script verrà incluso tutte le volte che viene - richiesto nel template. - </para> - <para> - Opzionalmente potete passare l'attributo <emphasis>assign</emphasis>, - che specifica un nome di variabile cui sarà assegnato l'output di - <emphasis>include_php</emphasis>, invece di essere visualizzato. - </para> - <para> - L'oggetto smarty è disponibile come $this all'interno dello script - PHP che viene incluso. - </para> -<example> -<title>funzione include_php</title> -<programlisting> -load_nav.php -------------- - -<?php - - // carichiamo le variabili da un db mysql e le assegnamo al template - require_once("MySQL.class.php"); - $sql = new MySQL; - $sql->query("select * from site_nav_sections order by name",SQL_ALL); - $this->assign('sections',$sql->record); - -?> - - -index.tpl ---------- - -{* percorso assoluto, o relativo a $trusted_dir *} -{include_php file="/path/to/load_nav.php"} - -{foreach item="curr_section" from=$sections} - <a href="{$curr_section.url}">{$curr_section.name}</a><br> -{/foreach}</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.include"> - <title>include</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome del file di template da includere</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile cui sarà assegnato - l'output dell'include</entry> - </row> - <row> - <entry>[variabile ...]</entry> - <entry>[tipo variabile]</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Variabile da passare localmente al template</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - I tag include sono usati per includere altri template in quello attuale. - Tutte le variabili del template corrente sono disponibili anche nel - template incluso. Il tag include deve comprendere l'attributo "file", - che contiene il percorso del template da includere. - </para> - <para> - Opzionalmente si può passare l'attributo <emphasis>assign</emphasis>, - che specifica un nome di variabile del template alla quale - sarà assegnato l'output dell'<emphasis>include</emphasis>, invece - di essere visualizzato. - </para> -<example> -<title>funzione include</title> -<programlisting> -{include file="header.tpl"} - -{* qui va il corpo del template *} - -{include file="footer.tpl"}</programlisting> -</example> - <para> - Potete anche passare variabili ai template inclusi sotto forma di - attributi. Queste variabili saranno disponibili soltanto nello - scope del file incluso. Le variabili attributo prevalgono su quelle - del template attuale in caso di omonimia. - </para> -<example> -<title>funzione include con passaggio di variabili</title> -<programlisting> -{include file="header.tpl" title="Main Menu" table_bgcolor="#c0c0c0"} - -{* qui va il corpo del template *} - -{include file="footer.tpl" logo="http://my.example.com/logo.gif"}</programlisting> -</example> - <para> - Usate la sintassi delle <link - linkend="template.resources">risorse dei template</link> per - includere file esterni alla directory $template_dir. - </para> -<example> -<title>esempi di funzione include con le risorse dei template</title> -<programlisting> -{* percorso assoluto *} -{include file="/usr/local/include/templates/header.tpl"} - -{* percorso assoluto (come sopra) *} -{include file="file:/usr/local/include/templates/header.tpl"} - -{* percorso assoluto su windows (NECESSARIO usare il prefisso "file:") *} -{include file="file:C:/www/pub/templates/header.tpl"} - -{* include da una risorsa chiamata "db" *} -{include file="db:header.tpl"}</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.insert"> - <title>insert</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della funzione di insert (insert_name)</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile del template cui verrà - assegnato l'output</entry> - </row> - <row> - <entry>script</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome dello script php che viene incluso prima - della chiamata alla funzione di insert</entry> - </row> - <row> - <entry>[variabile ...]</entry> - <entry>[tipo variabile]</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Variabile da passare alla funzione di insert</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - I tag insert funzionano praticamente come i tag include, ad - eccezione del fatto che i tag insert non vengono messi in - cache quando avete il <link linkend="caching">caching</link> - del template abilitato. Verranno quindi eseguiti ad ogni - chiamata del template. - </para> - <para> - Diciamo che abbiamo un template con uno spazio banner in cima - alla pagina. Il banner può contenere qualsiasi mescolanza di HTML, - immagini, flash, ecc., quindi non possiamo usare un link statico, - e non vogliamo che questo contenuto sia messo in cache con la - pagina. Ecco quindi l'utilità del tag insert: il template conosce i - valori di #banner_location_id# e #site_id# (presi da un file di - configurazione), e ha bisogno di chiamare una funzione per ottenere - il contenuto del banner. - </para> -<example> -<title>funzione insert</title> -<programlisting> -{* esempio di caricamento di un banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#}</programlisting> -</example> - <para> - In questo esempio stiamo usando il nome "getBanner" e passiamo i - parametri #banner_location_id# e #site_id#. Smarty cercherà una - funzione chiamata insert_getBanner() nell'applicazione PHP, passandole - i valori di #banner_location_id# e #site_id# come primo argomento - in un array associativo. Tutti i nomi di funzioni di insert - nell'applicazione devono essere prefissati con "insert_", per evitare - possibili conflitti nei nomi di funzione. La nostra funzione - insert_getBanner() farà qualcosa con i valori passati e restituirà - il risultato, che verrà visualizzato nel templat al posto del tag - insert. - In questo esempio, Smarty chiamerebbe questa funzione: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - e visualizzerebbe il risultato restituito al posto del tag insert. - </para> - <para> - Se fornite l'attributo "assign", l'output del tag insert verrà - assegnato a questa variabile invece di essere mostrato nel template. - NOTA: assegnare l'output ad una variabile non è molto utile se il - caching è abilitato. - </para> - <para> - Se fornite l'attributo "script", questo script verrà incluso (una - volta sola) prima dell'esecuzione della funzione di insert. Questo - caso può presentarsi quando la funzione di insert può non esistere - ancora, e uno script php deve essere quindi incluso per farla - funzionare. Il percorso può essere assoluto o relativo a $trusted_dir. - Se la security è abilitata, lo script deve trovarsi in $trusted_dir. - </para> - <para> - Come secondo argomento viene passato l'oggetto Smarty. In questo - modo potete ottenere e modificare informazioni nell'oggetto Smarty - dall'interno della funzione di insert. - </para> - <note> - <title>Nota tecnica</title> - <para> - E' possibile avere porzioni di template non in cache. Se - avete il <link linkend="caching">caching</link> abilitato, - i tag insert non verranno messi in cache. Verranno quindi - eseguiti dinamicamente ogni volta che la pagina viene creata, - anche se questa si trova in cache. Questo viene utile per cose - come banner, sondaggi, situazione del tempo, risultati di ricerche, - aree di feedback utenti, ecc. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.ldelim"> - <title>ldelim,rdelim</title> - <para> - ldelim e rdelim si usano per fare l'escape dei delimitatori del template, nel nostro caso - "{" o "}". Potete usare anche <link - linkend="language.function.literal">{literal}{/literal}</link> per fare l'escape su - blocchi di testo. - Vedere anche <link linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link> - e <link linkend="language.variables.smarty.rdelim">{$smarty.rdelim}</link> - </para> - <example> - <title>ldelim, rdelim</title> - <programlisting> -<![CDATA[ -{* questo stamperà i delimitatori *} - -{ldelim}funcname{rdelim} is how functions look in Smarty! -]]> - </programlisting> - <para> - L'esempio sopra produrrà: - </para> - <screen> -<![CDATA[ -{funcname} is how functions look in Smarty! -]]> - </screen> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.literal"> - <title>literal</title> - <para> - I tag literal vi consentono di far sì che un blocco di dati venga letto - "letteralmente". Ciò è utile tipicamente quando avete un blocco javascript - o CSS nel quale le parentesi graffe si confonderebbero con i delimitatori - del template. Tutto ciò che si trova fra {literal} e {/literal} non viene - interpretato, ma visualizzato così com'è. Se avete bisogno di usare tag - del template all'interno del blocco literal, considerate la possibilità di - usare invece <link linkend="language.function.ldelim">{ldelim}{rdelim}</link> - per fare l'escape dei singoli delimitatori. - </para> - <example> - <title>tag literal</title> - <programlisting> -<![CDATA[ -{literal} - <script type="text/javascript"> - - <!-- - function isblank(field) { - if (field.value == '') - { return false; } - else - { - document.loginform.submit(); - return true; - } - } - // --> - - </script> -{/literal} -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.php"> - <title>php</title> - <para> - I tag php vi consentono di incorporare codice php direttamente - nel template. Non sarà fatto l'escape, indipendentemente - dall'impostazione di <link - linkend="variable.php.handling">$php_handling</link>. - Questa funzione è solo per utenti avanzati, normalmente non - dovreste averne bisogno. - </para> -<example> -<title>tag php</title> -<programlisting> -{php} - // inclusione di uno script php - // direttamente dal template. - include("/path/to/display_weather.php"); -{/php}</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,569 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.section"> - <title>section,sectionelse</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della sezione</entry> - </row> - <row> - <entry>loop</entry> - <entry>[$variable_name]</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile che determina il numero - di iterazioni del ciclo</entry> - </row> - <row> - <entry>start</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>0</emphasis></entry> <entry>L'indice - dal quale inizierà il ciclo. Se il valore è negativo, - la posizione di partenza è calcolata dalla fine dell'array. - Ad esempio, se ci sono sette valori nell'array da ciclare - e start è -2, l'indice di partenza sarà 5. Valori non - validi (cioè al di fuori della lunghezza dell'array da - ciclare) saranno automaticamente convertiti al valore - valido più vicino.</entry> - </row> - <row> - <entry>step</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Il valore di passo da usare per attraversare - l'array da ciclare. Ad esempio, step=2 ciclerà sugli - indici 0,2,4, ecc. Se step è negativo il ciclo procederà - sull'array all'indietro.</entry> - </row> - <row> - <entry>max</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Massimo numero di cicli per la sezione.</entry> - </row> - <row> - <entry>show</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Stabilisce se mostrare o no la sezione</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Le sezioni sono usate per ciclare su array di dati. Tutti i tag - <emphasis>section</emphasis> devono essere chiusi con - <emphasis>/section</emphasis>. I parametri obbligatori sono - <emphasis>name</emphasis> e <emphasis>loop</emphasis>. Il nome - della sezione può essere quello che preferite, formato da lettere, - numeri e underscore. Le sezioni possono essere nidificate, ed i nomi - delle sezioni nidificate devono essere diversi fra loro. La variabile - loop (di solito un array di valori) determina quante volte sarà - eseguito il ciclo. Quando stampate una variabile all'interno di una - sezione, il nome della sezione deve essere indicato a fianco del - nome della variabile fra parentesi quadre []. - <emphasis>sectionelse</emphasis> viene eseguito quando non ci sono - valori nella variabile loop. - </para> -<example> -<title>section</title> -<programlisting> - -{* questo esempio stamperà tutti i valori dell'array $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> -{/section} - -OUTPUT: - -id: 1000<br> -id: 1001<br> -id: 1002<br></programlisting> -</example> - -<example> -<title>variabile loop</title> -<programlisting> -{* la variabile loop determina soltanto il numero di cicli da ripetere. - Potete accedere a qualsiasi variabile dal template della sezione. - In questo esempio presumiamo che $custid, $name e $address siano - tutti array contenenti lo stesso numero di valori *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> - name: {$name[customer]}<br> - address: {$address[customer]}<br> - <p> -{/section} - - -OUTPUT: - -id: 1000<br> -name: John Smith<br> -address: 253 N 45th<br> -<p> -id: 1001<br> -name: Jack Jones<br> -address: 417 Mulberry ln<br> -<p> -id: 1002<br> -name: Jane Munson<br> -address: 5605 apple st<br> -<p></programlisting> -</example> - -<example> -<title>nomi delle sezioni</title> -<programlisting> -{* come nome della sezione potete usare quello che preferite, - e viene usato per riferirsi ai dati all'interno della sezione *} -{section name=mydata loop=$custid} - id: {$custid[mydata]}<br> - name: {$name[mydata]}<br> - address: {$address[mydata]}<br> - <p> -{/section}</programlisting> -</example> - -<example> -<title>sezioni nidificate</title> -<programlisting> -{* le sezioni possono essere nidificate a qualsiasi profondità. Con - le sezioni nidificate potete accedere a strutture di dati complesse, - ad esempio array multidimensionali. In questo esempio, $contact_type[customer] - è un array di tipi di contatto per il cliente corrente. *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> - name: {$name[customer]}<br> - address: {$address[customer]}<br> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br> - {/section} - <p> -{/section} - - -OUTPUT: - -id: 1000<br> -name: John Smith<br> -address: 253 N 45th<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: john@myexample.com<br> -<p> -id: 1001<br> -name: Jack Jones<br> -address: 417 Mulberry ln<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jack@myexample.com<br> -<p> -id: 1002<br> -name: Jane Munson<br> -address: 5605 apple st<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jane@myexample.com<br> -<p></programlisting> -</example> - -<example> -<title>sezioni e array associativi</title> -<programlisting> -{* questo è un esempio di stampa di un array associativo - di dati in una sezione *} -{section name=customer loop=$contacts} - name: {$contacts[customer].name}<br> - home: {$contacts[customer].home}<br> - cell: {$contacts[customer].cell}<br> - e-mail: {$contacts[customer].email}<p> -{/section} - - -OUTPUT: - -name: John Smith<br> -home: 555-555-5555<br> -cell: 555-555-5555<br> -e-mail: john@myexample.com<p> -name: Jack Jones<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jack@myexample.com<p> -name: Jane Munson<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jane@myexample.com<p></programlisting> -</example> - - - -<example> -<title>sectionelse</title> -<programlisting> -{* sectionelse viene eseguito se non ci sono valori in $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> -{sectionelse} - there are no values in $custid. -{/section}</programlisting> -</example> - <para> - Le sezioni hanno anche le proprie variabili di gestione delle proprietà. - Vengono indicate così: {$smarty.section.nomesezione.nomevariabile} - </para> - <note> - <para> - A partire da Smarty 1.5.0, la sintassi per le variabili delle proprietà - di sessione è cambiata da {%nomesezione.nomevariabile%} a - {$smarty.section.sectionname.varname}. La vecchia sintassi è ancora - supportata, ma negli esempi del manuale troverete solo riferimenti - alla nuova. - </para> - </note> - <sect2 id="section.property.index"> - <title>index</title> - <para> - index si usa per visualizzare l'attuale indice del ciclo, partendo - da zero (o dall'attributo start se presente), e con incrementi di uno - (o dell'attributo step se presente). - </para> - <note> - <title>Nota tecnica</title> - <para> - Se le proprietà step e start non vengono modificate, index - funziona allo stesso modo della proprietà iteration, ad - eccezione del fatto che parte da 0 invece che da 1. - </para> - </note> - <example> - <title>proprietà index</title> - <programlisting> - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {/section} - - - OUTPUT: - - 0 id: 1000<br> - 1 id: 1001<br> - 2 id: 1002<br> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.index.prev"> - <title>index_prev</title> - <para> - index_prev visualizza l'indice del ciclo precedente. - Sul primo ciclo è impostata a -1. - </para> - <example> - <title>proprietà index_prev</title> - <programlisting> - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {* nota: $custid[customer.index] e $custid[customer] hanno identico significato *} - {if $custid[customer.index_prev] ne $custid[customer.index]} - The customer id changed<br> - {/if} - {/section} - - - OUTPUT: - - 0 id: 1000<br> - The customer id changed<br> - 1 id: 1001<br> - The customer id changed<br> - 2 id: 1002<br> - The customer id changed<br> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.index.next"> - <title>index_next</title> - <para> - index_next visualizza l'indice del prossimo ciclo. Sull'ultimo - ciclo ha sempre il valore maggiore dell'attuale (rispettando - l'attributo step, quando presente). - </para> - <example> - <title>proprietà index_next</title> - <programlisting> - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {* nota: $custid[customer.index] e $custid[customer] hanno identico significato *} - {if $custid[customer.index_next] ne $custid[customer.index]} - The customer id will change<br> - {/if} - {/section} - - - OUTPUT: - - 0 id: 1000<br> - The customer id will change<br> - 1 id: 1001<br> - The customer id will change<br> - 2 id: 1002<br> - The customer id will change<br> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.iteration"> - <title>iteration</title> - <para> - iteration visualizza l'iterazione attuale del ciclo. - </para> - <note> - <para> - Al contrario di index, questa proprietà non è influenzata dalle - proprietà start, step e max. Inoltre iteration comincia da 1 - invece che da 0 come index. rownum è un alias di iteration, e - funziona in modo identico. - </para> - </note> - <example> - <title>proprietà iteration</title> - <programlisting> - {section name=customer loop=$custid start=5 step=2} - current loop iteration: {$smarty.section.customer.iteration}<br> - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {* nota: $custid[customer.index] e $custid[customer] hanno identico significato *} - {if $custid[customer.index_next] ne $custid[customer.index]} - The customer id will change<br> - {/if} - {/section} - - - OUTPUT: - - current loop iteration: 1 - 5 id: 1000<br> - The customer id will change<br> - current loop iteration: 2 - 7 id: 1001<br> - The customer id will change<br> - current loop iteration: 3 - 9 id: 1002<br> - The customer id will change<br> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.first"> - <title>first</title> - <para> - first vale true se l'iterazione attuale è la prima. - </para> - <example> - <title>proprietà first</title> - <programlisting> - {section name=customer loop=$custid} - {if $smarty.section.customer.first} - <table> - {/if} - - <tr><td>{$smarty.section.customer.index} id: - {$custid[customer]}</td></tr> - - {if $smarty.section.customer.last} - </table> - {/if} - {/section} - - - OUTPUT: - - <table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> - </table> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.last"> - <title>last</title> - <para> - last vale true se l'attuale iterazione è l'ultima. - </para> - <example> - <title>proprietà last</title> - <programlisting> - {section name=customer loop=$custid} - {if $smarty.section.customer.first} - <table> - {/if} - - <tr><td>{$smarty.section.customer.index} id: - {$custid[customer]}</td></tr> - - {if $smarty.section.customer.last} - </table> - {/if} - {/section} - - - OUTPUT: - - <table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> - </table> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.rownum"> - <title>rownum</title> - <para> - rownum visualizza l'iterazione attuale del ciclo, partendo - da uno. E' un alias di iteration, e funziona in modo identico. - </para> - <example> - <title>proprietà rownum</title> - <programlisting> - {section name=customer loop=$custid} - {$smarty.section.customer.rownum} id: {$custid[customer]}<br> - {/section} - - - OUTPUT: - - 1 id: 1000<br> - 2 id: 1001<br> - 3 id: 1002<br> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.loop"> - <title>loop</title> - <para> - loop visualizza l'index dell'ultimo ciclo visualizzato dalla - sezione. Può essere usato all'interno o dopo la sezione. - </para> - <example> - <title>proprietà index</title> - <programlisting> - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {/section} - - There were {$smarty.section.customer.loop} customers shown above. - - OUTPUT: - - 0 id: 1000<br> - 1 id: 1001<br> - 2 id: 1002<br> - - There were 3 customers shown above. -</programlisting> - </example> - </sect2> - <sect2 id="section.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> è usato come parametro per la sezione. - <emphasis>show</emphasis> è un valore booleano, true o false. Se - false, la sezione non verrà visualizzata. Se è presente un sectionelse, - verrà visualizzato questo. - </para> - <example> - <title>attributo show</title> - <programlisting> - {* $show_customer_info potrebbe essere stato passato dall'applicazione - PHP, per stabilire se questa sezione deve essere visualizzata o no *} - {section name=customer loop=$custid show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$custid[customer]}<br> - {/section} - - {if $smarty.section.customer.show} - the section was shown. - {else} - the section was not shown. - {/if} - - - OUTPUT: - - 1 id: 1000<br> - 2 id: 1001<br> - 3 id: 1002<br> - - the section was shown. -</programlisting> - </example> - </sect2> - <sect2 id="section.property.total"> - <title>total</title> - <para> - total visualizza il numero totale di iterazioni che la sezione - eseguirà. Può essere usato all'interno o dopo la sezione. - </para> - <example> - <title>proprietà total</title> - <programlisting> - {section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {/section} - - There were {$smarty.section.customer.total} customers shown above. - - OUTPUT: - - 0 id: 1000<br> - 2 id: 1001<br> - 4 id: 1002<br> - - There were 3 customers shown above. -</programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.strip"> - <title>strip</title> - <para> - Molte volte i progettisti di pagine web si trovano davanti al - problema causato da spazi e "a capo" che influiscono sull'output - HTML generato (a causa delle "caratteristiche" del browser), per - cui si trovano costretti a mettere tutti insieme i tag del template - per ottenere il risultato voluto. Questo di solito significa - ritrovarsi con un template illeggibile o ingestibile. - </para> - <para> - Tutto ciò che è compreso fra i tag {strip}{/strip} in Smarty viene - ripulito dagli spazi extra o dai caratteri di ritorno a capo all'inizio - e alla fine delle righe, prima di essere visualizzato. In - questo modo potete mantenere la leggibilità dei vostri template senza - preoccuparvi dei problemi causati dagli spazi. - </para> - <note> - <title>Nota tecnica</title> - <para> - {strip}{/strip} non modificano il contenuto delle variabili del template. - Vedere la <link linkend="language.modifier.strip">funzione strip modifier</link>. - </para> - </note> -<example> -<title>tag strip</title> -<programlisting> -<![CDATA[ -{* il codice seguente uscirà in output su una riga unica *} -{strip} -<table border=0> - <tr> - <td> - <A HREF="{$url}"> - <font color="red">This is a test</font> - </A> - </td> - </tr> -</table> -{/strip} - - -OUTPUT: - -<table border=0><tr><td><A HREF="http://my.example.com"><font color="red">This is a test</font></A></td></tr></table> -]]> -</programlisting> -</example> - <para> - Notate che nell'esempio qui sopra tutte le righe iniziano e - finiscono con tag HTML. Tenete presente che tutte le linee - vengono "attaccate", per cui se avete del testo all'inizio - o alla fine di qualche riga, questo verrà attaccato, e probabilmente - non è ciò che volete. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-combining-modifiers.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.combining.modifiers"> - <title>Combinare i modificatori</title> - <para> - Potete applicare qualsiasi numero di modificatori ad una variabile. - Verranno eseguiti nell'ordine in cui li avete indicati, da sinistra - a destra. Devono essere separati con un carattere <literal>|</literal> (pipe). - </para> - <example> - <title>combinare i modificatori</title> - <programlisting role="php"> -<![CDATA[ -index.php: -<?php -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); -$smarty->display('index.tpl'); -?> - -index.tpl: - -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - L'esempio sopra stamperà: - </para> - <screen> -<![CDATA[ -Smokers are Productive, but Death Cuts Efficiency. -S M O K E R S A R E P R O D U C T I V E , B U T D E A T H C U T S E F F I C I E N C Y . -s m o k e r s a r e p r o d u c t i v e , b u t d e a t h c u t s... -s m o k e r s a r e p r o d u c t i v e , b u t . . . -s m o k e r s a r e p. . . -]]> - </screen> - </example> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.custom.functions"> - <title>Custom Functions</title> - <para> - Smarty è fornito di numerose funzioni utente che potete - utilizzare nei template. - </para> - - &designers.language-custom-functions.language-function-assign; - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-debug; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-popup-init; - &designers.language-custom-functions.language-function-popup; - &designers.language-custom-functions.language-function-textformat; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-assign.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.assign"> - <title>assign</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Nome della variabile valorizzata</entry> - </row> - <row> - <entry>value</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Valore assegnato alla variabile</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - assign è usato per assegnare valori alle variabili del template - durante l'esecuzione dello stesso. - </para> -<example> -<title>assign</title> -<programlisting> -{assign var="name" value="Bob"} - -The value of $name is {$name}. - -OUTPUT: - -The value of $name is Bob.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.counter"> - <title>counter</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Nome del contatore</entry> - </row> - <row> - <entry>start</entry> - <entry>numerico</entry> - <entry>no</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Valore di partenza del contatore</entry> - </row> - <row> - <entry>skip</entry> - <entry>numerico</entry> - <entry>no</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Passo del contatore</entry> - </row> - <row> - <entry>direction</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>up</emphasis></entry> - <entry>Direzione del conteggio (up/down)</entry> - </row> - <row> - <entry>print</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Se stampare il valore oppure no</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>la variabile del template a cui assegnare il valore</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - counter si usa per stampare un conteggio. counter terrà il conto - del valore ad ogni iterazione. Potete impostare il valore di partenza, - l'intervallo e la direzione del conteggio, così come decidere se - stampare il valore oppure no. Potete utilizzare più contatori - contemporaneamente indicando un nome diverso per ciascuno. Se non indicate - un nome, verrà usato il nome 'default'. - </para> - <para> - Se fornite lo speciale attributo "assign", l'output della funzione contatore - verrà assegnato a questa variabile invece di essere stampata in output. - </para> - <example> - <title>counter</title> - <programlisting> -<![CDATA[ -{* inizializzazione del contatore *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - questo stamperà: - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.cycle"> - <title>cycle</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Nome del ciclo</entry> - </row> - <row> - <entry>values</entry> - <entry>misto</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Valori da usare nel ciclo: può essere - una lista delimitata da un separatore (vedere attributo - delimiter), oppure un array di valori.</entry> - </row> - <row> - <entry>print</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Se stampare il valore oppure no.</entry> - </row> - <row> - <entry>advance</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Se avanzare o no al prossimo valore.</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>,</emphasis></entry> - <entry>Delimitatore per l'attributo values.</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>Variabile del template cui assegnare l'output.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Cycle si usa per effettuare un ciclo alternato fra un insieme di valori. - Ci dà la possibilità di alternare facilmente due o più colori in una - tabella, o di effettuare un ciclo su un array di valori. - </para> - <para> - Potete effettuare il ciclo su più di un insieme di valori nel template - fornendo l'attributo name, se date ad ogni insieme un nome diverso. - </para> - <para> - Potete evitare che il valore corrente venga stampato impostando - l'attributo set a false. Può essere utile per saltare un valore. - </para> - <para> - L'attributo advance serve per ripetere un valore. Se lo impostate a - false, l'iterazione successiva del ciclo stamperà lo stesso valore. - </para> - <para> - Se fornite lo speciale attributo "assign", l'output della funzione cycle - verrà assegnato a questa variabile invece di essere stampato in output. - </para> - <example> - <title>cycle</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> - </programlisting> - <screen> -<![CDATA[ -<tr bgcolor="#eeeeee"> - <td>1</td> -</tr> -<tr bgcolor="#d0d0d0"> - <td>2</td> -</tr> -<tr bgcolor="#eeeeee"> - <td>3</td> -</tr> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.debug"> - <title>debug</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>html</emphasis></entry> - <entry>tipo di output: html o javascript</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {debug} produce un dump sulla pagina della console di debug. Funziona - indipendentemente dall'impostazione <link linkend="chapter.debugging.console">debug</link> - di Smarty. Siccome viene eseguita a runtime, è in grado di - mostrare soltanto le variabili, non i template che state utilizzando. - Comunque vedrete tutte le variabili attualmente disponibili nello - scope di questo template. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.eval"> - <title>eval</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>misto</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>variabile (o stringa) da valorizzare</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>la variabile cui verrà assegnato l'output</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - eval si usa per valorizzare una variabile come se fosse un - template. Si può usare per incorporare tag o variabili di template - dentro altre variabili, oppure tag o variabili nelle variabili dei - file di configurazione. - </para> - <para> - Se fornite lo speciale attributo "assign" l'output della funzione - eval sarà assegnato a questa variabile invece di essere stampato - in output. - </para> - <note> - <title>Nota tecnica</title> - <para> - La variabili valorizzate con eval sono trattate allo stesso modo - dei template. Seguono le stesse regole di escape e di sicurezza, - come se fossero template - </para> - </note> - <note> - <title>Nota tecnica</title> - <para> - Le variabili valorizzate con eval vengono compilate ad ogni chiamata: - la versione compilata non viene salvata! Comunque, se avete il - caching abilitato, l'output verrà messo in cache con il resto del - template. - </para> - </note> -<example> -<title>eval</title> -<programlisting> -setup.conf ----------- - -emphstart = <b> -emphend = </b> -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. - - -index.tpl ---------- - -{config_load file="setup.conf"} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign="state_error"} -{$state_error} - -OUTPUT: - -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a <b>city</b>. -You must supply a <b>state</b>. - -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.fetch"> - <title>fetch</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>il file o l'indirizzo http o ftp da caricare</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>la variabile del template cui assegnare l'output</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - fetch si usa per recuperare file dal filesystem locale, oppure da - un indirizzo http o ftp, e visualizzarne il contenuto. Se il nome - del file inizia per "http://", la pagina web verrà letta e - visualizzata. Se il nome del file inizia per "ftp://", il file - verrà recuperato dal server ftp e visualizzato. Per i file locali - deve essere indicato l'intero percorso sul filesystem oppure un - percorso relativo all'indirizzo dello script php in esecuzione. - </para> - <para> - Se fornite lo speciale attributo "assign", l'output della funzione - fetch verrà assegnato a questa variabile invece di essere stampato - in output. (novità di Smarty 1.5.0) - </para> - <note> - <title>Nota tecnica</title> - <para> - I redirect http non sono supportati, quindi assicuratevi di - mettere lo slash finale sull'indirizzo della pagina web quando - necessario. - </para> - </note> - <note> - <title>Nota tecnica</title> - <para> - Se è attivata la security del template e state cercando di - caricare un file dal filesystem locale, saranno consentiti - soltanto file compresi in una delle directory definite sicure - ($secure_dir). - </para> - </note> - <example> - <title>fetch</title> - <programlisting> -<![CDATA[ -{* inclusione di un javascript nel template *} -{fetch file="/export/httpd/www.example.com/docs/navbar.js"} - -{* incorporazione nel template del testo relativo al tempo proveniente da un altro sito *} -{fetch file="http://www.myweather.com/68502/"} - -{* lettura via ftp dei titoli delle ultime notizie *} -{fetch file="ftp://user:password@ftp.example.com/path/to/currentheadlines.txt"} - -{* assegnazione del contenuto letto ad una variabile del template *} -{fetch file="http://www.myweather.com/68502/" assign="weather"} -{if $weather ne ""} - <b>{$weather}</b> -{/if} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,165 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.html.checkboxes"> - <title>html_checkboxes</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>nome della lista di checkbox</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>sì, a meno che si usi l'attributo options</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di valori per le checkbox</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>sì, a meno che si usi l'attributo options</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di output per le checkbox</entry> - </row> - <row> - <entry>selected</entry> - <entry>stringa/array</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>la/le checkbox preselezionata/e</entry> - </row> - <row> - <entry>options</entry> - <entry>array associativo</entry> - <entry>sì, a meno che si usino values e output</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array associativo di valori e output</entry> - </row> - <row> - <entry>separator</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>stringa di testo da usare come separatore fra le checkbox</entry> - </row> - <row> - <entry>labels</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>true</emphasis></entry> - <entry>aggiunge i tag <label> all'output</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_checkboxes è una funzione utente che usa i dati forniti per - creare un gruppo di checkbox html. Si occupa anche di impostare - la casella selezionata per default. Gli attributi obbligatori sono - values e output, a meno che non usiate invece options. Tutto - l'output generato è compatibile XHTML. - </para> - <para> - Tutti i parametri non compresi nella lista qui sopra vengono - stampati come coppie nome/valore all'interno di ogni tag <input>. - </para> - <example> - <title>html_checkboxes</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"} -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<?php - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" options=$cust_checkboxes selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - entrambi gli esempi produrranno in output: - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.image"> - <title>html_image</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>nome/percorso dell'immagine</entry> - </row> - <row> - <entry>border</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>0</emphasis></entry> - <entry>dimensione del bordo dell'immagine</entry> - </row> - <row> - <entry>height</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>altezza effettiva dell'immagine</emphasis></entry> - <entry>altezza con cui visualizzare l'immagine</entry> - </row> - <row> - <entry>width</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>larghezza effettiva dell'immagine</emphasis></entry> - <entry>larghezza con cui visualizzare l'immagine</entry> - </row> - <row> - <entry>basedir</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>doc root del web server</emphasis></entry> - <entry>directory di base per percorsi relativi</entry> - </row> - <row> - <entry>alt</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>""</emphasis></entry> - <entry>descrizione alternativa dell'immagine</entry> - </row> - <row> - <entry>href</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>valore di href per il link dell'immagine</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_image è una funzione utente che genera un tag HTML per una - immagine. L'altezza e la larghezza, quando non indicate, vengono - calcolate automaticamente dal file dell'immagine. - </para> - <para> - basedir è la directory di riferimento per percorsi relativi. Se non - viene indicata, viene usata come base la document root del web - server (variabile di ambiente DOCUMENT_ROOT). Se la security è - abilitata, il percorso dell'immagine deve trovarsi in una directory - considerata sicura. - </para> - <para> - <parameter>href</parameter> è l'indirizzo del link a cui collegare - l'immagine. Se viene fornito, verrà creato un tag - <a href="LINKVALUE"><a> attorno al tag image. - </para> - <para> - Tutti i parametri non compresi nella lista qui sopra vengono - stampati come coppie nome/valore all'interno del tag <img> - generato. - </para> - <note> - <title>Nota tecnica</title> - <para> - html_image richiede un accesso al disco per leggere il - file dell'immagine e calcolarne altezza e larghezza. Se non - usate il caching dei template, è generalmente consigliabile - evitare html_image e lasciare i tag image statici per - ottenere prestazioni ottimali. - </para> - </note> - <example> - <title>esempio di html_image</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{html_image file="pumpkin.jpg"} -{html_image file="/path/from/docroot/pumpkin.jpg"} -{html_image file="../path/relative/to/currdir/pumpkin.jpg"} -]]> - </programlisting> - <para> - un possibile output potrebbe essere: - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" border="0" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" border="0" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" border="0" width="44" height="68" /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,153 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.html.options"> - <title>html_options</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>sì, a meno che si usi l'attributo options</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di valori per il menù a discesa</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>sì, a meno che si usi l'attributo options</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di output per il menù a discesa</entry> - </row> - <row> - <entry>selected</entry> - <entry>stringa/array</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>l'elemento/gli elementi selezionato/i</entry> - </row> - <row> - <entry>options</entry> - <entry>array associativo</entry> - <entry>sì, a meno che si usino values e output</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array associativo di valori e output</entry> - </row> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>nome del gruppo select</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_options è una funzione utente che usa i dati forniti per creare - un gruppo di opzioni, cioè di valori option per un menù a discesa - (casella select). Si occupa anche di quale o quali valori devono - essere preselezionati. Gli attributi obbligatori sono values e output, - a meno che non usiate invece options. - </para> - <para> - Se uno dei valori forniti è un array, verrà trattato come un gruppo - di opzioni (OPTGROUP), e visualizzato di conseguenza. E' possibile - creare gruppi ricorsivi (a più livelli). Tutto l'output generato è - compatibile XHTML. - </para> - <para> - Se viene fornito l'attributo opzionale <emphasis>name</emphasis>, - la lista di opzioni verrà racchiusa con il tag - <select name="groupname"></select>. In caso contrario - verrà generata solo la lista di opzioni. - </para> - <para> - Tutti i parametri non compresi nella lista qui sopra verranno - stampati come coppie nome/valore nel tag <select>. - Saranno ignorati se l'attributo <emphasis>name</emphasis> non è - presente. - </para> -<example> -<title>html_options</title> -<programlisting> -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Carlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -<select name=customer_id> - {html_options values=$cust_ids selected=$customer_id output=$cust_names} -</select> - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_options', array( - 1001 => 'Joe Schmoe', - 1002 => 'Jack Smith', - 1003 => 'Jane Johnson', - 1004 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -<select name=customer_id> - {html_options options=$cust_options selected=$customer_id} -</select> - - -OUTPUT: (per entrambi gli esempi) - -<select name=customer_id> - <option value="1000">Joe Schmoe</option> - <option value="1001" selected="selected">Jack Smith</option> - <option value="1002">Jane Johnson</option> - <option value="1003">Charlie Brown</option> -</select></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.radios"> - <title>html_radios</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>nome dell'insieme di pulsanti radio</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>sì, a meno che si usi l'attributo options</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di valori per i pulsanti radio</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>sì, a meno che si usi l'attributo options</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di output per i pulsanti radio</entry> - </row> - <row> - <entry>selected</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>l'elemento preselezionato</entry> - </row> - <row> - <entry>options</entry> - <entry>array associativo</entry> - <entry>sì, a meno che si usino values e output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>array associativo di valori e output</entry> - </row> - <row> - <entry>separator</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>stringa di testo da usare come separatore fra le diverse voci</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_radios è una funzione utente che usa i dati forniti per creare - un gruppo di pulsanti radio html. Si occupa anche di quale deve - essere selezionato per default. Gli attributi obbligatori sono values - e output, a meno che non usiate invece options. Tutto l'output - generato è compatibile XHTML. - </para> - <para> - Tutti i parametri non compresi nella lista qui sopra verranno - stampati come coppie nome/valore in ciascuno dei tag <input> - creati. - </para> - -<example> -<title>html_radios</title> -<programlisting> -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"} - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"} - - -OUTPUT: (per entrambi gli esempi) - -<input type="radio" name="id" value="1000">Joe Schmoe<br /> -<input type="radio" name="id" value="1001" checked="checked">Jack Smith<br /> -<input type="radio" name="id" value="1002">Jane Johnson<br /> -<input type="radio" name="id" value="1003">Charlie Brown<br /></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,361 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.select.date"> - <title>html_select_date</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>Date_</entry> - <entry>prefisso per i nomi delle variabili</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/YYYY-MM-DD</entry> - <entry>no</entry> - <entry>data attuale in formato unix timestamp o YYYY-MM-DD</entry> - <entry>data preselezionata</entry> - </row> - <row> - <entry>start_year</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>anno corrente</entry> - <entry>primo anno visualizzato: può essere in valore assoluto - o relativo all'anno corrente(+/- N)</entry> - </row> - <row> - <entry>end_year</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>uguale a start_year</entry> - <entry>ultimo anno visualizzato: può essere in valore assoluto - o relativo all'anno corrente(+/- N)</entry> - </row> - <row> - <entry>display_days</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se visualizzare i giorni oppure no</entry> - </row> - <row> - <entry>display_months</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se visualizzare i mesi oppure no</entry> - </row> - <row> - <entry>display_years</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se visualizzare gli anni oppure no</entry> - </row> - <row> - <entry>month_format</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>%B</entry> - <entry>formato per i mesi in output (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>%02d</entry> - <entry>formato per i giorni in output (sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>string</entry> - <entry>no</entry> - <entry>%d</entry> - <entry>formato per il valore dei giorni (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>false</entry> - <entry>se visualizzare gli anni in forma testuale oppure no</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>false</entry> - <entry>se visualizzare gli anni in ordine inverso</entry> - </row> - <row> - <entry>field_array</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se viene fornito un nome, le caselle select - verranno create in modo che il risultato - venga fornito a PHP nella forma nome[Day], - nome[Year], nome[Month]. - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge l'attributo size al tag select</entry> - </row> - <row> - <entry>month_size</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge l'attributo size al tag select</entry> - </row> - <row> - <entry>year_size</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge l'attributo size al tag select</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra a tutti i tag select</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra ai tag select/input</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra ai tag select/input</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra ai tag select/input</entry> - </row> - <row> - <entry>field_order</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>MDY</entry> - <entry>ordine di visualizzazione dei campi (mese, giorno, anno)</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>\n</entry> - <entry>stringa di separazione fra i campi</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>%m</entry> - <entry>formato strftime per i valori dei mesi</entry> - </row> - <row> - <entry>year_empty</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>Se presente, il primo elemento della casella select per gli anni - conterrà questo valore come output e "" come valore. E' utile per mostrare, - ad esempio, sul menù a discesa la frase "Selezionare l'anno". - Notate che potete utilizzare valori del tipo "-MM-DD" nell'attributo time - per indicare che l'anno non deve essere preselezionato.</entry> - </row> - <row> - <entry>month_empty</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>Se presente, il primo elemento della casella select per i mesi - conterrà questo valore come output e "" come valore. - Notate che potete utilizzare valori del tipo "YYYY---DD" nell'attributo time - per indicare che il mese non deve essere preselezionato.</entry> - </row> - <row> - <entry>day_empty</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>Se presente, il primo elemento della casella select per i giorni - conterrà questo valore come output e "" come valore. - Notate che potete utilizzare valori del tipo "YYYY-MM-" nell'attributo time - per indicare che il giorno non deve essere preselezionato.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_select_date è una funzione utente che crea per voi menù a discesa - per le date. Può mostrare anno, mese e giorno o solo qualcuno di questi - valori. - </para> - <para> - L'attributo time può avere diversi formati: può essere un timestamp UNIX - o una stringa di tipo Y-M-D (anno-mese-giorno). Il formato più comune - sarebbe YYYY-MM-DD, ma vengono riconosciuti anche mesi e giorni con meno - di due cifre. Se uno dei tre valori (Y,M,D) è una stringa vuota, il campo - select corrispondente non avrà nessuna preselezione. Ciò è utile in - special modo con gli attributi year_empty, month_empty e day_empty. - </para> -<example> -<title>html_select_date</title> -<programlisting> -<![CDATA[ -{html_select_date} -+]]> -</programlisting> -<para> -Questo stamperà: -</para> -<screen> -<![CDATA[ -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> -<option value="4">04</option> -<option value="5">05</option> -<option value="6">06</option> -<option value="7">07</option> -<option value="8">08</option> -<option value="9">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected="selected">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2001" selected="selected">2001</option> -</select> -]]> -</screen> -</example> - -<example> -<title>html_select_date</title> -<programlisting> -<![CDATA[ -{* l'anno iniziale e finale possono essere relativi a quello corrente *} -{html_select_date prefix="StartDate" time=$time start_year="-5" end_year="+1" display_days=false} -+]]> -</programlisting> -<para> -Questo stamperà: (l'anno corrente è il 2000) -</para> -<screen> -<![CDATA[ -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="StartDateYear"> -<option value="1995">1995</option> -<option value="1996">1996</option> -<option value="1997">1997</option> -<option value="1998">1998</option> -<option value="1999">1999</option> -<option value="2000" selected="selected">2000</option> -<option value="2001">2001</option> -</select> -]]> -</screen> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,331 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.html.select.time"> - <title>html_select_time</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>Time_</entry> - <entry>prefisso per i nomi delle variabili</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>no</entry> - <entry>ora corrente</entry> - <entry>ora preselezionata</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se mostrare o no le ore</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se mostrare o no i minuti</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se mostrare o no i secondi</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se mostrare o no il valore "am/pm" (antimeridiano / pomeridiano). - Questo valore non viene mai mostrato (e quindi il parametro - ignorato) se use_24_hours è true.</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry>true</entry> - <entry>se usare o no l'orologio di 24 ore</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>intero</entry> - <entry>no</entry> - <entry>1</entry> - <entry>intervallo dei minuti nel menù a discesa relativo</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>intero</entry> - <entry>no</entry> - <entry>1</entry> - <entry>intervallo dei secondi nel menù a discesa relativo</entry> - </row> - <row> - <entry>field_array</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>nessuno</entry> - <entry>imposta i valori in un array con questo nome</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra a tutti i tag select/input</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra al tag select/input</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra al tag select/input</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra al tag select/input</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry>null</entry> - <entry>se presente aggiunge attributi extra al tag select/input</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_select_time è una funzione utente che crea per voi menù a discesa per - la selezione di un orario. Potete scegliere quali campi visualizzare fra - ore, minuti, secondi e antimeridiano/postmeridiano. - </para> - <para> - L'attributo time può avere vari formati. Può essere un timestamp o - una stringa nel formato YYYYMMDDHHMMSS o una stringa leggibile - dalla funzione php strtotime(). - </para> - <example> - <title>html_select_time</title> - <programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - This will output: - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09" selected="selected">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20" selected="selected">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23" selected="selected">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected="selected">AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,152 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.html.table"> - <title>html_table</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>array di dati da visualizzare nella tabella</entry> - </row> - <row> - <entry>cols</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>3</emphasis></entry> - <entry>numero di colonne della tabella</entry> - </row> - <row> - <entry>table_attr</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>attributi per il tag table</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>attributi per i tag tr (gli array vengono alternati)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>attributi per i tag td (gli array vengono alternati)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>valore per le celle aggiuntive dell'ultima riga, - se presenti</entry> - </row> - - <row> - <entry>hdir</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>right</emphasis></entry> - <entry>direzione di riempimento delle righe. Valori possibili: <emphasis>left</emphasis>/<emphasis>right</emphasis></entry> - </row> - <row> - <entry>vdir</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>down</emphasis></entry> - <entry>direzione di riempimento delle colonne. Valori possibili: <emphasis>up</emphasis>/<emphasis>down</emphasis></entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - <emphasis>html_table</emphasis> è una funzione utente che formatta - un array di dati in una tabella HTML. L'attributo <emphasis>cols</emphasis> - determina il numero di colonne che formeranno la tabella. I valori - di <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> e - <emphasis>td_attr</emphasis> determinano gli attributi dei tag table, - tr e td. Se <emphasis>tr_attr</emphasis> o <emphasis>td_attr</emphasis> - sono array, la funzione userà un ciclo per alternarne i valori. - <emphasis>trailpad</emphasis> è il valore da usare nelle ultime celle - da aggiungere all'ultima riga, nel caso in cui il numero di valori - nell'array loop non sia divisibile per il numero di colonne. - </para> -<example> -<title>html_table</title> -<programlisting> -<![CDATA[ -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -index.tpl: - -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} - -OUTPUT: - -<table border="1"> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</table> -<table border="0"> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td> </td><td> </td><td> </td></tr> -</table> -<table border="1"> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr> -</table> -]]></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,150 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.mailto"> - <title>mailto</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>l'indirizzo e-mail</entry> - </row> - <row> - <entry>text</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>il testo da visualizzare sul link; il default - è l'indirizzo e-mail</entry> - </row> - <row> - <entry>encode</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>none</emphasis></entry> - <entry>Come codificare l'indirizzo. Può essere - <literal>none</literal>, <literal>hex</literal> o - <literal>javascript</literal>.</entry> - </row> - <row> - <entry>cc</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>indirizzi e-mail da mettere 'per conoscenza'. - Separateli con una virgola.</entry> - </row> - <row> - <entry>bcc</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>indirizzi e-mail da mettere 'in copia nascosta'. - Separateli con una virgola.</entry> - </row> - <row> - <entry>subject</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>oggetto della e-mail.</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>newsgroups a cui scrivere. Separateli con una virgola.</entry> - </row> - <row> - <entry>followupto</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>indirizzi per il follow up to. Separateli con una virgola.</entry> - </row> - <row> - <entry>extra</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>qualsiasi informazione ulteriore che vogliate passare - al link, ad esempio classi per i fogli di stile</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - La funzione mailto automatizza la creazione di link mailto e, - opzionalmente, li codifica. Codificare gli indirizzi e-mail - rende più difficile per i web spider raccoglierli dal vostro sito. - </para> - <note> - <title>Nota tecnica</title> - <para> - javascript è probabilmente il metodo più completo di - codifica, ma potete usare anche la codifica esadecimale. - </para> - </note> - <example> - <title>mailto</title> - <programlisting> -{mailto address="me@example.com"} -{mailto address="me@example.com" text="send me some mail"} -{mailto address="me@example.com" encode="javascript"} -{mailto address="me@example.com" encode="hex"} -{mailto address="me@example.com" subject="Hello to you!"} -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -{mailto address="me@example.com" extra='class="email"'} - -OUTPUT: - -<a href="mailto:me@example.com" >me@domain.com</a> -<a href="mailto:me@example.com" >send me some mail</a> -<script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6 -9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d% -61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e -%27%29%3b'))</script> -<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >me@domain.com</a> -<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@domain.com</a> -<a href="mailto:me@example.com?cc=you@domain.com%2Cthey@domain.com" >me@domain.com</a> -<a href="mailto:me@example.com" class="email">me@domain.com</a></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,148 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.math"> - <title>math</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>l'equazione da eseguire</entry> - </row> - <row> - <entry>format</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>formato del risultato (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numerico</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>valore di una variabile dell'equazione</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>variabile del template cui verrà assegnato il risultato</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numerico</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>valore di una variabile dell'equazione</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - La funzione math permette al progettista di effettuare equazioni - matematiche nel template. Qualsiasi variabile numerica del template - può essere utilizzata nell'equazione; il risultato verrà stampato - al posto del tag. Le variabili usate nell'equazione vengono passate - come parametri, che possono essere variabili del template o valori - statici. +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, - min, pi, pow, rand, round, sin, sqrt, srans e tan sono tutti operatori - validi. Controllate la documentazione di PHP per ulteriori informazioni - su queste funzioni matematiche. - </para> - <para> - Se fornite lo speciale attributo "assign", l'output della - funzione verrà assegnato a questa variabile del template, - invece di essere stampato in output. - </para> - <note> - <title>Nota tecnica</title> - <para> - math è una funzione costosa in termini di prestazioni, a - causa dell'uso che fa della funzione php eval(). Fare i - calcoli matematici in PHP è molto più efficiente, quindi, - quando possibile, fate i calcoli in PHP ed assegnate i - risultati al template. Evitate decisamente chiamate - ripetitive alla funzione math, ad esempio in cicli section. - </para> - </note> -<example> -<title>math</title> -<programlisting> -{* $height=4, $width=5 *} - -{math equation="x + y" x=$height y=$width} - -OUTPUT: - -9 - - -{* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - -{math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} - -OUTPUT: - -100 - - -{* potete usare le parentesi *} - -{math equation="(( x + y ) / z )" x=2 y=10 z=2} - -OUTPUT: - -6 - - -{* potete indicare un parametro format in formato sprintf *} - -{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - -OUTPUT: - -9.44</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-popup-init.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.popup.init"> - <title>popup_init</title> - <para> - popup è un'integrazione di overLib, una libreria usata per - le finestre popup. Tali finestre (si tratta di finestre interne - al documento, non finestre di programma come quelle che si aprono - con "javascript:window.open...") si usano per informazioni - relative al contesto, ad esempio aiuto o suggerimenti. - popup_init deve essere chiamata una volta all'inizio di ogni - pagina in cui pensate di utilizzare la funzione <link - linkend="language.function.popup">popup</link>. overLib è stata - scritta da Erik Bosrup, e la sua homepage si trova all'indirizzo - http://www.bosrup.com/web/overlib/. - </para> - <para> - A partire dalla versione di Smarty 2.1.2, overLib NON fa più - parte della release. Quindi scaricate overLib, piazzate il file - overlib.js sotto la vostra document root e indicate il percorso - relativo a questo file come parametro "src" di popup_init. - </para> - <example> - <title>popup_init</title> - <programlisting> -<![CDATA[ -{* popup_init deve essere chiamata una volta in cima alla pagina *} -{popup_init src="/javascripts/overlib.js"} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-popup.xml
Deleted
@@ -1,428 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="language.function.popup"> - <title>popup</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>text</entry> - <entry>stringa</entry> - <entry>sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>testo o codice html da visualizzare nel popup</entry> - </row> - <row> - <entry>trigger</entry> - <entry>stringa</entry> - <entry>mo</entry> - <entry><emphasis>onMouseOver</emphasis></entry> - <entry>evento usato per attivare il popup. Può essere - onMouseOver oppure onClick</entry> - </row> - <row> - <entry>sticky</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry>fa sì che il popup rimanga visibile fino a quando non viene chiuso</entry> - </row> - <row> - <entry>caption</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta il titolo del popup</entry> - </row> - <row> - <entry>fgcolor</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>colore dell'interno del popup</entry> - </row> - <row> - <entry>bgcolor</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>colore del bordo del popup</entry> - </row> - <row> - <entry>textcolor</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>colore del testo del popup</entry> - </row> - <row> - <entry>capcolor</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>colore del titolo del popup</entry> - </row> - <row> - <entry>closecolor</entry> - <entry>stringa</entry> - <entry>mo</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>colore del link di chiusura</entry> - </row> - <row> - <entry>textfont</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>carattere del testo</entry> - </row> - <row> - <entry>captionfont</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>carattere del titolo</entry> - </row> - <row> - <entry>closefont</entry> - <entry>stringa</entry> - <entry>mo</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>carattere del link di chiusura</entry> - </row> - <row> - <entry>textsize</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>dimensione del carattere del testo</entry> - </row> - <row> - <entry>captionsize</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>dimensione del carattere del titolo</entry> - </row> - <row> - <entry>closesize</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>dimensione del carattere del link di chiusura</entry> - </row> - <row> - <entry>width</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>larghezza del box</entry> - </row> - <row> - <entry>height</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>altezza del box</entry> - </row> - <row> - <entry>left</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>false</emphasis></entry> - <entry>posiziona il popup a sinistra del mouse</entry> - </row> - <row> - <entry>right</entry> - <entry>booleanp</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry>posiziona il popup a destra del mouse</entry> - </row> - <row> - <entry>center</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry>posiziona il popup centrato rispetto al mouse</entry> - </row> - <row> - <entry>above</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry>posiziona il popup al di sopra del mouse. NOTA: possibile - solo se è stata impostata l'altezza</entry> - </row> - <row> - <entry>below</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry>posiziona il popup al di sotto del mouse</entry> - </row> - <row> - <entry>border</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>rende il bordo del popup più grosso o più sottile</entry> - </row> - <row> - <entry>offsetx</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>distanza orizzontale del popup rispetto al mouse</entry> - </row> - <row> - <entry>offsety</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>distanza verticale del popup rispetto al mouse</entry> - </row> - <row> - <entry>fgbackground</entry> - <entry>url di un'immagine</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>definisce un'immagine da usare invece del colore di - sfondo nel popup.</entry> - </row> - <row> - <entry>bgbackground</entry> - <entry>url di un'immagine</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>definisce un'immagine da usare invece del colore per - il bordo del popup. NOTA: dovete impostare il bgcolor a "", - altrimenti il colore si vedrà comunque. NOTA: quando è - presente un link di chiusura, Netscape ridisegnerà le - celle della tabella, rendendo la visualizzazione - non corretta</entry> - </row> - <row> - <entry>closetext</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta un testo come link di chiusura invece di "Close"</entry> - </row> - <row> - <entry>noclose</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>non mostra il link di chiusura sui popup "sticky" - con un titolo</entry> - </row> - <row> - <entry>status</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta il testo sulla barra di stato del browser</entry> - </row> - <row> - <entry>autostatus</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta il testo della barra di stato uguale a quello del popup. - NOTA: prevale sull'impostazione di status</entry> - </row> - <row> - <entry>autostatuscap</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta il testo della barra di stato uguale a quello del titolo. - NOTA: prevale sull'impostazione di status e autostatus</entry> - </row> - <row> - <entry>inarray</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>comunica ad overLib di leggere il testo da questo indice - dell'array ol_text, che si trova in overlib.js. Questo parametro - può essere usato al posto di text</entry> - </row> - <row> - <entry>caparray</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>comunica ad overLib di leggere il titolo da - questo indice nell'array ol_caps</entry> - </row> - <row> - <entry>capicon</entry> - <entry>url</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>mostra l'immagine indicata prima del titolo</entry> - </row> - <row> - <entry>snapx</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>aggancia il popup ad una posizione in una griglia - orizzontale</entry> - </row> - <row> - <entry>snapy</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>aggancia il popup ad una posizione in una griglia - verticale</entry> - </row> - <row> - <entry>fixx</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>blocca la posizione orizzontale del popup. Nota: - prevale su qualsiasi altro posizionamento orizzontale</entry> - </row> - <row> - <entry>fixy</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>blocca la posizione verticale del popup. Nota: - prevale su qualsiasi altro posizionamento verticale</entry> - </row> - <row> - <entry>background</entry> - <entry>url</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta un'immagine da utilizzare al posto dello - sfondo della tabella</entry> - </row> - <row> - <entry>padx</entry> - <entry>intero,intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta un padding orizzontale sull'immagine di sfondo - per il testo. Nota: l'attributo richiede due valori</entry> - </row> - <row> - <entry>pady</entry> - <entry>intero,intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>imposta un padding verticale sull'immagine di sfondo - per il testo. Nota: l'attributo richiede due valori</entry> - </row> - <row> - <entry>fullhtml</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>consente di utilizzare codice html per l'immagine di sfondo. - Il codice html dovrà trovarsi nell'attributo text</entry> - </row> - <row> - <entry>frame</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>controlla il popup in un altro frame. Vedere la documentazione - di overlib per maggiori informazioni su questa funzione</entry> - </row> - <row> - <entry>timeout</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>chiama la funzione javascript specificata e prende il - valore restituito come testo da mostrare nel popup</entry> - </row> - <row> - <entry>delay</entry> - <entry>intero</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>fa sì che il popup si comporti come un tooltip. Verrà - visualizzato solo dopo questo ritardo in millisecondi.</entry> - </row> - <row> - <entry>hauto</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>determina automaticamente se il popup deve apparire a sinistra - o a destra del mouse.</entry> - </row> - <row> - <entry>vauto</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>determina automaticamente se il popup deve - apparire sopra o sotto il mouse.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - popup si usa per creare finestre popup javascript. - </para> - <example> - <title>popup</title> - <programlisting> -<![CDATA[ -{* popup_init deve essere chiamata una volta in cima alla pagina *} -{popup_init src="/javascripts/overlib.js"} - -{* crea un link con un popup che appare al passaggio del mouse *} -<a href="mypage.html" {popup text="This link takes you to my page!"}>mypage</a> - -{* potete usare html, links, etc nel testo del popup *} -<a href="mypage.html" {popup sticky=true caption="mypage contents" -text="<ul><li>links</li><li>pages</li><li>images</li></ul>" snapx=10 -snapy=10}>mypage</a> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,254 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.function.textformat"> - <title>textformat</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome Attributo</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>stile predefinito</entry> - </row> - <row> - <entry>indent</entry> - <entry>numero</entry> - <entry>no</entry> - <entry><emphasis>0</emphasis></entry> - <entry>numero di caratteri da rientrare ad ogni riga</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>numero</entry> - <entry>no</entry> - <entry><emphasis>0</emphasis></entry> - <entry>numero di caratteri da rientrare alla prima riga</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>(spazio singolo)</emphasis></entry> - <entry>carattere (o stringa di caratteri) da usare come rientro</entry> - </row> - <row> - <entry>wrap</entry> - <entry>numero</entry> - <entry>no</entry> - <entry><emphasis>80</emphasis></entry> - <entry>a quanti caratteri spezzare ogni riga</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>caratteri (o stringa di caratteri) da usare per - spezzare le righe</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>booleano</entry> - <entry>no</entry> - <entry><emphasis>false</emphasis></entry> - <entry>se vero, le righe verranno spezzate al carattere esatto - invece che al termine di una parola</entry> - </row> - <row> - <entry>assign</entry> - <entry>stringa</entry> - <entry>no</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>variabile del template cui assegnare l'output</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - textformat è una funzione di blocco usata per formattare il testo. - Fondamentalmente rimuove spazi e caratteri speciali, e formatta - i paragrafi spezzando le righe ad una certa lunghezza ed inserendo - dei rientri. - </para> - <para> - Potete impostare i parametri esplicitamente oppure usare uno - stile predefinito. Attualmente "email" è l'unico stile disponibile. - </para> -<example> -<title>textformat</title> -<programlisting> -{textformat wrap=40} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - -This is foo. This is foo. This is foo. -This is foo. This is foo. This is foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo -foo. bar foo bar foo foo. bar foo bar -foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. - - -{textformat wrap=40 indent=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. - -{textformat wrap=40 indent=4 indent_first=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. - -{textformat style="email"} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - -This is foo. This is foo. This is foo. This is foo. This is foo. This is -foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo -foo. - -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers.xml
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.modifiers"> - <title>Modificatori delle variabili</title> - <para> - I modificatori delle variabili si possono applicare alle variabili, alle - funzioni utente o a stringhe. Per applicare un modificatore bisogna indicare - il valore seguito da <literal>|</literal> (pipe) e dal nome del modificatore. - Un modificatore può accettare parametri addizionali che modificano il suo - comportamento. Questi parametri seguono il nome del modificatore e sono - separati da <literal>:</literal> (due punti). - </para> - <example> - <title>esempio di modificatore</title> - <programlisting> -<![CDATA[ -{* Mettere il titolo in maiuscolo *} -<h2>{$title|upper}</h2> - -{* Troncare il topic a 40 caratteri usando ... alla fine *} -Topic: {$topic|truncate:40:"..."} - -{* Formattare una stringa indicata direttamente *} -{"now"|date_format:"%Y/%m/%d"} - -{* Applicare un modificatore ad una funzione utente *} -{mailto|upper address="me@domain.dom"} -]]> - </programlisting> - </example> - <para> - Se applicate un modificatore ad un array invece che ad un singolo valore, - il modificatore verrà applicato ad ogni valore dell'array. Se volete che - il modificatore lavori sull'intero array considerandolo un valore unico, - dovete premettere al nome del modificatore un simbolo <literal>@</literal>, - così: <literal>{$articleTitle|@count}</literal> (questo stampa il numero - di elementi nell'array $articleTitle). - </para> - <para> - I modificatori possono essere autocaricati dalla <link - linkend="variable.plugins.dir">$plugins_dir</link> (vedere <link - linkend="plugins.naming.conventions">Convenzioni di nomenclatura</link>) - oppure possono essere registrati esplicitamente (vedere <link - linkend="api.register.modifier">register_modifier</link>). Inoltre tutte - le funzioni php possono essere usate implicitamente come modificatori. - (L'esempio <literal>@count</literal> visto sopra usa in realtà la funzione - php count e non un modificatore di Smarty). L'uso delle funzioni php - come modificatori porta con sé due piccoli trabocchetti: Primo: A volte - l'ordine dei parametri delle funzioni non è quello desiderato - (<literal>{"%2.f"|sprintf:$float}</literal> funziona, ma non è molto - intuitivo. Più facile è <literal>{$float|string_format:"%2.f"}</literal>, - che è fornito da Smarty). Secondo: con <link linkend="variable.security">$security</link> - attivato, tutte le funzioni php che si vogliono usare come modificatori - devono essere dichiarate affidabili nell'array <link linkend="variable.security.settings"> - $security_settings['MODIFIER_FUNCS']</link>. - </para> - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>booleano</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Stabilisce se le parole contenenti cifre verranno - trasformate in maiuscolo</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Si usa per mettere in maiuscolo la prima lettera di tutte le parole nella variabile. - </para> - <example> - <title>capitalize</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'next x-men film, x3, delayed.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|capitalize} -{$articleTitle|capitalize:true} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -next x-men film, x3, delayed. -Next X-Men Film, x3, Delayed. -Next X-Men Film, X3, Delayed. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.cat"> - <title>cat</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>Valore che viene concatenato alla variabile.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Questo valore viene concatenato alla variabile data. - </para> - <example> - <title>cat</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty = new Smarty; -$smarty->assign('articleTitle', "Psychics predict world didn't end"); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:" yesterday."} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Psychics predict world didn't end yesterday. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>booleano</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Stabilisce se gli spazi devono essere inclusi nel conteggio.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - E' usato per contare il numero di caratteri contenuti in una variabile. - </para> - <example> - <title>count_characters</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Cold Wave Linked to Temperatures. -29 -33 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - Si usa per contare il numero di paragrafi contenuti in una variabile. - </para> - <example> - <title>count_paragraphs</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty = new Smarty; -$smarty->assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins -Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation."); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_paragraphs} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - E' usato per contare il numero di frasi contenute in una variabile. - </para> - <example> - <title>count_sentences</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_sentences} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - E' usato per contare il numero di parole contenute in una variabile. - </para> - <example> - <title>count_words</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_words} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -7 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,234 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.date.format"> - <title>date_format</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry>%b %e, %Y</entry> - <entry>E' il formato per la data in output.</entry> - </row> - <row> - <entry>2</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry>nessuno</entry> - <entry>E' la data di default se la variabile in input è vuota.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Questo modificatore formatta una data e un'ora nel formato dato di - strftime(). Le date possono essere passate a Smarty come timestamp Unix, - timestamp MySql o una qualsiasi stringa contenente mese giorno anno - (riconoscibile da strtotime). I progettisti quindi possono usare - date_format per avere il pieno controllo della formattazione della data. - Se la data passata a date_format è vuota ed è presente un secondo parametro, - verrà usato questo come data da formattare. - </para> - <example> - <title>date_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('yesterday', strtotime('-1 day')); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$smarty.now|date_format} -{$smarty.now|date_format:"%A, %B %e, %Y"} -{$smarty.now|date_format:"%H:%M:%S"} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:"%H:%M:%S"} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Feb 6, 2001 -Tuesday, February 6, 2001 -14:33:00 -Feb 5, 2001 -Monday, February 5, 2001 -14:33:00 -]]> - </screen> - </example> - <para> - Parametri di conversione di date_format: - <itemizedlist> - <listitem><para> - %a - nome abbreviato del giorno della settimana in base all'impostazione di "locale" - </para></listitem> - <listitem><para> - %A - nome intero del giorno della settimana in base all'impostazione di "locale" - </para></listitem> - <listitem><para> - %b - nome abbreviato del mese in base all'impostazione di "locale" - </para></listitem> - <listitem><para> - %B - nome intero del mese in base all'impostazione di "locale" - </para></listitem> - <listitem><para> - %c - rappresentazione preferita di ora e data in base all'impostazione di "locale" - </para></listitem> - <listitem><para> - %C - numero del secolo (l'anno diviso per 100 e troncato ad intero, range da 00 a 99) - </para></listitem> - <listitem><para> - %d - giorno del mese come numero decimale (range da 00 a 31) - </para></listitem> - <listitem><para> - %D - corrisponde a %m/%d/%y - </para></listitem> - <listitem><para> - %e - giorno del mese come numero decimale; la cifra singola è preceduta da uno spazio (range da 1 a 31) - </para></listitem> - <listitem><para> - %g - anno in base alle settimane, su due cifre [00,99] - </para></listitem> - <listitem><para> - %G - anno in base alle settimane, su quattro cifre [0000,9999] - </para></listitem> - <listitem><para> - %h - corrisponde a %b - </para></listitem> - <listitem><para> - %H - ora come numero decimale, su 24 ore (range da 00 a 23) - </para></listitem> - <listitem><para> - %I - ora come numero decimale, su 12 ore (range da 01 a 12) - </para></listitem> - <listitem><para> - %j - giorno dell'anno come numero decimale (range da 001 a 366) - </para></listitem> - <listitem><para> - %k - ora (su 24 ore) con le cifre singole precedute da spazio (range da 0 a 23) - </para></listitem> - <listitem><para> - %l - ora (su 12 ore) con le cifre singole precedute da spazio (range da 1 a 12) - </para></listitem> - <listitem><para> - %m - mese come numero decimale (range da 01 a 12) - </para></listitem> - <listitem><para> - %M - minuto come numero decimale - </para></listitem> - <listitem><para> - %n - carattere di "a capo" - </para></listitem> - <listitem><para> - %p - `am' o `pm' (antimeridiane o postmeridiane) in base all'ora, o valore corrispondente in base all'impostazione di "locale" - </para></listitem> - <listitem><para> - %r - ora completa nella notazione con a.m. e p.m. - </para></listitem> - <listitem><para> - %R - ora completa nella notazione su 24 ore - </para></listitem> - <listitem><para> - %S - secondi come numero decimale - </para></listitem> - <listitem><para> - %t - carattere di tabulazione - </para></listitem> - <listitem><para> - %T - ora corrente, con formato equivalente a %H:%M:%S - </para></listitem> - <listitem><para> - %u - giorno della settimana come numero decimale [1,7], in cui 1 rappresenta Lunedì - </para></listitem> - <listitem><para> - %U - numero della settimana nell'anno come numero decimale, partendo dalla prima Domenica come primo giorno della prima settimana - </para></listitem> - <listitem><para> - %V - Il numero della settimana ISO 8601:1988 come numero decimale, range da 01 a 53, dove la settimana 1 è la prima ad avere almeno 4 giorni nell'anno, e Lunedì è il primo giorno della settimana. - </para></listitem> - <listitem><para> - %w - giorno della settimana come numero decimale, dove la Domenica è 0 - </para></listitem> - <listitem><para> - %W - numero della settimana nell'anno come numero decimale, partendo dal primo lunedì come primo giorno della prima settimana - </para></listitem> - <listitem><para> - %x - rappresentazione preferita della data secondo l'impostazione di "locale", senza l'ora - </para></listitem> - <listitem><para> - %X - rappresentazione preferita dell'ora secondo l'impostazione di "locale", senza data - </para></listitem> - <listitem><para> - %y - anno come numero decimale su due cifre (range da 00 a 99) - </para></listitem> - <listitem><para> - %Y - anno come numero decimale su quattro cifre - </para></listitem> - <listitem><para> - %Z - time zone o nome o abbreviazione - </para></listitem> - <listitem><para> - %% - il carattere `%' - </para></listitem> - </itemizedlist> - <note> - <title>Nota per i programmatori</title> - <para> - date_format è fondamentalmente un involucro per la funzione PHP strftime(). - Potete avere disponibili più o meno specificatori di conversione, in base - alla funzione strftime() del sistema su cui PHP è stato compilato. Controllate - le pagine di manuale del vostro sistema per una lista completa degli - specificatori validi. - </para> - </note> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.default"> - <title>default</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry><emphasis>vuoto</emphasis></entry> - <entry>E' il valore di default da stampare se la variabile è vuota.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - E' usato per impostare un valore di default per una variabile. Se la - variabile è vuota o non impostata, il valore di default viene stampato - al suo posto. Prende un parametro. - </para> - <example> - <title>default</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|default:"no title"} -{$myTitle|default:"no title"} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -no title -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.escape"> - <title>escape</title> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Valori possibili</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry>html,htmlall,url,quotes,hex,hexentity,javascript</entry> - <entry>html</entry> - <entry>E' il tipo di escape da utilizzare.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - E' usato per fare un escape di tipo html, url, su apici per una variabile - su cui non sia già stato fatto l'escape, hex (esadecimale), hexentity o - javascript. - Per default viene applicato un escape di tipo html. - </para> - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "'Stiff Opposition Expected to Casketless Funeral Plan'"); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|escape} -{$articleTitle|escape:"html"} {* escapes & " ' < > *} -{$articleTitle|escape:"htmlall"} {* escapes ALL html entities *} -{$articleTitle|escape:"url"} -{$articleTitle|escape:"quotes"} -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> -]]> - </programlisting> - <para>Questo stamperà: - </para> - <screen> -<![CDATA[ -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27 -\'Stiff Opposition Expected to Casketless Funeral Plan\' -<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">bob@me.net</a> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,118 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.indent"> - <title>indent</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>intero</entry> - <entry>No</entry> - <entry>4</entry> - <entry>Stabilisce di quanti caratteri deve essere l'indentazione.</entry> - </row> - <row> - <entry>2</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry>(uno spazio)</entry> - <entry>Questo è il carattere usato per l'indentazione.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Questo modificatore effettua un'indentazione della stringa ad ogni riga, per - default di 4 caratteri. Come parametro opzionale si può specificare di quanti - caratteri deve essere l'indentazione. Si può indicare anche, come secondo - parametro opzionale, quale carattere usare per l'indentazione (usare "\t" - per il tabulatore). - </para> - <example> - <title>indent</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - Si usa per trasformare una variabile in lettere minuscole. - </para> - <example> - <title>lower</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|lower} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - Tutti i caratteri di interruzione di linea verranno convertiti in tag - <br /> nella variabile data. E' equivalente alla funzione PHP - nl2br(). - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Sun or rain expected\ntoday, dark tonight"); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|nl2br} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Sun or rain expected<br />today, dark tonight -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>Sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>E' l'espressione regolare da sostituire.</entry> - </row> - <row> - <entry>2</entry> - <entry>stringa</entry> - <entry>Sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>E' la stringa di testo da usare per la sostituzione.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Un 'trova e sostituisci' di una espressione regolare su una variabile. - Usare la sintassi per preg_replace() dal manuale PHP. - </para> - <example> - <title>regex_replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{* sostituisce i carriage return, i tab e gli a capo con uno spazio *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Infertility unlikely to -be passed on, experts say. -Infertility unlikely to be passed on, experts say. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.replace"> - <title>replace</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>Sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>E' la stringa di testo da sostituire.</entry> - </row> - <row> - <entry>2</entry> - <entry>stringa</entry> - <entry>Sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>E' la stringa di testo da usare per la sostituzione.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Una semplice ricerca e sostituzione su una variabile. - </para> - <example> - <title>replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|replace:"Garden":"Vineyard"} -{$articleTitle|replace:" ":" "} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.spacify"> - <title>spacify</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry><emphasis>uno spazio</emphasis></entry> - <entry>E' ciò che viene inserito fra i caratteri della variabile.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - spacify è un modo per inserire uno spazio fra tutti i caratteri di una variabile. - E' possibile, opzionalmente, passare un diverso carattere (o stringa) da inserire. - </para> - <example> - <title>spacify</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W e n t W r o n g i n J e t C r a s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ ^^W^^e^^n^^t^^ ^^W^^r^^o^^n^^g^^ ^^i^^n^^ ^^J^^e^^t^^ ^^C^^r^^a^^s^^h^^,^^ ^^E^^x^^p^^e^^r^^t^^s^^ ^^S^^a^^y^^. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.string.format"> - <title>string_format</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>stringa</entry> - <entry>Sì</entry> - <entry><emphasis>nessuno</emphasis></entry> - <entry>E' il formato da usare. (sprintf)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Questo è un modo di formattare stringhe, ad esempio per i numeri - decimali e altro. Utilizzare la sintassi della funzione PHP sprintf(). - </para> - <example> - <title>string_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('number', 23.5787446); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -23.5787446 -23.58 -24 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>booleano</entry> - <entry>No</entry> - <entry>true</entry> - <entry>Stabilisce se i tag saranno sostituiti con ' ' (true) o con '' (false)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Questo elimina i tag di markup, cioè fondamentalmente qualsiasi cosa compresa - fra < and >. - </para> - <example> - <title>strip_tags</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New -Kidney</font> from Dad she Hasn't Seen in <b>years</b>."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip_tags} {* equivale a {$articleTitle|strip_tags:true} *} -{$articleTitle|strip_tags:false} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - Sostituisce tutte le sequenze di spazi, a capo e tabulatori con - un singolo spazio o con la stringa fornita. - </para> - <note> - <title>Nota</title> - <para> - Se volete fare lo strip su blocchi di testo del template, usate - la <link linkend="language.function.strip">funzione strip</link>. - </para> - </note> - <example> - <title>strip</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:" "} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother of eight makes hole in one. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,118 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.truncate"> - <title>truncate</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>intero</entry> - <entry>No</entry> - <entry>80</entry> - <entry>Stabilisce a quanti caratteri effettuare il troncamento.</entry> - </row> - <row> - <entry>2</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry>...</entry> - <entry>Testo da aggiungere in fondo quando c'è troncamento.</entry> - </row> - <row> - <entry>3</entry> - <entry>booleano</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Stabilisce se troncare dopo una parola (false), o al carattere - esatto (true).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Effettua il troncamento di una variabile ad un certo numero di caratteri, - per default 80. Come secondo parametro opzionale potete specificare una - stringa di testo da mostrare alla fine se la variabile è stata troncata. - Questi caratteri non vengono conteggiati nella lunghezza della - stringa troncata. Per default, truncate cercherà di tagliare la stringa al - termine di una parola. Se invece volete effettuare il troncamento alla - lunghezza esatta in caratteri, passate il terzo parametro opzionale come true. - </para> - <example> - <title>truncate</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E... -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - Si usa per trasformare una variabile in maiuscolo. - </para> - <example> - <title>upper</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posizione del Parametro</entry> - <entry>Tipo</entry> - <entry>Obbligatorio</entry> - <entry>Default</entry> - <entry>Descrizione</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>intero</entry> - <entry>No</entry> - <entry>80</entry> - <entry>Stabilisce la larghezza della colonna.</entry> - </row> - <row> - <entry>2</entry> - <entry>stringa</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>Questa è la stringa usata per andare a capo.</entry> - </row> - <row> - <entry>3</entry> - <entry>booleano</entry> - <entry>No</entry> - <entry>false</entry> - <entry>Stabilisce se andare a capo dopo una parola intera (false), - o al carattere esatto (true).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Dispone una stringa su più righe usando come riferimento una certa - larghezza di colonna, per default 80. Come secondo parametro opzionale - potete specificare una stringa da usare per separare le righe (il - default è \n). Per default, wordwrap cercherà di andare a capo dopo - una parola intera. Se volete che vada a capo all'esatta larghezza in - caratteri, passate il terzo parametro opzionale come true. - </para> - <example> - <title>wordwrap</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years."); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br />\n"} - -{$articleTitle|wordwrap:30:"\n":true} -]]> - </programlisting> - <para> - Questo stamperà: - </para> - <screen> -<![CDATA[ -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br /> -from dad she hasn't seen in<br /> -years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-variables.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<chapter id="language.variables"> - <title>Variabili</title> - <para> - Smarty usa parecchi tipi diversi di variabili. Il tipo di variabile - dipende da quale simbolo si usa come prefisso (o come delimitatore). - </para> - <para> - In Smarty le variabili possono essere visualizzate direttamente oppure - usate come argomenti per gli attributi e i modificatori delle funzioni, - oppure in espressioni condizionali, ecc. Per stampare una variabile, - è sufficiente includerla fra i delimitatori in modo che sia l'unica - cosa contenuta fra essi. Esempi: - <programlisting> -<![CDATA[ -{$Name} - -{$Contacts[row].Phone} - -<body bgcolor="{#bgcolor#}"> -]]> - </programlisting> - </para> - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,173 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.assigned.variables"> - <title>Variabili valorizzate da PHP</title> - <para> - Le variabili valorizzate da PHP sono referenziate facendole precedere - da un segno di dollaro <literal>$</literal>. Anche le variabili - valorizzate internamente al template con la funzione <link - linkend="language.function.assign">assign</link> vengono visualizzate - in questo modo. - </para> - <example> - - <title>variabili valorizzate</title> - <programlisting> -<![CDATA[ -Hello {$firstname}, glad to see you could make it. -<br /> -Your last login was on {$lastLoginDate}. -]]> - </programlisting> - <para> - Questo visualizzerà: - </para> - <screen> -<![CDATA[ -Hello Doug, glad to see you could make it. -<br /> -Your last login was on January 11th, 2001. -]]> - </screen> - </example> - - <sect2 id="language.variables.assoc.arrays"> - <title>Array associativi</title> - <para> - Potete fare riferimento ad array associativi valorizzati da - PHP specificando l'indice dopo il punto '.' - </para> - <example> - <title>accesso ad array associativi</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty = new Smarty; -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234'))); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - dove il contenuto di index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$Contacts.fax}<br /> -{$Contacts.email}<br /> -{* ovviamente si possono usare anche array multidimensionali *} -{$Contacts.phone.home}<br /> -{$Contacts.phone.cell}<br /> -]]> - </programlisting> - <para> - questo visualizzerà: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.array.indexes"> - <title>Array con indici numerici</title> - <para> - Potete referenziare gli array con il loro indice, come in PHP. - </para> - <example> - <title>accesso agli array per indice numerico</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->assign('Contacts', - array('555-222-9876', - 'zaphod@slartibartfast.com', - array('555-444-3333', - '555-111-1234'))); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -{$Contacts[0]}<br /> -{$Contacts[1]}<br /> -{* anche qui si possono usare array multidimensionali *} -{$Contacts[2][0]}<br /> -{$Contacts[2][1]}<br /> -]]> - </programlisting> - <para> - Questo visualizzerà: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.objects"> - <title>Oggetti</title> - <para> - Le proprietà di oggetti valorizzate da PHP possono essere - referenziate indicando il nome della proprietà dopo il - simbolo '->' - </para> - <example> - <title>accesso alle proprietà degli oggetti</title> - <programlisting> -<![CDATA[ -name: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - Questo visualizzerà: - </para> - <screen> -<![CDATA[ -name: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.config.variables"> - <title>Variabili caricate da file di configurazione</title> - <para> - Le variabili caricate dai file di configurazione sono referenziate - racchiudendole fra due simboli cancelletto (#), oppure attraverso - la variabile <link - linkend="language.variables.smarty.config">$smarty.config</link>. - La seconda sintassi è utile per includerle in valori di attributi - indicati fra virgolette. - </para> - <example> - <title>variabili di configurazione</title> - <para> - foo.conf: - </para> - <programlisting> -<![CDATA[ -pageTitle = "This is mine" -bodyBgColor = "#eeeeee" -tableBorderSize = "3" -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" -]]> - </programlisting> - <para> - index.tpl: - </para> - <programlisting> -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - index.tpl: (sintassi alternativa) - </para> - <programlisting> -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - questo è l'output prodotto da entrambi gli esempi: - </para> - <screen> -<![CDATA[ -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </screen> - </example> - <para> - Le variabili dei file di configurazione non possono essere usate - fino a dopo che sono state caricate dal file che le contiene. - Questa procedura viene spiegata più avanti in questo documento, - in <command>config_load</command>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="language.variables.smarty"> - <title>La variabile riservata {$smarty}</title> - <para> - La variabile riservata {$smarty} può essere usate per accedere - a parecchie variabili speciali del template. Quella che segue - è la lista completa. - </para> - - <sect2 id="language.variables.smarty.request"> - <title>Variabili della richiesta HTTP</title> - <para> - Alle variabili get, post, cookies, server, - environment e session si può accedere come mostrato negli - esempi qui sotto: - </para> - <example> - <title>visualizzazione delle variabili request</title> - <programlisting> -<![CDATA[ -{* visualizza il valore di "page" dall'URL (GET) http://www.example.com/index.php?page=foo *} -{$smarty.get.page} - -{* visualizza la variabile "page" da un modulo (POST) *} -{$smarty.post.page} - -{* visualizza il valore del cookie "username" *} -{$smarty.cookies.username} - -{* visualizza la variabile del server "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* visualizza la variabile di ambiente "PATH" *} -{$smarty.env.PATH} - -{* visualizza la variabile di sessione PHP "id" *} -{$smarty.session.id} - -{* visualizza la variabile "username" dalla fusione di get/post/cookies/server/env *} -{$smarty.request.username} -]]> - </programlisting> - </example> - <note> - <para> - Per motivi storici si può accedere direttamente a {$SCRIPT_NAME}, - sebbene {$smarty.server.SCRIPT_NAME} sia la maniera consigliata - per ottenere questo valore. - </para> - </note> - </sect2> - - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - Si può accedere al timestamp corrente con {$smarty.now}. - Questo numero rappresenta il numero di secondi passati dalla - cosiddetta Epoch (1° gennaio 1970) e può essere passato - direttamente al modificatore date_format per la visualizzazione. - </para> - <example> - <title>uso di {$smarty.now}</title> - <programlisting> -<![CDATA[ -{* uso del modificatore date_format per mostrare data e ora attuali *} -{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - Può essere usato per accedere direttamente alle costanti PHP. - </para> - <example> - <title>uso di {$smarty.const}</title> - <programlisting> -<![CDATA[ -{$smarty.const._MY_CONST_VAL} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - Si può accedere all'output catturato attraverso il costrutto - {capture}..{/capture} con la variabile {$smarty}. Consultare - la sezione <link linkend="language.function.capture">capture</link> - per avere un esempio. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - La variabile {$smarty} può essere usata per referenziare le - variabili di configurazione caricate. {$smarty.config.foo} - è sinonimo di {#foo#}. Consultare la sezione - <link linkend="language.function.config.load">config_load</link> - per avere un esempio. - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}, {$smarty.foreach}</title> - <para> - La variabile {$smarty} può essere usata per referenziare - le proprietà dei loop 'section' e 'foreach'. Vedere la documentazione - di <link linkend="language.function.section">section</link> e - <link linkend="language.function.foreach">foreach</link>. - </para> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Questa variabile contiene il nome del template attualmente in fase di elaborazione. - </para> - </sect2> - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - Questa variabile contiene la versione di Smarty con cui il template è stato compilato. - </para> - </sect2> - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}</title> - <para> - Questa variabile è usata per stampare il delimitatore sinistro di Smarty in modo - letterale, cioè senza che venga interpretato come tale. Vedere anche - <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>. - </para> - </sect2> - <sect2 id="language.variables.smarty.rdelim"> - <title>{$smarty.rdelim}</title> - <para> - Questa variabile è usata per stampare il delimitatore destro di Smarty in modo - letterale, cioè senza che venga interpretato come tale. Vedere anche - <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>. - </para> - </sect2> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/getting-started.xml
Deleted
@@ -1,532 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<part id="getting.started"> - <title>Introduzione</title> - - <chapter id="what.is.smarty"> - <title>Cos'è Smarty?</title> - <para> - Smarty è un motore di template per PHP. Più specificatamente, fornisce un - modo semplice di separare la logica e il contenuto dell'applicazione dalla - sua presentazione. Questo concetto si può comprendere meglio in una situazione - in cui il programmatore ed il progettista dei template hanno ruoli diversi, - o nella maggior parte dei casi non sono la stessa persona. - </para> - <para> - Per esempio, - diciamo che dovete creare una pagina web che mostra un articolo di giornale. - Il titolo, il sommario, l'autore e il corpo dell'articolo sono gli elementi - del contenuto: non contengono informazioni su come saranno presentati. Vengono - passati a Smarty dall'applicazione, dopodiché il grafico modifica i template - e usa una combinazione di tag HTML e tag di template per formattare la - presentazione di questi elementi (tabelle HTML, colori di sfondo, dimensione - dei caratteri, fogli di stile ecc.). Un giorno il programmatore ha bisogno - di cambiare il sistema in cui viene ottenuto il contenuto dell'articolo (si - tratta di una modifica alla logica dell'applicazione). Questa modifica non - influisce sul lavoro del grafico, infatti il contenuto arriverà al template - esattamente uguale a prima. Allo stesso modo, se il grafico vuole ridisegnare - completamente il template, questo non richiederà modifica alla logica - applicativa. Quindi, il programmatore può fare modifice alla logica senza - bisogno di ristrutturare i template, e il grafico può modificare i template - senza rovinare la logica dell'applicazione. - </para> - <para> - Uno degli obiettivi progettuali di Smarty è la separazione della logica di - business dalla logica di presentazione. Questo significa che i template possono - contenere logica, a condizione che tale logica sia esclusivamente relativa alla - presentazione. Cose come includere un altro template, alternare i colori delle - righe di tabella, mostrare un dato in maiuscolo, ciclare su un array di dati - per visualizzarli, ecc., sono tutti esempi di logica di presentazione. Questo non - significa che Smarty forza una separazione fra la logica di business e quella di - presentazione. Smarty non può sapere che cosa è una cosa e cosa è l'altra, per - cui se mettete logica di business nel template sono affari vostri. Inoltre, - se <emphasis>non volete</emphasis> alcuna logica nei template, potete - sicuramente ottenere ciò riducendo il contenuto a solo testo e variabili. - </para> - <para> - Uno degli aspetti caratteristici di Smarty è la compilazione dei template. Questo - significa che Smarty legge i file dei template e crea script PHP a partire da - questi. Una volta creati, questi script vengono eseguiti da quel momento in poi: - di conseguenza si evita una costosa analisi dei template ad ogni richiesta, e - ogni template può avvantaggiarsi pienamente di strumenti per velocizzare - l'esecuzione come Zend Accelerator (<ulink url="&url.zend;">&url.zend;</ulink>) - o PHP Accelerator (<ulink url="&url.ion-accel;">&url.ion-accel;</ulink>). - </para> - <para> - Ecco alcune delle funzionalità di Smarty: - </para> - <itemizedlist> - <listitem> - <para> - E' estremamente veloce. - </para> - </listitem> - <listitem> - <para> - E' efficiente, perché è l'analizzatore di PHP a fare il "lavoro sporco". - </para> - </listitem> - <listitem> - <para> - Non c'è sovraccarico per l'analisi del template, che viene compilato una sola volta. - </para> - </listitem> - <listitem> - <para> - E' abbastanza furbo da saper ricompilare solo i template che sono stati modificati. - </para> - </listitem> - <listitem> - <para> - Potete creare <link linkend="language.custom.functions">funzioni personalizzate</link> - e <link linkend="language.modifiers">modificatori di variabili</link> personalizzati, - il che rende il linguaggio dei template estremamente estensibile. - </para> - </listitem> - <listitem> - <para> - La sintassi dei tag di delimitazione dei template è configurabile: potete usare - {}, {{}}, <!--{}-->, ecc. - </para> - </listitem> - <listitem> - <para> - I costrutti if/elseif/else/endif vengono passati al PHP, quindi la sintassi delle - espressioni condizionali può essere semplice o complicata a vostro piacimento. - </para> - </listitem> - <listitem> - <para> - E' consentito nidificare in maniera illimitata sezioni, test, ecc. - </para> - </listitem> - <listitem> - <para> - E' possibile incorporare direttamente codice PHP nei file di template, sebbene - non dovrebbe essercene bisogno (e nemmeno è raccomandato), essendo il motore - così personalizzabile. - </para> - </listitem> - <listitem> - <para> - Supporto nativo al caching - </para> - </listitem> - <listitem> - <para> - Scelta arbitraria dei sorgenti dei template - </para> - </listitem> - <listitem> - <para> - Funzioni personalizzate di gestione della cache - </para> - </listitem> - <listitem> - <para> - Architettura a plugin - </para> - </listitem> - </itemizedlist> - </chapter> - <chapter id="installation"> - <title>Installazione</title> - - <sect1 id="installation.requirements"> - <title>Requisiti</title> - <para> - Smarty necessita di un web server su cui gira PHP 4.0.6 o successivo. - </para> - </sect1> - - <sect1 id="installing.smarty.basic"> - <title>Installazione di base</title> - <para> - Installate i file delle librerie di Smarty che si trovano nella directory - /libs/ della distribuzione. Questi sono i file PHP che NON DOVETE modificare. - Sono condivisi da tutte le applicazioni e vengono modificati solo quando - passate ad una nuova versione di Smarty. - </para> - <example> - <title>File delle librerie di Smarty</title> - <screen> -<![CDATA[ -Smarty.class.php -Smarty_Compiler.class.php -Config_File.class.php -debug.tpl -/internals/*.php (tutti) -/plugins/*.php (tutti) -]]> - </screen> - </example> - <para> - Smarty usa una costante PHP chiamata <link - linkend="constant.smarty.dir">SMARTY_DIR</link> che contiene il path di sistema - della directory delle librerie di Smarty. Fondamentalmente, se la vostra applicazione - è in grado di trovare il file <filename>Smarty.class.php</filename>, non avete bisogno - di impostare SMARTY_DIR, in quanto Smarty la troverà da solo. Tuttavia, se - <filename>Smarty.class.php</filename> non si trova nel vostro include_path, o se non - fornite alla vostra applicazione un percorso assoluto per questo file, allora dovete - definire manualmente SMARTY_DIR. La costante SMARTY_DIR <emphasis>deve</emphasis> - contenere uno slash (/) finale. - </para> - <para> - Ecco come creerete un'istanza di Smarty nei vostri script PHP: - </para> - - <example> - <title>Creazione di un'istanza di Smarty</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <para> - Provate a lanciare lo script qui sopra. Se ricevete un errore che dice che - il file <filename>Smarty.class.php</filename> non si trova, dovete fare una - delle cose seguenti: - </para> - - <example> - <title>Fornire un percorso assoluto al file delle librerie</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('/usr/local/lib/php/Smarty/Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <example> - <title>Aggiungere la directory della libreria all'include_path di PHP</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Modificate il file php.ini, aggiungete la directory delle -// librerie di Smarty all'include_path e riavviate il server web. -// A questo punto il codice seguente dovrebbe funzionare: -require('Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <example> - <title>Impostare manualmente la costante SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -define('SMARTY_DIR', '/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty; -?> -]]> - </programlisting> - </example> - - <para> - Ora che i file delle librerie sono al loro posto, è ora di impostare le - directory di Smarty per la vostra applicazione. Smarty necessita di quattro - directory chiamate (per default) <filename class="directory">templates</filename>, - <filename class="directory">templates_c</filename>, <filename - class="directory">configs</filename> e <filename class="directory">cache</filename>. - Ciascuna di queste è definibile dalle proprietà - della classe Smarty <varname>$template_dir</varname>, - <varname>$compile_dir</varname>, <varname>$config_dir</varname>, e - <varname>$cache_dir</varname> rispettivamente. E' altamente raccomandato - impostare un insieme separato di queste directory per ogni applicazione che - userà Smarty. - </para> - <para> - Assicuratevi di conoscere il percorso della document root del vostro web - server. Nel nostro esempio, la document root è <filename - class="directory">/web/www.mydomain.com/docs/</filename>. - Le directory di Smarty vengono accedute solo dalle librerie di Smarty e mai - direttamente dal browser. Tuttavia, per evitare problemi di sicurezza, si - raccomanda di mettere queste directory <emphasis>al di fuori</emphasis> della - document root. - </para> - <para> - Per la nostra installazione di esempio, imposteremo l'ambiente di Smarty per - una applicazione di guest book. Abbiamo scelto un'applicazione al solo scopo - di avere una convenzione per il nome delle directory. Potete usare lo stesso - ambiente per qualsiasi applicazione, soltanto sostituendo "guestbook" con il - nome della vostra applicazione. Metteremo le nostre directory di Smarty sotto - <filename class="directory">/web/www.mydomain.com/smarty/guestbook/</filename>. - </para> - <para> - Avrete bisogno di almeno un file sotto la document root, e quello sarà lo script - a cui può accedere ilbrowser. Lo chiameremo <filename>index.php</filename>, - e lo metteremo in una sottodirectory della document root chiamata <filename - class="directory">/guestbook/</filename>. - </para> - - <note> - <title>Nota tecnica</title> - <para> - Conviene impostare il web server in modo che "index.php" possa essere identificato - come indice di default della directory, così se provate a richiedere - "http://www.example.com/guestbook/", lo script index.php verrà eseguito senza - "index.php" nell'URL. In Apache questo può essere impostato aggiungendo - "index.php" alla fine dell'impostazione DirectoryIndex (le voci vanno separate - con uno spazio l'una dall'altra). - </para> - </note> - - <para> - Diamo un'occhiata alla struttura dei file fino ad ora: - </para> - - <example> - <title>Esempio di struttura dei file</title> - <screen> -<![CDATA[ -/usr/local/lib/php/Smarty/Smarty.class.php -/usr/local/lib/php/Smarty/Smarty_Compiler.class.php -/usr/local/lib/php/Smarty/Config_File.class.php -/usr/local/lib/php/Smarty/debug.tpl -/usr/local/lib/php/Smarty/internals/*.php -/usr/local/lib/php/Smarty/plugins/*.php - -/web/www.example.com/smarty/guestbook/templates/ -/web/www.example.com/smarty/guestbook/templates_c/ -/web/www.example.com/smarty/guestbook/configs/ -/web/www.example.com/smarty/guestbook/cache/ - -/web/www.example.com/docs/guestbook/index.php -]]> - </screen> - </example> - - <para> - Smarty necessita del diritto di scrittura su <emphasis>$compile_dir</emphasis> e su - <emphasis>$cache_dir</emphasis>, quindi assicuratevi che l'utente del web - server possa scriverci sopra. Di solito si tratta dell'utente "nobody" e - gruppo "nobody". Per utenti di OS X, il default è utente "www" e gruppo "www". - Se usate Apache, potete guardare nel file httpd.conf (di solito in - "/usr/local/apache/conf/") per vedere quale utente e gruppo vengono usati. - </para> - - <example> - <title>Impostazione dei permessi sui file</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/smarty/guestbook/templates_c/ -chmod 770 /web/www.example.com/smarty/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/ -chmod 770 /web/www.example.com/smarty/guestbook/cache/ -]]> - </programlisting> - </example> - - <note> - <title>Nota tecnica</title> - <para> - chmod 770 vi garantisce una notevole sicurezza, in quanto consente solo - all'utente e al gruppo "nobody" l'accesso in lettura/scrittura alle directory. - Se volete consentire la lettura a chiunque (soprattutto per vostra comodità, - se volete guardare questi file), potete impostare invece 775. - </para> - </note> - - <para> - Ora dobbiamo creare il file index.tpl che Smarty caricherà. Si troverà nella - directory $template_dir. - </para> - - <example> - <title>Edit di /web/www.example.com/smarty/guestbook/templates/index.tpl</title> - <screen> -<![CDATA[ - -{* Smarty *} - -Hello, {$name}! -]]> - </screen> - </example> - - <note> - <title>Nota tecnica</title> - <para> - {* Smarty *} è un commento del template. Non è obbligatorio, ma è buona pratica - iniziare tutti i file di template con questo commento. Rende semplice - riconoscere il file, indipendentemente dalla sua estensione. Ad esempio, - un editor di testo potrebbe riconoscere il file ed attivare una particolare - evidenziazione della sintassi. - </para> - </note> - - <para> - Ora editiamo index.php. Creeremo un'istanza di Smarty, valorizzeremo una - variabile del template e faremo il display del file index.tpl. Nel nostro - ambiente di esempio, "/usr/local/lib/php/Smarty" si trova nell'include_path. - Assicuratevi che sia così anche per voi, oppure usate percorsi assoluti. - </para> - - <example> - <title>Edit di /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// caricamento delle librerie di Smarty -require('Smarty.class.php'); - -$smarty = new Smarty; - -$smarty->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <note> - <title>Nota tecnica</title> - <para> - Nell'esempio stiamo usando percorsi assoluti per tutte le directory - di Smarty. Se <filename - class="directory">/web/www.example.com/smarty/guestbook/</filename> fa - parte dell'include_path di PHP, questo non è necessario. Comunque, è più - efficiente e (per esperienza) meno soggetto ad errori usare percorsi - assoluti. Questo vi garantisce che Smarty prenda i file dalle directory - giuste. - </para> - </note> - - <para> - Ora richiamate il file <filename>index.php</filename> dal browser. - Dovreste vedere "Hello, Ned!" - </para> - <para> - Avete completato l'installazione base di Smarty! - </para> - </sect1> - <sect1 id="installing.smarty.extended"> - <title>Installazione avanzata</title> - - <para> - Questo è il seguito della <link - linkend="installing.smarty.basic">installazione di base</link>, siete pregati - di leggerla prima! - </para> - <para> - Un modo leggermente più flessibile di installare Smarty è di estendere la - classe e inizializzare il vostro ambiente di Smarty. Così, invece di impostare - ripetutamente i percorsi delle directory, riassegnare le stesse variabili ecc., - possiamo farlo in un unico punto. - Creiamo una nuova directory "/php/includes/guestbook/" e un file chiamato - <filename>setup.php</filename>. Nel nostro ambiente di esempio, "/php/includes" fa parte - dell'include_path. Assicuratevi che sia così anche per voi, oppure usate percorsi - assoluti. - </para> - - <example> - <title>Edit di /php/includes/guestbook/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// caricamento delle librerie di Smarty -require('Smarty.class.php'); - -// Il file setup.php è un buon punto dal quale caricare -// le librerie necessarie all'applicazione, quindi -// potete farlo qui. Ad esempio: -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function Smarty_GuestBook() - { - - // Costruttore della Classe. Questi dati vengono automaticamente impostati - // per ogni nuova istanza. - - $this->Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <para> - Ora modifichiamo il file index.php per usare setup.php: - </para> - - <example> - <title>Edit di /web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <para> - Come potete vedere, è molto semplice creare un'istanza di Smarty, basta usare - Smarty_GuestBook che inizializza automaticamente tutto ciò che serve alla - nostra applicazione. - </para> - - </sect1> - - </chapter> -</part> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/language-defs.ent
Deleted
@@ -1,6 +0,0 @@ -<!-- $Revision: 2043 $ --> - -<!ENTITY SMARTYManual "Manuale di Smarty"> -<!ENTITY SMARTYDesigners "Smarty Per Progettisti di Template"> -<!ENTITY SMARTYProgrammers "Smarty Per Programmatori"> -<!ENTITY Appendixes "Appendici">
View file
Smarty-3.1.13.tar.gz/documentation/it/language-snippets.ent
Deleted
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - -<!ENTITY note.parameter.merge '<note> - <title>Nota tecnica</title> - <para> - Il parametro <parameter>merge</parameter> rispetta le chiavi degli array, - quindi se fate un merge su due array a indici numerici rischiate che alcuni - valori vengano sovrascritti, o di avere indici in ordine non sequenziale. - Questo comportamento è diverso da quello della funzione array_merge() di PHP - che elimina le chiavi numeriche ed effettua una rinumerazione. - </para> -</note>'> - -<!ENTITY parameter.compileid '<para> - Come terzo parametro opzionale, potete passare un <parameter>compile_id</parameter>. - Questo nel caso in cui vogliate compilare versioni diverse dello stesso template, - oppure avere template diversi per lingue diverse. Un altro uso di compile_id - è quando usate più di una $template_dir ma soltanto una $compile_dir. - Impostate un <parameter>compile_id</parameter> diverso per ogni $template_dir, - altrimenti i template con lo stesso nome si sovrascriveranno a vicenda. - Potete anche impostare la variabile <link linkend="variable.compile.id">$compile_id</link> - una volta sola invece di passarla ogni volta che chiamate questa funzione. -</para>'>
View file
Smarty-3.1.13.tar.gz/documentation/it/livedocs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 2043 $ --> - -<!ENTITY livedocs.author 'Authors:<br />'> -<!ENTITY livedocs.editors 'Edited by:<br />'> -<!ENTITY livedocs.copyright 'Copyright © %s by %s'> -<!ENTITY livedocs.published 'Published on: %s'> -
View file
Smarty-3.1.13.tar.gz/documentation/it/preface.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <preface id="preface"> - <title>Prefazione</title> - <para> - Indubbiamente è una delle domande più frequenti sulle mailing list del - PHP: perché devo rendere i miei script PHP indipendenti dal layout? Se - è vero che PHP è conosciuto come "linguaggio di scripting incorporato in - HTML", dopo aver realizzato un paio di progetti che mescolano liberamente - PHP e HTML nasce l'idea che separare forma e contenuti sia una buona cosa. - Inoltre, in molte aziende i ruoli dei grafici (progettisti del layout) - e dei programmatori sono separati. La ricerca di una soluzione con i - template è quindi una conseguenza naturale. - </para> - <para> - Ad esempio, nella nostra azienda lo sviluppo di un applicazione procede - così: dopo che sono stati redatti i documenti con le specifiche richieste, - i progettisti delle interfacce creano dei modelli di interfaccia e li danno - ai programmatori. Questi implementano la logica di business in PHP e usano - i modelli di interfaccia per creare scheletri di template. A questo punto - il progetto passa al progettista HTML/creatore di layout per le pagine web, - che porta i template al loro massimo splendore. Il progetto potrebbe ancora - andare avanti e indietro un paio di volte fra programmazione e HTML. Quindi - è importante avere un buon supporto per i template, perché i programmatori - non vogliono avere a che fare con l'HTML e non vogliono che i progettisti - HTML facciano danni col codice PHP. I grafici hanno bisogno di supporto per - i file di configurazione, i blocchi dinamici e altri elementi di interfaccia, - ma non vogliono dover avere a che fare con le complicazioni del linguaggio - di programmazione. - </para> - <para> - Dando un'occhiata alle diverse soluzioni di template attualmente disponibili - per PHP, vediamo che la maggior parte di esse fornisce solo un modo rudimentale - per sostituire variabili nei template e hanno delle forme limitate di - funzionalità relative ai blocchi dinamici. Ma le nostre necessità erano un - po' maggiori di queste. Noi volevamo che i programmatori evitassero DEL TUTTO - di avere a che fare con l'HTML, ma questo era quasi inevitabile. Ad esempio, - se un grafico voleva alternare i colori di sfondo su un blocco dinamico, questo - doveva essere ottenuto preventivamente dal programmatore. Volevamo anche - che i grafici potessero usare i propri file di configurazione, ed importare - da questi le variabili nei template. La lista potrebbe continuare ancora. - </para> - <para> - Iniziammo così a scrivere una specifica per un motore di template verso la fine - del 1999. Dopo avere finito le specifiche, iniziammo a lavorare su un motore - scritto in C che, speravamo, avrebbe potuto essere incluso in PHP. Non solo - però ci scontrammo con molti complicati ostacoli tecnici, ma c'era anche un - dibattito molto acceso su cosa esattamente un motore di template avrebbe dovuto - fare e cosa no. Da questa esperienza decidemmo che il motore sarebbe stato scritto - in PHP come classe, in modo che ognuno potesse usarlo come gli pareva. Così - scrivemmo un motore che faceva proprio quello e <productname>SmartTemplate</productname> - venne alla luce (nota: questa classe non è mai stata pubblicata). Era una classe - che faceva quasi tutto quello che volevamo: sostituzione delle variabili, - supporto per l'inclusione di altri template, integrazione con i file di - configurazione, incorporazione del codice PHP, limitate funzionalità con - istruzioni 'if' e molti altri robusti blocchi dinamici che potevano essere - nidificati ripetutamente. Tutto questo veniva fatto con le espressioni regolari - e il codice che ne venne fuori era, per così dire, impenetrabile. Era anche - notevolmente lento nelle grosse applicazioni, per via di tutta l'analisi (parsing) - ed il lavoro sulle espressioni regolari che doveva fare ad ogni invocazione. - Il problema più grosso dal punto di vista di un programmatore era tutto il - lavoro necessario nello script PHP per creare ed elaborare i template ed i - blocchi dinamici. Come rendere tutto questo più semplice? - </para> - <para> - Così nacque la visione di quello che poi è diventato Smarty. Sappiamo quanto - è veloce PHP senza il sovraccarico dell'analisi dei template. Sappiamo anche - quanto il linguaggio possa apparire meticoloso ed estremamente noioso per il - grafico medio, e questo può essere mascherato con una sintassi di template - molto più semplice. Allora, perché non combinare i due punti di forza? Così - nacque Smarty... - </para> - </preface> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="advanced.features"> - <title>Funzioni avanzate</title> -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; - -&programmers.advanced-features.section-template-cache-handler-func; - -&programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="advanced.features.objects"> - <title>Oggetti</title> - <para> - Smarty consente di accedere agli oggetti PHP attraverso i template. Ci sono - due modi per farlo. Uno è registrare gli oggetti al template, quindi accedere - ad essi attraverso una sintassi simile a quella delle funzioni utente. L'altro - modo è di assegnare gli oggetti ai template ed accedere loro come ad una - qualsiasi variabile assegnata. Il primo metodo ha una sintassi del template - migliore. E' anche più sicuro, perché su un oggetto registrato potete impedire - l'accesso a certi metodi o proprietà. D'altra parte, su un oggetto registrato - non potete effettuare dei cicli o metterlo in un array di oggetti, ecc. - Il metodo che sceglierete dipenderà dalle vostre necessità, ma quando possibile - usate sempre il primo metodo, per mantenere la sintassi del template al massimo - della semplicità. - </para> - <para> - Se la security è abilitata, non è possibile accedere a metodi o funzioni private - (che cominciano con "_") dell'oggetto. Quando esistono un metodo e una proprietà - con lo stesso nome, verrà usato il metodo. - </para> - <para> - Potete impedire l'accesso a certi metodi e proprietà elencandoli in un array - come terzo parametro di registrazione. - </para> - <para> - Per default, i parametri passati agli oggetti attraverso i template sono - passati nello stesso modo in cui li leggono le funzioni utente. Il primo - parametro è un array associativo, e il secondo è l'oggetto smarty. Se - volete i parameteri passati uno alla volta per ogni argomento come nel - tradizionale passaggio di parametri per gli oggetti, impostate il quarto - parametro di registrazione a false. - </para> - <para> - Il quinto parametro opzionale ha effetto soltanto quando - <parameter>format</parameter> è <literal>true</literal> e - contiene una lista di metodi che devono essere trattati come - blocchi. Ciò significa che questi metodi hanno un tag di - chiusura nel template - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) e i - parametri passati al metodo hanno la stessa struttura di - quelli per le funzioni plugin per i blocchi. Questi metodi - quindi ricevono 4 parametri <parameter>$params</parameter>, - <parameter>$content</parameter>, <parameter>&$smarty</parameter> - e <parameter>&$repeat</parameter> e si comportano come - funzioni plugin per i blocchi. - </para> - <example> - <title>usare un oggetto registrato o assegnato</title> - <programlisting role="php"> -<![CDATA[ -<?php -// the object - -class My_Object { - function meth1($params, &$smarty_obj) { - return "this is my meth1"; - } -} - -$myobj = new My_Object; -// registriamo l'oggetto (sarà usato per riferimento) -$smarty->register_object("foobar",$myobj); -// se vogliamo impedire l'accesso a metodi o proprietà, elenchiamoli -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// se vogliamo usare il formato tradizionale per i parametri, passiamo un false -$smarty->register_object("foobar",$myobj,null,false); - -// Possiamo anche assegnare gli oggetti. Facciamolo per riferimento quando possibile. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> -+]]> - </programlisting> - <para> - Ed ecco come accedere all'oggetto in index.tpl: - </para> - <programlisting> -<![CDATA[ -{* accediamo all'oggetto registrato *} -{foobar->meth1 p1="foo" p2=$bar} - -{* possiamo anche assegnare l'output *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* accediamo all'oggetto assegnato *} -{$myobj->meth1("foo",$bar)} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="advanced.features.outputfilters"> - <title>Filtri di output</title> - <para> - Quando il template viene richiamato via display() o fetch(), è possibile - eseguire uno o più filtri sul suo output. Ciò è diverso dai postfiltri, - perché questi ultimi lavorano sul template compilato prima che venga - salvato su disco, mentre i filtri dioutput lavorano sull'output del - template quando viene eseguito. - </para> - - <para> - I filtri di output possono essere - <link linkend="api.register.outputfilter">registrati</link> o caricati - dalla directory plugins con la funzione - <link linkend="api.load.filter">load_filter()</link> oppure impostando la - variabile <link linkend="variable.autoload.filters">$autoload_filters</link>. - Smarty passerà l'output del template come primo argomento, e si aspetterà - che la funzione restituisca il risultato dell'esecuzione. - </para> - <example> - <title>uso di un filtro di output</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettiamo questo nell'applicazione -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// registriamo il filtro -$smarty->register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// ora ogni indirizzo email nell'output del template avrà una semplice -// protezione contro gli spambot -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="advanced.features.postfilters"> - <title>Postfiltri</title> - <para> - I postfiltri sui template sono funzioni PHP che vengono eseguite sui template - dopo la compilazione. I postfiltri possono essere - <link linkend="api.register.postfilter">registrati</link> oppure caricati - dalla directory plugins con la funzione <link - linkend="api.load.filter">load_filter()</link> o impostando la variabile - <link linkend="variable.autoload.filters">$autoload_filters</link>. - Smarty passerà il codice del template compilato come primo parametro, - e si aspetterà che la funzione restituisca il template risultante. - </para> - <example> - <title>uso di un postfiltro</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettiamo questo nell'applicazione -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Created by Smarty! -->\n\"; ?>\n".$tpl_source; -} - -// registriamo il postfiltro -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - <para> - Questo farà sì che il template compilato index.tpl appaia così: - </para> - <screen> -<![CDATA[ -<!-- Created by Smarty! --> -{* resto del template... *} -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<sect1 id="advanced.features.prefilters"> - <title>Prefiltri</title> - <para> - I prefiltri sui template sono funzioni PHP che vengono eseguite sui template - prima della compilazione. Sono utili per pre-processare i template allo - scopo di rimuovere commenti non desiderati, tenere d'occhio ciò che i - progettisti mettono nei template, ecc. I prefiltri possono essere - <link linkend="api.register.prefilter">registrati</link> oppure caricati - dalla directory plugins con la funzione <link - linkend="api.load.filter">load_filter()</link> o impostando la variabile - <link linkend="variable.autoload.filters">$autoload_filters</link>. - Smarty passerà il codice sorgente del template come primo parametro, - e si aspetterà che la funzione restituisca il codice sorgente risultante. - </para> - <example> - <title>uso di un prefiltro</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettiamo questo nell'applicazione -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace("/<!--#.*-->/U","",$tpl_source); -} - -// registriamo il prefiltro -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - <para> - Questo rimuoverà tutti i commenti dal sorgente del template. - </para> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="section.template.cache.handler.func"> - <title>Funzione di gestione della Cache</title> - <para> - Come alternativa all'uso del meccanismo di default per la cache basato - sui file, potete specificare una funzione personalizzata di gestione - che verrà usata per leggere, scrivere ed eliminare i file in cache. - </para> - <para> - Create una funzione nella vostra applicazione che Smarty userà come - gestore della cache. Impostate il nome di questa funzione nella variabile - di classe <link linkend="variable.cache.handler.func">$cache_handler_func</link>. - Smarty ora userà questa funzione per gestire i dati della cache. Il primo - parametro è l'azione, che può essere 'read', 'write' o 'clear'. Il - secondo parametro è l'oggetto Smarty. Il terzo parametro è il contenuto in - cache. In una 'write', Smarty passa il contenuto da mettere in cache in - questo parametro. In una 'read', Smarty si aspetta che la funzione prenda questo - parametro per riferimento e che lo riempia con i dati della cache. - In una 'clear', il parametro non viene usato, quindi passate una variabile - dummy. Il quarto parametro è il nome del file del template (necessario - per le read e le write), il quinto parametro è il cache_id (opzionale), e - il sesto è il compile_id (opzionale). - </para> - <para> - Nota: l'ultimo parametro ($exp_time) è stato aggiunto in Smarty-2.6.0. - </para> - <example> - <title>esempio con l'uso di MySQL per la cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - -esempio: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -il database mysql avrà questo formato: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // impostiamo i dati d'accesso al db - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // creiamo un cache id unico - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // leggiamo la cache dal database - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_content = gzuncompress($row["CacheContents"]); - } else { - $cache_content = $row["CacheContents"]; - } - $return = $results; - break; - case 'write': - // salviamo la cache sul database - - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - // eliminiamo i dati in cache - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // eliminiamo tutto - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - // errore, azione non prevista - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> -</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,246 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="template.resources"> - <title>Risorse</title> - <para> - I template possono arrivare da varie risorse. Quando fate la display o la - fetch di un template, o quando fate la include da un altro template, - fornite un tipo di risorsa, seguito dal percorso appropriato e dal nome - del template. Se non viene esplicitamente indicato un tipo di risorsa, - viene utilizzato il valore di <link - linkend="variable.default.resource.type">$default_resource_type</link>. - </para> - <sect2 id="templates.from.template.dir"> - <title>Template della $template_dir</title> - <para> - I template provenienti dalla $template_dir non hanno bisogno che - indichiate un tipo di risorsa, sebbene possiate indicare file: per - coerenza. Basta che forniate il percorso per il template che volete - usare, relativo alla directory radice $template_dir. - </para> - <example> - <title>uso dei template della $template_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // equivale al precedente -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file="index.tpl"} -{include file="file:index.tpl"} {* equivale al precedente *} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="templates.from.any.dir"> - <title>Template da qualsiasi directory</title> - <para> - I template che si trovano al di fuori della $template_dir richiedono - obbligatoriamente che indichiate il tipo di risorsa file: seguito - dal percorso assoluto e dal nome del template. - </para> - <example> - <title>uso dei template da qualsiasi directory</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display("file:/export/templates/index.tpl"); -$smarty->display("file:/path/to/my/templates/menu.tpl"); -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file="file:/usr/local/share/templates/navigation.tpl"} -]]> -</programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Percorsi su Windows</title> - <para> - Se usate una macchina Windows, i percorsi di solito comprendono - una lettera di drive (C:) all'inizio del percorso. Accertatevi - di usare "file:" nel path, per evitare conflitti di namespace e - ottenere i risultati voluti. - </para> - <example> - <title>uso di template da percorsi di Windows</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display("file:C:/export/templates/index.tpl"); -$smarty->display("file:F:/path/to/my/templates/menu.tpl"); -?> - -{* dall'interno di un template *} -{include file="file:D:/usr/local/share/templates/navigation.tpl"} -]]> -</programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>Template da altre risorse</title> - <para> - Potete ottenere template da qualsiasi risorsa alla quale sia - possibile accedere con PHP: database, socket, directory LDAP, e - così via. Potete farlo scrivendo una funzione plugin per le - risorse e registrandola a Smarty. - </para> - - <para> - Consultate la sezione <link linkend="plugins.resources">plugin - risorse</link> per maggiori informazioni sulle funzioni che - dovrete creare. - </para> - - <note> - <para> - Notate che non è possibile modificare il comportamento della risorsa - <literal>file</literal>, ma potete fornire una risorsa che legge i - template dal filesystem in maniera diversa registrandola con un altro - nome di risorsa. - </para> - </note> - <example> - <title>uso di risorse personalizzate</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettete queste funzioni da qualche parte nell'applicazione -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // fate qui le chiamate al database per ottenere il template - // e riempire $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // qui facciamo una chiamata al db per riempire $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // ipotizziamo che tutti i template siano sicuri - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // non usata per i template -} - -// register the resource name "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// uso della risorsa dallo script php -$smarty->display("db:index.tpl"); -?> -]]> - </programlisting> - <para> - And from within Smarty template: - </para> - <programlisting> -<![CDATA[ -{include file="db:/extras/navigation.tpl"} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Funzione di gestione dei template di default</title> - <para> - Potete specificare una funzione da usare per ottenere i contenuti - del template nel caso in cui non sia possibile leggerlo dalla - risorsa appropriata. Un uso possibile di questa funzione è di - creare al volo template che non esistono. - </para> - <example> - <title>uso della funzione di gestione dei template di default</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mettete questa funzione da qualche parte nell'applicazione - -function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) -{ - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - // create il file del template e restituite il contenuto. - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // non è un file - return false; - } -} - -// impostate il gestore di default -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - </programlisting> - </example> - </sect2> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="api.functions"> - <title>Methods</title> -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>append_by_ref</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per aggiungere valori al template per riferimento. - Se aggiungete una variabile per riferimento e poi cambiate il - suo valore, il template vedrà il valore modificato. Per gli - oggetti, append_by_ref() evita anche la copia in memoria - dell'oggetto aggiunto. Consultate il manuale di PHP sui riferimenti - alle variabili per una spiegazione approfondita. Se passate il - terzo parametro opzionale a true, il valore verrà fuso nell'array - corrente invece che aggiunto. - </para> - ¬e.parameter.merge; - <example> - <title>append_by_ref</title> - <programlisting role="php"> -<![CDATA[ -<?php -// aggiunta di coppie nome/valore -$smarty->append_by_ref("Name", $myname); -$smarty->append_by_ref("Address", $address); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-append.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.append"> - <refnamediv> - <refname>append</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per aggiungere un elemento ad un array. Se aggiungete un valore - stringa, verrà convertito in un elemento di array e aggiunto. Potete - passare esplicitamente coppie nome/valore, oppure array associativi - contenenti le coppie nome/valore. Se passate il terzo parametro opzionale - a true, il valore verrà fuso nell'array corrente invece che aggiunto. - </para> - ¬e.parameter.merge; - <example> - <title>append</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passaggio di coppie nome/valore -$smarty->append("Name", "Fred"); -$smarty->append("Address", $address); - -// passaggio di un array associativo -$smarty->append(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assign_by_ref</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per assegnare valori ai template per riferimento invece di farne una - copia. Consultate il manuale PHP sui riferimenti alle variabili per una - spiegazione. - </para> - <note> - <title>Nota tecnica</title> - <para> - Questo metodo si usa per assegnare valori ai template per riferimento. - Se assegnate una variabile per riferimento e poi cambiate il suo - valore, il template vedrà il valore modificato. Per gli oggetti, - assign_by_ref() evita anche la copia in memoria dell'oggetto - assegnato. Consultate il manuale PHP sui riferimenti alle variabili - per una spiegazione approfondita. - </para> - </note> - <example> - <title>assign_by_ref</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passaggio di coppie nome/valore -$smarty->assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-assign.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.assign"> - <refnamediv> - <refname>assign</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per assegnare valori ai template. Potete passare - esplicitamente coppie nome/valore, o array associativi - contenenti le coppie nome/valore. - </para> - <example> - <title>assign</title> - <programlisting role="php"> -<![CDATA[ -<?php -// passaggio di coppie nome/valore -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// passaggio di un array associativo -$smarty->assign(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clear_all_assign</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <para> - Annulla i valori di tutte le variabili assegnate. - </para> - <example> - <title>clear_all_assign</title> - <programlisting role="php"> -<![CDATA[ -<?php -// annulla tutte le variabili assegnate -$smarty->clear_all_assign(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clear_all_cache</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Annulla l'intera cache del template. Come parametro opzionale - potete fornire un'età minima in secondi che i file della - cache devono avere prima di essere eliminati. - </para> - <example> - <title>clear_all_cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// clear the entire cache -$smarty->clear_all_cache(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clear_assign</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Annulla il valore di una variabile assegnata in precedenza. - Può essere un valore singolo, o un array di valori. - </para> - <example> - <title>clear_assign</title> - <programlisting role="php"> -<![CDATA[ -<?php -// annullamento di una singola variabile -$smarty->clear_assign("Name"); - -// annullamento di più variabili -$smarty->clear_assign(array("Name", "Address", "Zip")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clear_cache</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Elimina la cache per un <parameter>template</parameter> specifico. Se - avete più cache per questo template, potete eliminarne una specifica - fornendo il <parameter>cache_id</parameter> come secondo parametro. - Potete anche passare un <parameter>compile_id</parameter> come terzo - parametro. Potete "raggruppare" i template in modo da rimuoverli in - gruppo. Leggete la <link linkend="caching">sezione sul caching</link> - per maggiori informazioni. Come quarto parametro opzionale potete fornire - un'età minima in secondi che il file di cache deve avere prima di essere - eliminato. - </para> - <example> - <title>clear_cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// eliminazione della cache per un template -$smarty->clear_cache("index.tpl"); - -// eliminazione di una particolare cache in un template a più cache -$smarty->clear_cache("index.tpl", "CACHEID"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clear_compiled_tpl</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Elimina la versione compilata dello specifico template indicato, - o tutti file di template compilati se non ne viene specificato uno. - Se passate un compile_id solo il template compilato relativo a questo - compile_id viene eliminato. Se passate un exp_time, solo i template - compilati con un'età maggiore di exp_time (in secondi) vengono - eliminati; per default tutti i template compilati vengono eliminati, - indipendentemente dalla loro età. Questa funzione è solo per uso - avanzato, normalmente non ne avrete bisogno. - </para> - <example> - <title>clear_compiled_tpl</title> - <programlisting role="php"> -<![CDATA[ -<?php -// eliminazione di uno specifico template -$smarty->clear_compiled_tpl("index.tpl"); - -// eliminazione di tutti i template compilati -$smarty->clear_compiled_tpl(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.clear.config"> - <refnamediv> - <refname>clear_config</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Elimina tutte le variabili di configurazione assegnate. Se viene - fornito un nome di variabile, soltanto quella variabile viene - eliminata. - </para> - <example> - <title>clear_config</title> - <programlisting role="php"> -<![CDATA[ -<?php -// eliminazione di tutte le variabili di configurazione -$smarty->clear_config(); - -// eliminazione di una variabile -$smarty->clear_config('foobar'); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.config.load"> - <refnamediv> - <refname>config_load</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Carica i dati del file di configurazione <parameter>file</parameter> e - li assegna al template. Funziona esattamente come la funzione del - template <link linkend="language.function.config.load">config_load</link>. - </para> - <note> - <title>Nota tecnica</title> - <para> - A partire da Smarty 2.4.0, le variabili dei template vengono - mantenute fra le diverse chiamate di fetch() e display(). Le - variabili di configurazione caricate con config_load() hanno - sempre uno scope globale. Anche i file di configurazione vengono - compilati per una esecuzione più veloce, e rispettano le - impostazioni di <link linkend="variable.force.compile">force_compile</link> - e <link linkend="variable.compile.check">compile_check</link>. - </para> - </note> - <example> - <title>config_load</title> - <programlisting role="php"> -<![CDATA[ -<?php -// caricamento delle variabili di configurazione e loro assegnazione al template -$smarty->config_load('my.conf'); - -// caricamento di una sezione -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-display.xml
Deleted
@@ -1,104 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.display"> - <refnamediv> - <refname>display</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Visualizza il template. Dovete fornire un tipo e percorso - corretti per la <link linkend="template.resources">risorsa del template</link>. - Come secondo parametro opzionale potete passare una cache id. - Consultate la <link linkend="caching">sezione sul caching</link> per - maggiori informazioni. - </para> - ¶meter.compileid; - <example> - <title>display</title> - <programlisting role="php"> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; -$smarty->caching = true; - -// faccio le chiamate al db solo se -// non esiste la cache -if(!$smarty->is_cached("index.tpl")) { - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// visualizzo l'output -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - </example> - <para> - Usate la sintassi delle <link - linkend="template.resources">risorse dei template</link> - per visualizzare file che si trovano al di fuori della - directory $template_dir. - </para> - <example> - <title>esempi di visualizzazione di risorse di template</title> - <programlisting role="php"> -<![CDATA[ -<?php -// percorso assoluto -$smarty->display("/usr/local/include/templates/header.tpl"); - -// percorso assoluto (equivale al precedente) -$smarty->display("file:/usr/local/include/templates/header.tpl"); - -// percorso assoluto windows (OBBLIGATORIO il prefisso "file:") -$smarty->display("file:C:/www/pub/templates/header.tpl"); - -// inclusione dalla risorsa di template di nome "db" -$smarty->display("db:header.tpl"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Questo metodo restituisce l'output del template invece di - visualizzarlo. Dovete fornire un tipo e percorso corretti per - la <link linkend="template.resources">risorsa del template</link>. - Come secondo parametro opzionale potete passare una cache id. - Consultate la <link linkend="caching">sezione sul caching</link> per - maggiori informazioni. - </para> - ¶meter.compileid; - <para> - <example> - <title>fetch</title> - <programlisting role="php"> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; - -$smarty->caching = true; - -// faccio le chiamate al db solo se -// non esiste la cache -if(!$smarty->is_cached("index.tpl")) { - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// catturo l'output -$output = $smarty->fetch("index.tpl"); - -// qui faccio qualcosa con $output - -echo $output; -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>get_config_vars</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce il valore della variabile di configurazione data, se è stata - caricata. Se non viene passato un parametro viene restituito un array - di tutte le variabili di configurazione caricate. - </para> - <example> - <title>get_config_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// recupero la variabile di configurazione del template 'foo' -$foo = $smarty->get_config_vars('foo'); - -// recupero tutte le variabili di configurazione caricate -$config_vars = $smarty->get_config_vars(); - -// diamo un'occhiata -print_r($config_vars); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>get_registered_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce un riferimento a un oggetto registrato. E' utile quando, - dall'interno di una funzione utente, avete bisogno di accedere - direttamente a un oggetto registrato. - </para> - <example> - <title>get_registered_object</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, &$smarty) -{ - if (isset($params['object'])) { - // ottengo il riferimento all'oggetto registrato - $obj_ref = &$smarty->get_registered_object($params['object']); - // $obj_ref ora è un riferimento all'oggetto - } -} -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>get_template_vars</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce il valore della variabile data assegnata al template. - Se non viene fornito il parametro viene restituito un array di - tutte le variabili assegnate. - </para> - <example> - <title>get_template_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// recupero la variabile assegnata al template 'foo' -$foo = $smarty->get_template_vars('foo'); - -// recupero tutte le variabili assegnate al template -$tpl_vars = $smarty->get_template_vars(); - -// diamo un'occhiata -print_r($tpl_vars); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.is.cached"> - <refnamediv> - <refname>is_cached</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce &true; se è presente una cache valida per questo template. - Funziona soltanto se <link linkend="variable.caching">caching</link> è - impostato a true. - </para> - <example> - <title>is_cached</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl")) { -// faccio le chiamate al database, assegno le variabili -} - -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - </example> - <para> - Potete passare anche una cache id come secondo parametro - opzionale, nel caso vogliate cache multiple per il template - dato. - </para> - <para> - Potete fornire un compile id come terzo parametro opzionale. - Se lo omettete, viene usato il valore della variabile persistente - <link linkend="variable.compile.id">$compile_id</link>. - </para> - <para> - Se non volete passare una cache id ma volete passare un compile - id dovete passare <literal>null</literal> come cache id. - </para> - <example> - <title>is_cached con template a cache multiple</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // faccio le chiamate al database, assegno le variabili -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - </programlisting> - </example> - - - <note> - <title>Nota tecnica</title> - <para> - Se <literal>is_cached</literal> restituisce true, in realtà carica - l'output in cache e lo memorizza internamente. Ogni chiamata - successiva a <link linkend="api.display">display()</link> o a - <link linkend="api.fetch">fetch()</link> restituirà questo output - memorizzato internamente, e non cercherà di ricaricare il file - della cache. Questo evita una situazione che potrebbe verificarsi - quando un secondo processo elimina la cache nell'intervallo fra - la chiamata a is_cached e quella a display, nell'esempio visto - prima. Questo significa anche che le chiamate a - <link linkend="api.clear.cache">clear_cache()</link> ed altre - modifiche fatte sulle impostazioni della cache potrebbero non avere - effetto dopo che <literal>is_cached</literal> ha restituito true. - </para> - </note> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.load.filter"> - <refnamediv> - <refname>load_filter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Questa funzione può essere usata per caricare un plugin filtro. - Il primo parametro specifica il tipo di filtro da caricare e può - avere uno di questi valori: 'pre', 'post' o 'output'. Il secondo - parametro specifica il nome del plugin filtro, ad esempio 'trim'. - </para> - <example> - <title>caricamento di plugin filtro</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->load_filter('pre', 'trim'); // carico un prefiltro di nome 'trim' -$smarty->load_filter('pre', 'datefooter'); // carico un altro prefiltro di nome 'datefooter' -$smarty->load_filter('output', 'compress'); // carico un filtro di output di nome 'compress' -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-block.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.block"> - <refnamediv> - <refname>register_block</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Si può usare questa funzione per registrare dinamicamente - funzioni plugin per i blocchi. Dovete fornire il nome della - funzione di blocco, seguito dalla funzione PHP da richiamare - che implementa tale funzione. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - <para> - <parameter>cacheable</parameter> e <parameter>cache_attrs</parameter> - possono essere omessi nella maggioranza dei casi. Consultate - <link linkend="caching.cacheable">Controllo della Cache per l'output dei Plugins</link> - per capire come usarli. - </para> - <example> - <title>register_block</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // faccio la traduzione di $content - return $translation; - } -} -?> -]]> - </programlisting> - <para> - dove il template è: - </para> - <programlisting> -<![CDATA[ -{* template *} -{translate lang="br"} -Hello, world! -{/translate} -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-compiler-function.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.compiler.function"> - <refnamediv> - <refname>register_compiler_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Si può usare questa funzione per registrare dinamicamente - una funzione plugin di compilazione. Dovete fornire il nome della - funzione di compilazione, seguito dalla funzione PHP da richiamare - che la implementa. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - <para> - <parameter>cacheable</parameter> può essere omesso - nella maggioranza dei casi. Consultate <link - linkend="caching.cacheable">Controllo della Cache per l'output dei Plugins</link> - per capire come usarlo. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-function.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Si può usare questa funzione per registrare dinamicamente - funzioni plugin per i template. Dovete fornire il nome della - funzione di template, seguito dalla funzione PHP da richiamare - che implementa tale funzione. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - <para> - <parameter>cacheable</parameter> e <parameter>cache_attrs</parameter> - possono essere omessi nella maggioranza dei casi. Consultate - <link linkend="caching.cacheable">Controllo della Cache per l'output dei Plugins</link> - per capire come usarli. - </para> - <example> - <title>register_function</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_function("date_now", "print_current_date"); - -function print_current_date($params) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} - -// ora potete usare questa funzione in Smarty per stampare la data attuale: {date_now} -// oppure {date_now format="%Y/%m/%d"} per formattarla. -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-modifier.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.modifier"> - <refnamediv> - <refname>register_modifier</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Potete usarla per registrare dinamicamente plugin modificatori. - Passate il nome del modificatore del template, seguito dalla funzione - PHP che lo implementa. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - <example> - <title>register_modifier</title> - <programlisting role="php"> -<![CDATA[ -<?php -// mappiamo la funzione PHP stripslashes a un modificatore Smarty. - -$smarty->register_modifier("sslash", "stripslashes"); - -// ora potete usare {$var|sslash} per togliere gli slash dalle variabili -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.object"> - <refnamediv> - <refname>register_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Serve a registrare un oggetto per poterlo usare nei template. - Consultate la <link linkend="advanced.features.objects">sezione oggetti</link> - del manuale per gli esempi. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-outputfilter.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per registrare dinamicamente filtri di output che - devono operare sull'output di un template prima che venga - visualizzato. Consultate i <link linkend="advanced.features.outputfilters">filtri - di output sui template</link> per maggiori informazioni su come - impostare una funzione di filtro di output. - </para> - <para> - Il parametro <parameter>function</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-postfilter.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per registrare dinamicamente filtri da eseguire - sui template dopo la compilazione ("postfiltri"). Consultate - <link linkend="advanced.features.postfilters">postfiltri sui - template</link> per maggiori informazioni su come impostare - una funzione postfiltro. - </para> - <para> - Il parametro <parameter>function</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-prefilter.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per registrare dinamicamente filtri da eseguire sui - template prima della compilazione ("prefiltri"). Consultate - <link linkend="advanced.features.prefilters">prefiltri sui - template</link> per maggiori informazioni su come impostare - funzioni prefiltro. - </para> - <para> - Il parametro <parameter>function</parameter>, contenente la funzione - callback, può avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> è il riferimento ad un - oggetto e <literal>$metodo</literal> è una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> è un nome di classe e - <literal>$metodo</literal> è un metodo statico della - classe. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Usatelo per registrare dinamicamente un plugin risorsa per Smarty. - Passate il nome della risorsa e l'array delle funzioni PHP che - la implementano. Consultate - <link linkend="template.resources">risorse per i template</link> - per maggiori informazioni su come impostare una funzione per - caricare i template. - </para> - <note> - <title>Nota tecnica</title> - <para> - Il nome di una risorsa deve avere un minimo di due caratteri di - lunghezza. Nomi di risorsa di un solo carattere verranno ignorati - ed usati come parte del percorso del file; ad es. - $smarty->display('c:/path/to/index.tpl'); - </para> - </note> - <para> - L'array di funzioni php <parameter>resource_funcs</parameter> - deve avere 4 o 5 elementi. Con 4 elementi, questi saranno le - funzioni callback per le rispettive funzioni "source", "timestamp", - "secure" e "trusted" della risorsa. Con 5 elementi, il primo - deve essere il riferimento all'oggetto oppure il nome della - classe relativi all'oggetto o alla classe che implementano - la risorsa, mentre i 4 elementi successivi saranno i nomi - dei metodi che implementano "source", "timestamp", - "secure" e "trusted". - </para> - <example> - <title>register_resource</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_resource("db", array("db_get_template", -"db_get_timestamp", -"db_get_secure", -"db_get_trusted")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.template.exists"> - <refnamediv> - <refname>template_exists</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Questa funzione verifica se il template specificato esiste. Accetta - il percorso del template sul filesystem oppure una stringa che - identifica la risorsa del template. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-trigger-error.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Questa funzione può essere usata per produrre in output un messaggio - di errore attraverso Smarty. Il parametro <parameter>level</parameter> - può contenere uno dei valori usati per la funzione PHP trigger_error(), - cioè E_USER_NOTICE, E_USER_WARNING, ecc. Per default il suo valore è - E_USER_WARNING. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-block.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente una funzione plugin - per i blocchi. Passate in <parameter>name</parameter> il - nome della funzione di blocco. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-compiler-function.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente una funzione di compilazione. - Passate in <parameter>name</parameter> il nome della funzione. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-function.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente una funzione plugin per - i template. Passate il nome della funzione. - </para> - <example> - <title>unregister_function</title> - <programlisting role="php"> -<![CDATA[ -<?php -// non vogliamo che i progettisti del template abbiano accesso al filesystem - -$smarty->unregister_function("fetch"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-modifier.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.modifier"> - <refnamediv> - <refname>unregister_modifier</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente plugin modificatori. Passate - il nome del modificatore del template da eliminare. - </para> - <example> - <title>unregister_modifier</title> - <programlisting role="php"> -<![CDATA[ -<?php -// non vogliamo che i progettisti del template eliminino i tag dal contenuto - -$smarty->unregister_modifier("strip_tags"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregister_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare un oggetto. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-outputfilter.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un filtro di output. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-postfilter.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un postfiltro. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-prefilter.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un prefiltro. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un plugin risorsa. Passate - il nome della risorsa. - </para> - <example> - <title>unregister_resource</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->unregister_resource("db"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="api.variables"> - <title>Variabili</title> - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - Se ci sono alcuni filtri che volete caricare ad ogni chiamata del - template, potete specificarli usando questa variabile e Smarty li - caricherà automaticamente. La variabile è un array associativo - dove le chiavi sono i tipi di filtro ed i valori sono array con i - nomi dei filtri. Ad esempio: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - </programlisting> - </informalexample> - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - Questo è il nome della directory dove vengono salvati i file - della cache. Per default è "./cache", che significa che Smarty - cercherà la directory della cache nella stessa directory dello - script php in esecuzione. Potete anche usare una funzione - personalizzata di gestione della cache, che ignorerà questa - impostazione. - </para> - <note> - <title>Nota tecnica</title> - <para> - Questa impostazione deve essere un percorso relativo o assoluto. - include_path non viene usato per i file in scrittura. - </para> - </note> - <note> - <title>Nota tecnica</title> - <para> - E' sconsigliato mettere questa directory sotto la - document root del web server. - </para> - </note> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - Potete fornire una funzione personalizzata di gestione dei file - della cache invece di usare il metodo incorporato che usa la - $cache_dir. Consultate la sezione <link - linkend="section.template.cache.handler.func">funzione di - gestione della cache</link> per i dettagli. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - E' la durata in secondi della validità di un file di cache. Una volta che - questo tempo è scaduto, la cache verrà rigenerata. $caching deve essere - impostato a "true" perché $cache_lifetime abbia significato. Il valore - -1 forza la cache a non scadere mai. Il valore 0 farà sì che la cache - venga sempre rigenerata (è utile solo in fase di test, per disabilitare - il caching un metodo più efficiente è impostare <link - linkend="variable.caching">$caching</link> a false.) - </para> - <para> - Se <link linkend="variable.force.compile">$force_compile</link> è - abilitato, i file della cache verranno rigenerati ogni volta, disabilitando - in effetti il caching. Potete eliminare tutti i file della cache - con la funzione <link - linkend="api.clear.all.cache">clear_all_cache()</link>, oppure singoli - file (o gruppi di file) con la funzione <link - linkend="api.clear.cache">clear_cache()</link>. - </para> - <note> - <title>Nota tecnica</title> - <para> - Se volete dare a certi template un particolare tempo di vita della cache, - potete farlo impostando <link linkend="variable.caching">$caching</link> = 2, - quindi dando il valore che vi interessa a $cache_lifetime subito prima - di chiamare display() o fetch(). - </para> - </note> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.cache.modified.check"> - <title>$cache_modified_check</title> - <para> - Se è impostato a true, Smarty rispetterà l'header If-Modified-Since - spedito dal client. Se il timestamp del file in cache non è - cambiato dall'ultima visita, verrà inviato un header - "304 Not Modified" invece del contenuto. Questo funziona solo sul - contenuto in cache senza tag <command>insert</command>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.caching"> - <title>$caching</title> - <para> - Questa variabile dice a Smarty se mettere in cache oppure no l'output - dei template. Per default è impostata a 0, o disabilitata. Se i vostri - template generano contenuto ridondante, è consigliabile attivare il - caching. Ne deriveranno significativi guadagni di prestazioni. Potete - anche avere più di una cache per lo stesso template. I valori 1 e 2 - abilitano il caching. 1 dice a Smarty di usare l'attuale variabile - $cache_lifetime per determinare se la cache è scaduta. Il valore 2 dice - a Smarty di usare il valore di cache_lifetime del momento in cui la - cache è stata generata. In questo modo potete impostare il cache_lifeteime - subito prima di caricare il template per avere un controllo granulare - su quando quella particolare cache scadrà. Consultate anche <link - linkend="api.is.cached">is_cached</link>. - </para> - <para> - Se $compile_check è abilitato, il contenuto in cache verrà rigenerato - quando i file del template o di configurazione che fanno parte di questa - cache vengono modificati. Se è abilitato $force_compile, il contenuto - in cache verrà rigenerato ogni volta. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - Ad ogni chiamata dell'applicazione PHP, Smarty controlla se il template - corrente è stato modificato (cioè se il timestamp è cambiato) dall'ultima - volta che è stato compilato. Se è cambiato, Smarty ricompila il template. - Se il template non è stato mai compilato, sarà compilato indipendentemente - da questa impostazione. Per default questa variabile è impostata a true. - Una volta che l'applicazione viene messa in produzione (quind i template - non cambieranno più), il passo di compile_check non è più necessario. - Assicuratevi di impostare $compile_check a "false" per massimizzare le - prestazioni. Notate che se impostate questo valore a "false" e un file - di template viene modificato, *non* vedrete la modifica fino a quando - il template non viene ricompilato. Se sono abilitati il caching e il - compile_check, i file della cache verranno rigenerati quando un file di - template o un file di configurazione fra quelli interessati vengono - modificati. Consultate <link - linkend="variable.force.compile">$force_compile</link> o <link - linkend="api.clear.compiled.tpl">clear_compiled_tpl</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - Questo è il nome della directory dove vengono messi i template - compilati. Per default è "./templates_c", che significa che - Smarty cercherà la directory di compilazione sotto la stessa - directory dello script php in esecuzione. - </para> - <note> - <title>Nota tecnica</title> - <para> - Questa impostazione deve essere un percorso relativo - o assoluto. include_path non viene usata per i file - in scrittura. - </para> - </note> - <note> - <title>Nota tecnica</title> - <para> - E' sconsigliato mettere questa directory sotto la - document root del web server. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Identificatore persistente di compilazione. In alternativa a passare - lo stesso compile_id ad ogni chiamata di funzione, potete impostare - questa variabile ed il suo valore verrà usato implicitamente da quel - momento in poi. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Specifica il nome della classe del compilatore che Smarty userà - per compilare i template. Il default è 'Smarty_Compiler'. Solo per - utenti avanzati. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - Se impostato a true, le variabili dei file di configurazione con i valori - on/true/yes e off/false/no verranno convertite automaticamente in valori - booleani. In questo modo potete usare questi valori nei template in questo - modo: {if #foobar#} ... {/if}. Se foobar è on, true o yes, l'istruzione {if} - verrà eseguita. true per default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - Questa è la directory usata per memorizzare i file di configurazione - usati nei template. Il default è "./configs2, che significa - che Smarty cercherà la directory dei file di configurazione - nella stessa directory dello script php in esecuzione. - </para> - <note> - <title>Nota tecnica</title> - <para> - E' sconsigliato mettere questa directory sotto la - document root del web server. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-config-fix-newlines.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.fix.newlines"> - <title>$config_fix_newlines</title> - <para> - Se impostato a true, i caratteri di 'a capo' mac e dos (\r e \r\n) nei - file di configurazione vengono convertiti a \n quando sono analizzati. - true per default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - Se è impostato a true, le variabili lette dai file di configurazione si - sovrascriveranno l'una con l'altra. Diversamente, verranno messe in un - array. E' utile se volete memorizzare array di dati nei file di configurazione, - è sufficiente elencare più volte ogni elemento. true per default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - Se impostato a true, le sezioni nascoste (col nome che inizia con un - punto) dei file di configurazione possono essere lette dai template. - Tipicamente lascerete questo valore a false, in modo da poter memorizzare - dati sensibili nei file di configurazione (ad esempio parametri per - l'accesso a un database) senza preoccuparvi che vengano caricati sul - template. false per default. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-debug-tpl.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.debug.tpl"> - <title>$debug_tpl</title> - <para> - Questo è il nome del file di template usato per la console di debugging. - Per default, il nome è debug.tpl ed il file si trova nella <link - linkend="constant.smarty.dir">SMARTY_DIR</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - Questa variabile consente modi alternativi per abilitare il - debugging. NONE significa che non sono consentiti metodi - alternativi. URL significa che quando la parola chiave - SMARTY_DEBUG viene trovata nella QUERY_STRING, il debugging - viene abilitato per quella chiamata dello script. Se - $debugging è true, questo valore viene ignorato. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - Questa variabile abilita la <link - linkend="chapter.debugging.console">console di debugging</link>. - La console è una finestra javascript che vi informa sui template - inclusi e sulle variabili valorizzate per la pagina attuale. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - E' un array di modificatori da applicare implicitamente ad ogni variabile - in un template. Ad esempio, per fare l'escape HTML ad ogni variabile per - default, usate array('escape:"htmlall"'); per rendere una variabile - esente dai modificatori di default, passatele lo speciale modificatore - "smarty" con il parametro "nodefaults", così: {$var|smarty:nodefaults}. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - Dice a Smarty che tipo di risorsa usare implicitamente. Il valore di - default è 'file', il che significa che $smarty->display('index.tpl'); - e $smarty->display('file:index.tpl'); hanno identico significato. - Leggete il capitolo <link linkend="template.resources">risorse</link> - per i dettagli. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - Questa funzione viene chiamata quando Smarty non riesce a - caricare un template. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - Quando a questa variabile viene dato un valore non-null, - il suo valore viene usato come livello di error_reporting - di php all'interno di display() e fetch(). Quando il debugging - è abilitato questo valore è ignorato e il livello degli - errori viene lasciato invariato. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - Questo valore forza Smarty a (ri)compilare i template ad - ogni chiamata. Questa impostazione prevale su $compile_check. - Per default è disabilitata. E' utile per lo sviluppo ed il - debug. Non dovrebbe essere mai usata in un ambiente di produzione. - Se il caching è abilitato, i file della cache verranno rigenerati - ogni volta. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - E' il delimitatore di sinistra usato dal linguaggio dei template. - Per default è "{". - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - Questa variabile dice a Smarty come gestire il codice PHP - incorporato nei template. Ci sono quattro possibili impostazioni: - il default è SMARTY_PHP_PASSTHRU. Notate che questa variabile - NON ha effetto sul codice php che si trova fra i tag <link - linkend="language.function.php">{php}{/php}</link>. - </para> - <itemizedlist> - <listitem><para>SMARTY_PHP_PASSTHRU - Smarty stampa il contenuto - dei tag così com'è.</para></listitem> - <listitem><para>SMARTY_PHP_QUOTE - Smarty trasforma i tag in entità - html.</para></listitem> - <listitem><para>SMARTY_PHP_REMOVE - Smarty rimuove i tag dal - template.</para></listitem> - <listitem><para>SMARTY_PHP_ALLOW - Smarty esegue il codice PHP.</para></listitem> - </itemizedlist> - <note> - <para> - Incorporare codice PHP nei template è altamente sconsigliato. Usate - invece le <link linkend="language.custom.functions">funzioni utente</link> - o i <link linkend="language.modifiers">modificatori</link>. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - Queste sono le directory dove Smarty andrà a cercare i plugin di cui - ha bisogno. Il default è "plugins" sotto la SMARTY_DIR. Se fornite - un percorso relativo, Smarty cercherà prima di tutto sotto la - SMARTY_DIR, poi sotto la directory corrente, infine sotto ogni directory - compresa nell'include_path di PHP. - </para> - <note> - <title>Nota tecnica</title> - <para> - Per migliori prestazioni, non costringete Smarty a cercare le plugins_dir - usando l'include path di PHP. Usate un percorso assoluto, o relativo - alla SMARTY_DIR o alla directory corrente. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-request-use-auto-globals.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.request.use.auto.globals"> - <title>$request_use_auto_globals</title> - <para> - Specifica se Smarty deve usare gli array di php $HTTP_*_VARS[] - ($request_use_auto_globals=false che è il valore di default) o - $_*[] ($request_use_auto_globals=true). Ciò ha effetto sui template - che usano {$smarty.request.*}, {$smarty.get.*} ecc. . - Attenzione: Se impostate $request_use_auto_globals a true, <link - linkend="variable.request.vars.order">$request_vars_order</link> - non ha effetto, e viene usato il valore di configurazione di - php <literal>gpc_order</literal>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-request-vars-order.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.request.vars.order"> - <title>$request_vars_order</title> - <para> - L'ordine in cui sono registrate le variabili della richiesta http, - simile a variables_order in php.ini. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - E' il delimitatore di destra usato dal linguaggio dei template. - Per default è "}". - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-secure-dir.xml
Deleted
@@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.secure.dir"> - <title>$secure_dir</title> - <para> - E' un array contenente tutte le directory locali che sono considerate - sicure. {include} e {fetch} lo usano quando $security è abilitata. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-security-settings.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.security.settings"> - <title>$security_settings</title> - <para> - Sono valori usati per modificare o specificare le impostazioni di - sicurezza quando $security è abilitata. Queste sono le impostazioni - possibili: - </para> - <itemizedlist> - <listitem><para>PHP_HANDLING - true/false. Se è impostato a true, - l'impostazione di $php_handling non viene verificata per la - sicurezza.</para></listitem> - <listitem><para>IF_FUNCS - E' un array con i nomi delle funzioni PHP - consentite nelle istruzioni IF.</para></listitem> - <listitem><para>INCLUDE_ANY - true/false. Se impostata a true, qualsiasi - template può essere incluso dal filesystem, indipendentemente dalla - lista di $secure_dir.</para></listitem> - <listitem><para>PHP_TAGS - true/false. Se impostato a true, è consentito - l'uso dei tag {php}{/php} nei template.</para></listitem> - <listitem><para>MODIFIER_FUNCS - E' un array coi nomi delle funzioni PHP - di cui è consentito l'uso come modificatori delle variabili.</para></listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-security.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.security"> - <title>$security</title> - <para> - E' una variabile booleana, per default è false. Security viene - utile per situazioni in cui avete affidato la modifica dei template - a terzi (ad esempio via ftp) di cui non vi fidate completamente, - e volete quindi ridurre il rischio di compromettere la sicurezza - del sistema attraverso il linguaggio del template. Attivare security - comporta l'applicazione delle seguenti regole al linguaggio del - template, a parte ciò che può essere modificato con $security_settings: - </para> - <itemizedlist> - <listitem><para>Se $php_handling è impostato a SMARTY_PHP_ALLOW viene - implicitamente modificato a SMARTY_PHP_PASSTHRU</para></listitem> - <listitem><para>Non sono ammesse funzioni PHP nelle istruzioni IF, - ad esclusione di quelle specificate in $security_settings</para></listitem> - <listitem><para>I file dei template possono essere inclusi solo dalle - directory elencate nell'array $secure_dir</para></listitem> - <listitem><para>I file locali possono essere letti con {fetch} solo dalle - directory elencate nell'array $secure_dir</para></listitem> - <listitem><para>I tag {php}{/php} non sono consentiti</para></listitem> - <listitem><para>Non è possibile usare funzioni PHP come modificatori, - ad esclusione di quelle specificate in $security_settings</para></listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - Questo è il nome della directory di default dei template. Se - non ne indicate una quando includete i file, verranno cercati - qui. Per default è "./templates", che significa che Smarty - cercherà la directory dei template nella stessa directory dello - script php in esecuzione. - </para> - <note> - <title>Nota tecnica</title> - <para> - E' sconsigliato mettere questa directory sotto la - document root del web server. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - $trusted_dir viene usata solo quando $security è abilitata. E' un array - di tutte le directory che sono considerate affidabili. Le directory - affidabili sono quelle dalle quali possono essere eseguiti script php - direttamente dai template con <link - linkend="language.function.include.php">{include_php}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> - Impostate questo valore a false se il vostro ambiente PHP non consente - la creazione di sottodirectory da parte di Smarty. Le sottodirectory sono - più efficienti, quindi usatele se potete. - </para> - <note> - <title>Nota tecnica</title> - <para> - A partire da Smarty-2.6.2 <varname>use_sub_dirs</varname> per default vale false. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/caching.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="caching"> - <title>Caching</title> - <para> - Il caching si usa per velocizzare una chiamata a <link - linkend="api.display">display()</link> o <link - linkend="api.fetch">fetch()</link> salvando il suo output - su un file. Se una versione della chiamata è disponibile - in cache, viene visualizzata questa invece di rigenerare - l'output. Il caching può velocizzare tremendamente le cose, - specialmente con i template che richiedono maggiori tempi - di elaborazione. Se l'output di display() o fetch() viene - salvato in cache, un file della cache può concettualmente - essere composto di diversi file di template, di configurazione ecc. - </para> - <para> - Siccome i template sono dinamici, è importante stare attenti - a ciò che mettete in cache e per quanto tempo. Ad esempio, se - state visualizzando la home page del vostro sito, i cui contenuti - non cambiano troppo spesso, può essere utile mettere in cache - questa pagina per un'ora o più. D'altra parte, se state - visualizzando una pagina con una mappa del tempo atmosferico che - viene aggiornata di minuto in minuto, non avrebbe senso mettere - in cache questa pagina. - </para> -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.cacheable"> - <title>Mettere in Cache l'output dei Plugin</title> - <para> - A partire dai plugin di Smarty-2.6.0 la possibilità di mettere in - cache il loro output può essere dichiarata nel momento in cui li si - registrano. Il terzo parametro da passare a register_block, - register_compiler_function e register_function si chiama - <parameter>$cacheable</parameter> e per default vale true, il che - equivale al comportamento dei plugin di Smarty nelle versioni - precedenti alla 2.6.0 - </para> - - <para> - Quando si registra un plugin con $cacheable=false il plugin viene - chiamato tutte le volte che la pagina viene visualizzata, anche se - la pagina stessa arriva dalla cache. La funzione del plugin funziona - così un poco come una funzione <link linkend="plugins.inserts">insert</link>. - </para> - - <para> - Al contrario di ciò che avviene in <link - linkend="language.function.insert">{insert}</link>, gli attributi passati - al plugin non vengono, per default, messi in cache. E' possibile però - dichiarare che devono essere messi in cache con il quarto parametro - <parameter>$cache_attrs</parameter>. <parameter>$cache_attrs</parameter> - è un array di nomi di attributi che devono essere messi in cache, in - modo che la funzione del plugin ottenga il valore dell'attributo qual - era al momento in cui la pagina è stata salvata sulla cache ogni volta - che la cache stessa viene riletta. - </para> - - <example> - <title>Evitare che l'output di un plugin vada in cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // leggiamo $obj dal db e lo assegnamo al template... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -Time Remaining: {remain endtime=$obj->endtime} -]]> - </programlisting> - <para> - Il numero di secondi che mancano alla scadenza di $obj cambia ad - ogni visualizzazione della pagina, anche se questa è in cache. - Siccome l'attributo endtime è in cache, l'oggetto deve essere - letto dal database solo quando la pagina viene scritta sulla cache, - ma non nelle richieste successive. - </para> - </example> - - <example> - <title>Evitare che un intero blocco di template vada in cache</title> - <programlisting role="php"> -<![CDATA[ -index.php: - -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - dove index.tpl è: - </para> - <programlisting> -<![CDATA[ -Page created: {"0"|date_format:"%D %H:%M:%S"} - -{dynamic} - -Now is: {"0"|date_format:"%D %H:%M:%S"} - -... qui facciamo altre cose ... - -{/dynamic} -]]> - </programlisting> - </example> - - <para> - Quando ricaricate lapagina vedrete che le due date sono diverse. Una - è "dinamica", l'altra è "statica". Potete mettere qualsiasi cosa fra - {dynamic} e {/dynamic}, sicuri che non verrà messa in cache col resto - della pagina. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/caching/caching-groups.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.groups"> - <title>Gruppi di Cache</title> - <para> - Potete raggruppare le cache in modo più elaborato impostando gruppi - di cache_id. Per fare questo separate ogni sottogruppo con una barra - verticale "|" nel valore di cache_id. Potete usare tutti i sottogruppi - che volete. - </para> - <para> - Potete pensare ai gruppi di cche come ad una gerarchia di directory. - Ad esempio, un gruppo di cache "a|b|c" può essere concepito come la - struttura di directory "/a/b/c". clear_cache(null,"a|b|c") equivale a - cancellare i file "/a/b/c/*". clear_cache(null,"a|b") sarebbe come - cancellare i file "/a/b/*". Se specificate un compile_id, ad esempio - clear_cache(null,"a|b","foo"), sarà considerato come un ulteriore - sottogruppo "a/b/c/foo/". Se specificate un nome di template, ad - esempio clear_cache("foo.tpl","a|b|c"), Smarty tenterà di cancellare - "/a/b/c/foo.tpl". NON POTETE cancellare un template specifico sotto - più gruppi di cache, ad es. "a/b/*/foo.tpl"; i gruppi di cache funzionano - SOLO da sinistra a destra. Dovrete raggruppare i vostri template sotto - un singolo sottogruppo di cache per poterli cancellare tutti insieme. - </para> - <para> - I gruppi di cache non vanno confusi con la gerarchia della vostra directory - dei template: i gruppi di cache infatti non sanno qual è la struttura - dei template. Ad esempio, se avete una struttura di template tipo - "themes/blu/index.tpl" e volete avere la possibilità di cancellare - tutti i file di cache per il tema "blue", dovrete creare un gruppo di - cache che riproduce la struttura dei template, ad esempio - display("themes/blue/index.tpl","themes|blue"), e poi eliminarli - con clear_cache(null,"themes|blue"). - </para> - <example> - <title>gruppi di cache_id</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// eliminiamo tutti i file di cache che hanno "sports|basketball" come primi due gruppi -$smarty->clear_cache(null,"sports|basketball"); - -// eliminiamo tutti i file di cache che hanno "sports" come primo gruppo di cache -// questo include "sports|basketball", nonché "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -// eliminiamo il file di cache foo.tpl con "sports|basketball" come cache_id -$smarty->clear_cache("foo.tpl","sports|basketball"); - - -$smarty->display('index.tpl',"sports|basketball"); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.multiple.caches"> - <title>Cache multiple per una pagina</title> - <para> - Potete avere più file di cache per una singola chiamata a display() - o fetch(). Diciamo che una chiamata a display('index.tpl') può avere - diversi output in base a una certa condizione, e volete cache separate - per ciascun caso. Potete farlo passando alla funzione un cache_id come - secondo parametro. - </para> - <example> - <title>passare un cache_id a display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Qui sopra passiamo la variabile $my_cache_id a display() come - cache_id. Per ogni valore di $my_cache_id verrà generato un file - di cache per index.tpl. In questo esempio, "article_id" proveniva - dall'URL e viene usato come cache_id. - </para> - <note> - <title>Nota tecnica</title> - <para> - Siate molto prudenti quando passate valori ricevuti da un client (come - un browser) a Smarty (o qualsiasi applicazione PHP). Sebbene nell'esempio - qui sopra l'uso di article_id proveniente dall'URL sembri molto comodo, - potrebbe avere brutte conseguenze. Il valore di cache_id viene usato per - creare una directory sul filesystem, quindi se l'utente passa un valore - molto lungo come article_id, o se scrive uno script che spedisce velocemente - valori casuali, potremmo avere dei problemi sul server. Assicuratevi di - validare qualsiasi dato ricevuto in input prima di usarlo. In questo caso, - potreste sapere che article_id ha una lunghezza di 10 caratteri, è composto - solo di caratteri alfanumerici, e deve essere un article_id valido sul - database. Verificatelo! - </para> - </note> - <para> - Assicuratevi di passare lo stesso valore di cache_id come - secondo parametro a <link linkend="api.is.cached">is_cached()</link> e - <link linkend="api.clear.cache">clear_cache()</link>. - </para> - <example> - <title>passare un cache_id a is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // Non c'è un file di cache disponibile, assegnamo le variabili qui. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - Potete eliminare tutti i file di cache per un determinato cache_id - passando null come primo parametro di clear_cache(). - </para> - <example> - <title>eliminare tutte le cache per un determinato cache_id</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// eliminiamo tutti i file di cache con "sports" come cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -?> -]]> - </programlisting> - </example> - <para> - In questo modo, potete "raggruppare" i vostri file di cache dando - loro lo stesso valore di cache_id. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,192 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="caching.setting.up"> - <title>Impostare il Caching</title> - <para> - La prima cosa da fare è abilitare il caching. Per farlo bisogna - impostare <link linkend="variable.caching">$caching</link> = true (o 1.) - </para> - <example> - <title>abilitare il caching</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Col caching abilitato, la chiamata alla funzione display('index.tpl') - causa la normale generazione del template, ma oltre a questo salva - una copia dell'output in un file (la copia in cache) nella <link - linkend="variable.cache.dir">$cache_dir</link>. Alla chiamata successiva - di display('index.tpl'), verrà usata la copia in cache invece di - generare di nuovo il template. - </para> - <note> - <title>Nota tecnica</title> - <para> - I file nella $cache_dir vengono chiamati con nomi simili al nome del - template. Sebbene abbiano l'estensione ".php", in realtà non sono - script php eseguibili. Non editateli! - </para> - </note> - <para> - Ogni pagina in cache ha un tempo di vita limitato, determinato da - <link linkend="variable.cache.lifetime">$cache_lifetime</link>. Il - valore di default è 3600 secondi, cioè 1 ora. Dopo questo tempo, la - cache viene rigenerata. E' possibile dare a file singoli il proprio - tempo di scadenza impostando $caching = 2. Consultate la documentazione - di <link linkend="variable.cache.lifetime">$cache_lifetime</link> per i dettagli. - </para> - <example> - <title>impostare cache_lifetime per singolo file di cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // la durata è per singolo file - -// impostiamo il cache_lifetime per index.tpl a 5 minuti -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// impostiamo il cache_lifetime per home.tpl a 1 ora -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTA: l'impostazione seguente di $cache_lifetime non funzionerà -// con $caching = 2. La scadenza per home.tpl è stata già impostata -// a 1 ora, e non rispetterà più il valore di $cache_lifetime. -// La cache di home.tpl scadrà sempre dopo 1 ora. -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Se <link linkend="variable.compile.check">$compile_check</link> è abilitato, - tutti i file di template e di configurazione che sono coinvolti nel file - della cache vengono verificati per vedere se sono stati modificati. Se qualcuno - dei file ha subito una modifica dopo che la cache è stata generata, il file - della cache viene rigenerato. Questo provoca un piccolo sovraccarico, quindi, - per avere prestazioni ottimali, lasciate $compile_check a false. - </para> - <example> - <title>abilitare $compile_check</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Se <link linkend="variable.force.compile">$force_compile</link> è abilitato, - i file della cache verranno sempre rigenerati. Di fatto questo disabilita - il caching. $force_compile normalmente serve solo per scopi di debug, un - modo più efficiente di disabilitare il caching è di impostare <link - linkend="variable.caching">$caching</link> = false (o 0.) - </para> - <para> - La funzione <link linkend="api.is.cached">is_cached()</link> può essere - usata per verificare se un template ha una cache valida oppure no. Se avete - un template in cache che necessita di qualcosa come una lettura da un - database, potete usare questa funzione per saltare quella parte. - </para> - <example> - <title>uso di is_cached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // Non c'è cache disponibile, assegnamo le variabili qui. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - Potete mantenere parti di una pagina dinamiche con la funzione del template - <link linkend="language.function.insert">insert</link>. Diciamo che l'intera - pagina può essere messa in cache eccetto un banner che viene visualizzato - in fondo a destra nella page. Usando la funzione insert per il banner, potete - tenere questo elemento dinamico all'interno del contenuto in cache. Consultate - la documentazione su <link linkend="language.function.insert">insert</link> per - dettagli ed esempi. - </para> - <para> - Potete eliminare tutti i file della cache con la funzione <link - linkend="api.clear.all.cache">clear_all_cache()</link>, o singoli - file della cache (o gruppi di file) con la funzione <link - linkend="api.clear.cache">clear_cache()</link>. - </para> - <example> - <title>eliminare la cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// eliminiamo tutti i file della cache -$smarty->clear_all_cache(); - -// eliminiamo solo la cache di index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="plugins"> - <title>Estendere Smarty con i Plugin</title> - <para> - La versione 2.0 ha introdotto l'architettura dei plugin, che - viene usata per quasi tutte le funzionalità personalizzabili - di Smarty. Queste comprendono: - <itemizedlist spacing="compact"> - <listitem><simpara>funzioni</simpara></listitem> - <listitem><simpara>modificatori</simpara></listitem> - <listitem><simpara>funzioni di blocco</simpara></listitem> - <listitem><simpara>funzioni di compilazione</simpara></listitem> - <listitem><simpara>prefiltri</simpara></listitem> - <listitem><simpara>postfiltri</simpara></listitem> - <listitem><simpara>filtri di output</simpara></listitem> - <listitem><simpara>risorse</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - Con l'eccezione delle risorse, viene preservata la compatibilità - retroattiva con il vecchio modo di registrare le funzioni di gestione - attraverso l'API register_*. Se non usavate questa interfaccia, ma - modificavate direttamente le variabili di classe <literal>$custom_funcs</literal>, - <literal>$custom_mods</literal> e altre, ora dovrete modificare i - vostri script per usare l'API oppure convertire in plugin le vostre - funzionalità personalizzate. - </para> - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,118 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.block.functions"><title>Funzioni sui blocchi</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - <paramdef>boolean <parameter>&$repeat</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Le funzioni sui blocchi sono funzioni che appaiono nel template nella - forma: {func} .. {/func}. In altre parole, racchiudono un blocco del - template e lavorano sul contenuto di questo blocco. Le funzioni di blocco - hanno la precedenza sulle funzioni personalizzate con lo stesso nome, - il che significa che non potete avere una funzione personalizzata {func} - ed allo stesso tempo una funzione di blocco {func} .. {/func}. - </para> - <para> - Per default la funzione di implementazione viene chiamata due volte - da Smarty: una per il tag di apertura, e una per il tag di chiusura - (guardate sotto <literal>&$repeat</literal> per capire come - modificare questo comportamento). - </para> - <para> - Solo il tag di apertura della funzione di blocco può avere attributi. - Tutti gli attributi passati dal template alle funzioni relative sono - contenuti in <parameter>$params</parameter> nella forma di array - associativo. Potete accedere a questi valori, ad esempio, con - <varname>$params['start']</varname>. Gli attributi del tag di apertura - sono accessibili alla funzione anche in fase di elaborazione del tag - di chiusura. - </para> - <para> - Il valore di <parameter>$content</parameter> dipende se la funzione - viene chiamata per il tag di apertura o per quello di chiusura. Nel - caso del tag di apertura, sarà <literal>null</literal>, mentre nel - caso del tag di chiusura sarà il contenuto del blocco di template. - Notate che il blocco sarà già stato elaborato da Smarty, quindi ciò - che riceverete sarà l'output del template, non il sorgente. - </para> - - <para> - Il parametro <parameter>&$repeat</parameter> è passato alla - funzione per riferimento e le fornisce la possibilità di controllare - quante volte il blocco viene visualizzato. Per default - <parameter>$repeat</parameter> è <literal>true</literal> alla prima - chiamata della funzione (al tag di apertura), e <literal>false</literal> - per tutte le chiamate successive (al tag di chiusura). - Ogni volta che la funzione termina con il valore di - <parameter>&$repeat</parameter> a true, il contenuto compreso - fra {func} e {/func} viene valorizzato e la funzione viene chiamata - di nuovo con il nuovo contenuto del blocco nel parametro - <parameter>$content</parameter>. - - </para> - - <para> - Se avete funzioni di blocco nidificate, potete scoprire qual è il - blocco genitore attraverso la variabile - <varname>$smarty->_tag_stack</varname>. Fate un var_dump() su - questa variabile e la struttura dovrebbe apparirvi evidente. - </para> - <para> - Vedere anche: - <link linkend="api.register.block">register_block()</link>, - <link linkend="api.unregister.block">unregister_block()</link>. - </para> - <example> - <title>funzione di blocco</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // fate qui una traduzione intelligente di $content - return $translation; - } -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.compiler.functions"><title>Funzioni di Compilazione</title> - <para> - Le funzioni di compilazione sono chiamate solo durante la compilazione - del template. Sono utili per inserire nel template codice PHP o - contenuto statico dipendente dal momento (ad es. l'ora). Se esistono una - funzione di compilazione e una funzione personalizzata registrate sotto - lo stesso nome, la funzione di compilazione ha la precedenza. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Alla funzione di compilazione vengono passati due parametri: la stringa - che rappresenta l'argomento tag - fondamentalmente, tutto dal nome della - funzione fino al delimitatore finale, e l'oggetto Smarty. Ci si aspetta - che la funzione restituisca il codice PHP da inserire nel template - compilato. - </para> - <para> - See also - <link linkend="api.register.compiler.function">register_compiler_function()</link>, - <link linkend="api.unregister.compiler.function">unregister_compiler_function()</link>. - </para> - <example> - <title>semplice funzione di compilazione</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> -</programlisting> - <para> - Questa funzione può essere chiamata dal template in questo modo: - </para> - <programlisting> -{* questa funzione viene eseguita solo al momento della compilazione *} -{tplheader} - </programlisting> - <para> - Il codice PHP risultante nel template compilato sarà qualcosa di questo tipo: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.functions"><title>Funzioni per i template</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Tutti gli attributi passati dai template alle funzioni relative sono - contenuti in <parameter>$params</parameter> nella forma di un array - associativo. - </para> - <para> - L'output (valore di ritorno) della funzione sostituirà il tag della - funzione nel template (ad esempio con la funzione <function>fetch</function>). - In alternativa, la funzione potrebbe semplicemente svolgere qualche - altro compito, senza produrre output (funzione <function>assign</function>). - </para> - <para> - Se la funzione deve assegnare variabili al template, o usare qualche - altra funzionalità di Smarty, può usare per questo l'oggetto - <parameter>$smarty</parameter> che le viene passato. - </para> - <para> - Vedere anche: - <link linkend="api.register.function">register_function()</link>, - <link linkend="api.unregister.function">unregister_function()</link>. - </para> - <para> - <example> - <title>plugin funzione con output</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> -</programlisting> - </example> - </para> - <para> - che può essere usata così nel template: - </para> - <programlisting> -Question: Will we ever have time travel? -Answer: {eightball}. - </programlisting> - <para> - <example> - <title>funzione plugin senza output</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - if (empty($params['var'])) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - </programlisting> - </example> - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.howto"> - <title>Come funzionano i Plugin</title> - <para> - I plugin vengono sempre caricati a richiesta. Solo gli specifici - modificatori, funzioni, risorse ecc. invocati negli script dei - template verranno caricati. Inoltre, ogni plugin viene caricato - una volta sola, anche se avete diverse istanze di Smarty in esecuzione - nella stessa richiesta. - </para> - <para> - I pre/postfiltri e i filtri di output sono casi un po' speciali. Siccome - non vengono menzionati nei template, devono essere registrati o caricati - esplicitamente attraverso le funzioni di interfaccia prima che il - template venga eseguito. L'ordine in cui vengono eseguiti più filtri - dello stesso tipo dipende dall'ordine in cui sono stati registrati - o caricati. - </para> - <para> - La <link linkend="variable.plugins.dir">$plugins_dir</link> può - essere una stringa che contiene un percorso oppure un array - che ne contiene diversi. Per installare un plugin, è sufficiente - installarlo in una delle directory e Smarty lo userà automaticamente. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.inserts"><title>Insert</title> - <para> - I plugin Insert sono usati per implementare le funzioni invocate dai - tag <link linkend="language.function.insert"><command>insert</command></link> - nel template. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Il primo parametro è un array associativo di attributi - passati all'insert. - </para> - <para> - Ci si aspetta che la funzione insert restituisca il risultato che - sarà posizionato in luogo del tag <command>insert</command> nel - template. - </para> - <example> - <title>plugin insert</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.modifiers"><title>Modificatori</title> - <para> - I modificatori sono piccole funzioni che vengono applicate ad - una variabile del template prima che venga visualizzata o usata - in qualche altro contesto. I modificatori possono essere - concatenati. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - Il primo parametro passato al plugin modificatore è il valore sul - quale il modificatore stesso deve operare. Gli altri parametri - possono essere opzionali, a seconda del tipo di operazione che - deve essere eseguita. - </para> - <para> - Il modificatore deve restituire il risultato della sua esecuzione. - </para> - <para> - Vedere anche - <link linkend="api.register.modifier">register_modifier()</link>, - <link linkend="api.unregister.modifier">unregister_modifier()</link>. - </para> - <example> - <title>un semplice plugin modificatore</title> - <para> - Questo plugin fondamentalmente crea un sinonimo per una delle - funzioni incorporate in PHP. Non prevede parametri aggiuntivi. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> -</programlisting> - </example> - <para></para> - <example> - <title>un plugin modificatore più complesso</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.naming.conventions"> - <title>Convenzioni per i nomi</title> - <para> - I file e le funzioni dei plugin devono seguire delle convenzioni - molto specifiche per i loro nomi, per poter essere trovati da - Smarty. - </para> - <para> - I file dei plugin devono essere chiamati come segue: - <blockquote> - <para> - <filename> - <replaceable>tipo</replaceable>.<replaceable>nome</replaceable>.php - </filename> - </para> - </blockquote> - </para> - <para> - Dove <literal>tipo</literal> è uno di questi tipi di plugin: - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - <para> - E <literal>nome</literal> deve essere un identificatore valido - (solo lettere, numeri e underscore). - </para> - <para> - Alcuni esempi: <literal>function.html_select_date.php</literal>, - <literal>resource.db.php</literal>, - <literal>modifier.spacify.php</literal>. - </para> - <para> - Le funzioni plugin all'interno dei file dei plugin devono essere - chiamate come segue: - <blockquote> - <para> - <function>smarty_<replaceable>tipo</replaceable>_<replaceable>nome</replaceable></function> - </para> - </blockquote> - </para> - <para> - Il significato di <literal>tipo</literal> e <literal>nome</literal> sono - gli stessi visti prima. - </para> - <para> - Smarty produrrà i messaggi di errore appropriati se il file del plugin - di cui ha bisogno non viene trovato, o se il file o la funzione hanno - un nome non appropriato. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.outputfilters"><title>Filtri di Output</title> - <para> - I plugin filtro di output lavorano sull'output di un template, dopo - che il template è stato caricato ed eseguito, ma prima che l'output - che venga visualizzato. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Il primo parametro passato alla funzione filtro è l'output del - template che deve essere elaborato, e il secondo parametro è - l'istanza di Smarty che sta chiamando il plugin. Ci si aspetta che - questo effettui l'elaborazione e restituisca il risultato. - </para> - <example> - <title>plugin filtro di output</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.prefilters.postfilters"> - <title>Prefiltri/Postfiltri</title> - <para> - I plugin prefiltro e postfiltro sono molto simili concettualmente; - la differenza sta nel momento della loro esecuzione. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - I prefiltri si usano per processare il codice sorgente del template immediatamente - prima della compilazione. Il primo parametro passato alla funzione - prefiltro è il sorgente del template, eventualmente modificato da qualche - altro prefiltro. Ci si aspetta che il plugin restituisca il sorgente - modificato. Notate che questo sorgente non viene salvato da nessuna - parte, è usato solo per la compilazione. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - I postfiltri si usanno per processare l'output compilato del template - (il codice PHP) immediatamente dopo la compilazione stessa, ma prima - che il template compilato venga salvato sul filesystem. Il primo - parametro passato alla funzione postfiltro è il codice compilato, - eventualmente modificato da altri postfiltri. Ci si aspetta che il - plugin restituisca la versione modificata di questo codice. - </para> - <example> - <title>plugin prefiltro</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>plugin postfilro</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.resources"><title>Risorse</title> - <para> - I plugin risorsa vanno considerati un modo generico di fornire sorgenti - di template o script PHP a Smarty. Alcuni esempi di risorse: - database, directory LDAP, memorie condivisse, socket, e così via. - </para> - - <para> - Per ogni tipo di risorsa deve essere registrato un totale di 4 funzioni. - Ogni funzione riceverà la risorsa richiesta come primo parametro e l'oggetto - Smarty come ultimo parametro. Il resto dei parametri dipende dalla - funzione. - </para> - - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - Lo scopo della prima funzione è di recuperare la risorsa. Il suo - secondo parametro è una variabile passata per riferimento nella - quale memorizzare il risultato. Ci si aspetta che la funzione - restituisca <literal>true</literal> se è riuscita a recuperare - la risorsa e <literal>false</literal> nel caso opposto. - </para> - - <para> - Lo scopo della seconda funzione è di indicare il momento dell'ultima - modifica effettuata sulla risorsa richiesta (nel formato timestamp - UNIX). Il secondo parametro è una variabile passata per riferimento - nella quale memorizzare il timestamp. Ci si aspetta che la funzione - restituisca <literal>true</literal> se è riuscita a determinare il - timestamp, e <literal>false</literal> nel caso opposto. - </para> - - <para> - La terza funzione deve restituire <literal>true</literal> o - <literal>false</literal>, a seconda che la risorsa richiesta sia - sicura o no. Questa funzione è usata solo per risorse di template ma - deve ancora essere definita. - </para> - - <para> - La quarta funzione deve restituire <literal>true</literal> o - <literal>false</literal>, a seconda che la risorsa richiesta sia - considerata affidabile o no. Questa funzione è usata solo per script - PHP richiesti con i tag <command>include_php</command> o - <command>insert</command> con l'attributo <structfield>src</structfield>. - Comunque, deve ancora essere definita per le risorse di template. - </para> - <para> - Vedere anche - <link linkend="api.register.resource">register_resource()</link>, - <link linkend="api.unregister.resource">unregister_resource()</link>. - </para> - <example> - <title>plugin risorsa</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // fate qui le chiamate al db per ottenere il template - // e popolare $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // fate qui la chiamata al db per popolare $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // diciamo che tutti i template sono sicuri - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // non si usa per i template -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <sect1 id="plugins.writing"> - <title>Scrivere Plugin</title> - <para> - I plugin possono essere caricati automaticamente dal filesystem - da parte di Smarty, oppure possono essere registrati a runtime - attraverso le funzioni register_*. Possono anche essere - eliminati con le funzioni unregister_*. - </para> - <para> - Per i plugin che vengono registrati a runtime, i nomi delle - funzioni non devono necessariamente rispettare le convenzioni - di denominazione. - </para> - <para> - Se un plugin dipende da qualche funzionalità fornita da un altro - plugin (come nel caso di alcuni plugin incorporati in Smarty), il - modo corretto di caricare il plugin necessario è questo: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -require_once $smarty->_get_plugin_filepath('function', 'html_options'); -?> -]]> - </programlisting> - <para> - Come regola generale, l'oggetto Smarty viene sempre passato ai - plugin come ultimo parametro (con due eccezioni: ai modificatori - non viene passato l'oggetto Smarty, mentre ai blocchi viene passato - <parameter>&$repeat</parameter> dopo l'oggetto Smarty, per - mantenere la compatibilità retroattiva con le vecchie versioni - di Smarty). - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/it/programmers/smarty-constants.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - <chapter id="smarty.constants"> - <title>Costanti</title> - - <sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - Questo dovrebbe essere il percorso completo sul sistema dei file - di classe di Smarty. Se la costante non è definita, Smarty cercherà - di determinare automaticamente il valore appropriato. Se è definita, - il percorso deve terminare con una barra. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// imposta il percorso della directory di Smarty -define("SMARTY_DIR","/usr/local/lib/php/Smarty/"); - -require_once(SMARTY_DIR."Smarty.class.php"); -?> -]]> - </programlisting> - </example> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/appendixes/bugs.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="bugs"> - <title>バグ</title> - <para> - Smarty の最新ディストリビューションに付属している - <filename>BUGS</filename> ファイルを読むか、web サイトをチェックしてください。 - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/appendixes/resources.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="resources"> - <title>リソース</title> - <para>Smarty のホームページは - <ulink url="&url.smarty;">&url.smarty;</ulink> - です。 - </para> - - <itemizedlist> - - <listitem><para> - メーリングリストに参加するには、メールを - <literal>&ml.general.sub;</literal> に送信してください。 - メーリングリストのアーカイブは <ulink url="&url.ml.archive;">ここ</ulink> で閲覧できます。 - </para></listitem> - - <listitem><para> - 掲示板は <ulink url="&url.forums;">&url.forums;</ulink> です。 - </para></listitem> - - <listitem><para> - wiki の場所は <ulink url="&url.wiki;">&url.wiki;</ulink> です。 - </para></listitem> - - <listitem><para> - チャットに参加したい場合は <ulink url="&url.wiki;">irc.freenode.net#smarty</ulink> へ。 - </para></listitem> - - <listitem><para> - FAQ は <ulink url="&url.faq_1;">こちら</ulink> と <ulink url="&url.faq_2;">こちら</ulink> - にあります。 - </para></listitem> - - </itemizedlist> - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/appendixes/tips.xml
Deleted
@@ -1,454 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="tips"> - <title>ヒント & 裏ワザ</title> - <para> - </para> - <sect1 id="tips.blank.var.handling"> - <title>空白の変数の扱い</title> - <para> - テーブルの背景が適切に機能するように <literal>&nbsp;</literal> - を出力する場合のように、空白の変数が何も出力しない代わりに - デフォルトの値を出力したい場合があるかもしれません。 - そのために多くの人は - <link linkend="language.function.if"><varname>{if}</varname></link> - {if}ステートメントを使用すると思いますが、Smartyによる変数の修飾子 - <link linkend="language.modifier.default"><varname>default</varname> - </link> を使った簡略な方法があります。 - <note> - <para><quote>Undefined variable</quote> というエラーが表示されるのは、 - PHP の <ulink url="&url.php-manual;error_reporting"><varname>error_reporting()</varname></ulink> - レベルや Smarty の <link linkend="variable.error.reporting"><parameter>$error_reporting</parameter></link> - プロパティで E_NOTICE が無効になっており、 - かつ変数が Smarty に代入されていない場合です。 - </para> - </note> - </para> - - <example> - <title>変数が空白の時、&nbsp; を出力する</title> - <programlisting> -<![CDATA[ -{* 長ったらしい方法 *} -{if $title eq ''} - -{else} - {$title} -{/if} - -{* 簡潔な方法 *} -{$title|default:' '} -]]> - </programlisting> - </example> -<para> -<link linkend="language.modifier.default"> -<varname>default</varname></link> 修飾子および -<link linkend="tips.default.var.handling">変数のデフォルトの扱い</link> -も参照してください。 -</para> - </sect1> - - - <sect1 id="tips.default.var.handling"> - <title>変数のデフォルトの扱い</title> - <para> - 変数がテンプレートの至る所に頻繁に使われる場合、それが記述されるたびに変更子 - <link linkend="language.modifier.default"><varname>default</varname> - </link> を用いると少し見苦しくなりがちです。この場合、 - <link linkend="language.function.assign"><varname>{assign}</varname></link> - 関数によって変数にデフォルト値を割り当てる事でこれを改善する事ができます。 - </para> - <example> - <title>デフォルト値をテンプレート変数に割り当てる</title> - <programlisting> -<![CDATA[ -{* これをテンプレートのトップのどこかに記述します *} -{assign var='title' value=$title|default:'no title'} - -{* $titleが空白ならば、それを出力する時に"no title"の値を含めます *} -{$title} -]]> - </programlisting> - </example> - <para> - <link linkend="language.modifier.default"><varname>default</varname></link> - 修飾子および <link linkend="tips.blank.var.handling">空白の変数の扱い</link> - も参照してください。 - </para> - </sect1> - - <sect1 id="tips.passing.vars"> - <title>ヘッダテンプレートにタイトルの変数を渡す</title> - <para> - テンプレートの大半が同じヘッダ及びフッタを使用する場合は、それらを単体のテンプレートに分割して - <link linkend="language.function.include"> - <varname>{include}</varname></link> するのが普通です。 - しかしどのページから呼び出されたかによって、 - そのヘッダに異なるタイトルを持たせる必要があるとすればどうなるでしょうか? - インクルードされる際に、タイトルを - <link linkend="language.syntax.attributes">属性</link> - としてヘッダに渡す事ができます。 - </para> - - <example> - <title>ヘッダテンプレートにタイトルの変数を渡す</title> - - <para> - <filename>mainpage.tpl</filename> - メインページを描画する際に、 - <quote>Main Page</quote> というタイトルを - <filename>header.tpl</filename> に私、それをタイトルとして使用します。 - </para> - <programlisting> -<![CDATA[ -{include file='header.tpl' title='Main Page'} -{* ここにテンプレートの本体を記述します *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>archives.tpl</filename> - アーカイブページを描画する際には、 - タイトルは <quote>Archives</quote> となります。 - この例では、ハードコーディングされた変数ではなく - <filename>archives_page.conf</filename> - から変数を取得していることに注意しましょう。 - </para> - <programlisting> -<![CDATA[ -{config_load file='archive_page.conf'} - -{include file='header.tpl' title=#archivePageTitle#} -{* ここにテンプレートの本体を記述します *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>header.tpl</filename> - <literal>$title</literal> 変数が設定されていない場合に、 - <quote>Smarty News</quote> と表示します。これは - <link linkend="language.modifier.default"><varname>default</varname></link> - 修飾子を使用して実現しています。 - </para> - <programlisting> -<![CDATA[ -<html> -<head> -<title>{$title|default:'Smarty News'}</title> -</head> -<body> -]]> - </programlisting> - - <para> - <filename>footer.tpl</filename> - </para> - <programlisting> -<![CDATA[ -</body> -</html> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.dates"> - <title>日付</title> - <para> - 経験上、Smarty に渡す日付は常に - <ulink url="&url.php-manual;time">タイムスタンプ型</ulink> - にしておくことをお勧めします。これにより、テンプレートデザイナーは - <link linkend="language.modifier.date.format"><varname>date_format</varname> - </link> 修飾子で日付の書式を自由にコントロールできるようになります。 - また、必要なら日付の比較も簡単に行えます。 - </para> - <example> - <title>date_format の使用</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - 出力はこのようになります。 - </para> - <screen> -<![CDATA[ -Jan 4, 2009 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - 出力はこのようになります。 - </para> - <screen> -<![CDATA[ -2009/01/04 -]]> - </screen> - <para> - テンプレートで日付を比較するには、タイムスタンプを使用します。 - </para> - <programlisting> -<![CDATA[ -{if $order_date < $invoice_date} - ...何かを行います -{/if} -]]> - </programlisting> - </example> - <para> - テンプレートで <link linkend="language.function.html.select.date"> - <varname>{html_select_date}</varname></link> を使用する場合、 - おそらくプログラマはフォームからの出力をタイムスタンプ型に変換したいでしょう。 - それを行うのに役立つ関数を次に示します。 - </para> - <example> - <title>フォームの日付要素をUNIXタイムスタンプ型に変換する</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// フォームの要素の名前が startDate_Day, startDate_Month, startDate_Year -// であると仮定します - -$startDate = makeTimeStamp($startDate_Year, $startDate_Month, $startDate_Day); - -function makeTimeStamp($year='', $month='', $day='') -{ - if(empty($year)) { - $year = strftime('%Y'); - } - if(empty($month)) { - $month = strftime('%m'); - } - if(empty($day)) { - $day = strftime('%d'); - } - - return mktime(0, 0, 0, $month, $day, $year); -} -?> -]]> - </programlisting> - </example> - - <para> - <link linkend="language.function.html.select.date"> - <varname>{html_select_date}</varname></link>、 - <link linkend="language.function.html.select.time"> - <varname>{html_select_time}</varname></link>、 - <link linkend="language.modifier.date.format"> - <varname>date_format</varname></link> - および <link linkend="language.variables.smarty.now"> - <parameter>$smarty.now</parameter></link> - も参照してください。 - </para> - </sect1> - - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - WAP/WML テンプレートはテンプレートコンテンツに加え、php - によって <ulink url="&url.php-manual;header">Content-Type ヘッダ</ulink> - が渡される必要があります。これを実行する容易な方法は、 - ヘッダを出力するカスタム関数を記述する事です。 - もし <link linkend="caching">キャッシュ</link> を有効にしている場合はキャッシュは機能しないので、 - <link linkend="language.function.insert"><varname>{insert}</varname></link> - タグを用いて出力を行います (<varname>{insert}</varname> - タグはキャッシュされない事を覚えていて下さい)。 - もしテンプレートの前にブラウザに何か出力されていると、 - ヘッダの出力は失敗する可能性があります。 - </para> - <example> - <title>WML Content-Type ヘッダを出力するために {insert} を使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// apache で拡張子.wml の設定がされている事を確認して下さい! -// この関数をアプリケーション内あるいは Smarty.addons.php で定義します -function insert_header($params) -{ - // この関数は、パラメータ $content を期待します - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} - -?> -]]> - </programlisting> - <para> - Smarty テンプレートは、次のように insert タグから始まる必要があります。 - </para> - <programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- 新しい wml のデッキ --> -<wml> - <!-- 最初のカード --> - <card> - <do type="accept"> - <go href="#two"/> - </do> - <p> - Smarty 版の WAP へようこそ! - OK を押すと次に進みます…… - </p> - </card> - <!-- 二枚目のカード --> - <card id="two"> - <p> - どう?簡単でしょ? - </p> - </card> -</wml> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.componentized.templates"> - <title>コンポーネント化したテンプレート</title> - <para> - 習慣的に、アプリケーションにテンプレートをプログラミングする手順は次のように進みます。 - はじめに php アプリケーションにおいて変数を蓄積します - (おそらくデータベースのクエリーによって)。それから Smarty - オブジェクトのインスタンスを作成して変数を割り当て - (<link linkend="api.assign"><varname>assign()</varname></link>)、 - テンプレートを表示 (<link linkend="api.display"><varname>display()</varname></link>) - します。仮に株式相場表示を行うテンプレートがあったとしましょう。 - これは php アプリケーションにより株式情報のデータを収集し、 - テンプレートにこれらの変数を割り当てて表示します。 - もし、前もってデータを取得する事を気にせずに、 - テンプレートを単にインクルードする事で株式相場表示をアプリケーションに追加できれば良いと思いませんか? - </para> - <para> - これは、内容をフェッチし、テンプレート変数に割り当てるための - カスタムプラグインを書くことで実現できます - </para> - <example> - <title>コンポーネント化したテンプレート</title> - <para> - <filename>function.load_ticker.php</filename> - - このファイルを - <link linkend="variable.plugins.dir"> - <parameter>プラグインのディレクトリ</parameter></link> - においてください。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// 株式情報のデータを取得するための関数を用意します -function fetch_ticker($symbol) -{ - // 様々なリソースから $ticker_info を - // 取得するロジックをここに記述します - return $ticker_info; -} - -function smarty_function_load_ticker($params, $smarty) -{ - // 関数をコールします - $ticker_info = fetch_ticker($params['symbol']); - - // テンプレート変数を割り当てます - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{load_ticker symbol='SMARTY' assign='ticker'} - -銘柄: {$ticker.name} 株価: {$ticker.price} -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>、 - <link linkend="language.function.include"><varname>{include}</varname></link> - および - <link linkend="language.function.php"><varname>{php}</varname></link> - も参照してください。 - </para> - </sect1> - - <sect1 id="tips.obfuscating.email"> - <title>E-mail アドレスを混乱させる</title> - <para> - これまでに、あなたの E-mail アドレスが多数のスパムメーリングリストにどのように載るのか - 不思議に思った事はありませんか?その一つの方法として、スパム発信者は web ページ上の - E-mail アドレスを収集しています。この問題に対抗するために、E-mail アドレスが HTML - ソース内では混乱した JavaScript に見えるがブラウザでは正しく表示されるという方法が使えます。 - これは <link linkend="language.function.mailto"><varname>{mailto}</varname></link> - プラグインによって行われます。 - </para> - <example> - <title>E-mail アドレスを混乱させる例</title> - <programlisting> -<![CDATA[ -<div id="contact"> -{mailto address=$EmailAddress encode='javascript' subject='Hello'} に問い合わせを送る -</div> -]]> - </programlisting> - </example> - <note> - <title>テクニカルノート</title> - <para> - この方法は 100% 確実という訳ではありません。 - もしかしたらスパム発信者はこれらの値を解読するためのコードを書くかもしれません。 - ですがそれはまず有り得ないでしょう…… - おそらく…… - 今のところは…… - 量子コンピュータってどうなったんでしょう :-? - </para> - </note> - <para> - <link linkend="language.modifier.escape"><varname>escape</varname></link> - 修飾子および - <link linkend="language.function.mailto"><varname>{mailto}</varname></link> - も参照してください。 - </para> - </sect1> - </chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/appendixes/troubleshooting.xml
Deleted
@@ -1,196 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="troubleshooting"> - <title>トラブルシューティング</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Smarty/PHP エラー</title> - <para> - Smarty は、タグの属性が不足していたり、誤った変数名を指定していた時など、 - 多くのエラーをキャッチする事ができます。 - キャッチすると次の例のようなエラーが表示されます。 - </para> - <example> - <title>Smarty エラー</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041 -]]> - </screen> - </example> - <para> - Smarty はテンプレート名・エラー行番号・エラー内容を示します。 - その次のエラーは、Smarty クラスにおいてエラーが発生した実際の行番号から成るメッセージです。 - </para> - - <para> - タグの閉じ忘れのような、Smarty がキャッチできないエラーがあります。 - 通常、このような場合のエラーは PHP コンパイル時にパースエラーで終了します。 - </para> - - <example> - <title>PHP パースエラー</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 -]]> - </screen> - </example> - - <para> - PHP パースエラーの場合のエラー行番号は、 - テンプレートそのものではなくコンパイルされた PHP スクリプトに一致します。 - 通常、テンプレートを見ることで構文エラーを見つけられます。 - 一般的な間違いとしては、 - <link linkend="language.function.if"><varname>{if}{/if}</varname></link> や - <link linkend="language.function.if"><varname>{section}{/section}</varname> - </link> タグの閉じ忘れ、<varname>{if}</varname> - タグ内のロジックの構文の誤りなどがあります。もしエラーが見つけられない場合は、 - テンプレートのどこに該当するエラーがあるかを見い出すために、 - コンパイルされた PHP ファイルを開いて行番号のあたりを調べる必要があります。 - </para> - - - <example> - <title>その他共通のエラー</title> - -<screen> -<![CDATA[ -Warning: Smarty error: unable to read resource: "index.tpl" in... -or -Warning: Smarty error: unable to read resource: "site.conf" in... -]]> -</screen> - <para> - <itemizedlist> - <listitem> - <para> - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> - が存在しない不正なディレクトリか、もしくは存在しても - <filename>index.tpl</filename> が - <filename class="directory">templates/</filename> - ディレクトリ内にありません。 - </para> - </listitem> - <listitem> - <para> - <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link> - 関数がテンプレート内にあり (もしくは - <link linkend="api.config.load"><varname>config_load()</varname></link> - で呼び出されており)、その際の - <link linkend="variable.config.dir"><parameter>$config_dir</parameter> - </link> が存在しない不正なディレクトリか、もしくは存在しても - <filename>site.conf</filename> がそのディレクトリ内にありません。 - </para> - </listitem> - - </itemizedlist> - </para> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, -or is not a directory... -]]> - </screen> - <itemizedlist> - <listitem> - <para> - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> - に不正な値が入っており、そのようなディレクトリが存在しないか、もしくは - <filename>templates_c</filename> の指定がディレクトリではなくファイルです。 - </para> - </listitem> - </itemizedlist> - - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $compile_dir '.... -]]> - </screen> - <itemizedlist> - <listitem> - <para> - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> に Web サーバによる書き込み権限がありません。 - <link linkend="installing.smarty.basic">Smarty のインストール</link> - のページ下部のパーミッションの項を参照してください。 - </para> - </listitem> -</itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $cache_dir 'cache' does not exist, -or is not a directory. in /.. -]]> - </screen> - <itemizedlist> - <listitem> - <para> - <link linkend="variable.caching"> - <parameter>$caching</parameter></link> が有効であるにも関わらず、 - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - が存在しない不正なディレクトリか、もしくは存在しても - <filename>cache/</filename> がディレクトリではなくファイルである、という意味です。 - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $cache_dir '/... -]]> - </screen> - - <itemizedlist> - <listitem> - <para> - <link linkend="variable.caching"><parameter>$caching</parameter></link> - が有効であるにも関わらず、<link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> - に Web サーバによる書き込み権限がない、という意味です。 - <link linkend="installing.smarty.basic">Smarty のインストール</link> - のページ下部のパーミッションの項を参照してください。 - </para> - </listitem> - </itemizedlist> - </example> - - <para> - <link linkend="chapter.debugging.console">デバッギング</link> - も参照ください。 - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/bookinfo.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <bookinfo id="bookinfo"> - <title>Smarty - コンパイリング PHP テンプレートエンジン</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname> - <surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Uwe</firstname> - <surname>Tews <uwe dot tews at googlemail dot com></surname> - </author> - </authorgroup> - <authorgroup id="translators"> - <author> - <firstname>Shinsuke</firstname><surname>Matsuda <mat-sh at fj9 dot so-net dot ne dot jp></surname> - </author> - <author> - <firstname>Daichi</firstname><surname>Kamemoto <daichi at asial dot co dot jp></surname> - </author> - <author> - <firstname>Joe</firstname><surname>Morikawa <joe at asial dot co dot jp></surname> - </author> - <author> - <firstname>Masahiro</firstname><surname>Takagi <takagi@php.net></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2010</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/chapter-debugging-console.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="chapter.debugging.console"> - <title>デバッギングコンソール</title> - <para> - Smarty にはデバッギングコンソールが用意されています。 - このコンソールは、 - <link linkend="language.function.include">インクルード</link> - された全てのテンプレートについての情報と、現在実行中のテンプレートに - <link linkend="api.assign">割り当てられた</link> 変数及び - <link linkend="language.config.variables">設定</link> - ファイルの変数の値を表示します。Smarty の配布ファイル群に含まれているテンプレート - <literal>debug.tpl</literal> が、コンソールを表示するためのものです。 - </para> - <para> - <literal>debug.tpl</literal> (デフォルトでは <link linkend="constant.smarty.dir"> - <constant>SMARTY_DIR</constant></link> 内にあります) に - <link linkend="variable.debug_template"> - <parameter>$debug_tpl</parameter></link> のテンプレートリソースのパスを示す必要がある場合は、 - Smarty で - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> - を &true; に設定します。 - ページを読み込む時に Javascript による新たなコンソールウィンドウが現れ、 - 現在のページにおける、インクルードされたすべてのテンプレートの名前と - 定義されている変数の値を表示します。</para> - <para>特定のテンプレートに有効な変数を調べる場合は、テンプレート関数 - <link linkend="language.function.debug"> - <varname>{debug}</varname></link> を参照してください。 - デバッギングコンソールを無効にするには - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> - を &false; に設定します。また、一時的にデバッギングコンソールを有効にするには、 - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link> - で URL の中に <literal>SMARTY_DEBUG</literal> を含めます。 - </para> - <note> - <title>テクニカルノート</title> - <para> - <link linkend="api.fetch"><varname>fetch()</varname></link> - API を使用している場合はデバッギングコンソールは動作せず、 - <link linkend="api.display"> - <varname>display()</varname></link> の場合のみ使用できます。 - このコンソールは、生成されたテンプレートの終端に追加される - Javascript の集合です。Javascript がお好みでないなら、 - 希望の出力になるように <literal>debug.tpl</literal> - を修正してください。デバッグ情報はキャッシュされず、 - デバッギングコンソールの出力には <literal>debug.tpl</literal> - 自体の情報は含まれません。 - </para> - </note> - <note> - <para> - 各テンプレートと設定ファイルの読み込みにかかる時間は、ほんの数秒です。 - </para> - </note> - <para> - <link linkend="troubleshooting">トラブルシューティング</link> も参照ください。 - </para> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/config-files.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="config.files"> - <title>設定ファイル</title> - <para> - 設定ファイルは、1つのファイルからグローバルなテンプレート変数を管理する方法として、 - デザイナーにとって有用です。1つの例としては、テンプレートの色の指定を行う場合です。 - 通常、アプリケーションの配色を変更するには全てのテンプレートファイルを調べ、 - 該当する箇所の色の指定を変更する必要があります。 - 設定ファイルを使うと色の指定を一箇所で管理できるので、 - 更新する必要があるファイルは1つだけになります。 - </para> - <example> - <title>設定ファイルの記述例</title> - <programlisting> -<![CDATA[ -# グローバル変数 -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[Customer] -pageTitle = "Customer Info" - -[Login] -pageTitle = "Login" -focus = "username" -Intro = """This is a value that spans more - than one line. you must enclose - it in triple quotes.""" - -# 隠されたセクション -[.Database] -host=my.example.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]> - </programlisting> - </example> - <para> - <link linkend="language.config.variables">設定ファイルの値</link> - はクォートで囲む事が出来ます(必須ではありません)。 - シングルクォートとダブルクォートのどちらでも使用できます。 - 複数行にまたがる値を持つ場合は、値全体をトリプルクォート(""") - で囲みます。設定ファイルの中にコメントを記述するには、 - 行の初めに <literal>#</literal> (ハッシュ) を使う事を推奨します。 - </para> - <para> - 上記の設定ファイルの例は2つのセクションを持っています。 - セクション名はブラケット[]に囲まれ、<literal>[</literal> - もしくは <literal>]</literal> を含まない任意の文字列を指定できます。 - 先頭の4つの変数は、グローバル変数 (あるいはセクションに含まれない変数) - です。これらの変数は常に設定ファイルから読み込まれます。 - 特定のセクションが読み込まれた場合は、 - グローバル変数に加えてそのセクションからの変数が読み込まれます。 - グローバル変数とセクション内に同じ変数が存在する場合はセクション内の変数が使用されます。 - 1つのセクション内に同名の2つの変数を指定した場合は、 - <link linkend="variable.config.overwrite"> - <parameter>$config_overwrite</parameter></link> - が無効でない限りは後で指定されたものが使用されます。 - </para> - <para> - 設定ファイルの読み込みは、組み込みのテンプレート関数 - <link linkend="language.function.config.load"><varname> - {config_load}</varname></link> あるいは API 関数 <link - linkend="api.config.load"><varname>config_load()</varname></link> - によって行います。 - </para> - <para> - <literal>[.hidden]</literal> のように変数名又はセクション名の先頭にピリオドをつける事によって、 - 変数又は全体のセクションを隠蔽する事ができます。 - アプリケーションからは使用されるがテンプレートエンジンからは使用されないような重要なデータ - (DB接続に関する情報など) を取得する際に有用です。 - テンプレートを編集をするサードパーティが存在する場合、 - 重要なデータを含んだ設定ファイルをテンプレート内に読み込む事によって盗み読まれる危険性を回避できます。 - </para> - <para> - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>、 - <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link>、 - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>、 - <link linkend="api.clear.config"><varname>clear_config()</varname></link> - および - <link linkend="api.config.load"><varname>config_load()</varname></link> - も参照ください。 - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="language.basic.syntax"> - <title>基本構文</title> - <para> - 全てのテンプレートタグはデリミタによって囲まれます。 - デフォルトではデリミタは <literal>{</literal> と <literal>}</literal> - ですが、これは <link linkend="variable.left.delimiter">変更可能</link> です。 - </para> - <para> - このマニュアルで挙げる例ではデフォルトのデリミタを利用しています。 - Smarty では、デリミタ外の内容は静的コンテンツとして表示されます。 - Smarty がテンプレ ートタグを見つけると、その解釈を試みて適切な出力に置換します。 - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,126 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.escaping"> - <title>Smarty の構文解析を回避する</title> - <para> - 時々、Smarty の構文解析の対象にしたくないと望む、 - もしくはそうする必要がある部分があります。 典型的な例としては、 - テンプレートに Javascript や CSS コードが含まれるときです。 - それらの言語が Smarty のデフォルトの - <link linkend="language.function.ldelim">デリミタ</link> - である { と } を使用するときに問題が発生します。 - </para> - - <note><para> - もっとも単純な解決方法は、Javascript と CSS コードをそれぞれファイルに切り分け、 - それらにアクセスするために標準的な HTML の機能を使用する事で状況を回避する事です。 - これは、ブラウザのスクリプトキャッシュも利用します。 - Smarty の変数や関数を Javascript/CSS で使いたい場合は、次のようにします。 - </para></note> - - <para> - Smarty のテンプレート内では、{ や } の両側に空白文字があればそれをデリミタとはみなしません。 - この挙動を無効にするには、Smarty のクラス変数 <link linkend="variable.auto.literal"><parameter>$auto_literal</parameter></link> - を false にします。 - </para> - - <example> - <title>自動リテラル機能の使用</title> - <programlisting> -<![CDATA[ -<script> - // 次の波括弧は Smarty に無視されます - // その両側に空白文字があるからです - function foobar { - alert('foobar!'); - } - // こちらの場合はリテラルとして扱うエスケープが必要です - {literal} - function bazzy {alert('foobar!');} - {/literal} -</script> -]]> - </programlisting> - </example> - - <para> - テンプレートロジックのブロックをエスケープするには <link - linkend="language.function.literal"> - <varname>{literal}..{/literal}</varname></link> ブロックを使用します。 - HTML エンティティの使用法と同様に、 <link - linkend="language.function.ldelim"><varname>{ldelim}</varname></link>、<link - linkend="language.function.ldelim"><varname>{rdelim}</varname></link> あるいは <link - linkend="language.variables.smarty.ldelim"> - <varname>{$smarty.ldelim}</varname>、<varname>{$smarty.rdelim}</varname></link> - を使用してデリミタを個別にエスケープすることもできます。 - </para> - - <para> - 単純に Smarty の <link - linkend="variable.left.delimiter"> - <parameter>$left_delimiter</parameter></link> および - <link linkend="variable.right.delimiter"> - <parameter>$right_delimiter</parameter></link> - を変更するだけでも便利になることが多々あります。 - <note> - <para> - デリミタの変更は、すべてのテンプレートの構文およびエスケープに影響を及ぼします。 - 変更した後は、キャッシュやコンパイル済みファイルを一度削除するようにしましょう。 - </para> - </note> - </para> - <example> - <title>デリミタを変更する例</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - テンプレートはこのようになります。 - </para> - <programlisting> -<![CDATA[ -Welcome <!--{$name}--> to Smarty -<script language="javascript"> - var foo = <!--{$foo}-->; - function dosomething() { - alert("foo is " + foo); - } - dosomething(); -</script> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.math"> - <title>演算</title> - <para> - 演算は、変数の値に直接適用されます。 - </para> - <example> - <title>演算の例</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* もう少し複雑な例 *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> - - <note><para> - Smarty では非常に複雑な演算や構文を処理することもできますが、 - テンプレートの構文は必要最小限にして表示内容に注力することをお勧めします。 - もしテンプレートの構文が複雑になりすぎてきたと感じたら、 - 表示内容に直接関係のない部分をプラグインや修飾子として - PHP 側に追い出すとよいでしょう。 - </para></note> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.syntax.attributes"> - <title>属性</title> - <para> - ほとんどの <link linkend="language.syntax.functions">関数</link> には、 - それらの動作を指定したり修正するための属性があります。Smarty 関数の属性は - HTML の属性にかなり近いものです。静的な値はクォートで囲む必要はありませんが、 - リテラル文字列であるべきです。変数を使う場合はクォートで囲んではいけません。 - PHP の関数の結果やプラグインの結果、複雑な計算式なども使うことができます。 - </para> - <para> - いくつかの属性は、boolean 値 (&true; あるいは &false;) を必要とします。 - これらの値は、<literal>true</literal> あるいは - <literal>false</literal> を指定する事ができます。 - 属性に何も値を代入しない場合のデフォルトは、boolean の true です。 - </para> - <example> - <title>関数の属性の構文</title> - <programlisting> -<![CDATA[ -{include file="header.tpl"} - -{include file="header.tpl" nocache} // nocache=true と等価 - -{include file="header.tpl" attrib_name="attrib value"} - -{include file=$includeFile} - -{include file=#includeFile# title="My Title"} - -{assign var=foo value={counter}} // プラグインの結果 - -{assign var=foo value=substr($bar,2,5)} // PHP の関数の結果 - -{assign var=foo value=$bar|strlen} // 修飾子の使用 - -{assign var=foo value=$buh+$bar|strlen} // より複雑な演算 - -{html_select_date display_days=true} - -{mailto address="smarty@example.com"} - -<select name="company_id"> - {html_options options=$companies selected=$company_id} -</select> -]]> - </programlisting> - </example> - - <note><para> - Smarty では非常に複雑な演算や構文を処理することもできますが、 - テンプレートの構文は必要最小限にして表示内容に注力することをお勧めします。 - もしテンプレートの構文が複雑になりすぎてきたと感じたら、 - 表示内容に直接関係のない部分をプラグインや修飾子として - PHP 側に追い出すとよいでしょう。 - </para></note> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.syntax.comments"> - <title>コメント</title> - <para> - テンプレートのコメントはまずアスタリスクで囲まれ、次にそれを - <link linkend="variable.left.delimiter">デリミタ</link> - タグで囲みます。このような形式になります。 - </para> - <informalexample> - <programlisting> -<![CDATA[ -{* これはコメントです *} -]]> - </programlisting> - </informalexample> - <para> - Smarty のコメントは、テンプレートの最終的な出力には表示されません。この点は - <literal><!-- HTML のコメント --></literal> とは異なります。 - これは、テンプレート内での内部的なメモとして使用するのに便利です。 - 誰にもバレません ;-) - </para> - <example> - <title>テンプレート内のコメント</title> - <programlisting> -<![CDATA[ -{* これは Smarty コメントです。コンパイルされた結果には登場しません。 *} -<html> -<head> -<title>{$title}</title> -</head> -<body> - -{* 別の Smarty コメント *} -<!-- HTML コメント。これはブラウザに送信されます --> - -{* この、複数行の - Smarty コメントは - ブラウザへは送信されません -*} - -{********************************************************* -クレジットブロックを含む複数行のコメント - @ author: bg@example.com - @ maintainer: support@example.com - @ para: var that sets block style - @ css: the style output -**********************************************************} - -{* メインロゴなどを含むヘッダファイル *} -{include file='header.tpl'} - - -{* 開発メモ: 変数 $includeFile の値は foo.php で設定されています *} -<!-- 本体コンテンツブロックを表示します --> -{include file=$includeFile} - -{* この <select> ブロックは余分 *} -{* -<select name="company"> - {html_options options=$vals selected=$selected_id} -</select> -*} - -<!-- アフィリエイトのヘッダは無効にします --> -{* $affiliate|upper *} - -{* コメントを入れ子にすることはできません *} -{* -<select name="company"> - {* <option value="0">-- none -- </option> *} - {html_options options=$vals selected=$selected_id} -</select> -*} - -</body> -</html> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.syntax.functions"> - <title>関数</title> - <para> - すべての Smarty タグは、 - <link linkend="language.variables">変数</link> - を出力するか何らかの関数を呼び出す動作をします。 - 関数は、 - <literal>{funcname attr1="val1" attr2="val2"}</literal> - のように関数名とその - <link linkend="language.syntax.attributes">属性</link> - をデリミタで囲みます。 - </para> - <example> - <title>関数の構文</title> - <programlisting> -<![CDATA[ -{config_load file="colors.conf"} - -{include file="header.tpl"} -{insert file="banner_ads.tpl" title="イケてる Smarty"} - -{if $logged_in} - ようこそ、<span style="color:{#fontColor#}">{$name}!</span> -{else} - やぁ、{$name} -{/if} - -{include file="footer.tpl"} -]]> - </programlisting> - </example> - - <itemizedlist> - <listitem><para> - <link linkend="language.builtin.functions">組み込み関数</link> - と <link linkend="language.custom.functions">カスタム関数</link> - は、テンプレート内では同じ構文です。 - </para></listitem> - - <listitem><para>組み込み関数とは Smarty の - <emphasis role="bold">内部で</emphasis> 動作する関数で、たとえば - <link linkend="language.function.if"><varname>{if}</varname></link>、 - <link linkend="language.function.section"><varname>{section}</varname></link> および - <link linkend="language.function.strip"><varname>{strip}</varname></link> - などのことです。これらを変更したり修正したりすることはありません。 - </para></listitem> - - <listitem><para>カスタム関数は - <emphasis role="bold">追加の</emphasis> 関数で、 - <link linkend="plugins">プラグイン</link> で実装します。 - これらは自由に修正したり、新たな関数を追加したりする事が可能です。 - <link linkend="language.function.html.options"> - <varname>{html_options}</varname></link> - などがカスタム関数の例です。 - </para></listitem> -</itemizedlist> - - <para> - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.syntax.quotes"> - <title>ダブルクォート内に埋め込まれた変数</title> - - <itemizedlist> - <listitem> - <para> - Smarty が "ダブルクォート" で囲まれた内容の中から <link - linkend="api.assign">割り当てられた</link> - <link linkend="language.syntax.variables">変数</link> - として認識するのは、変数名が数字・文字・_(アンダースコア)のみで構成されているものだけです。詳細は - <ulink url="&url.php-manual;language.variables">名前の付けかた</ulink> - を参照ください。 - </para></listitem> - - <listitem><para> - その他の文字、たとえば .(ピリオド)や - <literal>$object>reference</literal>(オブジェクト参照)を含む場合は、 - その変数を <literal>`バッククォート`</literal> で囲む必要があります。 - </para></listitem> - - <listitem><para> - さらに、Smarty3 ではダブルクォートで囲んだ文字列中に - Smarty タグを埋め込めるようになりました。 - これは、修飾子つきの変数やプラグイン、PHP の関数の結果などを扱うときに便利です。 - </para></listitem> - </itemizedlist> - - <example> - <title>構文の例</title> - <programlisting> -<![CDATA[ -{func var="test $foo test"} // $foo を参照します -{func var="test $foo_bar test"} // $foo_bar を参照します -{func var="test `$foo[0]` test"} // $foo[0] を参照します -{func var="test `$foo[bar]` test"} // $foo[bar] を参照します -{func var="test $foo.bar test"} // $foo ($foo.bar ではありません) を参照します -{func var="test `$foo.bar` test"} // $foo.bar を参照します -{func var="test `$foo.bar` test"|escape} // クォートの外での修飾子 -{func var="test {$foo|escape} test"} // クォートの中での修飾子 -{func var="test {time()} test"} // PHP の関数の結果 -{func var="test {counter} test"} // プラグインの結果 -{func var="variable foo is {if !$foo}not {/if} defined"} // Smarty ブロック関数 -]]> - </programlisting> -</example> - - <example> - <title>実用例</title> - <programlisting> -<![CDATA[ -{* $tpl_name を値で置き換えます *} -{include file="subdir/$tpl_name.tpl"} - -{* $tpl_name を置き換えません *} -{include file='subdir/$tpl_name.tpl'} // 変数にはダブルクォートが必要です! - -{* "." を含むのでバッククォートで囲む必要があります *} -{cycle values="one,two,`$smarty.config.myval`"} - -{* "." を含むのでバッククォートで囲む必要があります *} -{include file="`$module.contact`.tpl"} - -{* ドット構文で変数を使うことができます *} -{include file="`$module.$view`.tpl"} -]]> - </programlisting> - </example> - - <note><para> - Smarty では非常に複雑な演算や構文を処理することもできますが、 - テンプレートの構文は必要最小限にして表示内容に注力することをお勧めします。 - もしテンプレートの構文が複雑になりすぎてきたと感じたら、 - 表示内容に直接関係のない部分をプラグインや修飾子として - PHP 側に追い出すとよいでしょう。 - </para></note> - - <para> - <link linkend="language.modifier.escape"><varname>escape</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,151 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.syntax.variables"> - <title>変数</title> - <para> - テンプレート変数は、先頭にドル記号 $ を付けます。変数名には - <ulink url="&url.php-manual;language.variables">PHP の変数</ulink> - と同様に英数字およびアンダースコアが使用できます。 - 配列の参照には、インデックスの数値もしくはそれ以外の文字を使用できます。 - オブジェクトのプロパティとメソッドの参照も同様です。</para> - <para> - <link linkend="language.config.variables">Config ファイルの変数</link> - にはドル記号を付けず、参照する際にはハッシュマーク # で囲むか、 - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link> - 変数として指定します。 - </para> - <example> - <title>変数</title> - <programlisting> -<![CDATA[ -{$foo} <-- 単純な変数 (配列やオブジェクト以外) を表示します。 -{$foo[4]} <-- 0から始まるインデックスを持った配列の5番目の要素を表示します。 -{$foo.bar} <-- "bar"というキーに対応する配列の値を表示します。PHP の $foo['bar'] と同じです。 -{$foo.$bar} <-- 変数のキーに対応する配列の値を表示します。PHP の PHP $foo[$bar] と同じです。 -{$foo->bar} <-- オブジェクトのプロパティ "bar"を表示します。 -{$foo->bar()} <-- オブジェクトのメソッド"bar"の返り値を表示します。 -{#foo#} <-- configファイル変数"foo"を表示します。 -{$smarty.config.foo} <-- {#foo#}と同じです。 -{$foo[bar]} <-- sectionループ内でのみ正当な構文です。{section}の項を参照のこと。 -{assign var=foo value='baa'}{$foo} <-- "baa"を表示します。{assign}の項を参照のこと。 - -その他多くの組み合わせが可能です。 - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- パラメータを渡します。 -{"foo"} <-- 静的な値を使用できます。 - -{* サーバ変数 "SERVER_NAME" の内容を表示します ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} - -演算やタグの埋め込みもできます。 - -{$x+$y} // x と y の輪を表示します。 -{assign var=foo value=$x+$y} // 属性としての使用 -{$foo[$x+3]} // 配列のインデックスとしての使用 -{$foo={counter}+3} // タグ内でのタグ -{$foo="this is message {counter}"} // ダブルクォートで囲まれた文字列内でのタグ - -配列を定義します。 - -{assign var=foo value=[1,2,3]} -{assign var=foo value=['y'=>'yellow','b'=>'blue']} -{assign var=foo value=[1,[9,8],3]} // ネストすることもできます - -短縮形での代入 - -{$foo=$bar+2} -{$foo = strlen($bar)} // 関数の結果の代入 -{$foo = myfunct( ($x+$y)*3 )} // 関数のパラメータとしての代入 -{$foo.bar=1} // 配列の特定の要素への代入 -{$foo.bar.baz=1} -{$foo[]=1} // 配列への追加 - -Smarty の "ドット" 構文 (注意: {} の埋め込みは、あいまいさを回避するために使います) - -{$foo.a.b.c} => $foo['a']['b']['c'] -{$foo.a.$b.c} => $foo['a'][$b]['c'] // 配列のインデックス -{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] // 演算結果をインデックスとして使用 -{$foo.a.{$b.c}} => $foo['a'][$b['c']] // インデックスのネスト - -"ドット" 構文の代替手段としての、PHP 風の構文 - -{$foo[1]} // 通常のアクセス -{$foo['bar']} -{$foo['bar'][1]} -{$foo[$x+$x]} // インデックスには任意の演算を指定できます -{$foo[$bar[1]]} // インデックスのネスト -{$foo[section_name]} // smarty の {section} へのアクセスであり、配列アクセスではなりません! - -可変変数 - -$foo // 通常の変数 -$foo_{$bar} // 他の変数を含む変数名 -$foo_{$x+$y} // 演算を含む変数名 -$foo_{$bar}_buh_{$blar} // 複数のセグメントからなる変数名 -{$foo_{$x}} // $x の値が 1 の場合、これは変数 $foo_1 を表示します。 - -オブジェクトの連結 - -{$object->method1($x)->method2($y)} - -PHP の関数への直接のアクセス - -{time()} - -]]> - </programlisting> - </example> - - <note><para> - Smarty では非常に複雑な演算や構文を処理することもできますが、 - テンプレートの構文は必要最小限にして表示内容に注力することをお勧めします。 - もしテンプレートの構文が複雑になりすぎてきたと感じたら、 - 表示内容に直接関係のない部分をプラグインや修飾子として - PHP 側に追い出すとよいでしょう。 - </para></note> - - <para><literal>$_GET</literal> や - <literal>$_SESSION</literal> などのようなリクエスト変数は、 - 予約済の変数 <link linkend="language.variables.smarty"> - <parameter>$smarty</parameter></link> の値で取得します。 - </para> - - <para> - <link linkend="language.variables.smarty"> - <parameter>$smarty</parameter></link>、 - <link linkend="language.config.variables">config 変数</link>、 - <link linkend="language.function.assign"><varname>{assign}</varname></link> - および - <link linkend="api.assign"><varname>assign()</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="language.builtin.functions"> - <title>組み込み関数</title> - <para> - Smarty にはいくつかの組み込み関数があります。 - これらはテンプレートエンジンにとって必要不可欠なものです。 - 組み込み関数はコンパイル時に PHP のコードに展開され、 - 最大のパフォーマンスを発揮します。 - </para> - <para> - これらと同じ名前の - <link linkend="language.custom.functions">カスタム関数</link> - を作成したり、組み込み関数を修正したりする事はできません。 - </para> - - <para> - これらの関数の一部は <parameter>assign</parameter> 属性を持っており、 - 結果を出力せずにここで指定した名前のテンプレート変数に格納します。これは - <link linkend="language.function.assign"> - <varname>{assign}</varname></link> 関数と似ています。 - </para> - - &designers.language-builtin-functions.language-function-shortform-assign; - &designers.language-builtin-functions.language-function-append; - &designers.language-builtin-functions.language-function-assign; - &designers.language-builtin-functions.language-function-block; - &designers.language-builtin-functions.language-function-call; - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-debug; - &designers.language-builtin-functions.language-function-extends; - &designers.language-builtin-functions.language-function-for; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-function; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-nocache; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - &designers.language-builtin-functions.language-function-while; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-append.xml
Deleted
@@ -1,142 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.append"> - <title>{append}</title> - <para> - <varname>{append}</varname> は、テンプレート変数の配列を - <emphasis role="bold">テンプレートの実行時に</emphasis> - 作成あるいは追加します。 - </para> - - <note><para> - テンプレート内で変数に代入するというのは、 - 本質的にはアプリケーションのロジックをプレゼンテーションに持ち込んでいることになります。 - これは本来 PHP 側でやったほうがうまく処理できることでしょう。 - 自己責任のもとで使いましょう。 - </para></note> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入される変数の名前</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入される値</entry> - </row> - <row> - <entry>index</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>新しい配列要素の添え字。 - 省略した場合は配列の最後の要素として値が追加されます</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入する変数のスコープ。'parent'、'root' あるいは 'global'</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>変数を 'nocache' 属性つきで代入する</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{append}</title> - <programlisting> -<![CDATA[ -{append var='name' value='Bob' index='first'} -{append var='name' value='Meyer' index='last'} -// あるいは -{append 'name' 'Bob' index='first'} {* 短縮形 *} -{append 'name' 'Meyer' index='last'} {* 短縮形 *} - -The first name is {$name.first}.<br> -The last name is {$name.last}. -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -The first name is Bob. -The last name is Meyer. -]]> - </screen> - </example> - - <para> - <link linkend="api.append"><varname>append()</varname></link> - および - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-assign.xml
Deleted
@@ -1,271 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.assign"> - <title>{assign}</title> - <para> - <varname>{assign}</varname> は、テンプレート変数を - <emphasis role="bold">テンプレートの実行時に</emphasis> - 代入します。 - </para> - - <note><para> - テンプレート内で変数に代入するというのは、 - 本質的にはアプリケーションのロジックをプレゼンテーションに持ち込んでいることになります。 - これは本来 PHP 側でやったほうがうまく処理できることでしょう。 - 自己責任のもとで使いましょう。 - </para></note> - - <note><para> - テンプレート変数を代入するときの - <link linkend="language.function.shortform.assign"><varname>短縮形</varname></link> - も参照ください。 - </para></note> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入される変数の名前</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入される値</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入する変数のスコープ。'parent'、'root' あるいは 'global'</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>変数を 'nocache' 属性つきで代入する</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{assign}</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob"} -{assign "name" "Bob"} {* 短縮形 *} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>nocache を指定した変数による {assign}</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob" nocache} -{assign "name" "Bob" nocache} {* 短縮形 *} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>計算結果の {assign}</title> - <programlisting> -<![CDATA[ -{assign var=running_total value=$running_total+$some_array[$row].some_value} -]]> - </programlisting> - - </example> - -<example> - <title>呼び出し元テンプレートのスコープでの {assign}</title> - <para>インクルードされたテンプレート内で代入した変数は、インクルードした側のテンプレートからも見えます。</para> - <programlisting> -<![CDATA[ -{include file="sub_template.tpl"} -... -{* サブテンプレートで代入した変数を表示します *} -{$foo}<br> -... -]]> - </programlisting> - <para>上のテンプレートでインクルードしている <filename>sub_template.tpl</filename> の例を次に示します。</para> - <programlisting> -<![CDATA[ -... -{* foo はインクルード元のテンプレートからも見えます *} -{assign var="foo" value="something" scope=parent} -{* bar はこのテンプレート内でしか見えません *} -{assign var="bar" value="value"} -... -]]> -</programlisting> -</example> - - <example> - <title>現在のスコープツリーへの変数の {assign}</title> - <para>現在のツリーのルートに変数を代入することができます。この変数は、同じツリーを使うすべてのテンプレートから見えるようになります。</para> - <programlisting> -<![CDATA[ -{assign var=foo value="bar" scope="root"} -]]> - </programlisting> - - </example> - - <example> - <title>グローバル変数の {assign}</title> - <para>グローバル変数は、すべてのテンプレートから見えます。</para> - <programlisting> -<![CDATA[ -{assign var=foo value="bar" scope="global"} -{assign "foo" "bar" scope="global"} {* 短縮形 *} -]]> - </programlisting> - - </example> - - <example> - <title>{assign} された変数への PHP スクリプトからのアクセス</title> - <para> - <varname>{assign}</varname> した変数に PHP スクリプトからアクセスするには - <link linkend="api.get.template.vars"> - <varname>getTemplateVars()</varname></link> を使います。 - このテンプレートでは、変数 <parameter>$foo</parameter> を作ります。 - </para> -<programlisting> -<![CDATA[ -{assign var="foo" value="Smarty"} -]]> -</programlisting> -<para>テンプレート変数にアクセスできるのは、テンプレートの実行中か実行後のみです。 -次のスクリプトのようになります。 -</para> -<programlisting role="php"> -<![CDATA[ -<?php - -// まだテンプレートを実行していないので、これは何も出力しません -echo $smarty->getTemplateVars('foo'); - -// テンプレートを変数に取り込みます -$whole_page = $smarty->fetch('index.tpl'); - -// テンプレートを実行した後なので、これは 'smarty' を出力します -echo $smarty->getTemplateVars('foo'); - -$smarty->assign('foo','Even smarter'); - -// これは 'Even smarter' を出力します -echo $smarty->getTemplateVars('foo'); - -?> -]]> -</programlisting> - </example> - - - <para> - 次にあげる関数にも、<emphasis>オプションで</emphasis> - テンプレート変数を代入することができます。 - </para> - - <para> - <link linkend="language.function.capture"><varname>{capture}</varname></link>, - <link linkend="language.function.include"><varname>{include}</varname></link>, - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>, - <link linkend="language.function.insert"><varname>{insert}</varname></link>, - <link linkend="language.function.counter"><varname>{counter}</varname></link>, - <link linkend="language.function.cycle"><varname>{cycle}</varname></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>, - <link linkend="language.function.math"><varname>{math}</varname></link>, - <link linkend="language.function.textformat"><varname>{textformat}</varname></link> - </para> - - <para> - <link linkend="language.function.shortform.assign"><varname>{$var=...}</varname></link>、 - <link linkend="api.assign"><varname>assign()</varname></link> - および - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-block.xml
Deleted
@@ -1,284 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3927 $ --> -<!-- EN-Revision: 3923 Maintainer: takagi Status: ready --> -<sect1 id="language.function.block"> - <title>{block}</title> - - <para> - <varname>{block}</varname> は、テンプレートの継承用に、 - テンプレートソースのある範囲に名前を定義します。詳細は - <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> - の節を参照ください。 - </para> - <para> - <varname>{block}</varname> で囲んだ子テンプレートの範囲は、 - 親テンプレートの対応する部分を置き換えます。 - </para> - <para> - オプションで、子テンプレートと親テンプレートの <varname>{block}</varname> - 範囲をマージすることもできます。親の <varname>{block}</varname> - のコンテンツを子の <varname>{block}</varname> の前あるいは後に加えるには、 - 子の <varname>{block}</varname> を定義する際にオプションのフラグ - <literal>append</literal> あるいは <literal>prepend</literal> を指定します。 - {$smarty.block.parent} を使うと、親テンプレートの <varname>{block}</varname> - の中身を子テンプレートの <varname>{block}</varname> 内の好きな場所に挿入することができます。 - また {$smarty.block.child} は、子テンプレートの <varname>{block}</varname> - の中身を親テンプレートの <varname>{block}</varname> 内の好きな場所に挿入することができます。 - </para> - <para><varname>{blocks}</varname> はネストすることができます。 - </para> - - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>テンプレートソースブロックの名前</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <para><emphasis role="bold">オプションのフラグ (子テンプレートのみ)</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>append</entry> - <entry><varname>{block}</varname> のコンテンツを親テンプレートの <varname>{block}</varname> に追記する</entry> - </row> - <row> - <entry>prepend</entry> - <entry><varname>{block}</varname> のコンテンツを親テンプレートの <varname>{block}</varname> の前に置く</entry> - </row> - <row> - <entry>nocache</entry> - <entry><varname>{block}</varname> のコンテンツのキャッシュを無効にする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>シンプルな <varname>{block}</varname> の例</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}Default Title{/block}</title> - <title>{block "title"}Default Title{/block}</title> {* 短縮形 *} - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title"} -Page Title -{/block} -]]> - </programlisting> - <para>結果は、このようになります。</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>Page Title</title> - </head> -</html> -]]> -</programlisting> - </example> - - <example> - <title><varname>{block}</varname> を前に置く例</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}Title - {/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title" prepend} -Page Title -{/block} -]]> - </programlisting> - <para>結果は、このようになります。</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>Title - Page Title</title> - </head> -</html> -]]> -</programlisting> - </example> - - <example> - <title><varname>{block}</varname> を後に置く例</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"} is my title{/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title" append} -Page Title -{/block} -]]> - </programlisting> - <para>結果は、このようになります。</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>Page title is my titel</title> - </head> -</html> -]]> -</programlisting> - </example> - - <example> - <title><varname>{$smarty.block.child}</varname> の例</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}The {$smarty.block.child} was inserted here{/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title"} -Child Title -{/block} -]]> - </programlisting> - <para>結果は、このようになります。</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>The - Child Title - was inserted here</title> - </head> -</html> -]]> -</programlisting> - </example> - <example> - <title><varname>{$smarty.block.parent}</varname> の例</title> - <para>parent.tpl</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{block name="title"}Parent Title{/block}</title> - </head> -</html> -]]> - </programlisting> - <para>child.tpl</para> - <programlisting> -<![CDATA[ -{extends file="parent.tpl"} -{block name="title"} -You will see now - {$smarty.block.parent} - here -{/block} -]]> - </programlisting> - <para>結果は、このようになります。</para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>You will see now - Parent Title - here</title> - </head> -</html> -]]> -</programlisting> - </example> - - <para> - <link linkend="advanced.features.template.inheritance">テンプレートの継承</link>、 - <link linkend="language.variables.smarty.block.parent"><parameter>$smarty.block.parent</parameter></link>、 - <link linkend="language.variables.smarty.block.child"><parameter>$smarty.block.child</parameter></link> - および <link linkend="language.function.extends"><varname>{extends}</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-call.xml
Deleted
@@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.call"> - <title>{call}</title> - <para> - <varname>{call}</varname> は、 - <link linkend="language.function.function"><varname>{function}</varname></link> - タグで定義したテンプレート関数をプラグイン関数のようにコールします。 - </para> - - <note><para> - テンプレート関数はグローバルに定義されます。Smarty のコンパイラはシングルパスのコンパイラなので、 - 指定したテンプレートの外部で定義されたテンプレート関数をコールするときには - <link linkend="language.function.call"><varname>{call}</varname></link> - タグを使わなければなりません。それ以外の場合は、テンプレート内で直接 - <literal>{funcname ...}</literal> として関数を使うことができます。 - </para></note> - - <itemizedlist> - <listitem><para> - <varname>{call}</varname> タグには <parameter>name</parameter> 属性が必須です。 - ここに、テンプレート関数の名前を書きます。 - </para></listitem> - - <listitem><para> - <link linkend="language.syntax.attributes">属性</link> - を使って、テンプレート関数に変数として値を渡すことができます。 - </para></listitem> - </itemizedlist> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>テンプレート関数の名前</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>コールしたテンプレート関数の出力を代入する変数の名前</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ローカルからテンプレート関数に渡す変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>テンプレート関数を nocache モードでコールする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>再帰的なメニューの例</title> - <programlisting> -<![CDATA[ -{* 関数の定義 *} -{function name=menu level=0} - <ul class="level{$level}"> - {foreach $data as $entry} - {if is_array($entry)} - <li>{$entry@key}</li> - {call name=menu data=$entry level=$level+1} - {else} - <li>{$entry}</li> - {/if} - {/foreach} - </ul> -{/function} - -{* 例として使う配列を作成します *} -{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => -['item3-3-1','item3-3-2']],'item4']} - -{* 配列を関数に渡します *} -{call name=menu data=$menu} -{call menu data=$menu} {* 短縮形 *} -]]> - </programlisting> - <para> - 出力は、次のようになります。 - </para> - <programlisting> -<![CDATA[ -* item1 -* item2 -* item3 - o item3-1 - o item3-2 - o item3-3 - + item3-3-1 - + item3-3-2 -* item4 -]]> - </programlisting> - </example> - - - <para> - <link linkend="language.function.function"><varname>{function}</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,186 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.capture"> - <title>{capture}</title> - - <para> - <varname>{capture}</varname> は、タグの間のテンプレートの出力を集め、 - それをブラウザに表示する代わりに変数に受け渡します。 - <varname>{capture name='foo'}</varname> と <varname>{/capture}</varname> - の間のあらゆるコンテンツは、<parameter>name</parameter> - 属性で指定した変数に格納されます。 - </para> - <para>キャプチャされたコンテンツは、特別な変数 - <link linkend="language.variables.smarty.capture"><parameter>$smarty.capture.foo</parameter></link> - (<quote>foo</quote> は <parameter>name</parameter> 属性で指定した変数) によって利用できます。 - <parameter>name</parameter> 属性を指定しない場合は <quote>default</quote> - が使われ、<parameter>$smarty.capture.default</parameter> - のようになります。 - </para> - <para><varname>{capture}'s</varname> はネスト可能です。 - </para> - - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>キャプチャされるブロックの名前</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>キャプチャされた出力を割り当てるための変数名</entry> - </row> - <row> - <entry>append</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>キャプチャされた出力を追記するための配列変数名</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>キャプチャされたブロックのキャッシュを無効にする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>注意</title> - <para> - <link linkend="language.function.insert"><varname>{insert}</varname></link> - の出力をキャプチャする際には注意が必要です。 - <link linkend="caching"><parameter>$caching</parameter></link> - が有効の時に、実行したい - <link linkend="language.function.insert"><varname>{insert}</varname></link> - コマンドがもしキャッシュされたコンテンツ内にあるのなら、そのコンテンツはキャプチャされません。 - </para> - </note> - - <para> - <example> - <title>name 属性を使用した {capture}</title> - <programlisting> -<![CDATA[ -{* コンテンツが表示されない限り、テーブルの行を表示しません *} -{capture name="banner"} -{capture "banner"} {* short-hand *} - {include file="get_banner.tpl"} -{/capture} - -{if $smarty.capture.banner ne ""} -<div id="banner">{$smarty.capture.banner}</div> -{/if} -]]> - </programlisting> - </example> - - <example> - <title>{capture} をテンプレート変数に格納</title> - <para>この例は、キャプチャ関数の使用法を示すものです。</para> - <programlisting> -<![CDATA[ -{capture name=some_content assign=popText} -{capture some_content assign=popText} {* short-hand *} -The server is {$my_server_name|upper} at {$my_server_addr}<br> -Your ip is {$my_ip}. -{/capture} -<a href="#">{$popText}</a> -]]> - </programlisting> - </example> - - <example> - <title>{capture} をテンプレート配列変数に格納</title> - <para> - この例は、キャプチャを複数回行って、その結果を配列に格納する方法を示すものです。 - </para> - <programlisting> -<![CDATA[ -{capture append="foo"}hello{/capture}I say just {capture append="foo"}world{/capture} -{foreach $foo as $text}{$text} {/foreach} -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -I say just hello world -]]> - </screen> </example> - - - </para> - <para> - <link - linkend="language.variables.smarty.capture"><parameter>$smarty.capture</parameter></link>、 - <link linkend="language.function.eval"><varname>{eval}</varname></link>、 - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>、 - <link linkend="api.fetch"><varname>fetch()</varname></link> - および <link linkend="language.function.assign"><varname>{assign}</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,179 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.config.load"> - <title>{config_load}</title> - <para> - <varname>{config_load}</varname> を使用して、 - <link linkend="config.files">設定ファイル</link> からテンプレートに - <link linkend="language.config.variables"><parameter>#変数#</parameter></link> - を読み込みます。 - </para> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>インクルードする設定ファイルの名前</entry> - </row> - <row> - <entry>section</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>読み込むセクションの名前</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - 読み込む変数のスコープの処理方法。local、parent、global - のいずれかを指定します。 local を指定すると、 - 変数がローカルファイルのテンプレート変数として読み込まれます。 parent を指定すると、 - 該当ファイルとその親ファイルのテンプレート変数として読み込まれます。 - global を指定すると、すべてのテンプレートでテンプレート変数として利用できます。 - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{config_load}</title> - <para> - <filename>example.conf</filename> ファイル - </para> - <programlisting> -<![CDATA[ -# これは設定ファイルのコメントです - -# グローバル変数 -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -# customer 変数セクション -[Customer] -pageTitle = "Customer Info" -]]> - </programlisting> - <para>テンプレート</para> - <programlisting> -<![CDATA[ -{config_load file="example.conf"} -{config_load "example.conf"} {* 短縮形 *} - -<html> -<title>{#pageTitle#|default:"No title"}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - <para> - <link linkend="config.files">設定ファイル</link> - には、セクションも含まれます。<parameter>section</parameter> - 属性を指定する事で、そのセクション内の変数を読み込む事ができます。 - セクションを指定したとしても、 - グローバルな設定変数は常に読み込まれることに注意しましょう。 - グローバル変数と同じ名前のセクション変数があった場合は、 - セクション変数の内容が優先されます(グローバル変数の値を上書きします)。 - </para> - <note> - <para> - 設定ファイルの <emphasis>sections</emphasis> と組み込みのテンプレート関数 - <link linkend="language.function.section"><varname>{section}</varname></link> - には特に関連はありません。単にたまたま名前が同じであるというだけのことです。 - </para> - </note> - <example> - <title>セクションを指定した {config_load} 関数</title> - <programlisting> -<![CDATA[ -{config_load file='example.conf' section='Customer'} -{config_load 'example.conf' 'Customer'} {* 短縮形 *} - -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> - </programlisting> - </example> - -<para> -設定ファイル変数の配列については -<link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link> -を参照してください。 -</para> - - <para> - <link linkend="config.files">設定ファイル</link> のページ、 - <link linkend="language.config.variables">config 変数</link> のページ、 - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>、 - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link> - および - <link linkend="api.config.load"><varname>config_load()</varname></link> - も参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-debug.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3832 Maintainer: takagi Status: ready --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <para> - <varname>{debug}</varname> は、デバッグコンソールをページに出力します。 - これは、php スクリプト側での <link linkend="chapter.debugging.console">debug</link> - の設定にかかわらず動作します。実行時に処理が行われるので、 - <link linkend="api.assign">代入した</link> 変数についてしか表示できず、 - 使用中のテンプレートについては表示できません。 - しかし、テンプレートのスコープで現在使用可能なすべての変数を見ることができます。 - </para> - <para> - キャッシュを有効にしていてページがキャッシュから読み込まれた場合は <varname>{debug}</varname> - が表示するのはキャッシュされたページに代入されている変数だけです。 - </para> - <para> - テンプレート内でローカルに代入された変数も見たい場合は、 - <varname>{debug}</varname> タグをテンプレートの最後に置きます。 - </para> - - <para> - <link linkend="chapter.debugging.console">デバッギングコンソールのページ</link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-extends.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.extends"> - <title>{extends}</title> - <para> - <varname>{extends}</varname> タグは、テンプレートの継承で親テンプレートを継承するときに使います。 - 詳細は <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> - の節を参照ください。 - </para> - - <itemizedlist> - <listitem><para> - <varname>{extends}</varname> タグは、テンプレートの最初の行に書かなければなりません。 - </para></listitem> - - <listitem><para> - 子テンプレートが <varname>{extends}</varname> - タグで親テンプレートを継承するとき、そこには <varname>{block}</varname> - タグしか含まれないかもしれません。その他のテンプレートの内容は無視されます。 - </para></listitem> - - <listitem><para> - <link linkend="template.resources">テンプレートリソース</link> 構文を使うと、 - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - ディレクトリの外部にあるファイルを継承することができます。 - </para></listitem> - </itemizedlist> - -<para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>継承するテンプレートファイルの名前</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>シンプルな {extends} の例</title> - <programlisting> -<![CDATA[ -{extends file='parent.tpl'} -{extends 'parent.tpl'} {* 短縮形 *} -]]> - </programlisting> - </example> - - <para> - <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> - および <link linkend="language.function.block"><varname>{block}</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-for.xml
Deleted
@@ -1,192 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.for"> - <title>{for}</title> - <para> - <varname>{for}{forelse}</varname> タグは、シンプルなループを作ります。 - 次の形式に対応しています。 - </para> - <itemizedlist> - <listitem> - <para> - <varname>{for $var=$start to $end}</varname> 1 ずつ増えていくシンプルなループ。 - </para> - </listitem> - <listitem> - <para> - <varname>{for $var=$start to $end step $step}</varname> 増分を指定するループ。 - </para> - </listitem> - </itemizedlist> - - <para> - <varname>{forelse}</varname> は、ループの処理が行われなかった場合に実行されます。 - </para> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="position" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>短縮形</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>max</entry> - <entry>n/a</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>反復処理の制限数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry><varname>{for}</varname> ループのキャッシュを無効にする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>シンプルな <varname>{for}</varname> ループ</title> - <programlisting role="php"> -<![CDATA[ -<ul> -{for $foo=1 to 3} - <li>{$foo}</li> -{/for} -</ul> -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<ul> - <li>1</li> - <li>2</li> - <li>3</li> -</ul> -]]> - </screen> - </example> - - <example> - <title><varname>max</varname> 属性の使用</title> - <programlisting role="php"> -<![CDATA[ -$smarty->assign('to',10); -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<ul> -{for $foo=3 to $to max=3} - <li>{$foo}</li> -{/for} -</ul> -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<ul> - <li>3</li> - <li>4</li> - <li>5</li> -</ul> -]]> - </screen> - </example> - - <example> - <title><varname>{forelse}</varname> の実行</title> - <programlisting role="php"> -<![CDATA[ -$smarty->assign('start',10); -$smarty->assign('to',5); -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<ul> -{for $foo=$start to $to} - <li>{$foo}</li> -{forelse} - no iteration -{/for} -</ul> -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ - no iteration -]]> - </screen> - </example> - - <para> - <link linkend="language.function.foreach"><varname>{foreach}</varname></link>、 - <link linkend="language.function.section"><varname>{section}</varname></link> - および - <link linkend="language.function.while"><varname>{while}</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,498 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3829 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.foreach"> - <title>{foreach},{foreachelse}</title> - <para> - <varname>{foreach}</varname> はデータの配列をループするために使います。<varname>{foreach}</varname> - は <link linkend="language.function.section"><varname>{section}</varname></link> ループよりもシンプルできれいな構文で、 - 連想配列をループすることもできます。 - </para> - <para> - <varname>{foreach $arrayvar as $itemvar}</varname> - </para> - <para> - <varname>{foreach $arrayvar as $keyvar=>$itemvar}</varname> - </para> - <note> - <para> - この foreach 構文は、名前つき属性を受け付けません。この構文は Smarty 3 - で新しく導入されたものですが、Smarty 2.x 形式の - <literal>{foreach from=$myarray key="mykey" item="myitem"}</literal> もまだ対応しています。 - </para> - </note> - <itemizedlist> - <listitem><para> - <varname>{foreach}</varname> ループはネストさせることができます。 - </para></listitem> - - <listitem><para> - <parameter>array</parameter> 変数を渡すと、その要素数で - <varname>{foreach}</varname> のループ回数が決まります。 - 整数値を渡してループ回数を決めることもできます。 - </para></listitem> - - <listitem><para> - <parameter>array</parameter> 変数に値がない場合に、 - <varname>{foreachelse}</varname> が実行されます。 - </para></listitem> - - <listitem><para> - <varname>{foreach}</varname> のプロパティには - <link linkend="foreach.property.index"><parameter>@index</parameter></link>、 - <link linkend="foreach.property.iteration"><parameter>@iteration</parameter></link>、 - <link linkend="foreach.property.first"><parameter>@first</parameter></link>、 - <link linkend="foreach.property.last"><parameter>@last</parameter></link>、 - <link linkend="foreach.property.show"><parameter>@show</parameter></link>、 - <link linkend="foreach.property.total"><parameter>@total</parameter></link> - があります。 - </para> - - </listitem> - - <listitem><para> - <parameter>key</parameter> 変数のかわりに、ループ要素の現在のキーにアクセスする方法として - <parameter>{$item@key}</parameter> を使うことができます (以下の例を参照ください)。 - </para></listitem> - - </itemizedlist> - - <note> - <para> - <literal>$var@property</literal> 構文は Smarty 3 で新しく導入されたものですが、 - Smarty 2 の <literal>{foreach from=$myarray key="mykey" item="myitem"}</literal> 英式の構文での - <literal>$smarty.foreach.name.property</literal> もまだ対応しています。 - </para> - </note> - <note> - <para> - 配列のキーを <literal>{foreach $myArray as $myKey => $myValue}</literal> - で取得することもできますが、foreach ループ内で常に <varname>$myValue@key</varname> - で取得することができます。 - </para> - </note> - - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry><varname>{foreach}</varname> ループのキャッシュを無効にする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>シンプルな <varname>{foreach}</varname> ループ</title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array('red', 'green', 'blue'); -$smarty->assign('myColors', $arr); -?> -]]> - </programlisting> - <para><parameter>$myArray</parameter> を順序なしリストで出力するテンプレート</para> - <programlisting> -<![CDATA[ -<ul> -{foreach $myColors as $color} - <li>{$color}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<ul> - <li>red</li> - <li>green</li> - <li>blue</li> -</ul> -]]> - </screen> - </example> - -<example> - <title>追加の <parameter>key</parameter> 変数の例</title> - <programlisting role="php"> -<![CDATA[ -<?php -$people = array('fname' => 'John', 'lname' => 'Doe', 'email' => 'j.doe@example.com'); -$smarty->assign('myPeople', $people); -?> -]]> - </programlisting> - <para><parameter>$myArray</parameter> を キー/値 のペアで出力するテンプレート。</para> - <programlisting> -<![CDATA[ -<ul> -{foreach $myPeople as $value} - <li>{$value@key}: {$value}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<ul> - <li>fname: John</li> - <li>lname: Doe</li> - <li>email: j.doe@example.com</li> -</ul> -]]> - </screen> - </example> - - - - <example> - <title>{foreach} で <parameter>item</parameter> と <parameter>key</parameter> をネストする例</title> - <para>配列を Smarty に割り当てます。key にはループする値のキーが含まれます。</para> - <programlisting role="php"> -<![CDATA[ -<?php - $smarty->assign('contacts', array( - array('phone' => '555-555-1234', - 'fax' => '555-555-5678', - 'cell' => '555-555-0357'), - array('phone' => '800-555-4444', - 'fax' => '800-555-3333', - 'cell' => '800-555-2222') - )); -?> -]]> - </programlisting> - <para><parameter>$contact</parameter> を出力するテンプレート</para> - <programlisting> -<![CDATA[ -{* key は常にプロパティとして使えます *} -{foreach $contacts as $contact} - {foreach $contact as $value} - {$value@key}: {$value} - {/foreach} -{/foreach} - -{* PHP の構文を使ってキーにアクセスすることもできます *} -{foreach $contacts as $contact} - {foreach $contact as $key => $value} - {$key}: {$value} - {/foreach} -{/foreach} -]]> - </programlisting> - <para> - 上の例の出力は、どちらも次のようになります。 - </para> - <screen> -<![CDATA[ - phone: 555-555-1234 - fax: 555-555-5678 - cell: 555-555-0357 - phone: 800-555-4444 - fax: 800-555-3333 - cell: 800-555-2222 -]]> - </screen> - </example> - - <example> - <title>データベースでの {foreachelse} の例</title> - <para>データベース (PDO) の検索結果をループします。この例は、array() ではなく PHP のイテレータをループします。</para> -<programlisting role="php"> -<![CDATA[ -<?php - include('Smarty.class.php'); - - $smarty = new Smarty; - - $dsn = 'mysql:host=localhost;dbname=test'; - $login = 'test'; - $passwd = 'test'; - - // テンプレート内で複数の結果カーソルを使う場合は、 - // mysql のバッファクエリを使うように PDO を - // 設定します - - $db = new PDO($dsn, $login, $passwd, array( - PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true)); - - $res = $db->prepare("select * from users"); - $res->execute(); - $res->setFetchMode(PDO::FETCH_LAZY); - - // Smarty に代入します - $smarty->assign('res',$res); - - $smarty->display('index.tpl');?> -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{foreach $res as $r} - {$r.id} - {$r.name} -{foreachelse} - .. 検索結果が見つかりませんでした .. -{/foreach} -]]> - </programlisting> - </example> - - <para> - 上の例では、結果に <literal>id</literal> および <literal>name</literal> - というカラムが含まれることを前提としています。 - </para> - <para> - 普通に配列をループさせるのに比べたイテレータの利点は何でしょうか? - 配列の場合は、すべての結果をメモリに取り込んでからループが始まります。 - イテレータの場合は、ループ内で 1 件ずつ読み込みと解放を繰り返します。 - これは、結果セットが巨大な場合は特に、処理時間とメモリの節約になるでしょう。 - </para> - - <sect2 id="foreach.property.index"> - <title>@index</title> - <para> - <parameter>index</parameter> には、現在の配列のインデックスをゼロから数えた値が含まれます。 - </para> - <example> - <title><parameter>index</parameter> の例</title> - - <programlisting> -<![CDATA[ -{* 4 回目の反復 (index が 3 のとき) に空の行を出力します *} -<table> -{foreach $items as $i} - {if $i@index eq 3} - {* 空の行を出力します *} - <tr><td>nbsp;</td></tr> - {/if} - <tr><td>{$i.label}</td></tr> -{/foreach} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.iteration"> - <title>@iteration</title> - <para> - <parameter>iteration</parameter> は現在のループが反復された回数を表示します。 - <link linkend="foreach.property.index"><parameter>index</parameter></link> - とは異なり、常に 1 から始まります。 - 各ループごとに 1 ずつ加算されます。 - </para> - <example> - <title><parameter>iteration</parameter> の例: is div by</title> - <para> - <emphasis>"is div by"</emphasis> 演算子を使うと、特定の回数を検出することができます。 - これは、4 件おきに名前を太字にする例です。 - </para> - <programlisting> -<![CDATA[ -{foreach $myNames as $name} - {if $name@iteration is div by 4} - <b>{$name}</b> - {/if} - {$name} -{/foreach} -]]> -</programlisting> - </example> - <example> - <title><parameter>iteration</parameter> の例: is even/odd by</title> - <para> - <emphasis>"is even by"</emphasis> 演算子と <emphasis>"is odd by"</emphasis> 演算子を使うと、 - 特定の件数ごとに何かを切り替えることができます。 - even と odd で、どちらから始まるかが切り替わります。 - これは、3 件おきにフォントの色を切り替える例です。 - </para> - <programlisting> - <![CDATA[ - {foreach $myNames as $name} - {if $name@iteration is even by 3} - <span style="color: #000">{$name}</span> - {else} - <span style="color: #eee">{$name}</span> - {/if} - {/foreach} - ]]> - </programlisting> - - <para> - この出力は、次のようになります。 - </para> - <screen> -<![CDATA[ - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #000">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - <span style="color: #eee">...</span> - ... -]]> - </screen> - - </example> - </sect2> - - <sect2 id="foreach.property.first"> - <title>@first</title> - <para> - <parameter>first</parameter> は、現在の <varname>{foreach}</varname> - の反復が最初のものであるときに &true; となります。 - ここでは、最初の反復時にテーブルのヘッダを表示します。 - </para> - <example> - <title><parameter>first</parameter> プロパティの例</title> - <programlisting> -<![CDATA[ -{* 最初の項目にはテーブルのヘッダを表示します *} -<table> -{foreach $items as $i} - {if $i@first} - <tr> - <th>key</td> - <th>name</td> - </tr> - {/if} - <tr> - <td>{$i@key}</td> - <td>{$i.name}</td> - </tr> -{/foreach} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.last"> - <title>@last</title> - <para> - <parameter>last</parameter> は、現在の <varname>{foreach}</varname> - の反復が最後のものであるときに &true; となります。 - この例では、最後の反復に横罫線を表示します。 - </para> - <example> - <title><parameter>last</parameter> プロパティの例</title> - <programlisting> -<![CDATA[ -{* 一覧の最後に横罫線を追加します *} -{foreach $items as $item} - <a href="#{$item.id}">{$item.name}</a>{if $item@last}<hr>{else},{/if} -{foreachelse} - ... コンテンツ ... -{/foreach} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.show"> - <title>@show</title> - <para> - <parameter>show</parameter> は <varname>{foreach}</varname> のパラメータとして使用します。 - <parameter>show</parameter> は boolean 値です。 - &false; の場合は <varname>{foreach}</varname> は表示されません。 - </para> - <example> - <title><parameter>show</parameter> プロパティの例</title> - <programlisting> -<![CDATA[ -<ul> -{foreach $myArray as $name} - <li>{$name}</li> -{/foreach} -</ul> -{if $name@show} 配列にデータが含まれている場合にここで何かをします {/if} -]]> -</programlisting> -</example> - </sect2> - - <sect2 id="foreach.property.total"> - <title>@total</title> - <para> - <parameter>total</parameter> には、 - <varname>{foreach}</varname> がループするトータル回数が含まれます。 - これは、<varname>{foreach}</varname> の内部だけではなく - ループを抜けた後でも使用できます。 - </para> - <example> - <title><parameter>total</parameter> プロパティの例</title> -<programlisting> -<![CDATA[ -{* 返された行の総数を最後に表示します *} -{foreach $items as $item} - {$item.name}<hr/> - {if $item@last} - <div id="total">{$item@total} items</div> - {/if} -{foreachelse} - ... 別の内容 ... -{/foreach} -]]> -</programlisting> -</example> - - <para> - <link linkend="language.function.section"><varname>{section}</varname></link>、 - <link linkend="language.function.for"><varname>{for}</varname></link> - および - <link linkend="language.function.while"><varname>{while}</varname></link> - も参照ください。 - </para> - - </sect2> - -</sect1> - -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-function.xml
Deleted
@@ -1,148 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.function"> - <title>{function}</title> - <para> - <varname>{function}</varname> は、テンプレート内で関数を作成します。 - これはプラグイン関数のようにコールすることができます。 - 見た目に関する内容を生成するプラグインを書くよりは、 - それをテンプレート側に書いておいたほうが管理しやすくなるでしょう。 - 深く込み入ったメニューなどのデータの取り回しもシンプルになります。 - </para> - - <note><para> - テンプレート関数はグローバルに定義されます。Smarty のコンパイラはシングルパスのコンパイラなので、 - 指定したテンプレートの外部で定義されたテンプレート関数をコールするときには - <link linkend="language.function.call"><varname>{call}</varname></link> - タグを使わなければなりません。それ以外の場合は、テンプレート内で直接 - <literal>{funcname ...}</literal> として関数を使うことができます。 - </para></note> - - <itemizedlist> - <listitem><para> - <varname>{function}</varname> タグには <parameter>name</parameter> 属性が必須です。 - ここに、テンプレート関数の名前を書きます。 - この名前のタグを使って、テンプレート関数をコールすることができます。 - </para></listitem> - - <listitem><para> - <link linkend="language.syntax.attributes">属性</link> - を使って、テンプレート関数に変数のデフォルト値を渡すことができます。 - デフォルト値は、テンプレート関数をコールするときに上書きすることができます。 - </para></listitem> - - <listitem><para> - テンプレート関数からは、呼び出し元テンプレートのすべての変数を使うことができます。 - テンプレート関数内での変数の値の変更や新たな変数の作成はローカルスコープで行われ、 - テンプレート関数の実行後は呼び出し元テンプレートからは見えなくなります。 - </para></listitem> - </itemizedlist> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>テンプレート関数の名前</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ローカルからテンプレート関数に渡すデフォルトの変数の値</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>再帰的なメニュー {function} の例</title> - <programlisting> -<![CDATA[ -{* 関数の定義 *} -{function name=menu level=0} -{function menu level=0} {* 短縮形 *} - <ul class="level{$level}"> - {foreach $data as $entry} - {if is_array($entry)} - <li>{$entry@key}</li> - {menu data=$entry level=$level+1} - {else} - <li>{$entry}</li> - {/if} - {/foreach} - </ul> -{/function} - -{* 例として使う配列を作成します *} -{$menu = ['item1','item2','item3' => ['item3-1','item3-2','item3-3' => -['item3-3-1','item3-3-2']],'item4']} - -{* 配列を関数に渡します *} -{menu data=$menu} -]]> - </programlisting> - <para> - 出力は、次のようになります。 - </para> - <programlisting> -<![CDATA[ -* item1 -* item2 -* item3 - o item3-1 - o item3-2 - o item3-3 - + item3-3-1 - + item3-3-2 -* item4 -]]> - </programlisting> - </example> - - <para> - <link linkend="language.function.call"><varname>{call}</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,265 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.if"> - <title>{if},{elseif},{else}</title> - <para> - Smarty における <varname>{if}</varname> ステートメントは、PHP の - <ulink url="&url.php-manual;if">if</ulink> と同等の柔軟性を持っています。 - さらに、テンプレートエンジンのための機能をいくつか追加しています。 - 全ての <varname>{if}</varname> は、対応する - <varname>{/if}</varname> とペアである必要があります。<varname>{else}</varname> - と <varname>{elseif}</varname> も使用できます。 - <emphasis>||</emphasis> や <emphasis>or</emphasis>、 - <emphasis>&&</emphasis>、<emphasis>and</emphasis>、 - <emphasis>is_array()</emphasis> など、PHP の条件演算子や関数はすべて利用可能です。 - </para> - <para> - セキュリティが有効な場合は、 セキュリティポリシーの <parameter>$php_functions</parameter> - プロパティに含まれる PHP の関数のみが利用可能となります。 - 詳細は <link linkend="advanced.features.security">セキュリティ</link> の節を参照ください。 - </para> - <para> - 以下は認識される条件演算子の一覧です。 - これらはスペースによって周りの要素から分離される必要があります。 - [ ] で囲まれた要素は任意であることに注意しましょう。 - "PHP 相当" には、PHP において当てはまるものが示されます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>条件演算子</entry> - <entry>代替</entry> - <entry>構文例</entry> - <entry>意味</entry> - <entry>PHP 相当</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>等しい</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>等しくない</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>より大きい</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>より小さい</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>以上</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>以下</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>同一性のチェック</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>否定 (単項)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>剰余</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>割り切れる</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>偶数である [ない] (単項)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>偶数番目のグループである [ない]</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>奇数である [ない] (単項)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>奇数番目のグループである [ない]</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{if} ステートメント</title> - <programlisting> -<![CDATA[ -{if $name eq 'Fred'} - Welcome Sir. -{elseif $name eq 'Wilma'} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* 論理演算子 "or" の例 *} -{if $name eq 'Fred' or $name eq 'Wilma'} - ... -{/if} - -{* 上と同じ *} -{if $name == 'Fred' || $name == 'Wilma'} - ... -{/if} - - -{* 括弧は使用可能 *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - - -{* PHP 関数を埋め込むことも可能 *} -{if count($var) gt 0} - ... -{/if} - -{* 配列のチェック *} -{if is_array($foo) } - ..... -{/if} - -{* null でないことのチェック *} -{if isset($foo) } - ..... -{/if} - - -{* 値が偶数か奇数か *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* 値が 4 で割り切れるかどうか *} -{if $var is div by 4} - ... -{/if} - - -{* - ふたつずつグループ化したときに、値が even であるかどうか - 0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> - </programlisting> - </example> - - - <example> - <title>{if} のその他の例</title> -<programlisting> - <![CDATA[ -{if isset($name) && $name == 'Blog'} - {* 何かを行います *} -{elseif $name == $foo} - {* 何かを行います *} -{/if} - -{if is_array($foo) && count($foo) > 0} - {* foreach ループを実行します *} -{/if} - ]]> -</programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,158 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.include.php"> - <title>{include_php}</title> - <note> - <title>重要な注意</title> - <para> - <varname>{include_php}</varname> は Smarty では非推奨になりました。 - プラグインを登録して使い、プレゼンテーションとアプリケーションのコードを適切に分離するようにしましょう。 - </para> - </note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>インクルードする PHP ファイルの絶対パス</entry> - </row> - <row> - <entry>once</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>同じ PHP ファイルが複数回インクルードされた場合に、一度だけインクルードするかどうか</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>include_php の出力を格納する変数名</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>インクルードした PHP スクリプトのキャッシュを無効にする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <varname>{include_php}</varname> タグを使用して、PHP スクリプトをテンプレートにインクルードします。 - 属性 <parameter>file</parameter> のパスには、絶対パスあるいは - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link> - からの相対パスを指定することができます。セキュリティが有効な場合は、スクリプトは - セキュリティポリシーの <parameter>$trusted_dir</parameter> で指定したパスに存在する必要があります。 - 詳細は <link linkend="advanced.features.security">セキュリティ</link> の節を参照ください。 - </para> - <para> - デフォルトでは、PHPファイルはテンプレート内で複数回呼ばれても一度しかインクルードしません。 - <parameter>once</parameter> 属性によって毎回インクルードするべきかどうかを指定できます。 - この属性を &false; に設定すると、テンプレート内でインクルードの指示がある毎に - PHP スクリプトをインクルードします。 - </para> - <para> - オプションで <parameter>assign</parameter> 属性を渡すこともできます。 - これは、<varname>{include_php}</varname> の出力をブラウザに表示させる代わりに - 変数に格納したい場合に、その変数名を指定します。 - </para> - <para> - Smarty オブジェクトは、インクルードした PHP スクリプト内で - <parameter>$_smarty_tpl->smarty</parameter> として使用可能です。 - </para> - <example> - <title>{include_php} 関数</title> - <para><filename>load_nav.php</filename> ファイル</para> - <programlisting role="php"> -<![CDATA[ -<?php - -// mysql データベースから変数の値を読み込み、それをテンプレートに割り当てます -require_once('database.class.php'); -$db = new Db(); -$db->query('select url, name from navigation order by name'); -$this->assign('navigation', $db->getRows()); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{* 絶対パス、あるいは $trusted_dir からの相対パス *} -{include_php file='/path/to/load_nav.php'} -{include_php '/path/to/load_nav.php'} {* 短縮形 *} - -{foreach item='nav' from=$navigation} - <a href="{$nav.url}">{$nav.name}</a><br /> -{/foreach} -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.include"><varname>{include}</varname></link>、 -<link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link>、 - <link linkend="language.function.php"><varname>{php}</varname></link>、<link - linkend="language.function.capture"><varname>{capture}</varname></link>、<link - linkend="template.resources">テンプレートリソース</link> および <link - linkend="tips.componentized.templates">コンポーネント化したテンプレート</link> も参照ください。</para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,335 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.include"> - <title>{include}</title> - <para> - <varname>{include}</varname> タグを使用して、 - 現在のテンプレートに他のテンプレートをインクルードします。 - 現在のテンプレートにて利用可能なあらゆる変数は、 - インクルードされたテンプレートでも同じく利用可能です。 - </para> - - <itemizedlist> - <listitem><para> - <varname>{include}</varname> タグには、テンプレートリソースのパスを含んだ - <parameter>file</parameter> 属性を必ず指定する必要があります。 - </para></listitem> - - <listitem><para> - <varname>{include}</varname> の出力をブラウザに表示する代わりに変数に格納したい場合は、 - オプションの <parameter>assign</parameter> 属性にその変数名を定義します。 - <link linkend="language.function.assign"><varname>{assign}</varname></link> - と同等です。 - </para></listitem> - - <listitem><para> - インクルードされたテンプレートに変数を渡すには、 - <link linkend="language.syntax.attributes">attributes</link> - を使用します。インクルードされたテンプレートに明示的に渡された変数は、 - インクルードされたファイルのスコープでのみ有効となります。 - そのテンプレートに同じ名前の変数が存在する場合は、 - 渡された変数がそれをオーバーライドします。 - </para></listitem> - - <listitem><para> - インクルードしたテンプレート側からは、インクルード元のテンプレートにあるすべての変数を使えます。 - しかし、インクルードされたテンプレート内での変数の変更や新たな変数の作成はローカルスコープになり、 - <varname>{include}</varname> ステートメントの後のインクルード元テンプレート側からは見えません。 - このデフォルトの挙動を、インクルードされたテンプレート内で代入されたすべての変数について変更することができます。 - その方法は、<varname>{include}</varname> ステートメントの scope 属性を使うか、 - あるいは <link linkend="language.function.assign"><varname>{assign}</varname></link> - ステートメントを使うかのいずれかです。 - 後者の方法は、インクルードしたテンプレートからインクルード元のテンプレートに - 値を返す場合に便利です。 - </para></listitem> - - <listitem><para> - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - ディレクトリ外にあるファイルを <varname>{include}</varname> するには、 - <link linkend="template.resources">テンプレートリソース</link> を指定します。 - </para></listitem> - </itemizedlist> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>インクルードするテンプレートファイル名</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>インクルードしたコンテンツの出力を格納する変数名</entry> - </row> - <row> - <entry>cache_lifetime</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>このサブテンプレートのキャッシュについて独自に設定するキャッシュの有効期限</entry> - </row> - <row> - <entry>compile_id</entry> - <entry>string/integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>このサブ連プレートのコンパイルに使う独自の compile_id</entry> - </row> - <row> - <entry>cache_id</entry> - <entry>string/integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>このサブテンプレートのキャッシュに使う独自の cache_id</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>サブテンプレート内で代入されたすべての変数のスコープ。'parent'、'root' あるいは 'global'</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ローカルからテンプレートに渡す変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>このサブテンプレートのキャッシュを無効にする</entry> - </row> - <row> - <entry>caching</entry> - <entry>このサブテンプレートのキャッシュを有効にする</entry> - </row> - <row> - <entry>inline</entry> - <entry>サブテンプレートをコンパイルしたコードを呼び出し元テンプレートのコンパイル済みコードとマージする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>シンプルな {include} の例</title> - <programlisting> -<![CDATA[ -<html> -<head> - <title>{$title}</title> -</head> -<body> -{include file='page_header.tpl'} - -{* ここにテンプレートの本体を記述します。変数 $tpl_name - はたとえば 'contact.tpl' などに置き換えられます。 -*} -{include file="$tpl_name.tpl"} - -{* file 属性の短縮形 *} -{include 'page_footer.tpl'} -</body> -</html> -]]> - </programlisting> - </example> - - <example> - <title>{include} に変数を渡す</title> - <programlisting> -<![CDATA[ -{include 'links.tpl' title='Newest links' links=$link_array} -{* ここにテンプレートの本体を記述します *} -{include 'footer.tpl' foo='bar'} -]]> - </programlisting> - <para>このテンプレートは、以下のような <filename>links.tpl</filename> をインクルードします。</para> -<programlisting> -<![CDATA[ -<div id="box"> -<h3>{$title}{/h3> -<ul> -{foreach from=$links item=l} -.. 何かを行います ... -</foreach} -</ul> -</div> -]]> -</programlisting> - </example> - - <example> - <title>{include} での parent スコープの使用</title> - <para>インクルードされたテンプレート内で代入した変数は、インクルードした側のテンプレートからも見えます。</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' scope=parent} -... -{* sub_template で代入した変数を表示します *} -{$foo}<br> -{$bar}<br> -... -]]> - </programlisting> - <para>上のテンプレートでインクルードしている <filename>sub_template.tpl</filename> は、次のようになります。</para> - <programlisting> -<![CDATA[ -... -{assign var=foo value='something'} -{assign var=bar value='value'} -... -]]> -</programlisting> - </example> - - <example> - <title>キャッシュを無効にした {include}</title> - <para>インクルードされたテンプレートはキャッシュされません。</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' nocache} -... -]]> - </programlisting> - </example> - - <example> - <title>個別のキャッシュ有効期限を設定した {include}</title> - <para>この例では、インクルードされたテンプレートのキャッシュ有効期限を独自に 500 秒に設定します。</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' cache_lifteime=500} -... -]]> - </programlisting> - </example> - - <example> - <title>強制的にキャッシュする {include}</title> - <para>この例では、グローバルなキャッシュ設定にかかわらず、インクルードされたテンプレートはキャッシュされます。</para> - <programlisting> -<![CDATA[ -{include 'sub_template.tpl' caching} -... -]]> - </programlisting> - </example> - - - <example> - <title>{include} と変数への割り当て</title> - <para>この例は、<filename>nav.tpl</filename> - の内容を変数 <varname>$navbar</varname> に割り当て、 - ページの最初と最後に出力させるものです。 - </para> - <programlisting> - <![CDATA[ -<body> - {include 'nav.tpl' assign=navbar} - {include 'header.tpl' title='Smarty is cool'} - {$navbar} - {* テンプレートの本体をここへ記述します *} - {$navbar} - {include 'footer.tpl'} -</body> -]]> - </programlisting> - </example> - - <example> - <title>さまざまな {include} リソースの例</title> - <programlisting> -<![CDATA[ -{* ファイルの絶対パス *} -{include file='/usr/local/include/templates/header.tpl'} - -{* ファイルの絶対パス(結果は上と同じ) *} -{include file='file:/usr/local/include/templates/header.tpl'} - -{* Windows環境のファイルの絶対パス(接頭辞の"file:"は必須) *} -{include file='file:C:/www/pub/templates/header.tpl'} - -{* "db"と名付けられたテンプレートリソースからインクルード *} -{include file='db:header.tpl'} - -{* 変数名に格納された名前のテンプレートをインクルード - 例 $module = 'contacts' *} -{include file="$module.tpl"} - -{* この例は、シングルクォートでは変数が展開されないため、動作しません *} -{include file='$module.tpl'} - -{* 複数の可変テンプレートをインクルード - 例 amber/links.view.tpl *} -{include file="$style_dir/$module.$view.tpl"} -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>、 - <link linkend="language.function.insert"><varname>{insert}</varname></link>、 - <link linkend="language.function.php"><varname>{php}</varname></link>、 - <link linkend="template.resources">テンプレートリソース</link> および - <link linkend="tips.componentized.templates">コンポーネント化したテンプレート</link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.insert"> - <title>{insert}</title> - <para> - <varname>{insert}</varname> タグは <link - linkend="language.function.include"><varname>{include}</varname></link> - タグと似た動作をします。ただ <varname>{insert}</varname> - タグは、テンプレートの <link linkend="caching">キャッシュ</link> - が有効であってもキャッシュされません。 - テンプレートが呼び出されるたびに実行されます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>呼び出すinsert関数 (insert_<parameter>name</parameter>) あるいはプラグインの名前</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力を格納するテンプレート変数名</entry> - </row> - <row> - <entry>script</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>insert関数を呼び出す前にインクルードされるPHPスクリプト名</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>insert関数に渡す変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <para> - 例えば、ページの上部にバナーを表示するテンプレートを持っているとします。 - バナーにはHTML, images, flash等が混合して含まれます。 - したがってここに静的リンクを用いる事はできないので、 - バナーコンテンツをキャッシュの対象にしたくありません。 - そのためには、あらかじめ<link linkend="config.files">設定ファイル</link>から取得した #banner_location_id# - と #site_id# の値を渡し、バナーコンテンツを表示するために - {insert} タグを呼び出す必要があります。 - </para> - <example> - <title>{insert} 関数</title> -<programlisting> -{* バナーを取得する例 *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} -{insert "getBanner" lid=#banner_location_id# sid=#site_id#} {* 短縮形 *} -</programlisting> - </example> - <para> - この例では、name 属性に <quote>getBanner</quote> を指定し、 - パラメータに #banner_location_id# と #site_id# を渡しています。Smarty は - PHP アプリケーション内の insert_getBanner() 関数を探し、第1パラメータとして - #banner_location_id# と #site_id# の値を格納した連想配列を渡します。 - アプリケーションにおける全ての {insert} 関数の名前は、 - ネームスペースの衝突を避けるために "insert_" によって始まる必要があります。 - insert_getBanner() 関数は、渡された値によって何らかの処理を行い、結果を返すべきです。 - この結果はテンプレートの {insert} タグに置換されて表示されます。 - この例では、Smarty は insert_getBanner(array("lid" => "12345","sid" => "67890")); - という関数を呼び出し、返された結果が {insert} タグの位置に表示されます。 - </para> - <itemizedlist> - <listitem><para> - <parameter>assign</parameter> 属性を指定すると、 - <varname>{insert}</varname> タグの出力は - ブラウザに表示される代わりにテンプレート変数に格納されます。 - <note> - <para> - 出力をテンプレート変数に格納するのは、 - <link linkend="variable.caching">キャッシュ</link> - が有効な状態ではあまり有益ではありません。 - </para> - </note> - </para></listitem> - - <listitem><para> - <parameter>script</parameter> 属性を与えると、この PHP スクリプトは - <varname>{insert}</varname> 関数が実行される前に - (一度だけ) インクルードされます。 - これは、insert 関数がまだ存在しないかもしれない場合や、insert - 関数の動作のために PHP スクリプトを最初にインクルードする必要がある場合に指定します。 - </para> - <para> - パスには、絶対パスかあるいは - <link linkend="variable.trusted.dir"><parameter>$trusted_dir</parameter></link> - からの相対パスを指定します。セキュリティが有効な場合は、スクリプトはセキュリティポリシーの - <parameter>$trusted_dir</parameter> 内にある必要があります。 - 詳細は <link linkend="advanced.features.security">セキュリティ</link> の節を参照ください。 - </para> - </listitem> - </itemizedlist> - <para> - Smarty オブジェクトは第2パラメータとして渡されます。 - これにより、<varname>{insert}</varname> - 関数から Smarty オブジェクトの情報の参照や修正が可能です。 - </para> - <para> - PHP スクリプトが見つからなかった場合に、Smarty は対応する insert プラグインを探します。 - </para> - <note> - <title>テクニカルノート</title> - <para> - テンプレートには、キャッシュの対象外となる部分を持たせる事が可能です。 - <link linkend="caching">キャッシュ</link> が有効の場合でも、 - <varname>{insert}</varname> タグによる出力はキャッシュされません。 - そのページが呼び出される度に動的に実行されます。 - この動作は、バナー・投票・天気予報・検索結果・ユーザーフィードバックエリア等に向いています。 - </para> - </note> - <para> - <link linkend="language.function.include"><varname>{include}</varname></link> - も参照ください。 - </para> - </sect1> - <!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.function.ldelim"> - <title>{ldelim},{rdelim}</title> - <para> - <varname>{ldelim}</varname> および <varname>{rdelim}</varname> - は、テンプレートのデリミタを - <link linkend="language.escaping">エスケープ</link> します。 - デフォルトでは、これは <emphasis role="bold">{</emphasis> - および <emphasis role="bold">}</emphasis> となります。 - Javascript や CSS のようなテキストのあつまりをエスケープするためには - <link linkend="language.function.literal"><varname>{literal}{/literal}</varname></link> - を使用することもできます。<link - linkend="language.variables.smarty.ldelim"><parameter>{$smarty.ldelim}</parameter></link> - も参照してください。 - </para> - <example> - <title>{ldelim}, {rdelim}</title> - <programlisting> -<![CDATA[ -{* これは、テンプレートからデリミタのリテラルを出力します *} - -{ldelim}funcname{rdelim} is how functions look in Smarty! -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -{funcname} is how functions look in Smarty! -]]> - </screen> - <para>Javascript を使用する別の例</para> - <programlisting> -<![CDATA[ -<script language="JavaScript"> -function foo() {ldelim} - ... コード ... -{rdelim} -</script> -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -<script language="JavaScript"> -function foo() { - .... コード ... -} -</script> -]]> - </screen> - - </example> - - <example> - <title>別の Javascript の例</title> -<programlisting> -<![CDATA[ -<script language="JavaScript" type="text/javascript"> - function myJsFunction(){ldelim} - alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} -</script> -<a href="javascript:myJsFunction()">Click here for Server Info</a> -]]> -</programlisting> - </example> - - <para> - <link linkend="language.function.literal"><varname>{literal}</varname></link> - および <link linkend="language.escaping">Smarty の構文解析を回避</link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.literal"> - <title>{literal}</title> - <para> - <varname>{literal}</varname> タグに囲まれたデータのブロックは、 - リテラルとして認識されます。これは一般的に、Javascript やスタイルシートなどで - 中括弧がテンプレートの - <link linkend="variable.left.delimiter">デリミタ</link> - として解釈されるとまずい場合に使用します。 - <varname>{literal}{/literal}</varname> タブの内部は解釈されず、 - そのままで表示されます。<varname>{literal}</varname> - ブロック内にテンプレートタグを含める必要がある場合は、代わりに - <link linkend="language.function.ldelim"><varname>{ldelim}{rdelim}</varname></link> - で個々のデリミタをエスケープしてください。 - </para> - - <note><para> - <varname>{literal}{/literal}</varname> タグは通常は不要です。Smarty は、 - 空白文字で囲まれたデリミタを無視するからです。 - Javascript や CSS で波括弧を使う場合は両側に空白文字を入れるようにしましょう。 - これは、Smarty 3 以降の新しい挙動です。 - </para></note> - - <example> - <title>{literal} タグ</title> - <programlisting> -<![CDATA[ -<script> - // 次の波括弧は Smarty では無視されます。 - // 空白文字で囲まれているからです。 - function myFoo { - alert('Foo!'); - } - // こちらは、リテラルとして扱うエスケープが必要です - {literal} - function myBar {alert('Bar!');} - {/literal} -</script> -]]> - </programlisting> - </example> - - <para> - <link linkend="language.function.ldelim"><varname>{ldelim} {rdelim}</varname></link> - および - <link linkend="language.escaping">Smarty の構文解析を回避</link> - のページも参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-nocache.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.nocache"> - <title>{nocache}</title> - - <para> - <varname>{nocache}</varname> は、 - テンプレートの特定の部分のキャッシュを無効にします。 - <varname>{nocache}</varname> は、必ずそれに対応する - <varname>{/nocache}</varname> とペアで使わなければなりません。 - </para> - - <note> - <title>注意</title> - <para> - キャッシュしない部分で使ったすべての変数は、 - ページがキャッシュから読み込まれるときに PHP にも代入されます。 - </para> - </note> - - <example> - <title>テンプレートの特定の部分のキャッシュを回避する</title> - <programlisting> -<![CDATA[ - -Today's date is -{nocache} -{$smarty.now|date_format} -{/nocache} -]]> - </programlisting> - <para> - 上のコードは、キャッシュしたページに現在の日付を出力します。 - </para> - </example> - - <para> - <link linkend="caching">キャッシュ</link> の節も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.php"> - <title>{php}</title> - - <note> - <title>重要な注意</title> - <para> - <varname>{php}</varname> タグは将来廃止される予定です。使ってはいけません。 - PHP のロジックは、PHP スクリプトかプラグイン関数に書くようにしましょう。 - </para> - </note> - - <para> - <varname>{php}</varname> タグで、PHP コードを直接テンプレートに埋め込むことができます。 - <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link> - の設定にかかわらず、これはエスケープされません。 - </para> - - <example> - <title>{php} タグ内での PHP コード</title> - <programlisting> -<![CDATA[ -{php} - // PHP スクリプトをテンプレートから直接インクルードします - include('/path/to/display_weather.php'); -{/php} -]]> - </programlisting> - </example> - - - <example> - <title>{php} タグで global を使用して変数を代入する</title> - <programlisting role="php"> -<![CDATA[ -{* このテンプレートは {php} ブロックを含み、その中で変数 $varX を割り当てます *} -{php} - global $foo, $bar; - if($foo == $bar){ - echo 'This will be sent to browser'; - } - // 変数を Smarty に割り当てます - $this->assign('varX','Toffee'); -{/php} -{* 変数を出力します *} -<strong>{$varX}</strong> is my fav ice cream :-) -]]> - </programlisting> -</example> - - <para> - <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link>、 - <link linkend="language.function.include.php"><varname>{include_php}</varname></link>、 - <link linkend="language.function.include"><varname>{include}</varname></link>、 - <link linkend="language.function.insert"><varname>{insert}</varname></link> - および - <link linkend="tips.componentized.templates">コンポーネント化したテンプレート</link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,904 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.section"> - <title>{section},{sectionelse}</title> - <para> - <varname>{section}</varname> は、 - <emphasis role="bold">データが格納された数値添字配列</emphasis> をループするために使用します。 - これは、<link linkend="language.function.foreach"><varname>{foreach}</varname></link> - が <emphasis role="bold">1つの連想配列</emphasis> - をループするのとは異なります。すべての <varname>{section}</varname> - タグは、終了タグ <varname>{/section}</varname> とペアになっている必要があります。 - </para> - - <note><para> - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> - ループは、{section} ループができることならすべてできるうえに、構文がよりシンプルで簡単です。 - 通常は {section} ループよりもこちらのほうをお勧めします。 - </para></note> - <note><para> - {section} ループは連想配列を扱うことができません。数値のインデックスで、かつ 0,1,2,... - と順に並んでいなければなりません。連想配列の場合は - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> ループを使いましょう。 - </para></note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>セクション名</entry> - </row> - <row> - <entry>loop</entry> - <entry>mixed</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ループ回数を決定する値</entry> - </row> - <row> - <entry>start</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> <entry> - ループを開始するインデックス位置。この値が負の場合は、 - 配列の最後尾から開始位置が算出されます。 - 例えばループ配列に7つの値があり、そしてstartが-2であるならば、 - 開始インデックスは5になります。 - ループ配列の長さを超えるような無効な値は、 - 自動的に最も近い値に切り捨てられます。</entry> - </row> - <row> - <entry>step</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry> - ループインデックスを進めるために使われるステップ値。 - 例えばstep=2なら、インデックスは0, 2, 4をループします。 - stepの値が負の場合は、配列の前方に向かって進みます。 - </entry> - </row> - <row> - <entry>max</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>セクションがループする最大の回数</entry> - </row> - <row> - <entry>show</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>このセクションを表示するかどうか</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry><varname>{section}</varname> ループのキャッシュを無効にする</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - 必須の属性は <parameter>name</parameter> と <parameter>loop</parameter> - です。 - </para></listitem> - - <listitem><para> - <varname>{section}</varname> の <parameter>name</parameter> は、 - 英数字とアンダースコアを使って自由に命名できます。これは - <ulink url="&url.php-manual;language.variables">PHP の変数</ulink> - と同様です。 - </para></listitem> - - <listitem><para> - {section} はネスト可能で、その場合の - <varname>{section}</varname> の名前はお互いにユニークである必要があります。 - </para></listitem> - - <listitem><para> - <parameter>loop</parameter> 属性で指定されたループ変数 - (たいていは配列) は、<varname>{section}</varname> - のループ回数を決定するために使用されます。 - loop の値として、整数値を渡すこともできます。 - </para></listitem> - - <listitem><para> - <varname>{section}</varname> 内で値を表示するには、 - 変数名に続けてブラケット {} で囲んだセクション名を指定します。 - </para></listitem> - - <listitem><para> - ループ変数に値が存在しない場合は - <varname>{sectionelse}</varname> が実行されます。 - </para></listitem> - - <listitem><para> - <varname>{section}</varname> には、そのプロパティを操作するための - 自身の変数があります。これらには <link linkend="language.variables.smarty.loops"> - <parameter>{$smarty.section.name.property}</parameter></link> - としてアクセスできます。<quote>name</quote> は、<parameter>name</parameter> - 属性の値です。 - </para></listitem> - - <listitem><para> - <varname>{section}</varname> のプロパティには、 - <link linkend="section.property.index"><parameter>index</parameter></link>、 - <link linkend="section.property.index.prev"><parameter>index_prev</parameter></link>、 - <link linkend="section.property.index.next"><parameter>index_next</parameter></link>、 - <link linkend="section.property.iteration"><parameter>iteration</parameter></link>、 - <link linkend="section.property.first"><parameter>first</parameter></link>、 - <link linkend="section.property.last"><parameter>last</parameter></link>、 - <link linkend="section.property.rownum"><parameter>rownum</parameter></link>、 - <link linkend="section.property.loop"><parameter>loop</parameter></link>、 - <link linkend="section.property.show"><parameter>show</parameter></link>、 - <link linkend="section.property.total"><parameter>total</parameter></link> - があります。 - </para></listitem> -</itemizedlist> - - <example> - <title>{section} でのシンプルな配列のループ</title> -<para> -配列を Smarty に <link linkend="api.assign"><varname>assign()</varname></link> します。 -</para> -<programlisting role="php"> -<![CDATA[ -<?php -$data = array(1000,1001,1002); -$smarty->assign('custid',$data); -?> -]]> -</programlisting> -<para>配列を出力するテンプレート</para> - <programlisting> -<![CDATA[ -{* この例は $custid 配列のすべての値を表示します *} -{section name=customer loop=$custid} -{section customer $custid} {* 短縮形 *} - id: {$custid[customer]}<br /> -{/section} -<hr /> -{* $custid 配列のすべての値を逆順に表示します *} -{section name=foo loop=$custid step=-1} -{section foo $custid step=-1} {* 短縮形 *} - {$custid[foo]}<br /> -{/section} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -<hr /> -id: 1002<br /> -id: 1001<br /> -id: 1000<br /> -]]> - </screen> - </example> - - - <example> - <title>{section} で配列を割り当てない例</title> -<programlisting> -<![CDATA[ -{section name=foo start=10 loop=20 step=2} - {$smarty.section.foo.index} -{/section} -<hr /> -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> -</programlisting> -<para> - 上の例の出力 -</para> -<screen> - <![CDATA[ -10 12 14 16 18 -<hr /> -20 18 16 14 12 10 -]]> - </screen> - </example> - - -<example> - <title>{section} の名前</title> - <para><varname>{section}</varname> の <parameter>name</parameter> - は自由につけることができます。<ulink url="&url.php-manual;language.variables">PHP - の変数</ulink> を参照してください。これは、<varname>{section}</varname> - 内のデータを参照する際に使用します。</para> - <programlisting> -<![CDATA[ -{section name=anything loop=$myArray} - {$myArray[anything].foo} - {$name[anything]} - {$address[anything].bar} -{/section} -]]> - </programlisting> - </example> - - - <example> - <title>{section} での連想配列のループ</title> - <para>これは、データの連想配列を - <varname>{section}</varname> で出力する例です。 - 次に示すのは、配列 <parameter>$contacts</parameter> - を Smarty に渡す PHP スクリプトです。</para> - <programlisting role="php"> - <![CDATA[ -<?php -$data = array( - array('name' => 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); -?> -]]> - </programlisting> - -<para><parameter>$contacts</parameter> を出力するテンプレート</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$contacts} -<p> - name: {$contacts[customer].name}<br /> - home: {$contacts[customer].home}<br /> - cell: {$contacts[customer].cell}<br /> - e-mail: {$contacts[customer].email} -</p> -{/section} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -<p> - name: John Smith<br /> - home: 555-555-5555<br /> - cell: 666-555-5555<br /> - e-mail: john@myexample.com -</p> -<p> - name: Jack Jones<br /> - home phone: 777-555-5555<br /> - cell phone: 888-555-5555<br /> - e-mail: jack@myexample.com -</p> -<p> - name: Jane Munson<br /> - home phone: 000-555-5555<br /> - cell phone: 123456<br /> - e-mail: jane@myexample.com -</p> -]]> - </screen> -</example> - - <example> - <title>{section} での <varname>loop</varname> 変数の使用</title> - <para>この例では、<parameter>$custid</parameter>、<parameter>$name</parameter> - および <parameter>$address</parameter> にはすべて配列が割り当てられ、 - その要素数は同じであるものとします。まず、Smarty に配列を割り当てる - PHP スクリプトです。</para> -<programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 Abbey road', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> -</programlisting> - <para> - <parameter>loop</parameter> 変数は、ループの回数を決定するためにのみ使用します。 - <varname>{section}</varname> 内ではあらゆるテンプレート変数にアクセス可能です。 - これは、複数の配列をループさせるときに便利です。 - ループ回数を決めるための配列を渡すこともできますが、 - 整数値を渡してループ回数を決めることもできます。 - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -<p> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]} -</p> -{/section} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -<p> - id: 1000<br /> - name: John Smith<br /> - address: 253 Abbey road -</p> -<p> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln -</p> -<p> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st -</p> -]]> - </screen> - </example> - - - - <example> - <title>ネストした {section}</title> - <para> - {section} は無制限にネスト可能です。{section} をネストすることで、 - 多次元配列のような複雑なデータ構造にアクセスすることが可能です。 - これは、配列を割り当てる <filename>.php</filename> スクリプトの例です。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> -</programlisting> -<para>このテンプレートでは、<emphasis>$contact_type[customer]</emphasis> - は現在の顧客の連絡手段を格納した配列となります。</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} -<hr> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]}<br /> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br /> - {/section} -{/section} -]]> - </programlisting> - <para> - 上の例の出力。 - </para> - <screen> -<![CDATA[ -<hr> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th<br /> - home phone: 555-555-5555<br /> - cell phone: 666-555-5555<br /> - e-mail: john@myexample.com<br /> -<hr> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln<br /> - home phone: 123-456-4<br /> - web: www.example.com<br /> -<hr> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st<br /> - cell phone: 0457878<br /> -]]> - </screen> - </example> - - -<example> -<title>データベースを使用する {sectionelse} の例</title> - <para>データベース (ADODB や PEAR) の検索結果を Smarty に格納します。</para> - <programlisting role="php"> - <![CDATA[ -<?php -$sql = 'select id, name, home, cell, email from contacts ' - ."where name like '$foo%' "; -$smarty->assign('contacts', $db->getAll($sql)); -?> -]]> -</programlisting> -<para>データベースの結果を HTML のテーブルに出力するテンプレート</para> - <programlisting> -<![CDATA[ -<table> -<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> -{section name=co loop=$contacts} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{sectionelse} - <tr><td colspan="5">No items found</td></tr> -{/section} -</table> -]]> -</programlisting> - </example> - - - <sect2 id="section.property.index"> - <title>.index</title> - <para> - <parameter>index</parameter> は現在のループインデックスを表示します。 - 0(又は <parameter>start</parameter> 属性の値)から始まり、 - 1(又は <parameter>step</parameter> 属性の値)ずつ増加します。 - </para> - <note> - <title>注意</title> - <para> - <parameter>step</parameter> と <parameter>start</parameter> - 属性が変更されていない場合は、セクションのプロパティ <link - linkend="section.property.iteration"><parameter>iteration</parameter></link> - と同じ動作をします。ただ、1 ではなく 0 から始まるという点が異なります。 - </para> - </note> - <example> -<title>{section} の <varname>index</varname> プロパティ</title> -<para> -<note><title>注意</title> -<para><literal>$custid[customer.index]</literal> と -<literal>$custid[customer]</literal> は同じ意味です。</para> -</note> -</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="section.property.index.prev"> - <title>.index_prev</title> - <para> - <parameter>index_prev</parameter> - は前回のループインデックスを表示します。最初のループでは-1がセットされます。 - </para> - </sect2> - - <sect2 id="section.property.index.next"> - <title>.index_next</title> - <para> - <parameter>index_next</parameter> - は次回のループインデックスを表示します。 - ループの最後でもやはり現在のインデックスの次回の値を返します - (<parameter>step</parameter> 属性の設定に従います)。 - </para> - - <example> -<title><varname>index</varname>、<varname>index_next</varname> - および <varname>index_prev</varname> プロパティ</title> -<programlisting role="php"> -<![CDATA[ -<?php -$data = array(1001,1002,1003,1004,1005); -$smarty->assign('rows',$data); -?> -]]> -</programlisting> -<para>上の配列をテーブルに出力するテンプレート</para> - <programlisting> -<![CDATA[ -{* $rows[row.index] と $rows[row] は同じ意味です *} -<table> - <tr> - <th>index</th><th>id</th> - <th>index_prev</th><th>prev_id</th> - <th>index_next</th><th>next_id</th> - </tr> -{section name=row loop=$rows} - <tr> - <td>{$smarty.section.row.index}</td><td>{$rows[row]}</td> - <td>{$smarty.section.row.index_prev}</td><td>{$rows[row.index_prev]}</td> - <td>{$smarty.section.row.index_next}</td><td>{$rows[row.index_next]}</td> - </tr> -{/section} -</table> -]]> - </programlisting> - <para> - 上の例の出力するテーブルは次のようになります。 - </para> - <screen> -<![CDATA[ -index id index_prev prev_id index_next next_id -0 1001 -1 1 1002 -1 1002 0 1001 2 1003 -2 1003 1 1002 3 1004 -3 1004 2 1003 4 1005 -4 1005 3 1004 5 -]]> - </screen> - </example> - </sect2> - - - <sect2 id="section.property.iteration"> - <title>.iteration</title> - <para> - <parameter>iteration</parameter> は現在のループが反復された回数を表示します。 - </para> - <note> - <para> - <link linkend="section.property.index"><parameter>index</parameter></link> - プロパティとは異なり、これは <varname>{section}</varname> のプロパティ - <parameter>start</parameter>、<parameter>step</parameter> および <parameter>max</parameter> - の影響を受けません。 - <parameter>iteration</parameter> も 1 から始まります。これは - <parameter>index</parameter> が 0 から始まるのとは異なります。<link - linkend="section.property.rownum"><parameter>rownum</parameter></link> - は <parameter>iteration</parameter> の別名で、全く同じ働きをします。 - </para> - </note> - <example> -<title>セクションのプロパティ <varname>iteration</varname></title> -<programlisting role="php"> -<![CDATA[ -<?php -// 3000 から 3015 までの配列 -$id = range(3000,3015); -$smarty->assign('arr',$id); -?> -]]> -</programlisting> -<para><literal>$arr</literal> 配列の要素を -<literal>step=2</literal> で出力するテンプレート</para> - <programlisting> -<![CDATA[ -{section name=cu loop=$arr start=5 step=2} - iteration={$smarty.section.cu.iteration} - index={$smarty.section.cu.index} - id={$custid[cu]}<br /> -{/section} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -iteration=1 index=5 id=3005<br /> -iteration=2 index=7 id=3007<br /> -iteration=3 index=9 id=3009<br /> -iteration=4 index=11 id=3011<br /> -iteration=5 index=13 id=3013<br /> -iteration=6 index=15 id=3015<br /> -]]> - </screen> - <para> - もうひとつの例は、<parameter>iteration</parameter> プロパティを使用して - 5 行おきにテーブルのヘッダ部を出力します。 - </para> - <programlisting> -<![CDATA[ -<table> -{section name=co loop=$contacts} - {if $smarty.section.co.iteration is div by 5} - <tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> - {/if} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> - </programlisting> - <para> - <parameter>iteration</parameter> プロパティを使って、 - 3 行ごとにテキストの色を変更します。 - </para> - <programlisting> - <![CDATA[ - <table> - {section name=co loop=$contacts} - {if $smarty.section.co.iteration is even by 3} - <span style="color: #ffffff">{$contacts[co].name}</span> - {else} - <span style="color: #dddddd">{$contacts[co].name}</span> - {/if} - {/section} - </table> - ]]> - </programlisting> -</example> - - -<note><para> - <emphasis>"is div by"</emphasis> 構文は、PHP の mod 演算子と同じ意味です。 - mod 演算子も同じように使えるので、<literal>{if $smarty.section.co.iteration % 5 == 1}</literal> - も同じように動作します。 -</para></note> - -<note><para> - 同じく <emphasis>"is odd by"</emphasis> を使えば、色を反転させることができます。 -</para></note> - - </sect2> - - - <sect2 id="section.property.first"> - <title>.first</title> - <para> - <parameter>first</parameter> は、現在 - <varname>{section}</varname> の一回目の処理を行っている場合に - &true; となります。 - </para> - </sect2> - - - <sect2 id="section.property.last"> - <title>.last</title> - <para> - <parameter>last</parameter> は、現在 - <varname>{section}</varname> の最後の処理を行っている場合に - &true; となります。 - </para> - <example> - <title>{section} プロパティ <varname>first</varname> と <varname>last</varname></title> - <para> - この例は <varname>$customers</varname> 配列をループし、 - ループの最初でヘッダブロック、そしてループの最後でフッタブロックを出力します。 - <link linkend="section.property.total"><parameter>total</parameter></link> - プロパティも使用します。 - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers} - {if $smarty.section.customer.first} - <table> - <tr><th>id</th><th>customer</th></tr> - {/if} - - <tr> - <td>{$customers[customer].id}}</td> - <td>{$customers[customer].name}</td> - </tr> - - {if $smarty.section.customer.last} - <tr><td></td><td>{$smarty.section.customer.total} customers</td></tr> - </table> - {/if} -{/section} -]]> - </programlisting> - </example> - </sect2> - - - <sect2 id="section.property.rownum"> - <title>.rownum</title> - <para> - <parameter>rownum</parameter> は現在のループが反復された回数を表示します(1から開始)。 - これは <link - linkend="section.property.iteration"><parameter>iteration</parameter></link> - の別名で、同じ動作をします。 - </para> - </sect2> - - <sect2 id="section.property.loop"> - <title>.loop</title> - <para> - <parameter>loop</parameter> は、この - {section} ループの最後のインデックス番号を表示します。 - <varname>{section}</varname> の内部だけでなく、外部で使用することもできます。 - </para> - <example> - <title>{section} プロパティ <varname>loop</varname></title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -There are {$smarty.section.customer.loop} customers shown above. -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -There are 3 customers shown above. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.show"> - <title>.show</title> - <para> - <parameter>show</parameter> は、セクションのパラメータとして使用する - boolean 値です。&false; の場合はこのセクションは表示されません。 - <varname>{sectionelse}</varname> があれば、それが代わりに表示されます。 - </para> - <example> - <title><varname>show</varname> プロパティ</title> - <para>Boolean <varname>$show_customer_info</varname> を PHP - アプリケーションから渡し、このセクションを表示するかどうかを調整します。</para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$customers[customer]}<br /> -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> - -the section was shown. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.total"> - <title>.total</title> - <para> - <parameter>total</parameter> は <varname>{section}</varname> - がループしたトータル回数を表示します。これは - <varname>{section}</varname> の内部だけでなく外部でも使うことができます。 - </para> - <example> - <title><varname>total</varname> プロパティの例</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - There are {$smarty.section.customer.total} customers shown above. -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.foreach"><varname>{foreach}</varname></link>、 - <link linkend="language.function.for"><varname>{for}</varname></link>、 - <link linkend="language.function.while"><varname>{while}</varname></link> - および - <link linkend="language.variables.smarty.loops"><parameter>$smarty.section</parameter></link> - も参照ください。 - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-shortform-assign.xml
Deleted
@@ -1,180 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.shortform.assign"> - <title>{$var=...}</title> - <para> - これは {assign} 関数の短縮形です。 - 値を直接テンプレートに代入したり、配列の要素に代入したりできます。 - </para> - - <note><para> - テンプレート内で変数に代入するというのは、 - 本質的にはアプリケーションのロジックをプレゼンテーションに持ち込んでいることになります。 - これは本来 PHP 側でやったほうがうまく処理できることでしょう。 - 自己責任のもとで使いましょう。 - </para></note> - - <para> - 次の属性をタグに追加することができます。 - </para> - - <para><emphasis role="bold">属性</emphasis></para> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="position" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>短縮形</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>scope</entry> - <entry>n/a</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>代入する変数のスコープ。'parent'、'root' あるいは 'global'</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para><emphasis role="bold">オプションのフラグ</emphasis></para> - <informaltable frame="all"> - <tgroup cols="2"> - <colspec colname="param" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>名前</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>nocache</entry> - <entry>変数を 'nocache' 属性つきで代入する</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>シンプルな代入</title> - <programlisting> -<![CDATA[ -{$name='Bob'} - -The value of $name is {$name}. -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -The value of $name is Bob. -]]> - </screen> - </example> - - <example> - <title>計算結果の代入</title> - <programlisting> -<![CDATA[ -{$running_total=$running_total+$some_array[row].some_value} -]]> - </programlisting> - </example> - - <example> - <title>配列要素の代入</title> - <programlisting> -<![CDATA[ -{$user.name="Bob"} -]]> - </programlisting> - </example> - - <example> - <title>多次元配列の要素の代入</title> - <programlisting> -<![CDATA[ -{$user.name.first="Bob"} -]]> - </programlisting> - </example> - - <example> - <title>配列要素の追加</title> - <programlisting> -<![CDATA[ -{$users[]="Bob"} -]]> - </programlisting> - </example> - - <example> - <title>呼び出し元テンプレートのスコープでの代入</title> - <para>インクルードされたテンプレート内で代入した変数は、インクルードした側のテンプレートからも見えます。</para> - <programlisting> -<![CDATA[ -{include file="sub_template.tpl"} -... -{* サブテンプレートで代入した変数を表示します *} -{$foo}<br> -... -]]> - </programlisting> - <para>上のテンプレートでインクルードしている <filename>sub_template.tpl</filename> の例を次に示します。</para> - <programlisting> -<![CDATA[ -... -{* foo はインクルード元のテンプレートからも見えます *} -{$foo="something" scope=parent} -{* bar はこのテンプレート内でしか見えません *} -{$bar="value"} -... -]]> -</programlisting> - </example> - - <para> - <link linkend="language.function.assign"><varname>{assign}</varname></link> - および - <link linkend="language.function.append"><varname>{append}</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.strip"> - <title>{strip}</title> - <para> - Webデザイナーの方は、HTML コードに含まれたホワイトスペースとキャリッジリターンが - ブラウザの表示に影響を及ぼす問題に何度も遭遇した事があると思います。 - 問題を回避するには、テンプレートの全てのタグを連ねて記述する必要があります。 - しかしこれでは大変読みづらく管理しにくいテンプレートになってしまいます。 - </para> - <para> - <varname>{strip}{/strip}</varname> タグに囲まれたコンテンツは、 - ブラウザに表示される前に、各行の先頭と終端にある - 余分なホワイトスペースやキャリッジリターンが除去されます。 - これによってテンプレートは可読性を維持し、 - 余分なホワイトスペースによって問題を引き起こす心配もありません。 - </para> - <note> - <para> - <varname>{strip}{/strip}</varname> はテンプレート変数の内容に影響しません。 - 詳細は <link linkend="language.modifier.strip">strip 修飾子</link> - を参照してください。 - </para> - </note> - <example> - <title>{strip} タグ</title> - <programlisting> -<![CDATA[ -{* 次の例は全て1行に出力されます *} -{strip} -<table border='0'> - <tr> - <td> - <a href="{$url}"> - <font color="red">This is a test</font> - </a> - </td> - </tr> -</table> -{/strip} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -<table border='0'><tr><td><a href="http://. snipped...</a></td></tr></table> -]]> - </screen> - </example> - <para> - 上記の例は、全ての行が HTML タグで始まり HTML タグで終わる事に注意して下さい。 - 全ての行は連ねて出力されます。行の始めか終わりにプレーンテキストがある場合は、 - 連続して出力されたその結果は望むものではないかもしれません。 - </para> - <para> - <link linkend="language.modifier.strip"><varname>strip</varname></link> - 修飾子も参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-builtin-functions/language-function-while.xml
Deleted
@@ -1,183 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="language.function.while"> - <title>{while}</title> - <para> - Smarty における <varname>{while}</varname> ループは、PHP の - <ulink url="&url.php-manual;while">while</ulink> と同等の柔軟性を持っています。 - さらに、テンプレートエンジンのための機能をいくつか追加しています。 - 全ての <varname>{while}</varname> は、対応する - <varname>{/while}</varname> とペアである必要があります。 - <emphasis>||</emphasis> や <emphasis>or</emphasis>、 - <emphasis>&&</emphasis>、<emphasis>and</emphasis>、 - <emphasis>is_array()</emphasis> など、PHP の条件演算子や関数はすべて利用可能です。 - </para> - <para> - 以下は認識される条件演算子の一覧です。 - これらはスペースによって周りの要素から分離される必要があります。 - [ ] で囲まれた要素は任意であることに注意しましょう。 - "PHP 相当" には、PHP において当てはまるものが示されます。 - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>条件演算子</entry> - <entry>代替</entry> - <entry>構文例</entry> - <entry>意味</entry> - <entry>PHP 相当</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>等しい</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>等しくない</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>より大きい</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>より小さい</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>以上</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>以下</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>同一性のチェック</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>否定 (単項)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>剰余</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>割り切れる</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>偶数である [ない] (単項)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>偶数番目のグループである [ない]</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>奇数である [ない] (単項)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>奇数番目のグループである [ない]</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{while} ループ</title> - <programlisting> -<![CDATA[ - -{while $foo > 0} - {$foo--} -{/while} -]]> - </programlisting> - <para> - 上の例は、$foo の値を 1 になるまでカウントダウンします。 - </para> - </example> - - <para> - <link linkend="language.function.foreach"><varname>{foreach}</varname></link>、 - <link linkend="language.function.for"><varname>{for}</varname></link> - および - <link linkend="language.function.section"><varname>{section}</varname></link> - も参照ください。 - </para> - -</sect1> -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-combining-modifiers.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="language.combining.modifiers"> - <title>修飾子の連結</title> - <para> - 変数には複数の修飾子を適用できます。 - それらは左から右に連結された順に適用されます。 - 各修飾子は、<literal>|</literal> (パイプ) キャラクタで連結しなければなりません。 - </para> - <example> - <title>修飾子の連結</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); - -?> -]]> -</programlisting> -<para> -テンプレート -</para> -<programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - 上の例の出力は次のようになります。 - </para> - <screen> -<![CDATA[ -Smokers are Productive, but Death Cuts Efficiency. -S M O K E R S A R ....snip.... H C U T S E F F I C I E N C Y . -s m o k e r s a r ....snip.... b u t d e a t h c u t s... -s m o k e r s a r e p r o d u c t i v e , b u t . . . -s m o k e r s a r e p. . . -]]> - </screen> - </example> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="language.custom.functions"> - <title>カスタム関数</title> - <para> - Smarty は、テンプレートで使用可能なカスタム関数をいくつか実装しています。 - </para> - - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-textformat; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.counter"> - <title>{counter}</title> - <para> - <varname>{counter}</varname> はカウントした回数を表示します。 - <varname>{counter}</varname> は各反復の回数を記憶します。 - 数字、カウントの間隔や進行方向、値の表示/非表示などを設定できます。 - また、各々にユニークなname属性を与える事によって、 - 同時に複数のカウンタを実行する事ができます。name属性を指定しなかった場合は、 - <quote>default</quote> を使用します。 - </para> - <para> - <parameter>assign</parameter> 属性を指定した場合は、 - <varname>{counter}</varname> 関数の出力がこのテンプレート変数に格納され、 - テンプレートには出力されません。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>default</emphasis></entry> - <entry>カウンタの名前</entry> - </row> - <row> - <entry>start</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>カウントを開始する数</entry> - </row> - <row> - <entry>skip</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>1</emphasis></entry> - <entry>カウントの間隔</entry> - </row> - <row> - <entry>direction</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>up</emphasis></entry> - <entry>カウントの進行方向 (up/down)</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>値を表示するかどうか</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力が割り当てられるテンプレート変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{counter}</title> - <programlisting> -<![CDATA[ -{* initialize the count *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.cycle"> - <title>{cycle}</title> - <para> - <varname>{cycle}</varname> は、値の設定に従って循環します。 - テーブル内のセルの色を交互に2色もしくはそれ以上の色に変更したり、 - 配列の値を循環するような事が簡単に行えます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>default</emphasis></entry> - <entry>サイクルの名前</entry> - </row> - <row> - <entry>values</entry> - <entry>mixed</entry> - <entry>Yes</entry> - <entry><emphasis>N/A</emphasis></entry> - <entry>カンマを境界としたリスト (delimiter属性を参照) - または値の配列のどちらかによって指定する、循環される値 - </entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>値を表示するかどうか</entry> - </row> - <row> - <entry>advance</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>次の値に進むかどうか</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>,</emphasis></entry> - <entry>value 属性で使用するためのデリミタ</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力が割り当てられるテンプレート変数</entry> - </row> - <row> - <entry>reset</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>次の値に進まずに、最初の値をセットする。</entry> - </row> - </tbody> - </tgroup> - </informaltable> - -<itemizedlist> - <listitem><para> - <parameter>name</parameter> 属性を渡す事によって、テンプレート内で - 1つ以上の値のセットを通して <varname>{cycle}</varname> を行えます。 - 各 <varname>{cycle}</varname> にはユニークな <parameter>name</parameter> - を与えてください。 - </para></listitem> - <listitem><para> - <parameter>print</parameter> 属性に &false; をセットする事で、 - 強制的に現在の値を表示しない事が可能です。これは、 - こっそり値をスキップするのに役に立つでしょう。 - </para></listitem> - <listitem><para> - <parameter>advance</parameter> 属性は値を繰り返すために使われます。 - &false; をセットした時に次の <varname>{cycle}</varname> が呼ばれると、 - 同じ値を表示します。 - </para></listitem> - <listitem><para> - <parameter>assign</parameter> 属性を指定した場合は、 - <varname>{cycle}</varname> 関数の出力は - テンプレートに出力される代わりにテンプレート変数に割り当てられます。 - </para></listitem> -</itemizedlist> - - <example> - <title>{cycle}</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr class="{cycle values="odd,even"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> - </programlisting> - <para>上のテンプレートの出力</para> - <screen> -<![CDATA[ -<tr class="odd"> - <td>1</td> -</tr> -<tr class="even"> - <td>2</td> -</tr> -<tr class="odd"> - <td>3</td> -</tr> -]]> - </screen> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <para> - <varname>{debug}</varname> は、ページにデバッギングコンソールを出力します。 - これは、PHP スクリプトにおける <link linkend="chapter.debugging.console">debug</link> - の設定に関係なく動作します。これはプログラムを実行した時、 - 使用されるテンプレートは表示せずに、<link linkend="api.assign">割り当てられた</link>変数のみを表示します。 - ですが、現在このテンプレートのスコープ内で有効な変数をすべて見る事ができます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>javascript</emphasis></entry> - <entry>出力タイプ。html又はjavascript</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <link linkend="chapter.debugging.console">デバッギングコンソール</link> - のページも参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.eval"> - <title>{eval}</title> - <para> - <varname>{eval}</varname> は、与えられた変数をテンプレートとして評価します。 - テンプレート変数又はテンプレートタグを - 変数や設定ファイル内に埋め込むような用途に使われます。 - </para> - <para> - <parameter>assign</parameter> 属性が指定されると、 - <varname>{eval}</varname> 関数の出y録はこのテンプレート変数に割り当てられ、 - テンプレートに出力されることはありません。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>評価される変数 (又は文字列)</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力が割り当てられるテンプレート変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>テクニカルノート</title> - <para> - <itemizedlist> - <listitem><para> - 評価される変数は、テンプレートと同じように扱われます。 - エスケープやセキュリティ機能も、テンプレートと同様になります。 - </para></listitem> - - <listitem><para> - 評価される変数はリクエスト毎にコンパイルされるので、 - コンパイルされた形式では保存されません。ですが、 - <link linkend="caching">キャッシュ</link> が有効に設定されている場合は、 - 残りのテンプレートの出力に関してはキャッシュされます。 - </para></listitem> - </itemizedlist> - </para> - </note> - - <example> - <title>{eval}</title> -<para>設定ファイル <filename>setup.conf</filename></para> - <programlisting> -<![CDATA[ -emphstart = <strong> -emphend = </strong> -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{config_load file='setup.conf'} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign='state_error'} -{$state_error} -]]> - </programlisting> - <para> - 上のテンプレートの出力 - </para> - <screen> -<![CDATA[ -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a <strong>city</strong>. -You must supply a <strong>state</strong>. -]]> - </screen> - </example> - - <example> - <title>もうひとつの {eval} の例</title> - <para>これは、サーバ名 (大文字変換したもの) と IP を出力します。 - 割り当てられる変数 <parameter>$str</parameter> は、 - データベースのクエリから取得します。</para> - <programlisting role="php"> - <![CDATA[ -<?php -$str = 'The server name is {$smarty.server.SERVER_NAME|upper} ' - .'at {$smarty.server.SERVER_ADDR}'; -$smarty->assign('foo',$str); -?> - ]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> - <![CDATA[ - {eval var=$foo} - ]]> - </programlisting> - </example> - - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.fetch"> - <title>{fetch}</title> - <para> - <varname>{fetch}</varname> は、ローカルシステムやhttp, ftpからファイルを取得し、 - コンテンツを表示します。 - </para> - - <itemizedlist> - <listitem><para> - ファイル名が <parameter>http://</parameter> から始まる場合は、web - サイト上のページを取得して表示します。 - <note> - <para> - http リダイレクトはサポートしていません。 - 必要に応じて、最後のスラッシュをつけることを忘れないようにしましょう。 - </para> - </note> - </para></listitem> - - <listitem><para> - ファイル名が <parameter>ftp://</parameter> で始まる場合は、 - ftp サーバからダウンロードしたファイルを表示します。 - </para></listitem> - - <listitem><para> - ローカルファイルの場合には、ファイルのフルパスあるいは - 実行する PHP スクリプトからの相対パスを指定する必要があります。 - <note> - <para>セキュリティが有効になっており、ファイルをローカルファイルシステムから取得する場合、 - <varname>{fetch}</varname> はセキュリティポリシーの <parameter>$secure_dir</parameter> - で指定されたパスにあるファイルのみを受け付けます。 - 詳細は <link linkend="advanced.features.security">セキュリティ</link> の節を参照ください。 - </para> - </note> - </para></listitem> - - <listitem><para> - <parameter>assign</parameter> 属性を指定すると、 - <varname>{fetch}</varname> 関数の出力がこのテンプレート変数に割り当てられます。 - テンプレートには出力されません。 - </para></listitem> -</itemizedlist> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>取得するファイル、http あるいは ftp のサイト</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力が割り当てられるテンプレート変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{fetch} の例</title> - <programlisting> -<![CDATA[ -{* テンプレートにJavaScriptを含めます *} -{fetch file='/export/httpd/www.example.com/docs/navbar.js'} - -{* 他のwebサイトからテンプレートに天候のテキストを埋め込みます *} -{fetch file='http://www.myweather.com/68502/'} - -{* ftp経由でニュースヘッドラインファイルを取得します *} -{fetch file='ftp://user:password@ftp.example.com/path/to/currentheadlines.txt'} -{* 上と同じですが、変数を使用します *} -{fetch file="ftp://`$user`:`$password`@`$server`/`$path`"} - -{* 取得したコンテンツをテンプレート変数に割り当てます *} -{fetch file='http://www.myweather.com/68502/' assign='weather'} -{if $weather ne ''} - <div id="weather">{$weather}</div> -{/if} -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.capture"><varname>{capture}</varname></link>、 - <link linkend="language.function.eval"><varname>{eval}</varname></link>、 - <link linkend="language.function.assign"><varname>{assign}</varname></link> および - <link linkend="api.fetch"><varname>fetch()</varname></link> も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,230 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.checkboxes"> - <title>{html_checkboxes}</title> - <para> - <varname>{html_checkboxes}</varname> は、 - 提供されたデータから HTML チェックボックスグループを作成する - <link linkend="language.custom.functions">カスタム関数</link> - です。デフォルトで選択されているアイテムの指定もうまく配慮されます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>チェックボックスリストの名前</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Yes (options属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>チェックボックスボタンの値の配列</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Yes (options属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>チェックボックスボタンの出力の配列</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>あらかじめ選択されたチェックボックス要素群</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Yes (valuesとoutput属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>values属性とoutput属性の連想配列</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>各チェックボックスアイテムを区分するための文字列</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>チェックボックスのタグを出力せずに配列に格納する</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&true;</emphasis></entry> - <entry>出力に <label> タグを加える</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - <parameter>options</parameter> を使用しない場合は、 - 必須の属性は <parameter>values</parameter> および - <parameter>output</parameter> となります。 - </para></listitem> - - <listitem><para> - 全ての出力は XHTML 準拠です。 - </para></listitem> - - <listitem><para> - 上の属性リストに無いパラメータが与えられた場合は、作成された各 - <input> タグの内側に名前/値のペアで表されます。 - </para></listitem> - </itemizedlist> - - <example> - <title>{html_checkboxes}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> -テンプレート - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - あるいは、このような PHP コードに対して - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - テンプレートはこのようになります。 - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name='id' options=$cust_checkboxes - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - どちらも、出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label> -<br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title> - データベースの例 (PEAR あるいは ADODB) - </title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, contact_type_id, contact ' - .'from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para>データベースのクエリの出力</para> -<programlisting> -<![CDATA[ -{html_checkboxes name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> -</programlisting> - </example> - <para> - <link linkend="language.function.html.radios"><varname>{html_radios}</varname></link> - および - <link linkend="language.function.html.options"><varname>{html_options}</varname></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.image"> - <title>{html_image}</title> - <para> - <varname>{html_image}</varname> は、HTML の <literal><img></literal> - タグを作成する - <link linkend="language.custom.functions">カスタム関数</link> です。 - <parameter>height</parameter> 属性と <parameter>width</parameter> - 属性を省略した場合は、画像ファイルから自動的に算出します。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>画像のパス・ファイル名</entry> - </row> - <row> - <entry>height</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>実際の画像の高さ</emphasis></entry> - <entry>画像を表示する高さ</entry> - </row> - <row> - <entry>width</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>実際の画像の幅</emphasis></entry> - <entry>画像を表示する幅</entry> - </row> - <row> - <entry>basedir</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>web サーバのドキュメントルート</emphasis></entry> - <entry>相対パスの基準となるディレクトリ</entry> - </row> - <row> - <entry>alt</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis><quote></quote></emphasis></entry> - <entry>画像の代替テキスト</entry> - </row> - <row> - <entry>href</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>画像にリンクする href の値</entry> - </row> - <row> - <entry>path_prefix</entry> - <entry>string</entry> - <entry>no</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力パスのプレフィックス</entry> - </row> - </tbody> - </tgroup> - </informaltable> - -<itemizedlist> -<listitem><para> - <parameter>basedir</parameter> 属性は、画像の相対パスの基準となるベースディレクトリです。 - 指定しなかった場合は、web サーバのドキュメントルートである - <varname>$_ENV['DOCUMENT_ROOT']</varname> を使用します。 - セキュリティが有効な場合は、画像はセキュリティポリシーの - 詳細は <link linkend="advanced.features.security">セキュリティ</link> の節を参照ください。 - </para></listitem> - - <listitem><para> - <parameter>href</parameter> は画像にリンクされた href の値です。 - これを指定すると、image タグの周りに - <literal><a href="LINKVALUE"><a></literal> - タグを配置します。 - </para> </listitem> - - <listitem><para> - <parameter>path_prefix</parameter> には、任意で - 出力パスを指定できます。これは、画像を違うサーバに配置したい場合に有効です。 - </para></listitem> - - <listitem><para> - 前述の属性リストにないパラメータが与えられた場合は、作成された各 - <literal><img></literal> タグの内側に - 名前/値 のペアで表されます。 - </para></listitem> -</itemizedlist> - - <note> - <title>テクニカルノート</title> - <para> - <varname>{html_image}</varname> は、画像を読み込んで幅と高さを取得するため、 - ディスクへのアクセスが必要です。テンプレートの <link linkend="caching">キャッシュ</link> - を使用しない場合は、<varname>{html_image}</varname> - ではなく静的に image タグを使用するほうがパフォーマンス的にお勧めです。 - </para> - </note> - - <example> - <title>{html_image} の例</title> - <programlisting> -<![CDATA[ -{html_image file='pumpkin.jpg'} -{html_image file='/path/from/docroot/pumpkin.jpg'} -{html_image file='../path/relative/to/currdir/pumpkin.jpg'} -]]> - </programlisting> - <para> - 上のテンプレートの出力 - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" /> -]]> - </screen> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,282 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.options"> - <title>{html_options}</title> - <para> - <varname>{html_options}</varname> は、HTML の - <literal><select><option></literal> グループにデータを代入して作成する - <link linkend="language.custom.functions">カスタム関数</link> です。 - デフォルトで選択されるアイテムも決定できます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Yes (options属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ドロップダウンリストのvalue属性の配列</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Yes (options属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ドロップダウンリストの出力内容の配列</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>あらかじめ選択されているオプション要素</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Yes (valuesとoutput属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>キーがvalues属性、要素がoutput属性の連想配列</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>selectグループの名前</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - <parameter>options</parameter> を使用しない場合は、 - <parameter>values</parameter> および <parameter>output</parameter> - が必須となります。 - </para></listitem> - - - <listitem><para> - 任意である <parameter>name</parameter> 属性が与えられると、 - <literal><select></select></literal> タグが作成されます。 - それ以外の場合は <literal><option></literal> のリストのみを作成します。 - </para></listitem> - - <listitem><para> - 配列が渡された場合は HTML の <literal><optgroup></literal> - として扱われ、グループが表示されます。 - <literal><optgroup></literal> での再帰呼出もサポートしています。 - </para></listitem> - - <listitem><para> - 前述の属性リストに無いパラメータが与えられた場合は、 - 作成された各 <literal><select></literal> タグの内側に - 名前/値 のペアで表されます。任意の <parameter>name</parameter> - 属性が与えられない場合には、これらは無視されます。 - </para></listitem> - - <listitem><para> - すべての出力は XHTML に準拠しています。 - </para></listitem> - </itemizedlist> - - - <example> - <title><varname>options</varname> 属性での連想配列</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') - ); -$smarty->assign('mySelect', 9904); -?> -]]> - </programlisting> - <para> - 以下のテンプレートはドロップダウンリストを作成します。 - <parameter>name</parameter> 属性が存在することで - <literal><select></literal> タグが作成されることに注意しましょう。 - </para> - <programlisting> -<![CDATA[ -{html_options name=foo options=$myOptions selected=$mySelect} -]]> - </programlisting> - - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -<select name="foo"> -<option label="Joe Schmoe" value="1800">Joe Schmoe</option> -<option label="Jack Smith" value="9904" selected="selected">Jack Smith</option> -<option label="Charlie Brown" value="2003">Charlie Brown</option> -</select> -]]> -</screen> -</example> - -<example> -<title><varname>values</varname> と -<varname>ouptut</varname> を個別の配列で指定したドロップダウン</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('cust_ids', array(56,92,13)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 92); -?> -]]> - </programlisting> - <para> - 上の配列を次のテンプレートで出力します - (PHP の <ulink url="&url.php-manual;function.count"> - <varname>count()</varname></ulink> 関数を修飾子として使用することで、 - select の大きさを設定していることに注意しましょう)。 - </para> - <programlisting> -<![CDATA[ -<select name="customer_id" size="{$cust_names|@count}"> - {html_options values=$cust_ids output=$cust_names selected=$customer_id} -</select> -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ -<select name="customer_id" size="3"> - <option label="Joe Schmoe" value="56">Joe Schmoe</option> - <option label="Jack Smith" value="92" selected="selected">Jane Johnson</option> - <option label="Charlie Brown" value="13">Charlie Brown</option> -</select> - -]]> - </screen> - </example> - <example> - <title>データベース (ADODB あるいは PEAR) の例</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> -</programlisting> -<para> -テンプレートは次のようになります。 -<link linkend="language.modifier.truncate"><varname>truncate</varname></link> -修飾子の使用法に注意しましょう。 -</para> -<programlisting> -<![CDATA[ -<select name="type_id"> - <option value='null'>-- none --</option> - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} -</select> -]]> - </programlisting> - </example> - - <example> - <title><optgroup> を使用したドロップダウン</title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr['Sport'] = array(6 => 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - </programlisting> - <para>テンプレート - </para> - <programlisting> -<![CDATA[ -{html_options name=foo options=$lookups selected=$fav} -]]> - </programlisting> - - <para> - 出力 - </para> - <screen> -<![CDATA[ -<select name="foo"> -<optgroup label="Sport"> -<option label="Golf" value="6">Golf</option> -<option label="Cricket" value="9">Cricket</option> -<option label="Swim" value="7" selected="selected">Swim</option> -</optgroup> -<optgroup label="Rest"> -<option label="Sauna" value="3">Sauna</option> -<option label="Massage" value="1">Massage</option> -</optgroup> -</select> -]]> -</screen> -</example> - - <para> - <link linkend="language.function.html.checkboxes"><varname>{html_checkboxes}</varname></link> - および - <link linkend="language.function.html.radios"><varname>{html_radios}</varname></link> - も参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,225 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.radios"> - <title>{html_radios}</title> - <para> - <varname>{html_radios}</varname> は - HTML のラジオボタングループを作成する - <link linkend="language.custom.functions">カスタム関数</link> - です。デフォルトで選択されているアイテムの指定も考慮します。 - </para> - - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>ラジオリストの名前</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Yes (options属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ラジオボタンの値の配列</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Yes (options属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ラジオボタンの項目内容の配列</entry> - </row> - <row> - <entry>selected</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>あらかじめ選択されたラジオ要素</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Yes (valuesとoutput属性を用いない場合)</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>values属性とoutput属性の連想配列</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>各ラジオアイテムを区分するための文字列</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>radio タグを配列に格納し、出力はしない</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - <parameter>options</parameter> を使用しない場合は - <parameter>values</parameter> および - <parameter>output</parameter> が必須となります。 - </para></listitem> - - <listitem><para> - 全ての出力は XHTML に準拠しています。 - </para></listitem> - - <listitem><para> - 前述の属性リストに無いパラメータが与えられた場合は、 - 作成された各 <literal><input></literal> タグの内側に - 名前/値 のペアで表されます。 - </para></listitem> - </itemizedlist> - <example> - <title>{html_radios} の最初の例</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} - ]]> - </programlisting> -</example> -<example> - <title>{html_radios} の二番目の例</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' options=$cust_radios - selected=$customer_id separator='<br />'} -]]> - </programlisting> - <para> - どちらも、次のように出力します。 - </para> - <screen> -<![CDATA[ -<label for="id_1000"> -<input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br /> -<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br /> -<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br /> -<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title>{html_radios} - データベース (PEAR あるいは ADODB) の例</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id ' - .'from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - データベースから割り当てた変数を、次のテンプレートで出力します。 - </para> - <programlisting> -<![CDATA[ -{html_radios name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> - </programlisting> - </example> - <para> - <link - linkend="language.function.html.checkboxes"><varname>{html_checkboxes}</varname></link> - および <link - linkend="language.function.html.options"><varname>{html_options}</varname></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - - -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,347 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.select.date"> - <title>{html_select_date}</title> - <para> - <varname>{html_select_date}</varname> は、日付のドロップダウンリストを作成する - <link linkend="language.custom.functions">カスタム関数</link> です。 - 年・月・日のいずれか又は全てを表示する事が出来ます。 - 以下の属性リストに無いパラメータが与えられた場合は、 - 作成された年、月、日の各 <literal><select></literal> タグの内側に - 名前/値 のペアで表されます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Date_</entry> - <entry>name属性に付加する接頭辞</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/ YYYY-MM-DD</entry> - <entry>No</entry> - <entry>UNIXタイムスタンプ又はYYYY-MM-DDフォーマットによる現在の時間</entry> - <entry>使用する日付/時間</entry> - </row> - <row> - <entry>start_year</entry> - <entry>string</entry> - <entry>No</entry> - <entry>現在の年</entry> - <entry>ドロップダウンリストの始めの年 - (年を表す数字又は現在の年からの相対年数(+/- N))</entry> - </row> - <row> - <entry>end_year</entry> - <entry>string</entry> - <entry>No</entry> - <entry>start_yearと同じ</entry> - <entry>ドロップダウンリストの終わりの年 - (年を表す数字又は現在の年からの相対年数(+/- N))</entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>日を表示するかどうか</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>月を表示するかどうか</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>年を表示するかどうか</entry> - </row> - <row> - <entry>month_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%B</entry> - <entry>月の表示フォーマット(strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%02d</entry> - <entry>日の出力のフォーマット(sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%d</entry> - <entry>日の値のフォーマット (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>年をテキストとして表示するかどうか</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>年を逆順で表示する</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - name属性が与えられた場合、結果の値を - name[Day],name[Month],name[Year]の形の連想配列にしてPHPに返す - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>日のselectタグにsize属性を追加</entry> - </row> - <row> - <entry>month_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>月のselectタグにsize属性を追加</entry> - </row> - <row> - <entry>year_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>年のselectタグにsize属性を追加</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>全てのselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>日のselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>月のselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>年のselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>field_order</entry> - <entry>string</entry> - <entry>No</entry> - <entry>MDY</entry> - <entry>フィールドを表示する順序</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>フィールド間に表示する文字列</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%m</entry> - <entry>strftime() フォーマットによる月の値(デフォルトは%m)</entry> - </row> - <row> - <entry>year_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - 年のセレクトボックスの最初の要素に、指定した文字列をlabelとして、 - 空文字 <quote></quote> のvalueを持たせます。 - 例えば、セレクトボックスに <quote>年を選択して下さい</quote> と表示させる時に便利です。 - 年を選択しないことを示唆するのに、time属性に対して <quote>-MM-DD</quote> - という値が指定できることに注意してください。</entry> - </row> - <row> - <entry>month_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - 月のセレクトボックスの最初の要素に、指定した文字列をlabelとして、 - 空文字 <quote></quote> のvalueを持たせます。月を選択しないことを示唆するのに、 - time属性に対して <quote>YYYY--DD</quote> という値が指定できることに注意してください。</entry> - </row> - <row> - <entry>day_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - 日のセレクトボックスの最初の要素に、指定した文字列をlabelとして、 - 空文字 <quote></quote> のvalueを持たせます。日を選択しないことを示唆するのに、 - time属性に対して <quote>YYYY-MM-</quote> という値が指定できることに注意してください。</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <para> - <link linkend="tips.dates">日付に関するヒント</link> - のページに、<varname>{html_select_date}</varname> - の値をタイムスタンプに変換する便利な php 関数が紹介されています。 - </para> - </note> - - <example> - <title>{html_select_date}</title> - <para>テンプレートのコード</para> - <programlisting> -<![CDATA[ -{html_select_date} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> - ..... 省略 ..... -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> - ..... 省略 ..... -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected="selected">13</option> -<option value="14">14</option> -<option value="15">15</option> - ..... 省略 ..... -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2006" selected="selected">2006</option> -</select> -]]> - </screen> - </example> - - <example> - <title>{html_select_date} の二番目の例</title> - <programlisting> -<![CDATA[ -{* 開始年および終了年は、現在の年からの相対値となります *} -{html_select_date prefix='StartDate' time=$time start_year='-5' - end_year='+1' display_days=false} -]]> - </programlisting> - <para> - 現在が西暦 2000 だとすると、出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -.... 省略 .... -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="StartDateYear"> -<option value="1995">1995</option> -.... 省略 .... -<option value="1999">1999</option> -<option value="2000" selected="selected">2000</option> -<option value="2001">2001</option> -</select> -]]> - </screen> - </example> - <para> - <link linkend="language.function.html.select.time"><varname>{html_select_time}</varname></link>、 - <link linkend="language.modifier.date.format"><varname>date_format</varname></link>、 - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link> - および <link linkend="tips.dates">日付に関するヒント</link> - も参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,223 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.select.time"> - <title>{html_select_time}</title> - <para> - <varname>{html_select_time}</varname> は、時間のドロップダウンリストを作成する - <link linkend="language.custom.functions">カスタム関数</link> です。 - 時・分・秒・am/pm のいずれか又は全てを表示する事が出来ます。 - </para> - <para> - <parameter>time</parameter> 属性にはUNIXタイムスタンプや - <literal>YYYYMMDDHHMMSS</literal> 形式の文字列、PHP の - <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink> - によって解析可能な文字列のような異なるフォーマットを持たせる事が出来ます。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>No</entry> - <entry>Time_</entry> - <entry>name属性に付加する接頭辞</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>No</entry> - <entry>現在の時間</entry> - <entry>使用する日付/時間</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>時を表示するかどうか</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>分を表示するかどうか</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>秒を表示するかどうか</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>am/pm を表示するかどうか</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>24 時間クロックを用いるかどうか</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>1</entry> - <entry>ドロップダウンリストの分間隔</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>1</entry> - <entry>ドロップダウンリストの秒間隔</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>No</entry> - <entry>n/a</entry> - <entry>結果の値をこの名前の配列に渡して出力</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>全てのselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>時間のselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>分のselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>秒のselect/inputタグに拡張属性を追加</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>am/pmのselect/inputタグに拡張属性を追加</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{html_select_time}</title> - <programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - 現在時刻が午前 9 時 20 分 23 秒だとすると、このテンプレートの出力は次のようになります。 - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -... 省略 .... -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -... 省略 .... -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -... 省略 .... -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -... 省略 .... -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -... 省略 .... -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -... 省略 .... -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> - </example> - <para> - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>、 - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> - および <link linkend="tips.dates">日付に関するヒントのページ</link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,247 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.html.table"> - <title>{html_table}</title> - <para> - <varname>{html_table}</varname> は、HTML の - <literal><table></literal> にデータの配列を出力する - <link linkend="language.custom.functions">カスタム関数</link> です。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ループに用いるデータ配列</entry> - </row> - <row> - <entry>cols</entry> - <entry>mixed</entry> - <entry>No</entry> - <entry><emphasis>3</emphasis></entry> - <entry> - テーブルのカラム数。cols属性は空であるがrows属性が与えられたという場合、 - colsの数は、すべての要素を表示するのに事足りるcolsが表示されるように - rowsの数と要素の数によって計算されます。 - rowsとcolsの両方が空だった場合、 colsのデフォルトは 3 として計算は省かれます。 - リストあるいは配列を渡すと、そのリストあるいは配列の要素数がカラム数となります。 - </entry> - </row> - <row> - <entry>rows</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry> - テーブルの行数。rows属性は空であるがcols属性が与えられたという場合、 - rowsの数は、すべての要素を表示するのに事足りるrowsが表示されるように - colsの数と要素の数によって計算されます。 - </entry> - </row> - <row> - <entry>inner</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>cols</emphasis></entry> - <entry> - ループ配列から参照される連続要素の進行方向。 - <emphasis>cols</emphasis> なら要素が列方向へ、 - <emphasis>rows</emphasis> なら要素が行方向へ記述されることを意味します。 - </entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>テーブルの <literal><caption></literal> - 要素に使用する文字列</entry> - </row> - <row> - <entry>table_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry><literal><table></literal> タグの属性</entry> - </row> - <row> - <entry>th_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry><literal><th></literal> タグの属性 - (配列は循環します)</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry><literal><tr></literal> タグの属性 - (配列は循環します)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry><literal><td></literal> タグの属性 - (配列は循環します)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>行の最後に余ったセルがあればそれらを埋めるのに用いられる値</entry> - </row> - <row> - <entry>hdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>right</emphasis></entry> - <entry> - 各行の表示される方向。有効な値: - <emphasis>right</emphasis> (左から右へ)、 - <emphasis>left</emphasis> (右から左へ) - </entry> - </row> - <row> - <entry>vdir</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>down</emphasis></entry> - <entry> - 各カラムの表示される方向。有効な値: - <emphasis>down</emphasis> (上から下へ)、 - <emphasis>up</emphasis> (下から上へ) - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem><para> - <parameter>cols</parameter> 属性は、テーブルのカラム数を定義します。 - </para></listitem> - - <listitem><para> - <parameter>table_attr</parameter>、<parameter>tr_attr</parameter> - および <parameter>td_attr</parameter> の値は、それぞれ - <literal><table></literal>、<literal><tr></literal> - および <literal><td></literal> タグの属性を表します。 - </para></listitem> - - <listitem><para> - <parameter>tr_attr</parameter> や <parameter>td_attr</parameter> - が配列の場合は、循環して処理します。 - </para></listitem> - - <listitem><para> - <parameter>trailpad</parameter> は、テーブルの最後の行でセルが余った場合に - そこを埋める値として使用します。 - </para></listitem> - </itemizedlist> - - <example> - <title>{html_table}</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign( 'data', array(1,2,3,4,5,6,7,8,9) ); -$smarty->assign( 'tr', array('bgcolor="#eeeeee"','bgcolor="#dddddd"') ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para>PHP から割り当てられた変数の内容を、三通りの方法で出力します。 - それぞれ、テンプレートの後に出力結果を続けます。 - </para> - <programlisting> -<![CDATA[ -{**** 例 1 ****} -{html_table loop=$data} - -<table border="1"> -<tbody> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</tbody> -</table> - - -{**** 例 2 ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - -<table border="0"> -<tbody> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td> </td><td> </td><td> </td></tr> -</tbody> -</table> - - -{**** 例 3 ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - -<table border="1"> -<thead> -<tr> -<th>first</th><th>second</th><th>third</th><th>fourth</th> -</tr> -</thead> -<tbody> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr> -</tbody> -</table> -]]> - </programlisting> - - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,176 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.mailto"> - <title>{mailto}</title> - <para> - <varname>{mailto}</varname> は、<literal>mailto:</literal> - リンクの作成とメールアドレスのエンコードを自動的に行います。 - メールアドレスをエンコードすることで、 - アドレス収集ソフトがあなたのサイトからメールアドレスを取得することを困難にします。 - <note> - <title>テクニカルノート</title> - <para> - Javascript がおそらく一番徹底したエンコードを行いますが、 - hexエンコードも使用する事が出来ます。 - </para> - </note> - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>メールアドレス</entry> - </row> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>表示するテキスト。デフォルトではメールアドレス。</entry> - </row> - <row> - <entry>encode</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>none</emphasis></entry> - <entry>メールアドレスのエンコード方法。 - <literal>none</literal>、 - <literal>hex</literal>、<literal>javascript</literal> - あるいは <literal>javascript_charcode</literal> - のいずれか。</entry> - </row> - <row> - <entry>cc</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>カーボンコピーにあたるメールアドレス。 複数の場合はカンマによって区切られる。 - </entry> - </row> - <row> - <entry>bcc</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ブラインドカーボンコピーにあたるメールアドレス。 - 複数の場合はカンマによって区切られる。</entry> - </row> - <row> - <entry>subject</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>メールの件名</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>投稿するニュースグループ。複数の場合はカンマによって区切られる。</entry> - </row> - <row> - <entry>followupto</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>フォローアップするメールアドレス。複数の場合はカンマによって区切られる。</entry> - </row> - <row> - <entry>extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>リンクする際に渡したい特別な情報(例えばスタイルシートクラス)。</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{mailto} のサンプルと、その結果</title> - <programlisting> -<![CDATA[ -{mailto address="me@example.com"} -<a href="mailto:me@example.com" >me@example.com</a> - -{mailto address="me@example.com" text="send me some mail"} -<a href="mailto:me@example.com" >send me some mail</a> - -{mailto address="me@example.com" encode="javascript"} -<script type="text/javascript" language="javascript"> - eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b')) -</script> - -{mailto address="me@example.com" encode="hex"} -<a href="mailto:%6d%65.. snipped..3%6f%6d">m&..snipped...#x6f;m</a> - -{mailto address="me@example.com" subject="Hello to you!"} -<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a> - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -<a href="mailto:me@example.com?cc=you@example.com%2Cthey@example.com" >me@example.com</a> - -{mailto address="me@example.com" extra='class="email"'} -<a href="mailto:me@example.com" class="email">me@example.com</a> - -{mailto address="me@example.com" encode="javascript_charcode"} -<script type="text/javascript" language="javascript"> - <!-- - {document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))} - //--> -</script> -]]> -</programlisting> - </example> - <para> - <link linkend="language.modifier.escape"><varname>escape</varname></link>、 - <link linkend="language.function.textformat"><varname>{textformat}</varname></link> - および - <link linkend="tips.obfuscating.email">E-mail アドレスを混乱させる</link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file - Local variables: - mode: sgml - sgml-omittag:t - sgml-shorttag:t - sgml-minimize-attributes:nil - sgml-always-quote-attributes:t - sgml-indent-step:1 - sgml-indent-data:t - indent-tabs-mode:nil - sgml-parent-document:nil - sgml-default-dtd-file:"../../../../manual.ced" - sgml-exposed-tags:nil - sgml-local-catalogs:nil - sgml-local-ecat-files:nil - End: - vim600: syn=xml fen fdm=syntax fdl=2 si - vim: et tw=78 syn=sgml - vi: ts=1 sw=1 - --> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,204 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.math"> - <title>{math}</title> - <para> - <varname>{math}</varname> を使用すると、 - テンプレートのデザイナーがテンプレート内で数学の計算を実行できます。 - </para> - <itemizedlist> - <listitem><para> - 式の中では、数値型のテンプレート変数を使用でき、結果はタグの位置に出力されます。 - </para></listitem> - - <listitem><para> - 式で使用する変数はパラメータとして渡します。 - これはテンプレート変数あるいは静的な値のいずれかとなります。 - </para></listitem> - - <listitem><para>+, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans および tan を使用できます。 - これらの詳細については、PHP の - <ulink url="&url.php-manual;eval">数学</ulink> 関数のマニュアルを参照してください。 - </para></listitem> - - <listitem><para> - <parameter>assign</parameter> 属性を指定すると、 - <varname>{math}</varname> 関数の出力はテンプレート変数に格納され、 - テンプレートには出力されません。 - </para></listitem> - </itemizedlist> - - <note> - <title>テクニカルノート</title> - <para> - <varname>{math}</varname> は PHP の - <ulink url="&url.php-manual;eval"><varname>eval()</varname></ulink> - 関数を使用するのでパフォーマンス的にコストの高い関数です。 - PHP 内で math 関数を実行する事は、テンプレートで行うよりもはるかに効率的で、 - mathの計算がPHPで可能な場合はPHPで行い、結果をテンプレートに - <link linkend="api.assign"><varname>assign()</varname></link> するようにしましょう。 - <link linkend="language.function.section"> - <varname>{section}</varname></link> ループ内のような反復動作で - <varname>{math}</varname> 関数を呼び出す事は避けて下さい。 - </para> - </note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>実行する式</entry> - </row> - <row> - <entry>format</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>結果の表示フォーマット (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numeric</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>式の変数に渡す値</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力を割り当てるテンプレート変数</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numeric</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>式の変数の値</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{math}</title> - <para> - <emphasis role="bold">サンプル a:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $height=4, $width=5 *} - - {math equation="x + y" x=$height y=$width} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - 9 -]]> - </screen> - <para> - <emphasis role="bold">サンプル b:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $row_height = 10, $row_width = 20, #col_div# = 2, テンプレートで割り当てます *} - - {math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - 100 -]]> - </screen> - <para> - <emphasis role="bold">サンプル c:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* 括弧も使用できます *} - - {math equation="(( x + y ) / z )" x=2 y=10 z=2} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - 6 -]]> - </screen> - <para> - <emphasis role="bold">サンプル d:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* sprintf 形式のフォーマット文字列を指定できます *} - - {math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - ]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - 9.44 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,297 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.function.textformat"> - <title>{textformat}</title> - <para> - <varname>{textformat}</varname> は、 - テキストを整形するために用いる - <link linkend="plugins.block.functions">ブロック関数</link> です。 - これは基本的に空白と特殊文字を取り除き、 - 境界でラップして行をインデントする事によって段落を整形します。 - </para> - <para> - 明示的にパラメータを設定したり、あらかじめ決められたスタイルを使用したりできます。現在、 - <quote>email</quote> のみが有効なスタイルです。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>属性名</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>あらかじめ決められたスタイル</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry>各行をインデントするキャラクタ数</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>0</emphasis></entry> - <entry>最初の行をインデントするキャラクタ数</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>(半角スペース1個)</emphasis></entry> - <entry>インデントするために使われるキャラクタ(又は文字列)</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>No</entry> - <entry><emphasis>80</emphasis></entry> - <entry>各行をいくつのキャラクタ数でラップするか</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>各行を分割するためのキャラクタ(又は文字列)</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>&false;</emphasis></entry> - <entry>&true; ならば、単語の境界の代わりに正確なキャラクタ数で行を分割します。</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>出力が割り当てられるテンプレート変数</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{textformat}</title> - <programlisting> -<![CDATA[ - {textformat wrap=40} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. - This is foo. This is foo. This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4 indent_first=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat style="email"} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - 上の例の出力 - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. This is foo. This is foo. This is - foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo - foo. - -]]> - </screen> - </example> - <para> - <link linkend="language.function.strip"><varname>{strip}</varname></link> - および - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> - も参照してください。 - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers.xml
Deleted
@@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="language.modifiers"> - <title>変数の修飾子</title> - <para> - 変数の修飾子は、 - <link linkend="language.syntax.variables">変数</link> や - <link linkend="language.custom.functions">カスタム関数</link> - や文字列を修飾して出力することができます。修飾子を適用するには、 - 変数名の後に <literal>|</literal> (パイプ) と修飾子の名前を指定します。 - また、修飾子はその動作に影響を及ぼす追加のパラメータを受け入れる場合もあります。 - そのパラメータは修飾子の後に続き、<literal>:</literal> (コロン) によって区切られます。 - また、<emphasis>すべての PHP 関数は、暗黙的に修飾子として使用でき</emphasis> - (あとで説明します)、修飾子は <link linkend="language.combining.modifiers">組み合わせる</link> - こともできます。 - </para> - <example> - <title>修飾子の例</title> - <programlisting> -<![CDATA[ -{* 変数に修飾子を適用 *} -{$title|upper} - -{* パラメータを持つ修飾子 *} -{$title|truncate:40:"..."} - -{* 関数のパラメータに修飾子を適用 *} -{html_table loop=$myvar|upper} - -{* パラメータ付き *} -{html_table loop=$myvar|truncate:40:"..."} - -{* リテラル文字列に修飾子を適用 *} -{"foobar"|upper} - -{* 現在の日付を整形するために date_format を使用 *} -{$smarty.now|date_format:"%Y/%m/%d"} - -{* カスタム関数に修飾子を適用 *} -{mailto|upper address="smarty@example.com"} - -{* php の str_repeat を使用 *} -{"="|str_repeat:80} - -{* php の count *} -{$myArray|@count} - -(* 配列全体の大文字変換と切り詰め *} -<select name="name_id"> -{html_options output=$my_array|upper|truncate:20} -</select> -]]> - </programlisting> - </example> - <itemizedlist> - - <listitem><para> - 修飾子は、配列やオブジェクトを含む任意の型の変数に適用することができます。 - - <note><para>Smarty 3 ではデフォルトの挙動が変わりました。Smarty 2.x の場合は - 配列に修飾子を適用するときには "<literal>@</literal>" を使って - <literal>{$articleTitle|@count}</literal> のようにする必要がありましたが、 - Smarty 3 では "<literal>@</literal>" は不要になり、無視されます。 - </para> - <para> - 配列の個々の要素に対して修飾子を適用したい場合は、 - テンプレート内で配列をループさせるか - 修飾子関数の中にその機能を組み込まなければなりません。 - </para></note> - </para> - </listitem> - - <listitem><para> - 修飾子は <link - linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link> - から自動的に読み込むか、明示的に <link - linkend="api.register.plugin"><varname>registerPlugin()</varname></link> - 関数で登録します。2つ目の方法は、PHP スクリプトと Smarty テンプレートで - 関数を共有する場合などに有用です。 - </para></listitem> - - <listitem><para> - 先ほどの例で示したように、全ての PHP 関数は暗黙で修飾子として使用する事ができます。 - しかし、修飾子としてPHP関数を使うには2つの小さな落とし穴があります。 - <itemizedlist> - <listitem><para>第1に、 たまに関数のパラメータの順序が望ましいものではなくります。 - <literal>$foo</literal> を - <literal>{"%2.f"|sprintf:$foo}</literal> でフォーマットすることはできますが、 - Smarty が提供する方式である <literal>{$foo|string_format:"%2.f"}</literal> - のほうがより直感的です。 - </para></listitem> - <listitem><para> - 第2に、セキュリティが有効な場合、 - 修飾子として使用される全ての PHP 関数は - セキュリティポリシーの <parameter>$modifiers</parameter> - プロパティで信頼できるものとして定義される必要があります。 - 詳細は <link linkend="advanced.features.security">セキュリティ</link> - の節を参照ください。 - </para></listitem> - </itemizedlist> - </para></listitem> - </itemizedlist> - - <para> - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link>、 - <link linkend="language.combining.modifiers">修飾子の連結</link> - および - <link linkend="plugins">プラグインによる Smarty の拡張</link> - も参照ください。 - </para> - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <para> - 変数内の全ての単語の先頭を大文字で開始します。 - PHP の <ulink url="&url.php-manual;ucwords"> - <varname>ucwords()</varname></ulink> 関数と似ています。 - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>数字とセットの単語を大文字にするかどうか</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>capitalize</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|capitalize} -{$articleTitle|capitalize:true} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -next x-men film, x3, delayed. -Next X-Men Film, x3, Delayed. -Next X-Men Film, X3, Delayed. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.lower"><varname>lower</varname></link> - および - <link linkend="language.modifier.upper"><varname>upper</varname></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.cat"> - <title>cat</title> - <para> - 与えられた変数に値を連結します。 - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>与えられた変数にこの値を連結する</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>cat</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:' yesterday.'} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Psychics predict world didn't end yesterday. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <para> - 変数内の文字数をカウントします。 - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>空白キャラクタをカウントに含めるかどうか</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>count_characters</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Cold Wave Linked to Temperatures. -29 -33 -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>、 - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> および - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - 変数内のパラグラフの数をカウントします。 - </para> - <example> - <title>count_paragraphs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_paragraphs} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2 -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>、 - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> - および - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>. - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - 変数内のセンテンスの数をカウントします。 - </para> - <example> - <title>count_sentences</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_sentences} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2 -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>、 - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - および - <link linkend="language.modifier.count.words"><varname>count_words</varname></link>. - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - 変数内の単語の数をカウントします。 - </para> - <example> - <title>count_words</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_words} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -7 -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.count.characters"><varname>count_characters</varname></link>、 - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - および - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link>. - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,281 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.date.format"> - <title>date_format</title> - <para> - 日付と時間を - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> - のフォーマットに基づいて整形します。日付を Unix - <ulink url="&url.php-manual;function.time">タイムスタンプ</ulink> - や MySQL タイムスタンプ、そして月・日・年で構成された - (PHP の <ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink> - でパース可能な) 文字列として変数に割り当てる事ができます。デザイナーは、 - <varname>date_format</varname> を使用することで日付の書式設定を自由にコントロールできます。 - <varname>date_format</varname> に渡した日付が空で - 第2パラメータが渡された場合、その日付をフォーマットします。 - </para> - - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%b %e, %Y</entry> - <entry>日付の表示フォーマット</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>n/a</entry> - <entry>入力が空のときのデフォルトの日付</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <note> - <para> - Smarty-2.6.10 以降、<varname>date_format</varname> に渡された数値は - <emphasis>常に</emphasis> (MySQL タイムスタンプは例外です。以下を参照してください) - Unix タイムスタンプとして解釈されるようになりました。 - </para> - <para> - Smarty-2.6.10 より前は、PHP の - <varname>strtotime()</varname> がパース可能な数値文字列 - (<literal>YYYYMMDD</literal> のような形式) は、 - タイムスタンプではなく日付文字列として解釈されることもあります - (<varname>strtotime()</varname> の実装に依存します)。 - </para> - <para> - 唯一の例外は、mysql タイムスタンプです。 - これは数値のみで、文字数は14文字 ("YYYYMMDDHHMMSS") です。 - mysql タイムスタンプは unix タイムスタンプより優先されます。 - </para> - </note> - <note> - <title>プログラマーズノート</title> - <para> - <varname>date_format</varname> は、本質的には PHP の - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> - 関数のラッパーです。PHP をコンパイルしたシステム上の - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink> - の実装によっては、利用可能な変換指定子が多少変わる場合があります。 - 有効な指定子の一覧は、システムの man ページを参照してください。 - Windows 上でも一部の指定子をエミュレートしており、%D, %e, %h, %l, %n, - %r, %R, %t, %T が使用できます。 - </para> - </note> - </para> - <example> - <title>date_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$config['date'] = '%I:%M %p'; -$config['time'] = '%H:%M:%S'; -$smarty->assign('config', $config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - </programlisting> - <para> - このテンプレートでは、<link linkend="language.variables.smarty.now"> - <parameter>$smarty.now</parameter></link> を使用して現在時刻を取得しています。 - </para> - <programlisting> -<![CDATA[ -{$smarty.now|date_format} -{$smarty.now|date_format:"%D"} -{$smarty.now|date_format:$config.date} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:$config.time} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Jan 1, 2022 -01/01/22 -02:33 pm -Dec 31, 2021 -Monday, December 1, 2021 -14:33:00 -]]> - </screen> - </example> - <para> - - <command>date_format</command> の変換指定子 - <itemizedlist> - <listitem><para> - %a - 現在のロケールに基づく短縮された曜日の名前 - </para></listitem> - <listitem><para> - %A - 現在のロケールに基づく完全な曜日の名前 - </para></listitem> - <listitem><para> - %b - 現在のロケールに基づく短縮された月の名前 - </para></listitem> - <listitem><para> - %B - 現在のロケールに基づく完全な月の名前 - </para></listitem> - <listitem><para> - %c - 現在のロケールに基づく適当な日付と時間の表現 - </para></listitem> - <listitem><para> - %C - 世紀(年を100で割り、整数に丸めたもの。00から99) - </para></listitem> - <listitem><para> - %d - 10進数の日付(01から31) - </para></listitem> - <listitem><para> - %D - %m/%d/%yと同じ - </para></listitem> - <listitem><para> - %e - 月単位の日付を10進数で表したもの。日付が1桁の場合は、前に空白を一つ付ける。('1'から'31') - </para></listitem> - <listitem><para> - %g - 西暦の下二桁 [00,99] - </para></listitem> - <listitem><para> - %G - 西暦 [0000,9999] - </para></listitem> - <listitem><para> - %h - %bと同じ。 - </para></listitem> - <listitem><para> - %H - 時間を24時間表示の10進数で(00から23まで) - </para></listitem> - <listitem><para> - %I - 時間を12時間表示の10進数で(01から12までの範囲) - </para></listitem> - <listitem><para> - %j - 年間での日付を10進数で表現 (001から366) - </para></listitem> - <listitem><para> - %k - 24時間表示の時間の一桁目に空白を入れる ( 0 から 23までの範囲) - </para></listitem> - <listitem><para> - %l - 12時間表示の時間の一桁目に空白を入れる ( 1 から 12までの範囲) - </para></listitem> - <listitem><para> - %m - 月を10進数で表現 (01から12) - </para></listitem> - <listitem><para> - %M - 分を10進数で表現 - </para></listitem> - <listitem><para> - %n - 改行文字 - </para></listitem> - <listitem><para> - %p - 指定した時間により `am' または `pm' 、または 現在のロケールに対応した文字列 - </para></listitem> - <listitem><para> - %r - a.m.およびp.m.表記で表した時間 - </para></listitem> - <listitem><para> - %R - 24時間表記で表した時間 - </para></listitem> - <listitem><para> - %S - 10進数で表した秒 - </para></listitem> - <listitem><para> - %t - タブ文字 - </para></listitem> - <listitem><para> - %T - 現在の時間。%H:%M:%Sに等しい。 - </para></listitem> - <listitem><para> - %u - 10進数表記の曜日で[1,7]の範囲。1が月曜日。 - </para></listitem> - <listitem><para> - %U - 年間で何番目の週であるかを 10 進数で表現。年間で最初の日曜を最初の週の最初の日として数えます。 - </para></listitem> - <listitem><para> - %V - ISO 8601:1988で規定された現在の年の週番号の10進数表現で 01から53までの範囲となります。 - 1は最初の週でその週は現在の年に 最低4日はあります。週は月曜日から始まります。 - </para></listitem> - <listitem><para> - %w - 曜日を10進数で表現。日曜は0になります。 - </para></listitem> - <listitem><para> - %W - 現在の年で何番目の週であるかを10進数で表現。 年間で最初の月曜を最初の週の最初の日として数えます。 - </para></listitem> - <listitem><para> - %x - 時間を除いた日付を現在のロケールに基づき表現します。 - </para></listitem> - <listitem><para> - %X - 日付を除いた時間を現在のロケールに基づき表現します。 - </para></listitem> - <listitem><para> - %y - 世紀の部分を除いた年を10進数として表現。(00から99までの範囲) - </para></listitem> - <listitem><para> - %Y - 世紀を含む年を10進数で表現 - </para></listitem> - <listitem><para> - %Z - タイムゾーンまたはその名前または短縮形 - </para></listitem> - <listitem><para> - %% - 文字リテラル`%' - </para></listitem> - </itemizedlist> - - </para> - <para> - <link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>、 - <ulink url="&url.php-manual;strftime"><varname>strftime()</varname></ulink>、 - <link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> - および <link linkend="tips.dates">日付に関するヒント</link> のページも参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.default"> - <title>default</title> - <para> - 変数のデフォルト値を設定します。変数が空であるか設定されていない場合に、 - 代わりとしてデフォルト値が表示されます。この修飾子は1つのパラメータをとります。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>変数が空の場合に表示されるデフォルト値</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>default</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email', ''); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle|default:'no title'} -{$myTitle|default:'no title'} -{$email|default:'No email address available'} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -no title -No email address available -]]> - </screen> - </example> - <para> - <link linkend="tips.default.var.handling">変数のデフォルトの扱い</link> - および - <link linkend="tips.blank.var.handling">空白の変数の扱い</link> - のページも参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.escape"> - <title>escape</title> - <para> - <varname>escape</varname> は変数のエンコードやエスケープを行います。 - たとえば <literal>html</literal>、 - <literal>url</literal>、<literal>シングルクォート</literal>、 - <literal>hex</literal>、<literal>hexentity</literal>、 - <literal>javascript</literal> および <literal>mail</literal> - などに対する処理を行います。 - デフォルトでは <literal>html</literal> 用の処理をします。 - </para> - - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>有効な値</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>html</literal>, <literal>htmlall</literal>, - <literal>url</literal>, - <literal>urlpathinfo</literal>, <literal>quotes</literal>, - <literal>hex</literal>, <literal>hexentity</literal>, - <literal>javascript</literal>, <literal>mail</literal> - </entry> - <entry><literal>html</literal></entry> - <entry>使用するエスケープフォーマット</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry><literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, - および <ulink url="&url.php-manual;htmlentities"> - <varname>htmlentities()</varname></ulink> がサポートする任意の文字セット - </entry> - <entry><literal>UTF-8</literal></entry> - <entry>htmlentities() へ渡す文字セットのエンコーディング</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); - -?> -]]> - </programlisting> - <para> - <literal>escape</literal> を使用するテンプレートの後に、その出力結果を続けています。 - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'html'} {* & " ' < > をエスケープします *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* 全ての html エンティティをエスケープします *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -<a href="?title={$articleTitle|escape:'url'}">click here</a> -<a -href="?title=%27Stiff%20Opposition%20Expected%20to%20Casketless%20Funeral%20Plan%27">click here</a> - -{$articleTitle|escape:'quotes'} -\'Stiff Opposition Expected to Casketless Funeral Plan\' - -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> -{$EmailAddress|escape:'mail'} {* email をテキストに変換します *} -<a href="mailto:%62%6f%..snip..%65%74">bob..snip..et</a> - -{'mail@example.com'|escape:'mail'} -smarty [AT] example [DOT] com -]]> - </programlisting> - </example> - - <example> - <title>別の例</title> - <screen> -<![CDATA[ -{* "rewind" パラメータに現在の場所を登録します *} -<a href="$my_path?page=foo&rewind=$my_uri|urlencode}">click here</a> -]]> - </screen> - <para>これは email 用に便利です。しかし、 - <link linkend="language.function.mailto"> - <varname>{mailto}</varname></link> も参照してください。</para> - <screen> -<![CDATA[ -{* email アドレスを混乱させます *} -<a href="mailto:{$EmailAddress|escape:'hex'}">{$EmailAddress|escape:'mail'}</a> -]]> - </screen> - </example> - - <para> - <link linkend="language.escaping">Smarty の構文解析を回避</link>、 - <link linkend="language.function.mailto"><varname>{mailto}</varname></link> - および - <link linkend="tips.obfuscating.email">E-mail アドレスを混乱させる</link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.indent"> - <title>indent</title> - <para> - 各行で文字列をインデントします。デフォルトは 4 です。 - 第1パラメータには、インデントするキャラクタ数が指定できます。 - 第2パラメータには、インデントに使用するキャラクタが指定できます。 - たとえば、<literal>"\t"</literal> はタブを表します。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>4</entry> - <entry>インデントするキャラクタ数</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>(半角スペース 1 文字)</entry> - <entry>インデントに使用するキャラクタ</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>indent</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.strip"><varname>strip</varname></link>、 - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> - および - <link linkend="language.modifier.spacify"><varname>spacify</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - 変数を小文字に置き換えます。これは、PHP の - <ulink url="&url.php-manual;strtolower"> - <varname>strtolower()</varname></ulink> 関数と同義です。 - </para> - <example> - <title>lower</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|lower} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.upper"><varname>upper</varname></link> - および - <link linkend="language.modifier.capitalize"><varname>capitalize</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - 与えられた変数内の全ての改行文字 <literal>"\n"</literal> - を html の <literal><br /></literal> タグに変換します。 - これは PHP の <ulink url="&url.php-manual;nl2br"> - <varname>nl2br()</varname></ulink> 関数と同義です。 - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle|nl2br} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Sun or rain expected<br />today, dark tonight -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.wordwrap"><varname>word_wrap</varname></link>、 - <link linkend="language.modifier.count.paragraphs"><varname>count_paragraphs</varname></link> - および - <link linkend="language.modifier.count.sentences"><varname>count_sentences</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <para> - 変数に対して正規表現による検索・置換を行います。 - 正規表現は、PHP マニュアルの - <ulink url="&url.php-manual;preg_replace"> - <varname>preg_replace()</varname></ulink> の構文を使用してください。 - </para> - - <note><para> - Smarty にはこのように便利な正規表現用の修飾子がありますが、 - 通常は正規表現は PHP 側で使うことをおすすめします。カスタム関数や修飾子プラグインなどとしてです。 - 正規表現はアプリケーションのコードの一部であり、 - 画面の見た目に関するものではないからです。 - </para></note> - - <para>パラメータ</para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>置換するための正規表現</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>この文字列に置換する</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>regex_replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{* 復改、タブおよび改行を空白に置換します *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Infertility unlikely to -be passed on, experts say. -Infertility unlikely to be passed on, experts say. -]]> - </screen> - </example> - - <para> - <link linkend="language.modifier.replace"> - <varname>replace</varname></link> - および - <link linkend="language.modifier.escape"><varname>escape</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.replace"> - <title>replace</title> - <para> - 変数に対して、シンプルな検索・置換を行います。これは、PHP の - <ulink url="&url.php-manual;str_replace"> - <varname>str_replace()</varname></ulink> 関数と同義です。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>置換元の文字列</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>この文字列に置換する</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|replace:'Garden':'Vineyard'} -{$articleTitle|replace:' ':' '} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.regex.replace"><varname>regex_replace</varname></link> - および - <link linkend="language.modifier.escape"><varname>escape</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.spacify"> - <title>spacify</title> - <para> - <varname>spacify</varname> は、変数の各キャラクタ間にスペースを挿入します。 - 第1パラメータには、挿入するキャラクタ(または文字列) を渡す事ができます。 - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>one space</emphasis></entry> - <entry>変数の各キャラクタ間に挿入される要素</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>spacify</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W .... snip .... s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ .... snip .... ^^e^^r^^t^^s^^ ^^S^^a^^y^^. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.wordwrap"><varname>wordwrap</varname></link> - および - <link linkend="language.modifier.nl2br"><varname>nl2br</varname></link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.string.format"> - <title>string_format</title> - <para> - 変数の値を10進数として表示したり、文字列をフォーマットして表示します。 - フォーマット文字列には - <ulink url="&url.php-manual;sprintf"><varname>sprintf()</varname></ulink> - の構文を使用してください。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>フォーマット文字列(sprintf)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>string_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('number', 23.5787446); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -23.5787446 -23.58 -24 -]]> - </screen> - </example> - - <para> - <link linkend="language.modifier.date.format"><varname>date_format</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <para> - マークアップタグを取り除きます。これは、基本的に - <literal><</literal> と <literal>></literal> - で囲まれたもののことです。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>bool</entry> - <entry>No</entry> - <entry>&true;</entry> - <entry>タグを' 'または''のどちらで置き換えるか</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>strip_tags</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind Woman Gets <font face=\"helvetica\">New -Kidney</font> from Dad she Hasn't Seen in <b>years</b>." - ); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *} -{$articleTitle|strip_tags:false} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.replace"><varname>replace</varname></link> - および - <link linkend="language.modifier.regex.replace"><varname>regex_replace</varname></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - 繰り返された空白・改行・タブを、1つの空白または与えられた文字列によって置き換えます。 - </para> - <note> - <title>Note</title> - <para> - テンプレートテキストのブロックを対象に取り去りたいなら、 - 組み込みの <link - linkend="language.function.strip"><varname>{strip}</varname></link> - 関数を使用して下さい。 - </para> - </note> - <example> - <title>strip</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:' '} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother of eight makes hole in one. -]]> - </screen> - </example> - - <para> - <link linkend="language.function.strip"><varname>{strip}</varname></link> - および - <link linkend="language.modifier.truncate"><varname>truncate</varname></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,128 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.truncate"> - <title>truncate</title> - <para> - 指定したキャラクタ数(デフォルトは80)で変数を切り捨てます。 - 第2パラメータには、変数が切り捨てられた時に終端に付加する文字列を指定する事が出来ます。 - 指定する文字列の長さは元の切り捨ての長さの中に含まれます。 - デフォルトでは、<varname>truncate</varname> は単語の境界で切り捨てを行います。 - 厳密なキャラクタ数で切り捨てたい場合には第3パラメータに &true; を渡します。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>80</entry> - <entry>切り捨てを行うキャラクタ数</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>...</entry> - <entry>切り捨てが発生した際に終端に付加するキャラクタ。 - この長さは切り捨て長さの設定に含まれません。</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>切り捨てを単語の境界で行うか(&false;)、厳密なキャラクタ数で行うか(&true;)</entry> - </row> - <row> - <entry>4</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>切り捨てを文字列の終端で行うか(&false;)、 - 文字列の中盤で行うか(&true;)。この設定が&true;の場合、 - 単語の境界が無視されることに注意。 - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>truncate</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} -{$articleTitle|truncate:30:'..':true:true} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E... -Two Sisters Re..ckout Counter. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - 変数を大文字に置き換えます。これは、PHP の - <ulink url="&url.php-manual;strtoupper"> - <varname>strtoupper()</varname></ulink> 関数と同義です。 - </para> - <example> - <title>upper</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.lower"><varname>lower</varname></link> - および - <link linkend="language.modifier.capitalize"><varname>capitalize</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <para> - 指定したカラム幅で文字列をワードラップします(デフォルトは80)。 - 第2パラメータには、次の行にワードラップするために使用される文字列を指定する事が出来ます - (デフォルトは <literal>"\n"</literal>)。 - デフォルトでは、<varname>wordwrap</varname> は単語の境界でワードラップを行います。 - 厳密な文字数でワードラップしたい場合は第3パラメータに &true; を渡します。 - これは PHP の - <ulink url="&url.php-manual;wordwrap"><varname>wordwrap()</varname></ulink> - 関数と同義です。 - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>パラメータの位置</entry> - <entry>型</entry> - <entry>必須</entry> - <entry>デフォルト</entry> - <entry>概要</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>No</entry> - <entry>80</entry> - <entry>ワードラップするカラム幅</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>No</entry> - <entry>\n</entry> - <entry>ワードラップに使用される文字列</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>&false;</entry> - <entry>ワードラップを単語の境界で行うか(&false;)、 - 厳密なキャラクタ数で行うか(&true;)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>wordwrap</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - </programlisting> - <para> - テンプレート - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br />\n"} - -{$articleTitle|wordwrap:26:"\n":true} -]]> - </programlisting> - <para> - 出力 - </para> - <screen> -<![CDATA[ -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br /> -from dad she hasn't seen in<br /> -years. - -Blind woman gets new kidn -ey from dad she hasn't se -en in years. -]]> - </screen> - </example> - <para> - <link linkend="language.modifier.nl2br"><varname>nl2br</varname></link> - および - <link linkend="language.function.textformat"><varname>{textformat}</varname></link> - も参照してください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-variables.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="language.variables"> - <title>変数</title> - <para> - Smarty は色々な種類の変数を持っています。変数の種類は接頭辞の記号によって決まります - (記号によって囲まれる場合もあります)。 - </para> - <para> - Smarty 変数は、その値を直接表示したり - <link linkend="language.syntax.functions">関数</link> の引数や - <link linkend="language.syntax.attributes">属性</link>、 - <link linkend="language.modifiers">修飾子</link>、 - そして条件式の内部などで使用されたりします。 - 変数の値を表示するには、それを単純に - <link linkend="variable.left.delimiter">デリミタ</link> - で囲み、デリミタ内に変数のみが含まれるようにします。 -<example> -<title>変数の例</title> - <programlisting> -<![CDATA[ -{$Name} - -{$product.part_no} <b>{$product.description}</b> - -{$Contacts[row].Phone} - -<body bgcolor="{#bgcolor#}"> -]]> - </programlisting> -</example> -<note> -<title>ヒント</title> -<para>Smarty 変数の値を手っ取り早く調べるには、 -<link linkend="chapter.debugging.console">デバッギングコンソール</link> を使用するとよいでしょう。 -</para> -</note> - </para> - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-variable-scopes; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,201 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.assigned.variables"> - <title>PHP から割り当てられた変数</title> - <para> - 代入された変数は、先頭にドル記号 (<literal>$</literal>) がつきます。 - </para> - - <example> - <title>割り当てられた変数</title> - <para>PHP のコード</para> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty(); - -$smarty->assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> -</programlisting> - <para> - <filename>index.tpl</filename> のソース - </para> -<programlisting> -<![CDATA[ -Hello {$firstname} {$lastname}, glad to see you can make it. -<br /> -{* これは動作しません。変数名は大文字小文字を区別するからです。 *} -This weeks meeting is in {$meetingplace}. -{* こちらは動作します *} -This weeks meeting is in {$meetingPlace}. -]]> - </programlisting> - - <para> - 出力は次のようになります。 - </para> - <screen> -<![CDATA[ -Hello Doug Evans, glad to see you can make it. -<br /> -This weeks meeting is in . -This weeks meeting is in New York. -]]> - </screen> - </example> - - - <sect2 id="language.variables.assoc.arrays"> - <title>連想配列</title> - <para> - PHP から割り当てられた連想配列を参照することもできます。 - その場合は、ドット "." の後にキーを指定します。 - </para> - <example> - <title>連想配列の値にアクセスする</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> のソース - </para> - <programlisting> -<![CDATA[ -{$Contacts.fax}<br /> -{$Contacts.email}<br /> -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}<br /> -{$Contacts.phone.cell}<br /> -]]> - </programlisting> - <para> - 出力は次のようになります。 - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="language.variables.array.indexes"> - <title>配列のインデックス</title> - <para> - 配列に対してインデックスでアクセスすることもできます。 - これは PHP 本来の構文と同じです。 - </para> - <example> - <title>インデックスによって配列にアクセスする</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> のソース - </para> - <programlisting> -<![CDATA[ -{$Contacts[0]}<br /> -{$Contacts[1]}<br /> -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}<br /> -{$Contacts[2][1]}<br /> -]]> - </programlisting> - <para> - 出力は次のようになります。 - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - - - <sect2 id="language.variables.objects"> - <title>オブジェクト</title> - <para> - PHP から割り当てられた <link linkend="advanced.features.objects">オブジェクト</link> - のプロパティにアクセスするには、<literal>-></literal> - 記号の後にプロパティ名を指定します。 - </para> - <example> - <title>オブジェクトのプロパティにアクセスする</title> - <programlisting> -<![CDATA[ -name: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - 出力は次のようになります。 - </para> - <screen> -<![CDATA[ -name: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.example.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="language.config.variables"> - <title>設定ファイルから読み込まれた変数</title> - <para> - <link linkend="config.files">設定ファイル</link> - から読み込まれた変数を参照するには、それをハッシュマーク (<literal>#</literal>) - で囲むか、あるいは Smarty 変数 <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link> を使用します。 - 2つ目の方法は、クォートされた属性値の中に含める場合や - $smarty.config.$foo のような値にアクセスする場合に便利です。 - </para> - <example> - <title>設定ファイルの変数</title> - <para> - サンプルの設定ファイル - <filename>foo.conf</filename>: - </para> - <programlisting> -<![CDATA[ -pageTitle = "This is mine" -bodyBgColor = '#eeeeee' -tableBorderSize = 3 -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" -]]> - </programlisting> - <para> - <parameter>#hash#</parameter> 方式のテンプレート - </para> - <programlisting> -<![CDATA[ -{config_load file='foo.conf'} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link> 方式のテンプレート - </para> - <programlisting> -<![CDATA[ -{config_load file='foo.conf'} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </programlisting> - <para> - どちらの場合も出力は同じです。 - </para> - <screen> -<![CDATA[ -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </screen> - </example> -<para> - 変数は、設定ファイルから読み込まれるまで使用できません。 - 詳細は、後ほど - <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link> - の項で説明します。 -</para> -<para> - <link linkend="language.syntax.variables">変数</link> および - <link linkend="language.variables.smarty">予約変数 - $smarty</link> も参照してください。 -</para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-variables/language-variable-scopes.xml
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> - <sect1 id="language.variable.scopes"> - <title>変数のスコープ</title> - <para> - 変数を代入する際には、メイン Smarty オブジェクト、 - <link linkend="api.create.data"><varname>createData()</varname></link> で作ったデータオブジェクト、 - <link linkend="api.create.template"><varname>createTemplate()</varname></link> で作ったテンプレートオブジェクト - のいずれかのスコープを選ぶことができます。 - これらのオブジェクトは連結することができます。 - テンプレートからは、自分自身のオブジェクトの変数だけでなく - 連結した親オブジェクトに代入された変数も見ることができます。 - </para> - <para> - デフォルトでは、<link linkend="api.display"><varname>$smarty->display(...)</varname></link> や - <link linkend="api.fetch"><varname>$smarty->fetch(...)</varname></link> - でレンダリングしたオブジェクトは自動的に - Smarty オブジェクトの変数スコープにリンクされます。 - </para> - <para> - 個々のデータあるいはテンプレートのスコープに代入すれば、 - テンプレートからどの変数が見えるのかを完全に制御することができます。 - </para> - <para> - <example> - <title>変数のスコープの例</title> - <programlisting role="php"> -<![CDATA[ - -// 変数を Smarty オブジェクトのスコープに代入します -$smarty->assign('foo','smarty'); - -// 変数をデータオブジェクトのスコープに代入します -$data = $smarty->createData(); -$data->assign('foo','data'); -$data->assign('bar','bar-data'); - -// 変数を他のデータオブジェクトのスコープに代入します -$data2 = $smarty->createData($data); -$data2->assign('bar','bar-data2'); - -// 変数をテンプレートオブジェクトのスコープに代入します -$tpl = $smarty->createTemplate('index.tpl'); -$tpl->assign('bar','bar-template'); - -// 変数を Smarty オブジェクトへのリンクを持つテンプレートオブジェクトのスコープに代入します -$tpl2 = $smarty->createTemplate('index.tpl',$smarty); -$tpl2->assign('bar','bar-template2'); - -// この display() は、$smarty オブジェクトの $foo='smarty' が見えます -$smarty->display('index.tpl'); - -// この display() は、データオブジェクト $data の $foo='data' と $bar='bar-data' が見えます -$smarty->display('index.tpl',$data); - -// この display() は、データオブジェクト $data の $foo='data' と -// データオブジェクト $data2 の $bar='bar-data2' が見えます -$smarty->display('index.tpl',$data2); - -// この display() は、テンプレートオブジェクト $tpl の $bar='bar-template' が見えます -$tpl->display(); // あるいは $smarty->display($tpl); - -// この display() は、テンプレートオブジェクト $tpl2 の $bar='bar-template2' と -// Smarty オブジェクト $foo の $foo='smarty' が見えます -$tpl2->display(); // あるいは $smarty->display($tpl2); -]]> - </programlisting> - </example> - </para> - <para> - <link linkend="api.assign"><varname>assign()</varname></link>、 - <link linkend="api.create.data"><varname>createData()</varname></link> および - <link linkend="api.create.template"><varname>createTemplate()</varname></link> - も参照ください。 -</para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,248 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3913 $ --> -<!-- EN-Revision: 3894 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="language.variables.smarty"> - <title>予約変数 {$smarty}</title> - <para> - PHP の予約変数 <parameter>{$smarty}</parameter> を使用すると、 - 環境変数やリクエスト変数にアクセスすることができます。 - アクセスできる内容について、以下に説明します。 - </para> - - <sect2 id="language.variables.smarty.request"> - <title>リクエスト変数</title> - <para> - <literal>$_GET</literal>、<literal>$_POST</literal>、 - <literal>$_COOKIE</literal>、<literal>$_SERVER</literal>、 - <literal>$_ENV</literal> および <literal>$_SESSION</literal> - といった <ulink url="&url.php-manual;reserved.variables">リクエスト変数</ulink> - にアクセスするには、下の例のようにします。 - </para> - <example> - <title>リクエスト変数の表示</title> - <programlisting> -<![CDATA[ -{* ($_GET) http://www.example.com/index.php?page=foo から page の内容を表示 *} -{$smarty.get.page} - -{* ($_POST['page']) フォームから送信された変数"page"の値を表示 *} -{$smarty.post.page} - -{* クッキーに登録された"username"の値を表示 ($_COOKIE['username']) *} -{$smarty.cookies.username} - -{* サーバ変数"SERVER_NAME"の値を表示 ($_SERVER['SERVER_NAME']) *} -{$smarty.server.SERVER_NAME} - -{* 環境変数"PATH"の値を表示 *} -{$smarty.env.PATH} - -{* phpのセッション変数"id"の値を表示 ($_SESSION['id']) *} -{$smarty.session.id} - -{* get/post/cookies/server/envの値から、変数"username"の値を表示 *} -{$smarty.request.username} -]]> - </programlisting> - </example> - <note> - <para> - 歴史的な理由から、<parameter>{$SCRIPT_NAME}</parameter> には直接アクセスできます。 - しかし、この値にアクセスする方法としては - <parameter>{$smarty.server.SCRIPT_NAME}</parameter> が推奨されています。 - </para> -<programlisting> -<![CDATA[ -<a href="{$SCRIPT_NAME}?page=smarty">click me</a> -<a href="{$smarty.server.SCRIPT_NAME}?page=smarty">click me</a> -]]> -</programlisting> - </note> - <note><para> - Smarty では、利便性のため PHP のスーパーグローバル変数に直接アクセスすることもできます。 - これを使う場合は注意が必要です。 - アプリケーションのコードの構造とテンプレートとをまぜてしまうことになるからです。 - 必要な値だけをテンプレート変数に代入して使うのがお勧めです。 - </para></note> - </sect2> - - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - 現在の <ulink url="&url.php-manual;function.time">タイムスタンプ</ulink> - にアクセスするには <parameter>{$smarty.now}</parameter> を使用します。 - この値は、いわゆるエポック (1970年1月1日) からの経過秒数が含まれます。 - また、これを直接 - <link linkend="language.modifier.date.format"><varname>date_format</varname> - </link> 修飾子に渡して表示させることができます。実行するたびに - <ulink url="&url.php-manual;function.time"><varname>time()</varname></ulink> - がコールされることに注意しましょう。つまり、全体を処理するのに3秒かかるスクリプトがあったとして、 - その最初と最後でそれぞれ <parameter>$smarty.now</parameter> - をコールすると、その値には2秒の差が生じます。 - <informalexample> - <programlisting> -<![CDATA[ -{* date_format 修飾子を用いて、現在の日付と時刻を表示します *} -{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} -]]> - </programlisting> - </informalexample> - </para> - </sect2> - - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - PHP 定数の値に直接アクセスできます。<link - linkend="smarty.constants">smarty 定数</link> も参照してください。 - </para> - <informalexample> -<programlisting role="php"> -<![CDATA[ -<?php -// php で定義されている定数 -define('MY_CONST_VAL','CHERRIES'); -?> -]]> -</programlisting> -</informalexample> - -<para>定数を出力するテンプレート</para> -<informalexample> -<programlisting> -<![CDATA[ -{$smarty.const.MY_CONST_VAL} -]]> -</programlisting> -</informalexample> - -<note><para> - Smarty では、利便性のため PHP の定数に直接アクセスすることもできます。 - しかし通常は避けたほうがよいでしょう。 - アプリケーションのコードの構造とテンプレートとをまぜてしまうことになるからです。 - 必要な値だけをテンプレート変数に代入して使うのがお勧めです。 -</para></note> - - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - 組み込みの - <link linkend="language.function.capture"> - <varname>{capture}..{/capture}</varname></link> - 関数でキャプチャしたテンプレートの出力にアクセスするには - <parameter>{$smarty.capture}</parameter> 変数を使用します。 - 詳細は <link linkend="language.function.capture"> - <varname>{capture}</varname></link> のページを参照してください。 - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - <parameter>{$smarty.config}</parameter> 変数は、読み込まれた - <link linkend="language.config.variables">config 変数</link> - を参照するのに使用できます。 - <parameter>{$smarty.config.foo}</parameter> は - <parameter>{#foo#}</parameter> と同義です。詳細は - <link linkend="language.function.config.load">{config_load}</link> - のページを参照してください。 - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}</title> - <para> - <parameter>{$smarty.section}</parameter> 変数は、 - <link linkend="language.function.section"><varname>{section}</varname></link> - のループプロパティを参照するために使用します。 - この中には <varname>.first</varname>、<varname>.index</varname> - といった有用な値が含まれます。 - </para> - <note><para> - <varname>{$smarty.foreach}</varname> 変数はもはや使われておらず、新しい - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> - 構文になりました。しかし、Smarty 2.x 形式の foreach 構文もサポートしています。 - </para></note> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - 現在処理中のテンプレートの名前 (ディレクトリを含まない) を返します。 - </para> - </sect2> - - <sect2 id="language.variables.smarty.current_dir"> - <title>{$smarty.current_dir}</title> - <para> - 現在処理中のテンプレートのディレクトリ名を返します。 - </para> - </sect2> - - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - このテンプレートをコンパイルした Smarty のバージョンを返します。 - </para> -<programlisting> -<![CDATA[ -<div id="footer">Powered by Smarty {$smarty.version}</div> -]]> -</programlisting> - </sect2> - - <sect2 id="language.variables.smarty.block.child"> - <title>{$smarty.block.child}</title> - <para> - 子テンプレートのブロックのテキストを返します。 - <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> - を参照ください。 - </para> - </sect2> - - <sect2 id="language.variables.smarty.block.parent"> - <title>{$smarty.block.parent}</title> - <para> - 親テンプレートのブロックのテキストを返します。 - <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> - を参照ください。 - </para> - </sect2> - - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}, {$smarty.rdelim}</title> - <para> - これらの変数を使用して、左右のデリミタをそのまま表示します。 - <link linkend="language.function.ldelim"> - <varname>{ldelim}、{rdelim}</varname></link> と同じです。 - </para> - <para> - <link linkend="language.assigned.variables">PHP から割り当てられた変数</link> および - <link linkend="language.config.variables">設定ファイルから読み込まれた変数</link> - も参照ください。 - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/getting-started.xml
Deleted
@@ -1,670 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3848 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<part id="getting.started"> - <title>はじめに</title> - - <chapter id="what.is.smarty"> - <title>Smarty とは?</title> - <para> - Smarty は PHP のためのテンプレートエンジンです。具体的に言うと、php - のプレゼンテーションからアプリケーションのロジックとコンテンツを分離して管理する事を容易にします。 - これは、プログラマーとテンプレートデザイナーの役割が異なり、 - これらの役割を違う人間が受け持っている場合に最適だと言えます。 - </para> - - <para> - 例えば、新聞記事を表示するwebページを作成しているとします。 - </para> - <itemizedlist> - <listitem><para> - 記事の <literal>$headline</literal> (見出し)、<literal>$tagline</literal> - (キャッチフレーズ)、<literal>$author</literal> (著者) および - <literal>$body</literal> (本文) が中身を構成する要素となります。 - ここには、それをどのように表示するかという情報は含まれません。 - これらはアプリケーションによって Smarty に - <link linkend="api.assign">渡されます</link>。 - </para></listitem> - - <listitem><para> - テンプレートデザイナーはこのテンプレートを編集し、 - HTML タグや <link linkend="language.basic.syntax">テンプレートタグ</link> - を使用して、これらの <link linkend="language.syntax.variables">変数</link> - と要素 (テーブル、div、背景色、フォントサイズ、スタイルシート、svg など) - の体裁を調整します。 - </para></listitem> - - <listitem><para> - ある日、プログラマーが (アプリケーションロジックを変更したなどの理由で) - 記事の内容を取得する手段を変更する必要が出てきたとします。 - この変更はテンプレートデザイナーに影響がないため、 - 記事には全く同じ内容のテンプレートが適用できるでしょう。 - </para></listitem> - - <listitem><para> - 同様に、もしテンプレートデザイナーがテンプレートを完全に作り直したい場合でも、 - アプリケーションロジックを変更する必要がありません。 - </para></listitem> - - <listitem><para> - したがって、プログラマーはテンプレートを作り直す事なくアプリケーションロジックを変更する事ができ、 - テンプレートデザイナーはアプリケーションロジックを壊す事なくテンプレートを変更できます。 - </para></listitem> - </itemizedlist> - - <para> - Smarty の設計の目標の一つとして、 - ビジネスロジックとプレゼンテーションロジックの分離があります。 - </para> - - <itemizedlist> - <listitem><para> - これは、プレゼンテーションのためだけという条件の下で - テンプレートにロジックを含める事が可能であるという事です。 - 他のテンプレートを <link linkend="language.function.include">include</link> - したり、テーブル行の色を - <link linkend="language.function.cycle">変更</link> したり、変数を - <link linkend="language.modifier.upper">大文字</link> にしたり、データの配列を - <link linkend="language.function.foreach">ループ</link> させたり、それを - <link linkend="api.display">表示</link> - したりといったことが、プレゼンテーションロジックの例になります。 - </para></listitem> - <listitem><para> - これは、Smarty がビジネスロジックとプレゼンテーションロジックの分離を - 強制している訳ではない事を意味しています。 - Smarty はテンプレート内に置かれたものがビジネスロジックなのか何なのか全くわかりません。 - </para></listitem> - <listitem><para> - また、テンプレートにロジックを <emphasis>置きたくない</emphasis> - ならば、テキストと変数のみでコンテンツを作り上げることも可能です。 - </para></listitem> - </itemizedlist> - - <para> - <emphasis role="bold">Smarty の特徴</emphasis> - </para> - <itemizedlist> - <listitem> - <para> - 非常に高速 - </para> - </listitem> - <listitem> - <para> - 下仕事は PHP パーサが行うので能率的 - </para> - </listitem> - <listitem> - <para> - コンパイルは一度だけ行われるので、テンプレートのパースによるオーバーヘッドが無い - </para> - </listitem> - <listitem> - <para> - <link linkend="variable.compile.check">再コンパイル</link> - は変更があったテンプレートファイルのみで行うのでスマート - </para> - </listitem> - <listitem> - <para> - 簡単に独自の <link - linkend="language.custom.functions">関数</link> - や <link linkend="language.modifiers">変数の修飾子</link> - を作成できるので、テンプレート言語を強力に拡張することが可能 - </para> - </listitem> - <listitem> - <para> - テンプレートの - <link linkend="variable.left.delimiter">{デリミタ}</link> - タグの記法を変更し、 - <literal>{$foo}</literal>、<literal>{{$foo}}</literal>、 - <literal><!--{$foo}--></literal> などを使用することが可能 - </para> - </listitem> - <listitem> - <para> - <link linkend="language.function.if"> - <literal>{if}..{elseif}..{else}..{/if}</literal></link> - 構文は PHP パーサが処理するので、<literal>{if...}</literal> - の条件式にはシンプルなものから複雑なものまで自由に指定可能 - </para> - </listitem> - <listitem> - <para> - <link linkend="language.function.section"> - <varname>sections</varname></link> や <varname>if</varname> - などは無制限にネスト可能 - </para> - </listitem> - <listitem> - <para> - 組み込みで <link linkend="caching">キャッシュ機能</link> をサポート - </para> - </listitem> - <listitem> - <para> - 任意の <link linkend="template.resources">テンプレート</link> ソース - </para> - </listitem> - <listitem> - <para> - カスタム <link - linkend="section.template.cache.handler.func">キャッシュハンドラ</link> - 関数 - </para> - </listitem> - <listitem> - <para> - <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> - によるテンプレートのコンテンツの容易な管理 - </para> - </listitem> - <listitem> - <para> - <link linkend="plugins">プラグイン</link> 機構 - </para> - </listitem> - </itemizedlist> - </chapter> - - - - - - <chapter id="installation"> - <title>インストール</title> - - <sect1 id="installation.requirements"> - <title>必要条件</title> - <para> - Smarty は、PHP 5.2 以降が動作しているウェブサーバを必要とします。 - </para> - </sect1> - - <sect1 id="installing.smarty.basic"> - <title>基本的なインストール</title> - - <para> - Smarty のライブラリファイルを、ディストリビューションの - <filename class="directory">/libs/</filename> サブディレクトリにインストールしてください。 - これらの <filename>.php</filename> を編集してはいけません。 - これらはすべてのアプリケーションで共有するものであり、 - Smarty を新しいバージョンにアップグレードする際にのみ更新します。 - </para> - <para>以下の例で、Smarty の tarball の展開先は次のようになります。 - <itemizedlist> - <listitem><para>*nix の場合は - <filename class="directory">/usr/local/lib/Smarty-v.e.r/</filename> - </para></listitem> - <listitem><para>Windows 環境の場合は - <filename class="directory">c:\webroot\libs\Smarty-v.e.r\</filename> - </para></listitem> - </itemizedlist> - </para> - - <example> - <title>必要な Smarty ライブラリファイル群</title> - <screen> -<![CDATA[ -Smarty-v.e.r/ - libs/ - Smarty.class.php - debug.tpl - sysplugins/* (すべて) - plugins/* (すべて) -]]> - </screen> - </example> - - <para> - Smarty は、<link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> - という名前の PHP の <ulink url="&url.php-manual;define">定数</ulink> - を使用します。これは、Smarty の <filename>libs/</filename> ディレクトリへの - <emphasis role="bold">絶対パス</emphasis> を表します。 - 基本的にあなたのアプリケーションが <filename>Smarty.class.php</filename> - ファイルを見つける事が出来るなら - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> - を定義する必要はありません。Smarty は自分でそれを考えます。 - したがって、もし <filename>Smarty.class.php</filename> が - <ulink url="&url.php-manual;ini.core.php#ini.include-path">include_path</ulink> - にないか、あなたのアプリケーションにてそれらへの絶対パスが指定されていないなら、 - 手動で <constant>SMARTY_DIR</constant> を定義する必要があります。 - <constant>SMARTY_DIR</constant> は、<emphasis role="bold"> - 最後にスラッシュ / を含めなければなりません</emphasis>。 - </para> - - - <informalexample> - <para> - 次の例では、PHP スクリプト内での Smarty インスタンスの作成方法を示します。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// 注: Smarty の 'S' は大文字です -require_once('Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </informalexample> - - <para> - 上のスクリプトを実行してみてください。 - <filename>Smarty.class.php</filename> ファイルが見つからないというエラーが出た場合は、 - 以下のいずれかを行う必要があります。 - </para> - - <example> - <title>手動で SMARTY_DIR 定数を定義する</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix スタイル (大文字の 'S' に注意) -define('SMARTY_DIR', '/usr/local/lib/Smarty-v.e.r/libs/'); - -// windows スタイル -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// *nixとwindowsで共通なハックバージョンの例 -// Smarty は現在のスクリプトが 'includes/' ディレクトリの下にあると仮定します。 -define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>ライブラリファイルの絶対パスを指定する</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix スタイル (大文字の 'S' に注意) -require_once('/usr/local/lib/Smarty-v.e.r/libs/Smarty.class.php'); - -// windows スタイル -require_once('c:/webroot/libs/Smarty-v.e.r/libs/Smarty.class.php'); - -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title><filename>php.ini</filename> ファイルにライブラリへのパスを追加する</title> - <programlisting role="php"> -<![CDATA[ -;;;;;;;;;;;;;;;;;;;;;;;;; -; Paths and Directories ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; *nix: "/path1:/path2" -include_path = ".:/usr/share/php:/usr/local/lib/Smarty-v.e.r/libs/" - -; Windows: "\path1;\path2" -include_path = ".;c:\php\includes;c:\webroot\libs\Smarty-v.e.r\libs\" -]]> -</programlisting> -</example> - -<example> - <title>PHP スクリプト内での <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> - によるインクルードパスの追加</title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/'); - -// windows -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'c:/webroot/lib/Smarty-v.e.r/libs/'); -?> -]]> - </programlisting> - </example> - - <para> - これでライブラリファイルは正常に設置できたので、 - 今度はあなたのアプリケーション内に Smarty 用のディレクトリを セットアップしましょう。 - </para> - - <itemizedlist> - <listitem><para> - Smarty は、デフォルトで - <filename class="directory">templates/</filename>、 - <filename class="directory">templates_c/</filename>、<filename - class="directory">configs/</filename> および <filename - class="directory">cache/</filename> - と名づけられた4つのディレクトリが必要です。 - </para></listitem> - - <listitem><para>これらの名前は、それぞれ - Smarty クラスのプロパティ - <link linkend="variable.template.dir"> - <varname>$template_dir</varname></link>、 - <link linkend="variable.compile.dir"> - <varname>$compile_dir</varname></link>、 - <link linkend="variable.config.dir"> - <varname>$config_dir</varname></link> および - <link linkend="variable.cache.dir"> - <varname>$cache_dir</varname></link> で定義することができます。 - </para></listitem> - - <listitem><para> - Smarty を使用する各アプリケーションにおいて、 - これらのディレクトリを個別に設置する事を強く推奨します。 - </para></listitem> - <listitem><para> - これらのディレクトリに適切なアクセス権限が設定されているかどうかを確かめるには、 - <link linkend="api.test.install"><varname>testInstall()</varname></link> - を使います。 - </para></listitem> - </itemizedlist> - - <para> - インストール例として、ゲストブックアプリケーションの - Smarty 環境をセットアップしてみます。 - 私達はディレクトリの命名規約の目的についてのみ取り上げました。 - 例のアプリケーション名を <literal>guestbook/</literal> - からあなたのアプリケーション名に置き換えれば、同様の環境を使用できます。 - </para> - - - <example> - <title>ファイル構造</title> - <screen> -<![CDATA[ -/usr/local/lib/Smarty-v.e.r/libs/ - Smarty.class.php - debug.tpl - sysplugins/* - plugins/* - -/web/www.example.com/ - guestbook/ - templates/ - index.tpl - templates_c/ - configs/ - cache/ - htdocs/ - index.php -]]> - </screen> - </example> - - <para> - あなたは web サーバのドキュメントルートの位置を知っている必要があります。 - 例ではドキュメントルートは <filename - class="directory">/web/www.example.com/guestbook/htdocs/</filename> - とします。Smarty ディレクトリは Smarty ライブラリによってのみアクセスされ、 - web ブラウザから直接アクセスされる事はありません。 - したがってセキュリティの心配を避けるために、 - これらのディレクトリをドキュメントルートの <emphasis>外部</emphasis> - に配置する事を推奨します (ただし必須ではありません)。 - </para> - - <para> - ドキュメントルート下には最低1つのファイルが必要であり、 - それは web ブラウザによってアクセスされるスクリプトです。 - この例ではドキュメントルート <filename class="directory">/htdocs/</filename> - の下にサブディレクトリを作成し、その中に <filename>index.php</filename> - を配置します。 - </para> - - - <para> - Smarty は - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> と - <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> - (<filename class="directory">templates_c/</filename> と - <filename class="directory">cache/</filename>) に - <emphasis role="bold">書き込み権限</emphasis> でアクセスする必要があるので、 - web サーバのユーザがこれらに書き込める必要があります - (windows ユーザはこの話を無視してください)。 - - <note><para>通常は、このユーザは <quote>nobody</quote> でグループは - <quote>nobody</quote> です。OS X ユーザの場合は、デフォルトのユーザは - <quote>www</quote> でグループは <quote>www</quote> です。 - もし Apache を使用しているなら、<filename>httpd.conf</filename> - ファイルを見ればユーザ名とグループ名がわかります。</para></note> - </para> - - <example> - <title>パーミッションおよびディレクトリへの書き込み権限の付与</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/guestbook/templates_c/ -chmod 770 /web/www.example.com/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/guestbook/cache/ -chmod 770 /web/www.example.com/guestbook/cache/ -]]> - </programlisting> - </example> - - <note> - <title>注意</title> - <para> - <literal>chmod 770</literal> は強固なセキュリティです。 - これは、ユーザ <quote>nobody</quote> とグループ <quote>nobody</quote> - のみにディレクトリのリード/ライトアクセスを許可します。 - もし誰にでもリードアクセスを可能にしたい場合 - (大抵はあなた自身がファイルを見るための利便性から) - は、代わりに <literal>775</literal> を使う事が出来ます。 - </para> - </note> - - <para> - 次に、Smarty が表示するファイル <filename>index.tpl</filename> - を作成する必要があります。これは、<link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> の中に配置しなければなりません。 - </para> - - <example> - <title>/web/www.example.com/guestbook/templates/index.tpl</title> - <screen> -<![CDATA[ -{* Smarty *} - -こんにちは、{$name}。ようこそ Smarty へ! -]]> - </screen> - </example> - - <note> - <title>テクニカルノート</title> - <para> - <literal>{* Smarty *}</literal> はテンプレートの - <link linkend="language.syntax.comments">コメント</link> です。 - これは必須ではありませんが、全てのテンプレートファイルのはじめに - コメントを書くのは良い習慣です。 - これは、ファイルの拡張子に関わらずファイルを認識する事を簡単にします。 - 例えば、テキストエディタはファイルを認識して特有のシンタックスハイライトを有効にするでしょう。 - </para> - </note> - - <para> - では、<filename>index.php</filename> を編集しましょう。 - Smarty のインスタンスを作成し、テンプレート変数を割り当て - (<link linkend="api.assign"><varname>assign()</varname></link>)、 - <filename>index.tpl</filename> ファイルを表示 - (<link linkend="api.display"><varname>display()</varname></link>) - します。 - </para> - - <example> - <title>/web/www.example.com/docs/guestbook/index.php の編集</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require_once(SMARTY_DIR . 'Smarty.class.php'); - -$smarty = new Smarty(); - -$smarty->template_dir = '/web/www.example.com/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -//** 次の行のコメントをはずすと、デバッギングコンソールを表示します -//$smarty->debugging = true; - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - </example> - - <note> - <title>注意</title> - <para> - この例では、Smartyのディレクトリすべてを絶対パスで設定しています。 - もし <filename - class="directory">/web/www.example.com/guestbook/</filename> - が PHP の include_path にあるのなら、これらの設定は必要ありません。 - けれどもこれらを絶対パスで指定する方が より効率的で、(経験上)エラーが少なくなります。 - そうすれば、Smarty はあなたが意図したディレクトリからファイルを確実に取得できます。 - </para> - </note> - - <para> - では、web ブラウザから <filename>index.php</filename> ファイルを読み込んでみましょう。 - <emphasis>"こんにちは、Ned。ようこそ Smarty へ!"</emphasis> と表示されるはずです。 - </para> - <para> - これで Smarty の基本的なセットアップは完了しました! - </para> - </sect1> - - - - - - <sect1 id="installing.smarty.extended"> - <title>拡張セットアップ</title> - - <para> - これは、<link - linkend="installing.smarty.basic">基本的なインストール</link> - の続きです。まず先にこちらから読んで下さい! - </para> - <para> - Smarty をより柔軟にするセットアップ方法は、 - <ulink url="&url.php-manual;ref.classobj">クラスを拡張</ulink> - してあなたの Smarty の環境を初期化する事です。 - ディレクトリパスの設定を同じ変数に何度も割り当てる代わりに、一箇所でそれらを行う事が出来ます。 - </para> - <para> - 新しいディレクトリ<filename - class="directory">/php/includes/guestbook/</filename> - を作成し、<filename>setup.php</filename> という新しいファイルを作成しましょう。 - この例の環境では <filename class="directory">/php/includes</filename> - が <literal>include_path</literal> です。 - 例と同じようにするか、あるいは絶対パスを使用して下さい。 - </para> - - <example> - <title>/php/includes/guestbook/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Smartyライブラリを読み込みます -require('Smarty.class.php'); - -// setup.phpはアプリケーションに必要なライブラリファイルを -// 読み込むのに適した場所です。それをここで行うことができます。例: -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function __construct() - { - - // クラスのコンストラクタ。 - // これらは新しいインスタンスで自動的にセットされます。 - - parent::__construct(); - - $this->template_dir = '/web/www.example.com/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/guestbook/cache/'; - - $this->caching = Smarty::CACHING_LIFETIME_CURRENT; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <para> - では、<filename>index.php</filename> ファイルを修正し、 - <filename>setup.php</filename> を使うようにしてみましょう。 - </para> - - <example> - <title>/web/www.example.com/guestbook/htdocs/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook(); - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <para> - このように、アプリケーションのために全てを自動的に初期化する - <literal>Smarty_GuestBook()</literal> - クラスを使う事で、Smarty のインスタンスをとても簡単に作成することができました。 - </para> - - </sect1> - - </chapter> -</part> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/language-defs.ent
Deleted
@@ -1,8 +0,0 @@ -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3830 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - -<!ENTITY SMARTYManual "Smarty3 マニュアル"> -<!ENTITY SMARTYDesigners "テンプレートデザイナのための Smarty"> -<!ENTITY SMARTYProgrammers "プログラマのための Smarty"> -<!ENTITY Appendixes "付録">
View file
Smarty-3.1.13.tar.gz/documentation/ja/language-snippets.ent
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3836 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - -<!ENTITY note.parameter.merge '<note> - <title>テクニカルノート</title> - <para> - <parameter>merge</parameter> パラメータは配列のキーを尊重するので、 - インデックスが数値である2つの配列をマージする場合、 - それらはお互い上書きされるか不連続なキーの配列になるかもしれません。 - これは、数値のキーを全て削除した後に再びキーに番号付けを行う、PHP - の <ulink url="&url.php-manual;array_merge"><varname>array_merge()</varname></ulink> - 関数とは違っています。 - </para> -</note>'> - -<!ENTITY note.parameter.function '<note> - <title>テクニカルノート</title> - <para> - 選択したコールバック <parameter>function</parameter> が - <literal>array(&$object, $method)</literal> 形式である場合は、 - 同じ <literal>$method</literal> を持つクラスのインスタンスをひとつだけ登録できます。 - そのような場合は、最後に登録されたコールバック <parameter>function</parameter> - のみが用いられます。 - </para> -</note>'> - -<!ENTITY parameter.cacheid '<listitem> -<para> -<parameter>cache_id</parameter> はオプションのパラメータです。 - この関数をコールするたびにこのパラメータを指定するかわりに、変数 - <link linkend="variable.cache.id"> - <parameter>$cache_id</parameter></link> を使うこともできます。 - これは、同じテンプレートを使う異なるコンテンツ (異なる製品を表示するページなど) - をキャッシュする場合に使います。 - 詳細は <link linkend="caching">キャッシュ</link> を参照ください。 -</para> -</listitem>'> - -<!ENTITY parameter.compileid2 '<listitem> -<para> -<parameter>compile_id</parameter> はオプションのパラメータです。 - この関数をコールするたびにこのパラメータを指定するかわりに、変数 - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> を使うこともできます。 - これは、同じテンプレートの異なるバージョンをコンパイルしたい場合 - (言語ごとに別々にコンパイルしたい場合など) - に使います。 -</para> -</listitem>'> - -<!ENTITY parameter.parent '<listitem> -<para> -<parameter>parent</parameter> はオプションのパラメータです。 -これは、メイン Smarty オブジェクトやユーザが作成したデータオブジェクト、 -あるいはユーザが作成したテンプレートオブジェクトなどへのアップリンクです。 -これらのオブジェクトは連結することができます。 -テンプレートからは、連結したオブジェクト内で代入されたすべての値にアクセスできます。 -</para> -</listitem>'> - -<!ENTITY parameter.data '<listitem> -<para> -<parameter>data</parameter> はオプションのパラメータです。 -これは、オブジェクトに代入された変数の 名前/値 のペアを含む連想配列です。 -</para> -</listitem>'> - -<!ENTITY parameter.compileid '<para> - 任意の第3パラメータとして <parameter>$compile_id</parameter> - を渡すことができます。 - 異なる言語でコンパイルされた別々のテンプレートが存在するような、 - 同じテンプレートの異なるバージョンをコンパイルしたい場合に利用します。 - この関数をコールする度に compile_id を渡す代わりに、一度 - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> 変数をセットすることもできます。 -</para>'> - - -<!ENTITY parameter.filtertype '<listitem> -<para> -<parameter>type</parameter> にはフィルタの型を定義します。使える値は "pre"、"post"、"output" および "variable" です。 -</para> -</listitem>'> - -<!ENTITY parameter.plugintype '<listitem> -<para> -<parameter>type</parameter> にはプラグインの型を定義します。使える値は "function"、"block"、"compiler" および "modifier" です。 -</para> -</listitem>'> - -<!ENTITY parameter.pluginname '<listitem> -<para> -<parameter>name</parameter> にはプラグインの名前を定義します。 -</para> -</listitem>'> - -<!ENTITY parameter.callback '<listitem> -<para> - PHP 関数のコールバック <parameter>function</parameter> - は、次のいずれかとなります。 - <itemizedlist> - <listitem><para> - 関数名を含んだ文字列 - </para></listitem> - - <listitem><para> - <literal>array(&$object, $method)</literal> 形式の配列 - (<literal>&$object</literal> はオブジェクトの参照で、 - <literal>$method</literal> はメソッド名を含む文字列) - </para></listitem> - - <listitem><para> - <literal>array($class, $method)</literal> という形式の配列 - (<literal>$class</literal> はクラス名であり、 - <literal>$method</literal> はクラスのメソッド名) - </para></listitem> - </itemizedlist> - </para> -</listitem>'> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/livedocs.ent
Deleted
@@ -1,8 +0,0 @@ -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3830 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - -<!ENTITY livedocs.author '作者:<br />'> -<!ENTITY livedocs.editors '編集者:<br />'> -<!ENTITY livedocs.copyright '著作権 © %s by %s'> -<!ENTITY livedocs.published '公開日: %s'>
View file
Smarty-3.1.13.tar.gz/documentation/ja/make_chm_index.html
Deleted
@@ -1,38 +0,0 @@ -<HTML> -<!-- $Revision: 2763 $ --> -<!-- EN-Revision: 2138 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<HEAD> - <TITLE>Smarty マニュアル</TITLE> - <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=utf-8"> - <LINK REL="STYLESHEET" HREF="style.css"> -</HEAD> -<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> -<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> -<TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" -CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">Smarty Manual</TH></TR><TR><TD -COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> -<TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> - -<P><TABLE ALIGN="CENTER"> -<TR><TD ALIGN="CENTER"> -<H1 CLASS="title">Smarty マニュアル</H1> -<DIV CLASS="author">Monte Ohrt</DIV> -<DIV CLASS="author">Andrei Zmievski</DIV> -</TD></TR></TABLE> -<BR><P ALIGN="CENTER">このファイルは [GENTIME] に作成されました<BR> -最新版は <A HREF="http://www.smarty.net/download-docs.php">http://www.smarty.net/download-docs.php</A> -で取得してください。</P> - -<BR><P CLASS="copyright" ALIGN="CENTER">Copyright © 2001 - 2005 New Digital Group, Inc.</P> - -</TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> -<TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> -<TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> -<TR><TD COLSPAN="3"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD> -</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> -</BODY></HTML>
View file
Smarty-3.1.13.tar.gz/documentation/ja/preface.xml
Deleted
@@ -1,326 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3844 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <preface id="preface"> - <title>序文</title> - - <para> - <emphasis role="bold">Smarty の考え方</emphasis> - </para> - - <para> - Smarty は、主にこれらのことを目標として設計しています。 - </para> - - <itemizedlist> - <listitem><para>画面の見た目とアプリケーションのコードをきれいに分離する</para></listitem> - <listitem><para>PHP が裏方を担当し、Smarty のテンプレートが表面を担当する</para></listitem> - <listitem><para>PHP を補完するものであって、PHP にとってかわるものではない</para></listitem> - <listitem><para>プログラマとデザイナの両方が高速な開発/デプロイをできるようにする</para></listitem> - <listitem><para>すばやく手軽な保守</para></listitem> - <listitem><para>PHP の知識がなくても理解しやすい構文</para></listitem> - <listitem><para>カスタマイズしやすい柔軟性</para></listitem> - <listitem><para>PHP から隔離することによるセキュリティの確保</para></listitem> - <listitem><para>フリー・オープンソース</para></listitem> - </itemizedlist> - - <para> - <emphasis role="bold">Smarty とは?</emphasis> - </para> - - <para> - Smarty は PHP 用のテンプレートエンジンで、見た目 (HTML/CSS) - をアプリケーションのロジックから分離させる手助けをします。つまり、 - <emphasis>PHP のコードはアプリケーションのロジック</emphasis> - であり、それを見た目から分離するということです。 - </para> - - <para> - <emphasis role="bold">二つの派閥</emphasis> - </para> - - <para> - PHP におけるテンプレートを語るときには、大きく二つの派閥があります。 - まず一方は、"PHP 自体がテンプレートエンジンだよ" 派です。 - この手法では、単に PHP のコードを HTML に混ぜ込みます。 - スクリプトの実行速度という観点ではこの方式が最速でしょうが、多くの人が指摘するように - PHP の構文は乱雑なものであり、HTML のようなタグによるマークアップとの相性はよくありません。 - </para> - - <para> - もう一方の派閥は、画面の見た目に関する内容はプログラムのコードと切り離すべきだと主張します。 - そうした上で、シンプルなタグを使ってアプリケーションのコンテンツの配置を示すのだ、と。 - この手法は他のテンプレートエンジンやプログラミング言語でも一般的であり、Smarty もこちらの方法を採用しています。 - Smarty の考え方は、テンプレートは見た目に関する内容に集中し、アプリケーションのコードをまぜないということ。 - そして、それによるオーバーヘッドを可能な限り少なくするということです。 - </para> - - <para> - <emphasis role="bold">PHP をテンプレートから分離することが、なぜそんなに大切なの?</emphasis> - </para> - - <para> - 大きな利点は次の二つです。 - </para> - - <itemizedlist> - <listitem> - <para> - 構文: テンプレートは一般的に、HTML のようなセマンティックマークアップで構成されています。 - PHP の構文はアプリケーションのコードを書くのには適していますが、 - HTML と混ぜると急速に退化してしまいます。 - Smarty のシンプルな {tag} 形式の構文は、表示内容を表現することに特化して設計されています。 - Smarty は、テンプレートから "コード" をできるだけ減らすことに力を入れているのです。 - これによってテンプレートの作成効率があがり、保守も容易になります。 - Smarty の構文を覚えるには PHP の知識は不要で、 - プログラマにとっても非プログラマにとっても直感的に理解しやすいものです。 - </para> - </listitem> - <listitem> - <para> - 隔離: PHP をテンプレートと混ぜてしまうと、 - どんなロジックであっても無制限にテンプレートに取り込めるようになってしまいます。 - Smarty はテンプレートを PHP から隔離することで、表示内容とビジネスロジックを切り分けられるようにしています。 - Smarty にはセキュリティ機能も用意されており、これを使うとテンプレートに対してさらなる制約を加えることもできます。 - </para> - </listitem> - </itemizedlist> - - <para> - <emphasis role="bold">ウェブデザイナと PHP</emphasis> - </para> - - <para> - "Smarty を使ったところでウェブデザイナも Smarty の構文を学ばなければならないわけだし、 - どうせ学ぶなら別に PHP でもいいんじゃない?" - よくある問いです。もちろんウェブデザイナも PHP を覚えることはできるでしょう。 - そして既に PHP を身につけているかもしれません。 - しかし、身につけられるかどうかという問題ではなく、その結果 PHP と HTML - が混じってしまうことが問題なのです。デザイナに PHP を使わせると、 - 本来テンプレート側でやるべきではないことまでテンプレートに詰め込みだしてしまうでしょう - (単にバターナイフが欲しいだけの人にスイスアーミーナイフを手渡してしまうようなものです)。 - アプリケーションの設計に関する指針をデザイナに教えることはできますが、 - そんなことはデザイナが本来学ぶべきことではないでしょう - (それを覚えた時点で開発者の仲間入りですね!)。 - PHP のマニュアルもまた、必要以上に大量の情報の山です。 - 車を運転するにはドライバー向けのマニュアルだけがあればいいのに、 - 工場の部品の組み立てマニュアルまで渡されているようなものです。 - Smarty を使えば、デザイナにとって必要なツールだけを提供することができます。 - そして開発者は、それらのツールを決めこまやかに制御できるようになります。 - タグベースのシンプルな構文はデザイナにとっても取っつきやすく、 - テンプレートの管理を合理化するのに役立つでしょう。 - </para> - - <para> - <emphasis role="bold">実装が重要</emphasis> - </para> - - <para> - Smarty を使えば見た目とアプリケーションのコードをきれいに分離させることができますが、 - そのルールをねじ曲げるだけの余地も多く残されています。まずい実装 - (テンプレートに PHP のコードを混ぜ込むなど) をしてしまうと、 - より大きな問題を抱えることになってしまいます。 - どういった点に注意すべきかは、このドキュメントが参考になるでしょう。 - また、Smarty のウェブサイトにあるベストプラクティスのページも参照ください。 - </para> - - <para> - <emphasis role="bold">動作原理は?</emphasis> - </para> - - <para> - その裏側では、Smarty はテンプレートをコンパイル (コピーして変換) - して PHP のスクリプトにしています。コンパイルが行われるのは各テンプレートが最初に実行されたときで、 - それ以降はコンパイルした版を使い続けます。Smarty がそのあたりの管理をすべて行うので、 - テンプレートデザイナは単に Smarty テンプレートだけを編集していればよいのです。 - コンパイルされた版のことを気にする必要はありません。 - こうすることで、テンプレートは保守しやすくなり、それでいて実行速度は高速になります。 - だって、コンパイルされたコードは単なる PHP スクリプトなのですから。 - そしてもちろん、PHP のスクリプトであるということは、 - APC などの opcode キャッシュの恩恵を受けられるということでもあります。 - </para> - - <para> - <emphasis role="bold">テンプレートの継承</emphasis> - </para> - - <para> - Smarty 3 ではテンプレートの継承機能が新たに導入されました。すばらしい新機能のうちのひとつです。 - テンプレートの継承ができなかった以前のバージョンでは、 - ヘッダやフッタなどの部品ごとにテンプレートを分けて管理していました。 - このような構成には多くの問題があり、 - たとえばヘッダやフッタの内容をページ単位でいじりたいときなどにはちょっとした小細工が必要でした。 - テンプレートの継承を使えば、他のテンプレートをインクルードすることなしに - 各テンプレートをひとつのページとして扱うことができます。 - そして、テンプレートを継承することで、そのコンテンツのブロックを操作することができるのです。 - このおかげで、テンプレートがより直感的かつ効率的に扱えるようになり、管理も容易になりました。 - 詳細な情報は、Smarty のウェブサイトにあるテンプレートの継承についての説明を参照ください。 - </para> - - <para> - <emphasis role="bold">XML/XSLT 構文を使わない理由は?</emphasis> - </para> - - <para> - 主な理由は二つです。まず、Smarty は、単に XML/HTML ベースのテンプレートとしてだけ使われるものではないということです。 - eメールやJavaScript、CSV、あるいはPDFドキュメントなどの作成に用いることもあります。 - 次に、XML/XSLT の構文は冗長であり、PHP のコードよりもさらに壊れやすいということです。 - コンピュータにとっては完璧なのでしょうが、人間が読むには恐ろしい代物です。 - Smarty は、読みやすく理解しやすく、そして保守しやすいものであることを目指しています。 - </para> - - <para> - <emphasis role="bold">テンプレートのセキュリティ</emphasis> - </para> - - <para> - Smarty は PHP から隔離されていますが、お望みならさらに安全に使う選択肢も用意されています。 - テンプレートのセキュリティ機能を使うと、PHP (および Smarty の関数) に対する制約を加えることができます。 - これは、第三者が編集したテンプレートを使うときなど、 - そのテンプレートに PHP や Smarty 関数の全パワーを渡してしまいたくない場合に便利です。 - </para> - - <para> - <emphasis role="bold">統合</emphasis> - </para> - - <para> - Smarty が Model-View-Controller (MVC) フレームワークと比較されることがときどきあります。 - Smarty は MVC ではなく単なるプレゼンテーション層です。つまり、 - MVC におけるビュー (V) にあたるものです。 - 実際、Smarty を MVC のビューとして組み込むのは簡単です。 - 多くの MVC フレームワークで Smarty の組み込み手順がまとめられています。 - また、掲示板やドキュメントなどにも有用なヘルプがあることでしょう。 - </para> - - <para> - <emphasis role="bold">他のテンプレートエンジン</emphasis> - </para> - - <para> - <emphasis>"プログラムのコードと画面の見た目を分離する"</emphasis> - という考え方を採用しているテンプレートエンジンは、何も Smarty だけではありません。 - たとえば Python には、同じ考え方で作られている Django Templates や CheetahTemplate - などがあります。 - <emphasis>注意: Python のような言語では HTML をネイティブに混ぜ込むことができないので、 - コードと見た目の分離が最初から適切にできるという利点があります。 - Python に HTML を混ぜ込むライブラリもありますが、一般的には使われていないようです。</emphasis> - </para> - - <para> - <emphasis role="bold">Smarty は○○ではありません</emphasis> - </para> - - <para> - Smarty はアプリケーション開発フレームワークではありません。 - Smarty は MVC ではありません。 - Smarty は Zend Framework や CodeIgniter、PHPCake あるいはその他の - PHP 用アプリケーション開発フレームワークのかわりに使えるものではありません。 - </para> - - <para> - Smarty はテンプレートエンジンであり、アプリケーションのビューを担当する部品となります。 - Smarty は、上にあげたような各種エンジンのビューコンポーネントとして - 容易に組み合わせることができます。 - 他のソフトウェアと同様、Smarty を使うにはある程度の学習が必要です。 - Smarty を使ったからといってそれだけでアプリケーションの設計がすっきりするわけではありません。 - 開発者やウェブデザイナーがそうするよう意識することが必要です。 - </para> - - <para> - <emphasis role="bold">Smarty はどんな場面で使える?</emphasis> - </para> - - <para> - Smarty は万能のツールというわけではありません。 - 自分がやりたいことに Smarty がフィットするかどうかを見極めることが大切です。 - 注意すべき点をいくつかまとめました。 - </para> - - <para> - テンプレートの構文: - PHP のタグと HTML が混じった状態に満足ですか? - ウェブデザイナさんは PHP を使うことに納得していますか? - 画面表示に特化したタグベースの構文のほうがお好みではありませんか? - Smarty と PHP の両方の経験がある人なら、これらの質問に答えられることでしょう。 - </para> - - <para> - 投資対効果: - テンプレートを PHP から隔離したいという要望がありますか? - 信頼できない人が編集したテンプレートに、PHP のすべてのパワーを解放してしまってもよいのですか? - テンプレートの中で何ができて何ができないのかをプログラムで制御したいとは思いませんか? - Smarty には、これらの機能が設計段階で組み込まれています。 - </para> - - <para> - 機能群: - キャッシュやテンプレート継承、プラグインなどといった Smarty の機能が自分の開発サイクルを縮め、 - 必要なコードを書くための時間を確保できるようになりますか? - 使おうとしているコードベースやフレームワークには、画面表示部分に関して必要な機能が含まれていますか? - </para> - - <para> - PHP におけるテンプレートについてはさまざまな意見があります。 - Smarty についてよく理解し、そして自分がやりたいことを見極めたうえで、 - 何を使うかを自身で決めるとよいでしょう。 - 何か質問があれば、フォーラムや IRC でいつでも受け付けます。 - </para> - - <para> - Smarty ウェブサイトの "Use Cases and Work Flow" についてのページも参照ください。 - </para> - - <para> - <emphasis role="bold">Smarty を使っているサイト</emphasis> - </para> - - <para> - Smarty のウェブサイトには、万単位のユニークビジターが毎日訪れます。ほとんどは、ドキュメントを読もうとする開発者です。 - よく知られている PHP プロジェクトの中にも Smarty を使っているところが多くあります。 - XOOPS CMS、CMS Made Simple、Tiki CMS/Groupware そして X-Cart などがその一例です。 - </para> - - <para> - <emphasis role="bold">まとめ</emphasis> - </para> - - <para> - 小規模なウェブサイトであっても大規模なエンタープライズソリューションであっても、 - Smarty はあなたのニーズを満たすでしょう。 - 次のような多くの機能を持つ Smarty は、素晴らしい選択肢となります。 - </para> - - <itemizedlist> - <listitem><para>PHP とHTML/CSS との分離</para></listitem> - <listitem><para>組織のメンバーや管理者にとっての読みやすさ</para></listitem> - <listitem><para>サードパーティのテンプレートに対するセキュリティ</para></listitem> - <listitem><para>完璧な機能、そしてさらに必要に応じた拡張の容易性</para></listitem> - <listitem><para>多くの利用実績</para></listitem> - <listitem><para>商用でも使える LGPL ライセンス</para></listitem> - <listitem><para>100% フリーなオープンソースプロジェクト</para></listitem> - </itemizedlist> - - </preface> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="advanced.features"> - <title>拡張機能</title> -&programmers.advanced-features.advanced-features-security; -&programmers.advanced-features.advanced-features-template-settings; -&programmers.advanced-features.advanced-features-template-inheritance; -&programmers.advanced-features.advanced-features-streams; -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-static-classes; -&programmers.advanced-features.advanced-features-prefilters; -&programmers.advanced-features.advanced-features-postfilters; -&programmers.advanced-features.advanced-features-outputfilters; -&programmers.advanced-features.section-template-cache-handler-func; -&programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,151 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="advanced.features.objects"> - <title>オブジェクト</title> - <para> - Smarty は、テンプレートから PHP の - <ulink url="&url.php-manual;object">オブジェクト</ulink> - へのアクセスを許可しています。 -</para> - -<note><para> - オブジェクトをテンプレートに代入/登録するときは、 - テンプレートからアクセスするプロパティやメソッドは表示に関する目的でだけ使うようにしましょう。 - オブジェクトを通じてアプリケーションのロジックを取り込むのは簡単ですが、 - それはまずい設計につながり、管理しづらくなってしまいます。 - Smarty ウェブサイトのベストプラクティスのページも参照ください。 -</para></note> - -<para> - オブジェクトにアクセスするには2つの方法があります。 -</para> - - <itemizedlist spacing="compact"> - <listitem><para> - 1つはテンプレートに <link linkend="api.register.object">オブジェクトを登録</link> - し、<link linkend="language.custom.functions">カスタム関数</link> - と似た構文を用いてアクセスする方法です。 - </para></listitem> - <listitem><para> - もう1つの方法は <link linkend="api.assign"><varname>assign()</varname></link> - を用いてテンプレートにオブジェクトを割り当て、 - 他の割り当てられた変数のようにオブジェクトにアクセスする方法です。 - </para></listitem> - </itemizedlist> - - <para> - 1つめのメソッドは素晴らしいテンプレート構文を持っています。 - それはとてもセキュアで、 登録されたオブジェクトはいくつかのメソッドやプロパティを制限する事が出来ます。 - しかし<emphasis role="bold">繰り返しの処理やオブジェクトの配列への割り当て等の事が出来ません</emphasis>。 - あなたのニーズによって選択するメソッドは決まりますが、 - テンプレート構文を最小限守るには必ず1つめのメソッドを使用して下さい。 - </para> - <para> - セキュリティが有効な場合は、('_' で始まる) プライベートメソッドや関数にはアクセスできません。 - 同じ名前のメソッドとプロパティが存在する場合は、メソッドが優先されます。 - </para> - <para> - 第3パラメータにメソッドやパラメータをリストした配列を与える事でアクセスを制限できます。 - </para> - <para> - デフォルトではテンプレートからオブジェクトに渡されたパラメータは - <link linkend="language.custom.functions">カスタム関数</link> - によって同じ方法で渡されます。 連想配列は第1パラメータとして渡され、 - smarty オブジェクトは第2パラメータとして渡されます。 - もし古いオブジェクトパラメータの渡し方のように各引数を一度に渡したいなら、第4パラメータに - &false; を指定します。 - </para> - <para> - 任意の第5パラメータは - <parameter>format</parameter> が &true; の時だけ影響し、 - ブロックとして扱われるべきオブジェクトのメソッドのリストを格納します。 - これはこれらのメソッドがテンプレート内に終了タグ - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) - を持つことを意味し、メソッドへのパラメータは - <link linkend="plugins.block.functions"> - <varname>block-function-plugins</varname></link> - へのパラメータと同じ構文となります。つまり、4つのパラメータ - <parameter>$params</parameter>、 - <parameter>$content</parameter>、 - <parameter>$smarty</parameter> および - <parameter>&$repeat</parameter> を持ち、ブロック関数プラグインのように振る舞います。 - </para> - <example> - <title>登録または割り当てられたオブジェクトを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -// オブジェクト - -class My_Object { - function meth1($params, $smarty_obj) { - return 'this is my meth1'; - } -} - -$myobj = new My_Object; - -// オブジェクトを (参照で) 登録します -$smarty->registerObject('foobar',$myobj); - -// いくらかのメソッド又はプロパティを制限したい場合、それらを配列の値としてリストします -$smarty->registerObject('foobar',$myobj,array('meth1','meth2','prop1')); - - // 古いオブジェクトパラメータの形式を使いたい場合、booleanのfalseを渡します。 -$smarty->registerObject('foobar',$myobj,null,false); - -// オブジェクトを割り当てる事が可能です(できれば参照渡しで) -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - そして <filename>index.tpl</filename> - でオブジェクトにアクセスするには以下のようにします。 - </para> - <programlisting> -<![CDATA[ -{* 登録されたオブジェクトにアクセスします *} -{foobar->meth1 p1='foo' p2=$bar} - -{* outputに割り当てる事が可能 *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* 割り当てたオブジェクトにアクセスします *} -{$myobj->meth1('foo',$bar)} -]]> - </programlisting> - </example> - <para> - <link - linkend="api.register.object"><varname>registerObject()</varname></link> - および - <link linkend="api.assign"><varname>assign()</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="advanced.features.outputfilters"> - <title>アウトプットフィルタ</title> - <para> - テンプレートが - <link linkend="api.display"><varname>display()</varname></link> 又は - <link linkend="api.fetch"><varname>fetch()</varname></link> - を経由して呼び出された時、出力は1つ又は複数のアウトプットフィルタを通して送られます。 - これは <link linkend="advanced.features.postfilters"> - <varname>ポストフィルタ</varname></link> とは異なります。 - コンパイルされたテンプレートがポストフィルタによって、 - テンプレートがディスクに保存される前に処理されるのに対し、 - アウトプットフィルタはテンプレートが実行される時にその出力を処理します。 - </para> - - <para> - アウトプットフィルタは、 - <link linkend="api.register.filter">登録する</link> - か、あるいは <link linkend="api.load.filter"><varname>load_filter()</varname></link> - 関数や <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> 変数によって - <link linkend="variable.plugins.dir">プラグインディレクトリ</link> から読み込みます。 - Smarty は内部でユーザ定義関数の第1パラメータにコンパイルされたテンプレートのソースコードを渡すので、 - 関数内で処理を行った後にその結果のソースコードを戻り値として返すようにします。 - </para> - <example> - <title>アウトプットフィルタの使用</title> - <programlisting role="php"> -<![CDATA[ -<?php -// このユーザ定義関数をアプリケーションに加えます -function protect_email($tpl_output, $smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// アウトプットフィルタを登録します -$smarty->registerFilter("output","protect_email"); -$smarty->display("index.tpl'); - -// これによりテンプレート出力に含まれるいくつかのemailアドレスは -// スパムボットからシンプルな保護を受けるでしょう -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>、 - <link linkend="api.load.filter"><varname>loadFilter()</varname></link>、 - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>、 - <link linkend="advanced.features.postfilters">ポストフィルタ</link> および - <link linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="advanced.features.postfilters"> - <title>ポストフィルタ</title> - <para> - ポストフィルタは、テンプレートが - <emphasis>コンパイルされた後に</emphasis> - 実行されるPHPユーザ定義関数です。ポストフィルタは、 - <link linkend="api.register.filter">登録する</link> - か、あるいは <link linkend="api.load.filter"><varname>load_filter()</varname></link> - 関数や <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> 変数によって - <link linkend="variable.plugins.dir">プラグインディレクトリ</link> から読み込みます。 - Smarty は内部でユーザ定義関数の第1パラメータにコンパイルされたテンプレートのソースコードを渡すので、 - 関数内で処理を行った後にその結果のソースコードを戻り値として返すようにします。 - </para> - <example> - <title>ポストフィルタを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -// このユーザ定義関数をアプリケーションに加えます -function add_header_comment($tpl_source, $smarty) -{ - return "<?php echo \"<!-- Created by Smarty! -->\n\"; ?>\n".$tpl_source; -} - -// ポストフィルタを登録します -$smarty->registerFilter('post','add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - 上のポストフィルタは、このようなコンパイル済みテンプレート - <filename>index.tpl</filename> を作成します。 - </para> - <screen> -<![CDATA[ -<!-- Created by Smarty! --> -{* 以下、残りのコンテンツ *} -]]> - </screen> - </example> - <para> - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>、 - <link linkend="advanced.features.prefilters">プリフィルタ</link>、 - <link linkend="advanced.features.outputfilters">アウトプットフィルタ</link> - および - <link linkend="api.load.filter"><varname>loadFilter()</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="advanced.features.prefilters"> - <title>プリフィルタ</title> - <para> - プリフィルタは、テンプレートが<emphasis>コンパイルされる前に</emphasis> - 実行されるPHPユーザ定義関数です。テンプレートに含まれた不必要なコメントを除いたり、 - 第三者にテンプレートの更新を任せている時に - テンプレート内にどのようなものが含まれているかを監視する等といった前処理を行います。 - </para> - <para> - プリフィルタは、 <link linkend="api.register.filter">登録する</link> - か、あるいは <link linkend="api.load.filter"><varname>load_filter()</varname></link> - 関数や <link linkend="variable.autoload.filters"> - <parameter>$autoload_filters</parameter></link> 変数によって - <link linkend="variable.plugins.dir">プラグインディレクトリ</link> から読み込みます。 - </para> - <para> - Smartyは内部でユーザ定義関数の第1パラメータにテンプレートのソースコードを渡すので、 - 関数内で処理を行った後にその結果のソースコードを戻り値として返すようにします。 - </para> - <example> - <title>プリフィルタの使用</title> - <para> - これはテンプレートソース内の全てのコメントを取り除きます。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// このユーザ定義関数をアプリケーションに加えます -function remove_dw_comments($tpl_source, $smarty) -{ - return preg_replace("/<!--#.*-->/U",'',$tpl_source); -} - -// プリフィルタを登録します -$smarty->registerFilter('pre','remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - - </example> - <para> - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>、 - <link linkend="advanced.features.postfilters">ポストフィルタ</link> - および - <link linkend="api.load.filter"><varname>loadFilter()</varname></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-security.xml
Deleted
@@ -1,210 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="advanced.features.security"> - <title>セキュリティ</title> - <para> - セキュリティ機能は、信頼できないメンバーに ftp 経由などでテンプレートを編集させたりするときに便利です。 - また、テンプレート言語からシステムに関する情報が漏れるリスクを軽減させるためにも使えます。 - </para> - <para> - セキュリティポリシーの設定は、Smarty_Security クラスのインスタンスのプロパティで行います。 - 次のような設定が可能です。 -<itemizedlist> - <listitem> - <para> - <parameter>$php_handling</parameter> は、テンプレートに埋め込まれた PHP のコードを - Smarty がどのように処理するかを設定します。設定できる値は次のいずれかです。 - <itemizedlist> - <listitem> - <para> - Smarty::PHP_PASSTHRU -> php タグをそのまま表示する - </para> - </listitem> - <listitem> - <para> - Smarty::PHP_QUOTE -> タグをエンティティとしてエスケープする - </para> - </listitem> - <listitem> - <para> - Smarty::PHP_REMOVE -> php タグを削除する - </para> - </listitem> - <listitem> - <para> - Smarty::PHP_ALLOW -> php タグを実行する - </para> - </listitem> - </itemizedlist> - デフォルトは Smarty::PHP_PASSTHRU です。 - </para> - <para> - セキュリティを有効にすると、Smarty オブジェクトの - <link linkend="variable.php.handling"><parameter>$php_handling</parameter></link> - の設定内容はチェックしなくなります。 - </para> - </listitem> - <listitem> - <para> - <parameter>$secure_dir</parameter> は、安全だとみなされるテンプレートディレクトリの配列です。 - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link> - は、暗黙のうちに安全だとみなされます。デフォルトは空の配列です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$trusted_dir</parameter> は、信頼済みとみなされるすべてのディレクトリの配列です。 - 信頼済みのディレクトリには、テンプレートから - <link linkend="language.function.include.php"><varname>{include_php}</varname></link> - で読み込んで直接実行する PHP スクリプトを置きます。デフォルトは空の配列です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$static_classes</parameter> は、信頼済みとみなされるクラスの配列です。 - デフォルトは空の配列で、これはすべての static クラスへのアクセスを許可します。 - すべての static クラスへのアクセスを無効にするには - $static_classes = null とします。 - </para> - </listitem> - <listitem> - <para> - <parameter>$php_functions</parameter> は、信頼済みとみなされる PHP 関数の配列で、 - テンプレートから使うことができます。すべての PHP 関数を使えないようにするには - $php_functions = null とします。空の配列を指定 ( $php_functions = array() ) - すると、すべての PHP 関数が使えるようになります。デフォルトは - array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array','time','nl2br') です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$php_modifiers</parameter> は、信頼済みとみなされる PHP 関数の配列で、 - テンプレートから修飾子として使うことができます。すべての PHP 修飾子を使えないようにするには - $php_modifier = null とします。空の配列を指定 ( $php_modifier = array() ) - すると、すべての PHP 関数が使えるようになります。デフォルトは - array('escape','count') です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$streams</parameter> は、信頼済みとみなされるストリームの配列です。 - これらのストリームをテンプレートから使うことができます。すべてのストリームを使えないようにするには - $streams = null とします。空の配列を指定 ( $streams = array() ) - すると、すべてのストリームが使えるようになります。デフォルトは - array('file') です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$allow_constants</parameter> は boolean のフラグで、 - テンプレートから定数にアクセスできるかどうかを指定します。 - デフォルトは "true" です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$allow_super_globals</parameter> は boolean のフラグで、 - テンプレートから PHP のスーパーグローバル変数にアクセスできるかどうかを指定します。 - デフォルトは "true" です。 - </para> - </listitem> - <listitem> - <para> - <parameter>$allow_php_tag</parameter> は boolean のフラグで、 - テンプレートから {php} タグや {include_php} タグを使えるかどうかを指定します。 - デフォルトは "false" です。 - </para> - </listitem> -</itemizedlist> - </para> - <para> - セキュリティを有効にすると、private なメソッドや関数、static クラスやオブジェクトのプロパティへの - テンプレートからの (先頭に '_' をつけた) アクセスができなくなります。 - </para> - <para> - セキュリティポリシーの設定をカスタマイズするには、Smarty_Security - クラスを継承したクラスを作るかこのクラスのインスタンスを作成します。 - </para> - <example> - <title>Smarty_Security クラスの継承によるセキュリティポリシーの設定</title> - <programlisting role="php"> -<![CDATA[ -<?php -require 'Smarty.class.php'; - -class My_Security_Policy extends Smarty_Security { - // すべての PHP 関数を無効にします - public $php_functions = null; - // PHP タグを除去します - public $php_handling = Smarty::PHP_REMOVE; - // すべての修飾子を使えるようにします - public $modifiers = array(); -} -$smarty = new Smarty(); -// セキュリティを有効にします -$smarty->enableSecurity('My_Security_Policy'); -?> -]]> -</programlisting> - </example> - <example> - <title>Smarty_Security クラスのインスタンスによるセキュリティポリシーの設定</title> - <programlisting role="php"> -<![CDATA[ -<?php -require 'Smarty.class.php'; -$smarty = new Smarty(); -$my_security_policy = new Smarty_Security($smarty); -// すべての PHP 関数を無効にします -$my_security_policy->php_functions = null; -// PHP タグを除去します -$my_security_policy->php_handling = Smarty::PHP_REMOVE; -// すべての修飾子を使えるようにします -$my_security_policy->$modifiers = array(); -// セキュリティを有効にします -$smarty->enableSecurity($my_security_policy); -?> -]]> -</programlisting> - </example> - <example> - <title>デフォルト設定でのセキュリティの有効化</title> - <programlisting role="php"> -<![CDATA[ -<?php -require 'Smarty.class.php'; -$smarty = new Smarty(); -// デフォルトのセキュリティを有効にします -$smarty->enableSecurity(); -?> -]]> -</programlisting> - </example> - <note><para> - セキュリティポリシーの設定をチェックするのは、テンプレートがコンパイルされるときだけです。 - したがって、セキュリティの設定を変更したときには - キャッシュやコンパイル済みのテンプレートファイルをすべて削除しなければなりません。 - </para></note> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-static-classes.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="advanced.features.static.classes"> - <title>static クラス</title> - <para> - static クラスには直接アクセスすることができます。構文は、PHP と同じです。 - </para> - - <note><para> - PHP のクラスに直接アクセスすることはお勧めしません。 - これは、アプリケーションのコードの構造と表示内容とを密結合させることになり、 - さらにテンプレートの構造も複雑になってしまいます。 - プラグインを登録し、テンプレートを PHP のクラスやオブジェクトから隔離することを推奨します。 - この仕組みはよく考えた上で使うようにしましょう。 - Smarty のウェブサイトにあるベストプラクティスのページも参照ください。 - </para></note> - - - <example> - <title>static クラスへのアクセス方法</title> - <programlisting> -<![CDATA[ -{assign var=foo value=myclass::BAR} <--- クラス定数 BAR - -{assign var=foo value=myclass::method()} <--- メソッドの結果 - -{assign var=foo value=myclass::method1()->method2} <--- メソッドチェイン - -{assign var=foo value=myclass::$bar} <--- myclass クラスの bar プロパティ - -{assign var=foo value=$bar::method} <--- Smarty の変数 bar をクラス名として使う - -]]> - </programlisting> - </example> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-streams.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="advanced.features.streams"> - <title>ストリーム</title> - <para> - PHP のストリームを、テンプレートリソースあるいは変数リソースとして使うことができます。 - この構文は、昔ながらのテンプレートリソース名と同じです。 - </para> - <para> - Smarty は、まず最初に登録済みのテンプレートリソースを探します。 - 見つからない場合は、PHP のストリームが存在するかどうかをチェックします。 - ストリームが存在する場合は、Smarty はそれを使ってテンプレートを取得します。 - <note><para>さらに、セキュリティを有効にすれば、使えるストリームを制限することもできます。</para></note> - </para> - <example> - <title>PHP からのストリーム</title> - <para>PHP のストリームを、テンプレートリソースとして display() 関数から使います。</para> - <programlisting> -<![CDATA[ -$smarty->display('foo:bar.tpl'); -]]> - </programlisting> -</example> -<example> - <title>テンプレートからのストリーム</title> - <para>PHP のストリームを、テンプレートリソースとしてテンプレート内から使います。</para> - <programlisting> -<![CDATA[ -{include file="foo:bar.tpl"} -]]> - </programlisting> -</example> -<para> -ストリームを使って変数をコールすることもできます。 -<emphasis>{$foo:bar}</emphasis> は、<emphasis>foo://bar</emphasis> ストリームを使ってテンプレート変数を取得します。 -</para> -<example> - <title>ストリーム変数</title> - <para>PHP のストリームを、テンプレート変数リソースとしてテンプレート内から使います。</para> - <programlisting> -<![CDATA[ -{$foo:bar} -]]> - </programlisting> -</example> - <para> - <link linkend="template.resources"><varname>テンプレートリソース</varname></link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-template-inheritance.xml
Deleted
@@ -1,171 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3850 Maintainer: takagi Status: ready --> -<sect1 id="advanced.features.template.inheritance"> - <title>テンプレートの継承</title> - <para> - 継承機能は、オブジェクト指向プログラミングの考え方をテンプレートに導入したものです。 - これを使うと、ひとつあるいは複数の基底テンプレートを継承して子テンプレートを作ることができます。 - 継承とは、子テンプレートが親の名前付きブロックをオーバーライドできるということです。 - </para> - - <itemizedlist> - <listitem><para> - 継承ツリーは好きなだけ深くすること (つまり、あるファイルを継承したファイルを継承したファイルを… - ということ) ができます。 - </para></listitem> - <listitem><para> - 子テンプレートでは、オーバーライドした <link linkend="language.function.block"><varname>{block}</varname></link> - タグの内部のコンテンツ以外を変更することはできません。 - <link linkend="language.function.block"><varname>{block}</varname></link> - タグの外側に書いた内容は削除されます。 - </para></listitem> - <listitem><para> - 子テンプレートと親テンプレートの <link linkend="language.function.block"><varname>{block}</varname></link> - タグの内容をマージすることができます。その場合は、 - <link linkend="language.function.block"><varname>{block}</varname></link> タグのオプションのフラグ - <literal>append</literal> あるいは <literal>prepend</literal> と、プレースホルダ - <literal>{$smarty.block.parent}</literal> あるいは <literal>{$smarty.block.child}</literal> を使います。 - </para></listitem> - <listitem><para> - テンプレートの継承はコンパイル時に行われ、コンパイル後はひとつのテンプレートファイルになります。 - 子テンプレートを使う手法のひとつである <link linkend="language.function.include"><varname>{include}</varname></link> - タグによるインクルードと比べて、レンダリング時のパフォーマンスがはるかに優れています。 - </para></listitem> - <listitem><para> - 子テンプレートが親テンプレートを継承するときには - <link linkend="language.function.extends"><varname>{extends}</varname></link> - タグを使います。このタグは、子テンプレートの最初の行になければなりません。 - テンプレートファイルで <link linkend="language.function.extends"><varname>{extends}</varname></link> - タグを使う方法のほかに、PHP スクリプト側でテンプレートの継承ツリー全体を定義することもできます。 - その場合は、<link linkend="api.fetch"><varname>fetch()</varname></link> あるいは - <link linkend="api.display"><varname>display()</varname></link> をコールするときに - テンプレートリソース型 <literal>extends:</literal> を使います。 - 後者の方法のほうが柔軟性があります。 - </para></listitem> - </itemizedlist> - <note><para> - <parameter>$compile_check</parameter> が有効な場合は、起動するたびに - 継承ツリーの全ファイルの更新チェックを行います。そのため、実際の運用時には - <parameter>$compile_check</parameter> を無効にするとよいでしょう。 - </para></note> - <note><para> - <link linkend="language.function.include"><varname>{include}</varname></link> - でインクルードしたテンプレートに - <link linkend="language.function.block"><varname>{block}</varname></link> - エリアが含まれている場合にそれが正しく機能するのは、 - <link linkend="language.function.include"><varname>{include}</varname></link> - 自身がそれを囲む <link linkend="language.function.block"><varname>{block}</varname></link> - の中でコールされたときだけです。最終的な親テンプレートには、ダミーの - <link linkend="language.function.block"><varname>{block}</varname></link> - が必要になるでしょう。 - </para></note> - - <example> - <title>テンプレートの継承の例</title> - <para>layout.tpl (親)</para> - <programlisting> -<![CDATA[ -<html> -<head> - <title>{block name=title}Default Page Title{/block}</title> - <span style="color: blue">{block name=head}{/block}</span> -</head> -<body> -{block name=body}{/block} -</body> -</html> -]]> - </programlisting> - <para>myproject.tpl (子)</para> - <programlisting> -<![CDATA[ -{extends file='layout.tpl'} -{block name=head} - <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> - <script src="/js/mypage.js"></script> -{/block} -]]> - - </programlisting> - <para>myproject.tpl (孫)</para> - <programlisting> -<![CDATA[ -{extends file='project.tpl'} -{block name=title}My Page Title{/block} -{block name=head} - <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> - <script src="/js/mypage.js"></script> -{/block} -{block name=body}My HTML Page Body goes here{/block} -]]> - </programlisting> - <para>これらをレンダリングするには、次のようにします。</para> -<programlisting role="php"> -<![CDATA[ - $smarty->display('mypage.tpl'); -]]> -</programlisting> - <para>結果は、このようになります。</para> - <programlisting> -<![CDATA[ -<html> -<head> - <title>My Page Title</title> - <link href="/css/mypage.css" rel="stylesheet" type="text/css"/> - <script src="/js/mypage.js"></script> -</head> -<body> -My HTML Page Body goes here -</body> -</html>]]> -</programlisting> -</example> - - <example> - <title>テンプレートリソース <literal>extends:</literal> による継承</title> - <para> - テンプレートファイルで <link linkend="language.function.extends"><varname>{extends}</varname></link> - タグを使うかわりに、PHP スクリプトの中でリソース型 <literal>extends:</literal> - を使って継承ツリーを定義することもできます。 - </para> - <para> - 次のコードは、先ほどの例と同じ結果を返します。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('extends:layout.tpl|myproject.tpl|mypage.tpl'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.block"><varname>{block}</varname></link>、 - <link linkend="language.function.extends"><varname>{extends}</varname></link> - および - <link linkend="extends.resource"><literal>extends:</literal> リソース</link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/advanced-features-template-settings.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="advanced.features.template.settings"> - <title>テンプレートでの設定の変更</title> - <para> - 通常は、Smarty の設定変更は <link linkend="api.variables"><varname>Smarty クラス変数</varname></link> - を使って行います。さらに、プラグインやフィルタなどを - <link linkend="api.functions"><varname>Smarty 関数</varname></link> - で登録することもできます。Smarty オブジェクトで設定した内容は、 - すべてのテンプレートに適用されます。 - </para> -<para> - しかし、Smarty クラス変数や関数には、個々のテンプレートオブジェクトからアクセスすることもできます。 - テンプレートオブジェクトで設定した内容は、そのテンプレート自身と - そのテンプレートがインクルードしている子テンプレートに対してのみ適用されます。 -</para> - <para> - <example> - <title>テンプレートでの Smarty の設定の変更</title> - <programlisting role="php"> -<![CDATA[ -<?php -$tpl = $smarty->createTemplate('index.tpl); -$tpl->cache_lifetime = 600; -// あるいは -$tpl->setCacheLifetime(600); -$smarty->display($tpl); -?> -]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>テンプレートでのプラグインの登録</title> - <programlisting role="php"> -<![CDATA[ -<?php -$tpl = $smarty->createTemplate('index.tpl); -$tpl->registerPlugin('modifier','mymodifier'); -$smarty->display($tpl); -?> -]]> - </programlisting> - </example> - </para> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,187 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3836 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="section.template.cache.handler.func"> - <title>キャッシュハンドラ関数</title> - <para> - デフォルトのファイルベースのキャッシュメカニズムの代替として、 - キャッシュファイルの読み書きや破棄を直接行うキャッシュハンドラ関数を指定できます。 - これは、キャッシュファイルの - <literal>read</literal>、<literal>write</literal> および - <literal>clear</literal> で使われます。 - </para> - <para> - まず、アプリケーション内にSmartyがキャッシュハンドラとして使用するための関数を定義します。 - そしてその関数名を <link linkend="variable.cache.handler.func"> - <parameter>$cache_handler_func</parameter></link> - クラス変数に指定します。Smarty は、これを使用してキャッシュされたデータを処理します。 - </para> - - <itemizedlist> - <listitem><para> - 第1パラメータはキャッシュの動作を表す文字列で、これは - <literal>read</literal>、<literal>write</literal> および - <literal>clear</literal> のいずれかとなります。 - </para></listitem> - - <listitem><para> - 第2パラメータは Smarty オブジェクトです。 - </para></listitem> - - <listitem><para> - 第3パラメータはキャッシュの内容です。 - <literal>write</literal> の場合はキャッシュされたコンテンツが渡され、 - <literal>read</literal> の場合は参照を受け取ってそこにキャッシュされたコンテンツを書き込み、 - <literal>clear</literal> の場合はこのパラメータの値を使用しないのでダミーの変数が渡されます。 - </para></listitem> - - <listitem><para> - 第4パラメータはテンプレートファイル名です('read'又は'write'の場合に必要)。 - </para></listitem> - - <listitem><para> - 任意の第5パラメータは <parameter>$cache_id</parameter> です。 - </para></listitem> - - <listitem><para> - 任意の第6パラメータは <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> です。 - </para></listitem> - - <listitem><para> - 最後の第7パラメータ <parameter>$exp_time</parameter> - は Smarty-2.6.0 で追加されました。 - </para></listitem> - - </itemizedlist> - - <example> - <title>キャッシュソースとしてMySQLを使用する例</title> - <programlisting role="php"> -<![CDATA[ -<?php -/************************************************** -example usage: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -MySQLデータベースのスキーマ定義 - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -**************************************************/ - -function mysql_cache_handler($action, $smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // ここでDBのホスト名・ユーザ名・パスワードを指定します - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // ユニークなキャッシュIDを作成します - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - trigger_error('cache_handler: could not connect to database'); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // キャッシュをデータベースから読み込みます - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - trigger_error('cache_handler: query failed.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // キャッシュをデータベースに保存します - - if($use_gzip && function_exists("gzcompress")) { - // 記憶効率のために内容を圧縮します - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - trigger_error('cache_handler: query failed.'); - } - $return = $results; - break; - case 'clear': - // キャッシュ情報を破棄します - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // 全てのキャッシュを破棄します - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - trigger_error('cache_handler: query failed.'); - } - $return = $results; - break; - default: - // エラー・未知の動作 - trigger_error("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> -</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,304 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="template.resources"> - <title>リソース</title> - <para> - テンプレートは様々なリソースから呼び出して使用できます。テンプレートを - <link linkend="api.display"><varname>display()</varname></link>、 - <link linkend="api.fetch"><varname>fetch()</varname></link> - したり別のテンプレートからインクルードしたりする際には、 - リソースの種類に続けて適切なパスとテンプレート名を指定します。 - リソースを明示的に指定しない場合は <link - linkend="variable.default.resource.type"> - <parameter>$default_resource_type</parameter></link> の値であるとみなします。 - </para> - - <sect2 id="templates.from.template.dir"> - <title>$template_dir からのテンプレート</title> - <para> - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> からのテンプレートを使用する場合は、 - テンプレートリソースの指定は必要ありません。しかし、一貫性を保つために - <literal>file:</literal> リソースを使用してもかまいません。使用したいテンプレートへのパスを、 - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> - のルートディレクトリからの相対パス (先頭のスラッシュはなし) で指定します。 - </para> - <example> - <title>$template_dir のテンプレートを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('index.tpl'); -$smarty->display('file:index.tpl'); // 上と同じ -?> -]]> -</programlisting> -<para>Smarty のテンプレート</para> -<programlisting> -<![CDATA[ -{include file='index.tpl'} -{include file='file:index.tpl'} {* 上と同じ *} -]]> -</programlisting> - </example> - </sect2> - <sect2 id="templates.from.any.dir"> - <title>任意のディレクトリからのテンプレート</title> - <para> - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> - の外に置かれたテンプレートを使うには、リソースの種類 - <literal>file:</literal> を指定しなければなりません。 - その後にテンプレートへの絶対パス (先頭のスラッシュつき) を続けます。 - </para> - <note><para> - セキュリティが有効な場合、template_dir 以外の場所にあるテンプレートにはアクセスできません。 - </para></note> - <example> - <title>任意のディレクトリからのテンプレートを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - Smarty のテンプレート - </para> - <programlisting> -<![CDATA[ -{include file='file:/usr/local/share/templates/navigation.tpl'} -]]> - </programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Windows のファイルパス</title> - <para> - 通常、Windows 環境の場合はファイルパスの先頭にドライブレター (C:) - が含まれます。ネームスペースの衝突を回避して期待通りの結果を得るために、 - 必ず <literal>file:</literal> を使用して下さい。 - </para> - <example> - <title>Windows ファイルパスからテンプレートを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - Smarty テンプレート - </para> - <programlisting> -<![CDATA[ -{include file='file:D:/usr/local/share/templates/navigation.tpl'} -]]> -</programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.string"> - <title>文字列からのテンプレート</title> - <para> - Smarty は、<literal>string:</literal> あるいは <literal>eval:</literal> - リソースを使って文字列からテンプレートをレンダリングすることができます。 - </para> - - <itemizedlist> - <listitem><para> - <literal>string:</literal> リソースは、テンプレートファイルと同じように振る舞います。 - テンプレートのソースが文字列からコンパイルされ、コンパイル済みのテンプレートのコードを後で再利用します。 - 各テンプレート文字列に対して、それぞれ新しいコンパイル済みテンプレートファイルができます。 - テンプレート文字列に頻繁にアクセスするのなら、この方法を選ぶといいでしょう。 - もしテンプレート文字列を頻繁に変更する (あるいはあまり再利用性のない値を含む文字列である) - 場合は、<literal>eval:</literal> リソースのほうがよいでしょう。 - </para></listitem> - - <listitem><para> - <literal>eval:</literal> リソースは、ページをレンダリングするときに毎回テンプレートソースを評価します。 - これは、再利用性の低い値を持つ文字列を扱うときによい方法です。 - 同じ文字列に頻繁にアクセスするのなら、<literal>string:</literal> リソースのほうがよいでしょう。 - </para></listitem> - </itemizedlist> - - <note><para> - <literal>string:</literal> リソースでは、文字列ごとにコンパイル済みファイルができあがります。 - Smarty は文字列が変更されたかどうかを検出できないので、 - 個々の文字列につい新たにコンパイルしてファイルを生成します。 - コンパイルした文字列でディスクが埋まってしまわないよう、 - 適切なリソースを選択することが重要です。 - </para></note> - - <example> - <title>文字列からのテンプレートを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('foo','value'); -$template_string = 'display {$foo} here'; -$smarty->display('string:'.$template_string); // コンパイルしたものを再利用します -$smarty->display('eval:'.$template_string); // 毎回コンパイルします -?> -]]> -</programlisting> - <para>Smarty テンプレート</para> - <programlisting> -<![CDATA[ -{include file="string:$template_string"} {* コンパイルしたものを再利用します *} -{include file="eval:$template_string"} {* 毎回コンパイルします *} - -]]> -</programlisting> - </example> - </sect2> - - <sect2 id="extends.resource"> - <title>PHP スクリプトで定義したテンプレートの継承</title> - <para> - <literal>extends:</literal> リソースを使って、テンプレートの継承の親子関係を PHP スクリプトから定義することができます。 - 詳細は <link linkend="advanced.features.template.inheritance">テンプレートの継承</link> を参照ください。 - </para> - - - <example> - <title>テンプレートの継承を PHP スクリプトから使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('extends:parent.tpl|child.tpl|grandchild.tpl'); -?> -]]> - </programlisting> - </example> - - <note><para> - これは、継承をプログラム的に定義しなければならないときに使います。 - PHP から継承を定義するときは、子テンプレート側からはどのような継承関係になるかが明らかではありません。 - この方式を使えば、通常はより柔軟かつ直感的にテンプレート側から継承関係を処理できるようになります。 - </para></note> - - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>その他のリソース内のテンプレート</title> - <para> - データベース・ソケット・LDAP 等の - PHPによってアクセス可能なリソースからテンプレートを取得する事ができます。 - そのためにはリソースプラグイン関数を記述し、それを登録する必要があります。 - </para> - - <para> - リソースプラグイン関数についての詳細な情報は - <link linkend="plugins.resources">リソースプラグイン</link> - の項を参照してください。 - </para> - - <note> - <para> - 元から存在する <literal>file:</literal> リソースは上書きできないことに注意しましょう。 - しかし、ファイルシステム上のテンプレートを別の方法で取得するテンプレートを作成することはできます。 - それを別のリソース名で登録すればよいのです。 - </para> - </note> - <example> - <title>カスタムリソースを使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -// これらの関数をアプリケーションに追加します -function db_get_template ($tpl_name, &$tpl_source, $smarty_obj) -{ - // ここでデータベースを呼び出し、取得した実際のテンプレートを - // $tpl_source に代入します - $tpl_source = "This is the template text"; - // 成功した場合に true を返します。false を返すと失敗したことになります - return true; -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, $smarty_obj) -{ - // テンプレートの最終更新時刻の Unix タイムスタンプを - // $tpl_timestampに代入するためにデータベースを呼び出します - // これで、再コンパイルが必要かどうかを判断します - $tpl_timestamp = time(); // この例だと常に再コンパイルとなります! - // 成功した場合に true を返します。false を返すと失敗したことになります - return true; -} - -function db_get_secure($tpl_name, $smarty_obj) -{ - // 全てのテンプレートがセキュアであると仮定します - return true; -} - -function db_get_trusted($tpl_name, $smarty_obj) -{ - // テンプレートから使用しません -} - -// テンプレートリソース名"db"を登録します -$smarty->registerResource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// phpスクリプトからテンプレートリソースを使用します -$smarty->display("db:index.tpl"); -?> -]]> - </programlisting> - <para> - Smarty テンプレート - </para> - <programlisting> -<![CDATA[ -{include file='db:/extras/navigation.tpl'} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>デフォルトのテンプレートハンドラ関数</title> - <para> - テンプレートリソースからテンプレートの取得に失敗した際に、 - テンプレートのコンテンツを取り戻すために呼び出されるユーザ定義関数を指定します。 - この関数の使用方法の1つとして、その場限りのテンプレートを作成する処理を行います。 - </para> - - <para> - <link linkend="advanced.features.streams"><varname>ストリーム</varname></link> - も参照ください。 - </para> - </sect2> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="api.functions"> - <title>Smarty クラスメソッド</title> - <note><para> - 個々のテンプレートで関数を使う方法については - <link linkend="advanced.features.template.settings"><varname>テンプレートによる設定の変更</varname></link> - の節を参照ください。 - </para></note> -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-compile-all-config; -&programmers.api-functions.api-compile-all-templates; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-create-data; -&programmers.api-functions.api-create-template; -&programmers.api-functions.api-disable-security; -&programmers.api-functions.api-display; -&programmers.api-functions.api-enable-security; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-tags; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-filter; -&programmers.api-functions.api-register-plugin; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-resource; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-filter; -&programmers.api-functions.api-unregister-plugin; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-resource; -&programmers.api-functions.api-test-install; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>appendByRef()</refname> - <refpurpose>参照として値を追加します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>appendByRef</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - これを使用して、テンプレートに参照として値を - <link linkend="api.append"><varname>追加</varname></link> します。 - </para> - <note> - <title>テクニカルノート</title> - <para> - PHP 5 以降では、<varname>appendByRef()</varname> はほとんどの場合で不要になりました。 - <varname>appendByRef()</varname> が有用なのは、PHP の配列のインデックスの値を - テンプレートから再代入したい場合などです。オブジェクトのプロパティへの代入は、 - デフォルトでこれと同じ挙動になります。 - </para> - </note> - ¬e.parameter.merge; - <example> - <title>appendByRef</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 名前/値 のペアを追加します -$smarty->appendByRef('Name', $myname); -$smarty->appendByRef('Address', $address); -?> -]]> - </programlisting> - </example> -<para> - <link linkend="api.append"><varname>append()</varname></link>、 - <link linkend="api.assign"><varname>assign()</varname></link> - および - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - も参照してください。 -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-append.xml
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.append"> - <refnamediv> - <refname>append()</refname> - <refpurpose>割り当てられたテンプレート配列に要素を追加します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - もし文字列を追加する場合は、 配列の値としてコンバートされた後に追加されます。 - 配列名/値のペアを明示的に指定するか、それらが格納された連想配列を指定します。 - 配列ではないテンプレート変数に対して追加した場合、 - その変数を配列に変換した後で追加されます。 任意の第3パラメータに &true; - が渡された場合は、値は現在のテンプレート配列に追加される代わりにマージされます。 - </para> - ¬e.parameter.merge; - <example> - <title>append</title> - <programlisting role="php"> -<![CDATA[ -<?php -// これは、事実上 assign() と同じです -$smarty->append('foo', 'Fred'); -// これ以降、foo をテンプレート内で配列として使用することができます -$smarty->append('foo', 'Albert'); - -$array = array(1 => 'one', 2 => 'two'); -$smarty->append('X', $array); -$array2 = array(3 => 'three', 4 => 'four'); -// 配列 X に2番目の要素を追加します -$smarty->append('X', $array2); - -// 連想配列を渡します -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.append.by.ref"><varname>appendByRef()</varname></link>、 - <link linkend="api.assign"><varname>assign()</varname></link> - および - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assignByRef()</refname> - <refpurpose>参照として値を割り当てます。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>assignByRef</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - これを使用して、参照として - テンプレートに変数を <link linkend="api.assign"><varname>割り当て</varname></link> - ます。 - </para> - <note> - <title>テクニカルノート</title> - <para> - PHP 5 以降では、<varname>assignByRef()</varname> はほとんどの場合で不要になりました。 - <varname>assignByRef()</varname> が有用なのは、PHP の配列のインデックスの値を - テンプレートから再代入したい場合などです。オブジェクトのプロパティへの代入は、 - デフォルトでこれと同じ挙動になります。 - </para> - </note> - <example> - <title>assignByRef()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 名前/値のペアを渡します -$smarty->assignByRef('Name', $myname); -$smarty->assignByRef('Address', $address); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.assign"><varname>assign()</varname></link>、 - <link linkend="api.clear.all.assign"><varname>clearAllAssign()</varname></link>、 - <link linkend="api.append"><varname>append()</varname></link>、 - <link linkend="language.function.assign"><varname>{assign}</varname></link> - および - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - も参照してください。 - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-assign.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3842 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.assign"> - <refnamediv> - <refname>assign()</refname> - <refpurpose>テンプレートに値/オブジェクトを割り当てます。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>nocache</parameter></methodparam> - </methodsynopsis> - <para> - テンプレート変数名/値のペアを明示的に指定するか、それらが格納された連想配列を指定します。 - </para> - <para> - オプションの三番目のパラメータ <parameter>nocache</parameter> に &true; を渡すと、 - キャッシュしない変数として代入します。詳細は - <link linkend="cacheability.variables"><parameter>変数のキャッシュ機能</parameter></link> を参照ください。 - </para> - <note><para> - オブジェクトをテンプレートに代入/登録するときは、 - テンプレートからアクセスするプロパティやメソッドは表示に関する目的でだけ使うようにしましょう。 - オブジェクトを通じてアプリケーションのロジックを取り込むのは簡単ですが、 - それはまずい設計につながり、管理しづらくなってしまいます。 - Smarty ウェブサイトのベストプラクティスのページも参照ください。 - </para></note> - - <example> - <title>assign()</title> -<programlisting role="php"> -<![CDATA[ -<?php -// 名前/値のペアを渡します -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// 連想配列を渡します -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// 配列を渡します -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// データベース (例: adodb) の行を渡します -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> -</programlisting> - <para> - テンプレートの内容 - </para> -<programlisting> -<![CDATA[ -{* 変数は、php と同様に大文字小文字を区別することに注意しましょう *} -{$Name} -{$Address} -{$city} -{$state} - -{$foo.no}, {$foo.label} -{$contact.id}, {$contact.name},{$contact.email} -]]> -</programlisting> - </example> - <para> - より複雑な配列の割り当てに関しては、 - <link linkend="language.function.foreach"><varname>{foreach}</varname></link> - および - <link linkend="language.function.section"><varname>{section}</varname></link> - を参照してください。 - </para> - - <para> - <link linkend="api.assign.by.ref"><varname>assignByRef()</varname></link>、 - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>、 - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>、 - <link linkend="api.append"><varname>append()</varname></link> - および - <link linkend="language.function.assign"><varname>{assign}</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clearAllAssign()</refname> - <refpurpose>割り当てられた全てのテンプレート変数を破棄します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>clearAllAssign</methodname> - <void /> - </methodsynopsis> - <example> - <title>clearAllAssign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 名前/値のペアを渡します -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// 上の内容を出力します -print_r( $smarty->getTemplateVars() ); - -// 割り当てられた変数を破棄します -$smarty->clearAllAssign(); - -// 何も出力しません -print_r( $smarty->getTemplateVars() ); - -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>、 - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>、 - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>、 - <link linkend="api.assign"><varname>assign()</varname></link> - および <link linkend="api.append"><varname>append()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clearAllCache()</refname> - <refpurpose>全てのテンプレートのキャッシュをクリアします。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>clearAllCache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - 任意のパラメータとして、キャッシュファイルを削除する前にそのファイルが存在しなくてはならない - 最低限の時間(秒)を与える事が出来ます。 - </para> - <example> - <title>clearAllCache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// キャッシュ全体をクリアします -$smarty->clearAllCache(); - -// 一時間以上経過しているファイルをすべてクリアします -$smarty->clearAllCache(3600); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>、 - <link linkend="api.is.cached"><varname>isCached()</varname></link> - および - <link linkend="caching">キャッシュ</link> のページも参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clearAssign()</refname> - <refpurpose>割り当てられたテンプレート変数の値を破棄します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>clearAssign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> -パラメータには1つの変数又は変数名を格納した配列を渡します。 - </para> - <example> - <title>clearAssign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// ひとつの変数をクリアします -$smarty->clearAssign('Name'); - -// 複数の変数をクリアします -$smarty->clearAssign(array('Name', 'Address', 'Zip')); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.all.assign"><varname>clearAllAssign()</varname></link>、 - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>、 - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link>、 - <link linkend="api.assign"><varname>assign()</varname></link> - および <link linkend="api.append"><varname>append()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clearCache()</refname> - <refpurpose>指定したテンプレートのキャッシュを破棄します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>clearCache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - - <itemizedlist> - <listitem><para> - テンプレートに <link linkend="caching.multiple.caches">複数のキャッシュ</link> - がある場合は、二番目のパラメータで <parameter>cache_id</parameter> - を指定すると特定のキャッシュを破棄できます。 - </para></listitem> - <listitem><para> - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - を三番目のパラメータで渡すことができます。 - <link linkend="caching.groups">テンプレートをグループ化</link> - することもでき、それをグループ単位で削除することができます。詳細は - <link linkend="caching">キャッシュの節</link> を参照ください。 - </para></listitem> - <listitem><para> - オプションの四番目のパラメータで、キャッシュを破棄するまでの最小経過時間 - (秒単位) を指定することができます。 - </para></listitem> - </itemizedlist> - - <example> - <title>clearCache()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// テンプレートのキャッシュを破棄します -$smarty->clear_cache('index.tpl'); - -// 複数キャッシュをもつテンプレートで、特定の ID のキャッシュだけを破棄します -$smarty->clear_cache('index.tpl', 'MY_CACHE_ID'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.all.cache"><varname>clearAllCache()</varname></link> - および - <link linkend="caching"><varname>キャッシュ</varname></link> の節も参照ください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clearCompiledTemplate()</refname> - <refpurpose>指定したテンプレートのキャッシュを破棄します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>clearCompiledTemplate</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - 指定したテンプレートリソースをコンパイルした内容を破棄します。 - 何も指定しなかった場合は、すべてのコンパイル済みテンプレートファイルを破棄します。 - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - を渡すと、指定した - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - のテンプレートのみを破棄します。exp_time を指定すると、 - <parameter>exp_time</parameter> 秒以上経過しているファイルのみが破棄されます。 - デフォルトでは、経過時間にかかわらず全てのコンパイル済みテンプレートを破棄します。 - この関数は上級者のみが使用するもので、通常は不要です。 - </para> - <example> - <title>clearCompiledTemplate()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 指定したテンプレートリソースを破棄します -$smarty->clearCompiledTemplate('index.tpl'); - -// コンパイルディレクトリの内容を全て破棄します -$smarty->clearCompiledTemplate(); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.cache"><varname>clearCache()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.clear.config"> - <refnamediv> - <refname>clearConfig()</refname> - <refpurpose>割り当てられたすべての設定ファイルの変数をクリアします。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>clearConfig</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - 割り当てられたすべての - <link linkend="language.config.variables">設定ファイルの変数</link> - をクリアします。変数名を指定すると、その変数のみをクリアします。 - </para> - <example> - <title>clearConfig()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 設定ファイルから割り当てた変数をすべてクリアします -$smarty->clearConfig(); - -// ひとつの変数のみをクリアします -$smarty->clearConfig('foobar'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link>、 - <link linkend="language.config.variables"><varname>設定ファイルから読み込まれた変数</varname></link>、 - <link linkend="config.files"><varname>設定ファイル</varname></link>、 - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>、 - <link linkend="api.config.load"><varname>configLoad()</varname></link> - および - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>. - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-compile-all-config.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.compile.all.config"> - <refnamediv> - <refname>compileAllConfig()</refname> - <refpurpose>すべての既知の設定ファイルをコンパイルする</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>compileAllConfig</methodname> - <methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter>force</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>timelimit</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>maxerror</parameter></methodparam> - </methodsynopsis> - <para> - この関数は、<link linkend="variable.config.dir"><varname>$config_dir</varname></link> - にある設定ファイルをコンパイルします。次のパラメータを使います。 - <itemizedlist> - <listitem> - <para> - <parameter>extension</parameter> はオプションの文字列で、設定ファイルの拡張子を定義します。 - デフォルトは ".conf" です。 - </para> - </listitem> - <listitem> - <para> - <parameter>force</parameter> はオプションの boolean 値で、変更されたファイルのみをコンパイルする - (false) か、すべての設定ファイルをコンパイルする (true) かを決めます。 - デフォルトは "false" です。 - </para> - </listitem> - <listitem> - <para> - <parameter>timelimit</parameter> はオプションの整数値で、コンパイル処理の時間制限を秒単位で指定します。 - デフォルトは無制限です。 - </para> - </listitem> - <listitem> - <para> - <parameter>maxerror</parameter> はオプションの静数値で、エラーの制限を設定します。 - この設定を超える数の設定ファイルがコンパイルに失敗すると、この関数の処理は中断されます。 - デフォルトは無制限です。 - </para> - </listitem> - </itemizedlist> - </para> - <note><para> - この関数は、すべての設定に対して望み通りの結果を得られるとは限りません。自己責任のもとで使ってください。 - </para></note> - - <para> - <example> - <title>compileAllTemplates()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// すべての設定ファイルを強制的にコンパイルします -$smarty->compileAllConfig('.config',true); - -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-compile-all-templates.xml
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.compile.all.templates"> - <refnamediv> - <refname>compileAllTemplates()</refname> - <refpurpose>すべての既知のテンプレートをコンパイルする</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>compileAllTemplates</methodname> - <methodparam choice="opt"><type>string</type><parameter>extension</parameter></methodparam> - <methodparam choice="opt"><type>boolean</type><parameter>force</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>timelimit</parameter></methodparam> - <methodparam choice="opt"><type>integer</type><parameter>maxerror</parameter></methodparam> - </methodsynopsis> - <para> - この関数は、<link linkend="variable.template.dir"><varname>$template_dir</varname></link> - にあるすべてのテンプレートファイルをコンパイルします。次のパラメータを使います。 - <itemizedlist> - <listitem> - <para> - <parameter>extension</parameter> はオプションの文字列で、テンプレートファイルの拡張子を定義します。 - デフォルトは ".tpl" です。 - </para> - </listitem> - <listitem> - <para> - <parameter>force</parameter> はオプションの boolean 値で、変更されたテンプレートのみをコンパイルする - (false) か、すべてのテンプレートをコンパイルする (true) かを決めます。 - デフォルトは "false" です。 - </para> - </listitem> - <listitem> - <para> - <parameter>timelimit</parameter> はオプションの整数値で、コンパイル処理の時間制限を秒単位で指定します。 - デフォルトは無制限です。 - </para> - </listitem> - <listitem> - <para> - <parameter>maxerror</parameter> はオプションの静数値で、エラーの制限を設定します。 - この設定を超える数のテンプレートがコンパイルに失敗すると、この関数の処理は中断されます。 - デフォルトは無制限です。 - </para> - </listitem> - </itemizedlist> - </para> - <note><para> - この関数は、すべての設定に対して望み通りの結果を得られるとは限りません。自己責任のもとで使ってください。 - </para></note> - <note><para> - プラグインやフィルタ、オブジェクトの登録を要するテンプレートについては、 - この関数を実行する前にそれらをすべて登録しておかなければなりません。 - </para></note> - <note><para> - テンプレートの継承を使っている場合はこの関数は親テンプレートをコンパイルします。 - これは決して使われることがありません。 - </para></note> - - <para> - <example> - <title>compileAllTemplates()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// すべてのテンプレートファイルを強制的にコンパイルします -$smarty->compileAllTemplates('.tpl',true); - -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.config.load"> - <refnamediv> - <refname>configLoad()</refname> - <refpurpose>設定ファイルのデータを読み込み、テンプレートに割り当てます。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>configLoad</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - <link linkend="config.files">設定ファイル</link> - のデータを読み込み、テンプレートに割り当てます。 - これは、テンプレート関数 - <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link> - とまったく同じ働きをします。 - </para> - <note> - <title>テクニカルノート</title> - <para> - Smarty 2.4.0以降では、割り当てられたテンプレート変数は - <link linkend="api.fetch"><varname>fetch()</varname></link> - および <link linkend="api.display"><varname>display()</varname></link> - の実行前後を通じて保持されます。 - <varname>configLoad()</varname> から読み込まれた設定ファイルの変数は、 - 常にグローバルスコープです。設定ファイルは - 高速に実行するためにコンパイルされます。その際には - <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> や - <link linkend="variable.compile.check"> - <parameter>$compile_check</parameter></link> の設定を尊重します。 - </para> - </note> - <example> - <title>configLoad()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 設定ファイルの変数を読み込み、割り当てます -$smarty->configLoad('my.conf'); - -// セクションを読み込みます -$smarty->configLoad('my.conf', 'foobar'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>、 - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link>、 - <link linkend="api.clear.config"><varname>clearConfig()</varname></link> - および - <link linkend="language.config.variables"><varname>設定ファイルの変数</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-create-data.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.create.data"> - <refnamediv> - <refname>createData()</refname> - <refpurpose>データオブジェクトを作成する</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>createData</methodname> - <methodparam choice="opt"><type>object</type><parameter>parent</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>createData</methodname> - <void /> - </methodsynopsis> - <para> - この関数は、代入された変数を保持するデータオブジェクトを作成します。 - 次のパラメータを使います。 - <itemizedlist> - <listitem> - <para> - <parameter>parent</parameter> はオプションのパラメータで、 - メイン Smarty オブジェクトやユーザが作成したデータオブジェクト、 - あるいはユーザが作成したテンプレートオブジェクトなどへのアップリンクです。 - これらのオブジェクトは連結することができます。 - テンプレートからは、連結したオブジェクト内で代入されたすべての値にアクセスできます。 - </para> - </listitem> - </itemizedlist> - </para> - <para> - データオブジェクトを使うと、代入された変数用のスコープを作ることができます。 - これを用いて、どの変数がどのテンプレートから使えるかを制御することができます。 - </para> - <para> - <example> - <title>createData()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// 閉じたスコープ用に、データオブジェクトを作成します -$data = $smarty->createData(); - -// data のスコープに変数を代入します -$data->assign('foo','bar'); - -// このデータオブジェクトを使うテンプレートを作成します -$tpl = $smarty->createTemplate('index.tpl',$data); - -// テンプレートを表示します -$tpl->display(); -?> -]]> - </programlisting> - </example> - </para> - - <para> - <link linkend="api.display"><varname>display()</varname></link>, - および - <link linkend="api.create.template"><varname>createTemplate()</varname></link> - も参照ください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-create-template.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.create.template"> - <refnamediv> - <refname>createTemplate()</refname> - <refpurpose>テンプレートオブジェクトを返す</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>object</type><parameter>parent</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>data</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>object</type><parameter>parent</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>createTemplate</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>data</parameter></methodparam> - </methodsynopsis> - <para> - この関数は、テンプレートオブジェクトを作成します。このテンプレートを、 - <link linkend="api.display">display</link> あるいは <link linkend="api.fetch">fetch</link> - メソッドでレンダリングすることができます。 - 次のパラメータを使います。 - <itemizedlist> - <listitem> - <para> - <parameter>template</parameter> は、有効な - <link linkend="template.resources">テンプレートリソース</link> 型およびパスでなければなりません。 - </para> - </listitem> - ¶meter.cacheid; - ¶meter.compileid2; - ¶meter.parent; - ¶meter.data; - </itemizedlist> - </para> - - <para> - <example> - <title>createTemplate()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// テンプレートオブジェクトとそのスコープを作成します -$tpl = $smarty->createTemplate('index.tpl'); - -// 変数をテンプレートのスコープに代入します -$tpl->assign('foo','bar'); - -// テンプレートを表示します -$tpl->display(); -?> -]]> - </programlisting> - </example> - </para> - - <para> - <link linkend="api.display"><varname>display()</varname></link>, - および - <link linkend="api.template.exists"><varname>templateExists()</varname></link> - も参照ください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-disable-security.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.disable.security"> - <refnamediv> - <refname>disableSecurity()</refname> - <refpurpose>テンプレートのセキュリティを無効にする</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>disableSecurity</methodname> - <void /> - </methodsynopsis> - <para> - この関数は、テンプレートでのセキュリティチェックを無効にします。 - </para> - - <para> - <link linkend="api.enable.security"><varname>enableSecurity()</varname></link> - および - <link linkend="advanced.features.security">セキュリティ</link> - も参照ください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-display.xml
Deleted
@@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3839 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.display"> - <refnamediv> - <refname>display()</refname> - <refpurpose>テンプレートを表示します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - テンプレートの内容を表示します。テンプレートの内容を変数に返すには - <link linkend="api.fetch"><varname>fetch()</varname></link> を使います。 - 第1パラメータには、有効な <link - linkend="template.resources">テンプレートリソース</link> - の種類を含むパスを指定する事ができます。任意の第2パラメータには - <parameter>キャッシュID</parameter> を渡す事ができます。 - 詳細は <link linkend="caching">キャッシュの項</link> を参照してください。 - </para> - ¶meter.compileid; - <example> - <title>display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include(SMARTY_DIR.'Smarty.class.php'); -$smarty = new Smarty(); -$smarty->setCaching(true); - -// キャッシュが存在しない場合はデータベースを呼び出します -if(!$smarty->isCached('index.tpl')) { - - // ダミーデータ - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name', 'Fred'); - $smarty->assign('Address', $address); - $smarty->assign('data', $db_data); - -} - -// 出力を表示します -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <example> - <title>display() 関数にテンプレートリソースを指定した例</title> - <para> - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> ディレクトリ外のファイルを表示するためには、 - <link linkend="template.resources">テンプレートリソース</link> - を指定します。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// ファイルの絶対パス -$smarty->display('/usr/local/include/templates/header.tpl'); - -// ファイルの絶対パス (上と同じ) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// windows環境の絶対パス (接頭辞に"file:"を使う必要があります) -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// "db"と名付けられたテンプレートリソースからインクルードします -$smarty->display('db:header.tpl'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.fetch"><varname>fetch()</varname></link> および - <link linkend="api.template.exists"><varname>templateExists()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-enable-security.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.enable.security"> - <refnamediv> - <refname>enableSecurity()</refname> - <refpurpose>テンプレートのセキュリティを有効にする</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>enableSecurity</methodname> - <methodparam choice="opt"><type>string</type><parameter>securityclass</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>enableSecurity</methodname> - <methodparam choice="opt"><type>object</type><parameter>securityobject</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>string</type><methodname>enableSecurity</methodname> - <void /> - </methodsynopsis> - <para> - この関数は、テンプレートでのセキュリティチェックを有効にします。 - 次のパラメータを使います。 - <itemizedlist> - <listitem> - <para> - <parameter>securityclass</parameter> はオプションのパラメータで、 - セキュリティポリシーパラメータを定義するクラスの名前です。 - </para> - </listitem> - <listitem> - <para> - <parameter>securityobject</parameter> はオプションのパラメータで、 - セキュリティポリシーパラメータを定義するオブジェクトです。 - </para> - </listitem> - </itemizedlist> - </para> - <para> - セキュリティポリシーの設定方法についての詳細は - <link linkend="advanced.features.security">セキュリティ</link> の節を参照ください。 - </para> - - <para> - <link linkend="api.disable.security"><varname>disableSecurity()</varname></link> - および - <link linkend="advanced.features.security">セキュリティ</link> - も参照ください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,148 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3838 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch()</refname> - <refpurpose>テンプレートの出力を返します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - これは、テンプレートを - <link linkend="api.display">表示する</link> - のではなくその出力を返します。第1パラメータには、有効な - <link linkend="template.resources">テンプレートリソース</link> - の種類を含んだパスを指定する事ができます。任意の第2パラメータには - <parameter>キャッシュID</parameter> を渡す事ができます。 - 詳細は、<link linkend="caching">キャッシュの項目</link> を参照してください。 - </para> - ¶meter.compileid; - - <para> - <example> - <title>fetch()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(true); - -// URL ごとに個別のキャッシュ ID を設定します -$cache_id = md5($_SERVER['REQUEST_URI']); - -// 出力を取り込みます -$output = $smarty->fetch('index.tpl', $cache_id); - -// ここで$outputについて何かの処理を行います -echo $output; -?> -]]> - </programlisting> - </example> - </para> - - <para> - <example> - <title>Email の送信に fetch() を使用する</title> - <para> - <filename>email_body.tpl</filename> テンプレート - </para> - <programlisting> -<![CDATA[ -Dear {$contact_info.name}, - -Welcome and thank you for signing up as a member of our user group. - -Click on the link below to login with your user name -of '{$contact_info.username}' so you can post in our forums. - -{$login_url} - -List master - -{textformat wrap=40} -This is some long-winded disclaimer text that would automatically get wrapped -at 40 characters. This helps make the text easier to read in mail programs that -do not wrap sentences for you. -{/textformat} -]]> - </programlisting> - <para> - <link linkend="language.function.textformat"> - <varname>{textformat}</varname></link> 修飾子を用いた - <filename>email_disclaimer.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{textformat wrap=40} -Unless you are named "{$contact.name}", you may read only the "odd numbered -words" (every other word beginning with the first) of the message above. If you have -violated that, then you hereby owe the sender 10 GBP for each even -numbered word you have read -{/textformat} -]]> - </programlisting> - <para> - PHP の - <ulink url="&url.php-manual;function.mail"> - <varname>mail()</varname></ulink> 関数を用いたPHPスクリプト - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// $contact_info は、データベースやその他のリソースから取得します - -$smarty->assign('contact_info',$contact_info); -$smarty->assign('login_url',"http://{$_SERVER['SERVER_NAME']}/login"); - -mail($contact_info['email'], 'Thank You', $smarty->fetch('email_body.tpl')); - -?> -]]> - </programlisting> - </example> - </para> - - <para> - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>、 - <link linkend="api.display"><varname>display()</varname></link>、 - <link linkend="language.function.eval"><varname>{eval}</varname></link>、 - および - <link linkend="api.template.exists"><varname>templateExists()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>getConfigVars()</refname> - <refpurpose>読み込まれた設定ファイル変数を返します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>array</type><methodname>getConfigVars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - パラメータが与えられない場合は 全ての読み込まれた - <link linkend="language.config.variables">設定ファイル変数</link> - の配列が返されます。 - </para> - <example> - <title>getConfigVars()</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// 読み込まれた設定ファイル変数'foo'を取得します -$myVar = $smarty->getConfigVars('foo'); - -// 全ての設定ファイル変数を取得します -$all_config_vars = $smarty->getConfigVars(); - -// では見てみましょう -print_r($all_config_vars); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.config"><varname>clearConfig()</varname></link>、 - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>、 - <link linkend="api.config.load"><varname>configLoad()</varname></link> - および - <link linkend="api.get.template.vars"><varname>getTemplateVars()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>getRegisteredObject()</refname> - <refpurpose>登録されたオブジェクトの参照を返します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>array</type><methodname>getRegisteredObject</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - カスタム関数の中から - <link linkend="api.register.object">登録されたオブジェクト</link> - に直接アクセスしたい時に便利です。詳細は - <link linkend="advanced.features.objects">オブジェクト</link> の項を参照ください。 - </para> - <example> - <title>getRegisteredObject()</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, $smarty) -{ - if (isset($params['object'])) { - // 登録されたオブジェクトの参照を取得します - $obj_ref = $smarty->getRegisteredObject($params['object']); - // オブジェクトを参照している$obj_refを使用します - } -} -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.register.object"><varname>registerObject()</varname></link>、 - <link linkend="api.unregister.object"><varname>unregisterObject()</varname></link> - および - <link linkend="advanced.features.objects">オブジェクトの項</link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-get-tags.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.get.tags"> - <refnamediv> - <refname>getTags()</refname> - <refpurpose>テンプレートが使っているタグを返す</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>string</type><methodname>getTags</methodname> - <methodparam><type>object</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - この関数は、テンプレートが使っているすべてのタグについて - タグ名/属性 のペアの配列を返します。 - 次のパラメータを使います。 - <itemizedlist> - <listitem> - <para> - <parameter>template</parameter> はテンプレートオブジェクトです。 - </para> - </listitem> - </itemizedlist> - </para> - <note><para> - この関数は、実験的なものです。 - </para></note> - <para> - <example> - <title>getTags()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include('Smarty.class.php'); -$smarty = new Smarty; - -// テンプレートオブジェクトを作成します -$tpl = $smarty->createTemplate('index.tpl'); - -// タグを取得します -$tags = $smarty->getTags($tpl); - -print_r($tags); - -?> -]]> - </programlisting> - </example> - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>getTemplateVars()</refname> - <refpurpose>割り当てられた変数の値を返します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>array</type><methodname>getTemplateVars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - パラメータが与えられない場合は、 全ての - <link linkend="api.assign">割り当てられた</link> - 変数の配列を返します。 - </para> - <example> - <title>getTemplateVars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 割り当てられたテンプレート変数'foo'を取得します -$myVar = $smarty->getTemplateVars('foo'); - -// 割り当てられたテンプレートの全ての変数を取得します -$all_tpl_vars = $smarty->getTemplateVars(); - -// では見てみましょう -print_r($all_tpl_vars); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.assign"><varname>assign()</varname></link>、 - <link linkend="language.function.assign"><varname>{assign}</varname></link>、 - <link linkend="api.append"><varname>append()</varname></link>、 - <link linkend="api.clear.assign"><varname>clearAssign()</varname></link>、 - <link linkend="api.clear.all.assign"><varname>clearAllAssign()</varname></link> - および - <link linkend="api.get.config.vars"><varname>getConfigVars()</varname></link> - も参照してください。 - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,132 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3849 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.is.cached"> - <refnamediv> - <refname>isCached()</refname> - <refpurpose>テンプレートが有効なキャッシュを持つ場合にtrueを返します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>isCached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - - <itemizedlist> - <listitem><para> - これは、<link linkend="variable.caching"> - <parameter>$caching</parameter></link> を - <literal>Smarty::CACHING_LIFETIME_CURRENT</literal> あるいは <literal>Smarty::CACHING_LIFETIME_SAVED</literal> - に設定してキャッシュが有効な場合にのみ機能します。 - <link linkend="caching">キャッシュの項</link> も参照してください。 - </para></listitem> - <listitem><para> - 1つのテンプレートに - <link linkend="caching.multiple.caches">複数のキャッシュ</link> - が存在する場合は、第2パラメータに - <parameter>$cache_id</parameter> を渡すことができます。 - </para></listitem> - - <listitem><para> - 第3パラメータに - <link linkend="variable.compile.id"><parameter>$compile id</parameter></link> - を渡すを渡す事が出来ます。このパラメータを省いた時は、もし永続的な - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> が設定されていればそれを使用します。 - </para></listitem> - - <listitem><para> - <parameter>$cache_id</parameter> は渡さずに - <link linkend="variable.compile.id"> - <parameter>$compile_id</parameter></link> だけを渡したい場合は、 - <parameter>$cache_id</parameter> に &null; を指定します。 - </para></listitem> - </itemizedlist> - - <note> - <title>テクニカルノート</title> - <para> - <varname>isCached()</varname> が &true; を返すと、 - 実際にはキャッシュされた出力が読み込まれ、内部に格納されます。続いてコールされる - <link linkend="api.display"><varname>display()</varname></link> または - <link linkend="api.fetch"><varname>fetch()</varname></link> - はこの内部に格納された出力を返し、キャッシュファイルを再読み込みしようとはしません。 - これにより、上の例における <varname>isCached()</varname> のコールから - <link linkend="api.display"><varname>display()</varname></link> のコールまでの間に - 別のプロセスがキャッシュをクリアしてしまうといった競合を防ぐことができます。これは、 - <varname>isCached()</varname> が &true; を返した後は - <link linkend="api.clear.cache"><varname>clearCache()</varname></link> - やその他キャッシュ設定の変更が何の影響も及ぼさないということも意味します。 - </para> - </note> - - <example> - <title>isCached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -if(!$smarty->isCached('index.tpl')) { -// ここでデータベースを呼び出し、値を割り当てます -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <example> - <title>複数のキャッシュを使用したテンプレートにおける isCached()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -if(!$smarty->isCached('index.tpl', 'FrontPage')) { - // ここでデータベースを呼び出し、値を割り当てます -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - </programlisting> - </example> - - - <para> - <link linkend="api.clear.cache"><varname>clearCache()</varname></link>、 - <link linkend="api.clear.all.cache"><varname>clearAllCache()</varname></link> - および - <link linkend="caching">キャッシュの項</link> も参照してください。 - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.load.filter"> - <refnamediv> - <refname>loadFilter()</refname> - <refpurpose>フィルタプラグインを読み込みます。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>loadFilter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - 第1パラメータには、読み込むフィルタの種類を - <literal>pre</literal>、<literal>post</literal> あるいは <literal>output</literal> - のいずれかで指定します。第2パラメータにはフィルタプラグインの名前を指定します。 - </para> - <example> - <title>フィルタプラグインを読み込む</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// 'trim'というプリフィルタを読み込みます -$smarty->loadFilter('pre', 'trim'); - -// 'datefooter'という他のプリフィルタを読み込みます -$smarty->loadFilter('pre', 'datefooter'); - -// 'compress'というアウトプットフィルタを読み込みます -$smarty->loadFilter('output', 'compress'); - -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.register.filter"><varname>registerFilter()</varname></link>、 - <link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link> - および - <link linkend="advanced.features">拡張機能</link> - も参照ください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-register-filter.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.register.filter"> - <refnamediv> - <refname>registerFilter()</refname> - <refpurpose>動的にフィルタを登録する</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>registerFilter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> - </methodsynopsis> - <para> - この関数は、テンプレート上で動くフィルタを動的に登録します。 - 次のパラメータを使います。 - <itemizedlist> - ¶meter.filtertype; - ¶meter.callback; - </itemizedlist> - </para> - ¬e.parameter.function; - - <para> - <link linkend="plugins.prefilters.postfilters">プリフィルタ</link> - は、テンプレートのソースをコンパイルする前に実行します。 - プリフィルタ関数を準備する方法の詳細は <link - linkend="advanced.features.prefilters">テンプレート プリフィルタ</link> - を参照ください。 - </para> - - <para> - <link linkend="plugins.prefilters.postfilters">ポストフィルタ</link> - は、テンプレートを PHP にコンパイルした後で実行します。 - ポストフィルタ関数を準備する方法の詳細は <link - linkend="advanced.features.postfilters">テンプレート ポストフィルタ</link> - を参照ください。 - </para> - - <para> - <link linkend="plugins.outputfilters">アウトプットフィルタ</link> - は、テンプレートの出力を - <link linkend="api.display">表示</link> する前に実行します。 - アウトプットフィルタ関数を準備する方法の詳細は - <link linkend="advanced.features.outputfilters">テンプレート - アウトプットフィルタ</link> を参照ください。 - </para> - - <para> -<link linkend="api.unregister.filter"><varname>unregisterFilter()</varname></link>、 -<link linkend="api.load.filter"><varname>loadFilter()</varname></link>、 -<link linkend="variable.autoload.filters"><parameter>$autoload_filters</parameter></link>、 - <link linkend="advanced.features.prefilters">テンプレート プリフィルタ</link>、 - <link linkend="advanced.features.postfilters">テンプレート ポストフィルタ</link>、 - <link linkend="advanced.features.outputfilters">テンプレート アウトプットフィルタ</link> - も参照ください。 -</para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.register.object"> - <refnamediv> - <refname>registerObject()</refname> - <refpurpose>テンプレート内で使用するオブジェクトを登録します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>registerObject</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter> - </methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - - <note><para> - オブジェクトをテンプレートに代入/登録するときは、 - テンプレートからアクセスするプロパティやメソッドは表示に関する目的でだけ使うようにしましょう。 - オブジェクトを通じてアプリケーションのロジックを取り込むのは簡単ですが、 - それはまずい設計につながり、管理しづらくなってしまいます。 - Smarty ウェブサイトのベストプラクティスのページも参照ください。 - </para></note> - - <para> - 詳細は、 - <link linkend="advanced.features.objects">オブジェクト</link> - の項を参照して下さい。 - </para> - <para> - <link linkend="api.get.registered.object"><varname>getRegisteredObject()</varname></link> - および - <link linkend="api.unregister.object"><varname>unregisterObject()</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-register-plugin.xml
Deleted
@@ -1,154 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.register.plugin"> - <refnamediv> - <refname>registerPlugin()</refname> - <refpurpose>動的にプラグインを登録する</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>registerPlugin</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter> - </methodparam> - </methodsynopsis> - <para> - このメソッドは、スクリプト内でプラグインとして定義された関数やメソッドを登録します。 - 次のパラメータを使います。 - <itemizedlist> - ¶meter.plugintype; - ¶meter.pluginname; - ¶meter.callback; - <listitem> - <para> - <parameter>cacheable</parameter> および <parameter>cache_attrs</parameter> - は、たいていの場合は省略できます。これらの適切な使いかたについては <link - linkend="caching.cacheable">プラグイン出力のキャッシュ制御</link> - を参照ください。 - </para> - </listitem> - </itemizedlist> - </para> - - <example> - <title>関数プラグインの登録</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->registerPlugin("function","date_now", "print_current_date"); - -function print_current_date($params, $smarty) -{ - if(empty($params["format"])) { - $format = "%b %e, %Y"; - } else { - $format = $params["format"]; - } - return strftime($format,time()); -} -?> -]]> - </programlisting> - <para> - テンプレートでは次のように使います。 - </para> -<programlisting> -<![CDATA[ -{date_now} - -{* 別のフォーマットを使う場合 *} -{date_now format="%Y/%m/%d"} -]]> -</programlisting> -</example> - - <example> - <title>ブロック関数プラグインの登録</title> - <programlisting role="php"> -<![CDATA[ -<?php -// 関数の宣言 -function do_translation ($params, $content, $smarty, &$repeat, $template) -{ - if (isset($content)) { - $lang = $params["lang"]; - // $content に対して何らかの変換をします - return $translation; - } -} - -// smarty に登録します -$smarty->registerPlugin("block","translate", "do_translation"); -?> -]]> - </programlisting> - <para> - テンプレート側は、このようになります。 - </para> - <programlisting> -<![CDATA[ -{translate lang="br"}Hello, world!{/translate} -]]> - </programlisting> - </example> - - <example> - <title>修飾子プラグインの登録</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// PHP の stripslashes 関数を Smarty の修飾子としてマップします -$smarty->registerPlugin("modifier","ss", "stripslashes"); - -?> -]]> -</programlisting> - <para>テンプレート側では、<literal>ss</literal> でスラッシュを除去できます。</para> - <programlisting> -<![CDATA[ -<?php -{$var|ss} -?> -]]> -</programlisting> - - </example> - -<para> -<link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link>、 -<link linkend="plugins.functions">プラグイン関数</link>、 -<link linkend="plugins.block.functions">プラグインブロック関数</link>、 -<link linkend="plugins.compiler.functions">プラグインコンパイラ関数</link>、 - そして - <link linkend="plugins.modifiers">プラグイン修飾子の作成</link> の節も参照ください。 -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3832 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>registerResource()</refname> - <refpurpose>リソースプラグインを動的に登録します。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>registerResource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_callbacks</parameter></methodparam> - </methodsynopsis> - <para> - <link linkend="template.resources">リソースプラグイン</link> - を動的に登録します。パラメータとして、 - リソース名および実行する PHP ユーザ定義関数の名前を格納した配列を渡します。 - テンプレートを取得するための関数の定義の仕方は、 - <link linkend="template.resources">テンプレートリソース</link> - の項を参照してください。 - <note> - <title>テクニカルノート</title> - <para> - リソース名の長さは少なくとも2文字以上である必要があります。 - 1文字のリソース名は無視され、<literal>$smarty->display('c:/path/to/index.tpl');</literal> - のようにファイルパスの一部として使用されます。 - </para> - </note> - - </para> - - <itemizedlist> - <listitem><para> - 配列 <parameter>resource_callabcks</parameter> - には4つの要素が必要です。それぞれ - <literal>source</literal>、 - <literal>timestamp</literal>、<literal>secure</literal> および - <literal>trusted</literal> がリソースの関数としてそれぞれコールバックされます。 - </para></listitem> - <listitem><para> - 各要素で PHP のコールバックを定義します。次のいずれかを指定できます。 - <itemizedlist> - <listitem><para> - 関数名を含む文字列 - </para></listitem> - <listitem><para> - <literal>array($object, $method)</literal> 形式の配列。 - <literal>&$object</literal> はオブジェクトへの参照で、 - <literal>$method</literal> はメソッド名を含む文字列。 - </para></listitem> - <listitem><para> - <literal>array($class, $method)</literal> 形式の配列。 - <literal>$class</literal> はクラス名で、 - <literal>$method</literal> はクラスのメソッド名。 - </para></listitem> - </itemizedlist> - </para></listitem> - </itemizedlist> - <example> - <title>registerResource()</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->registerResource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - </programlisting> - </example> - <example> - <title>registerResource() でのオブジェクトのメソッドの使用</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->registerResource('db', array( - array($obj,'db_get_template'), - array($obj,'db_get_timestamp'), - array($obj,'db_get_secure'), - array($obj,'db_get_trusted') - ) - ); -?> -]]> - </programlisting> - </example> - -<para> - <link linkend="api.unregister.resource"><varname>unregisterResource()</varname></link> - および - <link linkend="template.resources">テンプレートリソース</link> - も参照してください。 -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.template.exists"> - <refnamediv> - <refname>templateExists()</refname> - <refpurpose>指定したテンプレートが存在するかどうかをチェックします。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>bool</type><methodname>templateExists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - ファイルシステムに関するテンプレートへのパス - 又はテンプレートを指定するリソースの文字列のいずれかを受け入れる事ができます。 - </para> - - <example> - <title>templateExists()</title> - <para> - この例は、コンテンツテンプレートを - <link linkend="language.function.include"><varname>インクルード</varname></link> - するのに <literal>$_GET['page']</literal> を使用しています。 - テンプレートが存在しない場合、代わりにエラーページが表示されます。 - まずは <filename>page_container.tpl</filename> から。 - </para> - <programlisting role="php"> -<![CDATA[ -<html> -<head><title>{$title}</title></head> -<body> -{include file='page_top.tpl'} - -{* コンテンツページの中央部分をインクルード *} -{include file=$content_template} - -{include file='page_footer.tpl'} -</body> -]]> - </programlisting> - <para> - そしてスクリプトです。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// index.inc.tpl のようにファイル名をセットします -$mid_template = $_GET['page'].'.inc.tpl'; - -if( !$smarty->templateExists($mid_template) ){ - $mid_template = 'page_not_found.tpl'; -} -$smarty->assign('content_template', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - </programlisting> - </example> - - <para> - <link linkend="api.display"><varname>display()</varname></link>、 - <link linkend="api.fetch"><varname>fetch()</varname></link>、 - <link linkend="language.function.include"><varname>{include}</varname></link> - および - <link linkend="language.function.insert"><varname>{insert}</varname></link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-test-install.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.test.install"> - <refnamediv> - <refname>testInstall()</refname> - <refpurpose>Smarty のインストール状態を調べる</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>testInstall</methodname> - <void /> - </methodsynopsis> - <para> - この函数は、インストールした Smarty で必要なすべての作業フォルダにアクセス可能かどうかを調べます。 - 対応するプロトコルを出力します。 - </para> - <example> - <title>testInstall()</title> - <programlisting role="php"> -<![CDATA[ -<?php -require_once('Smarty.class.php'); -$smarty->testInstall(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-unregister-filter.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.unregister.filter"> - <refnamediv> - <refname>unregisterFilter()</refname> - <refpurpose>動的にフィルタの登録を解除する</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>unregisterFilter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>mixed</type><parameter>callback</parameter></methodparam> - </methodsynopsis> - <para> - この函数は、フィルタの登録を動的に解除します。 - 次のパラメータを使います。 - <itemizedlist> - ¶meter.filtertype; - ¶meter.callback; - </itemizedlist> - </para> - - <para> - <link linkend="api.register.filter"><varname>registerFilter()</varname></link> - も参照ください。 -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregisterObject()</refname> - <refpurpose>動的に登録されたオブジェクトを未登録にします。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>unregisterObject</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - - <para> - <link linkend="api.register.object"><varname>registerObject()</varname></link> - および - <link linkend="advanced.features.objects">オブジェクトの項</link> - も参照してください。 - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-unregister-plugin.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<refentry id="api.unregister.plugin"> - <refnamediv> - <refname>unregisterPlugin</refname> - <refpurpose>動的にプラグインの登録を解除する</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>unregisterPlugin</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - このメソッドは、<link linkend="api.register.plugin">registerPlugin()</link> - で登録したプラグインの登録を解除します。 - 次のパラメータを使います。 - <itemizedlist> - ¶meter.plugintype; - ¶meter.pluginname; - </itemizedlist> - </para> - - <example> - <title>関数プラグインの登録の解除</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// テンプレートの作者には、関数プラグイン "date_now" を使わせないようにします -$smarty->unregisterPlugin("function","date_now"); - -?> -]]> - </programlisting> - </example> - - <para> - <link linkend="api.register.plugin"> - <varname>registerPlugin()</varname></link> も参照ください。 -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregisterResource()</refname> - <refpurpose>動的に登録されたリソースプラグインを未登録にします。</refpurpose> - </refnamediv> - <refsect1> - <title>説明</title> - <methodsynopsis> - <type>void</type><methodname>unregisterResource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - パラメータにはリソース名を渡します。 - </para> - <example> - <title>unregisterResource()</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$smarty->unregisterResource('db'); - -?> -]]> - </programlisting> - </example> - - <para> - <link linkend="api.register.resource"> - <varname>registerResource()</varname></link> - および - <link linkend="template.resources">テンプレートリソース</link> - も参照してください。 -</para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3913 $ --> -<!-- EN-Revision: 3911 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="api.variables"> - <title>Smarty クラス変数</title> - - <para> - Smarty のクラス変数の一覧です。これらには直接アクセスすることができます。 - また、それぞれの変数に対応するセッター/ゲッターメソッドを使うこともできます。 - </para> - -<note><para> - すべてのクラス変数には、それに対応するセッター/ゲッターメソッドが存在します。 - メソッドの名前は変数の名前そのままではなくキャメルケース形式です。つまり、たとえば - $smarty->template_dir の値を設定したり取得したりするときにはそれぞれ - $smarty->setTemplateDir($dir) と $dir = $smarty->getTemplateDir() を使います。 -</para></note> - <note><para> - <link linkend="advanced.features.template.settings"><varname>テンプレートによる設定の変更</varname></link> - の節に、個々のテンプレートで Smarty のクラス変数を変更する方法が書かれています。 - </para></note> - -&programmers.api-variables.variable-auto-literal; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-id; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-debug-template; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-use-sub-dirs; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-auto-literal.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> - <sect1 id="variable.auto.literal"> - <title>$auto_literal</title> - <para> - Smarty のデリミタタグ { および } は、両側に空白文字を入れると無視されます。 - この振る舞いを無効にするには、auto_literal を false に設定します。 - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->auto_literal = false; -?> -]]> - </programlisting> - </informalexample> - </para> - - <para> - <link linkend="language.escaping">Smarty によるパースのエスケープ</link> も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - 全てのテンプレートの呼出し時に適用したいフィルタがある場合、 - この変数を用いて指定する事で、Smarty はそれらを自動的に読み込みます。 - これは、配列のキーがフィルタの種類、値がフィルタの名前を格納した連想配列です。 - たとえば次のようになります。 - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - </programlisting> - </informalexample> - </para> - - <para> - <link linkend="api.register.filter"><varname>registerFilter()</varname></link> - および - <link linkend="api.load.filter"><varname>loadFilter()</varname></link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - テンプレートのキャッシュが格納されるディレクトリです。デフォルトは - <filename class="directory">./cache</filename> で、 - これは実行中のPHPスクリプトが置かれた場所にある - <filename class="directory">cache/</filename> ディレクトリを探す事を意味します。 - <emphasis role="bold">このディレクトリは web サーバが書き込み可能でなくてはなりません</emphasis>。 - 詳細は <link linkend="installing.smarty.basic">インストールについての説明</link> - を参照してください。 - </para> - <para> - この設定を使わずに、キャッシュファイルを操作するための - <link linkend="section.template.cache.handler.func"> - 自作のキャッシュハンドラ</link> - 関数を使う事もできます。詳細は - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link> - も参照してください。 - </para> - <note> - <title>テクニカルノート</title> - <para> - この設定は、相対パス又は絶対パスである必要があります。 - include_path はファイル書き込み時には使用されません。 - </para> - </note> - <note> - <title>テクニカルノート</title> - <para> - このディレクトリをwebサーバのドキュメントルート下に置く事は推奨しません。 - </para> - </note> - - <para> - <link linkend="variable.caching"><parameter>$caching</parameter></link>、 - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>、 - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>、 - <link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link>、 - <link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link> - および - <link linkend="caching">キャッシュの節</link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>. - 用いる組み込みメソッドを使用する代わりに、 - キャッシュファイルを操作するために定義された関数の名前を指定します。 - 詳細は、 - <link linkend="section.template.cache.handler.func"> - キャッシュハンドラ関数</link> を参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-cache-id.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<sect1 id="variable.cache.id"> - <title>$cache_id</title> - <para> - 持続的なキャッシュ ID です。関数コールのたびに毎回同じ - <parameter>$cache_id</parameter> を渡すかわりにこの - <parameter>$cache_id</parameter> を設定しておけば、 - それ以降は暗黙のうちにこれを使うようになります。 - </para> - <para> - <parameter>$cache_id</parameter> を使えば、一回の - <link linkend="api.display"><varname>display()</varname></link> や - <link linkend="api.fetch"><varname>fetch()</varname></link> - に対して複数のキャッシュファイルを持つことができます。 - たとえば、別々のコンテンツから同じテンプレートを使うときなどに使えます。詳細は - <link linkend="caching">キャッシュについての節</link> を参照ください。 - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3840 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - テンプレートのキャッシュの期限(単位:秒)です。これが切れるとキャッシュは再生成されます。 - </para> - - <itemizedlist> - <listitem><para> - <parameter>$cache_lifetime</parameter> を使用するためには、 - <parameter>$caching</parameter> を有効に (Smarty::CACHING_LIFETIME_CURRENT あるいは Smarty::CACHING_LIFETIME_SAVED - のいずれかに) する必要があります。 - </para></listitem> - - <listitem><para> - <parameter>$cache_lifetime</parameter> の値を -1 にすると、キャッシュを無期限で有効とします。 - </para></listitem> - - <listitem><para> - この値を 0 にすると、キャッシュを常に再生成します - (これはテスト時にのみ有用です。 - キャッシュを無効にするためには、より効率的な方法として <link - linkend="variable.caching"><parameter>$caching</parameter></link> = Smarty::CACHING_OFF - があります)。 - </para></listitem> - - <listitem><para> - 各テンプレートごとに有効期限を独自に設定したい場合は - <link linkend="variable.caching"> - <parameter>$caching</parameter></link> = Smarty::CACHING_LIFETIME_SAVED - とします。そして - <link linkend="api.display"><varname>display()</varname> - </link> あるいは <link linkend="api.fetch"><varname>fetch()</varname></link> - を呼び出す前に - <parameter>$cache_lifetime</parameter> に値を設定してください。 - </para></listitem> - </itemizedlist> - - <para> - <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> - が有効の場合、キャッシュファイルは毎回再生成されるので事実上キャッシュは無効になります。 - <link linkend="api.clear.all.cache"><varname>clear_all_cache()</varname></link> - 関数で全てのキャッシュを、<link - linkend="api.clear.cache"><varname>clear_cache()</varname></link> - 関数で特定のキャッシュファイル (グループ) をクリアする事が出来ます。 - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="variable.cache.modified.check"> -<title>$cache_modified_check</title> -<para> - &true; の場合、Smarty はクライアントから送信された If-Modified-Since - ヘッダを尊重します。キャッシュファイルのタイムスタンプが最後に訪れた時から変わっていなければ、 - コンテンツの代わりに <literal>'304: Not Modified'</literal> レスポンスが返されます。 - これは、キャッシュされた内容に - <link linkend="language.function.insert"><varname>{insert}</varname></link> - タグが含まれない場合にのみ機能します。 -</para> - - <para> - <link linkend="variable.caching"><parameter>$caching</parameter></link>、 - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>、 - <link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link> - および - <link linkend="caching">キャッシュの節</link> も参照ください。 - </para> - -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.caching"> - <title>$caching</title> - <para> - テンプレートの出力を <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> にキャッシュするかどうかを設定します。 - デフォルトは Smarty::CACHING_OFF です。 - テンプレートが何度も同じコンテンツを生成するような場合は、 - <parameter>$caching</parameter> を有効にするほうがよいでしょう。 - これにより、パフォーマンスが向上します。 - </para> - - <para> - <link linkend="caching.multiple.caches">複数の</link> - キャッシュをひとつのテンプレートファイルに持たせることもできます。 - </para> - - <itemizedlist> - <listitem><para> - 値として Smarty::CACHING_LIFETIME_CURRENT または Smarty::CACHING_LIFETIME_SAVED を指定すると、キャッシュを有効にします。 - </para></listitem> - - <listitem><para> - Smarty::CACHING_LIFETIME_CURRENT は、Smarty にそのキャッシュが期限切れかどうかを調べるために、 現在の時間と - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - の値を比較するように指示します。 - </para></listitem> - <listitem><para> - Smarty::CACHING_LIFETIME_SAVED は、Smarty にそのキャッシュが生成された時点の時間と - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - の値を比較するように指示します。このようにキャッシュの期限を制御するために、 - テンプレートを <link linkend="api.fetch">取得</link> する直前に - <link linkend="variable.cache.lifetime"> <parameter>$cache_lifetime</parameter></link> - をセットする事ができます。詳細は、 - <link linkend="api.is.cached"><varname>isCached()</varname></link> - の項を参照して下さい。 - </para></listitem> - - <listitem><para> - <link linkend="variable.compile.check"><parameter>$compile_check</parameter></link> - が有効な場合、キャッシュに含まれるテンプレートや設定ファイルが変更されていると、 - キャッシュが再生成されます。 - </para></listitem> - <listitem><para> - <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> - が有効ならばキャッシュは常に再生成されます。 - </para></listitem> -</itemizedlist> -<para> - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link>、 - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>、 - <link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link>、 - <link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link>、 - <link linkend="api.is.cached"><varname>is_cached()</varname></link> - および -<link linkend="caching">キャッシュの節</link> も参照ください。 -</para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - SmartyはPHPアプリケーションの各リクエスト時に、 - 現在のテンプレートが最後に訪れた時から変更されている(タイムスタンプが異なる) - かどうかを検査します。もし変更されているならば、 - そのテンプレートを再コンパイルします。 - そのテンプレートが一度もコンパイルされていなかった場合は、 - この設定に関係なくコンパイルを行います。この変数のデフォルトは &true; です。 - </para> - <para> - テンプレートが変更される予定がないアプリケーションがいったん稼動に入れば、 - もはや compile_checkの ステップは必要ありません。 - 最大限のパフォーマンスを向上させるために、必ず - <parameter>$compile_check</parameter> を &false; に設定して下さい。 - また、この設定を &false; に変更した後にテンプレートファイルが変更された場合、 - そのテンプレートが再コンパイルされる事は「ない」ので変更は反映されない事に注意してください。 - <link linkend="variable.caching"><parameter>$caching</parameter></link> と - <parameter>$compile_check</parameter> が共に有効ならば、 - テンプレートファイルが更新されるとキャッシュファイルが再生成されます。 - 詳細は、<link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> および <link - linkend="api.clear.compiled.tpl"><varname>clear_compiled_tpl()</varname> - </link> を参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - コンパイルされたテンプレートが置かれるディレクトリです。デフォルトは - <filename class="directory">./templates_c</filename> で、 - これは実行中の PHP スクリプトが置かれた場所にある - <filename class="directory">templates_c/</filename> ディレクトリを探すことを意味します。 - <emphasis role="bold">このディレクトリは web サーバが書き込み可能でなければなりません - </emphasis>。詳細は - <link linkend="installing.smarty.basic">インストール</link> - の説明を参照してください。 - </para> - - <note> - <title>テクニカルノート</title> - <para> - この設定は相対パス又は絶対パスである必要があります。 - include_path はファイル書き込み時には使用されません。 - </para> - </note> - <note> - <title>テクニカルノート</title> - <para> - このディレクトリをwebサーバのドキュメントルート下に置く事は推奨されません。 - </para> - </note> - <para> - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - および - <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - コンパイルファイルを識別するための id です。すべての関数呼び出しで毎回 - <parameter>$compile_id</parameter> を渡すかわりに - <parameter>$compile_id</parameter> を指定すると、その後は暗黙のうちにこれを使用します。 - </para> - <para> - <parameter>$compile_id</parameter> を使用すると、同一の - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link> - を別々の <link linkend="variable.template.dir"> - <parameter>$template_dirs</parameter></link> で使用できないという制限を回避できます。 - 異なる <parameter>$compile_id</parameter> をそれぞれの - <link linkend="variable.template.dir"><parameter>$template_dir</parameter> - </link> で指定すると、Smarty はコンパイルしたテンプレートを - <parameter>$compile_id</parameter> で区別します。 - </para> - <para> - 例として、コンパイル時刻でテンプレートをローカライズ (言語依存のパーツを翻訳) - する <link linkend="plugins.prefilters.postfilters">prefilter</link> - を用いる場合、<parameter>$compile_id</parameter> - に現在の言語を使用することで、各言語についてのコンパイルしたテンプレートのセットを得ることができます。 - </para> - <para> - 別の例としては、複数のドメイン/複数のバーチャルホスト - をまたがって同じコンパイルディレクトリを使用する場合があります。 - </para> - <example> - <title>バーチャルホスト環境での $compile_id</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Smarty がテンプレートをコンパイルするために使用するコンパイラクラスの名前を指定します。 - デフォルトは 'Smarty_Compiler' です。 - これは上級ユーザのために用意されています。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - &true; の場合、<link linkend="config.files">設定ファイル</link> - の <literal>on/true/yes</literal> - や <literal>off/false/no</literal> といった値が自動的に - boolean 値に変換されます。これにより、テンプレートで - <literal>{if #foobar#}...{/if}</literal> のように使用できるようになります。foobar が - <literal>on</literal>、<literal>true</literal> あるいは <literal>yes</literal> - である場合に <varname>{if}</varname> ステートメントを実行します。 - デフォルトは &true; です。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - テンプレートから読み込むための - <link linkend="config.files">設定ファイル</link> - を置くディレクトリです。デフォルトは - <filename class="directory">./configs</filename> - で、実行中の PHP スクリプトが置かれた場所にある - <filename class="directory">configs/</filename> - ディレクトリを探すことを意味します。 - </para> - <note> - <title>テクニカルノート</title> - <para> - このディレクトリをwebサーバのドキュメントルート下に置く事は推奨されません。 - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - &true; の場合、 - <link linkend="config.files">設定ファイル</link> - から読み込んだ変数は互いに上書きされます (デフォルトは &true;)。 - &false; の場合、変数は配列にプッシュされます。 - これは各要素を複数回リストするような、 - 設定ファイルのデータの配列を格納したい場合に役立ちます。 - </para> - - <example> - <title>設定ファイル変数の配列</title> - <para> - この例では <parameter>$config_overwrite</parameter> = &false; とし、 - <link linkend="language.function.cycle"><varname>{cycle}</varname></link> - でテーブルの行の色を 赤/緑/青 と切り替えています。 - </para> - <para>設定ファイル</para> - <programlisting> -<![CDATA[ -# row colors -rowColors = #FF0000 -rowColors = #00FF00 -rowColors = #0000FF -]]> - </programlisting> - <para> - <link linkend="language.function.section"> - <varname>{section}</varname></link> ループを使用したテンプレート - </para> - <programlisting> -<![CDATA[ -<table> - {section name=r loop=$rows} - <tr bgcolor="{cycle values=#rowColors#}"> - <td> ....何かの内容.... </td> - </tr> - {/section} -</table> -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.config.load"><varname>{config_load}</varname></link>、 - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>、 - <link linkend="api.clear.config"><varname>clear_config()</varname></link>、 - <link linkend="api.config.load"><varname>config_load()</varname></link> - および <link linkend="config.files">config files section</link> - も参照してください。 - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - &true; の場合、<link linkend="config.files">設定ファイル</link> - のhiddenセクション(セクション名がピリオドで始まるもの) - をテンプレートから読み込むことができます。 - 通常はこれを &false; のままにしておきます。 - そうすると、設定ファイルにデータベースパラメータのような注意が必要なデータを格納しても、 - テンプレートがそれらのデータを読み出してしまう心配はありません。デフォルトは &false; です。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-debug-template.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> - <sect1 id="variable.debug_template"> - <title>$debug_tpl</title> - <para> - これは、デバッギングコンソールで使うテンプレートファイルの名前です。 - デフォルトの名前は <filename>debug.tpl</filename> で、 - 場所は <link - linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> にあります。 - </para> - <para> - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> - および - <link linkend="chapter.debugging.console">デバッギングコンソール</link> - の節も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - デバッギングコンソールを有効にするための $debugging に代わる方法です。 - <literal>NONE</literal> は、これを無効にする事を意味します。 - <literal>URL</literal> は、<literal>QUERY_STRING</literal> の中にキーワード - <literal>SMARTY_DEBUG</literal> が含まれていた時に - デバッギングコンソールが有効になる事を意味します。 - <link linkend="variable.debugging"> - <parameter>$debugging</parameter></link> が &true; - の場合は、この設定は無視されます。 - </para> - <example> - <title>localhost での $debugging_ctrl</title> - -<programlisting role="php"> -<![CDATA[ -<?php -// localhost 上で実行した場合にのみ、 -// http://localhost/script.php?foo=bar&SMARTY_DEBUG -// でデバッグコンソールを表示します -$smarty->debugging = false; // デフォルト -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> -</programlisting> - </example> - - <para> - <link linkend="chapter.debugging.console">デバッギングコンソール</link> - および - <link linkend="variable.debugging"><parameter>$debugging</parameter></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - <link - linkend="chapter.debugging.console">デバッギングコンソール</link> - を有効にします。このコンソールは、現在のスクリプトにおける - <link linkend="language.function.include">インクルードされた</link> - テンプレートや PHP から <link linkend="api.assign">割り当てられた</link> 変数、 - <link linkend="language.config.variables">設定ファイルの変数</link> - といった情報を javascript のポップアップウィンドウで通知します。 - <link linkend="language.function.assign"><varname>{assign}</varname> - </link> 関数によってテンプレート内で割り当てられた変数は表示されません。 - </para> - <para>このコンソールは、url から - <link linkend="variable.debugging.ctrl"> - <parameter>$debugging_ctrl</parameter></link> - を用いることで有効にすることもできます。 - </para> - <para> - <link linkend="language.function.debug"><varname>{debug}</varname></link>、 - <link linkend="variable.debug_template"><parameter>$debug_tpl</parameter></link> および - <link linkend="variable.debugging.ctrl"><parameter>$debugging_ctrl</parameter></link> - も参照ください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - テンプレート内のすべての変数に暗黙に適用される修飾子が格納された配列です。 - 例えば、 デフォルトですべての変数にHTMLエスケープ処理を施したい場合は、 - <literal>array('escape:"htmlall"')</literal> となります。 - この影響を受けない変数にするには、{$var|smarty:nodefaults} - のように <literal>nodefaults</literal> 修飾子をパラメータに持つ - <literal>smarty</literal> 修飾子を指定します。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - これは、暗黙に使用されるリソースの種類を指定します。 - デフォルトの値は <literal>file</literal> で、 - これは <literal>$smarty->display('index.tpl')</literal> と - <literal>$smarty->display('file:index.tpl')</literal> - とが意味的に同じになる、ということです。 - 詳細は、<link linkend="template.resources">リソース</link> - の項を参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - リソースからのテンプレートの取得に失敗した場合に、この関数をコールします。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - この値に null でない値がセットされると、その値は - <link linkend="api.display"><varname>display()</varname></link> と - <link linkend="api.fetch"><varname>fetch()</varname></link> の内側で - PHP の <ulink url="&url.php-manual;error_reporting"><varname>error_reporting</varname></ulink> - レベルとして使用されます。<link - linkend="chapter.debugging.console"><parameter>デバッグ</parameter></link> - が有効のときはこの値は無視され、エラーレベルには全く触れられません。 - </para> - <para> - <link linkend="chapter.debugging.console">デバッギングコンソール</link> - および - <link linkend="troubleshooting">トラブルシューティング</link> - も参照ください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - テンプレートが呼び出される毎に強制的にコンパイル(再コンパイル)を行います。 - この設定は、<link linkend="variable.compile.check"> - <parameter>$compile_check</parameter></link> をオーバーライドします。 - デフォルトの設定では無効になっています。開発や - <link linkend="chapter.debugging.console">デバッグ</link> の際に便利ですが、 - 決して運用環境で使用してはいけません。 - <link linkend="variable.caching"><parameter>$caching</parameter></link> - が有効の場合はキャッシュファイルは毎回再生成されます。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - これは、テンプレート言語の開始を表すデリミタです。 - デフォルトは <literal>{</literal> です。 - </para> - <para> - <link linkend="variable.right.delimiter"><parameter>$right_delimiter</parameter></link> - および - <link linkend="language.escaping">Smarty の構文解析を回避</link> - も参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - テンプレートに埋め込まれた PHP コードの扱いを設定します。 - これには4つの設定があり、デフォルトは - <constant>Smarty::PHP_PASSTHRU</constant> です。 - テンプレート内の <link linkend="language.function.php"> - <varname>{php}{/php}</varname></link> - タグで囲まれたPHPコードには影響を及ぼさない事に注意して下さい。 - </para> - - - <itemizedlist> - <listitem><para> - <constant>Smarty::PHP_PASSTHRU</constant> - PHPコードを実行せずにそのまま出力します。 - </para></listitem> - - <listitem><para> - <constant>Smarty::PHP_QUOTE</constant> - PHPコードをHTMLエンティティとして表示します。 - </para></listitem> - - <listitem><para> - <constant>Smarty::PHP_REMOVE</constant> - PHPコードをテンプレートから除去します。 - </para></listitem> - - <listitem><para> - <constant>Smarty::PHP_ALLOW</constant> - PHPコードを実行します。 - </para></listitem> - </itemizedlist> - - <note> - <para> - テンプレート内にPHPコードを埋め込む事は、とにかく避けるべきです。 代わりに、 - <link linkend="plugins.functions">カスタム関数</link> または - <link linkend="plugins.modifiers">修飾子</link> を使用します。 - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - Smartyが必要とするプラグインを置くディレクトリです。デフォルトは - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> - 直下の <filename class="directory">plugins/</filename> です。 - 相対パスが指定された場合は、まず最初に - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> - 直下を見ます。そこで見つからなかった場合は、 - 次にカレントディレクトリ、PHPのinclude_pathの順で見ていきます。 - <parameter>$plugins_dir</parameter> - がディレクトリ名の配列であった場合、Smarty - は各プラグインディレクトリを - <emphasis role="bold">与えられた順に</emphasis> 検索します。 - </para> - <note> - <title>テクニカルノート</title> - <para> - パフォーマンスを確保するため、<parameter>$plugins_dir</parameter> - には PHP のインクルードパスを使用しないでください。絶対パスを使用するか、 - <constant>SMARTY_DIR</constant> あるいはカレントディレクトリからの相対パスを使用してください。 - </para> - </note> - - <example> - <title>ローカルのプラグインディレクトリの追加</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - </programlisting> - </example> - <example> - <title>複数の $plugins_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->plugins_dir = array( - 'plugins', // デフォルトは SMARTY_DIR の配下 - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - </programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - これは、テンプレート言語の終端を表すデリミタです。 - デフォルトは <literal>}</literal> です。 - </para> - <para> - <link linkend="variable.left.delimiter"><parameter>$left_delimiter</parameter></link> - および - <link linkend="language.escaping">Smarty の構文解析を回避</link> - も参照してください。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3851 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - これは、デフォルトのテンプレートディレクトリの名前です。 - ファイルのインクルード時にリソースの種類を指定しなかった場合は、 - このディレクトリから探します。デフォルトは - <filename class="directory">./templates</filename> で、 - これは、実行しているスクリプトと同じ場所にある - <filename class="directory">templates/</filename> - ディレクトリを探すということです。 - <property>$template_dir</property> にはディレクトリのパスの配列を渡すこともできます。 - Smarty は、ディレクトリを順に走査し、 - マッチするテンプレートが最初に見つかった時点で停止します。 - </para> - <note> - <title>テクニカルノート</title> - <para> - このディレクトリをwebサーバのドキュメントルート下に置く事を推奨しません。 - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - <parameter>$trusted_dir</parameter> は、 - セキュリティが有効な場合にのみ使用します。これは、 - 信用がおけると考えられる全ディレクトリパスの配列です。 - 信用がおけるディレクトリには、テンプレートから - <link linkend="language.function.include.php"><varname>{include_php}</varname></link> - によって直接実行される PHP スクリプトを置きます。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> -<parameter>$use_sub_dirs</parameter> を &true; に設定すると、 -Smarty は -<link linkend="variable.compile.dir">テンプレートディレクトリ</link> と -<link linkend="variable.cache.dir">キャッシュディレクトリ</link> -の下にサブディレクトリを作ります。デフォルトは &false; です。 -何万ものファイルが生成される可能性のある環境では、 -ファイルシステムの速度低下を抑える助けになります。 -一方、環境次第では、ディレクトリを生成するためのPHPプロセスが許容されない事があるので、 -その場合はこの変数を無効にしなければなりません。デフォルトは無効になっています。 -</para> -<para> -サブディレクトリは効率がよいので、可能なら使用するとよいでしょう。 -理論的には、10のディレクトリがそれぞれ100のファイルを持っているほうが、1つのディレクトリに1000 -のファイルを持っている場合よりも良いパフォーマンスを得られます。 -少なくとも Solaris 7 (UFS) の場合には確実にそうでした……。 -ext3 や reiserfs などの最近のファイルシステムでも、そんなに違いはないでしょう。 -</para> - -<note> -<title>テクニカルノート</title> -<itemizedlist> -<listitem> - <para><literal>$use_sub_dirs=true</literal> は、 - <ulink url="&url.php-manual;features.safe-mode">safe_mode=On</ulink> - の場合は動作しません。safe_mode は切り替え可能で、デフォルトは off です。 - </para> -</listitem> -<listitem> - <para><literal>$use_sub_dirs=true</literal> は、Windows ではうまく動作しません。</para> -</listitem> -<listitem> - <para>Safe_mode は、PHP6 で廃止される予定です。</para> -</listitem> -</itemizedlist> -</note> - - <para> - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>、 - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - および - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link> - も参照してください。 - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/caching.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3842 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="caching"> - <title>キャッシュ</title> - <para> - キャッシュは出力内容をファイルに保存する事によって、 - <link linkend="api.display"><varname>display()</varname></link> - 又は - <link linkend="api.fetch"><varname>fetch()</varname></link> - を呼び出す速度を向上させるために使用されます。キャッシュが有効の場合、 - 出力を再生成せずに表示されます。特に処理時間が長いテンプレートは、 - キャッシュを使用する事で大きく速度が上昇するでしょう。 - キャッシュされるのは - <link linkend="api.display"><varname>display()</varname></link> - 又は - <link linkend="api.fetch"><varname>fetch()</varname></link> - の出力結果なので、1つのキャッシュファイルが複数のテンプレートファイルや - 設定ファイル等で構成されていることもあります。 - </para> - <para> - テンプレートが動的コンテンツの場合、何をどれくらいの期間キャッシュするのか注意が必要です。 - 例えば、Webサイトの一面にそれほど変更されないコンテンツが表示されている場合は、 - 一時間かそれ以上、このページをキャッシュしても問題なく動作するでしょう。 - 一方、一分経過するごとに新しい情報が格納される天気図をページに表示する場合は、 - このページをキャッシュする事は意味をなさないでしょう。 - </para> -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; -&programmers.caching.caching-cacheable; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,239 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3842 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="caching.cacheable"> - <title>出力のキャッシュ可能性の制御</title> - <para> - キャッシュを有効にすると、通常は最終的なページの出力のすべてがキャッシュされます。 - しかし、Smarty3 では、出力の特定の部分だけキャッシュしないようにできるオプションも用意しています。 - </para> - <note> - <title>全般的な注意</title> - <para> - キャッシュされていない部分で使ったすべての変数は、 - ページをキャッシュから読み込んだときに PHP から新たに代入されることに注意しましょう。 - </para> - </note> - <sect2 id="cacheability.sections"> - <title>テンプレートセクションのキャッシュ可能性</title> - <para> - テンプレートの大きなセクションをキャッシュ対象外にするには、 - <link linkend="language.function.nocache"><varname>{nocache}</varname></link> - タグと <link linkend="language.function.nocache"><varname>{/nocache}</varname></link> タグを使います。 - </para> - <example> - <title>テンプレートのセクションをキャッシュ対象外にする</title> - <programlisting> -<![CDATA[ - -Today's date is -{nocache} -{$smarty.now|date_format} -{/nocache} -]]> - </programlisting> - <para> - 上のコードは、キャッシュしたページに現在の日付を出力します。 - </para> - </example> - </sect2> - <sect2 id="cacheability.tags"> - <title>タグのキャッシュ可能性</title> - <para> - 個別のタグのキャッシュを無効にするには、そのタグに "nocache" フラグを追加します。 - </para> - <example> - <title>タグの出力をキャッシュ対象外にする</title> - <programlisting> -<![CDATA[ -Today's date is -{$smarty.now|date_format nocache} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="cacheability.variables"> - <title>変数のキャッシュ可能性</title> - <para> - 変数を <link linkend="api.assign"><varname>assign()</varname></link> するときに、キャッシュしないよう指定することができます。 - そのような変数を使っているタグは、すべて自動的に非キャッシュモードとなります。 - </para> - <note> - <title>ノート</title> - <para> - 非キャッシュモードでタグを実行した場合は、そのタグで使われている他のすべての変数が - ページをキャッシュから読み込んだときに PHP から新たに代入されることに注意しましょう。 - </para> - </note> - <note> - <title>ノート</title> - <para> - 変数の非キャッシュ設定は、コンパイル済みのテンプレートのコードに影響を及ぼします。 - 設定を変えた後は、コンパイル済みのテンプレートやキャッシュされたテンプレートを削除して - 再コンパイルしなければなりません。 - </para> - </note> - <example> - <title>キャッシュしない変数</title> - <programlisting> -<![CDATA[ -// $foo をキャッシュしない変数として代入します -$smarty->assign('foo',time(),true); -]]> -<![CDATA[ -Dynamic time value is {$foo} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="cacheability.plugins"> - <title>プラグインのキャッシュ可能性</title> - <para> - プラグインを登録する際にキャッシュ可能なプラグインを宣言する事が出来ます。 - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> - の3番目のパラメータが <parameter>$cacheable</parameter> で、デフォルトは &true; です。 - </para> - <para> - <literal>$cacheable=false</literal> であるプラグインが登録された時、 - プラグインはページがキャッシュから読まれる場合でもページを表示する度に呼ばれます。 - プラグイン関数は - <link linkend="plugins.inserts"><varname>{insert}</varname></link> - 関数に少し似た振る舞いをします。 - </para> - <note> - <title>ノート</title> - <para> - <parameter>$cacheable</parameter> は、コンパイル済みのテンプレートのコードに影響を及ぼします。 - 設定を変えた後は、コンパイル済みのテンプレートやキャッシュされたテンプレートを削除して - 再コンパイルしなければなりません。 - </para> - </note> - <para> - <link linkend="plugins.inserts"><varname>{insert}</varname></link> - とは対照的に、プラグインの属性はデフォルトではキャッシュされません。 - キャッシュするためには第4パラメータ <parameter>$cache_attrs</parameter> - によって宣言します。<parameter>$cache_attrs</parameter> - はキャッシュされるべき属性の名前を格納した配列であり、 - プラグイン関数はページがキャッシュから取り出される度に - 属性はキャッシュに記述されていたものとして値を取得します。 - </para> - - <example> - <title>プラグインの出力がキャッシュされるのを防ぐ</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -function remaining_seconds($params, $smarty) { - $remain = $params['endtime'] - time(); - if($remain >= 0){ - return $remain . ' second(s)'; - }else{ - return 'done'; - } -} - -$smarty->registerPlugin('function','remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->isCached('index.tpl')) { - // データベースから $obj を取り出して割り当てる - $smarty->assignByRef('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> は次のようになります。 - </para> - <programlisting> -<![CDATA[ -Time Remaining: {remaining endtime=$obj->endtime} -]]> - </programlisting> - <para> - たとえページがキャッシュされていても <literal>$obj</literal> - の endtime の秒数までは各ページの表示は変更されていきます。 - その後のリクエストでページがキャッシュに書かれている時、 - endtime 属性がキャッシュされたのでオブジェクトをデータベースから取り出す必要があるだけです。 - </para> - </example> - - <example> - <title>テンプレートの一節がキャッシュされるのを防ぐ</title> - <programlisting role="php"> -<![CDATA[ -index.php: - -<?php -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -function smarty_block_dynamic($param, $content, $smarty) { - return $content; -} -$smarty->registerPlugin('block','dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> は次のようになります。 - </para> - <programlisting> -<![CDATA[ -Page created: {'0'|date_format:'%D %H:%M:%S'} - -{dynamic} - -Now is: {'0'|date_format:'%D %H:%M:%S'} - -... 他にも何か ... - -{/dynamic} -]]> - </programlisting> - </example> - - <para> - ページをリロードした時に、両方の日付が異なる点に注意して下さい。 - 一つは <quote>動的</quote> であり、もう一つは <quote>静的</quote> です。 - <literal>{dynamic}...{/dynamic}</literal> 間に含まれるコンテンツ全てを動的に生成する事ができ、 - 残るコンテンツはキャッシュされない事を確認して下さい。 - </para> - <note> - <title>ノート</title> - <para> - 上の例は、単に動的ブロックプラグインの動作を説明するためだけのものです。 - <link linkend="cacheability.sections"><parameter>テンプレートセクションのキャッシュ可能性</parameter></link> - 組み込みの <link linkend="language.function.nocache"><varname>{nocache}</varname></link> - および <link linkend="language.function.nocache"><varname>{/nocache}</varname></link> - タグを使ってテンプレートセクションのキャッシュを無効にする方法があります。 - </para> - </note> - </sect2> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/caching/caching-groups.xml
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3839 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="caching.groups"> - <title>キャッシュのグループ</title> - <para> - <parameter>$cache_id</parameter> のグループを設定する事で、 - より複雑なグループにする事が出来ます。これは <parameter>$cache_id</parameter> - の値の中の <literal>|</literal> によって各サブグループに分けられる事で実現できます。 - サブグループはいくらでも持つ事が出来ます。 - </para> - - <itemizedlist> - <listitem><para> - ディレクトリ階層のようなキャッシュグループを考える事が出来ます。 - 例えば <literal>'a|b|c'</literal> というキャッシュグループは、 - <literal>'/a/b/c/'</literal> というディレクトリ構造だと考えられます。 - </para></listitem> - - <listitem><para> - <literal>clearCache(null,'a|b|c')</literal> - はファイル <literal>'/a/b/c/*'</literal> を、 - <literal>clearCache(null,'a|b')</literal> はファイル - <literal>'/a/b/*'</literal> を削除するのに似ています。 - </para></listitem> - - <listitem><para> - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - を <literal>clearCache(null,'a|b','foo')</literal> のように指定すると、 - それをキャッシュグループに追加して - <literal>'/a/b/c/foo/'</literal> として扱います。 - </para></listitem> - - <listitem><para> - テンプレート名を - <literal>clearCache('foo.tpl','a|b|c')</literal> のように指定すると、 - Smarty は <literal>'/a/b/c/foo.tpl'</literal> を削除しようと試みます。 - </para></listitem> - - <listitem><para> - また、<literal>'/a/b/*/foo.tpl'</literal> のように、 - 複数のキャッシュグループの下でテンプレート名を指定して削除する事は出来ません。 - キャッシュグループは左から右へ向かう順序でのみグループ化を定義できます。 - グループとしてそれらをクリアするためには、 - 単一のキャッシュグループ階層の下でテンプレートをグループ化する必要があります。 - </para></listitem> - </itemizedlist> - - <para> - キャッシュのグループ化はテンプレートディレクトリ階層によって混乱させられるべきではなく、 - テンプレートがどのような構造なのかも知り得ません。例えば、 - <filename>themes/blue/index.tpl</filename> のようなテンプレート構造があり、 - <quote>blue</quote> テーマのキャッシュファイルを全てクリアしたい時、 - テンプレートファイル構造をまねた - <literal>display('themes/blue/index.tpl','themes|blue')</literal> - のような キャッシュグループ構造を作成する必要があり、それならば - <literal>clearCache(null,'themes|blue')</literal> - によってキャッシュをクリアする事が出来ます。 - </para> - <example> - <title>$cache_id groups</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -// はじめの2つのcache_idグループが"sports|basketball"のキャッシュを全てクリアします。 -$smarty->clearCache(null,'sports|basketball'); - -// はじめのcache_idグループが"sports"のキャッシュを全てクリアします。 -// これは"sports|basketball"又は"sports|(anything)|(anything)|(anything)|..."を用いてインクルードされたものでしょう。 -$smarty->clearCache(null,'sports'); - -// cache_id として"sports|basketball"を用いてfoo.tpl のキャッシュファイルをクリアします。 -$smarty->clearCache('foo.tpl','sports|basketball'); - - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3839 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="caching.multiple.caches"> - <title>ページごとに複数のキャッシュ</title> - <para> - <link linkend="api.display"><varname>display()</varname></link> - や <link linkend="api.fetch"><varname>fetch()</varname></link> - のひとつの呼び出しから、複数のキャッシュファイルを持つ事が出来ます。 - 例えば <literal>display('index.tpl')</literal> を呼び出した時、 - いくつかの状況に応じて異なった内容の出力を持っているかもしれず、 - その出力ごとに別のキャッシュを持たせたいと思うかもしれません。 - これは、関数を呼び出す時に第2パラメータとして - <parameter>$cache_id</parameter> を渡す事で可能です。 - </para> - <example> - <title>display() に $cache_id を渡す</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl', $my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - 上記の例では、<parameter>$cache_id</parameter> として - <link linkend="api.display"><varname>display()</varname></link> - に変数 <literal>$my_cache_id</literal> を渡しました。 - それぞれにユニークな <literal>$my_cache_id</literal> - の値を与える事で、<filename>index.tpl</filename> の別々のキャッシュが生成されます。 - この例では、<parameter>$cache_id</parameter> として使われる - <literal>article_id</literal> は URL から渡されています。 - </para> - <note> - <title>テクニカルノート</title> - <para> - クライアント (Web ブラウザ) から Smarty (又はいくつかの PHP アプリケーション) - に値を渡すときには用心しなくてはいけません。前の例で、URL から article_id - を扱うのは便利そうにみえましたが、それは悪い結果をもたらすかもしれません。 - <parameter>$cache_id</parameter> はファイルシステムにディレクトリを作成するのに使用され、 - そしてもしユーザーが article_id に極めて大きな値を渡そうとしたり、速いペースでランダムの - article_id を送信するスクリプトを記述した場合、 - これはサーバレベルの問題を引き起こすかもしれません。必ず、 - 値を利用する前に渡されたデータの汚染チェックを行って下さい。おそらくこの例では、 - あなたは article_id が10文字かつ英数字のみで構成され、データベース内に有効な - article_id が存在しなければならない事を知っています。これをチェックして下さい! - </para> - </note> - <para> - <link linkend="api.is.cached"><varname>isCached()</varname></link> と - <link linkend="api.clear.cache"><varname>clearCache()</varname></link> - には、第2パラメータとして同じ <parameter>$cache_id</parameter> - を渡すようにしましょう。 - </para> - <example> - <title>isCached() に cache_id を渡す</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->isCached('index.tpl',$my_cache_id)) { - // キャッシュが有効でないので、ここで変数の割り当てを行いますn - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.clear.cache"><varname>clearCache()</varname></link> - の第1パラメータとして &null; を渡すと、指定した - <parameter>$cache_id</parameter> のすべてのキャッシュをクリアすることができます。 - </para> - <example> - <title>特定のcache_idの全てのキャッシュをクリアする</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -// cache_idが"sports"のキャッシュをすべてクリアする -$smarty->clearCache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - </programlisting> - </example> - <para> - このように同じ <parameter>$cache_id</parameter> を与える事で、 - キャッシュをまとめて <quote>グループ化</quote> する事が出来ます。 - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,217 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3841 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="caching.setting.up"> - <title>キャッシュのセットアップ</title> - <para> - まずはじめにキャッシュを有効にします。これは、<link - linkend="variable.caching"> - <parameter>$caching</parameter></link> に <literal>Smarty::CACHING_LIFETIME_CURRENT</literal> あるいは <literal>Smarty::CACHING_LIFETIME_SAVED</literal> - を設定するだけです。 - </para> - <example> - <title>キャッシュを有効にする</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -// $smarty->cacheLifetime() の値を使って -// キャッシュの有効期限が決まります -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - いつものようにテンプレートから出力内容をパースするために - <literal>display('index.tpl')</literal> を呼び出しますが、 - キャッシュを有効にした事でその出力内容をコピーしたファイルが - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - 内に保存されます。次回 <literal>display('index.tpl')</literal> - が呼ばれる際には、再びテンプレートをパースする代わりにキャッシュされたコピーが使用されます。 - </para> - <note> - <title>テクニカルノート</title> - <para> - <link linkend="variable.cache.dir"><parameter>$cache_dir</parameter></link> - 内のファイルにはテンプレート名に類似した名前が付けられます。 - 拡張子は <filename>.php</filename> ですが、実際にはPHPスクリプトとして実行されません。 - これらのファイルは編集しないで下さい! - </para> - </note> - <para> - 各々のキャッシュされたページは、 - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - 生存時間が限られています。デフォルト値は 3600 秒、つまり一時間です。 - 期限が過ぎた後、キャッシュは再生成されます。 - <link linkend="variable.caching"><parameter>$caching</parameter></link> に <literal>Smarty::CACHING_LIFETIME_SAVED</literal> - を設定する事によって、個々のキャッシュに自分自身の生存時間を与える事が可能です。詳細は、 - <link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link> - を参照して下さい - </para> - <example> - <title>キャッシュごとに生存時間を設定する</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -// 現在のキャッシュの生存時間は display がコールされるごとに残ります -$smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED); - -// index.tplに5分のcache_lifetimeをセットします -$smarty->setCacheLifetime(300); -$smarty->display('index.tpl'); - -// home.tplに1時間のcache_lifetimeをセットします -$smarty->setCacheLifetime(3600); -$smarty->display('home.tpl'); - -// 注: $caching が Smarty::CACHING_LIFETIME_SAVED のとき、 -// 次のような$cache_lifetimeの設定は動作しません。 -// home.tplのキャッシュの生存時間は既に1時間にセットされているので、 -// もはや、$cache_lifetimeの値が尊重される事はありません。 -// home.tplのキャッシュは、今までどおり1時間後に満期になるでしょう。 -$smarty->setCacheLifetime(30); // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="variable.compile.check"> - <parameter>$compile_check</parameter></link> が有効 (デフォルト) の時、 - キャッシュファイルに入り組んだすべてのテンプレートファイルと設定ファイルは - 修正されたかどうかをチェックされます。 - もしキャッシュが生成されてからいくつかのファイルが修正されていた場合、 - キャッシュは即座に再生成されます。 - これは最適なパフォーマンスのためには僅かなオーバーヘッドになるので、 - <link linkend="variable.compile.check"><parameter>$compile_check</parameter> - </link> は &false; にして下さい。 - </para> - <example> - <title>$compile_check の無効化</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); -$smarty->setCompileCheck(false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="variable.force.compile"> - <parameter>$force_compile</parameter></link> が有効の場合、 - キャッシュファイルは常に再生成されます。これは事実上、キャッシュ機能を無効にします。 - しかし同時に、パフォーマンスの低下も引き起こします。通常、 - <link linkend="variable.force.compile"><parameter>$force_compile</parameter> - </link> は <link linkend="chapter.debugging.console">デバッグ</link> - 目的でのみ使用し、キャッシュは - <link linkend="variable.caching"><parameter>$caching</parameter> - </link> を Smarty::CACHING_OFF - にセットして無効にするのがさらに効率の良い方法です。 - </para> - <para> - <link linkend="api.is.cached"><varname>isCached()</varname></link> - 関数は、テンプレートが有効なキャッシュを持っているかどうかを調べるのに使われます。 - もしデータベースフェッチを必要とするようなテンプレートのキャッシュが存在する場合、 - フェッチ過程をスキップするためにこの関数を使う事が出来ます。 - </para> - <example> - <title>isCached() を使用する</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -if(!$smarty->isCached('index.tpl')) { - // キャッシュが有効でないので、ここで変数の割り当てを行います - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="language.function.nocache"><varname>{nocache}{/nocache}</varname></link> - ブロック関数、 - <link linkend="language.function.insert"><varname>{insert}</varname></link> - テンプレート関数、あるいは大半のテンプレート関数に用意されている <literal>nocache</literal> - パラメータによってページの一部を動的に保つ (キャッシュを無効にする) 事が出来ます。 - </para> - <para> - 例えば、すべてのページは右下に表示されるバナー以外はキャッシュが可能だとします。 - バナー部分には - <link linkend="language.function.insert"><varname>{insert}</varname></link> - 関数を使う事によって、キャッシュされたコンテンツの中に動的な要素を保つ事ができます。 - 詳細な説明や例は、<link linkend="language.function.insert"><varname>{insert}</varname></link> - のドキュメントを参照してください。 - </para> - <para> - <link linkend="api.clear.all.cache"><varname>clearAllCache()</varname></link> - 関数または <link linkend="api.clear.cache"><varname>clearCache()</varname></link> - 関数によって、個々のキャッシュファイル (<link linkend="caching.groups">そしてグループ</link>) - をクリアする事ができます。 - </para> - <example> - <title>キャッシュをクリアする</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); - -// 全てのキャッシュファイルをクリアします -$smarty->clearCache('index.tpl'); - -// index.tplのキャッシュファイルのみクリアします -$smarty->clearAllCache(); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <chapter id="plugins"> - <title>プラグインによる Smarty の拡張</title> - <para> - Smarty 2.0 から導入されたプラグインアーキテクチャにより、 - Smarty のほとんど全ての機能がカスタマイズ可能になりました。 - プラグインには次のものがあります。 - <itemizedlist spacing="compact"> - <listitem><simpara>テンプレート関数プラグイン</simpara></listitem> - <listitem><simpara>修飾子プラグイン</simpara></listitem> - <listitem><simpara>ブロック関数プラグイン</simpara></listitem> - <listitem><simpara>コンパイラ関数プラグイン</simpara></listitem> - <listitem><simpara>プリフィルタプラグイン</simpara></listitem> - <listitem><simpara>ポストフィルタプラグイン</simpara></listitem> - <listitem><simpara>アウトプットフィルタプラグイン</simpara></listitem> - <listitem><simpara>リソースプラグイン</simpara></listitem> - <listitem><simpara>インサートプラグイン</simpara></listitem> - </itemizedlist> - リソースを除いて、register_* API - によって関数を登録する古い方法の後方互換性はサポートされます。 - API を使わずに、代わりに <literal>$custom_funcs</literal>, - <literal>$custom_mods</literal> や その他のクラス変数を変更していたなら、 - API を使用するか、行った拡張をプラグインに変換するようにスクリプトを調整する必要があります。 - </para> - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,122 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.block.functions"><title>ブロック関数プラグイン</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - <paramdef>boolean <parameter>&$repeat</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - ブロック関数は、<literal>{func} .. {/func}</literal> 形式の関数です。 - この関数によって囲まれたテンプレートのブロックの内容を処理します。 - ブロック関数は、同じ名前の - <link linkend="language.custom.functions">カスタム関数</link> - より優先されます。つまり、テンプレート関数 - <literal>{func}</literal> とブロック関数 - <literal>{func}..{/func}</literal> の両方を定義することはできません。 - </para> - - <itemizedlist> - <listitem><para> - デフォルトでは、実装された関数はSmartyによって2度 - (1度目は開始タグ、2度目は終端タグによって)呼び出されます - (この動作の変更方法は次の <literal>$repeat</literal> を参照)。 - </para></listitem> - <listitem><para> - ブロック関数の開始タグのみ <link linkend="language.syntax.attributes">属性</link> - を持つ場合があります。全ての属性はテンプレートからテンプレート関数に、 - 連想配列として <parameter>$params</parameter> に格納された状態で渡されます。 - また、終端タグを処理している時に開始タグの属性にアクセスする事が可能です - </para></listitem> - <listitem><para> - 変数 <parameter>$content</parameter> の値は、 - 関数が開始タグ又は終端タグのどちらから呼ばれるかによって変わります。 - 開始タグの場合は &null;、終端タグの場合はテンプレートブロックのコンテンツです。 - テンプレートブロックが Smarty によって既に処理されている事に注意して下さい。 - つまり、受け取るのはテンプレートソースではなくテンプレートの出力です。 - </para></listitem> - - <listitem><para> - <parameter>$repeat</parameter> パラメータは実装された関数に参照によって渡され、 - そのブロックが何回表示されるのかを操作する事ができます。 - デフォルトでは、最初のブロック関数の呼び出し(開始タグ)のとき - <parameter>$repeat</parameter> は &true; で、その後に呼び出される場合(終端タグ)は、 - &false; となります。 実装された関数で <parameter>$repeat</parameter> を &true; - とする事で、<literal>{func}...{/func}</literal> 間のコンテンツが再度評価され、 - <parameter>$content</parameter> パラメータに新しいブロックコンテンツが格納された状態で、 - 再び呼び出されます。 - </para></listitem> - </itemizedlist> - - <para> - ネストしたブロック関数がある場合、変数 - <literal>$smarty->_tag_stack</literal> - にアクセスする事で親のブロック関数を見つける事が可能です。 - <ulink url="&url.php-manual;var_dump"><varname>var_dump()</varname></ulink> - を行い、構造をはっきりと理解すべきです。 - </para> - - <example> - <title>ブロック関数プラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: テキストブロックを変換する - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, $template, &$repeat) -{ - // 終了タグでのみ出力します - if(!$repeat){ - if (isset($content)) { - $lang = $params['lang']; - // ここで $content に対して何かの変換を行います - return $translation; - } - } -} -?> -]]> - </programlisting> - </example> - -<para> - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> および - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link> - も参照ください。 -</para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.compiler.functions"><title>コンパイラ関数プラグイン</title> - <para> - コンパイラ関数プラグインはテンプレートのコンパイル時にのみ呼び出されます。 - これらのプラグインは、PHPコードまたは時間に依存する静的コンテンツをテンプレートに含める時に便利です。 - コンパイラ関数と <link linkend="language.custom.functions">カスタム関数</link> - が双方とも同じ名前で登録された場合は、コンパイラ関数が優先されます。 - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - コンパイラ関数には3つのパラメータを渡します。 - これらのパラメータは、タグ内の文字列(基本的に関数名から終端デリミタまでの全ての文字列)と、 - Smartyのオブジェクト、そしてテンプレートオブジェクトです。 - 戻り値には、コンパイルされたテンプレートに挿入されるPHPコードを返します。 - </para> - - <example> - <title>シンプルなコンパイラ関数プラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: ソースファイル名とそれがコンパイルされた時間を含む - * ヘッダを出力する - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, $smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> -</programlisting> - <para> - この関数はテンプレートから次のように呼ばれます。 - </para> - <programlisting> -<![CDATA[ -{* この関数はコンパイル時にのみ呼び出されます *} -{tplheader} -]]> - </programlisting> - <para> - コンパイルされたテンプレートの結果として生じるPHPコードは次のようになります。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> - - <para> - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> および - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link> - も参照ください。 - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,132 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3837 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.functions"><title>テンプレート関数プラグイン</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>$template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - テンプレートからテンプレート関数に渡された全ての - <link linkend="language.syntax.attributes">属性</link> は、 - 連想配列として <parameter>$params</parameter> に格納されます。 - </para> - <para> - 関数の出力(戻り値)はテンプレート関数のタグの部分と置き換えられます(例: - <link linkend="language.function.fetch"><varname>{fetch}</varname></link> - 関数)。 あるいは何も出力せずに単に他のタスクを実行する事ができます(例: - <link linkend="language.function.assign"> - <varname>{assign}</varname></link> 関数)。 - </para> - <para> - 関数によっていくつかの変数をテンプレートに割り当てる必要がある、 - もしくは Smarty に提供された他の機能を使う必要がある場合は、 - 提供された <parameter>$template</parameter> オブジェクトを使用して - <literal>$template->foo()</literal> のようにします。 - </para> - - <para> - <example> - <title>出力ありのテンプレート関数プラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: ランダムに回答を出力する - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, $template) -{ - $answers = array('はい', - 'いいえ', - 'わかりません', - '可能性は低い', - '今は答えられません', - '実はもう実現しているのかも……'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> -</programlisting> - </example> - </para> - <para> - 次のようにテンプレートで使用する事ができます。 - </para> - <programlisting> -質問: 将来、タイムトラベルは実現可能でしょうか? -答え: {eightball}. - </programlisting> - <para> - <example> - <title>出力なしのテンプレート関数プラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: テンプート変数に値を割り当てる - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, $template) -{ - if (empty($params['var'])) { - trigger_error("assign: パラメータ 'var' がありません"); - return; - } - - if (!in_array('value', array_keys($params))) { - trigger_error("assign: パラメータ 'value' がありません"); - return; - } - - $template->assign($params['var'], $params['value']); - -} -?> -]]> - </programlisting> - </example> - </para> - <para> - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> および - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.howto"> - <title>プラグインの動作原理</title> - <para> - プラグインは要求があると常に読み込まれます。テンプレートから呼び出された - 修飾子・関数・リソース等のプラグインだけが読み込まれます。 - さらに各プラグインは同じリクエスト内に Smarty - の異なるインスタンスが複数実行されていても、読み込まれるのは一度だけです。 - </para> - <para> - プリフィルタ/ポストフィルタとアウトプットフィルタは少し特殊です。 - これらはテンプレートから呼び出されないので、テンプレートが処理される前に - API 関数を経由して明示的に登録または読み込まれる必要があります。 - 同じ種類の複数のフィルタが実行される順序は、それらが登録または読み込まれる順序によって決まります。 - </para> - <para> - <link linkend="variable.plugins.dir">プラグインディレクトリ</link> - は、単一のパスを示す文字列または複数のパスを格納した配列でとなります。 - プラグインのインストールは、単にプラグインファイルをいずれかのプラグインディレクトリ内に置くだけです。 - そうすれば Smarty はそれを自動的に使用します。 - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3836 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.inserts"><title>インサートプラグイン</title> - <para> - インサートプラグインは、テンプレートの - <link linkend="language.function.insert"><varname>{insert}</varname></link> - タグによって呼び出される関数を実装するために使用されます。 - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - この関数の第1パラメータは、insert タグに渡される属性の連想配列です。 - </para> - <para> - インサートプラグイン関数は戻り値として、 - テンプレートの <varname>{insert}</varname> タグの部分を置き換える結果を返します。 - </para> - <example> - <title>インサートプラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: 現在の日付/時刻をフォーマットにしたがってインサートする - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, $smarty) -{ - if (empty($params['format'])) { - trigger_error("insert time: missing 'format' parameter"); - return; - } - return strftime($params['format']); -} -?> -]]> - </programlisting> - </example> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,118 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.modifiers"><title>修飾子プラグイン</title> - <para> - <link linkend="language.modifiers">修飾子プラグイン</link> - は、テンプレートの変数が表示される前または他のコンテンツに使用される前に適用される関数です。 - 修飾子を連結することもできます。 - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - 修飾子プラグインへの第1パラメータは、この修飾子によって影響を受ける値です。 - 残りのパラメータはどのような動作が行われるかによって任意です。 - </para> - <para> - 修飾子プラグインは処理の結果を - <ulink url="&url.php-manual;return">返す</ulink> - 必要があります。 - </para> - - <example> - <title>シンプルな修飾子プラグイン</title> - <para> - このプラグインは、基本的に組み込みの PHP 関数の名前を変えただけのものです。 - 追加のパラメータはありません。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: 文字列の各単語の最初の文字を大文字にする - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> -</programlisting> - </example> - <para></para> - <example> - <title>更に複雑な修飾子プラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: 文字列をある長さで切り捨てます。 - * 単語の真ん中で分割させたり、終端に文字列 $etc - * を追加したりすることもできます。 - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.register.plugin"><varname>registerPlugin()</varname></link> および - <link linkend="api.unregister.plugin"><varname>unregisterPlugin()</varname></link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.naming.conventions"> - <title>命名規約</title> - <para> - プラグインファイルとその関数が Smarty - によって認識されるためには特有の命名規約に従わなければなりません。 - </para> - <para> - <emphasis role="bold">プラグインファイル</emphasis> は次のように指定します。 - <blockquote> - <para> - <filename> - <replaceable>type</replaceable>.<replaceable>name</replaceable>.php - </filename> - </para> - </blockquote> - </para> - - <itemizedlist> - <listitem><para> - <literal>type</literal> は次のプラグインタイプのうちのいずれか1つです。 - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - </listitem> - - <listitem><para> - <literal>name</literal> には英数字とアンダースコアのみ使用できます。 - <ulink url="&url.php-manual;language.variables">PHP の変数</ulink> - を参照してください。 - </para></listitem> - - <listitem><para> - 例: <filename>function.html_select_date.php</filename>、 - <filename>resource.db.php</filename>、 - <filename>modifier.spacify.php</filename>。 - </para> - </listitem> - </itemizedlist> - - - <para> - PHP ファイル内で定義する <emphasis role="bold">プラグイン関数</emphasis> - は次のように指定します。 - <blockquote> - <para> - <function>smarty_<replaceable>type</replaceable>_<replaceable>name</replaceable></function> - </para> - </blockquote> - </para> - - <itemizedlist> - <listitem><para> - <literal>type</literal> および <literal>name</literal> - の意味は前述したものと同じです。 - </para></listitem> - <listitem><para> - たとえば <varname>foo</varname> という名前の修飾子の場合は、 - <literal>function smarty_modifier_foo()</literal> となります。 - </para></listitem> - </itemizedlist> - <para> - 必要なプラグインファイルが見当たらないか、 - ファイル名又はプラグイン関数名が不正な場合 Smarty は適切なエラーメッセージを出力します。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.outputfilters"><title>アウトプットフィルタプラグイン</title> - <para> - アウトプットフィルタプラグインは、テンプレートが読み込まれて実行された後 - (しかしその出力が表示される前)にテンプレートの出力を操作します。 - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - アウトプットフィルタの第1パラメータは、処理を行うテンプレート出力です。 - 第2パラメータは、プラグインを呼び出したSmartyのインスタンスです。 - このプラグインは戻り値に、修正されたテンプレート出力を返すようにして下さい。 - </para> - <example> - <title>アウトプットフィルタプラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: email アドレスの @ を %40 に変換し、 - * スパムボットからほんの少しだけ保護する - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, $smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.register.filter"> - <varname>registerFilter()</varname></link> - および - <link linkend="api.unregister.filter"> - <varname>unregisterFilter()</varname></link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.prefilters.postfilters"> - <title>プリフィルタ/ポストフィルタプラグイン</title> - <para> - プリフィルタ/ポストフィルタプラグインは概念において非常によく似ています。 - それらの違いは実行されるタイミングにあります。 - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - プリフィルタは、テンプレートソースをコンパイルする直前に何らかの処理を行うために使用されます。 - プリフィルタ関数への第1パラメータはテンプレートソースであり、 - これは他のプリフィルタによって既に修正されている可能性があります。 - このプラグインは戻り値に、修正されたテンプレートソースを返すようにして下さい。 - また、このテンプレートソースはどこにも保存されず、コンパイルする目的だけに使用される事に注意して下さい。 - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - ポストフィルタは、テンプレートのコンパイルが行われてファイルシステムに保存される前に、 - そのテンプレートのコンパイル結果(PHPスクリプト)に何らかの処理を行うために使用されます。 - ポストフィルタへの第1パラメータはコンパイルされたテンプレートソースであり、 - これは他のポストフィルタによって既に修正されている可能性があります。 - このプラグインは戻り値に、修正されたテンプレートソースを返すようにして下さい。 - </para> - <example> - <title>プリフィルタプラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: html タグを小文字に変換する - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, $smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>ポストフィルタプラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: 現在のテンプレートのすべての変数をリストするスクリプトを出力する - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, $smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->getTemplateVars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> - <para> - <link linkend="api.register.filter"> - <varname>registerFilter()</varname></link> および - <link linkend="api.unregister.filter"> - <varname>unregisterFilter()</varname></link> - も参照ください。 - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.resources"><title>リソースプラグイン</title> - <para> - リソースプラグインは、テンプレートソースやPHPスクリプトのコンポーネントを - Smarty に提供する一般的な方法と意図されています - (例: データベース, LDAP, 共有メモリ, ソケット等)。 - </para> - - <para> - 各種リソースのために4つの関数を登録する必要があります。 - これらの関数の最初のパラメータには要求されたリソースが渡され、 - 最後のパラメータには Smarty のオブジェクトが渡されます。 - 残りのパラメータは関数によって異なります。 - </para> - - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <itemizedlist> - <listitem><para> - 1つめの関数 <literal>source()</literal> ではリソースを取得します。 - 第2パラメータ <parameter>$source</parameter> - は参照で渡され、ここに結果が格納されます。 - 戻り値は、リソースの取得に成功すれば &true;、 - それ以外は &false; となります。 - </para></listitem> - - <listitem><para> - 2つめの関数 <literal>timestamp()</literal> は、 - 要求されたリソースが最後に修正された時間(UNIXタイムスタンプ)を取得します。 - 第2パラメータ <parameter>$timestamp</parameter> は参照で渡され、 - ここにタイムスタンプが格納されます。タイムスタンプが取得できれば - &true;、それ以外は &false; を返します。 - </para></listitem> - - <listitem><para> - 3つめの関数 <literal>secure()</literal> は、 - 要求されたリソースがセキュアであるかどうかに応じて &true; 又は &false; を返します。 - この関数はテンプレートリソースのためにだけ用いられますが、定義する必要があります。 - </para></listitem> - - <listitem><para> - 4つめの関数 <literal>trusted()</literal> は、 - 要求されたリソースが信用できるかどうかに応じて &true; 又は &false; を返します。 - この関数を使用するのは、<link linkend="language.function.include.php"> - <varname>{include_php}</varname></link> タグあるいは - <link linkend="language.function.insert"><varname>{insert}</varname></link> - タグで <parameter>src</parameter> 属性によって要求された PHP - スクリプトコンポーネントのみです。 - しかし、テンプレートリソースであっても定義する必要があります。 - </para></listitem> - </itemizedlist> - - - <example> - <title>リソースプラグイン</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: データベースからテンプレートを取得する - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, $smarty) -{ - // ここでデータベースを呼び出し、 - // 失際のテンプレートの内容を $tpl_source に代入します - $tpl_source = "This is the template text"; - // 成功した場合に true を返します。false を返すと失敗したことになります - return true; -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, $smarty) -{ - // テンプレートの最終更新時刻の Unix タイムスタンプを - // $tpl_timestampに代入するためにデータベースを呼び出します - // これで、再コンパイルが必要かどうかを判断します - $tpl_timestamp = time(); // この例だと常に再コンパイルとなります! - // 成功した場合に true を返します。false を返すと失敗したことになります - return true; -} - -function smarty_resource_db_secure($tpl_name, $smarty) -{ - // 全てのテンプレートがセキュアであるとみなします - return true; -} - -function smarty_resource_db_trusted($tpl_name, $smarty) -{ - // テンプレートでは使用しません -} -?> -]]> - </programlisting> - </example> - - <para> - <link linkend="api.register.resource"><varname>registerResource()</varname></link> - および - <link linkend="api.unregister.resource"><varname>unregisterResource()</varname></link> - も参照してください。 -</para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> - <sect1 id="plugins.writing"> - <title>プラグインの記述</title> - <para> - プラグインは Smarty によってファイルシステムから自動的に読み込まれるか、 - register_* API 関数のうちの1つを経由して動的に登録する事ができます。 - また、それらは unregister_* API 関数を使う事によって未登録にする事ができます。 - </para> - <para> - 動的に登録されるプラグインについてはプラグイン関数の命名規約に従う必要はありません。 - </para> - <para> - Smarty にバンドルされたいくらかのプラグインに関する場合と同様に、 - プラグインが別のプラグインによって提供される機能に依存する場合は次の方法で必要とされるプラグインを読み込みます。 - </para> - <programlisting role="php"> -<![CDATA[ -<?php -$_smarty_tpl->loadPlugin('smarty_shared_make_timestamp'); -?> -]]> - </programlisting> - <para> - 基本的に、Smarty のオブジェクトは常に最後のパラメータとしてプラグインに渡されます。 - ただし、例外が2つあります。 - </para> - <itemizedlist> - <listitem><para> - 変数の修飾子は Smarty オブジェクトを渡しません。 - </para></listitem> - <listitem><para> - ブロックの場合は Smarty オブジェクトの後に <parameter>$repeat</parameter> - が渡されます。これは、以前のバージョンの Smarty - との後方互換性を保つためのものです。 - </para></listitem> - </itemizedlist> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/programmers/smarty-constants.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 3856 $ --> -<!-- EN-Revision: 3827 Maintainer: takagi Status: ready --> -<!-- CREDITS: mat-sh,daichi,joe --> -<chapter id="smarty.constants"> -<title>定数</title> - -<sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - この定数には、Smarty のクラスファイルが置かれた場所への - <emphasis role="bold">システム上でのフルパス</emphasis> を指定します。 - 定義されていない場合、Smarty は自動的に適切な値に決定しようと試みます。 - 定義した場合、<emphasis role="bold">必ずスラッシュで終わるようにします。</emphasis> - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Smartyのディレクトリパスを*nixスタイルでセットする -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// Smartyのパスをwindowsスタイルでセットする -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// 'S'が大文字であることに注意して、smartyクラスをインクルードします。 -require_once(SMARTY_DIR . 'Smarty.class.php'); -?> -]]> - </programlisting> - </example> - <para> - <link linkend="language.variables.smarty.const"><parameter>$smarty.const</parameter></link> - および - <link - linkend="variable.php.handling"><parameter>$php_handling 定数</parameter></link> - も参照ください。 - </para> -</sect1> - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ja/translation.xml
Deleted
@@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> -<translation> - <intro> - このファイルは、Smarty 日本語マニュアルの翻訳状況を示すものです。 - このファイルは、smarty/docs/scripts/revcheck.php によって自動的に作成されます。 - </intro> - - <translators> - <person name="Shinsuke Matsuda" email="mat-sh@fj9.so-net.ne.jp" nick="mat-sh" cvs="no" /> - </translators> - <translators> - <person name="Daichi Kamemoto" email="daichi@asial.co.jp" nick="daichi" cvs="no" /> - </translators> - <translators> - <person name="Joe Morikawa" email="joe@asial.co.jp" nick="joe" cvs="no" /> - </translators> - <translators> - <person name="Masahiro Takagi" email="takagi@php.net" nick="takagi" cvs="yes" /> - </translators> - - <work-in-progress> - </work-in-progress> - -</translation> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/manual.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version='1.0' encoding='utf-8' ?> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" - "./dtds/dbxml-4.1.2/docbookx.dtd" [ -<!ENTITY % build.version SYSTEM "entities/version.ent"> -%build.version; - -<!-- Add translated specific definitions and snippets --> -<!ENTITY % language-defs SYSTEM "current_lang/language-defs.ent"> -<!ENTITY % language-snippets SYSTEM "current_lang/language-snippets.ent"> - -%language-defs; -%language-snippets; - -<!-- Fallback to English definitions and snippets (in case of missing translation) --> -<!ENTITY % language-defs.default SYSTEM "current_lang/language-defs.ent"> - -%language-defs.default; - -<!-- All global entities for the XML files --> -<!ENTITY % global.entities SYSTEM "entities/global.ent"> - -%global.entities; - -<!ENTITY % file.entities SYSTEM "entities/file-entities.ent"> - -%file.entities; - -]> - - -<book lang="⟨" id="manual"> - <title>&SMARTYManual;</title> - - &bookinfo; - &preface; - &getting-started; - - <part id="smarty.for.designers"> - <title>&SMARTYDesigners;</title> - - &designers.language-basic-syntax; - &designers.language-variables; - &designers.language-modifiers; - &designers.language-combining-modifiers; - &designers.language-builtin-functions; - &designers.language-custom-functions; - &designers.config-files; - &designers.chapter-debugging-console; - </part> - - <part id="smarty.for.programmers"> - <title>&SMARTYProgrammers;</title> - - &programmers.charset; - &programmers.smarty-constants; - &programmers.api-variables; - &programmers.api-functions; - &programmers.caching; - &programmers.resources; - &programmers.advanced-features; - &programmers.plugins; - &programmers.bc; - </part> - -<part id="appendixes"> - <title>&Appendixes;</title> - &appendixes.troubleshooting; - &appendixes.tips; - &appendixes.resources; - &appendixes.bugs; -</part> -</book>
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/appendixes/bugs.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <chapter id="bugs"> - <title>BUGS</title> - <para> - Verifique o arquivo <filename>BUGS</filename> que vem com a última - distribuição do Smarty, ou verifique a seção BUGS do website. - </para> - </chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/appendixes/resources.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- EN-Revision: 1.3 Maintainer: thomasgm Status: ready --> - <chapter id="resources"> - <title>Recursos</title> - <para> - A homepage do Smarty está localizada em <ulink - url="&url.smarty;">&url.smarty;</ulink>. - Você pode entrar na lista de discussão enviando um e-mail para - &ml.general.sub;. O arquivo da lista de discussão pode ser - visualizado em <ulink url="&url.ml.archive;">&url.ml.archive;</ulink>. - </para> - </chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/appendixes/tips.xml
Deleted
@@ -1,361 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: thomasgm Status: ready --> -<chapter id="tips"> - <title>Dicas & Truques</title> - <para> - </para> - <sect1 id="tips.blank.var.handling"> - <title>Manipulação de Variável Vazia</title> - <para> - Há momentos que você quer mostrar um valor padrão para uma variável vazia ao invés de não mostrar nada, - tal como mostrar "&nbsp;" para que os planos de fundo de tabelas funcionem corretamente. Muitos - usariam uma instrução {if} para fazer isso, mas há um macete que pode ser feito usando-se o - modificador de variável <emphasis>padrão</emphasis> do Smarty. - </para> -<example> -<title>Imprimindo &nbsp; quando uma variável está vazia</title> -<programlisting> -<![CDATA[ -{* A forma mais longa *} - -{if $titulo eq ""} - &nbsp; -{else} - {$titulo} -{/if} - - -{* A forma mais simples *} - -{$titulo|default:"&nbsp;"} -]]> -</programlisting> -</example> - </sect1> - - <sect1 id="tips.default.var.handling"> - <title>Manipulação do valor padrão de uma Variável</title> - <para> - Se uma variável é usada freqüentemente em seus templates, aplicar o modificador de variável - <emphasis>padrão</emphasis> toda vez pode se tornar algo muito desagradável. Você pode evitar - isto atribuindo um valor padrão para a variável usando a função <link linkend="language.function.assign">assign</link>. - </para> -<example> -<title>Atribuindo o valor padrão para uma variável de template</title> -<programlisting> -<![CDATA[ -{* coloque isto em algum lugar no topo de seu template *} -{assign var="titulo" value=$titulo|default:"sem título"} - -{* Se o $titulo estava vazio, ele agora contém o valor "sem titulo" quando você exibí-lo *} -{$titulo} -]]> -</programlisting> -</example> - </sect1> - <sect1 id="tips.passing.vars"> - <title>Passando a variável titulo para o template de cabeçalho</title> - <para> - Quando a maioria de seus templates usam os mesmos cabeçalhos e mesmos rodapés, é - comum dividi-los um em cada template e então incluí-los. Mas o que fazer se o - cabeçalho precisa ter um titulo diferente, dependendo de que página ele está vindo? - Você pode passar o titulo para o - cabeçalho quando ele é incluído. - </para> -<example> -<title>Passando a variável titulo para o template de cabeçalho</title> -<programlisting> -<![CDATA[ -paginaprincipal.tpl ------------- - -{include file="cabecalho.tpl" titulo="Página Principal"} -{* O conteúdo do template vem aqui *} -{include file="rodape.tpl"} - - -arquivos.tpl ------------- - -{config_load file="pagina_arquivos.conf"} -{include file="cabecalho.tpl" titulo=#tituloPaginaArquivos#} -{* O conteúdo do template vem aqui *} -{include file="rodape.tpl"} - - -cabecalho.tpl ----------- -<HTML> -<HEAD> -<TITLE>{$title|default:"BC News"}</TITLE> -</HEAD> -<BODY> - - -footer.tpl ----------- -</BODY> -</HTML> -]]> -</programlisting> -</example> - <para> - Quando a página for extraída, o título da "Página Principal" é passado ao template 'cabecalho.tpl', - e será imediatamente usado como título da página. Quando a página de arquivos é extraída, o título - muda para "Arquivos". No que no exemplo de arquivos, nós estamos usando uma variável que vem do - arquivo 'pagina_arquivos.conf' ao invés de uma variável definida no código. Note também que "BC News" - é mostrado somente se a variável $titulo não conter valor algum, isto é feito usando-se o modificador - de variáveis <emphasis>padrão</emphasis>. - </para> - </sect1> - <sect1 id="tips.dates"> - <title>Datas</title> - <para> - Em geral, sempre envie datas ao Smarty no formato timestamp. Deste modo o desginer do template - pode usar o modificador <link linkend="language.modifier.date.format">date_format</link> - para ter um controle total sobre a formatação da data, e também facilita a comparação de datas - se necessário. - </para> - <para> - Nota: No Smarty 1.4.0, você pode enviar datas ao Smarty no formato unix timestamp, - mysql timestamp, ou qualer outra data que possa ser lida pela função strtotime(). - </para> - <example> - <title>usando date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - Irá mostrar: - </para> - <screen> -<![CDATA[ -Jan 4, 2001 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - Irá mostrar: - </para> - <screen> -<![CDATA[ -2001/01/04 -]]> - </screen> - <programlisting> -<![CDATA[ -{if $data1 < $data2} - ... -{/if} -]]> - </programlisting> - </example> - <para> - Quando se está usando {html_select_date} em um template, o programador normalmente vai querer - converter a saída de um formulário de volta para o formato timestamp. Abaixo está uma função - que irá ajudá-lo à fazer isto. - </para> -<example> -<title>Convertendo datas de volta ao formato timestamp</title> -<programlisting role="php"> -<![CDATA[ -<?php -// presume-se que os elementos de seu formulário são chamados de -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year,$startDate_Month,$startDate_Day); - -function makeTimeStamp($year="",$month="",$day="") -{ - if(empty($year)) - $year = strftime("%Y"); - if(empty($month)) - $month = strftime("%m"); - if(empty($day)) - $day = strftime("%d"); - - return mktime(0,0,0,$month,$day,$year); -} -?> -]]> -</programlisting> -</example> - </sect1> - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - Os templates WAP/WML exigem um cabeçalho com o tipo de conteúdo (Content-Type) PHP para serem - passados junto com o template. O modo mais fácil de se fazer isso seria escrever uma função - personalizada que envia-se este cabeçalho. Se você está usando cache, isto não irá funcionar, - então nós faremos isso usando a tag insert (lembre-se que tags de insert não são guardadas no cache!). - Certifique-se de que nada é enviado ao navegador antes do template, caso contrário o cabeçalho não irá - funcionar. - </para> -<example> -<title>Usando insert para escrever um cabeçalho WML Content-Type</title> -<programlisting role="php"> -<![CDATA[ -<?php -// certifique-se que o apache está configurado para reconhecer extensões .wml! -// coloque esta função em algum lugar de seu aplicativo, ou no arquivo Smarty.addons.php - -function insert_header($params) -{ - // esta função espera o argumento $content - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} -?> -]]> -</programlisting> -<para> -seu template do Smarty deve começar com a tag insert, veja o exemplo à seguir: -</para> -<programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- begin new wml deck --> -<wml> -<!-- begin first card --> -<card> -<do type="accept"> -<go href="#two"/> -</do> -<p> -Bem-vindo ao WAP com Smarty! -Pressione OK para continuar... -</p> -</card> -<!-- begin second card --> -<card id="two"> -<p> -Bem fácil isso, não é? -</p> -</card> -</wml> -]]> -</programlisting> -</example> - </sect1> - <sect1 id="tips.componentized.templates"> - <title>Templates componentizados</title> - <para> - Tradicionalmente, programar templates para suas aplicações é feito da seguinte maneira: - Primeiro, você guardar suas variáveis junto com a aplicação PHP, (talvez obtendo-as de consultas - à banco de dados). Após, você instancia seu objeto Smarty, atribui valores às variáveis e - mostra o template. Digamos que nós temos um registrador de estoque em nosso template. Nós - coletaríamos os dados do estoque em nossa aplicação, e então atribuíriamos valores as variáveis - referentes à ele no template e depois exibiríamos o template na tela. Agora não seria legal - se você pudesse adicionar este registrador de esto em qualquer aplicação simplesmente incluindo - um template nela, e sem se preocupar com a busca dos dados futuramente? - </para> - <para> - Você pode fazer isto escrevendo um plugin personalizado que obteria o - conteúdo e atribuiria ele à uma variável definida no template. - </para> -<example> -<title>Template componentizado</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// coloque o arquivo "function.load_ticker.php" no diretório plugin - -// configura nossa função para pegar os dados do estoque -function fetch_ticker($symbol) -{ - // coloque a lógica que obtém os dados de - // algum recurso e guarde na variável $ticker_info - return $ticker_info; -} - -function smarty_function_load_ticker($params, &$smarty) -{ - // chama a função - $ticker_info = fetch_ticker($params['symbol']); - - // atribuite o valor à uma variável no template - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -index.tpl ---------- - -{* Smarty *} - -{load_ticker symbol="YHOO" assign="ticker"} - -Nome no estoque: {$ticker.name} Preço no estoque: {$ticker.price} -]]> - </programlisting> -</example> - </sect1> - <sect1 id="tips.obfuscating.email"> - <title>Ofuscando endereços de E-mail</title> - <para> - Você já se espantou como seu endereço de E-mail entra em tantas listas de spam? - A única forma dos spammers coletarem seu(s) endereço(s) de E-mail(s) é de páginas web. - Para ajudar à combater este problema, você pode fazer seu endereço de E-mail aparecer em javascript - misturado em código HTML, e ainda assim ele irá aparecer e funcionar corretamente no navegador. - Isto é feito com o plugin chamado 'mailto'. - </para> -<example> -<title>Exemplo de ofuscamento de um Endereço de E-mail</title> -<programlisting> -<![CDATA[ -index.tpl ---------- - -envia informações para -{mailto address=$EmailAddress encode="javascript" subject="Olá"} - -]]> -</programlisting> -</example> - <note> - <title>Nota técnica</title> - <para> - Este método não é 100% a prova de falha. Um spammer poderia criar um programa - para coletar o e-mail e decodificar estes valores, mas é muito pouco provável. - </para> - </note> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/appendixes/troubleshooting.xml
Deleted
@@ -1,183 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- EN-Revision: 1.4 Maintainer: thomasgm Status: ready --> -<chapter id="troubleshooting"> - <title>Localização de Erros</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Erros do Smarty/PHP</title> - <para> - O Smarty pode obter muitos erros, tais como: atributos de tags perdidos ou nomes de variáveis - mal formadas. Se isto acontece, você verá um erro similar ao seguir: - </para> - -<example> -<title>Erros do Smarty</title> -<programlisting> -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041</programlisting> -</example> - - <para> - O Smarty te mostra o nome do template, o número da linha e o erro. - Depois disso, o erro consiste do número da linha da classe Smarty em que o erro - ocorreu. - </para> - - <para> - Há certos erros que o Smarty não consegue detectar, tais como uma tag de fechamento errada. - Estes tipos de erro geralmente acabam gerando erros em tempo de processamento do interpretador - de erros do PHP. - </para> - -<example> -<title>Erros de análise do PHP</title> -<programlisting> -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75</programlisting> -</example> - - <para> - Quando você encontra um erro de análise do PHP, o número da linha do erro corresponderá ao - script PHP compilado, não o template em si. Normalmente você pode no template localizar o - erro de sintaxe. Aqui algumas coisas para você procurar: - falta de fechamento de tags para <link linkend="language.function.if">{if}{/if}</link> ou - <link linkend="language.function.section">{section}{/section}</link>, ou erro de lógica dentro de uma tag {if}. - Se você não conseguir encontrar o erro, talvez seja necessário abrir - o arquivo PHP compilado e ir até o número da linha exibido, para saber - onde se encontra o erro correspondente no template. - </para> - -<example> - <title>Other common errors</title> - - <itemizedlist> - <listitem> - <screen> -<![CDATA[ -Warning: Smarty error: unable to read resource: "index.tpl" in... -or -Warning: Smarty error: unable to read resource: "site.conf" in... -]]> - </screen> - <para> - <itemizedlist> - <listitem> - <para> - The <link linkend="variable.template.dir">$template_dir</link> - is incorrect, doesn't exist or - the file <filename>index.tpl</filename> is not in the - <filename class="directory">templates/</filename> directory - </para> - </listitem> - <listitem> - <para> - A <link linkend="language.function.config.load">{config_load}</link> - function is within a template (or - <link linkend="api.config.load">config_load()</link> - has been called) and either - <link linkend="variable.config.dir">$config_dir</link> - is incorrent , does not exist or - <filename>site.conf</filename> is not in the directory. - </para> - </listitem> - - </itemizedlist> - </para> - - </listitem> - <listitem> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, -or is not a directory... -]]> - </screen> - <para> - Either the - <link linkend="variable.compile.dir">$compile_dir</link> - is incorrectly set, the directory does not exist, - or <filename>templates_c</filename> is a - file and not a directory. - </para> - </listitem><listitem> - <screen> - <![CDATA[ - Fatal error: Smarty error: unable to write to $compile_dir '.... - ]]> - </screen> - <para> - The <link linkend="variable.compile.dir">$compile_dir</link> - is not writable by the web server. See the bottom of the - <link linkend="installing.smarty.basic">installing smarty</link> page - for permissions. - </para> - - </listitem><listitem> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $cache_dir 'cache' does not exist, -or is not a directory. in /.. -]]> - </screen> - <para> - This means that - <link linkend="variable.caching">$caching</link> is enabled and either; - the - <link linkend="variable.cache.dir">$cache_dir</link> - is incorrectly set, the directory does not exist, - or <filename>cache</filename> is a - file and not a directory. - </para> - - </listitem><listitem> - - <screen> - <![CDATA[ - Fatal error: Smarty error: unable to write to $cache_dir '/... - ]]> - </screen> - <para> - This means that - <link linkend="variable.caching">$caching</link> is enabled and the - <link linkend="variable.cache.dir">$cache_dir</link> - is not writable by the web server. See the bottom of the - <link linkend="installing.smarty.basic">installing smarty</link> page - for permissions. - </para> - </listitem> - </itemizedlist> - </example> - - <para> - See also - <link linkend="chapter.debugging.console">debugging</link>, - <link linkend="variable.error.reporting">$error_reporting</link> - and - <link linkend="api.trigger.error">trigger_error()</link>. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/bookinfo.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.9 Maintainer: nobody Status: ready --> - <bookinfo id="bookinfo"> - <title>Smarty - a ferramenta para compilar templates para PHP</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname><surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Andrei</firstname><surname>Zmievski <andrei@php.net></surname> - </author> - </authorgroup> - <authorgroup id="translators"> - <author> - <firstname>Fernando</firstname><surname>Correa da Conceição <fernandoc@php.net></surname> - </author> - <author> - <firstname>Marcelo</firstname><surname>Perreira Fonseca da Silva <marcelo@php.net></surname> - </author> - <author> - <firstname>Taniel</firstname><surname>Franklin <taniel@ig.com.br></surname> - </author> - <author> - <firstname>Thomas</firstname><surname>Gonzalez Miranda <thomasgm@php.net></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2005</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/chapter-debugging-console.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <chapter id="chapter.debugging.console"> - <title>Debugging Console</title> - <para> - Há um console para debug incluso no Smarty. O console informa à você todos - os templates incluídos, variáveis definidas e variáveis de arquivos de - configuração do template atual. Um template chamado "debug.tpl" está - incluso com a distribuição do Smarty o qual controla a formtação do console. - Defina a variável $debugging para true no Smarty, e se necessário defina - $debug_tpl com o caminho do diretório onde está o arquivo debug.tpl (o diretório padrão - é o da constante SMARTY_DIR). Quando você carrega uma página, um javascript abre uma - janela pop-up e fornece à você o nome de todos os templates incluídos e variáveis definidas - ara a página atual. Para ver as variáveis disponíveis para um template específico, - veja a função <link linkend="language.function.debug">{debug}</link>. Para desabilitar - o console de debug, defina a variável $debugging para false. Você também pode ativar - temporariamente o console de debug colocando na URL, caso você tenha ativado esta opção - na variável <link linkend="variable.debugging.ctrl">$debugging_ctrl</link>. - </para> - <note> - <title>Nota Técnica</title> - <para> - O console de debug não funciona quando você usa a API fetch(), - somente quando você estiver usando display(). Isto é um conjunto de comandos - em javascript adicionados ao final do template gerado. Se você não gosta de javascript, - você pode editar o template debug.tpl para exibir saída no formato que você quiser. - Dados do debug não são armazenados em cache e os dados do debug.tpl não são - inclusos no console de debug. - </para> - </note> - <note> - <para> - O tempo de carregamento de cada template e arquivo de configuração são exibidos em - segundos, ou então frações de segundo. - </para> - </note> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/config-files.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <chapter id="config.files"> - <title>Arquivos de Configuração</title> - <para> - Arquivos de configuração são úteis para designers que gerenciam variáveis globais - para os templates à partir de um arquivo. Um exemplo são as cores do template. - Normalmente se você quisesse mudar o tema de cores de uma aplicação, você teria - que abrir cada arquivo de template e alterar as cores. Com arquivos de configurações, - as cores podem ser armazenadas em um lugar, e apenas um arquivo precisaria ser alterado. - </para> - <example> - <title>Exemplo de sintaxe de um arquivo de configuração</title> - <programlisting> -<![CDATA[ -# variáveis globais -tituloPagina = "Menu Principal" -corfundoPagina = #000000 -corfundoTabela = #000000 -corlinhaTabela = #00ff00 - -[Consumidor] -tituloPagina = "Informações do Consumidor" - -[Login] -tituloPagina = "Login" -focus = "nomeusuario" -Intro = """Este é um valor que ultrapassa uma - linha. Você deve colocá-lo - dentre três aspas.""" - -# seção invisível -[.BancoDeDados] -host=meu.dominio.com -bd=LIVRODEVISITAS -usuario=usuario-php -senha=foobar -]]> -</programlisting> - </example> - <para> - Valores de variáveis de arquivos de configuração pode estar entre aspas, - mas não é necessário. Você pode usar tanto aspas simples como duplas. - Se você tiver um valor que ocupe mais de uma linha, coloque-o dentre três aspas - ("""). Você pode colocar comentários em arquivos de configuração com qualquer - sintaxe que não é válida para um arquivo de configuração. Nós recomendamos usar um - <literal>#</literal> (cancela) no início de cada linha que contém o comentário. - </para> - <para> - Este arquivo de configuração tem duas seções. Nomes de seções devem estar entre conchetes []. - Nomes de seção podem ser string arbritraria que não contenham os símbolos - <literal>[</literal> ou <literal>]</literal>. As quatro variáveis no topo são variáveis globais, - ou variáveis que não pertencem à uma seção. Estas variáveis sempre são carregadas do arquivo de - configuração. Se uma seção em particular é carregada, então as variáveis globais e as variáveis - desta seção também são carregadas. Se uma variável de seção e global já existirem, - a variável de seção será utilizada. Se você tiver duas variáveis na mesma seção com o mesmo nome, - a última será utilizada. - </para> - <para> - Arquivos de configuração são carregados no template usando a função embutida <command>config_load</command>. - </para> - <para> - Você pode esconder as variáveis ou uma seção inteira colocando um ponto - antes do nome da seção ou variávei. Isso é útil em casos no qual sua aplicação lê - arquivos de configuração e obtém dados sensíveis que não são necessários para o sistema - de templates. Se a edição de seus templates é terceirizada, você terá certeza que eles não - irão ler os dados sensíveis do arquivo de configuração que é carregado no template. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: thomasgm Status: ready --> - <chapter id="language.basic.syntax"> - <title>Sintaxe Básica</title> - <para> - Todas as tags de template do Smarty contém delimitadores. Por padrão, - estes delimitadores são <literal>{</literal> e <literal>}</literal>, - mas eles podem ser alterados. - </para> - <para> - Para os exemplos à seguir, nós assumiremos que você está usando os delimitadores - padrão. Para o Smarty, todo o conteúdo fora dos delimitadores é mostrado como - conteúdo estático, ou inalterável. Quando o Smarty encontra tags de template, - ele tenta interpretá-las, e então mostra a saída apropriada em seu lugar. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.7 Maintainer: fernandoc Status: ready --> - -<sect1 id="language.escaping"> - <title>Escapando da interpretação do Smarty</title> - <para> - Algumas vezes é desejável ou mesmo necessário fazer o Smarty ignorar sessões - que em outro caso ele interpretaria. Um exemplo classico é embutindo Javascript ou - código CSS no template. O problema aparece porque estas linguagens usam os - caracteres { e } que são os - <link linkend="language.function.ldelim">delimitadores</link> padrão para o Smarty. - </para> - - <para> - A coisa mais simples é evitar a situação em sí separando o seu código Javascript e - CSS nos seus próprios arquivos e então usar os métodos padrões do HTML para acessa-los. - </para> - - <para> - Incluir conteúdo literal é possível usando blocos <link - linkend="language.function.literal">{literal} .. {/literal}</link>. - De modo similar ao uso de entidades HTML, você pode usar <link - linkend="language.function.ldelim">{ldelim}</link>,<link - linkend="language.function.ldelim">{rdelim}</link> ou <link - linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link> - para mostrar os delimitadores atuais. - </para> - - <para> - As vezes é conveniente simplesmente mudar <link - linkend="variable.left.delimiter">$left_delimiter</link> e - <link linkend="variable.right.delimiter">$right_delimiter</link>. - </para> - <example> - <title>Exemplo de modificar os delimitadores</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - Aonde example.tpl é: - </para> - <programlisting> -<![CDATA[ -Welcome <!--{$name}--> to Smarty -<script language="javascript"> - var foo = <!--{$foo}-->; - function dosomething() { - alert("foo is " + foo); - } - dosomething(); -</script> -]]> - </programlisting> - </example> - <para> - Veja também <link linkend="language.modifier.escape">escape modifier</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.math"> - <title>Matemática</title> - <para> - Matemática pode ser aplicada diretamente aos valores de variáveis. - </para> - <example> - <title>Exemplos de matemática</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* alguns exemplos mais complicados *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.syntax.attributes"> - <title>Atributos</title> - <para> - A maioria das funções contém atributos que especificam ou modificam - o seu comportamento. Atributos para funções do Smarty são muito parecidos - com atributos da HTML. Valores estáticos não precisam ficar entre aspas, - mas recomenda-se usar aspas para strings literais. Variáveis também podem - ser usadas, e não precisam estar entre aspas. - </para> - <para> - Alguns atributos exigem valores booleanos (verdadeiro ou falso). Estes valores - podem ser especificados sem aspas <literal>true</literal>, - <literal>on</literal>, e <literal>yes</literal>, ou - <literal>false</literal>, <literal>off</literal>, e - <literal>no</literal>. - </para> - <example> - <title>Sintaxe de atributos de funções</title> - <programlisting> -<![CDATA[ -{include file="cabecalho.tpl"} - -{include file=$arquivoInclude} - -{include file=#arquivoInclude#} - -{html_select_date display_days=yes} - -<select name="empresa"> -{html_options values=$vals selected=$selected output=$output} -</select> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.syntax.comments"> - <title>Comentários</title> - <para> - Os comentários do template ficam entre asteriscos dentro de delimitadores, - exemplo: {* este é um comentário *}. Comentários do Smarty não são - exibidos no resultado final do template. Eles são usados para fazer - anotações internas nos templates. - </para> - <example> - <title>Comentários</title> - <programlisting> -<![CDATA[ -{* Smarty *} - -{* inclua o arquivo de cabeçalho aqui *} -{include file="cabecalho.tpl"} - -{include file=$arquivoInclude} - -{include file=#arquivoInclude#} - -{* mostra lista dropdown *} -<select name="empresa"> -{html_options values=$vals selected=$selected output=$output} -</select> -]]> -</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.syntax.functions"> - <title>Funções</title> - <para> - Cada tag Smarty mostra uma - <link linkend="language.variables">variável</link> ou utiliza algum tipo de - função. Funções são processadas e exibidas colocando-se a função e seus - atributos entre delimitadores, exemplo: {funcname attr1="val" attr2="val"}. - </para> - <example> - <title>Sintaxe de funções</title> - <programlisting> -<![CDATA[ -{config_load file="cores.conf"} - -{include file="cabecalho.tpl"} - -{if $enfase_nome} - Seja bem-vindo, <font color="{#corFonte#}">{$nome}!</font> -{else} - Seja bem-vindo, {$nome}! -{/if} - -{include file="rodape.tpl"} -]]> -</programlisting> - </example> - <para> - Ambas as funções internas e as funções personalizadas tem a mesma sintaxe nos - templates. Funções internas são o funcionamento do Smarty, - tais como <command>if</command>, <command>section</command> e - <command>strip</command>. Elas não podem ser modificadas. Funções personalizadas - são funções adicionais implementadas por modo de plugins. Elas podem ser modificadas - como você quiser, ou você pode adionar novas. <command>html_options</command> e - <command>html_select_date</command> são exemplos de funções personalizadas. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.syntax.quotes"> - <title>Colocando Variáveis em Aspas Duplas</title> - <para> - Smarty irá reconhecer variáveis definidas entre asplas duplas enquanto - as variáveis conterem apenas números, letras, sublinhados e conchetes []. - Com qualquer outro caractere (pontos, referência à objetos, etc.) a variável - deve estar entre apóstrofos. - </para> - <example> - <title>Sintaxe entre aspas</title> - <programlisting> -<![CDATA[ -EXEMPLOS DE SINTAXE: -{func var="teste $foo teste"} <-- mostra $foo -{func var="teste $foo_bar teste"} <-- mostra $foo_bar -{func var="teste $foo[0] teste"} <-- mostra $foo[0] -{func var="teste $foo[bar] teste"} <-- mostra $foo[bar] -{func var="teste $foo.bar teste"} <-- mostra $foo (e não $foo.bar) -{func var="teste `$foo.bar` teste"} <-- mostra $foo.bar - -EXEMPLOS PRÁTICOS: -{include file="subdir/$tpl_name.tpl"} <-- substitui $tpl_name pelo seu valor -{cycle values="one,two,`$smarty.config.myval`"} <-- deve conter apóstrofos -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.14 Maintainer: fernandoc Status: ready --> - -<sect1 id="language.syntax.variables"> - <title>Variables</title> - <para> - Vaiaveis do template começam com o sinal de $dollar. Elas podem conter números, - letras e sublinhados, parecido com - <ulink url="&url.php-manual;language.variables">variável PHP</ulink>. - Você pode referenciar arrays - pelo índice número ou não numérico. Também pode - referenciar propriedades e metodos de objetos.</para> - <para> - <link linkend="language.config.variables">Variáveis do arquivo de configuração</link> - são excessões a sintaxe de $dollar - e são ao invés referenciadas com #cancelas#, ou - via a variável - <link linkend="language.variables.smarty.config">$smarty.config</link>. - </para> - <example> - <title>Variáveis</title> - <programlisting> -<![CDATA[ -{$foo} <-- mostrando uma variável simples (não array/objeto) -{$foo[4]} <-- mostrando o quito elemento de uma array que começa em zero -{$foo.bar} <-- mostrando o valor da chave "bar" da array, similar ao PHP $foo['bar'] -{$foo.$bar} <-- display variable key value of an array, similar to PHP $foo[$bar] -{$foo->bar} <-- display the object property "bar" -{$foo->bar()} <-- display the return value of object method "bar" -{#foo#} <-- display the config file variable "foo" -{$smarty.config.foo} <-- synonym for {#foo#} -{$foo[bar]} <-- syntax only valid in a section loop, see {section} -{assign var=foo value='baa'}{$foo} <-- displays "baa", see {assign} - -Many other combinations are allowed - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passing parameters -{"foo"} <-- static values are allowed - -{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - </programlisting> - </example> - - <para>Variáveis de requisição como $_GET, $_SESSION etc estão disponíveis através - da variável reservada <emphasis role="bold"> - <link linkend="language.variables.smarty">$smarty</link></emphasis>. - </para> - - <para> - Veja também <link linkend="language.variables.smarty">Variáveis reservadas do $smarty</link>, - <link linkend="language.config.variables">Variáveis da Configuração</link> - <link linkend="language.function.assign">{assign}</link> - e - <link linkend="api.assign">assign()</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: thomasgm Status: ready --> -<chapter id="language.builtin.functions"> - <title>Funções internas</title> - <para> - O Smarty contém várias funções internas. Funções internas são parte integral - da linguagem de template. Você não pode criar funções personalizadas com o - mesmo nome de uma função interna, e também não pode modificar funções internas. - </para> - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.capture"> - <title>capture</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>default</emphasis></entry> - <entry>O nome do bloco capturado</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>O nome da variável para dar o valor da saída capturada</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - capture é usado para coletar toda a saída do template em uma variável ao invés - de mostra-lo. Qualquer conteúdo entre {capture - name="foo"} e {/capture} coletado na variável especificada no atributo name. - O conteúdo capturado pode ser usado no template a partir da variável especial - $smarty.capture.foo aonde foo é o valor passado para o atributo name. Se você não - passar um atributo name, então será usado "default". Todos os comandos - {capture} devem ter o seu {/capture}. Você pode aninhar(colocar um dentro de outro) - comandos capture. - </para> - <note> - <title>Nota Tecnica</title> - <para> - Smarty 1.4.0 - 1.4.4 coloca o conteúdo capturado dentro da variável - chamada $return. A partir do 1.4.5, este funcionamento foi mudado - para usar o atributo name, então atualize os seus templates de acordo. - </para> - </note> - <caution> - <para> - Tenha cuidado quando capturar a saída do comando <command>insert</command>. - Se você tiver o cache em on e você tiver comandos <command>insert</command> - que você espera que funcione com conteúdo do cache, - não capture este conteúdo. - </para> - </caution> - <para> - <example> - <title>capturando conteúdo do template</title> - <programlisting> -<![CDATA[ -{* nós não queremos mostrar uma linha de tabela à não ser que haja conteúdo para ela *} -{capture name=banner} -{include file="pegar_banner.tpl"} -{/capture} -{if $smarty.capture.banner ne ""} - <tr> - <td> - {$smarty.capture.banner} - </td> - </tr> -{/if} -]]> -</programlisting> - </example> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.config.load"> - <title>config_load</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome do arquivo de configuração para incluir</entry> - </row> - <row> - <entry>section</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da seção a carregar</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - Como o escopo das variáveis carregadas é tratado, - o qual deve ser um entre local, parent ou global. local - indica que as variáveis são carregadas no contexto do - template local apenas. parent indica que as variáveis são carregadas - no contexto atual e no template que o chamou. global indica - que as variáveis estão - disponíveis para todos os templates. - </entry> - </row> - <row> - <entry>global</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry><emphasis>No</emphasis></entry> - <entry> - Quando ou não as variáveis são visiveis para o template - superior(aquele que chamou este), o mesmo que scope=parent. - NOTA: este atributo esta obsoleto devido ao atributo scope, mas - ainda é suportado. Se scope for indicado, este valor é ignorado. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Esta função é usada para carregar as variáveis de um arquivo de configuração - dentro de um template. Veja <link linkend="config.files">Arquivos de Configuração</link> - para mais informações. - </para> -<example> -<title>Função config_load</title> - -<programlisting> -<![CDATA[ -{config_load file="cores.conf"} - -<html> -<title>{#tituloPagina#}</title> -<body bgcolor="{#cordeFundo}"> -<table border="{#tamanhoBordaTabela}" bgcolor="{#cordeFundotabela#}"> - <tr bgcolor="{#cordeFundoLinha#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> -</programlisting> -</example> - <para> - Arquivos de configuração podem conter seções também. Você pode carregar - variáveis de uma seção adicionando o atributo - <emphasis>section</emphasis>. - </para> - <para> - NOTA: <emphasis>Config file sections</emphasis> e a função embutida de - template <emphasis>section</emphasis> não tem nada a ver um com o outro, - eles apenas tem uma mesma - convenção de nomes. - </para> -<example> -<title>Função config_load com seções</title> -<programlisting> -<![CDATA[ -{config_load file="cores.conf" section="Consumidor"} - -<html> -<title>{#tituloPagina#}</title> -<body bgcolor="{#cordeFundo}"> -<table border="{#tamanhoBordaTabela}" bgcolor="{#cordeFundotabela#}"> - <tr bgcolor="{#cordeFundoLinha#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> -</table> -</body> -</html> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,204 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.foreach"> - <title>foreach,foreachelse</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>from</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da matriz que você estará pegando os elementos</entry> - </row> - <row> - <entry>item</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da variável - que é o elemento atual</entry> - </row> - <row> - <entry>key</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da variável que é a chave atual</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome do loop foreach para acessar as - propriedades foreach</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Loops <emphasis>foreach</emphasis> são uma alternativa para loops - <emphasis>section</emphasis>. <emphasis>foreach</emphasis> é usado - para pegar cada elemento de uma matriz associativa simples. - A sintaxe para <emphasis>foreach</emphasis> é muito mais simples do que - <emphasis>section</emphasis>, mas tem a desvantagem de poder ser usada - apenas para uma única matriz. Tags <emphasis>foreach</emphasis> devem ter - seu par <emphasis>/foreach</emphasis>. Os parâmetros requeridos são - <emphasis>from</emphasis> e <emphasis>item</emphasis>. O nome do loop - foreach pode ser qualquer coisa que você queira, feito de letras, números - e sublinhados. Loops <emphasis>foreach</emphasis> - podem ser aninhados, e o nome dos loops aninhados devem ser diferentes - um dos outros. A variável <emphasis>from</emphasis> (normalmente uma - matriz de valores) determina o número de vezes do loop - <emphasis>foreach</emphasis>. - <emphasis>foreachelse</emphasis> é executado quando não houverem mais valores - na variável <emphasis>from</emphasis>. - </para> -<example> -<title>foreach</title> -<programlisting> -<![CDATA[ -{* este exemplo irá mostrar todos os valores da matriz $custid *} -{foreach from=$custid item=curr_id} - id: {$curr_id}<br> -{/foreach} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -id: 1000<br> -id: 1001<br> -id: 1002<br> -]]> -</programlisting> -</example> - -<example> -<title>foreach key</title> -<programlisting> -<![CDATA[ -{* A key contém a chave para cada valor do loop - -A definição se parece com isso: - -$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), - array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); - -*} - -{foreach name=outer item=contact from=$contacts} - {foreach key=key item=item from=$contact} - {$key}: {$item}<br> - {/foreach} -{/foreach} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -phone: 1<br> -fax: 2<br> -cell: 3<br> -phone: 555-4444<br> -fax: 555-3333<br> -cell: 760-1234<br> -]]> -</programlisting> -</example> - - <para> - Loop foreach também tem as suas próprias variáveis para manipilar as propriedades - foreach. Estas são indicadas assim: {$smarty.foreach.foreachname.varname} com - foreachname sendo o nome especificado no atributo - <emphasis>name</emphasis> do foreach. - </para> - - - <sect2 id="foreach.property.iteration"> - <title>iteration</title> - <para> - iteration é usado para mostrar a interação atual do loop. - </para> - <para> - Iteration sempre começa em 1 e - é incrementado um a um em cada interação. - </para> - </sect2> - - <sect2 id="foreach.property.first"> - <title>first</title> - <para> - <emphasis>first</emphasis> é definido como true se a interação atual - do foreach for a primeira. - </para> - </sect2> - - <sect2 id="foreach.property.last"> - <title>last</title> - <para> - <emphasis>last</emphasis> é definido como true se a interação atual - do foreach for a última. - </para> - </sect2> - - <sect2 id="foreach.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> é usado como parâmetro para o foreach. - <emphasis>show</emphasis> é um valor booleano, true ou false. Se - false, o foreach não será mostrado. Se tiver um foreachelse - presente, este será alternativamente mostrado. - </para> - - </sect2> - <sect2 id="foreach.property.total"> - <title>total</title> - <para> - <emphasis>total</emphasis> é usado para mostrar o número de interações do - foreach. Isto pode ser usado dentro ou depois do foreach. - </para> - </sect2> - - - - - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,219 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.if"> - <title>if,elseif,else</title> - <para> - Comandos {if} no Smarty tem muito da mesma flexibilidade do php, - com algumas características à mais para o sistema de template. - Todo <emphasis>if</emphasis> deve ter o seu - <emphasis>/if</emphasis>. <emphasis>else</emphasis> e - <emphasis>elseif</emphasis> também são permitidos. Todos os - condicionais do PHP são reconhecidos, tais como ||, or, &&, and, etc. - </para> - - <para> - A seguir está uma lsita dos qualificadores, que devem estar separados dos elementos - por espaço. Note que itens listado entre [conchetes] são opcionais. Os equivalentes - em PHP são mostrados quando aplicáveis. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="example" /> - <colspec colname="meaning" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Qualificador</entry> - <entry>Alternativas</entry> - <entry>Exemplo de sintaxe</entry> - <entry>Significado</entry> - <entry>Equivalente no PHP</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>iguais</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>não iguais</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>maior que</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>menor que</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>maior ou igual à</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>menor ou igual à</entry> - <entry><=</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>negação (unary)</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>módulo</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>divisível por</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>[not] an even number (unary)</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>grouping level [not] even</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>[not] an odd number (unary)</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>[not] an odd grouping</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> -<example> -<title>comandos if</title> -<programlisting> -<![CDATA[ -{if $name eq "Fred"} - Welcome Sir. -{elseif $name eq "Wilma"} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* um exemplo com "or" *} -{if $name eq "Fred" or $name eq "Wilma"} - ... -{/if} - -{* o mesmo que acima *} -{if $name == "Fred" || $name == "Wilma"} - ... -{/if} - -{* a seguinte sintaxe não irá funcionar, qualificadores de condição - devem estar separados dos elementos em torno por espaços *} -{if $name=="Fred" || $name=="Wilma"} - ... -{/if} - - -{* parenteses são permitidos *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* você pode também colocar funções php *} -{if count($var) gt 0} - ... -{/if} - -{* testa se o valor é par ou impar *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* verifica se a variável é divisível por 4 *} -{if $var is div by 4} - ... -{/if} - -{* test if var is even, grouped by two. i.e., -0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.include.php"> - <title>include_php</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>O nome do arquivo php a incluir</entry> - </row> - <row> - <entry>once</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Quando incluir ou não o arquivo php mais de uma vez se - incluído várias vezes</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>O nome da variável - que receberá a saída do arquivo php</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <note> - <title>Nota Técnica</title> - <para> - include_php está quase sendo retirado do Smarty, você pode obter a mesma funcionalidade - usando uma função customizada em um template. A única razão para usar o include_php é - se você realmente precisar deixar função php fora do diretório de plugin ou código da - sua aplicação. Veja a seção - <link linkend="tips.componentized.templates">templates componentizados</link> - para mais detalhes. - </para> - </note> - <para> - Tags include_php são usadas para incluir um script php no seu template. - Se a segurança estiver ativada, então o script php deve estar localizado - no diretório especificado na variável $trusted_dir. A tag include_php - deve ter o atributo "file", o qual contém o caminho para o arquivo php - incluído, pode ser um camiho tanto absoluto ou relativo a $trusted_dir. - </para> - <para> - include_php é um bom meio de manipular templates componentizados, - e manter o código PHP separado dos arquivos de template. Digamos - que você tenha um template que mostre a navegação do seu site, o qual - é preenchido automaticamente a partir de um banco de dados. Você pode - manter a sua lógica PHP que obtém os dados em um diretório separado, - e inclui-la no topo do template. Agora você pode incluir este template - em qualquer lugar sem se preocupar se a informação do banco de dados foi - obtida antes de usar. - </para> - <para> - Por padrão, os arquivos php são incluídos apenas uma vez mesmo - se incluídos várias vezes no template. Você pode especificar que ele - seja incluído todas as vezes com o atributo <emphasis>once</emphasis>. - Definindo once para false irá incluir o script php a cada vez que - ele seja incluído no template. - </para> - <para> - Você pode opcionalmente passar o atributo <emphasis>assign</emphasis>, - o qual irá especificar uma variável de template a qual irá conter - toda a saída de - <emphasis>include_php</emphasis> em vez de mostra-la. - </para> - <para> - O objeto smarty esta disponível como $this dentro do - script php que você incluiu. - </para> -<example> -<title>Função include_php</title> -<programlisting> -<![CDATA[ -load_nav.php -------------- - -<?php - - // carrega variáveis de um banco de dados mysql e define elas para o template - require_once("MySQL.class.php"); - $sql = new MySQL; - $sql->query("select * from site_nav_sections order by name",SQL_ALL); - $this->assign('sections',$sql->record); - -?> - - -index.tpl ---------- - -{* caminho absoluto ou relativo a $trusted_dir *} -{include_php file="/caminho/para/load_nav.php"} - -{foreach item="curr_section" from=$sections} - <a href="{$curr_section.url}">{$curr_section.name}</a><br> -{/foreach} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.include"> - <title>include</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome do arquivo de template a incluir</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome de uma variável que irá - conter toda a saída do template</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Variável para passar localmente para o template</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Tags include são usadas para incluir outros templates no template - atual. Quaisquer variáveis disponíveis no template atual também estarão - disponíveis junto com template incluído. A tag include deve ter o atributo - "file", o qual contém o caminho do arquivo a incluir. - </para> - <para> - Você pode opcionalmente passar o atributo <emphasis>assign</emphasis>, - o qual irá especificar o nome de uma variável de template para a qual - conterá todo o conteúdo do <emphasis>include</emphasis> ao - invés de mostrá-lo. - </para> -<example> -<title>function include</title> -<programlisting> -<![CDATA[ -{include file="cabecalho.tpl"} - -{* O conteúdo do template vem aqui *} - -{include file="rodape.tpl"} -]]> -</programlisting> -</example> - <para> - Você pode também passar variáveis para o template incluído como atributos. - Quaisquer variáveis passadas para um template incluído como atributos - estão disponíveis somente dentro do escopo do template incluído. - As variáveis passadas como atributos sobrescrevem as variáveis de - template atuais, no caso de ambas terem o mesmo nome. - </para> -<example> -<title>Função include passando variáveis</title> -<programlisting> -<![CDATA[ -{include file="cabecalho.tpl" title="Menu Principal" table_bgcolor="#c0c0c0"} - -{* O conteúdo de template vem aqui *} - -{include file="rodape.tpl" logo="http://meu.dominio.com/logo.gif"} -]]> -</programlisting> -</example> - <para> - Use a sintaxe de <link - linkend="template.resources">template resources</link> para - incluir arquivos fora do diretório $template_dir. - </para> -<example> -<title>Exemplos de recursos para a função include</title> -<programlisting> -<![CDATA[ -{* caminho absoluto *} -{include file="/usr/local/include/templates/cabecalho.tpl"} - -{* caminho absoluto (idem) *} -{include file="file:/usr/local/include/templates/cabecalho.tpl"} - -{* caminho absoluto do windows (DEVE usar o prefixo "file:") *} -{include file="file:C:/www/pub/templates/cabecalho.tpl"} - -{* incluir a partir do recurso de template chamado "db" *} -{include file="db:header.tpl"} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,147 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.insert"> - <title>insert</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da função insert (insert_name)</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da variável que - irá receber a saída</entry> - </row> - <row> - <entry>script</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome de um script php que será incluido - antes que a função insert seja chamada</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Variável para passar para a função insert</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Tags insert funcionam parecido com as tags include, exceto que as tags - insert não vão para o cache quando <link - linkend="caching">caching</link> esta ativado. Ela será - executada a cada invocação do template. - </para> - <para> - Digamos que você tenha um template com um banner no topo da página. O - banner pode conter uma mistura de html, imagens, flash, etc. - Assim nós não podemos usar um link estatico aqui, e nós não - queremos que este conteúdo fique no cache junto com a página. E aí que entra a tag - insert: o template conhece os valores #banner_location_id# e - #site_id# (obtidos de um arquivo de configuração), e precisa chamar - uma função para obter o conteúdo do banner. - </para> -<example> -<title>função insert</title> -<programlisting> -{* exemplo de como obter um banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#}</programlisting> -</example> - <para> - Neste exemplo, nós estamos usando o nome "getBanner" e passando os parâmetros - #banner_location_id# e #site_id#. O Smarty irá procurar por uma função chamada - insert_getBanner() na sua aplicação PHP, passando os valores de - #banner_location_id# e #site_id# como primeiro argumento em uma - matriz associativa. Todos os nomes de função insert em sua - aplicação devem ser precedidas por "insert_" para prevenir possíveis - problemas com nomes de funções repetidos. Sua função insert_getBanner() - deve fazer alguma coisa com os valores passados e retornar os resultados. - Estes resultados são mostrados no template no lugar da tag insert. - Neste exemplo, o Smarty irá chamar esta função: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - e mostrar o resultado retornado no lugar da tag insert. - </para> - <para> - Se você passar o atributo "assign", a saída da tag insert será - dada para esta variável ao invés de ser mostrada - no template. - </para> - <note> - <title>Nota</title> - <para> - definir a saída para uma variável não é - útil quando o cache esta ativo. - </para> - </note> - <para> - Se você passar o atributo "script", este script php será incluido - (apenas uma vez) antes da execução da função insert. Este - é o caso onde a função insert não existe ainda, e um script - php deve ser incluído antes para faze-la funcionar. O caminho pode - ser absoluto ou relativo à variável $trusted_dir. Quando a segurança esta - ativada, o script deve estar no local definido na variável $trusted_dir. - </para> - <para> - O objeto Smarty é passado como segundo argumento. Deste modo - você pode refenciar o objeto Smarty - de dentro da função. - </para> - <note> - <title>Nota Tecnica</title> - <para> - É possível ter partes do template fora do cache. - se você tiver <link linkend="caching">caching</link> - ativado, tags insert não estarão no cache. Ela será executada - dinamicamente a cada vez que a página seja criada, mesmo com - páginas em cache. Isto funciona bem para coisas como banners, pesquisa, - previsões do tempo, resultados de pesquisa, áreas de opnião do usuário, etc. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.ldelim"> - <title>ldelim,rdelim</title> - <para> - ldelim e rdelim são usados para mostrar os delimitadores de templates literalmente, - no nosso caso "{" ou "}". Ou você pode usar {literal}{/literal} para - interpretar blocos de texto literalmente. Veja também {$smarty.ldelim} e {$smarty.rdelim} - </para> -<example> -<title>ldelim, rdelim</title> -<programlisting> -<![CDATA[ -{* isto fará com que os delimitadores de template sejam tratados literalmente *} - -{ldelim}funcname{rdelim} é como a função aparecer no Smarty! -]]> -</programlisting> -<para>O exemplo acima exibirá:</para> -<programlisting> -<![CDATA[ -{funcname} é como a função aparecer no Smarty -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.literal"> - <title>literal</title> - <para> - Tags literal permitem que um bloco de dados seja tratado literalmente, ou seja, - não é interpretado pelo Smarty. Isto é tipicamente usado com blocos de código - javascript ou folhas de estilo (stylesheet), que às vezes contém chaves - que podem entrar em conflito com o delimitador de sintaxe. Qualquer coisa entre - {literal}{/literal} não é interpretado, mas é mostrado. Se você precisa que - tags de templates sejam embutidas em um bloco literal, use {ldelim}{rdelim}. - </para> -<example> -<title>Tags literal</title> -<programlisting> -<![CDATA[ -{literal} - <script language=javascript> - - <!-- - function isblank(field) { - if (field.value == '') - { return false; } - else - { - document.loginform.submit(); - return true; - } - } - // --> - - </script> -{/literal} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.php"> - <title>php</title> - <para> - Tags php permitem que códigos php sejam embutidos diretamente nos templates. - Eles não serão interpretados, não importando a definição de - <link linkend="variable.php.handling">$php_handling</link>. Esta opção é - somente para usuários avançados e normalmente não é necessária. - </para> -<example> -<title>Tags php</title> -<programlisting> -<![CDATA[ -{php} - // incluindo um script php - // diretamente no template. - include("/caminho/para/condicoes_do_tempo.php"); -{/php} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,629 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.section"> - <title>section,sectionelse</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da seção</entry> - </row> - <row> - <entry>loop</entry> - <entry>[$variable_name]</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O nome da variável para determinar o - número de interações</entry> - </row> - <row> - <entry>start</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>0</emphasis></entry> <entry>A posição - do índice que a seção vai começar. Se o valor - é negativo, a posição de inicio é calculada a partir - do final da matriz. Por exemplo, se houverem - sete valores na matriz e 'start' for -2, o - índice inicial é 5. Valores inválidos (valores fora do - tamanho da matriz) são automaticamente corrigidos - para o valor válido mais próximo.</entry> - </row> - <row> - <entry>step</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>1</emphasis></entry> - <entry>O valor do passo que será usado para percorrer - a matriz. Por exemplo, step=2 irá percorrer - os índices 0,2,4, etc. Se step for negativo, ele irá caminhar - pela matriz de trás para frente.</entry> - </row> - <row> - <entry>max</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Define o número máximo de loops - para a section.</entry> - </row> - <row> - <entry>show</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Determina quando mostrar ou não esta section</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Os 'sections' de template são usados para percorrer os dados de uma matriz. - Todas as tags <emphasis>section</emphasis> devem ser finalizadas com <emphasis>/section</emphasis>. - Os parâmetros obrigatórios são <emphasis>name</emphasis> e <emphasis>loop</emphasis>. - O nome da 'section' pode ser o que você quiser, contendo letras, números e sublinhados. - As 'sections' podem ser aninhadas, e os nomes das sections devem ser únicos. A variável - 'loop' (normalmente uma matriz de valores) determina o número de vezes que a section - será percorrida. Quando estiver exibindo uma variável dentro de uma section, - o nome da section deve estar ao lado da variável dentro de conchetes []. - <emphasis>sectionelse</emphasis> é executado quando não houver valores na - variável 'loop'. - </para> -<example> -<title>section</title> -<programlisting> -<![CDATA[ -{* este exemplo irá mostrar todos os valores da matriz $custid *} -{section name=consumidor loop=$custid} - id: {$custid[consumidor]}<br> -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -id: 1000<br> -id: 1001<br> -id: 1002<br> -]]> -</programlisting> -</example> - -<example> -<title>loop de variável section</title> -<programlisting> -<![CDATA[ -{* a variável 'loop' somente determina o número de vezes que irá percorrer a matriz. - Você pode acessar qualquer variável do template dentro da section. - Este exemplo assume que $custid, $nome e $endereco são todas - matrizes contendo o mesmo número de valores *} - -{section name=consumidor loop=$custid} - id: {$custid[consumidor]}<br> - nome: {$nome[consumidor]}<br> - endereço: {$endereco[customer]}<br> - <p> -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -id: 1000<br> -nome: John Smith<br> -endereço: 253 N 45th<br> -<p> -id: 1001<br> -nome: Jack Jones<br> -endereço: 417 Mulberry ln<br> -<p> -id: 1002<br> -nome: Jane Munson<br> -endereço: 5605 apple st<br> -<p> -]]> -</programlisting> -</example> - -<example> -<title>Nomes de section</title> -<programlisting> -<![CDATA[ -{* o nome da seção pode ser o que você qusier, - e é usado para referenciar os dados contido na seção *} - -{section name=meusdados loop=$custid} - id: {$custid[meusdados]}<br> - nome: {$nome[meusdados]}<br> - endereço: {$endereco[meusdados]}<br> - <p> -{/section} -]]> -</programlisting> -</example> - -<example> -<title>sections aninhadas</title> -<programlisting> -<![CDATA[ -{* sections podem ser aninhadas até o nível que você quiser. Com sections aninhadas, - você pode acessar complexas estruturas de dados, tais como matrizes multi-dimensionais. - Neste exemplo, $contact_type[customer] é uma matriz contendo os tipos de contatos - do consumidor atualmente selecionado. *} - -{section name=customer loop=$custid} - id: {$custid[customer]}<br> - name: {$name[customer]}<br> - address: {$address[customer]}<br> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br> - {/section} - <p> -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -id: 1000<br> -name: John Smith<br> -address: 253 N 45th<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: john@mydomain.com<br> -<p> -id: 1001<br> -name: Jack Jones<br> -address: 417 Mulberry ln<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jack@mydomain.com<br> -<p> -id: 1002<br> -name: Jane Munson<br> -address: 5605 apple st<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jane@mydomain.com<br> -<p> -]]> -</programlisting> -</example> - -<example> -<title>sections e matrizes associativas</title> -<programlisting> -<![CDATA[ -{* Este é um exemplo de exibição de uma matriz associativa - dentro de uma seção *} - -{section name=consumidor loop=$contatos} - nome: {$contatos[consumidor].nome}<br> - telefone: {$contatos[consumidor].telefone}<br> - celular: {$contatos[consumidor].celular}<br> - e-mail: {$contatos[consumidor].email}<p> -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -name: John Smith<br> -home: 555-555-5555<br> -cell: 555-555-5555<br> -e-mail: john@mydomain.com<p> -name: Jack Jones<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jack@mydomain.com<p> -name: Jane Munson<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jane@mydomain.com<p> -]]> -</programlisting> -</example> - - - -<example> -<title>sectionelse</title> -<programlisting> -<![CDATA[ -{* sectionelse irá executar se não houverem mais valores em $custid *} - -{section name=consumidor loop=$custid} - id: {$custid[consumidor]}<br> -{sectionelse} - não há valores em $custid. -{/section} -]]> -</programlisting> -</example> - <para> - Sections também tem as suas próprias variáveis que manipulam as propriedades da section. - Estas são indicadas assim: {$smarty.section.nomesection.nomevariavel} - </para> - <note> - <title>Nota</title> - <para> - A partir do Smarty 1.5.0, a sintaxe para as variáveis de propriedades da section - mudou de {%nomesecao.nomevariavel%} para {$smarty.section.nomesection.nomevariavel}. A - sintaxe antiga ainda é suportada, mas você verá referências somente à nova sintaxe no - manual. - </para> - </note> - <sect2 id="section.property.index"> - <title>index</title> - <para> - index é usado para mostrar o índice atual do loop, começando em zero - (ou pelo atributo start caso tenha sido definido), e incrementado por um - (ou pelo atributo step caso tenha sido definido). - </para> - <note> - <title>Nota Técnica:</title> - <para> - Se as propriedades 'start' e 'step' da section não foram modificadas, - elas irão funcionar da mesma maneira que a propriedade 'interation' da - section funcionam, exceto que ela começa do 0 ao invés de 1. - </para> - </note> - <example> - <title>propriedade index da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {$smarty.section.consumidor.index} id: {$custid[consumidor]}<br> -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -0 id: 1000<br> -1 id: 1001<br> -2 id: 1002<br> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.index.prev"> - <title>index_prev</title> - <para> - index_prev é usado para mostrar o índice anterior do loop. - No primeiro loop, o valor dele é -1. - </para> - <example> - <title>propriedade index_prev da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {$smarty.section.consumidor.index} id: {$custid[consumidor]}<br> - {* Para sua informação, $custid[consumidor.index] e $custid[consumidor] tem o mesmo significado *} - {if $custid[consumidor.index_prev] ne $custid[consumidor.index]} - O id do consumidor irá mudar<br> - {/if} -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -0 id: 1000<br> - O id do consumidor irá mudar<br> -1 id: 1001<br> - O id do consumidor irá mudar<br> -2 id: 1002<br> - O id do consumidor irá mudar<br> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.index.next"> - <title>index_next</title> - <para> - index_next é usado para mostrar o próximo indice do loop. No último loop, - isto ainda é um mais o índice atual( respeitando a definição - do atributo step, caso tenha sido definido.) - </para> - <example> - <title>propriedade index_next section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {$smarty.section.consumidor.index} id: {$custid[consumidor]}<br> - {* Para sua informação, $custid[consumidor.index] e $custid[consumidor] tem o mesmo significado *} - {if $custid[consumidor.index_next] ne $custid[consumidor.index]} - O id do consumidor irá mudar<br> - {/if} -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -0 id: 1000<br> - O id do consumidor irá mudar<br> -1 id: 1001<br> - O id do consumidor irá mudar<br> -2 id: 1002<br> - O id do consumidor irá mudar<br> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.iteration"> - <title>iteration</title> - <para> - iteration é usado para mostrar a interação atual do loop. - </para> - <note> - <title>Nota:</title> - <para> - 'interation' não é afetado pelas propriedades start, step e max da section, - diferentemente da propriedade index. Interation diferente de 'index' começa - com 1 ao invés de 0. 'rownum' é um sinônimo de 'interation', eles exercem a - mesma função. - </para> - </note> - <example> - <title>propriedade interation da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid start=5 step=2} - interação atual do loop: {$smarty.section.consumidor.iteration}<br> - {$smarty.section.consumidor.index} id: {$custid[consumidor]}<br> - {* Para sua informação, $custid[consumidor.index] e $custid[consumidor] tem o mesmo significado *} - {if $custid[consumidor.index_next] ne $custid[consumidor.index]} - O id do consumidor irá mudar<br> - {/if} -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -interação atual do loop: 1 -5 id: 1000<br> - O id do consumidor irá mudar<br> -interação atual do loop: 2 -7 id: 1001<br> - O id do consumidor irá mudar<br> -interação atual do loop: 3 -9 id: 1002<br> - O id do consumidor irá mudar<br> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.first"> - <title>first</title> - <para> - first é definido como true se a interação atual da section - é a primeira. - </para> - <example> - <title>propriedade first da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {if $smarty.section.consumidor.first} - <table> - {/if} - - <tr><td>{$smarty.section.consumidor.index} id: {$custid[consumidor]}</td></tr> - - {if $smarty.section.consumidor.last} - </table> - {/if} -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -<table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> -</table> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.last"> - <title>last</title> - <para> - last é definido como true se a interação atual da - section é a última. - </para> - <example> - <title>propriedade last da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {if $smarty.section.consumidor.first} - <table> - {/if} - - <tr><td>{$smarty.section.consumidor.index} id: {$custid[consumidor]}</td></tr> - - {if $smarty.section.consumidor.last} - </table> - {/if} -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -<table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> -</table> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.rownum"> - <title>rownum</title> - <para> - rownum é usado para mostrar a interação atual do loop, - começando em um. É um sinônimo de iteration, - eles exercem a mesma função. - </para> - <example> - <title>propriedade rownum da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {$smarty.section.consumidor.rownum} id: {$custid[consumidor]}<br> -{/section} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -1 id: 1000<br> -2 id: 1001<br> -3 id: 1002<br> -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.loop"> - <title>loop</title> - <para> - loop é usado para exibir o número do último índice que a section percorreu. - Ele pode ser usado dentro ou após o término da section. - </para> - <example> - <title>propridade index da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid} - {$smarty.section.consumidor.index} id: {$custid[consumidor]}<br> -{/section} - - Foram mostrados {$smarty.section.customer.loop} consumidores acima. -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -0 id: 1000<br> -1 id: 1001<br> -2 id: 1002<br> - -Foram mostrados 3 consumidores acima. -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> é usado como um parâmetro da section. <emphasis>show</emphasis> - é um valor booleano, verdadeiro ou falso. Caso seja falso, a section não será mostrada. - Se existir uma sectionelse presente, ela será exibida. - </para> - <example> - <title>atributo show da section</title> - <programlisting> -<![CDATA[ -{* $mostrar_info_consumidor talvez tenha que ser enviada pela - aplicação PHP, para decidir quando mostrar ou não mostrar esta section *} - -{section name=consumidor loop=$custid show=$mostrar_info_consumidor} - {$smarty.section.consumidor.rownum} id: {$custid[consumidor]}<br> -{/section} - -{if $smarty.section.consumidor.show} - a section foi mostrada. -{else} - a section não foi mostrada. -{/if} -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -1 id: 1000<br> -2 id: 1001<br> -3 id: 1002<br> - -a section foi mostrada. -]]> -</programlisting> - </example> - </sect2> - <sect2 id="section.property.total"> - <title>total</title> - <para> - total é usado para exibir o número de interações que esta section irá percorrer. - Ela pode ser usada dentro ou após a section. - </para> - <example> - <title>propriedade total da section</title> - <programlisting> -<![CDATA[ -{section name=consumidor loop=$custid step=2} - {$smarty.section.consumidor.index} id: {$custid[consumidor]}<br> -{/section} - - Foram mostrados {$smarty.section.customer.loop} consumidores acima. -]]> -</programlisting> -<para>MOSTRA:</para> -<programlisting> -<![CDATA[ -0 id: 1000<br> -2 id: 1001<br> -4 id: 1002<br> - -Foram mostrados 3 consumidores acima. -]]> -</programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.strip"> - <title>strip</title> - <para> - Muitas vezes web designers tem problemas com espaços em branco e - caracteres especiais (carriage returns) afetam a exibição do HTML - ("características" do navegador), assim você é obrigado à colocar todas - as suas tags juntas para obter os resultados esperados. Isso geralmente - acaba tornando o template ilegível ou não manipulável. - </para> - <para> - Tudo entre as tags {strip}{/strip} no Smarty tem seus espaços extras - ou caracteres especiais (carriage returns) removidos no início e fim das - linhas antes de elas serem exibidas. Deste modo você pode manter seu - template legível, e não se preocupar com espaços extras causando - problemas. - </para> - <note> - <title>Nota Técnica</title> - <para> - {strip}{/strip} não afeta o conteúdo das variáveis de template. - Veja <link linkend="language.modifier.strip">modificador strip</link>. - </para> - </note> -<example> -<title>strip tags</title> -<programlisting> -<![CDATA[ -{* o código abaixo será convertido em uma linha na hora da exibição *} -{strip} -<table border=0> - <tr> - <td> - <A HREF="{$url}"> - <font color="red">Isto é um teste</font> - </A> - </td> - </tr> -</table> -{/strip} -]]> -</programlisting> -<para>MOSTRARÁ:</para> -<programlisting> -<![CDATA[ -<table border=0><tr><td><A HREF="http://meu.dominio.com"><font color="red">Isto é um teste</font></A></td></tr></table> -]]> -</programlisting> -</example> - <para> - Observe que no exemplo acima, todas as linhas começam e terminam com tags HTML. - Esteja ciente para que todas as linhas fiquem juntas. - Se você tiver texto simples no início ou final de uma linha, - ele será juntado na hora da conversão e pode causar resultados - não desejados. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-combining-modifiers.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <chapter id="language.combining.modifiers"> - <title>Combinando Modificadores</title> - <para> - Você pode aplicar a quantidade de moficadores que quiser à uma variável. Eles serão aplicados - na ordem em que foram combinados, da esquerda para direita. Eles devem ser separados - com o caracter <literal>|</literal> (pipe). - </para> - <example> - <title>combinando modificadores</title> - <programlisting role="php"> -<![CDATA[ -index.php: -<?php -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); -$smarty->display('index.tpl'); -?> - -index.tpl: - -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - O texto acima mostrará: - </para> - <screen> -<![CDATA[ -Smokers are Productive, but Death Cuts Efficiency. -S M O K E R S A R E P R O D U C T I V E , B U T D E A T H C U T S E F F I C I E N C Y . -s m o k e r s a r e p r o d u c t i v e , b u t d e a t h c u t s... -s m o k e r s a r e p r o d u c t i v e , b u t . . . -s m o k e r s a r e p. . . -]]> - </screen> - </example> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: thomasgm Status: ready --> - <chapter id="language.custom.functions"> - <title>Funções Personalizadas</title> - <para> - O Smarty contém várias funções personalizadas que você - pode usar em seus templates. - </para> -&designers.language-custom-functions.language-function-assign; -&designers.language-custom-functions.language-function-counter; -&designers.language-custom-functions.language-function-cycle; -&designers.language-custom-functions.language-function-debug; -&designers.language-custom-functions.language-function-eval; -&designers.language-custom-functions.language-function-fetch; -&designers.language-custom-functions.language-function-html-checkboxes; -&designers.language-custom-functions.language-function-html-image; -&designers.language-custom-functions.language-function-html-options; -&designers.language-custom-functions.language-function-html-radios; -&designers.language-custom-functions.language-function-html-select-date; -&designers.language-custom-functions.language-function-html-select-time; -&designers.language-custom-functions.language-function-html-table; -&designers.language-custom-functions.language-function-math; -&designers.language-custom-functions.language-function-mailto; -&designers.language-custom-functions.language-function-popup-init; -&designers.language-custom-functions.language-function-popup; -&designers.language-custom-functions.language-function-textformat; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-assign.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.assign"> - <title>assign</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>O nome da variável que está sendo definida</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>O valor que está sendo definido</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - assign é usado para definir o valor de uma variável - de template durante a execução do template. - </para> -<example> -<title>assign</title> -<programlisting> -<![CDATA[ -{assign var="nome" value="Bob"} - -O valor de $nome é {$nome}. - -MOSTRA: - -O valor de $nome é Bob. -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.counter"> - <title>counter</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>default</emphasis></entry> - <entry>O nome do contador</entry> - </row> - <row> - <entry>start</entry> - <entry>number</entry> - <entry>Não</entry> - <entry><emphasis>1</emphasis></entry> - <entry>O número no qual a contagem se inicia</entry> - </row> - <row> - <entry>skip</entry> - <entry>number</entry> - <entry>Não</entry> - <entry><emphasis>1</emphasis></entry> - <entry>O intervalo entre as contagens</entry> - </row> - <row> - <entry>direction</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>up</emphasis></entry> - <entry>A direção para contar (up/down)</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Quando mostrar ou não o valor</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A variável de template que vai - receber a saída</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - counter é usada para mostrar uma contagem. counter irá se lembrar de - count em cada interação. Você pode ajustar o número, o intervalo - e a direção da contagem, assim como detrminar quando - mostrar ou não a contagem. Você pode ter vários contadores ao - mesmo tempo, dando um nome único para cada um. Se você não der um nome, - o nome 'default' será usado. - </para> - <para> - Se você indicar o atributo especial "assign", a saída da função counter - será passada para essa variável de template ao invés de - ser mostrada no template. - </para> -<example> -<title>counter</title> -<programlisting> -<![CDATA[ -{* inicia a contagem *} -{counter start=0 skip=2 print=false} - -{counter}<br> -{counter}<br> -{counter}<br> -{counter}<br> - -MOSTRA: - -2<br> -4<br> -6<br> -8<br> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.cycle"> - <title>cycle</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>default</emphasis></entry> - <entry>O nome do ciclo</entry> - </row> - <row> - <entry>values</entry> - <entry>mixed</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Os valores do ciclo, ou uma lista delimitada - por vírgula (veja o atributo delimiter), - ou uma matriz de valores.</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Quando mostrar ou não o valor</entry> - </row> - <row> - <entry>advance</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Quando avançar ou não para o próximo valor</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>,</emphasis></entry> - <entry>O delimitador para usar no atributo 'values'.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>A variável de template que - receberá a saída</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Cycle é usado para fazer um clico através de um conjunto de valores. - Isto torna fácil alternar entre duas ou mais cores em uma tabela, - ou entre uma matriz de valores. - </para> - <para> - Você pode usar o cycle em mais de um conjunto de valores - no seu template. Dê a cada conjunto de valores - um nome único. - </para> - <para> - Você pode fazer com que o valor atual não seja mostrado - definindo o atributo print para false. Isto é útil para - pular um valor. - </para> - <para> - O atributo advance é usado para repetir um valor. Quando definido - para false, a próxima chamada para cycle irá mostrar o mesmo valor. - </para> - <para> - Se você indicar o atributo especial "assign", a saída da função - cycle será passada para uma variável de template ao invés de ser - mostrado diretamente no template. - </para> -<example> -<title>cycle</title> -<programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> - <td>{$data[rows]}</td> -</tr> -{/section} - -MOSTRA: - -<tr bgcolor="#eeeeee"> - <td>1</td> -</tr> -<tr bgcolor="#d0d0d0"> - <td>2</td> -</tr> -<tr bgcolor="#eeeeee"> - <td>3</td> -</tr> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.debug"> - <title>debug</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>html</emphasis></entry> - <entry>Tipo de saída, html ou javascript</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - {debug} mostra o console de debug na página. Ele funciona independente - da definição de <link linkend="chapter.debugging.console">debug</link>. - Já que ele é executado em tempo de execução, ele é capaz apenas de - mostrar as variáveis definidas, e não os templates - que estão em uso. Mas você pode ver todas as variáveis - disponíveis no escopo do template. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,121 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.eval"> - <title>eval</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Variável (ou string) para avaliar</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A variável de template que - receberá a saída</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - eval é usado para avaliar uma variável como template. Isto pode ser usado para - coisas como embutir tags/variáveis de template dentro de variáveis - ou tags/variáveis dentro de variáveis em um arquivo de configuração. - </para> - <para> - Se você indicar o atributo especial "assign", a saída da função - eval irá para esta variável de template ao - invés de aparecer no template. - </para> - <note> - <title>Nota Técnica</title> - <para> - Variáveis avaliadas são tratadas igual a templates. Elas seguem - o mesmo funcionamento para escapar e para segurança como - se fossem templates. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - Variáveis avaliadas são compiladas a cada invocação, as versões - compiladas não são salvas. Entretando, se você tiver o cache ativado, - a saída vai ficar no cache junto com o resto do template. - </para> - </note> -<example> -<title>eval</title> -<programlisting> -<![CDATA[ -setup.conf ----------- - -emphstart = <b> -emphend = </b> -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. - - -index.tpl ---------- - -{config_load file="setup.conf"} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign="state_error"} -{$state_error} - -MOSTRA: - -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a <b>city</b>. -You must supply a <b>state</b>. -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.fetch"> - <title>fetch</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>O arquivo, site http ou ftp para obter</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>A variável de template - que vai receber a saída</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - fetch é usado para obter arquivos do sistema de arquivos local, - http ou ftp, e mostrar o seu conteúdo. Se o nome do arquivo começar - com "http://", a página do web site será obtida e mostrada. Se o - nome do arquivo começar com "ftp://", o arquivo será obtido do servidor - ftp e mostrado. Para arquivos locais, o caminho completo do sistema de - arquivos deve ser dado, ou um caminho relativo ao script php executado. - </para> - <para> - Se você indicar o atributo especial "assign", a saída da função - fetch será passada para uma variável de template ao invés de - ser mostrado no template. (novo no Smarty 1.5.0) - </para> - <note> - <title>Nota Técnica</title> - <para> - fetch não suporta redirecionamento http, tenha - certeza de incluir a barra no final aonde necessário. - </para> - </note> - <note> - <title>Nota Técnica</title> - <para> - Se a segurança do template esta ativada e você - estiver obtendo um arquivo do sistema de arquivos locais, fetch - irá funcionar apenas em arquivos de um dos diretórios - definidos como seguros. ($secure_dir) - </para> - </note> -<example> -<title>fetch</title> -<programlisting> -<![CDATA[ -{* inclui algum javascript no seu template *} -{fetch file="/export/httpd/www.domain.com/docs/navbar.js"} - -{* embute algum texto sobre o tempo de outro web site *} -{fetch file="http://www.myweather.com/68502/"} - -{* obtém um arquivo de notícias via ftp *} -{fetch file="ftp://user:password@ftp.domain.com/path/to/currentheadlines.txt"} - -{* coloca o conteúdo obtido para uma varável de template *} -{fetch file="http://www.myweather.com/68502/" assign="weather"} -{if $weather ne ""} - <b>{$weather}</b> -{/if} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,151 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.checkboxes"> - <title>html_checkboxes</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>O nome da lista checkbox</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Sim, a menos que estaja usando o atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Uma matriz de valores para os botões checkbox</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Sim, a menos que estaja usando o atributo options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz de saída para os botões checkbox</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>O(s) elemento(s) checkbox marcado(s)</entry> - </row> - <row> - <entry>options</entry> - <entry>matriz</entry> - <entry>Sim, a menos que esteja usando values e output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Uma matriz associativa de valores e saída</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>string de texto para separar cada checkbox</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Adicionar tags <label> para na saída</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_checkboxes é uma função personalizada que cria um grupo de - checkbox com os dados fornecidos. Ela cuida de qual(is) item(s) - estão selecionado(s) por padrão. Os atributos obrigatórios são - values e output, a menos que você use options. - Toda a saída é compatível com XHTML. - </para> - <para> - Todos os parâmetro que não estejam na lista acima são mostrados - como pares nome/valor dentro de cada tag <input> criada. - </para> -<example> -<title>html_checkboxes</title> -<programlisting> -<![CDATA[ -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"} - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -{html_checkboxes name="id" options=$cust_checkboxes checked=$customer_id separator="<br />"} - - -MOSTRA: (ambos os exemplos) - -<label><input type="checkbox" name="checkbox[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="checkbox[]" value="1001" checked="checked" />Jack Smith</label><br /> -<label><input type="checkbox" name="checkbox[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="checkbox[]" value="1003" />Charlie Brown</label><br /> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,143 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.image"> - <title>html_image</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>nome/caminho para a imagem</entry> - </row> - <row> - <entry>border</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>0</emphasis></entry> - <entry>tamanho da borda de contorno da imagem</entry> - </row> - <row> - <entry>height</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>altura atual da imagem</emphasis></entry> - <entry>altura com a qual a imagem deve ser mostrada</entry> - </row> - <row> - <entry>width</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>largura atual da imagem</emphasis></entry> - <entry>largura com a qual a imagem deve ser mostrada</entry> - </row> - <row> - <entry>basedir</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>doc root do servidor</emphasis></entry> - <entry>diretório de base a caminhos relativos</entry> - </row> - <row> - <entry>alt</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>""</emphasis></entry> - <entry>descrição alternativa da imagem</entry> - </row> - <row> - <entry>href</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>valor href para aonde a imagem será linkada</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_image é uma função customizada que gera uma tag HTML para uma imagem. - A altura e a largura são automaticamente calculadas a partir do arquivo de imagem se - nenhum valor é fornecido. - </para> - <para> - basedir é o diretório base do qual caminhos relativos de imagens estão baseados. - Se não fornecido, o document root do servidor (variável de ambiente DOCUMENT_ROOT) é usada - como o diretório base. Se a segurança está habilitada, o caminho para a imagem deve estar dentro - de um diretório seguro. - </para> - <para> - <parameter>href</parameter> é o valor href para onde a imagem será linkada. Se um link é fornecido, - uma tag <a href="LINKVALUE"><a> é posta em volta da tag da imagem. - </para> - <note> - <title>Nota Técnica</title> - <para> - html_image requer um acesso ao disco para ler a imagem e calcular - a altura e a largura. Se você não usa caching de template, normalmente é - melhor evitar html_image e deixar as tags de imagem estáticas para performance - otimizada. - </para> - </note> -<example> -<title>html_image</title> -<programlisting> -<![CDATA[ -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->display('index.tpl'); - -index.tpl: - -{html_image file="pumpkin.jpg"} -{html_image file="/path/from/docroot/pumpkin.jpg"} -{html_image file="../path/relative/to/currdir/pumpkin.jpg"} - -MOSTRA: (possível) - -<img src="pumpkin.jpg" alt="" border="0" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" border="0" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" border="0" width="44" height="68" /> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,152 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.options"> - <title>html_options</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Sim, a menos que usando atributos de options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz de valores para o menu dropdown</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Sim, a menos que usando atributos de options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz de saída para o menu dropdown</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>o elemento do options selecionado</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Sim, a menos que usando values e output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz associativa de output e output</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>nome do grupo selecionado</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_options é uma função personalizada que cria um grupo html option com os dados fornecidos. - Ela está atenta de quais itens estão selecionados por padrão. Atributos obrigatórios são 'values' e - 'output', a menos que você use options no lugar. - </para> - <para> - Se um valor dado é um array, ele será tratado como um OPTGROUP html, - e mostrará os grupos. - Recursividade é suportada pelo OPTGROUP. Todas as saídas são compatíveis com XHTML. - </para> - <para> - Se o atributo opcional <emphasis>name</emphasis> é dado, as tags - <select name="groupname"></select> irão incluir a lista de opções dentro dela. - Caso contrário apenas a lista de opções é gerada. - </para> - <para> - Todos os parâmetros que não estão na lista acima são exibidos como - nome/valor dentro de <select>-tag. Eles são ignorados se o opcional - <emphasis>name</emphasis> não é fornecido. - </para> -<example> -<title>html_options</title> -<programlisting> -<![CDATA[ -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Carlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -<select name=customer_id> - {html_options values=$cust_ids selected=$customer_id output=$cust_names} -</select> - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_options', array( - 1001 => 'Taniel Franklin', - 1002 => 'Fernando Correa', - 1003 => 'Marcelo Pereira', - 1004 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -<select name=customer_id> - {html_options options=$cust_options selected=$customer_id} -</select> - - -OUTPUT: (both examples) - -<select name=customer_id> - <option value="1000">Taniel Franklin</option> - <option value="1001" selected="selected">Fernando Correa</option> - <option value="1002">Marcelo Pereira</option> - <option value="1003">Charlie Brown</option> -</select> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.radios"> - <title>html_radios</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>nome da radio list</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Sim, a menos que utilizando atributo de options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz de valores para radio buttons</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Sim, a menos que utilizando atributo de options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz de saída pra radio buttons</entry> - </row> - <row> - <entry>checked</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>O elemento do radio marcado</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Sim, a menos que utilizando values e output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>uma matriz associativa de values e output</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>string de texto para separar cada item de radio</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_radios é uma função personalizada que cria grupo de botões de radio html - com os dados fornecidos. Ele está atento para qual item está selecionado por padrão. - Atributos obrigatórios são 'values' e 'output', a menos que você use 'options' no lugar disso. Toda - saída é compatível com XHTML. - </para> - <para> - Todos os parâmetros que não estão na lista acima são impressos como - nome/valor de dentro de cada tag <input> criada. - </para> - -<example> -<title>html_radios</title> -<programlisting> -<![CDATA[ -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Carlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"} - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_radios', array( - 1001 => 'Joe Schmoe', - 1002 => 'Jack Smith', - 1003 => 'Jane Johnson', - 1004 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios name="id" options=$cust_radios checked=$customer_id separator="<br />"} - - -OUTPUT: (both examples) - -<input type="radio" name="id[]" value="1000">Taniel Fraklin<br /> -<input type="radio" name="id[]" value="1001" checked="checked"><br /> -<input type="radio" name="id[]" value="1002">Marcelo Pereira<br /> -<input type="radio" name="id[]" value="1003">Charlie Brown<br /> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,352 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.select.date"> - <title>html_select_date</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>Date_</entry> - <entry>Com o que prefixar o nome da variável</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/YYYY-MM-DD</entry> - <entry>Não</entry> - <entry>tempo atual no formato timestamp do unix ou YYYY-MM-DD</entry> - <entry>qual date/time usar</entry> - </row> - <row> - <entry>start_year</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>ano atual</entry> - <entry>o primeiro ano no menu dropdown, ou o - número do ano, ou relativo ao ano atual (+/- N)</entry> - </row> - <row> - <entry>end_year</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>da mesma forma que start_year</entry> - <entry>o último ano no menu dropdown, ou o - número do ano, ou relativo ao ano atual (+/- N)</entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>se mostra os dias ou não</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>No</entry> - <entry>true</entry> - <entry>se mostra os meses ou não</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>se mostra os anos ou não</entry> - </row> - <row> - <entry>month_format</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>%B</entry> - <entry>qual o formato do mês (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>%02d</entry> - <entry>a saída do dia seria em qual formato (sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>string</entry> - <entry>No</entry> - <entry>%d</entry> - <entry>o valor do dia seria em qual formato (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>false</entry> - <entry>se mostra ou não o ano como texto</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>false</entry> - <entry>mostra os anos na ordem reversa</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry> - se um nome é dado, as caixas de seleção serão exibidos assim que os resultados - forem devolvidos ao PHP - na forma de name[Day], name[Year], name[Month]. - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona o atributo de tamanho para a tag select se for dada</entry> - </row> - <row> - <entry>month_size</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona o atributo de tamanho para a tag de select se for dada</entry> - </row> - <row> - <entry>year_size</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona o atributo de tamanho para a tag de select se for dada</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos extras para todas as tags select/input se - forem dadas</entry> - </row> - <row> - <entry>day_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos - extras para todas as tags select/input se forem dadas</entry> - </row> - <row> - <entry>month_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos extras - para todas as tags select/input se forem dadas</entry> - </row> - <row> - <entry>year_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos extras - para todas as tags select/input se forem dadas</entry> - </row> - <row> - <entry>field_order</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>MDY</entry> - <entry>a ordem para se mostrar os campos</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>\n</entry> - <entry>string exibida entre os diferentes campos</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>%m</entry> - <entry>formato strftime dos valores do mês, o padrão é - %m para número de mês.</entry> - </row> - <row> - <entry>year_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Se for fornecido então o primeiro eleemento do select-box 'anos' - terá este nome e o valor "". Isto é útil para fazer o select-box ler - "Por favor selecione um ano" por exemplo. Note que você pode usar valores - como "-MM-DD" como atributos de tempo para indicar um ano não selecionado. - </entry> - </row> - <row> - <entry>month_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Caso fornecido então o primeiro elemento do select-box 'meses' terá - este nome e o valor "". Note que você pode suar valores como "YYYY--DD" como - atributos de tempo para indicar meses não selecionados. - </entry> - </row> - <row> - <entry>day_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>Caso fornecido então o primeiro elemento do select-box 'dias' terá - este nome e o valor "". Note que você pode usar valores como "YYYY-MM-" como - atributos de tempo para indicar dias não selecionados. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_select_date é uma função personalizada que cria menus dropdowns - de data para você. Ele pode mostrar qualquer um/ou todos os anos, meses e dias. - </para> -<example> -<title>html_select_date</title> -<programlisting> -<![CDATA[ -{html_select_date} - - -MOSTRA - -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected>December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> -<option value="4">04</option> -<option value="5">05</option> -<option value="6">06</option> -<option value="7">07</option> -<option value="8">08</option> -<option value="9">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected>13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2001" selected>2001</option> -</select> -]]> -</programlisting> -</example> - - -<example> -<title>html_select_date</title> -<programlisting> -<![CDATA[ -{* ano de começo e fim pode ser relativo ao ano atual *} -{html_select_date prefix="StartDate" time=$time start_year="-5" end_year="+1" display_days=false} - -MOSTRA: (o ano atual é 2000) - -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected>December</option> -</select> -<select name="StartDateYear"> -<option value="1999">1995</option> -<option value="1999">1996</option> -<option value="1999">1997</option> -<option value="1999">1998</option> -<option value="1999">1999</option> -<option value="2000" selected>2000</option> -<option value="2001">2001</option> -</select> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,327 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.select.time"> - <title>html_select_time</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>Time_</entry> - <entry>com o que prefixar o nome da variável</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>Não</entry> - <entry>tempo atual</entry> - <entry>qual date/time para usar</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>Exibir ou não as horas</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>Exibir ou não os minutos</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>Exibir ou não os segundos</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>Exibir ou não no formato (am/pm)</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>booleano</entry> - <entry>Não</entry> - <entry>true</entry> - <entry>Usar ou não relógio de 24 horas</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>inteiro</entry> - <entry>Não</entry> - <entry>1</entry> - <entry>intervalo dos números dos minutos do menu dropdown</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry>1</entry> - <entry>intervalo dos números dos segundos do menu dropdown</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>n/a</entry> - <entry>exibe valores para o array deste nome</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos - extras para tags select/input se fornecidas</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos - extras para tags select/input se fornecidas</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos - extras para tags select/input tags se fornecidas</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry>adiciona atributos - extras para tags select/input se fornecidas</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>null</entry> - <entry>adiciona atributos - extras para tags select/input se fornecidas</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - html_select_time é uma função personalizada que cria menus dropdowns de hora para você. Ela pode mostrar - alguns valores, ou tudo de hora, - minuto, segundo e ainda no formato am/pm. - </para> -<example> -<title>html_select_time</title> -<programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} - - -MOSTRA: - -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,153 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.html.table"> - <title>html_table</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>array de dados para ser feito o loop</entry> - </row> - <row> - <entry>cols</entry> - <entry>inteiro</entry> - <entry>Não</entry> - <entry><emphasis>3</emphasis></entry> - <entry>número de colunas na tabela</entry> - </row> - <row> - <entry>table_attr</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>atributos para a tag table</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>atributos para a tag tr (arrays estão em ciclo)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>atributos para a tag (arrays estão em ciclo)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>values to pad the trailing cells on last row with - (se algum)</entry> - </row> - - <row> - <entry>hdir</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>right</emphasis></entry> - <entry>direçao de uma linha para ser representada. Possíveis valores: <emphasis>left</emphasis>/<emphasis>right</emphasis></entry> - </row> - <row> - <entry>vdir</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>down</emphasis></entry> - <entry>direção das colunas para serem representadas. Possíveis valores: <emphasis>up</emphasis>/<emphasis>down</emphasis></entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - <emphasis>html_table</emphasis> é uma função personalizada que transforma um array de dados - em uma tabela HTML. O atributo <emphasis>cols</emphasis> determina a quantidade de colunas que - a tabela terá. Os valores <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> e - <emphasis>td_attr</emphasis> determinam os atributos dados para a tabela, tags tr e td. Se <emphasis>tr_attr</emphasis> ou - <emphasis>td_attr</emphasis> são arrays, eles entrarão em ciclo. - <emphasis>trailpad</emphasis> é o - valor colocado dentro do trailing - cells na última linha da tabela - se há alguma presente. - </para> -<example> -<title>html_table</title> -<programlisting> -<![CDATA[ -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -index.tpl: - -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} - -MOSTRA: - -<table border="1"> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</table> -<table border="0"> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr> -</table> -<table border="1"> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr> -</table> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,158 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.mailto"> - <title>mailto</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O endereço de email</entry> - </row> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O texto à ser exibido, o padrão - é o endereço de email</entry> - </row> - <row> - <entry>encode</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>none</emphasis></entry> - <entry>Como codificar o e-mail. - Pode ser none, - hex ou javascript.</entry> - </row> - <row> - <entry>cc</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Endereço de e-mail para mandar uma cópia carbono(cc). - Separe os endereços por vírgula.</entry> - </row> - <row> - <entry>bcc</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Endereço de e-mail para mandar uma cópia carbono cega(bcc). - Separe os endereços por vírgula.</entry> - </row> - <row> - <entry>subject</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Assunto do e-mail.</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>newsgroup para postar. - Separe os endereços por vírgula.</entry> - </row> - <row> - <entry>followupto</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Endereço para acompanhar. - Separe os endereços por vírgula.</entry> - </row> - <row> - <entry>extra</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Qualquer outra informação que você - queira passar para o link, como - classes de planilhas de estilo</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - mailto automatiza o processo de criação de links de e-mail e opcionalmente - codifica eles. Codificar o e-mail torna mais difícil para - web spiders pegarem endereços no seu site. - </para> - <note> - <title>Nota Técnica</title> - <para> - javascript é provavelmente o meio de codificação mais - utilizado, entretanto você pode usar codificação hexadecimal também. - </para> - </note> -<example> -<title>mailto</title> -<programlisting> -<![CDATA[ -{mailto address="me@domain.com"} -{mailto address="me@domain.com" text="send me some mail"} -{mailto address="me@domain.com" encode="javascript"} -{mailto address="me@domain.com" encode="hex"} -{mailto address="me@domain.com" subject="Hello to you!"} -{mailto address="me@domain.com" cc="you@domain.com,they@domain.com"} -{mailto address="me@domain.com" extra='class="email"'} - -MOSTRA: - -<a href="mailto:me@domain.com" >me@domain.com</a> -<a href="mailto:me@domain.com" >send me some mail</a> -<SCRIPT language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6 -9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d% -61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e -%27%29%3b'))</SCRIPT> -<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >&#x6d;&#x65;&#x40;&#x64;& -#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;</a> -<a href="mailto:me@domain.com?subject=Hello%20to%20you%21" >me@domain.com</a> -<a href="mailto:me@domain.com?cc=you@domain.com%2Cthey@domain.com" >me@domain.com</a> -<a href="mailto:me@domain.com" class="email">me@domain.com</a> -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,150 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.math"> - <title>math</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>a equação à ser executar</entry> - </row> - <row> - <entry>format</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>o formato do resultado (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numérico</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>valor da variável da equação</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>variável de template cuja saída será atribuida</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numérica</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>valor da variável da equação</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - math permite o desenhista de template fazer equações matemáticas no template. - Qualquer variável de template numérica pode ser usada nas equações, e o resultado - é exibido no lugar da tag. As variáveis usadas na equação são passadas como parâmetros, - que podem ser variáveis de template - ou valores estáticos. +, -, /, *, abs, ceil, cos, - exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt, - srans and tan são todos os operadores válidos. Verifique a documentação do PHP para - mais informações acerca destas funções matemáticas. - </para> - <para> - Se você fornece o atributo especial "assign", a saída da função matemática será - atribuído para esta variável - de template ao invés de ser exibida para o template. - </para> - <note> - <title>Nota Técnica</title> - <para> - math é uma função de performance cara devido ao uso da função do php eval(). - Fazendo a matemática no PHP é muito mais eficiente, então sempre é possível fazer - os cálculos matemáticos no PHP e lançar os resultados para o template. Definitivamente - evite chamadas de funções de - matemáticas repetitivamente, como dentro de loops de section. - </para> - </note> -<example> -<title>math</title> -<programlisting> -<![CDATA[ -{* $height=4, $width=5 *} - -{math equation="x + y" x=$height y=$width} - -MOSTRA: - -9 - - -{* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - -{math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} - -MOSTRA: - -100 - - -{* Você pode usar parenteses *} - -{math equation="(( x + y ) / z )" x=2 y=10 z=2} - -MOSTRA: - -6 - - -{* você pode fornecer um parâmetro de formato em sprintf *} - -{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - -MOSTRA: - -9.44 -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-popup-init.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.popup.init"> - <title>popup_init</title> - <para> - popup é uma integração com overLib, uma biblioteca usada para janelas - popup. Esta é usada para informações sensíveis ao contexto, como - janelas de ajuda ou dicas. popup_init deve ser usada uma vez ao - topo de cada página que você planeje usar a função <link - linkend="language.function.popup">popup</link>. overLib - foi escrita por Erik Bosrup, e a página esta localizada em - http://www.bosrup.com/web/overlib/. - </para> - <para> - A partir da versão 2.1.2 do Smarty, overLib NÃO vem com a distribuição. - Baixe o overLib, coloque o arquivo overlib.js dentro da sua arvore de - documentos e indique o caminho relativo para o parâmetro "src" - de popup_init. - </para> -<example> -<title>popup_init</title> -<programlisting> -<![CDATA[ -{* popup_init deve ser utilizada uma vez no topo da página *} -{popup_init src="/javascripts/overlib.js"} -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-popup.xml
Deleted
@@ -1,430 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.2 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.popup"> - <title>popup</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>O text/html para mostrar na janela popup</entry> - </row> - <row> - <entry>trigger</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>onMouseOver</emphasis></entry> - <entry>O que é usado para fazer a janela aparecer. Pode ser - onMouseOver ou onClick</entry> - </row> - <row> - <entry>sticky</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Faz a janela colar até que seja fechada</entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define o texto para o título</entry> - </row> - <row> - <entry>fgcolor</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>A cor usada dentro da caixa popup</entry> - </row> - <row> - <entry>bgcolor</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>A cor da borda da caixa popup</entry> - </row> - <row> - <entry>textcolor</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a cor do texto dentro da caixa popup</entry> - </row> - <row> - <entry>capcolor</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a cor do título da caixa</entry> - </row> - <row> - <entry>closecolor</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a cor do texto para fechar</entry> - </row> - <row> - <entry>textfont</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a cor do texto para ser usado no texto principal</entry> - </row> - <row> - <entry>captionfont</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a fonte para ser usada no Título</entry> - </row> - <row> - <entry>closefont</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a fonte para o texto "Close"</entry> - </row> - <row> - <entry>textsize</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a fonte do texto principa</entry> - </row> - <row> - <entry>captionsize</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define o tamanho da fonte do título</entry> - </row> - <row> - <entry>closesize</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define o tamanho da fonte do texto "Close"</entry> - </row> - <row> - <entry>width</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a largura da caixa</entry> - </row> - <row> - <entry>height</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define a altura da caixa</entry> - </row> - <row> - <entry>left</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Faz os popups irem para a esquerda do mouse</entry> - </row> - <row> - <entry>right</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Faz os popups ir para a diresita do mouse</entry> - </row> - <row> - <entry>center</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Faz os popups ir para o centro do mouse</entry> - </row> - <row> - <entry>above</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Faz os popups irem para acima do mouse. NOTA: somente - possível se height foi definido</entry> - </row> - <row> - <entry>below</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Faz os popups irem abaixo do mouse</entry> - </row> - <row> - <entry>border</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Torna as bordas dos popups grossas ou finas</entry> - </row> - <row> - <entry>offsetx</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>A que distancia do mouse o popup irá - aparecer, horizontalmente</entry> - </row> - <row> - <entry>offsety</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>A que distancia do mouse o popup irá - aparecer, verticalmente</entry> - </row> - <row> - <entry>fgbackground</entry> - <entry>url para imagem</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define uma imagem para usar ao invés de uma - cor dentro do popup.</entry> - </row> - <row> - <entry>bgbackground</entry> - <entry>url to image</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>define uma imagem para ser usada como borda - ao invés de uma cor para o popup. Nota: você deve definir bgcolor - como "" ou a cor irá aparecer também. NOTA: quando tiver um - link "Close", o Netscape irá redesenhar as células da tabela, - fazendo as coisas aparecerem incorretamente</entry> - </row> - <row> - <entry>closetext</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define o texto "Close" para qualquer outra coisa</entry> - </row> - <row> - <entry>noclose</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Não mostra o texto "Close" em coladas - com um título</entry> - </row> - <row> - <entry>status</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define o texto na barra de status do browser</entry> - </row> - <row> - <entry>autostatus</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define o texto da barra de status para o texto do popup. - NOTA: sobrescreve a definição de status</entry> - </row> - <row> - <entry>autostatuscap</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>define o texto da barra de status como o texto do título - NOTA: sobrescreve o status e autostatus</entry> - </row> - <row> - <entry>inarray</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Indica ao overLib para ler o texto deste índice - na matriz ol_text array, localizada em overlib.js. Este - parâmetro pode ser usado ao invés do texto</entry> - </row> - <row> - <entry>caparray</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>diz para overLib ler o título a partir deste índice - na matriz ol_caps</entry> - </row> - <row> - <entry>capicon</entry> - <entry>url</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Mostra a imagem antes do título</entry> - </row> - <row> - <entry>snapx</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>snaps the popup to an even position in a - horizontal grid</entry> - </row> - <row> - <entry>snapy</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>snaps the popup to an even position in a - vertical grid</entry> - </row> - <row> - <entry>fixx</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>locks the popups horizontal position Note: - overrides all other horizontal placement</entry> - </row> - <row> - <entry>fixy</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>locks the popups vertical position Note: - overrides all other vertical placement</entry> - </row> - <row> - <entry>background</entry> - <entry>url</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Define uma imagem para ser usada como - fundo ao invés da tabela</entry> - </row> - <row> - <entry>padx</entry> - <entry>integer,integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Prenche a imagem de fundo com espaços em branco horizontal - para colocação do texto. Nota: este é um comando - de dois parâmetros</entry> - </row> - <row> - <entry>pady</entry> - <entry>integer,integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Prenche a imagem de fundo com espaços em branco vertical - para colocação do texto. Nota: este é um comando - de dois parâmetros</entry> - </row> - <row> - <entry>fullhtml</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Permite a você controlar o html sobre a figura - de fundo completamente. O código HTML é esperado - no atributo "text"</entry> - </row> - <row> - <entry>frame</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Controla popups em frames diferentes. Veja a página da - overlib para maiores informações sobre esta função</entry> - </row> - <row> - <entry>timeout</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Utiliza uma função e pega o valor de retorno - como texto que deva ser mostrado - na janela popup</entry> - </row> - <row> - <entry>delay</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Faz com que o popup funcione como um tooltip. Irá - aparecer apenas após um certo atraso em milésimos de segundo</entry> - </row> - <row> - <entry>hauto</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Determina automaticamente se o popup deve aparecer - a esquerda ou direita do mouse.</entry> - </row> - <row> - <entry>vauto</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>Determina automaticamente se o popup deve aparecer - abaixo ou acima do mouse.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - popup é usado para criar janelas popup com javascript. - </para> -<example> -<title>popup</title> -<programlisting> -{* popup_init deve ser utilizada uma vez no topo da página *} -{popup_init src="/javascripts/overlib.js"} - -{* cria um link com uma janela popup que aparece quando se passa o mouse sobre ele *} -<A href="mypage.html" {popup text="This link takes you to my page!"}>mypage</A> - -{* você pode usar html, links, etc no texto do popup *} -<A href="mypage.html" {popup sticky=true caption="mypage contents" -text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,256 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready --> - <sect1 id="language.function.textformat"> - <title>textformat</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Nome do Atributo</entry> - <entry>Tipo</entry> - <entry>Obrigatório</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>estilo pré-definido</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>Não</entry> - <entry><emphasis>0</emphasis></entry> - <entry>O número de caracteres para endentar cada linha.</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>Não</entry> - <entry><emphasis>0</emphasis></entry> - <entry>O número de caracteres para endentar a primeira linha</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>(single space)</emphasis></entry> - <entry>O caractere (ou string de caracteres) para indenta</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>Não</entry> - <entry><emphasis>80</emphasis></entry> - <entry>Quantidade de caracteres antes de quebrar cada linha</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>O caractere (ou string de caracteres) para usar - para quebrar cada linha</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Se true, wrap irá quebrar a linha no caractere - exato em vez de quebrar ao final da palavra</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>No</entry> - <entry><emphasis>n/d</emphasis></entry> - <entry>A variável de template que irá - receber a saída</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - textformat é uma função de bloco usada para formatar texto. Basicamente - ela remove espaços e caracteres especiais, e formata os parágrafos - quebrando o texto ao final de palavras e identando linhas. - </para> - <para> - Você pode definir os parâmetros explicitamente, ou usar um estilo pré-definido. - Atualmente o único estilo disponível é "email". - </para> -<example> -<title>textformat</title> -<programlisting> -<![CDATA[ -{textformat wrap=40} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -MOSTRA: - -This is foo. This is foo. This is foo. -This is foo. This is foo. This is foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo -foo. bar foo bar foo foo. bar foo bar -foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. - - -{textformat wrap=40 indent=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -MOSTRA: - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. - -{textformat wrap=40 indent=4 indent_first=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -MOSTRA: - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. - -{textformat style="email"} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -MOSTRA: - -This is foo. This is foo. This is foo. This is foo. This is foo. This is -foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo -foo. -]]> -</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers.xml
Deleted
@@ -1,99 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.3 Maintainer: thomasgm Status: ready --> - <chapter id="language.modifiers"> - <title>Modificadores de variáveis</title> - <para> - Modificadores de variáveis podem ser aplicados a variáveis, funções personalizadas - ou strings. Para aplicar um modificador, especifique o valor seguido por - <literal>|</literal>(pipe) e o nome do modificador. Um modificador aceita - parâmetros adicionais que afetam o seu comportamento. Estes parâmetros vem após - o nome do modificador e são separados por <literal>:</literal> (dois pontos). - </para> - <example> - <title>Exemplo de modificador</title> - <programlisting> -<![CDATA[ -{* Faz o título ficar com letras maiúsculas *} -<h2>{$titulo|upper}</h2> - -{* Faz com que $topico use somente 40 caracteres, e coloca ... no fim da frase *} - -Tópico: {$topico|truncate:40:"..."} - -{* transforma a data em um formato legível *} -{"agora"|date_format:"%Y/%m/%d"} - -{* aplica um modificador à uma função personalizada *} -{mailto|upper address="eu@dominio.dom"} -]]> -</programlisting> - </example> - <para> - Se você aplicar um modificador à uma matriz ao invés de aplicar ao valor de uma variável, - o modificador vai ser aplicado à cada valor da matriz especificada. Se você quer que o modificador - use a matriz inteira como um valor, você deve colocar o símbolo <literal>@</literal> antes do - nome do modificador, como a seguir: <literal>{$tituloArtigo|@count}</literal> - (isto irá mostrar o número de elementos na matriz $tituloArtigo). - </para> - <para> - Modificadores podem ser carregados automaticamente à partir do seu <link - linkend="variable.plugins.dir">$plugins_dir</link> (veja: - <link linkend="plugins.naming.conventions">Nomes sugeridos</link>) ou podem ser - registrados explicitamente (veja: <link - linkend="api.register.modifier">register_modifier</link>). Adicionalmente, - todas as funções php podem ser utiliadas como modificadores implicitamente. (O - exemplo do <literal>@count</literal> acima usa a função count do php e não - um modificador do Smarty). Usar funções do php como modificadores tem dois - pequenos problemas: Primeiro: às vezes a ordem dos parâmetros da função - não é a desejada (<literal>{"%2.f"|sprintf:$float}</literal> atualmente funciona, - mas o melhor seria algo mais intuitivo. Por exemplo: <literal>{$float|string_format:"%2.f"}</literal> - que é disponibilizado na distribuição do Smarty). Segundo: com a variável - <link linkend="variable.security">$security</link> ativada em todas as funções do - php que são usadas como modificadores precisam ser declaradas como confiáveis (trusted) - na matriz <link linkend="variable.security.settings">$security_settings['MODIFIER_FUNCS']</link>. - </para> - -&designers.language-modifiers.language-modifier-capitalize; -&designers.language-modifiers.language-modifier-count-characters; -&designers.language-modifiers.language-modifier-cat; -&designers.language-modifiers.language-modifier-count-paragraphs; -&designers.language-modifiers.language-modifier-count-sentences; -&designers.language-modifiers.language-modifier-count-words; -&designers.language-modifiers.language-modifier-date-format; -&designers.language-modifiers.language-modifier-default; -&designers.language-modifiers.language-modifier-escape; -&designers.language-modifiers.language-modifier-indent; -&designers.language-modifiers.language-modifier-lower; -&designers.language-modifiers.language-modifier-nl2br; -&designers.language-modifiers.language-modifier-regex-replace; -&designers.language-modifiers.language-modifier-replace; -&designers.language-modifiers.language-modifier-spacify; -&designers.language-modifiers.language-modifier-string-format; -&designers.language-modifiers.language-modifier-strip; -&designers.language-modifiers.language-modifier-strip-tags; -&designers.language-modifiers.language-modifier-truncate; -&designers.language-modifiers.language-modifier-upper; -&designers.language-modifiers.language-modifier-wordwrap; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <para> - Isto é usado para converter para maiúsculas a primeira letra de todas as palavras em uma variável. - </para> - <example> - <title>capitalize</title> - <programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Police begin campaign to rundown jaywalkers.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|capitalize} - -SAÍDA: - -Police begin campaign to rundown jaywalkers. -Police Begin Campaign To Rundown Jaywalkers.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.cat"> - <title>cat</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>cat</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Este é o valor para concatenar com a variável dada.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este valor é concatenado com a variável dada. - </para> -<example> -<title>cat</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Psychics predict world didn't end"); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle|cat:" yesterday."} - -MOSTRA: - -Psychics predict world didn't end yesterday.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry>false</entry> - <entry>Isto determina quando incluir ou não os espaços em - branco na contagem.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Isto é usado para contar o número de caracteres em uma variável. - </para> -<example> -<title>count_characters</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -MOSTRA: - -Cold Wave Linked to Temperatures. -29 -32</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - Isto é usado para contar o número de paragrafos em uma variável. - </para> -<example> -<title>count_paragraphs</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins -Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_paragraphs} - -MOSTRA: - -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - Isto é usado para contar o número de sentenças em uma variável. - </para> -<example> -<title>count_sentences</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_sentences} - -MOSTRA: - -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - Isto é usado para contar o número de palavras em uma variável. - </para> -<example> -<title>count_words</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_words} - -MOSTRA: - -Dealers Will Hear Car Talk at Noon. -7</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,184 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.date.format"> - <title>date_format</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>%b %e, %Y</entry> - <entry>Este é o formato para a data mostrada.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>n/a</entry> - <entry>Esta é a data padrão se a entrada estiver vazia.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Isto formata a data e hora no formato strftime() indicado. - Datas podem ser passadas para o Smarty como timestamps unix, timestamps mysql, - ou qualquer string composta de mês dia ano(interpretavel por strtotime). - Designers podem então usar date_format para ter um controle completo da formatação - da data. Se a data passada para date_format estiver vazia e um segundo parâmetro - for passado, este será usado como a data - para formatar. - </para> -<example> -<title>date_format</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('yesterday', strtotime('-1 day')); -$smarty->display('index.tpl'); - -index.tpl: - - -{$smarty.now|date_format} -{$smarty.now|date_format:"%A, %B %e, %Y"} -{$smarty.now|date_format:"%H:%M:%S"} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:"%H:%M:%S"} - -MOSTRA: - -Feb 6, 2001 -Tuesday, February 6, 2001 -14:33:00 -Feb 5, 2001 -Monday, February 5, 2001 -14:33:00</programlisting> -</example> -<example> -<title>date_format conversion specifiers</title> -<programlisting> -%a - nome do dia da semana abreviado de acordo com o local atual - -%A - nome do dia da semana inteiro de acordo com o local atual - -%b - nome do mês abreviado de acordo com o local atual - -%B - nome do mês inteiro de acordo com o local atual - -%c - representação preferencial de data e hora para o local atual - -%C - ano com dois dígitos (o ano dividido por 100 e truncado para um inteiro, intervalo de 00 a 99) - -%d - dia do mês como um número decimal (intervalo de 00 a 31) - -%D - o mesmo que %m/%d/%y - -%e - dia do mês como um número decimal, um único dígito é precedido por um -espaço (intervalo de 1 a 31) - -%g - ano baseado na semana, sem o século [00,99] - -%G - ano baseado na semana, incluindo o século [0000,9999] - -%h - o mesmo que %b - -%H - hora como um número decimal usando um relógio de 24 horas (intervalo de 00 a 23) - -%I - hora como um número decimal usando um relógio de 12 horas (intervalo de 01 a 12) - -%j - dia do ano como um número decimal (intervalo de 001 a 366) - -%k - hora (relógio de 24 horas) digítos únicos são precedidos por um espaço em branco (intervalo de 0 a 23) - -%l - hora como um número decimal usando um relógio de 12 horas, digítos unicos são precedidos -por um espaço em branco (intervalo de 1 a 12) - -%m - mês como número decimal (intervalo de 01 a 12) - -%M - minuto como um número decimal - -%n - caractere de nova linha - -%p - ou `am' ou `pm' de acordo com o valor de hora dado, ou as strings correspondentes ao local atual - -%r - hora na notação a.m. e p.m. - -%R - hora na notação de 24 horas - -%S - segundo como número decimal - -%t - caractere tab - -%T - hora atual, igual a %H:%M:%S - -%u - dia da semana como um número decimal [1,7], com 1 representando segunda-feira - -%U - número da semana do ano atual como um número decimal, começando com o primeiro domingo como primeiro dia da primeira semana - -%V - número da semana do ano atual como um número decimal de acordo com The ISO 8601:1988, -intervalo de 01 a 53, aonde a semana 1 é a primeira semana que tenha pelo menos quatro dias no ano atual, sendo domingo o primeiro dia da semana. - -%w - dia da semana como decimal, domingo sendo 0 - -%W - número da semana do ano atual como número decimal, começando com a primeira segunda como primeiro dia da primeira semana - -%x - representação preferencial da data para o local atualsem a hora - -%X - representação preferencial da hora para o local atual sem a data - -%y - ano como número decimal sem o século (intervalo de 00 a 99) - -%Y - ano como número decimal incluindo o século - -%Z - zona horária ou nome ou abreviação - -%% - um caractere `%' - - -NOTA PARA PROGRAMADORES: date_format é essencialmente um wrapper para a função strftime() do PHP. -Você deverá ter mais ou menos especificadores de conversão disponíveis de acordo com a -função strftime() do sistema operacional aonde o PHP foi compilado. De uma olhada -na página de manual do seu sistema para uma lista completa dos especificadores válidos.</programlisting> -</example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.default"> - <title>default</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>vazio</emphasis></entry> - <entry>Este é o valor padrão para mostrar se a variável - estiver vazia.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Isto é usado para definir um valor padrão para uma variável. Se a variável estiver - vazia ou não for definida, o valor padrão dado é mostrado. - Default usa um argumento. - </para> -<example> -<title>default</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle|default:"no title"} -{$myTitle|default:"no title"} - -MOSTRA: - -Dealers Will Hear Car Talk at Noon. -no title</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.escape"> - <title>escape</title> - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Valores Possíveis</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>html,htmlall,url,quotes,hex,hexentity,javascript</entry> - <entry>html</entry> - <entry>Este é o formato de escape para usar.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este é usado para escapar html, url, aspas simples em uma variável que já não esteja - escapada, escapar hex, hexentity ou javascript. - Por padrão, é escapado - o html da variável. - </para> -<example> -<title>escape</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "'Stiff Opposition Expected to Casketless Funeral Plan'"); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|escape} -{$articleTitle|escape:"html"} {* escapa & " ' < > *} -{$articleTitle|escape:"htmlall"} {* escapa todas as entidades html *} -{$articleTitle|escape:"url"} -{$articleTitle|escape:"quotes"} -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> - -MOSTRA: - -'Stiff Opposition Expected to Casketless Funeral Plan' -&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039; -&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039; -&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039; -%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27 -\'Stiff Opposition Expected to Casketless Funeral Plan\' -<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">&#x62;&#x6f;&#x62;&#x40;&#x6d;&#x65;&#x2e;&#x6e;&#x65;&#x74;</a></programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,104 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.indent"> - <title>indent</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry>4</entry> - <entry>Isto define com quantos - caracteres endentar.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>(um espaço)</entry> - <entry>Isto define qual caractere usado para endentar.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Isto endenta uma string em cada linha, o padrão é 4. Como - parâmetro opcional, você pode especificar o número de caracteres para - endentar. Como segundo parâmetro opcional, você pode especificar o caractere - usado para endentar. (Use "\t" para tabs.) - </para> -<example> -<title>indent</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'NJ judge to rule on nude beach.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} - -MOSTRA: - -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - Isto é usado para converter para minúsculas uma variável. - </para> -<example> -<title>lower</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|lower} - -MOSTRA: - -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - Todas as quebras de linha serão convertidas para <br /> na variável - data. Isto é equivalente a função nl2br() do PHP. - </para> -<example> -<title>nl2br</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Sun or rain expected\ntoday, dark tonight"); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle|nl2br} - -MOSTRA: - -Sun or rain expected<br />today, dark tonight</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta é a expressão regular a ser substituída.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta é a string que irá substituir a expressão regular.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Uma expressão regular para localizar e substituir na variável. Use a sintaxe - para preg_replace() do manual do PHP. - </para> -<example> -<title>regex_replace</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); -$smarty->display('index.tpl'); - -index.tpl: - -{* replace each carriage return, tab & new line with a space *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} - -MOSTRA: - -Infertility unlikely to - be passed on, experts say. -Infertility unlikely to be passed on, experts say.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.replace"> - <title>replace</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta é a string a ser substituida.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Esta é a string que irá substituir.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Um simples localizar e substituir. - </para> -<example> -<title>replace</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|replace:"Garden":"Vineyard"} -{$articleTitle|replace:" ":" "} - -OUTPUT: - -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.spacify"> - <title>spacify</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Não</entry> - <entry><emphasis>um espaço</emphasis></entry> - <entry>O que é inserido entre cada caractere - da variável.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Insere um espaço entre cada caractere de uma variável. - Você pode opcionalmente passar um caractere (ou uma string) diferente para inserir. - </para> -<example> -<title>spacify</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} - -OUTPUT: - -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W e n t W r o n g i n J e t C r a s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ ^^W^^e^^n^^t^^ ^^W^^r^^o^^n^^g^^ ^^i^^n^^ ^^J^^e^^t^^ ^^C^^r^^a^^s^^h^^,^^ ^^E^^x^^p^^e^^r^^t^^s^^ ^^S^^a^^y^^.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.string.format"> - <title>string_format</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posição do parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Sim</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Este é o formato para ser usado. (sprintf)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Este é um meio para formatar strings, como números decimais e outros. - Use a sintaxe para sprintf para a formatação. - </para> -<example> -<title>string_format</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('number', 23.5787446); -$smarty->display('index.tpl'); - -index.tpl: - -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} - -MOSTRA: - -23.5787446 -23.58 -24</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <para> - Isto retira as tags de marcação, basicamente tudo entre < e >. - </para> -<example> -<title>strip_tags</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|strip_tags} - -MOSTRA: - -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - Isto substitui todos os espaços repetidos, novas linhas e tabs por - um único espaço ou a string indicada. - </para> - <note> - <title>Nota</title> - <para> - Se você quer substituir blocos de texto do template, use a função <link - linkend="language.function.strip">strip</link>. - </para> - </note> -<example> -<title>strip</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:"&nbsp;"} - -MOSTRA: - -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother&nbsp;of&nbsp;eight&nbsp;makes&nbsp;hole&nbsp;in&nbsp;one.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.modifier.truncate"> - <title>truncate</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry>80</entry> - <entry>Este determina para - quantos caracteres truncar.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>...</entry> - <entry>Este é o texto para adicionar se truncar.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry>false</entry> - <entry>Isto determina quando truncar ou não ao final de uma - palavra(false), ou no caractere exato (true).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Isto trunca a variável para uma quantidade de caracteres, o padrão é 80. - Como segundo parâmetro opcional, você pode especificar uma string para mostrar - ao final se a variável foi truncada. Os caracteres da string são incluídos no tamanho - original para a truncagem. por padrão, truncate irá tentar cortar ao final de uma palavra. - Se você quizer cortar na quantidade exata de caracteres, passe o terceiro - parâmetro, que é opcional, - como true. - </para> -<example> -<title>truncate</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} - -MOSTRA: - -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E...</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - Isto é usado para converter para maiúsculas uma variável. - </para> -<example> -<title>upper</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|upper} - -MOSTRA: - -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,118 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Posição do Parâmetro</entry> - <entry>Tipo</entry> - <entry>Requerido</entry> - <entry>Padrão</entry> - <entry>Descrição</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Não</entry> - <entry>80</entry> - <entry>Isto determina em - quantas colunas quebrar.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Não</entry> - <entry>\n</entry> - <entry>Esta é a string usada para quebrar.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>Não</entry> - <entry>false</entry> - <entry>Isto determina quando quebrar ou não ao final de uma palavra - (false), ou no caractere exato (true).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Isto quebra uma string para uma largura de coluna, o padrão é 80. - Como segundo parâmetro opcional, você pode especificar a string que será usada - para quebrar o texto para a próxima linha - (o padrão é um retorno de carro \n). - Por padrão, wordwrap irá tentar quebrar ao final de uma palavra. Se - você quiser quebrar no tamanho exato de caracteres, passe o terceiro parâmetro, que é opcional, como true. - </para> -<example> -<title>wordwrap</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br>\n"} - -{$articleTitle|wordwrap:30:"\n":true} - -MOSTRA: - -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br> -from dad she hasn't seen in years. - -Blind woman gets new kidney fr -om dad she hasn't seen in year -s.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-variables.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.5 Maintainer: thomasgm Status: ready --> - <chapter id="language.variables"> - <title>Variáveis</title> - <para> - No Smarty há vários tipos diferentes de variáveis. O tipo da variável depende do prefixo que - ela usa (ou do símbolo pelo qual ela está contida). - </para> - <para> - Variáveis no Smarty podem tanto serem exibidas diretamente ou usadas como argumentos - para atributos de funções e modificadores, dentro de expressões condicionais, etc. - Para que uma variável seja exibida o nome dela deve estar dentro dos delimitadores - e não pode conter nenhum outro caracter. Veja os exemplos abaixo: - <programlisting> -<![CDATA[ -{$Nome} - -{$Contatos[row].Telefone} - -<body bgcolor="{#cordefundo#}"> -]]> - </programlisting> - </para> - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.assigned.variables"> - <title>Variáveis definidas do PHP</title> - <para> - Variáveis que são definidas do PHP são referenciadas precedendo elas - com um sinal de sifrão <literal>$</literal>. Variáveis definidas dentro do template - com a função <link linkend="language.function.assign">assign</link> - também são mostradas desta maneira. - </para> - <example> - - <title>Variáveis definidas</title> -<programlisting> -Hello {$firstname}, glad to see you could make it. -<p> -Your last login was on {$lastLoginDate}. - -MOSTRA: - -Hello Doug, glad to see you could make it. -<p> -Your last login was on January 11th, 2001.</programlisting> -</example> - - <sect2 id="language.variables.assoc.arrays"> - <title>Associative arrays</title> - <para> - Você também pode referenciar matrizes associativas que são definidas no PHP - especificando a chave depois do símbolo '.' - (ponto). - </para> -<example> -<title>Acessando variáveis de matriz associativa</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234'))); -$smarty->display('index.tpl'); - -index.tpl: - -{$Contacts.fax}<br> -{$Contacts.email}<br> -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}<br> -{$Contacts.phone.cell}<br> - -MOSTRA: - -555-222-9876<br> -zaphod@slartibartfast.com<br> -555-444-3333<br> -555-111-1234<br></programlisting> -</example> - </sect2> - <sect2 id="language.variables.array.indexes"> - <title>Índices de Matrizes</title> - <para> - Você pode referencia matrizes pelo seu índice, muito - parecido com a sintaxe nativa do PHP. - </para> -<example> -<title>Acesando matrizes por seus índices</title> -<programlisting> -index.php: - -$smarty = new Smarty; -$smarty->assign('Contacts', - array('555-222-9876', - 'zaphod@slartibartfast.com', - array('555-444-3333', - '555-111-1234'))); -$smarty->display('index.tpl'); - -index.tpl: - -{$Contacts[0]}<br> -{$Contacts[1]}<br> -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}<br> -{$Contacts[2][1]}<br> - -MOSTRA: - -555-222-9876<br> -zaphod@slartibartfast.com<br> -555-444-3333<br> -555-111-1234<br></programlisting> -</example> - </sect2> - <sect2 id="language.variables.objects"> - <title>Objetos</title> - <para> - Propriedades de objetos definidos do PHP podem ser referenciados - especificando-se o nome da propriedade depois do símbolo '->'. - </para> -<example> -<title>Acessando propriedades de objetos</title> -<programlisting> -name: {$person->name}<br> -email: {$person->email}<br> - -MOSTRA: - -name: Zaphod Beeblebrox<br> -email: zaphod@slartibartfast.com<br></programlisting> -</example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="language.config.variables"> - <title>Variáveis carregadas de arquivos de configuração</title> - <para> - Variáveis que são carregadas de arquivos de configuração são referenciadas - colocando-se elas entre cancelas (#), ou com a variável smarty - <link - linkend="language.variables.smarty.config">$smarty.config</link>. - A segunda sintaxe é útil para coloca-las - entre aspas em um atributo. - </para> -<example> - -<title>Variáveis de configuração</title> -<programlisting> -foo.conf: - -pageTitle = "This is mine" -bodyBgColor = "#eeeeee" -tableBorderSize = "3" -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" - -index.tpl: - -{config_load file="foo.conf"} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> - -index.tpl: (sintaxe alternativa) - -{config_load file="foo.conf"} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> - - -SAÍDA: (mesma para ambos exemplos) - -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html></programlisting> -</example> - <para> - Variáveis de um arquivo de configuração não podem ser usadas até - que sejam carregadas de um arquivo de configuração. Este procedimento - é explicado posteriormente neste documento em - <command>config_load</command>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="language.variables.smarty"> - <title>A variável reservada {$smarty}</title> - <para> - A variável reservada {$smarty} pode ser utilizada para acessar variáveis - especiais do template. Segue uma lista completa. - </para> - - <sect2 id="language.variables.smarty.request"> - <title>Variáveis Request</title> - <para> - Variáveis request como get, post, cookies, server, - environment, e session podem ser acessadas como mostrado - nos exemplos abaixo: - </para> - <example> - - <title>Mostrando váriáveis request</title> - <programlisting> -{* mostra o valor de page da URL (GET) http://www.domain.com/index.php?page=foo *} -{$smarty.get.page} - -{* mostra a variável "page" de um formulário (POST) *} -{$smarty.post.page} - -{* mostra o valor do cookie "username" *} -{$smarty.cookies.username} - -{* mostra a variável do servidor "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* mostra a variável de ambiente do sistema "PATH" *} -{$smarty.env.PATH} - -{* mostra a variável de session do php "id" *} -{$smarty.session.id} - -{* mostra a variável "username" da união de get/post/cookies/server/env *} -{$smarty.request.username}</programlisting> -</example> - </sect2> - - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - O timestamp atual pode ser acessado com {$smarty.now}. - O número reflete o número de segundos passados desde o assim chamado - Epoch (1 de Janeiro de 1970) e pode ser passado diretamente para o - modificador date_format para mostrar a data. - </para> -<example> - -<title>Usando {$smarty.now}</title> -<programlisting> -{* usa o modificador date_format para mostrar a data e hora atuais *} -{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}</programlisting> -</example> - </sect2> - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - Você pode acessar o valor de constantes PHP diretamente. - </para> -<example> - -<title>Usando {$smarty.const}</title> -<programlisting> -{$smarty.const._MY_CONST_VAL}</programlisting> -</example> - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - A saída capturada via {capture}..{/capture} pode ser acessada usando a variável - {$smarty}. Veja a a seção sobre - <link linkend="language.function.capture">capture</link> para um exemplo. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - A variável {$smarty} pode ser usada para referir variáveis de configuração carregadas. - {$smarty.config.foo} é um sinonimo para {#foo#}. Veja a seção sobre - <link linkend="language.function.config.load">config_load</link> para um exemplo. - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}, {$smarty.foreach}</title> - <para> - A variável {$smarty} pode ser usada para se referir a propriedades 'section' e - 'foreach' de loop. Veja a documentação sobre - <link linkend="language.function.section">section</link> e - <link linkend="language.function.foreach">foreach</link>. - </para> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Esta variável contém o nome do template - atual que esta sendo processado. - </para> - </sect2> - - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}</title> - <para> - This variable is used for printing the left-delimiter value literally. - See also <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>. - </para> - </sect2> - <sect2 id="language.variables.smarty.rdelim"> - <title>{$smarty.rdelim}</title> - <para> - This variable is used for printing the right-delimiter value literally. - See also <link linkend="language.function.ldelim">{rdelim},{rdelim}</link>. - </para> - </sect2> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/getting-started.xml
Deleted
@@ -1,521 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- EN-Revision: 1.13 Maintainer: fernandoc Status: ready --> - -<part id="getting.started"> - <title>Iniciando</title> - - <chapter id="what.is.smarty"> - <title>O que é o Smarty?</title> - <para> - O Smarty é um sistema de templates para PHP. Mais especificamente, ele fornece uma maneira - fácil de controlar a separação da aplicação lógica e o conteúdo de sua apresentação. Isto é - melhor descrito em uma situação onde o programador da aplicação e o designer do template executam - diferentes funções, ou na maioria dos casos não são a mesma pessoa. - - </para> - <para> - Por exemplo, digamos que você - está criando uma página para web para mostrar um artigo de um jornal. O autor, a manchete, - a conclusão e o corpo do artigo são elementos de conteúdo, eles não contém informação alguma - sobre como eles devem ser mostrados. Ele são enviados ao Smarty pela aplicação, então o designer - do template edita o template e usa uma combinação de tags HTML e tags de templates para formatar - a apresentação destes elementos (tabelas HTML, cores de fundo, tamanhos de fontes, folhas de estilos, etc.). - Se algum dia o programador precisar alterar a maneira como o conteúdo do artigo é tratado (uma mudança na - lógica da aplicação). Esta mudança não afeta o design do template, o conteúdo será enviado ao template - exatamente da mesma forma. De modo semelhante, se o designer do template quiser redesenhar completamente - os templates, não é necessária nenhuma alteração na lógica da aplicação. Sendo assim, o programador - pode fazer mudanças na lógica da aplicação sem a necessidade de reestruturar os templates, e o designer - do template pode fazer mudanças nos templates sem alterar a lógica da aplicação. - </para> - <para> - Um objetivo do projeto Smarty é a separação da lógica do negócio e da lógica da apresentação. - Isto significa que os templates podem certamente conter a lógica sob a circunstância que é somente - para apresentação. Alguns exemplos são: a inclusão de outros templates, alternação de cores nas linhas - das tabelas, colocar o texto de uma variável em maiúsculo, percorrer uma matriz de dados e mostrá-la, etc. - são todos exemplos de apresentação lógica. Isto não significa que o Smarty força a separação da lógica de - negócios e da lógica de apresentação. O Smarty não tem conhecimento do que é o que em sua aplicação, portanto - colocar sua a lógica de negócio no template é problema seu. Caso você deseje que não haja <emphasis>nenhuma</emphasis> lógica - em seus templates você pode certamente fazer isso trocando o conteúdo para textos e variáveis somente. -<!-- ficou legal o texto abaixo, mas não segue exatamente toda tradução, espero aprovação do meu acima, ou mistura entre os dois: - Agora um resumo sobre o que o Smarty faz e NÃO faz. O Smarty não tenta separar completamente - a lógica dos templates. Não há problema com a lógica em seus templates sob a condição de que - esta lógica seja estritamente para apresentação. Uma palavra de aviso: mantenha a lógica - fora dos templates, e a lógica da apresentação fora da aplicação. Isto definitivamente - manterá as coisas mais manipuláveis - e escaláveis para o futuro próximo. --> - </para> - <para> - Um dos aspectos únicos do Smarty é seu sistema de compilação de templates. O Smarty lê os arquivos - de templates e cria scripts PHP à partir deles. Uma vez criados, eles são executados sem ser necessário - uma outra compilação do template novamente. Com isso, os arquivos de template não são 'parseados'(analisados) - toda vez que um template é solicitado, e cada template tem a total vantagem de soluções de cache do - compilador PHP, tais como: Zend Accelerator (<ulink url="&url.zend;">&url.zend;</ulink>) ou PHP Accelerator - (<ulink url="&url.ion-accel;">&url.ion-accel;</ulink>). - </para> - <para> - Algumas das características do Smarty: - </para> - <itemizedlist> - <listitem> - <para> - Ele é extremamente rápido. - </para> - </listitem> - <listitem> - <para> - Ele é eficiente visto que o interpretador do PHP faz o trabalho mais pesado. - </para> - </listitem> - <listitem> - <para> - Sem elevadas interpretações de template, apenas compila uma vez. - </para> - </listitem> - <listitem> - <para> - Ele está atento para só recompilar os arquivos de template que foram mudados. - </para> - </listitem> - <listitem> - <para> - Você pode fazer <link linkend="language.custom.functions">funções próprias</link> - e seus próprios <link linkend="language.modifiers">modificadores de variáveis</link>, assim - a linguagem de templates é extremamente extensível. - </para> - </listitem> - <listitem> - <para> - <link linkend="variable.left.delimiter">Delimitadores de tag</link> - configuráveis, sendo assim você pode usar {}, {{}}, <!--{}-->, etc. - </para> - </listitem> - <listitem> - <para> - Os construtores <link linkend="language.function.if">if/elseif/else/endif</link> são passados - para o interpretador de PHP, assim a sintaxe de expressão {if ...} pode ser tanto simples quanto - complexa da forma que você queira. - </para> - </listitem> - <listitem> - <para> - Aninhamento ilimitado de <link linkend="language.function.section">sections</link>, - ifs, etc. permitidos. - </para> - </listitem> - <listitem> - <para> - É possível <link linkend="language.function.php">embutir o código PHP</link> diretamente em - seus arquivos de template, apesar de que isto pode não ser necessário (não recomendado) visto que a - ferramenta é tão customizável. - </para> - </listitem> - <listitem> - <para> - Suporte de <link linkend="caching">caching embutido</link>. - </para> - </listitem> - <listitem> - <para> - <link linkend="template.resources">Fontes de template</link> arbitrários. - </para> - </listitem> - <listitem> - <para> - Funções de <link linkend="section.template.cache.handler.func">manipulação - de cache</link> customizadas. - </para> - </listitem> - <listitem> - <para> - <link linkend="plugins">Arquitetura de Plugin</link>. - </para> - </listitem> - </itemizedlist> - </chapter> - <chapter id="installation"> - <title>Instalação</title> - - <sect1 id="installation.requirements"> - <title>Requisitos</title> - <para> - Smarty requer um servidor web rodando o PHP 4.0.6 superior. - </para> - </sect1> - - <sect1 id="installing.smarty.basic"> - <title>Instalação Básica</title> - <para> - Instale os arquivos da biblioteca do Smarty que estão no subdiretório /libs/ da - distribuição. Estes são os arquivos PHP que você NÃO PRECISA editar. Eles são comuns - a todas as aplicações e eles só são atualizados quando você atualiza para uma nova - versão do Smarty. - </para> - <example> - <title>Arquivos da biblioteca do Smarty necessários</title> - <screen> -Smarty.class.php -Smarty_Compiler.class.php -Config_File.class.php -debug.tpl -/internals/*.php (all of them) -/plugins/*.php (todos eles para ser seguro, talvés a sua pagina precise de apenas alguns) - </screen> - </example> - - <para> - O Smarty utiliza uma <ulink url="&url.php-manual;define">constante</ulink> do PHP chamada - <link linkend="constant.smarty.dir">SMARTY_DIR</link> que é o - <emphasis role="bold">caminho completo</emphasis> para o diretório 'libs/' do Smarty. - Basicamente, se sua aplicação puder encontrar o arquivo - <filename>Smarty.class.php</filename>, você não precisa - definir <link linkend="constant.smarty.dir">SMARTY_DIR</link>, - o Smarty irá encontrar por si só. Entretanto, se - <filename>Smarty.class.php</filename> não estiver em seu include_path, ou você - não indicar um caminho absoluto para ele em sua aplicação, então você - deverá definir SMARTY_DIR manualmente. SMARTY_DIR <emphasis role="bold">deve incluir uma - barra ao final</emphasis>. - </para> - <para> - Aqui está um exemplo de como você cria uma instância do Smarty em seus scripts PHP: - </para> - - <example> - <title>Cria uma instância do Smarty</title> - <screen> -NOTE: Smarty has a capital 'S' -require_once('Smarty.class.php'); -$smarty = new Smarty(); - </screen> - </example> - - <para> - Tente rodar o script acima. Se você obtiver um erro dizendo que o arquivo - <filename>Smarty.class.php</filename> não pôde ser encontrado, você tem que fazer uma - das coisas a seguir: - </para> - - <example> - <title>Definir a constante SMARTY_DIR manualmente</title> - <screen> -// *nix style (note capital 'S') -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// windows style -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// hack version example that works on both *nix and windows -// Smarty is assumend to be in 'includes/' dir under current script -define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); - </screen> - </example> - - <example> - <title>Adicionar o diretório da biblioteca para o include_path do PHP</title> - <screen> -// Edite o seu arquivo php.ini, adicione o diretório da biblioteca do Smarty -// para o include_path e reinicie o servidor web. -// Então o código a seguir funcionaria: -require('Smarty.class.php'); -$smarty = new Smarty; - </screen> - </example> - - <example> - <title>Defina a constante SMARTY_DIR manualmente</title> - <screen> -define('SMARTY_DIR','/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR.'Smarty.class.php'); -$smarty = new Smarty; - </screen> - </example> - - <para> - Agora que os arquivos da biblioteca estão no lugar, é hora de configurar os diretórios - do Smarty para a sua aplicação. - </para> - <para> - O Smarty necessita de quatro diretórios, que são chamados - por padrão <filename class="directory">'templates/'</filename>, - <filename class="directory">'templates_c/'</filename>, <filename - class="directory">'configs/'</filename> e <filename - class="directory">'cache/'</filename>. - </para> - <para> - Cada um deles pode ser definido - pelas propriedades da classe Smarty - <link linkend="variable.template.dir"> - <varname>$template_dir</varname></link>, - <link linkend="variable.compile.dir"> - <varname>$compile_dir</varname></link>, - <link linkend="variable.config.dir"> - <varname>$config_dir</varname></link>, e - <link linkend="variable.cache.dir"> - <varname>$cache_dir</varname></link> repectivamente. - É altamente recomendado que - você configure um conjunto diferente destes diretórios para cada aplicação - que for usar o Smarty. - </para> - <para> - Certifique-se que você sabe a localização do 'document root' do seu servidor web. Em nosso exemplo, - o 'document root' é <filename class="directory">"/web/www.mydomain.com/docs/"</filename>. Os diretórios do Smarty - só são acessados pela biblioteca do Smarty e nunca acessados diretamente pelo navegador. Então para - evitar qualquer preocupação com segurança, é recomendado colocar estes diretórios - <emphasis>fora</emphasis> do document root. - </para> - <para> - Para o nosso exemplo de instalação, nós estaremos configurando o ambiente do Smarty - para uma aplicação de livro de visitas. Nós escolhemos uma aplicação só para o propósito - de uma convenção de nomeação de diretório. Você pode usar o mesmo ambiente para qualquer - aplicação, apenas substitua "guestbook" com o nome de sua aplicação. Nós colocaremos nossos - diretórios do Smarty dentro de - <filename class="directory">"/web/www.mydomain.com/smarty/guestbook/"</filename>. - </para> - <para> - Você precisará pelo menos de um arquivo dentro de seu 'document root', e que seja acessado pelo - navegador. Nós chamamos nosso - script de <emphasis>"index.php"</emphasis>, e o colocamos em um subdiretório dentro - do 'document root' chamado <filename class="directory">"/guestbook/"</filename>. - </para> - - <note> - <title>Nota Técnica</title> - <para> - É conveniente configurar o servidor web para que 'index.php' possa ser - idendificado como o índice padrão do diretório, asssim se você acessar - http://www.example.com/guestbook/, o script 'index.php' será executado - sem adicionar 'index.php' na URL. No Apache você pode configurar isto adicioanando - "index.php" ao final da sua configuração <emphasis>DirectoryIndex</emphasis> - (separe cada item com um espaço.) como no exemplo de httpd.conf - </para> - <para> - <emphasis>DirectoryIndex - index.htm index.html index.php index.php3 default.html index.cgi - </emphasis> - </para> - </note> - - <para> - Vamos dar uma olhada na estrutura de arquivos até agora: - </para> - - <example> - <title>Exemplo de estrutura de arquivo</title> - <screen> -<![CDATA[ -/usr/local/lib/php/Smarty-v.e.r/libs/Smarty.class.php -/usr/local/lib/php/Smarty-v.e.r/libs/Smarty_Compiler.class.php -/usr/local/lib/php/Smarty-v.e.r/libs/Config_File.class.php -/usr/local/lib/php/Smarty-v.e.r/libs/debug.tpl -/usr/local/lib/php/Smarty-v.e.r/libs/internals/*.php -/usr/local/lib/php/Smarty-v.e.r/libs/plugins/*.php - -/web/www.example.com/smarty/guestbook/templates/ -/web/www.example.com/smarty/guestbook/templates_c/ -/web/www.example.com/smarty/guestbook/configs/ -/web/www.example.com/smarty/guestbook/cache/ - -/web/www.example.com/docs/guestbook/index.php -]]> - </screen> - </example> - - <para> - O Smarty irá precisar de <emphasis role="bold">acesso de escrita</emphasis> - (usuários de windows por favor ignorem) em - <link linkend="variable.compile.dir"> - <emphasis>$compile_dir</emphasis></link> e - <link linkend="variable.cache.dir"> - <emphasis>$cache_dir</emphasis></link>, - então tenha certesa que o usuário do servidor web possa escrever. - Este é geralmente o usuário "nobody" e o grupo "nobody" (ninguém). Para - SO com X usuários, o usuário padrão é "www" e o grupo "www". Se você está usando Apache, você - pode olhar em seu arquivo httpd.conf (normalmente em "/usr/local/apache/conf/") para ver - qual o usuário e grupo estão sendo usados. - </para> - - <example> - <title>Configurando permissões de arquivos</title> - <screen> -<![CDATA[ -chown nobody:nobody /web/www.example.com/smarty/guestbook/templates_c/ -chmod 770 /web/www.example.com/smarty/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/ -chmod 770 /web/www.example.com/smarty/guestbook/cache/ -]]> - </screen> - </example> - - <note> - <title>Nota Técnica</title> - <para> - chmod 770 será a segurança correta suficientemente restrita, só permite ao usuário "nobody" e - o grupo "nobody" acesso de leitura/escrita aos diretórios. Se você gostaria de abrir o acesso de leitura - para qualquer um (na maioria das vezes para sua própria conveniência de querer ver estes - arquivos), você pode usar o 775 ao invés do 770. - </para> - </note> - - <para> - Nós precisamos criar o arquivo "index.tpl" que o Smarty vai ler. Ele estará localizado em seu - <link linkend="variable.template.dir">$template_dir</link>. - </para> - - <example> - <title>Editando /web/www.example.com/smarty/guestbook/templates/index.tpl</title> - <screen> - -{* Smarty *} - -Ola! {$name}, bem vindo ao Smarty! - </screen> - </example> - - - <note> - <title>Nota Técnica</title> - <para> - {* Smarty *} é um <link linkend="language.syntax.comments">comentário</link> - de template. Ele não é exigido, mas é uma prática boa - iniciar todos os seus arquivos de template com este com este comentário. Isto faz com - que o arquivo seja reconhecido sem levar em consideração a sua extensão. Por exemplo, - editores de texto poderiam reconhecer o arquivo e habilitar coloração de sintaxe especial. - </para> - </note> - - <para> - Agora vamos editar 'index.php'. Nós vamos criar uma instancia do Smarty, - <link linkend="api.assign">assign</link>(definir) uma - variável do template e <link linkend="api.display">display</link> - (mostrar) o arquivo 'index.tpl'. - </para> - - <example> - <title>Editando /web/www.example.com/docs/guestbook/index.php</title> - <screen> -<![CDATA[ -<?php - -// load Smarty library -require_once(SMARTY_DIR . 'Smarty.class.php'); - -$smarty = new Smarty(); - -$smarty->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </screen> - </example> - - <note> - <title>Nota Técnica</title> - <para> - No nosso exemplo, nós estamos definindo caminhos absolutor para todos os diretórios - do Smarty. Se <filename class="directory">/web/www.example.com/smarty/guestbook/</filename> - estiver dentro do seu include_path do PHP, então estas definições não são necessárias. - Entretando, é mais eficinte e (com experiência) causa - menos erros definir como caminhos absolutos. Isto faz ter certeza que o Smarty - esta lendo os arquivos dos diretórios que você quer. - </para> - </note> - - <para> - Agora carregue o arquivo <filename>index.php</filename> em seu navegador. - Você veria "Olá, Thomas! bem vindo ao Smarty" - </para> - <para> - Você completou a configuração básica para o Smarty! - </para> - </sect1> - <sect1 id="installing.smarty.extended"> - <title>Estendendo a configuração</title> - - <para> - Esta é uma continuação da <link - linkend="installing.smarty.basic">instalação básica</link>, - por favor leia a instalação básica primeiro! - </para> - <para> - Uma forma um pouco mais flexível de configurar o Smarty é estender a classe e inicializar seu ambiente de - Smarty. Então, ao invés de configurar caminhos de diretórios repetidamente, preencher as mesmas variáveis, - etc., nós podemos fazer isso para facilitar. Vamos criar um novo diretório "/php/includes/guestbook/" e criar um - novo arquivo chamado <filename>"setup.php"</filename>. Em nosso ambiente de exemplo, "/php/includes" está em nosso - include_path. Certifique-se de que você - também definiu isto, ou use caminhos de arquivos absolutos. - </para> - - <example> - <title>Editando /php/includes/guestbook/setup.php</title> - <screen> -<![CDATA[ -<?php -// Carrega a biblioteca Smarty -require('Smarty.class.php'); - -// O arquivo setup.php é um bom lugar para carregar -// arquivos necessarios para a aplicação e você -// pode faze-lo aqui mesmo. Um exemplo: -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function Smarty_GuestBook() - { - - // Construtor da classe. - // Este é chamado a cada nova instância. - - $this->Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </screen> - </example> - - <para> - Agora vamos alterar o arquivo index.php para usar o setup.php: - </para> - - <example> - <title>Editando /web/www.example.com/docs/guestbook/index.php</title> - <screen> - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook; - -$smarty->assign('nome','Thomas'); - -$smarty->display('index.tpl'); - </screen> - </example> - - <para> - Agora você pode ver que é extremamente simples criar uma instância do Smarty, apenas use - Smarty_GuestBook que automaticamente inicializa tudo para a nossa aplicação. - </para> - - </sect1> - - </chapter> -</part>
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/language-defs.ent
Deleted
@@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - -<!ENTITY SMARTYManual "Smarty - a ferramenta para compilar templates para PHP"> -<!ENTITY SMARTYDesigners "Smarty para Designers de Template"> -<!ENTITY SMARTYProgrammers "Smarty para Programadores"> -<!ENTITY Appendixes "Apêndices">
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/language-snippets.ent
Deleted
@@ -1,28 +0,0 @@ -<!-- EN-Revision: 1.5 Maintainer: fernandoc Status: ready --> - -<!ENTITY note.parameter.merge '<note> - <title>Nota tecnica</title> - <para> - O parâmetro <parameter>merge</parameter> respeita as chaves de matrizes, assim se - você combinar duas matrizes com índices númericos, elas devem se sobrescrever - ou resultar em chaves não sequenciais. Isto é diferente da função - <ulink url="&url.php-manual;array_merge">array_merge()</ulink> - do PHP o qual elimina os índices números e colocas os números novamente. - </para> -</note>'> - -<!ENTITY parameter.compileid '<para> - Como o terceiro parâmetro opcional, você pode passar - <parameter>$compile_id</parameter>. - Isto é no caso de você querer compilar diferentes versões do mesmo - template, como ter templates separados compilados para - línguas diferentes. Outro uso para - <parameter>$compile_id</parameter> é quando você for usar mais de um - <link linkend="variable.template.dir">$template_dir</link> - mas apenas um <link linkend="variable.compile.dir">$compile_dir</link>. - Defina um <parameter>$compile_id</parameter> separado para cada - <link linkend="variable.template.dir">$template_dir</link>, se não - templates com o mesmo nome irão se sobrescrever. Você pode - também definir a variável <link linkend="variable.compile.id">$compile_id</link> - ao invés de passar isto a cada chamada desta função. -</para>'> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/livedocs.ent
Deleted
@@ -1,7 +0,0 @@ -<!-- $Revision: 2138 $ --> -<!-- EN-Revision: 1.1 Maintainer: nlopess Status: ready --> - -<!ENTITY livedocs.author 'Autores:<br />'> -<!ENTITY livedocs.editors 'Editado por:<br />'> -<!ENTITY livedocs.copyright 'Copyright © %s por %s'> -<!ENTITY livedocs.published 'Publicado em: %s'>
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/make_chm_index.html
Deleted
@@ -1,41 +0,0 @@ -<HTML> -<!-- EN-Revision: 1.1 Maintainer: nlopess Status: ready --> -<!-- $Revision: 2631 $ --> -<HEAD> - <TITLE>Manual do Smarty</TITLE> - <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=ISO-8859-1"> - <LINK REL="STYLESHEET" HREF="style.css"> -</HEAD> -<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> -<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> -<TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" -CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">Manual do Smarty</TH></TR><TR><TD -COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> -<TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> - -<P><TABLE ALIGN="CENTER"> -<TR><TD ALIGN="CENTER"> -<H1 CLASS="title">Manual do Smarty</H1> -<DIV CLASS="author">Monte Ohrt</DIV> -<DIV CLASS="author">Andrei Zmievski</DIV> -<DIV CLASS="author">Fernando Correa da Conceição</DIV> -<DIV CLASS="author">Marcelo Perreira Fonseca da Silva</DIV> -<DIV CLASS="author">Taniel Franklin</DIV> -<DIV CLASS="author">Thomas Gonzalez Miranda</DIV> -</TD></TR></TABLE> -<BR><P ALIGN="CENTER">Este arquivo foi gerado em: [GENTIME]<BR> -Clique em <A HREF="http://www.smarty.net/download-docs.php">http://www.smarty.net/download-docs.php</A> -para obter a versão atual.</P> - -<BR><P CLASS="copyright" ALIGN="CENTER">Copyright © 2001 - 2005 New Digital Group, Inc.</P> - -</TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> -<TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> -<TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> -<TR><TD COLSPAN="3"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD> -</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> -</BODY></HTML>
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/preface.xml
Deleted
@@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- EN-Revision: 1.3 Maintainer: thomasgm Status: ready --> - <preface id="preface"> - <title>Prefácio</title> - <para> - Esta é sem dúvida uma das perguntas mais freqüentes nas listas de discussões sobre PHP: - como eu faço meus scripts em PHP independentes do layout? O PHP é vendido como sendo uma - "linguagem de script embutida no HTML", após escrever alguns projetos que misturam HTML e - PHP naturalmente vem uma idéia de que a separação da forma e conteúdo é uma boa prática [TM]. - Além disso, em muitas empresas os papéis de designer e programador são separados. - Conseqüentemente, a busca por um sistema de templates continua. - </para> - <para> - Na nossa empresa por exemplo, o desenvolvimento de uma aplicação é feito da seguinte - maneira: Após a documentação necessária estar pronta, o designer faz o esboço da interface - e entrega ao programador. O programador implementa as regras de negócio no PHP e usa o - esboço da interface para criar o esqueleto dos templates. O projeto então está nas mãos - da pessoa responsável pelo layout HTML da página que então transforma o esboço em um layout - realmente funcional. O projeto talvez vá e volte entre programação/designer HTML várias vezes. - Porém, é importante ter um bom suporte à templates porque os programadores não querem ter que - ficar mexendo com HTML e não querem que os designers estraguem seus códigos PHP. Os designers - precisam de ajuda para alterar os arquivos de configuração, blocos dinâmicos e outros - problemas relacionados à interface usada, mas eles não querem ocupar-se com as complexidades - da linguagem de programação PHP. - </para> - <para> - Analisando muitas das soluções de templates disponíveis para PHP hoje em dia, a - maioria somente disponibilizada uma forma rudimentar de substituição de variáveis - dentro dos templates e trabalham de forma limitada com as funcionalidades dos blocos - dinâmicos. Mas nossas necessidades necessitam de um pouco mais do que isso. Nós não - queríamos que programadores mexendo com layout em HTML, mas isso é praticamente inevitável. - Por exemplo, se um designer quiser que as cores de fundo se alternam em blocos dinâmicos, - isso tem que ser feito pelo programador antecipadamente. Nós também precisamos que os designers - possam usar seus próprios arquivos de configuração, e usar as variáveis definidas nestes arquivos - em seus templates. E a lista de necessidades continua... - </para> - <para> - Nós começamos à escrever as especificações para um sistema de templates por volta de 1999. - Após o término das especificações, nós começamos a escrever um sistema de template em C - que esperávamos ser aceito para rodar com o PHP. Não só esbarramos em muitas barreiras - técnicas, como também houve um enorme debate sobre o que exatamente um sistema de template - deveria ou não fazer. À partir desta experiência, nós decidimos que o sistema de template - fosse escrito para ser uma classe do PHP, para que qualquer um usa-se da forma que lhe fosse - mais conveniente, então nós escrevemos um sistema que fazia exatamente, foi aí que surgiu o - <productname>SmartTemplate</productname> (obs: esta classe nunca foi enviada ao público). - Foi uma classe que fez quase tudo que nós queríamos: substituição de variáveis, suporte à - inclusão de outros templates, integração com arquivos de configuração, código PHP embutido, - funcionalidades 'if' limitada e blocos dinâmicos muito mais robustos que poderiam ser aninhados - muitas vezes. Foi tudo feito usando expressões reguladores e códigos confusos, como diríamos, - impenetrável. Era um sistema também extremamente lento em grandes aplicativos por causa de todo - o trabalho que era feito pelas expressões regulares e o 'parsing'(interpretação) em cada chamada - ao aplicativo. O maior problema do ponto de vista de um programador foi o espantoso trabalho que - era necessário para configurar e processar os blocos dinâmicos dos templates. Como faríamos - esse sistema ser simples de usar? - </para> - <para> - Foi então que veio a visão do que hoje é conhecido como Smarty. Nós sabemos o quão - rápido é um código PHP sem o sobrecarregamento de um sistema de templates. Nós também - sabemos quão meticuloso e assustador é a linguagem PHP aos olhos de um designer atual, - e isso tudo poderia ser mascarado usando uma sintaxe simples nos templates. Então o que - acontece se nós combinarmos essas duas forças? Assim, nasceu o Smarty... - </para> - </preface>
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <chapter id="advanced.features"> - <title>Advanced Features</title> -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; - -&programmers.advanced-features.section-template-cache-handler-func; - -&programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="advanced.features.objects"> - <title>Objetos</title> - <para> - O Smarty permite acesso a objetos do PHP através de seus templates. Há duas formas de acessá-los. - Uma forma é registrar objetos para o template, então os acessa via sintaxe similar a funções - customizáveis. A outra forma é atribuir objetos para os templates e acessá-los como se fossem - uma variável atribuída. O primeiro método tem uma sintaxe de template muito mais legal. E também - mais segura, à medida que um objeto registrado pode ser restrito a certos métodos e - propriedades. Entretanto, um objeto registrado não pode ser - posto em loop ou ser atribuido em arrays de - objetos, etc. O método que você escolher será determinado pelas suas necessidades, mas use o - primeiro método se possível para - manter um mínimo de sintaxe no template. - </para> - <para> - Se a segurança está habilitada, nenhum dos métodos privados ou funções podem acessados - (começando com "_"). Se um método e propriedade de um mesmo nome existir, o método será - usado. - </para> - <para> - Você pode restringir os métodos e propriedades que podem ser acessados listando os em um array - como o terceiro parâmetro de registração. - </para> - <para> - Por definição, parâmetros passados para objetos através dos templates são passados da mesma - forma que funções customizáveis os obtém. Um array associativo é passado como o primeiro parâmetro, - e o objeto smarty como o segundo. Se você quer que os parâmetros passados um de cada vez - por cada argumento como passagem de parâmetro de objeto tradicional, defina o quarto parâmetro - de registração para falso. - </para> - <para> - O quinto parâmetro opcional só tem efeito com <parameter>format</parameter> - sendo <literal>true</literal> e contém - uma lista de métods de ob que seriam tratados como - blocos. Isso significa que estes métodos - tem uma tag de fechamento no template - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) e - os parâmetros para os métodos tem a mesma sinopse como os parâmetros para - block-function-plugins: Eles pegam 4 parâmetros - <parameter>$params</parameter>, - <parameter>$content</parameter>, - <parameter>&$smarty</parameter> e - <parameter>&$repeat</parameter> e eles também comportam-se como - block-function-plugins. - </para> - <example> - <title>usando um objeto registrado ou atribuído</title> - <programlisting> -<?php -// O objeto - -class My_Object { - function meth1($params, &$smarty_obj) { - return "this is my meth1"; - } -} - -$myobj = new My_Object; -// registrando o objeto (será por referência) -$smarty->register_object("foobar",$myobj); -// Se você quer restringie acesso a certos métodos ou propriedades, liste-os -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// Se você quer usar o formato de parâmetro de objeto tradicional, passe um booleano de false -$smarty->register_object("foobar",$myobj,null,false); - -// Você pode também atribuir objetos. Atribua por referência quando possível. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> - -TEMPLATE: - -{* accessa nosso objeto registrado *} -{foobar->meth1 p1="foo" p2=$bar} - -{* você pode também atribuir a saída *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* acessa nosso objeto atribuído *} -{$myobj->meth1("foo",$bar)}</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="advanced.features.outputfilters"> - <title>Output Filters (Filtros de Saída)</title> - <para> - Quando o template é invocado via display() ou fetch(), sua saída pode ser enviada - através de um ou mais filtros de saída. Estes diferem dos postfilters porque postfilters - operam em templates compilados antes de serem salvos para o disco, e os filtros de saída - operam na saída do template quando - ele é executado. - </para> - - <para> - Filtros de Saída podem ser ou - <link linkend="api.register.outputfilter">registrado</link> ou carregado - do diretório de plugins usando a função - <link linkend="api.load.filter">load_filter()</link> ou configurando a variável - <link linkend="variable.autoload.filters">$autoload_filters</link>. - O Smarty passará a saída como o primeiro argumento, - e espera a função retornar o resultado - do processamento. - </para> - <example> - <title>usando um filtro de saída de template</title> - <programlisting> -<?php -// ponha isto em sua aplicação -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// registra o outputfilter -$smarty->register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// agora qualquer ocorrência de um endereço de email na saída do template terá uma -// simples proteção contra spambots -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="advanced.features.postfilters"> - <title>Postfilters</title> - <para> - Os postfilters de template são funções de PHP nas quais seus templates são rodados - imediatamente depois de serem compilados. Os postfilters podem ser ou - <link linkend="api.register.postfilter">registrado</link>carrgados do diretório de - plugins usando a função - <link linkend="api.load.filter">load_filter()</link> ou pela - variável de configuração - <link linkend="variable.autoload.filters">$autoload_filters</link>. - O Smarty passará o código fonte do template compilado - como o primeiro argumento, e espera - a função retornar o resultado do processamento. - </para> - <example> - <title>usando um postfilter de template</title> - <programlisting> -<?php -// ponha isto em sua aplicação -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Created by Smarty! -->\n\" ?>\n".$tpl_source; -} - -// registra o postfilter -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> - -{* compiled Smarty template index.tpl *} -<!-- Created by Smarty! --> -{* rest of template content... *}</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="advanced.features.prefilters"> - <title>Prefilters</title> - <para> - Os prefilters de Template são funções de PHP nas quais seus templates são rodados - antes de serem compilados. Isto é bom para preprocessamento de seus templates para remover - comentários indesejados, mantendo o olho no que as pessoas estão colocando nos seus templates, - etc. Prefilters podem ser ou <link linkend="api.register.prefilter">registrado</link> - ou carregado do diretório de plugins usando a função - <link linkend="api.load.filter">load_filter()</link> - ou pela configuração da variável - <link linkend="variable.autoload.filters">$autoload_filters</link>. - O Smarty passará o código fonte do template como o - primeiro argumeto, e espera a função retornar - o código fonte do template resultante. - </para> - <example> - <title>Usando um prefilter de template</title> - <programlisting> -<?php -// Ponha isto em sua aplicação -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace("/<!--#.*-->/U","",$tpl_source); -} - -// registrar o prefilter -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> - -{* Smarty template index.tpl *} -<!--# esta linha será removida pelo prefilter --></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="section.template.cache.handler.func"> - <title>Função Manipuladora de Cache</title> - <para> - Como uma alternativa ao uso do mecanismo de caching padrão baseado em arquivo, você pode - especificar uma função de manipulação de cache customizada que será usada para ler, escrever - e limpar arquivos de cache. - </para> - <para> - Crie uma função em sua aplicação que o Smarty usará como um manipulador de cache. Defina o - nome dela na variável de classe - <link linkend="variable.cache.handler.func">$cache_handler_func</link>. - O Smarty agora usará esta para manipular dados no cache. O primeiro argumento é a ação, - que é um desses 'read', 'write' e 'clear'. O segundo parâmetro é o objeto do Smarty. O - terceiro parâmetro é o conteúdo que está no cache. - No write, o Smarty passa o conteúdo em - cache nestes parâmetros. No 'read', o Smarty espera sua função aceitar este parâmetro por - referência e preenche ele com os dados em cache. No 'clear', passa uma variável simulacra aqui - visto que ela não é usada. O quarto parâmetro - é o nome do arquivo de template (necessário para - ler/escrever), o quinto parâmetro é a cache_id (opcional), - e o sexto é a compile_id (opcional). - </para> - <para> - Note que: O último parâmetro ($exp_time)foi adicionado no Smarty-2.6.0. - </para> - <example> - <title>exemplo usando MySQL como uma fonte de cache</title> - <programlisting> -<?php -/* - -exemplo de uso: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -mysql database is expected in this format: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // set db host, user and pass here - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // cria um cache id unico - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // save cache to database - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_contents = gzuncompress($row["CacheContents"]); - } else { - $cache_contents = $row["CacheContents"]; - } - $return = $results; - break; - case 'write': - // save cache to database - - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - // clear cache info - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // clear them all - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - // error, unknown action - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="template.resources"> - <title>Recursos (Resources)</title> - <para> - Os templates podem vir de uma variedade de fontes. Quando você exibe (display) ou - busca (fetch) um template, ou inclui um template de dentro de outro template, você - fornece um tipo de recurso, seguido pelo - caminho e nome do template apropriado. Se um - recurso não é dado explicitamente o valor de - <link linkend="variable.default.resource.type">$default_resource_type</link> é assumido. - </para> - <sect2 id="templates.from.template.dir"> - <title>Templates partindo do $template_dir</title> - <para> - Templates a partir do $template_dir não exigem um recurso de template, - apesar de você usar o arquivo: resource for consistancy. - Apenas forneça o caminho para o template que você quer usar em relação ao diretório - root $template_dir. - </para> - <example> - <title>Usando templates partindo do $template_dir</title> - <programlisting> -// from PHP script -$smarty->display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // Igual ao de cima - -{* de dentro do template do Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* igual ao de cima *}</programlisting> - </example> - </sect2> - <sect2 id="templates.from.any.dir"> - <title>Templates partindo de qualquer diretório</title> - <para> - Os Templates de fora do $template_dir exigem o arquivo: - tipo de recurso do template, - seguido pelo caminho absoluto e nome do template. - </para> - <example> - <title>usando templates partindo de qualquer diretório</title> - <programlisting> -// de dentro do script PHP -$smarty->display("file:/export/templates/index.tpl"); -$smarty->display("file:/path/to/my/templates/menu.tpl"); - -{* de dentro do template do Smarty *} -{include file="file:/usr/local/share/templates/navigation.tpl"}</programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Caminhos de arquivos do Windows</title> - <para> - Se você está usando uma máquina windows, caminhos de arquivos normalmente incluem uma letra - do drive (C:) no começo do nome do caminho. - Esteja certo de usar "file:" no caminho para - evitar conflitos de nome e obter os resultados desejados. - </para> - <example> - <title>usando templates com caminhos de arquivo do windows</title> - <programlisting> -// de dentro do script PHP -$smarty->display("file:C:/export/templates/index.tpl"); -$smarty->display("file:F:/path/to/my/templates/menu.tpl"); - -{* de dentro do template do Smarty *} -{include file="file:D:/usr/local/share/templates/navigation.tpl"}</programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>Templates partindo de outras fontes</title> - <para> - Você pode resgatar templates usando qualquer fonte possível de você acessar com PHP: banco - de dados, sockets, LDAP, e assim por diante. - Você faz isto escrevendo as funções de plugin - de recurso e registrando elas com o Smarty. - </para> - - <para> - Veja a seção <link linkend="plugins.resources">plugins de recurso</link> - para mais informação sobre as funções - que você deve fornecer. - </para> - - <note> - <para> - Note que você pode ativar manualmente o recurso de <literal>arquivo</literal> embutido, mas não pode fornecer um recurso que busca templates a partir do sistema de arquivos de alguma outra forma registrando sob um outro nome de recurso. - <literal>file</literal> resource, but you can provide a resource - that fetches templates from the file system in some other way by - registering under another resource name. - </para> - </note> - <example> - <title>usando recursos customizáveis</title> - <programlisting> -// no script PHP - -// ponha estas funções em algum lugar de sua aplicação -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // faça o banco de dados chamar aqui para buscar o seu template, - // preenchendo o $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // faça o banco de dados chamar daqui para preencher a $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // assume-se que todos os templates são seguros - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // não usado para templates -} - -// registrar o nome de recurso "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// usando o recurso a partir do script PHP -$smarty->display("db:index.tpl"); - -{* usando o recurso de dentro do template do Smarty *} -{include file="db:/extras/navigation.tpl"}</programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Função Manipuladora de Template Padrão</title> - <para> - Você pode especificar a função que é usada para devolver o conteúdo do template no evento - em que o template não pode ser devolvido de seu recurso. Um uso disto é para criar templates - que não existem "on-the-fly" - (templates cujo conteúdo flutua muito, bastante variável). - </para> - <example> - <title>usando a função manipuladora de template padrão</title> - <programlisting> -<?php -// ponha esta função em algum lugar de sua aplicação - -function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) -{ - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - // cria um arquivo de template, retorna o conteúdo. - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // não é arquivo - return false; - } -} - -// defina a manipuladora padrão -$smarty->default_template_handler_func = 'make_template'; -?></programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<chapter id="api.functions"> - <title>Métodos</title> -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.append.by.ref"> - <title>append_by_ref</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>append_by_ref</function></funcdef> - <paramdef>string <parameter>varname</parameter></paramdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>void <function>append_by_ref</function></funcdef> - <paramdef>string <parameter>varname</parameter></paramdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - <paramdef>boolean <parameter>merge</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso é usado para adicionar vlaores para o template por referência. - Se você adicionar uma variável por referência e então alterar este valor - o valor adicionado enxergará a alteração também. Para objetos, - append_by_ref() também evita uma cópia em memória do objeto adicionado. - Veja o manual do PHP em referenciando variáveis para uma melhor explanação sobre o assunto. - Se você passar o terceiro parâmetro opcional para true, - o valor irá ser mesclado com o array atual ao invés de adicioná-lo. - </para> - <note> - <title>Notas Técnicas</title> - <para> - O parâmetro de união respeita a chave do array, então se você mesclar - dois índices númericos de arrays, eles devem sobrescrever-se um ao outro ou - em resultados não sequências de chave. Isso é diferente da função de PHP array_merge() - que apaga as chaves numéricas e as renumera. - </para> - </note> - <example> - <title>append_by_ref</title> - <programlisting> -// appending name/value pairs -$smarty->append_by_ref("Name",$myname); -$smarty->append_by_ref("Address",$address);</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-append.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.append"> - <title>append</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>append</function></funcdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>void <function>append</function></funcdef> - <paramdef>string <parameter>varname</parameter></paramdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>void <function>append</function></funcdef> - <paramdef>string <parameter>varname</parameter></paramdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - <paramdef>boolean <parameter>merge</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso é usado para adicionar um elemento para um array fixado. Se você adicionar - uma string como valor, isso irá converter-se para um valor de array e então adicioná-lo. - Você pode explicitamente passar pares nomes/valores, ou arrays associativos - contendo o par nome/valor. Se você passar o terceiro parâmetro opcional para true, - o valor unir-se ao array atual - ao invés de ser adicionado. - </para> - <note> - <title>Notas Técnicas</title> - <para> - O parâmetro de união respeita a chave do array, então se você - mesclar dois índices númericos de um array, eles devem sobrescrever-se - um ao outro ou em resultados não sequências de chave. Isso é diferente da função de PHP array_merge() - que apaga as chaves e as renumera. - </para> - </note> - <example> - <title>append</title> - <programlisting> -// passing name/value pairs -$smarty->append("Name","Fred"); -$smarty->append("Address",$address); - -// passing an associative array -$smarty->append(array("city" => "Lincoln","state" => "Nebraska"));</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.assign.by.ref"> - <title>assign_by_ref</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>assign_by_ref</function></funcdef> - <paramdef>string <parameter>varname</parameter></paramdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso é usado para fixar valores para o template por referência ao invés de fazer uma cópia. - Veja o manual do PHP na parte sobre referência de variáveis para uma explanação mais detalhada. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Isso é usado para fixar valores para o template por referência. - Se você fixar uma variável por referência e então alterar o valor dela, - o valor fixado enxergará o valor alterado também. - Para objetos, assign_by_ref() também restringe uma cópia de objetos fixados - em memória. - Veja o manual do php em refereciando variáveis para uma melhor explanação. - </para> - </note> - <example> - <title>assign_by_ref</title> - <programlisting> -// passing name/value pairs -$smarty->assign_by_ref("Name",$myname); -$smarty->assign_by_ref("Address",$address);</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-assign.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.assign"> - <title>assign</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>assign</function></funcdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>void <function>assign</function></funcdef> - <paramdef>string <parameter>varname</parameter></paramdef> - <paramdef>mixed <parameter>var</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso é usado para fixar valores para o template. Você pode - explicitamente passar pares de nomes/valores, ou um array associativo - contendo o par de nome/valor. - </para> - <example> - <title>assign</title> - <programlisting> -// passing name/value pairs -$smarty->assign("Name","Fred"); -$smarty->assign("Address",$address); - -// passing an associative array -$smarty->assign(array("city" => "Lincoln","state" => "Nebraska"));</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.clear.all.assign"> - <title>clear_all_assign</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear_all_assign</function></funcdef> - <paramdef><parameter></parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso limpa o valor de todas as variáveis fixadas. - </para> -<example> -<title>clear_all_assign</title> -<programlisting> -// clear all assigned variables -$smarty->clear_all_assign();</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.clear.all.cache"> - <title>clear_all_cache</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear_all_cache</function></funcdef> - <paramdef>int <parameter>expire time</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso limpa completamente o cache de template. Como um parâmetro - opcional, você pode fornecer um ano mínimo em segundos - que o arquivo de cache deve ter antes deles serem apagados. - </para> -<example> -<title>clear_all_cache</title> -<programlisting> -// clear the entire cache -$smarty->clear_all_cache();</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.clear.assign"> - <title>clear_assign</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear_assign</function></funcdef> - <paramdef>string <parameter>var</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso limpa o valor de uma variável fixada. Isso - pode ser um valor simples, ou um array de valores. - </para> -<example> -<title>clear_assign</title> -<programlisting> -// clear a single variable -$smarty->clear_assign("Name"); - -// clear multiple variables -$smarty->clear_assign(array("Name","Address","Zip"));</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.clear.cache"> - <title>clear_cache</title> - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam choice="opt"><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire time</parameter></methodparam> - </methodsynopsis> - <para> - Isso limpa o cache de um template específico. Se você tem - múltiplos caches para este arquivo, você limpa o cache - específico fornecendo o cache id como o segundo parâmetro. - Você pode também passar um compile id como um terceiro parâmetro. - Você pode "agrupar" templates juntos e então eles podem ser removidos - como um grupo. Veja o <link linkend="caching">caching section</link> para maiores informações. Como um quarto - parâmetro opcional, você pode fornecer um ano mínimo em segundos - que o arquivo de cache deve - ter antes dele ser apagado. - </para> -<example> -<title>clear_cache</title> -<programlisting> -// clear the cache for a template -$smarty->clear_cache("index.tpl"); - -// clear the cache for a particular cache id in an multiple-cache template -$smarty->clear_cache("index.tpl","CACHEID");</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.clear.compiled.tpl"> - <title>clear_compiled_tpl</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear_compiled_tpl</function></funcdef> - <paramdef>string <parameter>tpl_file</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso limpa a versão compilada do recurso de template especificado, - ou todos os arquivos de templates compilados se nenhum for especificado. - Essa função é para uso avançado somente, não normalmente necessária. - </para> -<example> -<title>clear_compiled_tpl</title> -<programlisting> -// clear a specific template resource -$smarty->clear_compiled_tpl("index.tpl"); - -// clear entire compile directory -$smarty->clear_compiled_tpl();</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.clear.config"> - <title>clear_config</title> - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - - <para> - Isso limpa todas as variáveis de configuração fixadas. Se um nome de variável - é fornecido, somente esta variável é apagada. - </para> -<example> -<title>clear_config</title> -<programlisting> -// clear all assigned config variables. -$smarty->clear_config(); - -// clear one variable -$smarty->clear_config('foobar');</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.config.load"> - <title>config_load</title> - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Isso carrega o arquivo de configuração de dados e fixa-o para o - template. Isso funciona idêntico a função <link - linkend="language.function.config.load"> - config_load</link>. - </para> - <note> - <title>Notas Técnicas</title> - <para> - À partir da Smarty 2.4.0, variáveis de template fixadas são - mantidas através de fetch() e display(). Variáveis de configuração carregadas - de config_load() são sempre de escopo global. Arquivos de configuração - também são compilados para execução rápida, e repeita o <link - linkend="variable.force.compile">force_compile</link> e <link - linkend="variable.compile.check">compile_check</link> parâmetros de configuração. - </para> - </note> -<example> -<title>config_load</title> -<programlisting> -// load config variables and assign them -$smarty->config_load('my.conf'); - -// load a section -$smarty->config_load('my.conf','foobar');</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-display.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.display"> - <title>display</title> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Isso mostra o template. Fornecendo um válido <link - linkend="template.resources">template resource</link> - tipo e path. Como um segundo parâmetro opcional, você pode passar - um cache id. Veja o <link linkend="caching">caching - section</link> para maiores informações. - </para> - <para> - Como um terceiro parâmetro opcional, você pode passar um compile id. - Isso está no evento que você quer compilar diferentes versões do - mesmo template, como ter templates compilados separadamente para diferentes linguagens. - Outro uso para compile_id é quando você usa mais do que um $template_dir - mas somente um $compile_dir. Seta um compile_id em separado para cada $template_dir, - de outra maneira templates com mesmo nome irão sobrescrever-se um ao outro. - Você pode também setar a variável <link - linkend="variable.compile.id">$compile_id</link> ao invés de - passar isso para cada chamada - de display(). - </para> -<example> -<title>display</title> -<programlisting> -include("Smarty.class.php"); -$smarty = new Smarty; -$smarty->caching = true; - -// only do db calls if cache doesn't exist -if(!$smarty->is_cached("index.tpl")) -{ - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" = > "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// display the output -$smarty->display("index.tpl");</programlisting> -</example> - <para> - Use a sintaxe para <link - linkend="template.resources">template resources</link> para - mostrar arquivos fora do $template_dir directory. - </para> -<example> -<title>Exemplos de recursos da função display</title> -<programlisting> -// absolute filepath -$smarty->display("/usr/local/include/templates/header.tpl"); - -// absolute filepath (same thing) -$smarty->display("file:/usr/local/include/templates/header.tpl"); - -// windows absolute filepath (MUST use "file:" prefix) -$smarty->display("file:C:/www/pub/templates/header.tpl"); - -// include from template resource named "db" -$smarty->display("db:header.tpl");</programlisting> -</example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,85 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.fetch"> - <title>fetch</title> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Isso retorna a saída do template ao invés de mostrá-lo. - Fornecendo um tipo ou path válido <link - linkend="template.resources">template resource</link>. - Como um segundo parâmetro opcional, você pode passar o cache id. - Veja o <link linkend="caching">caching - section</link> para maiores informações. - </para> - <para> - Como um terceiro parâmetro opcional, você pode passar um compile id. - Isso está no evento que você quer compilar diferentes versões do - mesmo template, como ter templates compilados separadamente para - diferentes linguagens. Outro uso para compile_id é quando você - usa mais do que um $template_dir mas somente um $compile_dir. Seta - um compile_id em separado para cada $template_dir, de outra maneira - templates com mesmo nome irão sobrescrever-se uns aos outros. Você - pode também setar a variável <link - linkend="variable.compile.id">$compile_id</link> ao invés - de passá-la para cada chamada de fetch(). - </para> -<example> -<title>fetch</title> -<programlisting> -include("Smarty.class.php"); -$smarty = new Smarty; - -$smarty->caching = true; - -// only do db calls if cache doesn't exist -if(!$smarty->is_cached("index.tpl")) -{ - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" = > "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// capture the output -$output = $smarty->fetch("index.tpl"); - -// do something with $output here - -echo $output;</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.get.config.vars"> - <title>get_config_vars</title> - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Isso retorna o valor da variável de configuração dada. - Se nenhum parâmetro é dado, um array de todas as variáveis dos arquivos de configurações é retornado. - </para> -<example> -<title>get_config_vars</title> -<programlisting> -// get loaded config template var 'foo' -$foo = $smarty->get_config_vars('foo'); - -// get all loaded config template vars -$config_vars = $smarty->get_config_vars(); - -// take a look at them -print_r($config_vars);</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.get.registered.object"> - <title>get_registered_object</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>get_registered_object</function></funcdef> - <paramdef>string <parameter>object_name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso retorna uma referência para um objeto registrado. - Isso é útil para dentro de uma função customizada quando você - precisa acessar diretamente um objeto registrado. - </para> -<example> -<title>get_registered_object</title> -<programlisting> -function smarty_block_foo($params, &$smarty) { - if (isset[$params['object']]) { - // get reference to registered object - $obj_ref =& $smarty->&get_registered_object($params['object']); - // use $obj_ref is now a reference to the object - } -}</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.get.template.vars"> - <title>get_template_vars</title> - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Isso retorna o valor de uma variável fixada. Se nenhum parâmetro - é dado, um array de todas as variávels fixadas é retornado. - </para> -<example> -<title>get_template_vars</title> -<programlisting> -// get assigned template var 'foo' -$foo = $smarty->get_template_vars('foo'); - -// get all assigned template vars -$tpl_vars = $smarty->get_template_vars(); - -// take a look at them -print_r($tpl_vars);</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.is.cached"> - <title>is_cached</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>is_cached</function></funcdef> - <paramdef>string <parameter>template</parameter></paramdef> - <paramdef>[string <parameter>cache_id</parameter>]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso retorna true se há um cache válido para esse template. - Isso somente funciona se <link - linkend="variable.caching">caching</link> está setado para true. - </para> -<example> -<title>is_cached</title> -<programlisting> -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl")) { - // do database calls, assign vars here -} - -$smarty->display("index.tpl");</programlisting> -</example> - <para> - Você pode também passar um cache id como um segundo parâmetro opcional - no caso você quer múltiplos caches para o template dado. - </para> -<example> -<title>is_cached with multiple-cache template</title> -<programlisting> -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl","FrontPage")) { - // do database calls, assign vars here -} - -$smarty->display("index.tpl","FrontPage");</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.load.filter"> - <title>load_filter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>load_filter</function></funcdef> - <paramdef>string <parameter>type</parameter></paramdef> - <paramdef>string <parameter>name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Essa função pode ser usada para carregar um filtro de plugin. O primeiro - argumento especifica o tipo do filtro para carregar e pode ser um - dos seguintes: 'pre', 'post', ou 'output'. O segundo argumento - especifica o nome do filtro de plugin, por exemplo, 'trim'. - </para> -<example> -<title>Carregando filtros de plugins</title> -<programlisting> -$smarty->load_filter('pre', 'trim'); // load prefilter named 'trim' -$smarty->load_filter('pre', 'datefooter'); // load another prefilter named 'datefooter' -$smarty->load_filter('output', 'compress'); // load output filter named 'compress'</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-block.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.block"> - <title>register_block</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_block</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - <paramdef>mixed <parameter>impl</parameter></paramdef> - <paramdef>bool <parameter>cacheable</parameter></paramdef> - <paramdef>array or null <parameter>cache_attrs</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar dinamicamente blocos de funções de plugins. - Passe no bloco de nomes de função, seguido por uma chamada de função PHP - que implemente isso. - </para> - - <para> - A chamada de uma função-php <parameter>impl</parameter> pode ser (a) - uma string contendo o nome da função ou (b) um array no formato - <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo um - método desta classe. - </para> - <para> -<parameter>$cacheable</parameter> e <parameter>$cache_attrs</parameter> podem ser omitidos na maior parte dos casos. Veja <link linkend="caching.cacheable">Controlando modos de Saída de Cache dos Plugins</link> para obter informações apropriadas. - </para> -<example> -<title>register_block</title> -<programlisting> -/* PHP */ -$smarty->register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) { - if (isset($content)) { - $lang = $params['lang']; - // do some translation with $content - return $translation; - } -} - -{* template *} -{translate lang="br"} - Hello, world! -{/translate}</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-compiler-function.xml
Deleted
@@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.compiler.function"> - <title>register_compiler_function</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_compiler_function</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - <paramdef>mixed <parameter>impl</parameter></paramdef> - <paramdef>bool <parameter>cacheable</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar dinamicamente uma função de plugin compilador. - Passe no nome da função compilador, seguido pela função - PHP que implemente isso. - </para> - <para> - A chamada para função-php <parameter>impl</parameter> - pode ser uma string contendo o nome da função ou (b) um array - no formato <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo o método - desta classe. - </para> - <para> - <parameter>$cacheable</parameter> pode ser omitido na maioria - dos casos. Veja <link linkend="caching.cacheable">Controlando modos de Saída de Cache dos Plugins</link> - para obter informações apropriadas. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-function.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.function"> - <title>register_function</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_function</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - <paramdef>mixed <parameter>impl</parameter></paramdef> - <paramdef>bool <parameter>cacheable</parameter></paramdef> - <paramdef>array or null <parameter>cache_attrs</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar funções de plugins dinamicamente para o template. - Passe no template o nome da função, - seguido pelo nome da função PHP que implemente isso. - </para> - <para> - A chamada para função-php <parameter>impl</parameter> pode ser (a) - uma string contendo o nome da função ou (b) um array no formato - <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo um método - desta classe. - </para> - <para> -<parameter>$cacheable</parameter> e <parameter>$cache_attrs</parameter> podem ser omitidos na maioria dos casos. Veja <link linkend="caching.cacheable">Controlando modos de Saída Cache dos Plugins</link> para obter informações apropriadas. - </para> -<example> -<title>register_function</title> -<programlisting> -$smarty->register_function("date_now", "print_current_date"); - -function print_current_date ($params) { - extract($params); - if(empty($format)) - $format="%b %e, %Y"; - return strftime($format,time()); -} - -// agora você pode usar isso no Smarty para mostrar a data atual: {date_now} -// ou, {date_now format="%Y/%m/%d"} para formatar isso.</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-modifier.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.modifier"> - <title>register_modifier</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_modifier</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - <paramdef>mixed <parameter>impl</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para modificar dinamicamente plugins registrados. - Passe no template o nome do modificador, seguido da função PHP - que implemente isso. - </para> - <para> - A chamada da função-php <parameter>impl</parameter> - pode ser (a) uma strin contendo o nome da função - ou (b) um array no formato - <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo um método desta classe. - </para> - -<example> -<title>register_modifier</title> -<programlisting> -// let's map PHP's stripslashes function to a Smarty modifier. - -$smarty->register_modifier("sslash","stripslashes"); - -// now you can use {$var|sslash} to strip slashes from variables</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.object"> - <title>register_object</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_object</function></funcdef> - <paramdef>string <parameter>object_name</parameter></paramdef> - <paramdef>object <parameter>$object</parameter></paramdef> - <paramdef>array <parameter>allowed methods/properties</parameter></paramdef> - <paramdef>boolean <parameter>format</parameter></paramdef> - <paramdef>array <parameter>block methods</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Isso é para registrar um objeto para uso no template. Veja a - <link linkend="advanced.features.objects">seção de objetos</link> - do manual para examplos. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-outputfilter.xml
Deleted
@@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.outputfilter"> - <title>register_outputfilter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_outputfilter</function></funcdef> - <paramdef>mixed <parameter>function</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar dinamicamente filtros de saída para operações - na saída do template antes de mostrá-lo. Veja - <link linkend="advanced.features.outputfilters">Filtros de Saída de Templates</link> - para maiores informações de como configurar uma - função de filtro de saída. - </para> - <para> - A chamada da função-php <parameter>function</parameter> pode - ser (a) uma string contendo um nome de função ou (b) um array no formato - <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo um método - desta classe. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-postfilter.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.postfilter"> - <title>register_postfilter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_postfilter</function></funcdef> - <paramdef>mixed <parameter>function</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar dinamicamente pósfiltros para rodar templates - após eles terem sido compilados. Veja - <link linkend="advanced.features.postfilters">pósfiltros de template</link> para - maiores informações de como configurar funções de pósfiltragem. - </para> - <para> - A chamada da função-php <parameter>function</parameter> pode - ser (a) uma string contendo um nome de função ou (b) um array no formato - <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo um método - desta classe. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-prefilter.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.prefilter"> - <title>register_prefilter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_prefilter</function></funcdef> - <paramdef>mixed <parameter>function</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar préfiltros dinamicamente para rodar - templates antes deles serem compilados. Veja <link - linkend="advanced.features.prefilters">template prefilters</link> para - maiores informações de como configurar uma função de préfiltragem. - </para> - <para> - A chamada da função-php <parameter>function</parameter> pode - ser (a) uma string contendo um nome de função ou (b) um array no formato - <literal>array(&$object, $method)</literal> com - <literal>&$object</literal> sendo uma referência para um - objeto e <literal>$method</literal> sendo uma string - contendo o nome do método ou (c) um array no formato - <literal>array(&$class, $method)</literal> com - <literal>$class</literal> sendo um nome de classe e - <literal>$method</literal> sendo um método - desta classe. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.register.resource"> - <title>register_resource</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>register_resource</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - <paramdef>array <parameter>resource_funcs</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para registrar dinamicamente um recurso de plugin com a Smarty. - Passe no nome o recurso e o array de funções - PHP que implementam isso. Veja - <link linkend="template.resources">template resources</link> - para maiores informações de como configurar uma função para retornar - templates. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Um nome de recurso deve ter ao menos dois caracteres de comprimento. - Um caracter do nome de recurso irá ser ignorado e usado como parte do - path do arquivo como, $smarty->display('c:/path/to/index.tpl'); - </para> - </note> - <para> - A função-php-array <parameter>resource_funcs</parameter> - deve ter 4 ou 5 elementos. Com 4 elementos os elementos são - as functions-callbacks para as respectivas funções "source", - "timestamp", "secure" e "trusted" de recurso. - Com 5 elementos o primeiro elemento tem que ser um objeto por referência - ou um nome de classe do objeto ou uma classe implementando o recurso e os 4 - elementos seguintes tem que ter os nomes de métodos - implementando "source", "timestamp", - "secure" e "trusted". - </para> -<example> -<title>register_resource</title> -<programlisting> -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted"));</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.template.exists"> - <title>template_exists</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>template_exists</function></funcdef> - <paramdef>string <parameter>template</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Essa função checa se o template especificado existe. Isso pode - aceitar um path para o template no filesystem ou um recurso de string - especificando o template. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-trigger-error.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.trigger.error"> - <title>trigger_error</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>trigger_error</function></funcdef> - <paramdef>string <parameter>error_msg</parameter></paramdef> - <paramdef>[int <parameter>level</parameter>]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - Essa função pode ser usada para saída de uma mensagem de erro usando Smarty. - O parâmetro <parameter>level</parameter> pode ser um dos valores usados - para a função de php trigger_error(), ex.: E_USER_NOTICE, - E_USER_WARNING, etc. Por padrão é E_USER_WARNING. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-block.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.block"> - <title>unregister_block</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_block</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para desregistrar dinamicamente um bloco de funções de plugin. - Passe no bloco o nome da função. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.compiler.function"> - <title>unregister_compiler_function</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_compiler_function</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use essa função para desregistrar uma função de compilador. Passe - o nome da função de compilador. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-function.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.function"> - <title>unregister_function</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_function</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para desregistrar dinamicamente uma função de plugin do template. - Passe no template o nome da função. - </para> -<example> -<title>unregister_function</title> -<programlisting> -// nós não queremos que designers template tenham acesso aos nossos arquivos do sistema - -$smarty->unregister_function("fetch");</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-modifier.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.modifier"> - <title>unregister_modifier</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_modifier</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para desregistrar dincamimente um modificador de plugin. - Passe no template o nome do modificador. - </para> -<example> -<title>unregister_modifier</title> -<programlisting> -// nós não queremos que designers de template usem strip tags para os elementos - -$smarty->unregister_modifier("strip_tags");</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.object"> - <title>unregister_object</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_object</function></funcdef> - <paramdef>string <parameter>object_name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para desregistrar um objeto. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.outputfilter"> - <title>unregister_outputfilter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_outputfilter</function></funcdef> - <paramdef>string <parameter>function_name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para desregistrar dinamicamente um filtro de saída. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-postfilter.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.postfilter"> - <title>unregister_postfilter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_postfilter</function></funcdef> - <paramdef>string <parameter>function_name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para dinamicamente desregistrar um pósfiltro. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-prefilter.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="api.unregister.prefilter"> - <title>unregister_prefilter</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_prefilter</function></funcdef> - <paramdef>string <parameter>function_name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para dinamicamente desregistrar um préfiltro. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="api.unregister.resource"> - <title>unregister_resource</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>unregister_resource</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Use isso para dinamicamente desregistrar um recurso de plugin. - Passe no parâmetro nome o nome do recurso. - </para> -<example> -<title>unregister_resource</title> -<programlisting> -$smarty->unregister_resource("db");</programlisting> -</example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<chapter id="api.variables"> - <title>Variáveis</title> - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - Se há algum filtro que você deseja carregar em cada chamada de template, - você pode especificar-lhes usando essa variável e a Smarty irá - automaticamente carregá-los para você. A variável é um array associativo - onde as chaves são tipos de filtro e os valores são arrays de nomes de filtros. - Por exemplo: - <informalexample> - <programlisting> -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); - </programlisting> - </informalexample> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - Isso é o nome do diretório onde os caches do template são - armazenados. Por padrão isso é "./cache", significando que isso irá olhar - para o diretório de cache no mesmo diretório que executar scripts PHP. - Você pode tambe usar sua própria função customizada de manuseamento de cache - para manipular arquivos de cache, - que irão ignorar esta configuração. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Essa configuração deve ser ou um relativo - ou absoluto path. include_path não é usado para escrever em arquivos. - </para> - </note> - <note> - <title>Notas Técnicas</title> - <para> - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - Você pode fornecer uma função padrão para manipular arquivos de cache ao invés de - usar o método built-in usando o $cache_dir. Veja a - seção <link linkend="section.template.cache.handler.func">cache - handler function section</link> para obter detalhes. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - Isso é o comprimento de tempo em segundos que um cache de template é válido. - Uma vez que este tempo está expirado, o cache irá ser regerado. $caching deve - ser configurado para "true" para $cache_lifetime para ter algum propósito. Um valor de -1 - irá forçar o cache a nunca expirar. Um valor de 0 irá fazer com que o cache seja sempre regerado - (bom somente para testes, o método mais eficiente de desabilitar caching é setá-lo para - <link - linkend="variable.caching">$caching</link> = false.) - </para> - <para> - Se <link linkend="variable.force.compile">$force_compile</link> está - habilitado, os arquivos de cache serão regerados todo o tempo, eficazmente - desativando caching. Você pode limpar todos os arquivos de cache com a função <link - linkend="api.clear.all.cache">clear_all_cache()</link>, ou - arquivos individuais de cache (ou grupos) com a função <link - linkend="api.clear.cache">clear_cache()</link>. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Se você quiser dar para certos templates seu próprio tempo de vida de um cache, - você poderia fazer isso configurando <link linkend="variable.caching">$caching</link> = 2, - então configure $cache_lifetime para um único valor somente antes de chamar display() - ou fetch(). - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.cache.modified.check"> - <title>$cache_modified_check</title> - <para> - Se configurado para true, Smarty irá respeitar o If-Modified-Since - header enviado para o cliente. Se o timestamp do arquivo de cache - não foi alterado desde a última visita, então um header "304 Not Modified" - irá ser enviado ao invés do conteúdo. Isso funciona somente em arquivos - de cache sem tags <command>insert</command>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.caching"> - <title>$caching</title> - <para> - Isto diz à Smarty se há ou não saída de cache para o template. - Por padrão isso está setado para 0, ou desabilitado. Se seu template gerar - conteúdo redundante, é necessário ligar o caching. Isso - irá resultar num ganho significativo de performance. Você pode também ter múltiplos - caches para o mesmo template. Um valor de 1 ou 2 caching habilitados. 1 diz - à Smarty para usar a variável atual $cache_lifetime para determinar se o - cache expirou. Um valor 2 diz à Smarty para usar o valor cache_lifetime - então para quando o cache foi gerado. Desta maneira você pode setar o - cache_lifetime imediatamente antes de buscar o template para ter controle - sobre quando este cache em particular expira. Veja também <link - linkend="api.is.cached">is_cached</link>. - </para> - <para> - Se $compile_check está habilitado, o conteúdo do cache irá ser regerado se - algum dos templates ou arquivos de configuração que são parte deste cache estiverem - alterados. Se $force_compile está habilitado, o conteúdo do cache irá sempre ser - regerado. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - Em cima de cada requisição da aplicação PHP , Smarty testa para ver se o - template atual foi alterado (diferentes time stamp) desde a última - compilação. Se isso foi alterado, ele irá recompilar o template. Se o template - não foi compilado, ele irá compilar de qualquer maneira dessa configuração. - Por padrão esta variável é setada como true. Uma vez que a aplicação está - em produção (templates não serão alterados), o passo compile_check - não é necessário. Tenha certeza de setar $compile_check para "false" para - maior performance. Note que se você alterar isso para "false" e o - arquivo de template está alterado, você *não* irá ver a alteração desde que - o template seja recompilado. Se caching está habilitado e - compile_check está habilitado, então os arquivos de cache não serão regerados se - um complexo arquivo de ou um arquivo de configuração foi atualizado. Veja <link - linkend="variable.force.compile">$force_compile</link> ou <link - linkend="api.clear.compiled.tpl">clear_compiled_tpl</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - Esse é o nome do diretório onde os template compilados estão localizados - Por padrão isso é "./templates_c", significando que isso irá - olhar para o diretório de templates no mesmo diretório que está executando - o script PHP. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Essa configuração deve ser um path relativo ou um path absoluto. - include_path não é usado para escrever em arquivos. - </para> - </note> - <note> - <title>Notas Técnicas</title> - <para> - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Identificador de compilação persistente. Como uma alternativa - para passar o mesmo compile_id para cada chamada de função, você - pode setar este compile_id e isso irá ser usado implicitamente após isso. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Especifica o nome do compilador de classes que - Smarty irá usar para compilar templates. O padrão é 'Smarty_Compiler'. - Para usuários avançados somente. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - Se setado para true, os valores do arquivo de configuração de on/true/yes e off/false/no - ficará convertido para valores booleanos automaticamente. Desta forma você pode usar os - valores em um template como: {if #foobar#} ... {/if}. Se foobar estiver - on, true ou yes, a condição {if} irá executar. true por padrão. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - Este é o diretório usado para armazenar arquivos de configuração usados nos - templates. O padrão é "./configs", significando que isso irá - olhar para o diretório de templates no mesmo diretório que está executando - o script PHP. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.config.fix.newlines"> - <title>$config_fix_newlines</title> - <para> - Se setado para true, mac e dos newlines (\r e \r\n) no arquivo de configuração serão - convertidos para \n quando eles forem interpretados. true é o padrão. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - Se configurado para true, variáveis lidas no arquivo de configurações irão sobrescrever - uma a outra. Do contrário, as variáveis serão guardadas em um array. Isso é - útil se você quer armazenar arrays de dados em arquivos de configuração, somente lista - tempos de cada elemento múltiplo. true por padrão. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - Se configurado para true, esconde seções (nomes de seções começados com um período) - no arquivo de configuração podem ser lidos do template. Tipicamente você deixaria - isto como false, desta forma você pode armazenar dados sensitivos no arquivo de configuração - como um parâmetro de banco de - dados e sem preocupar-se sobre o template carregá-los. false é o padrão. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-debug-tpl.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.debug.tpl"> - <title>$debug_tpl</title> - <para> - Este é o nome do arquivo de template usado para o console de debug. - Por padrão, é nomeado como debug.tpl e está localizado no <link - linkend="constant.smarty.dir">SMARTY_DIR</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - Isso permite caminhos alternativos de habilitar o debug. NONE não significa - que métodos alternativos são permitidos. URL significa quando a palavra - SMARTY_DEBUG foi encontrado na QUERY_STRING, que o debug está habilitado - para a chamada do script. - Se $debugging é true, esse valor é ignorado. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - Isso habilita o <link - linkend="chapter.debugging.console">debugging console</link>. - O console é uma janela de javascript que informa à você - sobre os arquivos de template incluídos e variáveis - destinadas para a página de template atual. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - Isso é um array de modificadores implicitamente aplicados par cada - variável no template. Por Exemplo, para cada variável HTML-escape por padrão, - use o array('escape:"htmlall"'); Para fazer a variável isenta para modificadores - padrão, passe o modificador especial "smarty" com um valor de parâmetro "nodefaults" - modificando isso, como - {$var|smarty:nodefaults}. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - Isso diz à Smarty qual tipo de recurso usar implicitamente. - O valor padrão é 'file', significando que $smarty->display('index.tpl'); e - $smarty->display('file:index.tpl'); são idênticos no significado. - Veja o capítulo <link linkend="template.resources">resource</link> para detalhes. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - Essa função é chamada quando um template não pode ser obtido - de seu recurso. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.4 Maintainer: fernandoc Status: ready --> -<sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - Quando este valor é definido para um valor não nulo, o seu valor é usado como o nível de - <ulink url="&url.php-manual;error_reporting">error_reporting</ulink> - do php dentro de <link linkend="api.display">display()</link> - e <link linkend="api.fetch">fetch()</link>. Quando <link - linkend="chapter.debugging.console">debugging</link> esta ativado este valor - é ignorado e o nível de erro é mantido intocado. - </para> - <para> - Veja também - <link linkend="api.trigger.error">trigger_error()</link>, - <link linkend="chapter.debugging.console">debugging</link> - e - <link linkend="troubleshooting">Troubleshooting</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - Isso força Smarty para (re)compilar templates a cada requisição. - Essa configuração sobreescreve $compile_check. Por padrão - isso está desabilitado. Isso é útil para desenvolvimento e debug. - Isso nunca deve ser usado em ambiente de produção. Se caching - está habilitado, os arquivo(s) de cache serão regerados à todo momento. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-global-assign.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.global.assign"> - <title>$global_assign</title> - <para> - Essa é a lista de variáveis que estão sempre implicitamente fixadas - para o template engine. Isso está acessível para fazer variáveis - globais ou variáveis do servidor disponíveis para todo o template - sem ter que fixá-las manualmente. Cada elemento em - $global_assign deve ser um nome de uma variável global, - ou um par de chave/valor, onde a chave é o nome do array global - array e o valor é o array de variáveis fixadas deste array global. $SCRIPT_NAME é - globalmente fixado por padrão - para $HTTP_SERVER_VARS. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Variáveis de servidor podem ser acessadas através da variável - $smarty, como {$smarty.server.SCRIPT_NAME}. Veja a seção - da variável - <link linkend="language.variables.smarty">$smarty</link>. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - Este é o delimitador esquerdo usado para a linguagem de template. - O padrão é "{". - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - Isso diz à Smarty como manipular códigos PHP contido nos - templates. Há quatro possíveis configurações, padrão sendo - SMARTY_PHP_PASSTHRU. Note que isso NÃO fará efeito com códigos php - dentro de tags <link linkend="language.function.php">{php}{/php}</link> - no template. - </para> - <itemizedlist> - <listitem><para>SMARTY_PHP_PASSTHRU - Smarty echos tags as-is.</para></listitem> - <listitem><para>SMARTY_PHP_QUOTE - Smarty quotes the - tags as html entities.</para></listitem> - <listitem><para>SMARTY_PHP_REMOVE - Smarty - irá remover as tags do template.</para></listitem> - <listitem><para>SMARTY_PHP_ALLOW - Smarty irá executar as - tags como códigos PHP.</para></listitem> - </itemizedlist> - <para> - NOTE: Usando códigos PHP code dentro de templates é altamente desencorajado. - Use <link linkend="language.custom.functions">custom functions</link> ou - <link linkend="language.modifiers">modifiers</link> ao invés disso. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - Esse é o diretório onde Smarty irá procurar por plugins que são necessários. - O Padrão é "plugins" sob o SMARTY_DIR. Se vocêes especificar um - path relativo, Smarty irá primeiro procurar sob o SMARTY_DIR, então - relativo para o cwd (current working directory), então relativo para cada - entrada no seu PHP include path. - </para> - <note> - <title>Notas técnicas</title> - <para> - Para uma melhor performance, não configure seu plugins_dir para ter que usar o - PHP include path. Use um path absoluto, ou um path relativo para - SMARTY_DIR ou o cwd. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.request.use.auto.globals"> - <title>$request_use_auto_globals</title> - <para> - Especifica se a Smarty deve usar variáveis globais do php $HTTP_*_VARS[] - ($request_use_auto_globals=false que é o valor padrão) ou - $_*[] ($request_use_auto_globals=true). Isso afeta templates - que fazem uso do {$smarty.request.*}, {$smarty.get.*} etc. . - Atenção: Se você setar $request_use_auto_globals para true, <link - linkend="variable.request.vars.order">variable.request.vars.order - </link> não terão efeito mas valores de configurações do php - <literal>gpc_order</literal> são usados. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-request-vars-order.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.request.vars.order"> - <title>$request_vars_order</title> - <para> - A ordem na qual as variáveis requeridas serão registradas, similar ao - variables_order no php.ini - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - Este é o delimitador direito usado para a linguagem de template. - O padrão é "}". - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-secure-dir.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.secure.dir"> - <title>$secure_dir</title> - <para> - Isso é um array de todos os diretórios locais que são considerados - seguros. {include} e {fetch} usam estes (diretórios) quando security está habilitado. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-security-settings.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.security.settings"> - <title>$security_settings</title> - <para> - Essas configurações são usadas para cancelar ou especificar configurações - de segurança quando security está habilitado. Estas possuem as seguintes configurações possíveis: - </para> - <itemizedlist> - <listitem><para>PHP_HANDLING - true/false. Se setado para true, - a configuração de $php_handling não é checada para security.</para></listitem> - <listitem><para>IF_FUNCS - Isso é um array de nomes de funções PHP permitidas - nos blocos IF.</para></listitem> - <listitem><para>INCLUDE_ANY - true/false. Se setado para true, algum - template pode ser incluído para um arquivo do sistema, apesar de toda a lista de - $secure_dir.</para></listitem> - <listitem><para>PHP_TAGS - true/false. Se setado para true, as tags {php}{/php} - são permitidas nos templates.</para></listitem> - <listitem><para>MODIFIER_FUNCS - Isso é um array de nomes de funções PHP permitidas - usadas como modificadores de variável.</para></listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-security.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.security"> - <title>$security</title> - <para> - $security true/false, o padrão é false. Security é bom para situações - quando você tem partes inconfiáveis editando o template - (via ftp por exemplo) e você quer reduzir os riscos de comprometimento - da segurança do sistema através da linguagem de template. - Habilitando-o faz-se cumprir as regras da linguagem de template, - a menos que especificamente cancelada com $security_settings: - </para> - <itemizedlist> - <listitem><para>Se $php_handling está setado para SMARTY_PHP_ALLOW, isso é implicitamente - alterado para SMARTY_PHP_PASSTHRU</para></listitem> - <listitem><para>Funçõs PHP não são permitidas em blocos IF, - exceto estes especificados no $security_settings</para></listitem> - <listitem><para>templates podem ser somente incluidos no diretório - listado em $secure_dir array</para></listitem> - <listitem><para>Arquivos locais podem ser somente trazidos do diretório - listado em $secure_dir usando no array {fetch}</para></listitem> - <listitem><para>Estas tags {php}{/php} não são permitidas</para></listitem> - <listitem><para>Funções PHP não são permitidas como modificadores, exceto - estes especificados no $security_settings</para></listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - Este é o nome padrão do diretório de template. Se você não fornecer - um tipo de recurso quando incluir arquivos, então ele irá ser encontrado aqui. - Por padrão isso é "./templates", significando que isso irá - olhar para o diretório de templates no mesmo diretório que está executando - o script PHP. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Não é recomendado colocar este diretório sob um diretório - document root do seu webserver. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - $trusted_dir somente usado quando $security está habilitado. Isso é um array - de todos os diretórios que são considerados confiáveis. Diretórios confiáveis - são onde você irá deixar seus scripts php que são executados diretamente para o - template com <link linkend="language.function.include.php">{include_php}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-undefined.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="variable.undefined"> - <title>$undefined</title> - <para> - Isso seta o valor de $undefined para Smarty, o padrão é null. - Atualmente isso é somente usado para setar variáveis indefinidas em - $global_assign para o valor padrão. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> - Configure isso para false se seu ambiente de PHP não permite a criação de - subdiretórios pela Smarty. Subdiretórios são muito eficientes, então use-os se você - conseguir. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/caching.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<chapter id="caching"> - <title>Caching</title> - <para> - Caching é usado para aumentar a velocidade de chamada para <link - linkend="api.display">display()</link> ou <link - linkend="api.fetch">fetch()</link> salvando isso num arquivo de saída. Se há uma versão - de cache disponível para a chamada, isso é mostrado ao invés de regerar a saída de dados. - Caching pode fazer coisas tremendamente rápidas, - especialmente templates com longo tempo computacional. Desde a saída de dados do - display() ou fetch() está em cache, um arquivo de cache poderia ser composto por - diversos arquivos de templates, arquivos de configuração, etc. - </para> - <para> - Desde que templates sejam dinâmicos, é importante isso ter cuidado com - o que você está fazendo cache e por quanto tempo. Por exemplo, se você está mostrando - a página principal do seu website na qual as alterações de conteúdo são muito frequentes, - isso funciona bem para cache dessa por uma hora ou mais. Um outro modo, se você está - mostrando uma página com um mapa do tempo contendo novas informações por minuto, não - faz sentido fazer cache nesta página. - </para> -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="caching.cacheable"> - <title>Controlling Cacheability of Plugins' Output</title> - <para> -Desde Smarty-2.6.0 os caches de plugins pode ser declarados -ao registrá-los. O terceiro parâmetro para register_block, -register_compiler_function e register_function é chamado -<parameter>$cacheable</parameter> e o padrão para true que é também -o comportamento de plugins na versão da Smarty antecessores à 2.6.0 - </para> - - <para> -Quando registrando um plugin com $cacheable=false o plugin é chamado todo o tempo na página que está sendo mostrada, sempre se a página vier do cache. A função de plugin tem um comportamento levemente como uma função <link linkend="plugins.inserts">insert</link>. - </para> - - <para> -Em contraste para <link linkend="language.function.insert">{insert}</link> o atributo para o plugin não está em cache por padrão. Eles podem ser declarados para serem cacheados com o quarto parâmetro <parameter>$cache_attrs</parameter>. <parameter>$cache_attrs</parameter> é um array de nomes de atributos que devem ser cacheados, então a função de plugin pega o valor como isso sendo o tempo que a página foi escrita para o cache todo o tempo isso é buscado do cache. - </para> - - <example> - <title>Prevenindo uma saída de plugin de ser cacheada</title> - <programlisting> -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // fetch $obj from db and assign... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); - - -index.tpl: - -Tempo restante: {remain endtime=$obj->endtime}</programlisting> - <para> -O número de segundos até que o endtime de $obj alcança alterações em cada display de página, mesmo que a página esteja em cache. Desde o atributo endtime esteja em cache o objeto somente tem que ser puxado do banco de dados quando a página está escrita para o cache mas não em requisições subsequentes da página. -</para> - </example> - - - <example> - <title>Prevenindo uma passagem inteira do template para o cache</title> - <programlisting> -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); - - -index.tpl: - -Page created: {"0"|date_format:"%D %H:%M:%S"} - -{dynamic} - -Now is: {"0"|date_format:"%D %H:%M:%S"} - -... do other stuff ... - -{/dynamic}</programlisting> - - </example> - <para> -Quando recarregado a página que você irá notar que ambas as datas diferem. Uma é "dinâmica" e uma é "estática". Você pode fazer qualquer coisa entre as tags {dynamic}...{/dynamic} e ter certeza que isso não irá ficar em cache como o restante da página. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/caching/caching-groups.xml
Deleted
@@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="caching.groups"> - <title>Grupos de Cache</title> - <para> - Você pode fazer agrupamentos mais elaborados configurando grupos de cache_id. Isso é - realizado pela separação de cada sub-grupo com uma barra vertical "|" no valor do - cache_id. Você pode ter muitos sub-grupos com você desejar. - </para> - <example> - <title>Grupos de cache_id</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear all caches with "sports|basketball" as the first two cache_id groups -$smarty->clear_cache(null,"sports|basketball"); - -// clear all caches with "sports" as the first cache_id group. This would -// include "sports|basketball", or "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports|basketball");</programlisting> - </example> - <note> - <title>Notas Técnicas</title> - <para> - O agrupamento de cache id NÃO use o path do template como alguma parte do cache_id. - Por exemplo, se você tem display('themes/blue/index.tpl'), você não pode limpar o cache - para tudo que estiver sob o diretório "themes/blue". Se você quiser fazer isso, você deve - agrupá-los no cache_id, como display('themes/blue/index.tpl','themes|blue'); Então - você pode limpar os caches para o - tema azul com with clear_cache(null,'themes|blue'); - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="caching.multiple.caches"> - <title>Multiple Caches Per Page</title> - <para> - Você pode ter múltiplos arquivos de cache para uma simples chamada de display() - ou fetch(). Vamos dizer que uma chamada para display('index.tpl') deve ter vários - conteúdo de saída diferentes dependendo de alguma condição, e você quer separar - os caches para cada um. Você pode fazer isso passando um cache_id como um - segundo parâmetro para a chamada da função. - </para> - <example> - <title>Passando um cache_id para display()</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id);</programlisting> - </example> - <para> - Acima, nós estamos passando a variável $my_cache_id para display() com o - cache_id. Para cada valor único de $my_cache_id, um cache em separado irá ser - gerado para index.tpl. Nesse exemplo, "article_id" foi passado em URL e é usado - como o cache_id. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Tenha muito cuidado quando passar valores do cliente (web brownser) dentro - da Smarty (ou alguma aplicação PHP.) Embora o exemplo acima usando o article_id - vindo de uma URL pareça fácil, isso poderia ter consequências ruins. O - cache_id é usado para criar um diretório no sistema de arquivos, então se o usuário - decidir passar um valor extremamente largo para article_id, ou escrever um script - que envia article_ids randômicos em um ritmo rápido, isso poderia possivelmente causar - problemas em nível de servidor. Tenha certeza de limpar algum dado passado antes de usar isso. Nessa instãncia, talvez você - saiba que o article_id tem um comprimento de 10 caracteres e isso é constituído somente - de alfa-numéricos, e deve ser um - article_id válido no database. Verifique isso! - </para> - </note> - <para> - Tenha certeza de passar o mesmo cache_id como o segundo - parâmetro para <link linkend="api.is.cached">is_cached()</link> e - <link linkend="api.clear.cache">clear_cache()</link>. - </para> - <example> - <title>Passando um cache_id para is_cached()</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id);</programlisting> - </example> - <para> - Você pode limpar todos os caches para um cache_id em particular passando - o primeiro parâmetro null para clear_cache(). - </para> - <example> - <title>Limpando todos os caches para um cache_id em particular</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear all caches with "sports" as the cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports");</programlisting> - </example> - <para> - Desta maneira, você pode "agrupar" seus - caches juntos dando-lhes o mesmo cache_id. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="caching.setting.up"> - <title>Configurando Caching</title> - <para> - A primeira coisa a fazer é habilitar o caching. Isso é feito pela configuração <link - linkend="variable.caching">$caching</link> = true (or 1.) - </para> - <example> - <title>Habilitando Caching</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$smarty->display('index.tpl');</programlisting> - </example> - <para> - Com caching habilitado, a chamada para a função display('index.tpl') irá trazer - o template como usual, mas também - salva uma cópia disso para o arquivo de saída (uma cópia de cache) in the <link linkend="variable.cache.dir">$cache_dir</link>. - Na próxima chamada de display('index.tpl'), a cópia em cache será usada - ao invés de trazer novamente o template. - </para> - <note> - <title>Notas Técnicas</title> - <para> - Os arquivos no $cache_dir são nomeados com similaridade ao nome do arquivo de template. - Embora eles terminem com a extensão ".php", eles não são realmente scripts executáveis de php. - Não edite estes arquivos! - </para> - </note> - <para> - Cada página em cache tem um período de tempo limitado determinado por <link - linkend="variable.cache.lifetime">$cache_lifetime</link>. O padrão do valor é - 3600 segundos, ou 1 hora. Após o tempo expirar, o cache é regerado. - É possível dar tempos individuais para caches com seu próprio tempo - de expiração pela configuração $caching = 2. Veja a documentação em <link - linkend="variable.cache.lifetime">$cache_lifetime</link> para detalhes. - </para> - <example> - <title>Configurando cache_lifetime por cache</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // lifetime is per cache - -// set the cache_lifetime for index.tpl to 5 minutes -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// set the cache_lifetime for home.tpl to 1 hour -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTE: the following $cache_lifetime setting will not work when $caching = 2. -// The cache lifetime for home.tpl has already been set -// to 1 hour, and will no longer respect the value of $cache_lifetime. -// The home.tpl cache will still expire after 1 hour. -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl');</programlisting> - </example> - <para> - Se <link linkend="variable.compile.check">$compile_check</link> está habilitado, - cada arquivo de template e arquivo de configuração que está envolvido com o arquivo em cache - é checado por modificações. Se algum destes arquivos foi modificado desde que o último cache - foi gerado, o cache é imediatamente regerado. - Isso é ligeiramente uma forma de optimização de performance de overhead, deixe $compile_check setado para false. - </para> - <example> - <title>Habilitando $compile_check</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl');</programlisting> - </example> - <para> - Se <link linkend="variable.force.compile">$force_compile</link> está habilitado, - os arquivos de cache irão sempre ser regerados. Isso é efetivamente desativar caching. - $force_compile é usualmente para propósitos de debug somente, um caminho mais - eficiente de desativar caching é setar o <link - linkend="variable.caching">$caching</link> = false (ou 0.) - </para> - <para> - A função <link linkend="api.is.cached">is_cached()</link> - pode ser usada para testar se um template tem um cache válido ou não. - Se você tem um template com cache que requer alguma coisa como um retorno do banco de dados, - você pode usar isso para pular este processo. - </para> - <example> - <title>Usando is_cached()</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl');</programlisting> - </example> - <para> - Você pode deixar partes da sua página dinâmica com a função de template <link - linkend="language.function.insert">insert</link>. - Vamos dizer que sua página inteira pode ter cache exceto para um banner que é - mostrado abaixo do lado direito da sua página. Usando uma função insert para o banner, - você pode deixar esse elemento dinâmico dentro do conteúdo de cache. Veja a documentação - em <link linkend="language.function.insert">insert</link> para - detalhes e exemplos. - </para> - <para> - Você pode limpar todos os arquivos de cache com a função <link - linkend="api.clear.all.cache">clear_all_cache()</link>, ou - arquivos de cache individuais (ou grupos) com a função <link - linkend="api.clear.cache">clear_cache()</link>. - </para> - <example> - <title>Limpando o cache</title> - <programlisting> -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear out all cache files -$smarty->clear_all_cache(); - -// clear only cache for index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl');</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <chapter id="plugins"> - <title>Extendendo a Smarty com Plugins</title> - <para> - A Versão 2.0 introduziu a arquitetura de plugin que é usada para quase todas as - funcionalidades customizáveis da Smarty. Isto inclui: - <itemizedlist spacing="compact"> - <listitem><simpara>funções</simpara></listitem> - <listitem><simpara>modificadores</simpara></listitem> - <listitem><simpara>funções de bloco</simpara></listitem> - <listitem><simpara>funções de compilador</simpara></listitem> - <listitem><simpara>prefiltros</simpara></listitem> - <listitem><simpara>posfiltros</simpara></listitem> - <listitem><simpara>filtros de saída</simpara></listitem> - <listitem><simpara>recursos</simpara></listitem> - <listitem><simpara>inserir</simpara></listitem> - </itemizedlist> - Com a exceção de recursos, a compatibilidade com a forma antiga de funções de - manipulador de registro via register_* API é preservada. Se você não usou o API mas no lugar disso - modificou as variáveis de classe <literal>$custom_funcs</literal>, <literal>$custom_mods</literal>, e - outras diretamente, então você vai - precisar ajustar seus scripts para ou usar API ou converter suas - funcionalidade customizadas em plugins. - </para> - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.block.functions"><title>Block Functions</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Funções de Block são funções da forma: {func} .. {/func}. Em outras palavras, ele enclausura - um bloco de template e opera no conteúdo deste bloco. Funções de Block tem precedência sobre - funções customizadas com mesmo nome, - assim, você não pode ter ambas, função customizável {func} e - função de Bloco {func} .. {/func}. - </para> - <para> - Por definição a implementação de sua função é chamada duas vezes pela Smarty: uma vez pela tag de abertura, - e outra pela tag de fechamento - (veja <literal>&$repeat</literal> abaixo para como mudar isto). - </para> - <para> - Apenas a tag de abertura da função de bloco pode ter atributos. - Todos os atributos passados para as funções de - template estão contidos em <parameter>$params</parameter> como um array associativo. Você pode ou acessar - esses valores diretamente, i.e. <varname>$params['start']</varname> - ou usar <varname>extract($params)</varname> - para importá-los para dentro da tabela símbolo. Os atributos da tag de - abertura são também acessíveis a sua função - quando processando a tag de fechamento. - </para> - <para> - O valor da variável <parameter>$content</parameter> - depende de que se sua função é chamada pela tag de - fechamento ou de abertura. Caso seja a de abertura, ele será - <literal>null</literal>, se for a de fechamento - o valor será do conteúdo do bloco de template. - Note que o bloco de template já terá sido processado pela - Smarty, então tudo que você receberá é saída do template, não o template original. - </para> - - <para> - O parâmetro <parameter>&$repeat</parameter> é passado por - referência para a função de implementação - e fornece uma possibilidade para ele controlar quantas - vezes o bloco é mostrado. Por definição - <parameter>$repeat</parameter> é <literal>true</literal> na primeira chamada da block-function - (a tag de abertura do bloco) e <literal>false</literal> - em todas as chamadas subsequentes à função de bloco - (a tag de fechamento do bloco). Cada vez que a - implementação da função retorna com o <parameter>&$repeat</parameter> - sendo true, o conteúdo entre {func} .. {/func} é avaliado - e a implementação da função é chamada novamente com - o novo conteúdo do bloco no parâmetro <parameter>$content</parameter>. - - </para> - - <para> - Se você tem funções de bloco aninhadas, é possível - descobrir qual é a função de bloco pai acessando - a variável <varname>$smarty->_tag_stack</varname>. Apenas faça um var_dump() - nela e a estrutura estaria visível. - </para> - <para> - See also: - <link linkend="api.register.block">register_block()</link>, - <link linkend="api.unregister.block">unregister_block()</link>. - </para> - <example> - <title>função de bloco</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, &$smarty) -{ - if (isset($content)) { - $lang = $params['lang']; - // do some intelligent translation thing here with $content - return $translation; - } -}</programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.compiler.functions"><title>Funções Compiladoras</title> - <para> - Funções compiladoras só são chamadas durante a compilação do template. - Elas são úteis para injeção de código PHP ou conteúdo estático time-sensitive - dentro do template. Se há ambos, uma função - compiladora e uma função customizável - registrada sob o mesmo nome, a função compiladora tem precedência. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - À função compiladora são passados dois parâmetros: - a tag string de argumento da tag - basicamente, tudo a partir - do nome da função até o delimitador de fechamento, e o objeto da Smarty. É suposto que retorna o código PHP - para ser injetado dentro do template compilado. - </para> - <para> - See also - <link linkend="api.register.compiler.function">register_compiler_function()</link>, - <link linkend="api.unregister.compiler.function">unregister_compiler_function()</link>. - </para> - <example> - <title>função compiladora simples</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?></programlisting> - <para> - Esta função pode ser chamada em um template da seguinte forma: - </para> - <programlisting> -{* esta função é executada somente no tempo de compilação *} -{tplheader}</programlisting> - <para> - O código PHP resultante no template compilado seria algo assim: - </para> - <programlisting> -<php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,124 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> - -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --><sect1 id="plugins.functions"><title>Funções de Template</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Todos os atributos passados para as funções de template a - partir do template estão contidas em - <parameter>$params</parameter> como um array associativo. Ou acessa esses valores - diretamente i.e <varname>$params['start']</varname> ou usa - <varname>extract($params)</varname> para - importá-los para dentro da tabela símbolo. - </para> - <para> - A saída (valor de retorno) da função será substituída no lugar da tag da função no template - (a função <function>fetch</function>, por exemplo). Alternativamente, a função pode simplesmente executar - alguma outra tarefa sem ter alguma saída - (a função <function>assign</function>). - </para> - <para> - Se a função precisa passar valores a algumas variáveis para o template ou utilizar alguma outra funcionalidade - fornecida com a Smarty, ela pode usar - o objeto <parameter>$smarty</parameter> fornecido para fazer isso. - </para> - <para> - Veja também: - <link linkend="api.register.function">register_function()</link>, - <link linkend="api.unregister.function">unregister_function()</link>. - </para> - <para> - <example> - <title>função de plugin com saída</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?></programlisting> - </example> - </para> - <para> - que pode ser usada no template da seguinte forma: - </para> - <programlisting> -Pergunta: Nós sempre teremos tempo para viajar? -Resposta: {eightball}.</programlisting> - <para> - <example> - <title>função de plugin sem saída</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - extract($params); - - if (empty($var)) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($var, $value); -} -?></programlisting> - </example> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.howto"> - <title>Como os Plugins Funcionam</title> - <para> - Plugins são sempre lidos quando requisitados. Apenas os modificadores específicos, - funções, recursos, etc convocados em scripts de template serão lidos. Além disso, cada plugin - é lido apenas uma vez, mesmo se você tem várias instâncias diferentes da Smarty rodando na mesma - requisição. - </para> - <para> - Pre/posfiltros e filtros de saída são uma parte de um caso especial. Visto que eles não são mencionados - nos templates, eles devem ser registrados ou lidos explicitamente via funções de API antes do template - ser processado. - A ordem em que multiplos filtros do mesmo - tipo são executados dependem da ordem em que eles são registrados ou lidos. - </para> - <para> - O <link linkend="variable.plugins.dir">diretório de plugins</link> - pode ser uma string contendo um caminho ou um array - contendo multiplos caminhos. Para instalar um plugin, - simplesmente coloque-o em um dos diretórios e a Smarty irá usá-lo automaticamente. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.inserts"><title>Inserts</title> - <para> - Plugins Insert são usados para implementar funções que são invocadas por tags - <link linkend="language.function.insert"><command>insert</command></link> - no template. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - O primeiro parâmetro para a função é um array - associativo de atributos passados para o - insert. Ou acessa esses valores diretamente, - i.e. <varname>$params['start']</varname> ou usa - <varname>extract($params)</varname> para importá-los para dentro da tabela símbolo. - </para> - <para> - A função insert deve retornar o - resultado que será substituído no lugar da tag - <command>insert</command> no template. - </para> - <example> - <title>Plugin insert</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.modifiers"><title>Modifiers</title> - <para> - Modificadores são funções que são aplicadas a uma variável no template antes dela ser mostrada - ou usada em algum outro contexto. - Modificadores podem ser encadeados juntos. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - O primeiro parâmetro para o plugin midificador é o valor em que o modificador é suposto - operar. O resto dos parâmetros podem ser opcionais, - dependendo de qual tipo de operação é para - ser executada. - </para> - <para> - O modificador deve retornar o resultado de seu processamento. - </para> - <para> - Veja também: - <link linkend="api.register.modifier">register_modifier()</link>, - <link linkend="api.unregister.modifier">unregister_modifier()</link>. - </para> - <example> - <title>Plugin modificador simples</title> - <para> - Este plugin basiamente é um alias de uma - função do PHP. Ele não tem nenhum parâmetro adicional. - </para> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?></programlisting> - </example> - <para></para> - <example> - <title>Plugin modificador mais complexo</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.naming.conventions"> - <title>Convenções de Aparência</title> - <para> - Arquivos e funções de Plugin devem seguir uma convenção de aparência muito específica - a fim de ser localizada pela Smarty. - </para> - <para> - Os arquivos de plugin devem ser nomeados da sequinte forma: - <blockquote> - <para> - <filename> - <replaceable>tipo</replaceable>.<replaceable>nome</replaceable>.php - </filename> - </para> - </blockquote> - </para> - <para> - Onde <literal>tipo</literal> é um dos seguintes tipos de plugin: - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - <para> - E <literal>nome</literal> seria um identificador válido (letras, - números, e underscores apenas). - </para> - <para> - Alguns exemplos: <literal>function.html_select_date.php</literal>, - <literal>resource.db.php</literal>, - <literal>modifier.spacify.php</literal>. - </para> - <para> - As funções de plugin dentro dos arquivos do plugin devem ser nomeadas da seguinte forma: - <blockquote> - <para> - <function>smarty_<replaceable>tipo</replaceable>_<replaceable>nome</replaceable></function> - </para> - </blockquote> - </para> - <para> - O significado de <literal>tipo</literal> e - <literal>nome</literal> são os mesmos de antes. - </para> - <para> - A Smarty mostrará mensagens de erro apropriadas se o arquivo de plugins que é necessário não é encontrado, - ou se o arquivo ou a função de plugin - estão nomeadas inadequadamente. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.outputfilters"><title>Filtros de saída</title> - <para> - Filtros de saída operam na saída do template, depois que o template é lido e executado, mas - antes a saída é mostrada. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - O primeiro parâmetro para a função do filtro de saída é a saída do template que precisa ser processada, e - o segundo parâmetro é a instância da Smarty invocando o plugin. - O plugin deve fazer o precessamento e - retornar os resultados. - </para> - <example> - <title>output filter plugin</title> - <programlisting> -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.prefilters.postfilters"> - <title>Prefiltros/Posfiltros</title> - <para> - Plugins Prefilter e postfilter são muito similares - em conceito; onde eles diferem é na execução -- mais - precisamente no tempo de suas execuções. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Prefilters são usados para processar o fonte do template - imediatamente antes da compilação. O primeiro parâmetro da - função de prefilter é o fonte do template, possivelmente modificado por alguns outros prefilters. O Plugin - é suposto retornar o fonte modificado. Note que este fonte não é salvo em lugar nenhum, ele só é usado para - a compilação. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Postfilters são usados para processar a saída compilada do template (o código PHP) imediatamente após - a compilação ser feita e antes do template compilado ser - salvo no sistema de arquivo. O primeiro parâmetro - para a função postfilter é o código do template compilado, - possivelmente modificado por outros postfilters. - O plugin é suposto retornar a versão modificada deste código. - </para> - <example> - <title>Plugin prefilter</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?></programlisting> - </example> - <para></para> - <example> - <title>Plugin postfilter</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> -<sect1 id="plugins.resources"><title>Recursos (Resources)</title> - <para> - Os plugins de Recursos são como uma forma genérica de fornecer códigos fontes de template - ou componentes de script PHP para a Smarty. Alguns exemplos de recursos: - banco de dados, LDAP, memória compartilhada, sockets, e assim por diante. - </para> - - <para> - Há um total de 4 funções que precisam estar registradas - para cada tipo de recurso. Cada função receberá - o recurso requisitado como o primeiro parâmetro e o objeto da Smarty como o último parâmetro. O resto - dos parâmetros dependem da função. - </para> - - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - A primeira função deve devolver o recurso. Seu segundo parâmetro é uma variável passada por - referência onde o resultado seria armazenado. - A função deve retornar <literal>true</literal> se - ela está apta a devolver com sucesso o recurso e - caso contrário retorna <literal>false</literal>. - </para> - - <para> - A segunda função deve devolver a última modificação do - recurso requisitado (como um timestamp Unix). - O segundo parâmetro é uma variável passada por referência onde o timestamp seria armazenado. - A função deve retornar <literal>true</literal> - se o timestamp poderia ser determinado com sucesso, - e caso contrário retornaria <literal>false</literal>. - </para> - - <para> - A terceira função deve retornar <literal>true</literal> ou - <literal>false</literal>, dependendo do recurso requisitado - está seguro ou não. Esta função é usada - apenas para recursos de template mas ainda assim seria definida. - </para> - - <para> - A quarta função deve retornar <literal>true</literal> - ou <literal>false</literal>, dependendo - do recurso requisitado ser confiável ou não. - Esta função é usada apenas para componentes de - script PHP requisitados pelas tags <command>include_php</command> ou - <command>insert</command> com o atributo <structfield>src</structfield>. - Entretanto, ela ainda assim mesmo seria definida para os recursos de template. - </para> - <para> - Veja também: - <link linkend="api.register.resource">register_resource()</link>, - <link linkend="api.unregister.resource">unregister_resource()</link>. - </para> - <example> - <title>Plugin resource (recurso)</title> - <programlisting> -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // do database call here to fetch your template, - // populating $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // faz o banco de dados chamar aqui para preencher $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // assume que todos os templates são seguros - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // não usado para templates -} -?></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <sect1 id="plugins.writing"> - <title>Escrevendo Plugins</title> - <para> - Os Plugins podem ser ou lidos pela Smarty automaticamente do sistema de arquivos ou eles podem - ser registrados no tempo de execução via uma das funções - de API register_* . Eles podem também ser - com o uso da função API unregister_* . - </para> - <para> - Para os plugins que são registrados no tempo de execução, o nome da(s) função(ões) de plugin - não têm que seguir a convenção de aparência. - </para> - <para> - Se um plugin depende de alguma funcionalidade fornecida por um outro plugin (como é o caso com alguns - plugins embutidos com a Smarty), - então a forma apropriada para ler o plugin necessário é esta: - </para> - <programlisting> -require_once $smarty->_get_plugin_filepath('function', 'html_options');</programlisting> - <para> - Como uma regra geral, o objeto da Smarty é sempre passado para os plugins como o último parâmetro - (com duas exceções: modificadores não passam o objeto da Smarty em tudo e blocks passam - <parameter>&$repeat</parameter> depois do objeto da Smarty - para manter compatibilidade a antigas - versões da Smarty). - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/programmers/smarty-constants.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2972 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: ready --> - <chapter id="smarty.constants"> - <title>Constantes</title> - <para></para> - - <sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - Isso deve ser o caminho completo do path para a localização dos arquivos de classe da Smarty. - Se isso não for definido, então a Smarty irá tentar determinar - o valor apropriado automaticamente. Se definido, o path - deve finalizar com uma barra. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting> -// set path to Smarty directory -define("SMARTY_DIR","/usr/local/lib/php/Smarty/"); - -require_once(SMARTY_DIR."Smarty.class.php");</programlisting> - </example> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/pt_BR/translation.xml
Deleted
@@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> -<translation> - <intro> - This file is used by smarty/docs/scripts/revcheck.php. - It shows who make part of translation and what are they doing. - Very important note: The smarty was translated to portuguese before the implementation - of the revision system, by fernandoc, marcelo and surfmax. And thomasgm made some updates - after this. Because of this there is no way to give the correct credits for who translated - which file. - </intro> - - <translators> - <person name="Fernando Correa da Conceição" email="fernandoc@php.net" nick="fernando" cvs="no" /> - <person name="Marcelo Pereira Fonseca da Silva" email="marceloc@php.net" nick="marcelo" cvs="yes"/> - <person name="Taniel Franklin" email="surfmax@php.net" nick="surfmax" cvs="yes"/> - <person name="Thomas Gonzalez Miranda" email="thomasgm@php.net" nick="thomasgm" cvs="yes"/> - </translators> - - <work-in-progress> - <file name="/docs/pt_BR/*" person="fernandoc" type="update" date="2006.10.14"/> - </work-in-progress> - -</translation> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/appendixes
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/appendixes/bugs.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1617 Maintainer: tony2001 Status: ready --> -<chapter id="bugs"> - <title>Ошибки</title> - <para> - Смотрите файл <filename>BUGS</filename>, который поставляется вместе с - стандартной поставкой Smarty или ищите список на сайте. - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/appendixes/resources.xml
Deleted
@@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2598 Maintainer: freespace Status: ready --> -<chapter id="resources"> - <title>Источники</title> - <para> - Домашняя страница Smarty доступна по адресу - <ulink url="&url.smarty;">&url.smarty;</ulink> - </para> - - <itemizedlist> - <listitem> - <para> - Вы можете подписаться на список рассылки, отправив e-mail на адрес - <literal>&ml.general.sub;</literal>. Архив списка рассылки можно - просмотреть <ulink url="&url.ml.archive;">здесь</ulink>. - </para> - </listitem> - - <listitem> - <para> - Форумы доступны по адресу <ulink url="&url.forums;">&url.forums;</ulink> - </para> - </listitem> - - <listitem> - <para> - Wiki находится по адресу <ulink url="&url.wiki;">&url.wiki;</ulink> - </para> - </listitem> - - <listitem> - <para> - Заходите в чат на irc.freenode.net#smarty. - </para> - </listitem> - - <listitem> - <para> - ЧаВО находятся <ulink url="&url.faq_1;">тут</ulink> и - <ulink url="&url.faq_2;">тут</ulink>. - </para> - </listitem> - </itemizedlist> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/appendixes/tips.xml
Deleted
@@ -1,457 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2598 Maintainer: freespace Status: ready --> -<chapter id="tips"> - <title>Советы</title> - <para></para> - <sect1 id="tips.blank.var.handling"> - <title>Обработка пустых переменных</title> - <para> - Иногда, например, для того чтобы фон таблицы работал корректно, - необходимо вывести вместо пустого значения переменной, значение - по умолчанию, например <literal>&nbsp;</literal>. - Многие бы использовали конструкцию - <link linkend="language.function.if"><varname>{if}</varname></link> - в данной ситуации, - но в Smatry есть более короткий путь - используя модификатор переменной - <link - linkend="language.modifier.default"><emphasis>default</emphasis></link>. - - <note> - <para> - PHP выдаст ошибку <quote>Undefined variable</quote> в случае, если - <ulink url="&url.php-manual;error_reporting"> - <varname>error_reporting()</varname></ulink> установлен в <constant>E_ALL</constant> - и переменная не была присвоена шаблону Smarty. - </para> - </note> - </para> - - <example> - <title>Вывод &nbsp;, если переменная пуста</title> - <programlisting> -<![CDATA[ -{* длинный путь *} -{if $title eq ''} - -{else} - {$title} -{/if} - - -{* короткий путь *} -{$title|default:' '} -]]> - </programlisting> - </example> - <para> - См. также <link linkend="language.modifier.default">default</link> и - <link linkend="tips.default.var.handling">Обработка переменных по умолчанию</link>. - </para> - </sect1> - - <sect1 id="tips.default.var.handling"> - <title>Обработка переменных по умолчанию</title> - <para> - Если переменная встречается часто, то использование модификатора - <link linkend="language.modifier.default"><varname>default</varname></link> - каждый раз можно избежать, используя функцию - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> - <example> - <title>Назначение переменной шаблона значения по умолчанию</title> - <programlisting> -<![CDATA[ -{* где-то в начале шаблона *} -{assign var='title' value=$title|default:'no title'} - -{* если переменная $title была пустой, то сейчас она содержит "no title" *} -{$title} -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.modifier.default"><varname>default</varname></link> и - <link linkend="tips.blank.var.handling">Обработка пустых переменных</link>. - </para> - </sect1> - - <sect1 id="tips.passing.vars"> - <title>Присвоение переменной заголовка (title) шаблону-шапке</title> - <para> - Если большинство ваших шаблонов имеют похожие верхние и нижние - части, то имеет смысл вынести их в отдельные файлы и - <link linkend="language.function.include">подключать</link> их. - Но как быть, если шапка должна иметь различные заголовки на различных - страницах? Вы можете передавать текст заголовка шапке в качестве <link - linkend="language.syntax.attributes">атрибута</link> в момент её включения. - </para> - <example> - <title>Присвоение переменной заголовка (title) шаблону-шапке</title> - <para> - <filename>mainpage.tpl</filename> - когда отображается главная страница, - заголовок <quote>Main Page</quote> передается в - <filename>header.tpl</filename>, - и будет в дальнейшем использован в качестве заголовка. - </para> - <programlisting> -<![CDATA[ -{include file='header.tpl' title='Main Page'} -{* тут находится тело шаблона *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>archives.tpl</filename> - когда отображается страница архива, - заголовок будет <quote>Archives</quote>. - Обратите внимание, что в этом примере мы - используем переменную из <filename>archives_page.conf</filename>, вместо - того, чтобы жестко прописать её в шаблоне. - </para> - <programlisting> -<![CDATA[ -{config_load file='archive_page.conf'} - -{include file='header.tpl' title=#archivePageTitle#} -{* тут находится тело шаблона *} -{include file='footer.tpl'} -]]> - </programlisting> - - <para> - <filename>header.tpl</filename> - Обратите внимание, что - <quote>Smarty News</quote> отображается тогда, когда $title не задан, - благодаря модификатору - <link linkend="language.modifier.default"><varname>default</varname></link>. - </para> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{$title|default:'Smarty News'}</title> - </head> - <body> -]]> - </programlisting> - - <para> - <filename>footer.tpl</filename> - </para> - <programlisting> -<![CDATA[ - </body> -</html> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.dates"> - <title>Даты</title> - <para> - Обычно даты в Smarty всегда передаются как - <ulink url="&url.php-manual;time">временные метки</ulink> (англ. timestamp), - что позволяет проектировщикам шаблонов использовать <link - linkend="language.modifier.date.format"><varname>date_format</varname></link> - для полного контроля над форматированием даты и также делает легким - сравнение дат там, где это необходимо. - </para> - <note> - <para> - Начиная с версии Smarty 1.4.0, вы можете передавать даты в Smarty в виде - меток времени Unix (unix timestamps), mysql, или в любом другом виде, - который понимает функция - <ulink url="&url.php-manual;strtotime">strtotime()</ulink>. - </para> - </note> - <example> - <title>Использование date_format</title> - <programlisting> -<![CDATA[ -{$startDate|date_format} -]]> - </programlisting> - <para> - Результат работы: - </para> - <screen> -<![CDATA[ -Jan 4, 2009 -]]> - </screen> - <programlisting> -<![CDATA[ -{$startDate|date_format:"%Y/%m/%d"} -]]> - </programlisting> - <para> - Результат работы: - </para> - <screen> -<![CDATA[ -2009/01/04 -]]> - </screen> - <para> - Даты можно ставнивать в шаблонах путем сравнения - меток времени следующим образом: - </para> - <programlisting> -<![CDATA[ -{if $date1 < $date2} - ... делаем что-то полезное ... -{/if} -]]> - </programlisting> - </example> - <para> - Когда <link linkend="language.function.html.select.date"> - <varname>{html_select_date}</varname></link> - используется в шаблоне, программист наверняка захочет преобразовать - данные из формы назад в формат временной метки. Вот функция, которая - поможет вам сделать это. - </para> - <example> - <title>Преобразование элементов формы ввода даты назад к временной метке</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Предполагается, что ваши элементы формы названы -// startDate_Day, startDate_Month, startDate_Year - -$startDate = makeTimeStamp($startDate_Year, $startDate_Month, $startDate_Day); - -function makeTimeStamp($year='', $month='', $day='') -{ - if(empty($year)) { - $year = strftime('%Y'); - } - if(empty($month)) { - $month = strftime('%m'); - } - if(empty($day)) { - $day = strftime('%d'); - } - - return mktime(0, 0, 0, $month, $day, $year); -} -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.function.html.select.date"> - <varname>{html_select_date}</varname></link>, - <link linkend="language.function.html.select.time"> - <varname>{html_select_time}</varname></link>, - <link linkend="language.modifier.date.format"> - <varname>date_format</varname></link> и - <link linkend="language.variables.smarty.now"> - <parameter>$smarty.now</parameter></link> - </para> - </sect1> - - <sect1 id="tips.wap"> - <title>WAP/WML</title> - <para> - WAP/WML шаблоны требуют, чтобы - <ulink url="&url.php-manual;header">заголовок Content-Type</ulink> - был передан вместе с шаблоном. Простейший путь - написать - пользовательскую функцию, которая будет выводить заголовки. - Если вы используете <link linkend="caching">кэширование</link>, - это не сработает, так что мы сделаем это с помощью тэга - <link linkend="language.function.insert"><varname>{insert}</varname></link>; - не забывайте, что тэги <varname>{insert}</varname> не кэшируются! - Убедитесь, что перед шаблоном в браузер ничего не выводится, - иначе отправить заголовок не получится. - </para> - <example> - <title>Использование {insert} для отправки заголовка Content-Type для WML</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// убедитесь, что apache настроен на обработку расширений .wml! -// добавьте эту функцию в своё приложение или в Smarty.addons.php -function insert_header($params) -{ - // эта функция ожидает аргумент $content - if (empty($params['content'])) { - return; - } - header($params['content']); - return; -} - -?> -]]> - </programlisting> - <para> - ваш шаблон Smarty <emphasis>должен</emphasis> начинаться с тэга insert: - </para> - <programlisting> -<![CDATA[ -{insert name=header content="Content-Type: text/vnd.wap.wml"} - -<?xml version="1.0"?> -<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> - -<!-- begin new wml deck --> -<wml> - <!-- begin first card --> - <card> - <do type="accept"> - <go href="#two"/> - </do> - <p> - Welcome to WAP with Smarty! - Press OK to continue... - </p> - </card> - <!-- begin second card --> - <card id="two"> - <p> - Pretty easy isn't it? - </p> - </card> -</wml> -]]> - </programlisting> - </example> - </sect1> - - <sect1 id="tips.componentized.templates"> - <title>Составные шаблоны</title> - <para> - По традиции, программирование шаблонов в вашем приложении идёт следующим - путём: Сначала вы формируете переменные внутри вашего приложения PHP - (возможно, используя запросы к базе данных). Затем вы создаёте экземпляр - объекта Smarty, - <link linkend="api.assign">назначаете</link> переменные и - <link linkend="api.display">отображаете</link> шаблон. - Давайте представим себе такую ситуацию: К примеру, у нас есть котировщик - ценных бумаг в нашем шаблоне. Мы собираем данные о котировках ценных бумаг - в нашем приложении, затем передаём эти переменные в шаблон и отображаем - его. Правда, было бы здорово, если бы этот котировщик можно было перенести - в другое приложение, просто подключив к нему шаблон, не беспокоясь об - источнике данных. - </para> - <para> - Вы можете сделать это, написав собственное расширение для получения - данных и присваивания их переменной шаблона. - </para> - <example> - <title>составной шаблон</title> - <para> - <filename>function.load_ticker.php</filename> - - поместите файл в - <link linkend="variable.plugins.dir"> - <parameter>директорию $plugins</parameter></link> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -// настраиваем нашу функцию для получения информации о ценных бумагах -function fetch_ticker($symbol) -{ - // здесь находится логика формирования $ticker_info - // из какого-то источника - return $ticker_info; -} - -function smarty_function_load_ticker($params, &$smarty) -{ - // вызываем функцию - $ticker_info = fetch_ticker($params['symbol']); - - // присваиваем переменную шаблона - $smarty->assign($params['assign'], $ticker_info); -} -?> -]]> - </programlisting> - <para> - <filename>index.tpl</filename> - </para> - <programlisting> -<![CDATA[ -{load_ticker symbol='SMARTY' assign='ticker'} - -Stock Name: {$ticker.name} Stock Price: {$ticker.price} -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.function.include.php"> - <varname>{include_php}</varname></link>, - <link linkend="language.function.include"> - <varname>{include}</varname></link> и - <link linkend="language.function.php"><varname>{php}</varname></link>. - </para> - </sect1> - - <sect1 id="tips.obfuscating.email"> - <title>Сокрытие E-mail адреса</title> - <para> - Вы когда-нибудь удивлялись, как ваш e-mail адрес попадает в такое - количество спамерских рассылок? Один из способов сбора e-mail адресов - заключается в просмотре веб-страниц. Чтобы помочь предотвратить эту - проблему, вы можете сделать так, чотбы ваш e-mail адрес отображался - в скрытом за javascript'ом виде в HTML-исходниках, в то же время - выглядя и работая корректно в браузере. Это можно совершить при помощи - расширения <link linkend="language.function.mailto"> - <varname>{mailto}</varname></link>. - </para> - <example> - <title>Пример сокрытия e-mail адреса в шаблоне</title> - <programlisting> -<![CDATA[ -Вопросы направляйте по адресу -{mailto address=$EmailAddress encode="javascript" subject="Hello"} -]]> - </programlisting> - </example> - <note> - <title>Техническое Замечание</title> - <para> - Этот метод не может гарантировать 100% защиты. - Существует вероятность, что спамер запрограммирует свой - сборщик e-mail адресов на раскодирование этих значений, - но это маловероятно... - будем надеяться... пока что... - куда я там дел свой квантовый компьютер :-?. - </para> - </note> - <para> - См. также модификатор - <link linkend="language.modifier.escape"><varname>escape</varname></link> и - <link linkend="language.function.mailto"><varname>{mailto}</varname></link>. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/appendixes/troubleshooting.xml
Deleted
@@ -1,214 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2686 Maintainer: freespace Status: ready --> -<chapter id="troubleshooting"> - <title>Решение проблем</title> - <para></para> - <sect1 id="smarty.php.errors"> - <title>Ошибки Smarty/PHP</title> - <para> - Smarty может ловить многие ошибки, например отсутствующие атрибуты - тэгов или недопустимые имена переменных. Если это произойдет, вы увидите - ошибку наподобие следующей: - </para> - <example> - <title>Ошибка Smarty</title> - <screen> -<![CDATA[ -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041 -]]> - </screen> - </example> - <para> - Smarty покажет вам имя шаблона, номер строки и ошибку. - Далее сообщение об ошибке состоит из фактического номера строки в классе - Smarty, где возникла ошибка. - </para> - - <para> - Есть определенные ошибки, которые не может поймать Smarty, например - отсутствующие закрывающие тэги. Такие ошибки обычно приводят к ошибкам - разбора PHP на этапе компиляции. - </para> - - <example> - <title>Ошибки разбора PHP</title> - <screen> -<![CDATA[ -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 -]]> - </screen> - </example> - - <para> - Когда вы встречаетесь с ошибкой разбора PHP, номер строки, в которой - допущена ошибка, будет соответствовать скомпилированному PHP-скрипту, - а НЕ самому шаблону. Обычно вы можете посмотреть на шаблон и увидить - синтаксическую ошибку. Типичные ошибки: отсутствующие закрывающие тэги - для - <link linkend="language.function.if"><varname>{if}{/if}</varname></link> или - <link linkend="language.function.if"> - <varname>{section}{/section}</varname></link>, - или синтаксис логики внутри тэга <varname>{if}</varname>. - Если вы не можете найти ошибку, вам может понадобиться открыть - скомпилированный PHP-файл и перейти к номеру строки чтобы выяснить, - в чём заключается ошибка в шаблоне. - </para> - - <example> - <title>Другие частые ошибки</title> - <screen> -<![CDATA[ -Warning: Smarty error: unable to read resource: "index.tpl" in... -or -Warning: Smarty error: unable to read resource: "site.conf" in... -]]> - </screen> - <para> - <itemizedlist> - <listitem> - <para> - Значение <link - linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link> - неверно, эта директория не существует или файл - <filename>index.tpl</filename> не найден в директории - <filename class="directory">templates/</filename>. - </para> - </listitem> - <listitem> - <para> - В шаблоне присутствует функция <link - linkend="language.function.config.load"> - <varname>{config_load}</varname></link> - (либо была вызвана функция - <link linkend="api.config.load"> - <varname>config_load()</varname></link>) - и значение - <link linkend="variable.config.dir"> - <parameter>$config_dir</parameter></link> - неверно, эта директория не существует или файл - <filename>site.conf</filename> находится за пределами этой - директории. - </para> - </listitem> - </itemizedlist> - </para> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, -or is not a directory... -]]> - </screen> - - <itemizedlist> - <listitem> - <para> - Переменная - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> - установлена неверно, эта директория не существует - или <filename>templates_c</filename> является файлом, а не - директорией. - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $compile_dir '.... -]]> - </screen> - - <itemizedlist> - <listitem> - <para> - У веб сервера нет прав на запись в директорию - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link>. - Смотрите конец страницы - <link linkend="installing.smarty.basic">Базовая установка</link> - для получения информации о правах доступа. - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: the $cache_dir 'cache' does not exist, -or is not a directory. in /.. -]]> - </screen> - - <itemizedlist> - <listitem> - <para> - Это означает, что параметр - <link linkend="variable.caching"> - <parameter>$caching</parameter></link> включен, но параметр - <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> - установлен неправильно, эта директория не существует - или <filename>cache/</filename> является файлом, а не - директорией. - </para> - </listitem> - </itemizedlist> - - <screen> -<![CDATA[ -Fatal error: Smarty error: unable to write to $cache_dir '/... -]]> - </screen> - - <itemizedlist> - <listitem> - <para> - Это означает, что параметр - <link linkend="variable.caching"> - <parameter>$caching</parameter></link> включен, но - у веб сервера нет прав на запись в директорию - <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link>. - Смотрите конец страницы - <link linkend="installing.smarty.basic">Базовая установка</link> - для получения информации о правах доступа. - </para> - </listitem> - </itemizedlist> - </example> - - <para> - См. также - <link linkend="chapter.debugging.console">Отладочная консоль</link>, - <link linkend="variable.error.reporting"> - <parameter>$error_reporting</parameter></link> и - <link linkend="api.trigger.error"><varname>trigger_error()</varname></link>. - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/bookinfo.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2094 Maintainer: freespace Status: ready --> -<bookinfo id="bookinfo"> - <title>Smarty - компилирующий обработчик шаблонов</title> - <authorgroup id="authors"> - <author> - <firstname>Monte</firstname> - <surname>Ohrt <monte at ohrt dot com></surname> - </author> - <author> - <firstname>Andrei</firstname> - <surname>Zmievski <andrei@php.net></surname> - </author> - </authorgroup> - <authorgroup id="translators"> - <author> - <firstname>Sergei</firstname> - <surname>Suslenkov <student@bsuir-fcd.org></surname> - </author> - <author> - <firstname>George</firstname> - <surname>Miroshnikov <freespace@php.net></surname> - </author> - </authorgroup> - <pubdate>&build-date;</pubdate> - <copyright> - <year>2001-2005</year> - <holder>New Digital Group, Inc.</holder> - </copyright> - </bookinfo> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/chapter-debugging-console.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2602 Maintainer: freespace Status: ready --> -<chapter id="chapter.debugging.console"> - <title>Отладочная консоль</title> - <para> - В Smarty включена консоль для отладки. Консоль позволяет узнать все - <link linkend="language.function.include">включенные</link> шаблоны, - <link linkend="api.assign">присвоенные</link> переменные и настройки из - <link linkend="language.config.variables">конфинурационных файлов</link> - для текущего экземпляра Smarty. - Шаблон <literal>debug.tpl</literal>, поставляемый вместе со Smarty, - задает внешний вид консоли. - </para> - <para> - Установите опцию Smarty - <link linkend="variable.debugging"> - <parameter>$debugging</parameter></link> в true и, если - необходимо, укажите в - <link linkend="variable.debug.tpl"> - <parameter>$debug_tpl</parameter></link> путь к шаблону - <literal>debug.tpl</literal> (по умолчанию это - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link>). - Когда вы загружаете страницу, должно появиться всплывающие окно Javascript - и вывести список всех подключенных шаблонов и назначенных переменных - для данной страницы. - </para> - <para> - Для вывода доступных переменных из конкретного шаблона, - см. функцию <link linkend="language.function.debug"> - <varname>{debug}</varname></link>. - Для отключения консоли отладки, установите параметр - <link linkend="variable.debugging"> - <parameter>$debugging</parameter></link> в false. - Можно также опционально включить консоль отладки, добавив - <literal>SMARTY_DEBUG</literal> в URL, предварительно включив параметр - <link linkend="variable.debugging.ctrl"> - <parameter>$debugging_ctrl</parameter></link>. - </para> -<note> - <title>Техническое Примечание</title> - <para> - Консоль отладки не работает, когда используется функция API - <link linkend="api.fetch"><varname>fetch()</varname></link>. - Необходимо использовать только функцию - <link linkend="api.display"><varname>display()</varname></link>. - Она генерирует javascript код вначале каждой сгенерированной страницы. - Если вам не нравится javascript, можно отредатировать - <literal>debug.tpl</literal> для - изменения способа отображения по вашему вкусу. - Отладочная информация не кэшируется и в отладочную информацию не - включается информация о <literal>debug.tpl</literal>. - </para> -</note> -<note> - <para> - Время загрузки каждого шаблона и файла конфигурации выводятся в секундах или - в миллисекундах. - </para> -</note> -<para> - См. также - <link linkend="troubleshooting">Решение проблем</link>, - <link linkend="variable.error.reporting"> - <parameter>$error_reporting</parameter></link> - и - <link linkend="api.trigger.error"> - <varname>trigger_error()</varname></link>. -</para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/config-files.xml
Deleted
@@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2601 Maintainer: freespace Status: ready --> -<chapter id="config.files"> - <title>Конфигурационные файлы</title> - <para> - С помощью конфигурационных файлов дизайнеру удобно управлять глобальными - переменными из одного файла. Например, цветами в шаблонах. Обычно, если - вы хотите сменить цветувую схему, то необходимо просмотреть каждый шаблон - и в каждом изменить цвета. С помощью файла конфигурации все цвета могут - быть вынесены в отдельный файл и только один файл надо будет исправлять. - </para> - <example> - <title>Пример файла конфигурации</title> - <programlisting> -<![CDATA[ -# глобальные переменные -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -[Customer] -pageTitle = "Customer Info" - -[Login] -pageTitle = "Login" -focus = "username" -Intro = """Значение, которое занимает больше - чем одну строку должно быть заключено - в тройные кавычки.""" - -# спрятанная секция -[.Database] -host=my.example.com -db=ADDRESSBOOK -user=php-user -pass=foobar -]]> - </programlisting> - </example> - <para> - Значения <link linkend="language.config.variables">переменных в - конфигурационных файлах</link> могут заключаться в кавычки, но это не - обязательно. Можно использовать как двойные, так и одинарные кавычки. - Если у вас есть значение, которое занимает больше, чем одну строку, - необходимо заключить его в тройные кавычки ("""). - Можно включать комментарии в файл конфигурации используя любой синтакис, - который не является допустимым синтаксисом файлов конфигурации. - Для этих целей рекомендуется использовать символ <literal>#</literal> - (hash) в начале строки. - </para> - <para> - Конфигурационный файл в примере имеет две секции. Названия секций заключены в - квадратные скобки []. Названия секций могут быть произвольными строками, - не содержащими символов <literal>[</literal> или <literal>]</literal>. Четыре - переменные вначале - глобальные переменные или переменные вне секций. - Эти переменные всегда загружаются из файла конфигурации. Если загружается - определенная секция, то глобальные переменные и переменные из этой секции - становятся доступными. Если переменная существует как глобальная, так и - внутри секции, то используется версия из секции. Если есть две одинаковые - переменные в пределах одной секции, то используеться последний встретившийся - вариант, если только параметр <link linkend="variable.config.overwrite"> - <parameter>$config_overwrite</parameter></link> - не был предварительно отключен. - </para> - <para> - Файлы конфигурации загружаются в шаблон при помощи - встроенной шаблонной функции - <link linkend="language.function.config.load"><varname> - {config_load}</varname></link> или API-функции <link - linkend="api.config.load"><varname>config_load()</varname></link>. - </para> - <para> - Можно спрятать отдельные переменные или целые секции, добавив к названию - точку в начале, например <literal>[.hidden]</literal>. - Это полезно, когда ваше приложение берет некоторые - переменные, ненужные в шаблоне, из файла конфигурации. Если шаблоны могут - редактировать третьи лица, то вы можете быть спокойны за ценную информацию - из файлов конфигураций: они не смогут ее загрузить в шаблон. - </para> - <para> - См. также <link linkend="language.function.config.load"> - <varname>{config_load}</varname></link>, - <link linkend="variable.config.overwrite"> - <parameter>$config_overwrite</parameter></link>, - <link linkend="api.get.config.vars"> - <varname>get_config_vars()</varname></link>, - <link linkend="api.clear.config"><varname>clear_config()</varname></link> и - <link linkend="api.config.load"><varname>config_load()</varname></link> - </para> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2629 Maintainer: freespace Status: ready --> -<chapter id="language.basic.syntax"> - <title>Базовый синтаксис</title> - <para> - Все тэги шаблонов Smarty располагаются между специальными - разделителями. По умолчанию это <literal>{</literal> и <literal>}</literal>, - но они могут быть <link linkend="variable.left.delimiter">изменены</link>. - </para> - <para> - В примерах этого руководства мы будем использовать стандартные разделители. - Smarty все содержимое вне разделителей отображает как статический - контент, без изменений. Когда Smarty встречает тэги шаблона, то пытается - интерпретировать их и вывести вместо них соответствующий результат. - </para> - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-escaping.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2587 Maintainer: freespace Status: ready --> -<sect1 id="language.escaping"> - <title>Предотвращение обработки Smarty</title> - <para> - Иногда необходимо, чтобы Smarty не обрабатывал часть шаблона, - которая должна по умолчанию обрабатываться. Классическим примером - такой ситуации является встраивание Javascript или CSS-кода в - шаблон. Проблема появляется из-за того, что эти языки используют - символы { и }, которые так же используются в качестве - <link linkend="language.function.ldelim">разделителей</link> - для Smarty. - </para> - - <para> - Самым простым решением является избежание этой ситуации путём выноса Javascript'а - и CSS-кода в отдельные файлы и использования стандартных методов HTML для доступа к ним. - </para> - - <para> - Дословное включение контента возможно при помощи блоков <link - linkend="language.function.literal"> - <varname>{literal}..{/literal}</varname></link>. - Подобно тому, как вы используете HTML-сущности (&nbsp; и т.п.), вы можете - использовать <link - linkend="language.function.ldelim"><varname>{ldelim}</varname></link>,<link - linkend="language.function.ldelim"><varname>{rdelim}</varname></link> или - <link linkend="language.variables.smarty.ldelim"> - <varname>{$smarty.ldelim}</varname></link> - для отображения текущих разделителей. - </para> - - <para> - Порой бывает удобно просто изменить свойства <link - linkend="variable.left.delimiter"> - <parameter>$left_delimiter</parameter></link> и - <link linkend="variable.right.delimiter"> - <parameter>$right_delimiter</parameter></link> - в объекте Smarty. - </para> - <example> - <title>Изменение разделителей</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->left_delimiter = '<!--{'; -$smarty->right_delimiter = '}-->'; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - </programlisting> - <para> - Пример шаблона: - </para> - <programlisting> -<![CDATA[ -Welcome <!--{$name}--> to Smarty -<script language="javascript"> - var foo = <!--{$foo}-->; - function dosomething() { - alert("foo is " + foo); - } - dosomething(); -</script> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-math.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2587 Maintainer: freespace Status: ready --> -<sect1 id="language.math"> - <title>Арифметические операции</title> - <para> - Арифметические операции могут совершаться непосредственно над значениями переменных. - </para> - <example> - <title>Примеры арифметики</title> - <programlisting> -<![CDATA[ -{$foo+1} - -{$foo*$bar} - -{* несколько более сложных примеров *} - -{$foo->bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - </programlisting> - </example> - <para> - См. также функцию <link linkend="language.function.math"> - <varname>{math}</varname></link> для сложных вычислений и - <link linkend="language.function.eval"><varname>{eval}</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-syntax-attributes.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2628 Maintainer: freespace Status: ready --> -<sect1 id="language.syntax.attributes"> - <title>Параметры</title> - <para> - Большинство - <link linkend="language.syntax.functions">функций</link> - принимают аргументы, которые уточняют или - изменяют ее поведение. Аргументы в Smarty очень похожи на - параметры в HTML. Статические значения не обязательно заключать - в кавычки, но это рекомендуется для текстовых строк. Переменные - также могут быть использованы в качестве параметров, и не должны - заключаться в кавычки. - </para> - <para> - Некоторые параметры принимают логические значения (&true; или &false;). - Они могут быть указаны словами <literal>true</literal>, - <literal>on</literal> и <literal>yes</literal>, или - <literal>false</literal>, <literal>off</literal> и - <literal>no</literal> без кавычек. - </para> - <example> - <title>синтаксис параметров функции</title> - <programlisting> -<![CDATA[ -{include file='header.tpl'} - -{include file='header.tpl' attrib_name='attrib value'} - -{include file=$includeFile} - -{include file=#includeFile# title='Smarty is cool'} - -{html_select_date display_days=yes} - -{mailto address='smarty@example.com'} - -<select name='company_id'> - {html_options options=$companies selected=$company_id} -</select> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-syntax-comments.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2628 Maintainer: freespace Status: ready --> -<sect1 id="language.syntax.comments"> - <title>Комментарии</title> - <para> - Комментарии в шаблонах заключаются в звездочки (*) окруженные - <link linkend="variable.left.delimiter">разделителями</link>, - например: - </para> - <informalexample> - <programlisting> -<![CDATA[ -{* это комментарий *} -]]> - </programlisting> - </informalexample> - - <para> - Smarty НЕ отображает комментарии в выводе шаблона, в отличие - от <literal><!-- комментариев HTML --></literal>. - Они используются для внутренних примечаний в шаблонах, которые никто - не увидит ;-) - </para> - <example> - <title>Комментарии внутри шаблона</title> - <programlisting> -<![CDATA[ -<body> -{* Я - простой комментарий Smarty, я не существую в скомпилированном выводе *} -<html> -<head> - <title>{$title}</title> -</head> -<body> - -{* другой однострочный комментарий Smarty *} -<!-- HTML-комментарий, который будет отправлен браузеру --> - -{* этот многострочный комментарий - не отправляется в бразуер -*} - -{********************************************************* - Многострочный блок комментариев с информацие об авторе - @ author: bg@example.com - @ maintainer: support@example.com - @ para: var that sets block style - @ css: the style output -**********************************************************} - -{* Файл-заголовок с главным логотипом и т.д. *} -{include file='header.tpl'} - - -{* Примечание разработчика: переменная $includeFile назначается в скрипте foo.php *} -<!-- Отображает блок комментариев главного контента --> -{include file=$includeFile} - -{* этот блок <select> ненужен *} -{* -<select name="company"> - {html_options options=$vals selected=$selected_id} -</select> -*} - -<!-- Отображение заголовков от аффилиатор отключено --> -{* $affiliate|upper *} - -{* вложенные комментарии использовать нельзя *} -{* -<select name="company"> - {* <option value="0">-- нет -- </option> *} - {html_options options=$vals selected=$selected_id} -</select> -*} - -{* cvs-тэг шаблона: эти 36 ДОЛЖНЫ быть американской валютой, - но в таком случае CVS обработает их *} -{* $Id: Exp $ *} -{* $Id: *} -</body> -</html> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-syntax-functions.xml
Deleted
@@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2587 Maintainer: freespace Status: ready --> -<sect1 id="language.syntax.functions"> - <title>Функции</title> - <para> - Каждый тэг Smarty либо выводит значение <link - linkend="language.variables">переменной</link>, либо вызывает - некоторую функцию. Они обрабатываются путём заключения функции и ее - <link linkend="language.syntax.attributes">параметров</link> - в разделители, например: - <literal>{funcname attr1='val1' attr2='val2'}</literal>. - </para> - <example> - <title>Синтаксис функций</title> - <programlisting> -<![CDATA[ -{config_load file='colors.conf'} - -{include file='header.tpl'} -{insert file='banner_ads.tpl' title='Smarty - это круто'} - -{if $logged_in} - Welcome, <font color="{#fontColor#}">{$name}!</font> -{else} - Hi, {$name}! -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - </programlisting> - </example> - - <itemizedlist> - <listitem> - <para> - И <link linkend="language.builtin.functions">встроенные</link>, - и <link linkend="language.custom.functions">пользовательские функции</link> - используются с одинаковым синтаксисом. - </para> - </listitem> - - <listitem> - <para> - Встроенные функции обеспечивают - <emphasis role="bold">внутреннюю</emphasis> работу Smarty, например - <link linkend="language.function.if"><varname>{if}</varname></link>, - <link linkend="language.function.section"> - <varname>{section}</varname></link> и - <link linkend="language.function.strip"><varname>{strip}</varname></link>. - У вас не должно быть причин для их модификации. - </para> - </listitem> - - <listitem> - <para> - Пользовательские функции являются - <emphasis role="bold">дополнительными</emphasis> и реализуются через - <link linkend="plugins">плагины</link>. - Они могут быть изменены по вашему желанию, также вы можете - создать новые. - Примерами пользовательских функций могут быть - <link linkend="language.function.html.options"> - <varname>{html_options}</varname></link> и - <link linkend="language.function.popup"><varname>{popup}</varname></link>. - </para> - </listitem> - </itemizedlist> - - <para> - См. также - <link linkend="api.register.function"> - <varname>register_function()</varname></link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-syntax-quotes.xml
Deleted
@@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2764 $ --> -<!-- EN-Revision: 2757 Maintainer: freespace Status: ready --> -<sect1 id="language.syntax.quotes"> - <title>Внедренные переменные в двойных кавычках</title> - - <itemizedlist> - <listitem> - <para> - Smarty распознает - <link linkend="api.assign">присвоенные</link> - <link linkend="language.syntax.variables">переменные</link>, - если они встречаются в строках, заключенных в "двойные кавычки", - если имена переменных состоят из цифр, букв, знака под_чёркивания и - квадратных скобок[]. - См. также <ulink url="&url.php-manual;language.variables">Переменные</ulink>. - </para> - </listitem> - - <listitem> - <para> - В случае, если переменная содержит другие символы, например - точки, ссылки на объекты и т.д., переменную необходимо заключить - в <literal>`обратные кавычки`</literal>. - В данном случае вы не можете использовать - <link linkend="language.modifiers">модификаторы</link>, - их следует применять вне кавычек. - </para> - </listitem> - - <listitem> - <para> - Вы не можете использовать - <link linkend="language.modifiers">модификаторы</link> - подобным образом - они всегда должны применяться за пределами кавычек. - </para> - </listitem> - </itemizedlist> - - <example> - <title>Примеры синтаксиса</title> - <programlisting> -<![CDATA[ -{func var="test $foo test"} <-- ищет $foo -{func var="test $foo_bar test"} <-- ищет $foo_bar -{func var="test $foo[0] test"} <-- ищет $foo[0] -{func var="test $foo[bar] test"} <-- ищет $foo[bar] -{func var="test $foo.bar test"} <-- ищет $foo (не $foo.bar) -{func var="test `$foo.bar` test"} <-- ищет $foo.bar -{func var="test `$foo.bar` test"|escape} <-- модификатор вне кавычек! -]]> - </programlisting> - </example> - - <example> - <title>Практические примеры</title> - <programlisting> -<![CDATA[ -{* заменит $tpl_name её значением *} -{include file="subdir/$tpl_name.tpl"} - -{* не заменит $tpl_name *} -{include file='subdir/$tpl_name.tpl'} <-- - -{* нужны обратные кавычки из за того, что имя содержит точки *} -{cycle values="one,two,`$smarty.config.myval`"} - -{* аналог $module['contact'].'.tpl' в PHP *} -{include file="`$module.contact`.tpl"} - -{* аналог $module[$view].'.tpl' в PHP *} -{include file="`$module.$view`.tpl"} -]]> - </programlisting> - </example> - - <para> - См. также - <link linkend="language.modifier.escape"><varname>escape</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-basic-syntax/language-syntax-variables.xml
Deleted
@@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2587 Maintainer: freespace Status: ready --> -<sect1 id="language.syntax.variables"> - <title>Переменные</title> - <para> - Переменные шаблона начинаются со знака $доллара. Они могут состоять из цифр, - букв, знаков подчёркивания - как и обычные - <ulink url="&url.php-manual;language.variables">PHP variable</ulink>. - Вы можете обращаться к массивам по числовым и нечисловым индексам. - Вы также можете обращаться к свойствам и методам объектов. - <link linkend="language.config.variables">Переменные конфигурационного файла</link> - - это исключения из долларового синтаксиса; к ним можно обращаться, окружив - их #решетками# или воспользовавшись специальной переменной - <link linkend="language.variables.smarty.config"> - <parameter>$smarty.config</parameter></link>. - </para> - <example> - <title>Переменные</title> - <programlisting> -<![CDATA[ -{$foo} <-- отображение простой переменной (не массив и не объект) -{$foo[4]} <-- отображает 5-й элемент числового массива -{$foo.bar} <-- отображает значение ключа "bar" ассоциативного массива, подобно PHP $foo['bar'] -{$foo.$bar} <-- отображает значение переменного ключа массива, подобно PHP $foo[$bar] -{$foo->bar} <-- отображает свойство "bar" объекта -{$foo->bar()} <-- отображает возвращаемое значение метода "bar" объекта -{#foo#} <-- отображает переменную "foo" конфигурационного файла -{$smarty.config.foo} <-- синоним для {#foo#} -{$foo[bar]} <-- синтаксис доступен только в цикле section, см. {section} -{assign var=foo value='baa'}{$foo} <-- отображает "baa", см. {assign} - -Также доступно множество других комбинаций - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- передача параметра -{"foo"} <-- статические значения также разрешены - -{* отображает серверную переменную "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - </programlisting> - </example> - - <para> - Переменные запроса, такие как <literal>$_GET</literal>, - <literal>$_SESSION</literal> и т.д. доступны через зарезервированную - переменную <link linkend="language.variables.smarty"> - <parameter>$smarty</parameter></link>. - </para> - - <para> - См. также <link linkend="language.variables.smarty"> - <parameter>$smarty</parameter></link>, - <link linkend="language.config.variables">Переменные файлов конфигурации</link>, - <link linkend="language.function.assign"><varname>{assign}</varname></link> - и - <link linkend="api.assign"><varname>assign()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2628 Maintainer: freespace Status: ready --> -<chapter id="language.builtin.functions"> - <title>Встроенные функции</title> - <para> - В smarty включены несколько встроенных функций. Эти встроенные функции - интегрированы в язык шаблонов. Нельзя создавать - <link linkend="language.custom.functions">пользовательские функции</link> - с такими же названиями и вам не следует модифицировать встроенные функции. - </para> - - <para> - Некоторые эти функции имеют атрибут <parameter>assign</parameter>, - который помещает результати их выполнения в переменную шаблона, вместо вывода - в браузер, практически как функция - <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> - -&designers.language-builtin-functions.language-function-capture; -&designers.language-builtin-functions.language-function-config-load; -&designers.language-builtin-functions.language-function-foreach; -&designers.language-builtin-functions.language-function-if; -&designers.language-builtin-functions.language-function-include; -&designers.language-builtin-functions.language-function-include-php; -&designers.language-builtin-functions.language-function-insert; -&designers.language-builtin-functions.language-function-ldelim; -&designers.language-builtin-functions.language-function-literal; -&designers.language-builtin-functions.language-function-php; -&designers.language-builtin-functions.language-function-section; -&designers.language-builtin-functions.language-function-strip; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-capture.xml
Deleted
@@ -1,138 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2768 $ --> -<!-- EN-Revision: 2627 Maintainer: freespace Status: ready --> -<sect1 id="language.function.capture"> - <title>{capture}</title> - <para> - <varname>{capture}</varname> используется для того, чтобы собрать результат - обработки части шаблона между тэгами в какую-то переменную, вместо того, - чтобы отобразить результат. - Любое содержимое между <varname>{capture name='foo'}</varname> и - <varname>{/capture}</varname> сохраняется в переменную, указанную в атрибуте - <parameter>name</parameter>. - </para> - <para> - Захваченные данные могут в дальнейшем использоваться в - шаблоне при помощи специальной переменной <link - linkend="language.variables.smarty.capture"><parameter>$smarty.capture.foo</parameter></link>, - где <quote>foo</quote> - значение, переданное атрибуту <parameter>name</parameter>. - Если атрибут <parameter>name</parameter> не указан, - то используется <quote>default</quote>, т.е. <parameter>$smarty.capture.default</parameter>. - </para> - - <para> - Функция <varname>{capture}</varname> поддерживает вложенность. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Имя блока для сохранения</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной для сохранения результатов</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Внимание</title> - <para> - Будте осторожны, сохраняя результат команды <link - linkend="language.function.insert"><varname>{insert}</varname></link>. - Если вы используете - <link linkend="caching"><parameter>кэширование</parameter></link> - и в области кэширования встречаются команды - <link linkend="language.function.insert"><varname>{insert}</varname></link>, - то не сохраняйте данный вывод. - </para> - </note> - - <para> - <example> - <title>Сохранение вывода шаблона в указанный атрибут</title> - <programlisting> -<![CDATA[ -{* мы не хотим отображать тэг div, если его содержимое не отображается *} -{capture name=banner} - {include file='get_banner.tpl'} -{/capture} -{if $smarty.capture.banner ne ''} -<div id="banner">{$smarty.capture.banner}</div> -{/if} -]]> - </programlisting> - </example> - - <example> - <title>Сохранение содержимого в переменную</title> - <para> - Этот пример также демонстрирует функцию - <link linkend="language.function.popup"><varname>{popup}</varname></link> - </para> - <programlisting> -<![CDATA[ -{capture name=some_content assign=popText} -Имя сервера: {$smarty.server.SERVER_NAME|upper}<br /> -Адрес сервера: {$smarty.server.SERVER_ADDR}<br /> -Ваш IP: {$smarty.server.REMOTE_ADDR}. -{/capture} - -<a href="#" {popup caption='Информация о Сервере' text=$popText}>help</a> -]]> - </programlisting> - </example> - </para> - <para> - См. также - <link linkend="language.variables.smarty.capture"><parameter>$smarty.capture</parameter></link>, - <link linkend="language.function.eval"><varname>{eval}</varname></link>, - <link linkend="language.function.fetch"><varname>{fetch}</varname></link>, - <link linkend="api.fetch"><varname>fetch()</varname></link> - и <link linkend="language.function.assign"><varname>{assign}</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-config-load.xml
Deleted
@@ -1,190 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2768 $ --> -<!-- EN-Revision: 2715 Maintainer: freespace Status: ready --> -<sect1 id="language.function.config.load"> - <title>{config_load}</title> - <para> - <varname>{config_load}</varname> используется для загрузки - конфигурационных переменных - (<link linkend="language.config.variables"><parameter>#variables#</parameter></link>) из - <link linkend="config.files">конфигурационных файлов</link> в шаблон. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя config файла для загрузки</entry> - </row> - <row> - <entry>section</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя секции для загрузки</entry> - </row> - <row> - <entry>scope</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>local</emphasis></entry> - <entry> - Способ обработки области видимости загруженных - переменных. Должен быть одинм из local, parent - или global. local означает, что переменные загружены - в контекст локального шаблона. parent означает, что - переменные загружены в контекст как локального, так - и родительского шаблона. global означает, что - переменные доступны из любого шаблона. - </entry> - </row> - <row> - <entry>global</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>No</emphasis></entry> - <entry> - Доступны ли переменные из родительского шаблона. - Аналогичен scope=parent. ЗАМЕЧАНИЕ: Этот атрибут - перекрывается атрибутом scope, но все еще - поддерживается. Если scope указан, то это значение - игнорируется. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>{config_load}</title> - <para> - Файл <filename>example.conf</filename>. - </para> - <programlisting> -<![CDATA[ -#это комментарий конфигурационного файла - -# глобальные переменные -pageTitle = "Main Menu" -bodyBgColor = #000000 -tableBgColor = #000000 -rowBgColor = #00ff00 - -#секция переменных customer -[Customer] -pageTitle = "Customer Info" -]]> - </programlisting> - <para>и шаблон</para> - <programlisting> -<![CDATA[ -{config_load file="example.conf"} - -<html> - <head> - <title>{#pageTitle#|default:"No title"}</title> - </head> - <body bgcolor="{#bodyBgColor#}"> - <table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> - </table> - </body> -</html> -]]> - </programlisting> - </example> - <para> - <link linkend="config.files">Конфигурационные файлы</link> - могут также содержать секции. Вы можете загружать - переменные из определенной секции, указав атрибут - <parameter>section</parameter>. Имейте в виду, что глобальные - конфигурационные переменные всегда загружаются вместе с секционными - переменными, которые могут переопределять их. - </para> - <note> - <para> - <emphasis>Секции файлов конфигурации</emphasis> и встроенная - функция - <link linkend="language.function.section"><varname>{section}</varname></link> - не имеют ничего общего, кроме схожего названия. - </para> - </note> - <example> - <title>функция {config_load} с секцией</title> - <programlisting> -<![CDATA[ -{config_load file='example.conf' section='Customer'} - -<html> - <head> - <title>{#pageTitle#|default:"No title"}</title> - </head> - <body bgcolor="{#bodyBgColor#}"> - <table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> - <tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> - </tr> - </table> - </body> -</html> -]]> - </programlisting> - </example> - - <para> - См. <link linkend="variable.config.overwrite"><parameter>$config_overwrite</parameter></link> - для массивов конфигурационных переменных. - </para> - - <para> - См. также <link linkend="config.files">Конфигурационные файлы</link>, - <link linkend="language.config.variables">Конфигурационные переменные</link>, - <link linkend="variable.config.dir"><parameter>$config_dir</parameter></link>, - <link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link> - и - <link linkend="api.config.load"><varname>config_load()</varname></link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-foreach.xml
Deleted
@@ -1,486 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2768 $ --> -<!-- EN-Revision: 2767 Maintainer: freespace Status: ready --> -<sect1 id="language.function.foreach"> - <title>{foreach},{foreachelse}</title> - <para> - <varname>{foreach}</varname> используется для работы как с - <emphasis role="bold">ассоциативным</emphasis>, - так и с числовыми массивами, в отличие от функции - <link linkend="language.function.section"><varname>{section}</varname></link>, - которая предназначена для работы - <emphasis role="bold">исключительно с числовыми массивами</emphasis>. - - Синтаксис функции <varname>{foreach}</varname> намного проще, чем - <link linkend="language.function.section"><varname>{section}</varname></link>, - но она может работать <emphasis role="bold">только с одним массивом</emphasis> - одновременно. Каждый тэг <varname>{foreach}</varname> должен иметь - закрывающую пару <varname>{/foreach}</varname>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>from</entry> - <entry>array</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Массив, по которому надо пройтись</entry> - </row> - <row> - <entry>item</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которая будет значением текущего елемента</entry> - </row> - <row> - <entry>key</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которая будет ключом текущего елемента</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Название цикла foreach для доступа к его свойствам</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <itemizedlist> - <listitem> - <para> - Атрибуты <parameter>from</parameter> и <parameter>item</parameter> - являются обязательными. - </para> - </listitem> - - <listitem> - <para> - Параметр <parameter>name</parameter> цикла <varname>{foreach}</varname> - может состоять из букв, цифр и знака подчеркивания, как и - <ulink url="&url.php-manual;language.variables">переменные PHP</ulink>. - </para> - </listitem> - - <listitem> - <para> - Циклы <varname>{foreach}</varname> могут быть вложенными при условии, что - их имена будут уникальными. - </para> - </listitem> - - <listitem> - <para> - Атрибут <parameter>from</parameter>, обычно являющийся массивом, - определяет количество проходов цикла <varname>{foreach}</varname>. - </para> - </listitem> - - <listitem> - <para> - Блок <varname>{foreachelse}</varname> выполняется в том случае, если - в параметре <parameter>from</parameter> нет значений. - </para> - </listitem> - - <listitem> - <para> - У циклов <varname>{foreach}</varname> также есть собственные переменные, - которые обрабатывают свойства. - Доступ к ним можно получить таким образом: - <link linkend="language.variables.smarty.loops"> - <parameter>{$smarty.foreach.name.property}</parameter></link>, где - <quote>name</quote> - атрибут <parameter>name</parameter> функции - <varname>{foreach}</varname>. - </para> - <note> - <title>Обратите внимание</title> - <para> - Атрибут <parameter>name</parameter> необходим только в том случае, - когда у вас есть необходимость обращаться к свойствам - <varname>{foreach}</varname>, в отличие от функции - <link linkend="language.function.section"><varname>{section}</varname></link>. - Обращение к свойствам <varname>{foreach}</varname> с неопределенным - <parameter>name</parameter> не вызывает ошибки, но ведёт к непредсказуемым - результатам. - </para> - </note> - </listitem> - - <listitem> - <para> - <varname>{foreach}</varname> имеет следующие свойства: - <link linkend="foreach.property.index"><parameter>index</parameter></link>, - <link linkend="foreach.property.iteration"><parameter>iteration</parameter></link>, - <link linkend="foreach.property.first"><parameter>first</parameter></link>, - <link linkend="foreach.property.last"><parameter>last</parameter></link>, - <link linkend="foreach.property.show"><parameter>show</parameter></link> и - <link linkend="foreach.property.total"><parameter>total</parameter></link>. - </para> - </listitem> - </itemizedlist> - - <example> - <title>Атрибут <parameter>item</parameter></title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array(1000, 1001, 1002); -$smarty->assign('myArray', $arr); -?> -]]> - </programlisting> - <para> - Шаблон для отображения <parameter>$myArray</parameter> в виде - ненумерованного списка - </para> - <programlisting> -<![CDATA[ -<ul> -{foreach from=$myArray item=foo} - <li>{$foo}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<ul> - <li>1000</li> - <li>1001</li> - <li>1002</li> -</ul> -]]> - </screen> - </example> - -<example> - <title>Пример работы атрибутов <parameter>item</parameter> и <parameter>key</parameter></title> - <programlisting role="php"> -<![CDATA[ -<?php -$arr = array(9 => 'Tennis', 3 => 'Swimming', 8 => 'Coding'); -$smarty->assign('myArray', $arr); -?> -]]> - </programlisting> - <para> - Шаблон для отображения <parameter>$myArray</parameter> в виде пар ключ/значение, - как <ulink url="&url.php-manual;foreach"><varname>foreach</varname></ulink> - в PHP.</para> - <programlisting> -<![CDATA[ -<ul> -{foreach from=$myArray key=k item=v} - <li>{$k}: {$v}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<ul> - <li>9: Tennis</li> - <li>3: Swimming</li> - <li>8: Coding</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>{foreach} с ассоциативным атрибутом <parameter>item</parameter></title> - <programlisting role="php"> -<![CDATA[ -<?php -$items_list = array(23 => array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') - ); -$smarty->assign('items', $items_list); -?> -]]> - </programlisting> - <para> - Шаблон для отображения элементов <parameter>$items</parameter>, в котором - <parameter>$myId</parameter> используется в URL'е - </para> - <programlisting> -<![CDATA[ -<ul> -{foreach from=$items key=myId item=i} - <li><a href="item.php?id={$myId}">{$i.no}: {$i.label}</li> -{/foreach} -</ul> -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<ul> - <li><a href="item.php?id=23">2456: Salad</li> - <li><a href="item.php?id=96">4889: Cream</li> -</ul> -]]> - </screen> - </example> - - <example> - <title>{foreach} со вложенными <parameter>item</parameter> и <parameter>key</parameter></title> - <para>В Smarty передан такой массив, ключ которого содержит ключ для каждого перебираемого значения.</para> - <programlisting role="php"> -<![CDATA[ -<?php - $smarty->assign('contacts', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - </programlisting> - <para>Шаблон для отображения <parameter>$contact</parameter>.</para> - <programlisting> -<![CDATA[ -{foreach name=outer item=contact from=$contacts} - <hr /> - {foreach key=key item=item from=$contact} - {$key}: {$item}<br /> - {/foreach} -{/foreach} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<hr /> - phone: 1<br /> - fax: 2<br /> - cell: 3<br /> -<hr /> - phone: 555-4444<br /> - fax: 555-3333<br /> - cell: 760-1234<br /> -]]> - </screen> - </example> - - <example> - <title>Пример использования {foreachelse} при работе с базой данных</title> - <para> - Пример работы с базой данных (при помощи PEAR или ADODB) в скрипте поиска, - результаты которого передаются в Smarty. - </para> -<programlisting role="php"> -<![CDATA[ -<?php - $search_condition = "WHERE name LIKE '$foo%' "; - $sql = 'SELECT contact_id, name, nick FROM contacts '.$search_condition.' ORDER BY name'; - $smarty->assign('results', $db->getAssoc($sql) ); -?> -]]> - </programlisting> - <para> - Шаблон отобразит сообщение <quote>Ничего не найдено</quote> при помощи - <varname>{foreachelse}</varname> в случае, если поиск не дал результатов. - </para> - <programlisting> -<![CDATA[ -{foreach key=cid item=con from=$results} - <a href="contact.php?contact_id={$cid}">{$con.name} - {$con.nick}</a><br /> -{foreachelse} - Ничего не найдено -{/foreach} -]]> - </programlisting> - </example> - - <sect2 id="foreach.property.index"> - <title>.index</title> - <para> - <parameter>index</parameter> contains the current array index, starting with zero. - </para> - <example> - <title><parameter>index</parameter> example</title> - -<programlisting role="php"> -<![CDATA[ -{* The header block is output every five rows *} -<table> -{foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - <tr><th>Title</th></tr> - {/if} - <tr><td>{$i.label}</td></tr> -{/foreach} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.iteration"> - <title>.iteration</title> - <para> - <parameter>iteration</parameter> содержит значение текущей итерации цикла - и всегда начинается с единицы, в отличие от - <link linkend="foreach.property.index"><parameter>index</parameter></link>. - Это значение увеличивается на единицу с каждой следующей итерацией. - </para> - <example> - <title>Примеры работы с <parameter>iteration</parameter> и <parameter>index</parameter></title> -<programlisting role="php"> -<![CDATA[ -{* этот шаблон выведет 0|1, 1|2, 2|3, ... и т.д. *} -{foreach from=$myArray item=i name=foo} - {$smarty.foreach.foo.index}|{$smarty.foreach.foo.iteration}, -{/foreach} -]]> - </programlisting> - </example> - - </sect2> - - <sect2 id="foreach.property.first"> - <title>.first</title> - <para> - Свойство <parameter>first</parameter> равно &true;, если текущая итерация - <varname>{foreach}</varname> - первая. - </para> - <example> - <title>Пример использования свойства <parameter>first</parameter></title> -<programlisting role="php"> -<![CDATA[ -{* отображаем "НОВОЕ" напротив первого элемента, иначе id *} -<table> -{foreach from=$items key=myId item=i name=foo} -<tr> - <td>{if $smarty.foreach.foo.first}НОВОЕ{else}{$myId}{/if}</td> - <td>{$i.label}</td> -</tr> -{/foreach} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.last"> - <title>.last</title> - <para> - Свойство <parameter>last</parameter> равно &true;, если текущая итерация - <varname>{foreach}</varname> - последняя. - </para> - <example> - <title>Пример использования свойства <parameter>last</parameter></title> -<programlisting role="php"> -<![CDATA[ -{* Добавляем горизонтальную полосу (<hr />) в конце списка *} -{foreach from=$items key=part_id item=prod name=products} - <a href="#{$part_id}">{$prod}</a>{if $smarty.foreach.products.last}<hr />{else},{/if} -{foreachelse} - ... content ... -{/foreach} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="foreach.property.show"> - <title>.show</title> - <para> - <parameter>show</parameter> используется как параметр для <varname>{foreach}</varname>. - <parameter>show</parameter> - это булевое значение. - Если оно равно &false;, результат работы <varname>{foreach}</varname> не будет отображен. - Если присутствует директива <varname>{foreachelse}</varname>, её содержимое - будет отображено. - </para> - - </sect2> - <sect2 id="foreach.property.total"> - <title>.total</title> - <para> - <parameter>total</parameter> содержит общее количество итераций, - которое пройдет данный цикл <varname>{foreach}</varname>. - Его можно использовать во время или после выполнения <varname>{foreach}</varname>. - </para> - <example> - <title>Пример использования свойства <parameter>total</parameter></title> -<programlisting role="php"> -<![CDATA[ -{* отображаем количество отображенных строк в конце *} -{foreach from=$items key=part_id item=prod name=foo} -{$prod.name}<hr/> -{if $smarty.foreach.foo.last} - <div id="total">{$smarty.foreach.foo.total} предметов</div> -{/if} -{foreachelse} - ... что-то другое ... -{/foreach} -]]> - </programlisting> - </example> - - <para> - См. также - <link linkend="language.function.section"><varname>{section}</varname></link> - и - <link linkend="language.variables.smarty.loops"><parameter>$smarty.foreach</parameter></link>. - </para> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-if.xml
Deleted
@@ -1,264 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.if"> - <title>{if},{elseif},{else}</title> - <para> - Конструкция <emphasis>{if}</emphasis> в Smarty такая же гибкая, как и - конструкция - <ulink url="&url.php-manual;if"><command>if</command></ulink> в PHP, - только с несколькими дополнительными возможностями для шаблонов. - Каждый тэг <emphasis>{if}</emphasis> должен иметь пару - <emphasis>{/if}</emphasis>. <emphasis>{else}</emphasis> и - <emphasis>{elseif}</emphasis> так же допустимы. Досутпны все квалификаторы - и функции - из PHP, такие как <emphasis>||</emphasis>, <emphasis>or</emphasis>, - <emphasis>&&</emphasis>, <emphasis>and</emphasis>, - <emphasis>is_array()</emphasis> и т.д. - </para> - - <para> - Если <link linkend="variable.security">$security</link> включена, - то массив <emphasis>IF_FUNCS</emphasis> в массиве <link - linkend="variable.security.settings">$security_settings</link>. - </para> - - <para> - Ниже следует список распознаваемых квалификаторов, которые должны быть - отделены от окружающих элементов пробелами. Обратите внимания, что - объекты в [квадратных скобках] являются необязательными. Иногда указаны - эквиваленты в PHP. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="qualifier" align="center" /> - <colspec colname="alternates" align="center" /> - <colspec colname="meaning" /> - <colspec colname="example" /> - <colspec colname="php" /> - <thead> - <row> - <entry>Квалификатор</entry> - <entry>Альтернативы</entry> - <entry>Пример синтаксиса</entry> - <entry>Описание</entry> - <entry>Эквивалент PHP</entry> - </row> - </thead> - <tbody> - <row> - <entry>==</entry> - <entry>eq</entry> - <entry>$a eq $b</entry> - <entry>равно</entry> - <entry>==</entry> - </row> - <row> - <entry>!=</entry> - <entry>ne, neq</entry> - <entry>$a neq $b</entry> - <entry>не равно</entry> - <entry>!=</entry> - </row> - <row> - <entry>></entry> - <entry>gt</entry> - <entry>$a gt $b</entry> - <entry>больше</entry> - <entry>></entry> - </row> - <row> - <entry><</entry> - <entry>lt</entry> - <entry>$a lt $b</entry> - <entry>меньше</entry> - <entry><</entry> - </row> - <row> - <entry>>=</entry> - <entry>gte, ge</entry> - <entry>$a ge $b</entry> - <entry>больше или равно</entry> - <entry>>=</entry> - </row> - <row> - <entry><=</entry> - <entry>lte, le</entry> - <entry>$a le $b</entry> - <entry>меньше или равно</entry> - <entry><=</entry> - </row> - <row> - <entry>===</entry> - <entry></entry> - <entry>$a === 0</entry> - <entry>проверка идентичности</entry> - <entry>===</entry> - </row> - <row> - <entry>!</entry> - <entry>not</entry> - <entry>not $a</entry> - <entry>отрицание</entry> - <entry>!</entry> - </row> - <row> - <entry>%</entry> - <entry>mod</entry> - <entry>$a mod $b</entry> - <entry>остаток от деления</entry> - <entry>%</entry> - </row> - <row> - <entry>is [not] div by</entry> - <entry></entry> - <entry>$a is not div by 4</entry> - <entry>возможно деление без остатка</entry> - <entry>$a % $b == 0</entry> - </row> - <row> - <entry>is [not] even</entry> - <entry></entry> - <entry>$a is not even</entry> - <entry>[не]чётно</entry> - <entry>$a % 2 == 0</entry> - </row> - <row> - <entry>is [not] even by</entry> - <entry></entry> - <entry>$a is not even by $b</entry> - <entry>[не]чётно значению</entry> - <entry>($a / $b) % 2 == 0</entry> - </row> - <row> - <entry>is [not] odd</entry> - <entry></entry> - <entry>$a is not odd</entry> - <entry>[не]нечётно</entry> - <entry>$a % 2 != 0</entry> - </row> - <row> - <entry>is [not] odd by</entry> - <entry></entry> - <entry>$a is not odd by $b</entry> - <entry>[не]нечётно значению</entry> - <entry>($a / $b) % 2 != 0</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>примеры использования {if}</title> - <programlisting> -<![CDATA[ -{if $name eq 'Fred'} - Welcome Sir. -{elseif $name eq 'Wilma'} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* пример с логикой "или" *} -{if $name eq 'Fred' or $name eq 'Wilma'} - ... -{/if} - -{* то же самое, что и выше *} -{if $name == 'Fred' || $name == 'Wilma'} - ... -{/if} - -{* скобки разрешены *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* вы также можете использовать функции php *} -{if count($var) gt 0} - ... -{/if} - -{* проверка на массив *} -{if is_array($foo) } - ... -{/if} - -{* проверка на существование *} -{if isset($foo) } - ... -{/if} - -{* проверяет чётность значений *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* проверяет, делится ли $var на 4 без остатка *} -{if $var is div by 4} - ... -{/if} - -{* - проверяет, является ли $var чётным двум, например - 0=чётно, 1=чётно, 2=нечётно, 3=нечётно, 4=чётно, 5=чётно и т.д. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=чётно, 1=чётно, 2=чётно, 3=нечётно, 4=нечётно, 5=нечётно и т.д. *} -{if $var is even by 3} - ... -{/if} -]]> - </programlisting> - </example> - - <example> - <title>ещё несколько примеров использования {if}</title> - <programlisting> -<![CDATA[ -{if isset($name) && $name = 'Blog'} - {* сделать что-нибудь *} -{elseif $name == $foo} - {* сделать что-нибудь другое *} -{/if} - -{if is_array($foo) && count($foo) > 0) - {* выполнить цикл foreach *} -{/if} -]]> - </programlisting> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-include-php.xml
Deleted
@@ -1,147 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.include.php"> - <title>{include_php}</title> - <note> - <title>Техническое замечание</title> - <para> - {include_php} достаточно устарела в Smarty, вы можете достичь этой - функциональности при помощи собственных функций шаблона. - Единственная причина для использования {include_php} - это серьёзная - необходимость отделить PHP-функцию от директории - <link linkend="variable.plugins.dir">plugins</link> - или кода вашего приложения. См. <link - linkend="tips.componentized.templates">примеры составных шаблонов</link> - для дополнительной информации. - </para> - </note> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя подключаемого php файла</entry> - </row> - <row> - <entry>once</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Указывает подключать файл или нет, - если он уже был однажды подключен</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Название переменной, которой будет - присвоен вывод include_php</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Тэги {include_php} используются для подключения PHP-скрипта в шаблон. - Если режим <link linkend="variable.security">$security</link> включен, - то PHP-скрипт должен быть расположен в директории - <link linkend="variable.trusted.dir">$trusted_dir</link>. - Тэг {include_php} должен иметь атрибут "file", который - указывает путь к подключаемому PHP-файлу, либо относительный к - <link linkend="variable.trusted.dir">$trusted_dir</link>, - либо абсолютный путь. - </para> - <para> - По умолчанию, PHP-файлы подключаются только один раз, даже если - вызываются несколько раз в шаблоне. Можно указать, что файл должен - быть подключен каждый раз, указав атрибут <emphasis>once</emphasis>. - Установив once в ложь (false) указывает, что файл должен быть - подключен вне зависимости от того, был ли он подключен раньше. - </para> - <para> - Можно указать опциональный атрибут <emphasis>assign</emphasis>, - который указывает имя переменной, которой будет присвоен вывод - <emphasis>{include_php}</emphasis>, вместо отображения. - </para> - <para> - Объект smarty доступен в подключаемом PHP-файле как $this. - </para> - <example> - <title>Функция {include_php}</title> - <para>load_nav.php</para> - <programlisting role="php"> -<![CDATA[ -<?php - -// загружает переменные из БД MySQL и присваивает их шаблону -require_once('MySQL.class.php'); -$sql = new MySQL; -$sql->query('select * from site_nav_sections order by name',SQL_ALL); -$this->assign('sections',$sql->record); - -?> -]]> - </programlisting> - <para>index.tpl</para> - <programlisting> -<![CDATA[ -{* абсолютный путь, либо относительный к $trusted_dir *} -{include_php file='/path/to/load_nav.php'} -{foreach item="curr_section" from=$sections} - <a href="{$curr_section.url}">{$curr_section.name}</a><br /> -{/foreach} -]]> - </programlisting> - </example> - - <para> - См. также - <link linkend="language.function.include">{include}</link>, - <link linkend="language.function.php">{php}</link>, - <link linkend="language.function.capture">{capture}</link>, - <link linkend="template.resources">Ресурсы</link> - и - <link linkend="tips.componentized.templates">Составные шаблоны</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-include.xml
Deleted
@@ -1,200 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.include"> - <title>{include}</title> - <para> - Тэги {include} используются для включения других шаблонов в текущий. - Любые переменные, доступные в текущем шаблоне, доступны и во - включаемом. Тэг {include} должен иметь атрибут <emphasis>'file'</emphasis>, - который указывает путь к ресурсу шаблона. - </para> - <para> - Опциональный атрибут <emphasis>assign</emphasis> указывает, что - результат выполнения {include} будет присвоен переменной вместо отображения. - </para> - <para> - Все значения присвоенных переменных восстанавливаются после того, - как подключаемый шаблон отработал. Это значит, что вы можете использовать - все переменные из подключающего шаблона в подключаемом, но изменения - переменных внутри подключаемого шаблона не будут видны внутри подключающего - шаблона после команды {include}. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя файла шаблона для включения</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которой присвоится вывод - шаблона</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Переменные, переданные в локальную область - включаемого шаблона</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>Функция {include}</title> - <programlisting> -<![CDATA[ -<html> - <head> - <title>{$title}</title> - </head> - <body> - {include file='page_header.tpl'} - {* тут идёт тело шаблона *} - {include file="$tpl_name.tpl"} <-- заменит $tpl_name его значением - {include file='page_footer.tpl'} - </body> -</html> -]]> - </programlisting> - </example> - - <para> - Вы также можете передать переменные в подключаемый шаблон в - виде <link linkend="language.syntax.attributes">атрибутов</link>. - Любая переменная, переданная в подключаемый - шаблон, доступны только в области видимости подключаемого - файла. Переданные переменные имеют преимущество перед - существующими переменными с аналогичными именами. - </para> - <example> - <title>передача переменных в {include}</title> - <programlisting> -<![CDATA[ -{include file='header.tpl' title='Main Menu' table_bgcolor='#c0c0c0'} - -{* тут идёт тело шаблона *} - -{include file='footer.tpl' logo='http://my.example.com/logo.gif'} -]]> - </programlisting> - <para>где header.tpl может быть</para> - <programlisting> -<![CDATA[ -<table border='1' width='100%' bgcolor='{$table_bgcolor|default:"#0000FF"}'> - <tr> - <td> - <h1>{$title}</h1> - </td> - </tr> -</table> -]]> - </programlisting> - </example> - - <example> - <title>{include} и присвоение переменной</title> - <para> - Этот пример присвоит содержимое nav.tpl переменной $navbar, - которая затем выводится сверху и снизу страницы. - </para> - <programlisting> -<![CDATA[ -<body> -{include file='nav.tpl' assign=navbar} -{include file='header.tpl' title='Main Menu' table_bgcolor='#effeef'} -{$navbar} - -{* тут идёт тело шаблона *} - -{include file='footer.tpl' logo='http://my.example.com/logo.gif'} -{$navbar} -</body> -]]> - </programlisting> - </example> - <para> - Для подключения файлов вне папки - <link linkend="variable.template.dir">$template_dir</link> - можно указывать файл с помощью - <link linkend="template.resources">ресурсов</link>. - </para> - <example> - <title>Примеры ресурсов шаблонов в {include}</title> - <programlisting> -<![CDATA[ -{* абсолютные пути *} -{include file='/usr/local/include/templates/header.tpl'} - -{* абсолютные пути (то же самое) *} -{include file='file:/usr/local/include/templates/header.tpl'} - -{* абсолютные пути в windows (ОБЯЗАТЕЛЬНО используйте префикс "file:") *} -{include file='file:C:/www/pub/templates/header.tpl'} - -{* подключение шаблона из ресурса с именем "db" *} -{include file='db:header.tpl'} - -{* подключение шаблона с переменным именем - например, $module = 'contacts' *} -{include file="$module.tpl"} -{* не будет работать, т.к. в одинарных кавычках не работает подстановка переменных *} -{include file='$module.tpl'} - -]]> - </programlisting> - </example> - - <para> - См. также - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.insert">{insert}</link>, - <link linkend="language.function.php">{php}</link>, - <link linkend="template.resources">Ресурсы</link> and - <link linkend="tips.componentized.templates">Составные шаблоны</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-insert.xml
Deleted
@@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.insert"> - <title>{insert}</title> - <para> - Тэг {insert} очень похож на тэг <link - linkend="language.function.include">{include}</link>, - за исключением того, что {insert} НЕ кэшируется, когда - <link linkend="caching">кэширование</link> включено. - Он будет выполнен при каждом обращении к шаблону. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя функции вставки (insert_name)</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которой будет - присвоен вывод</entry> - </row> - <row> - <entry>script</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя php файла, который будет подключен - перед вызовом функции вставки</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>[var type]</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Переменные, передаваемые в - функцию вставки</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Допустим, вы имеете шаблон с баннером вверху страницы. - Баннер может содержать любую смесь HTML, изображений, - flash и т.д., то есть нельзя использовать просто - статическую ссылку, и мы не хотим, чтобы код баннера - кэшировался с остальной страницей. Тогда используем - тэг {insert}: шаблон знает значения #banner_location_id# и - #site_id# (взяты из <link linkend="config.files">конфигурационного файла</link>) - и должен вызвать функцию, чтобы получить код баннера. - </para> - <example> - <title>функция {insert}</title> - <programlisting> -{* пример вставки баннера *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - </programlisting> - </example> - <para> - В этом примере мы используем имя "getBanner" и передаем параметры - #banner_location_id# и #site_id#. Smarty попробует вызвать - функцию insert_getBanner() в вашей PHP программе, передав - значения #banner_location_id# и #site_id# первым параметром в виде - ассоциативного массива. Все имена функций вставки должны начинаться - с "insert_" для предотвращения возможных конфликтов имен. Функция - insert_getBanner() должна обработать переданные переменные и - вернуть результат. Он будет отображен в шаблоне вместо тэга {insert}. - В данном случае Smarty вызовет функцию insert_getBanner(array("lid" - => "12345","sid" => "67890")); и выведет результат на месте тэга - {insert}. - </para> - <para> - Если указан атрибут "assign", то вывод функции вставки будет - присвоен указанной переменной вместо отображения. ЗАМЕЧАНИЕ: - присвоение вывода тэга {insert} переменной шаблона не очень - полезно, когда <link linkend="variable.caching">кеширование</link> включено. - </para> - <para> - Если указан атрибут "script", то указанный PHP-файл будет - подключен (только однажды) перед вызовом функции вставки. - Это удобно, когда функция может не сущетсвовать, и должен быть - подключен PHP-файл, чтобы определить функцию. Путь к файлу - должен быть либо абсолтным, либо относительным относительно - $trusted_dir. Когда включен режим <link - linkend="variable.security">$security</link>, PHP-файл должен - быть в папке <link linkend="variable.trusted.dir">$trusted_dir</link>. - </para> - <para> - Обьект Smarty передается в функцию как второй параметр. - Так вы можете использовать и модифицировать информацию - из объекта Smarty в функциях вставки. - </para> - <note> - <title>Техническое Замечание</title> - <para> - Некоторые части шаблона можно не кэшировать. - Если активировано <link linkend="caching">кэширование</link>, - то тэг {insert} все равно не будет кэширован. Он будет вызван - каждый раз при генерации страницы, даже из кешированных - страниц. Это полезно для таких вещей, как баннеры, опросы, - прогнозы погоды, результаты поиска, области обратной связи - и т.д. - </para> - </note> - - <para> - См. также - <link linkend="language.function.include">{include}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-ldelim.xml
Deleted
@@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.ldelim"> - <title>{ldelim},{rdelim}</title> - <para> - {ldelim} и {rdelim} используются для - <link linkend="language.escaping">предотвращения обработки</link> разделителей, - по-умолчанию "{" и "}". Вы также можете использовать блок - <link linkend="language.function.literal">{literal}{/literal}</link> для - предотвращения обработки блоков текста, например кода Javascript или CSS. - См. также - <link linkend="language.variables.smarty.ldelim">{$smarty.ldelim}</link> - </para> - <example> - <title>{ldelim}, {rdelim}</title> - <programlisting> -<![CDATA[ -{* будут выведены разделители в шаблоне *} - -{ldelim}funcname{rdelim} is how functions look in Smarty! -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -{funcname} is how functions look in Smarty! -]]> - </screen> - <para>Другой пример и немного javascript'а</para> - <programlisting> -<![CDATA[ -<script language="JavaScript"> -function foo() {ldelim} - ... code ... -{rdelim} -</script> -]]> - </programlisting> - <para>выведет</para> - <screen> -<![CDATA[ -<script language="JavaScript"> -function foo() { - .... code ... -} -</script> -]]> - </screen> - - </example> - - <example> - <title>another Javascript example</title> - <programlisting> -<![CDATA[ -<script language="JavaScript" type="text/javascript"> - function myJsFunction(){ldelim} - alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} -</script> -<a href="javascript:myJsFunction()">Click here for Server Info</a> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.function.literal">{literal}</link> - и - <link linkend="language.escaping">Предотвращение обработки Smarty</link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-literal.xml
Deleted
@@ -1,102 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.literal"> - <title>{literal}</title> - <para> - Тэги {literal} позволяют воспринимать блоки данных буквально. - Обычно они используются вместе с javascript или таблицами стилей, в которых - фигурные скобки конфликтуют с синтаксисом разделителей. - Весь текст внутри тэгов {literal}{/literal} не интерпретируется, а выводится - "как есть". Если вам нужно вставить тэги шаблонов в блок {literal}, - вам следует пойти по другому пути и использовать <link - linkend="language.function.ldelim">{ldelim}{rdelim}</link> для экранирования - отдельных разделителей. - </para> - - <example> - <title>Тэги {literal}</title> - <programlisting> -<![CDATA[ -{literal} -<script type="text/javascript"> -<!-- - function isblank(field) { - if (field.value == '') - { return false; } - else - { - document.loginform.submit(); - return true; - } - } -// --> -</script> -{/literal} -]]> - </programlisting> - </example> - - <example> - <title>Пример функции Javascript</title> - <programlisting> -<![CDATA[ -<script language="JavaScript" type="text/javascript"> -{literal} -function myJsFunction(name, ip){ - alert("The server name\n" + name + "\n" + ip); -} -{/literal} -</script> -<a href="javascript:myJsFunction('{$smarty.server.SERVER_NAME}','{$smarty.server.SERVER_ADDR}')">Click here for the Server Info</a> - ]]> - </programlisting> - </example> - - <example> - <title>Немного CSS в шаблоне</title> - <programlisting> -<![CDATA[ -{* включаем этот стиль... в качестве эксперимента *} -<style type="text/css"> -{literal} -/* это интересная идея для этого раздела */ -.madIdea{ - border: 3px outset #ffffff; - margin: 2 3 4 5px; - background-color: #001122; -} -{/literal} -</style> -<div class="madIdea">With smarty you can embed css in the template</div> -]]> - </programlisting> - </example> - - <para> - См. также - <link linkend="language.function.ldelim">{ldelim} {rdelim}</link> - и - <link linkend="language.escaping">Предотвращение обработки Smarty</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-php.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.php"> - <title>{php}</title> - <para> - Тэг {php} позволяет вставлять PHP-код прямо в шаблон. Он не - будет как-либо изменен, независимо от <link - linkend="variable.php.handling">$php_handling</link> настроек. - Этот тэг только для продвинутых пользователей, так как обычно - не требуется и не рекоммендуется. - </para> - <example> - <title>тэги {php}</title> - <programlisting> -<![CDATA[ -{php} - // подключение php скрипта прямо - // из шаблона - include('/path/to/display_weather.php'); -{/php} -]]> - </programlisting> - </example> - - <note> - <title>Техническое замечание</title> - <para> - Для доступа к переменным PHP внутри блоков {php}, вам может понадобится - использовать ключевое слово PHP - <ulink url="&url.php-manual;global">global</ulink> - </para> - </note> - - <example> - <title>Тэги {php} с глобальными переменными и назначение переменных</title> - <programlisting role="php"> -<![CDATA[ -{php} - global $foo, $bar; - if($foo == $bar){ - echo 'This will come out in the template'; - } - - $this->assign('varX','Strawberry'); -{/php} -<strong>{$varX}</strong> is my fav ice cream -]]> - </programlisting> - <para> - Следующее действие действительно НЕ рекоммендуется, - так как оно происходит в области видимости шаблона - </para> -<programlisting> -<![CDATA[ -{php} -print_r($some_array); -{/php} -]]> -</programlisting> -</example> - - <para> - См. также - <link linkend="variable.php.handling">$php_handling</link>, - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.include">{include}</link>, - <link linkend="language.function.insert">{insert}</link> - и - <link linkend="tips.componentized.templates">Компонентные шаблоны</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-section.xml
Deleted
@@ -1,807 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.section"> - <title>{section},{sectionelse}</title> - <para> - Секции используются для обхода - <emphasis role="bold">массивов данных</emphasis> - (так же, как и <link linkend="language.function.foreach">{foreach}</link>). - Каждый тэг <emphasis>{section}</emphasis> должен иметь пару - <emphasis>{/section}</emphasis>. Обязательными параметрами являются - <emphasis>name</emphasis> и <emphasis>loop</emphasis>. Имя цикла - {section} может быть любым, состоящим из букв, цифр и знаков - подчеркивания. Циклы <emphasis>{section}</emphasis> могут быть вложенными - и имена вложенных {section} должны быть уникакльными между собой. - Переменная <emphasis>loop</emphasis> (обычно - массив значений) - определяет количество итераций цикла. - При печати переменных внутри секции, имя секции должно быть указано - рядом с именем переменной внутри квадратных скобок []. - <emphasis>{sectionelse}</emphasis> выполняется в том случае, если - параметр <emphasis>loop</emphasis> не содержит значений. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Название секции</entry> - </row> - <row> - <entry>loop</entry> - <entry>mixed</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Значение, определяющее количество итераций цикла.</entry> - </row> - <row> - <entry>start</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>0</emphasis></entry> - <entry> - Индекс позиции, с которой будет начинаться - цикл. Если значение отрицательное, то начальная позиция - вычисляется от конца массива. Например, если в переменной - цикла 7 элементов и значение атрибута start равно -2, то - начальный индекс будет 5. Неверные значения (значения, вне - массива) автоматически обрезаются до ближайшего верного - значения. - </entry> - </row> - <row> - <entry>step</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>1</emphasis></entry> - <entry> - Значение шага, которое используется для прохода по - массиву. Например, step=2 указывает обход массива - по элементам 0,2,4... Если шаг отрицателен, то обход - массива будет производится в обратном направлении. - </entry> - </row> - <row> - <entry>max</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Максимальное количество итераций цикла.</entry> - </row> - <row> - <entry>show</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Указывает, показывать или нет эту секцию</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{section}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$data = array(1000,1001,1002); -$smarty->assign('custid',$data); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* этот пример напечатает все значения массива $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br /> -{/section} -<hr /> -{* этот пример напечатает все значения массива $custid в обратном порядке *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}<br /> -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -id: 1000<br /> -id: 1001<br /> -id: 1002<br /> -<hr /> -id: 1002<br /> -id: 1001<br /> -id: 1000<br /> -]]> - </screen> - <para> - Ещё немного примеров без присвоенного массива. - </para> - <programlisting> -<![CDATA[ -{section name=foo start=10 loop=20 step=2} - {$smarty.section.foo.index} -{/section} -<hr /> -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -10 12 14 16 18 -<hr /> -20 18 16 14 12 10 -]]> - </screen> - </example> - - <example> - <title>Переменная loop команды {section}</title> -<programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* - переменная loop определяет только количество итераций. - вы можете получать доступ к любой переменной из шаблона внутри секции. - Этот пример предполагает, что $custid, $name и $address все являются - массивами, содержащими одинаковое количество значений -*} -{section name=customer loop=$custid} -<p> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]} -</p> -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<p> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th -</p> -<p> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln -</p> -<p> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st -</p> -]]> - </screen> - </example> - - <example> - <title>именование {section}</title> - <programlisting> -<![CDATA[ -{* - имя секции может быть любым, так как оно используется для обращения к - данным в пределах секции -*} -{section name=anything loop=$custid} -<p> - id: {$custid[anything]}<br /> - name: {$name[anything]}<br /> - address: {$address[anything]} -</p> -{/section} -]]> - </programlisting> - </example> - - <example> - <title>вложенные секции</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$id = array(1001,1002,1003); -$smarty->assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* - секции могут иметь вложенность любой глубины. Используя вложенные секции, - вы можете обращаться к сложным структурам данных, таким как многомерные - массивы. В этом примере $contact_type[customer] - это массив - типов контактов для текущего клиента. -*} -{section name=customer loop=$custid} -<hr> - id: {$custid[customer]}<br /> - name: {$name[customer]}<br /> - address: {$address[customer]}<br /> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br /> - {/section} -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<hr> - id: 1000<br /> - name: John Smith<br /> - address: 253 N 45th<br /> - home phone: 555-555-5555<br /> - cell phone: 666-555-5555<br /> - e-mail: john@myexample.com<br /> -<hr> - id: 1001<br /> - name: Jack Jones<br /> - address: 417 Mulberry ln<br /> - home phone: 123-456-4<br /> - web: www.example.com<br /> -<hr> - id: 1002<br /> - name: Jane Munson<br /> - address: 5605 apple st<br /> - cell phone: 0457878<br /> -]]> - </screen> - </example> - - <example> - <title>секции и ассоциативные массивы</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$data = array( - array('name' => 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* - Это пример вывода ассоциативного массива - данных внутри секции -*} -{section name=customer loop=$contacts} -<p> - name: {$contacts[customer].name}<br /> - home: {$contacts[customer].home}<br /> - cell: {$contacts[customer].cell}<br /> - e-mail: {$contacts[customer].email} -</p> -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<p> - name: John Smith<br /> - home: 555-555-5555<br /> - cell: 666-555-5555<br /> - e-mail: john@myexample.com -</p> -<p> - name: Jack Jones<br /> - home phone: 777-555-5555<br /> - cell phone: 888-555-5555<br /> - e-mail: jack@myexample.com -</p> -<p> - name: Jane Munson<br /> - home phone: 000-555-5555<br /> - cell phone: 123456<br /> - e-mail: jane@myexample.com -</p> -]]> - </screen> - - <para>Базы данных (например, PEAR или ADODB)</para> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select id, name, home, cell, email from contacts'; -$smarty->assign('contacts',$db->getAll($sql) ); - -?> -]]> - </programlisting> - - <programlisting> -<![CDATA[ -{* - выводим результат запроса к БД в таблицу -*} -<table> -<tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> -{section name=co loop=$contacts} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> - </programlisting> - </example> - - <example> - <title>{sectionelse}</title> - <programlisting> -<![CDATA[ -{* sectionelse будет выполнена в том случае, если $custid не содержит значений *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br /> -{sectionelse} - there are no values in $custid. -{/section} -]]> - </programlisting> - </example> - <para> - Секции так же имеют собственные переменные, которые содержат свойства секций. - Они обозначаются так: - <link linkend="language.variables.smarty.loops">{$smarty.section.sectionname.varname}</link> - </para> - <note> - <para> - Начиная с версии Smarty 1.5.0, синтаксис переменных свойств сессий был - изменен с {%sectionname.varname%} на {$smarty.section.sectionname.varname}. - Старый синтаксис всё ещё поддерживается, но вы увидите лишь примеры - нового синтаксиса. - </para> - </note> - <sect2 id="section.property.index"> - <title>index</title> - <para> - index используется для отображения текущего индекса массива, - начиная с нуля (или с атрибута start, если он был указан) и увеличиваясь - на единицу (или на значение атрибута step, если он был указан). - </para> - <note> - <title>Техническое Замечание</title> - <para> - Если атрибуты step и start не указаны, то index - аналогичен атрибуту секции iteration, кроме того, - что начинается с 0, а не с 1. - </para> - </note> - <example> - <title>свойства {section} index</title> - <programlisting> -<![CDATA[ -{* к вашему сведению, $custid[customer.index] и $custid[customer] означают одно и то же *} - -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.index.prev"> - <title>index_prev</title> - <para> - index_prev используется для отображения предыдущего индекса цикла - На первой итерации он установлен в -1. - </para> - </sect2> - - <sect2 id="section.property.index.next"> - <title>index_next</title> - <para> - index_next используется для отображения следующего индекса цикла - На последней итерации он всё же на единицу больше текущего (или на другое - значение, если указан атрибут step). - </para> - <example> - <title>свойства {section} index_next и index_prev</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$data = array(1001,1002,1003,1004,1005); -$smarty->assign('custid',$data); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{* к вашему сведению, $custid[cus.index] и $custid[cus] означают одно и то же *} - -<table> - <tr> - <th>index</th><th>id</th> - <th>index_prev</th><th>prev_id</th> - <th>index_next</th><th>next_id</th> - </tr> -{section name=cus loop=$custid} - <tr> - <td>{$smarty.section.cus.index}</td><td>{$custid[cus]}</td> - <td>{$smarty.section.cus.index_prev}</td><td>{$custid[cus.index_prev]}</td> - <td>{$smarty.section.cus.index_next}</td><td>{$custid[cus.index_next]}</td> - </tr> -{/section} -</table> -]]> - </programlisting> - <para> - Результатом выполнения этого примера будет таблица, содержащая следующее: - </para> - <screen> -<![CDATA[ -index id index_prev prev_id index_next next_id -0 1001 -1 1 1002 -1 1002 0 1001 2 1003 -2 1003 1 1002 3 1004 -3 1004 2 1003 4 1005 -4 1005 3 1004 5 -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.iteration"> - <title>iteration</title> - <para> - iteration используется для отображения текущего номера итерации цикла. - </para> - <note> - <para> - Это значение не зависит от свойств start, step и max, в отличие от - свойства <link linkend="section.property.index">index</link>. - Кроме того, итерации начинаются с единицы, а не с нуля, как индексы. - <link linkend="section.property.rownum">rownum</link> - это синоним к - свойству iteration, они работают одинаково. - </para> - </note> - <example> - <title>свойство {section} iteration</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// array of 3000 to 3015 -$id = range(3000,3015); -$smarty->assign('custid',$id); - -?> -]]> - </programlisting> - <programlisting> -<![CDATA[ -{section name=cu loop=$custid start=5 step=2} - iteration={$smarty.section.cu.iteration} - index={$smarty.section.cu.index} - id={$custid[cu]}<br /> -{/section} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -iteration=1 index=5 id=3005<br /> -iteration=2 index=7 id=3007<br /> -iteration=3 index=9 id=3009<br /> -iteration=4 index=11 id=3011<br /> -iteration=5 index=13 id=3013<br /> -iteration=6 index=15 id=3015<br /> -]]> - </screen> - <para> - Этот пример использует свойство iteration для - вывода заголовка таблицы через каждые пять строчек - (использует <link linkend="language.function.if">{if}</link> - с оператором mod - остаток от деления). - </para> - <programlisting> -<![CDATA[ - <table> -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} - <tr><th> </th><th>Name></th><th>Home</th><th>Cell</th><th>Email</th></tr> - {/if} - <tr> - <td><a href="view.php?id={$contacts[co].id}">view<a></td> - <td>{$contacts[co].name}</td> - <td>{$contacts[co].home}</td> - <td>{$contacts[co].cell}</td> - <td>{$contacts[co].email}</td> - <tr> -{/section} -</table> -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="section.property.first"> - <title>first</title> - <para> - Параметр first установлен в true, если текущая <link - linkend="section.property.iteration">итерация</link> секции - является первой. - </para> - </sect2> - - <sect2 id="section.property.last"> - <title>last</title> - <para> - Параметр last установлен в true, если текущая <link - linkend="section.property.iteration">итерация</link> секции - является последней. - </para> - <example> - <title>свойства {section} first и last</title> - <para> - Этот пример проходит циклом по массиву $customers, - выводит заголовок на первой итерации и футер на последней - (использует свойство {section} <link linkend="section.property.total">total</link>) - </para> - <programlisting> -<![CDATA[ -{section name=customer loop=$customers} - {if $smarty.section.customer.first} - <table> - <tr><th>id</th><th>customer</th></tr> - {/if} - - <tr> - <td>{$customers[customer].id}}</td> - <td>{$customers[customer].name}</td> - </tr> - - {if $smarty.section.customer.last} - <tr><td></td><td>{$smarty.section.customer.total} customers</td></tr> - </table> - {/if} -{/section} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="section.property.rownum"> - <title>rownum</title> - <para> - rownum используется для отображения текущего номера итерации цикла, - начиная с единицы. Это синоним свойства <link - linkend="section.property.iteration">iteration</link>, они работа идентично. - </para> - </sect2> - - <sect2 id="section.property.loop"> - <title>loop</title> - <para> - loop используется для отображения последнего номера индекса, по которому - проходила итерация секции. Это свойство может быть использовано как внутри, - так и вне секции. - </para> - <example> - <title>свойство {section} index</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - -There were {$smarty.section.customer.loop} customers shown above. -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -1 id: 1001<br /> -2 id: 1002<br /> - -There were 3 customers shown above. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.show"> - <title>show</title> - <para> - <emphasis>show</emphasis> используется в качестве параметра секции. - <emphasis>show</emphasis> является булевым значением, true или false. - Если false, секция не будет отображена. Если присутствует секция {sectionelse}, - вместо этого будет отображена она. - </para> - <example> - <title>атрибут {section} show</title> - <programlisting> -<![CDATA[ -{* - $show_customer_info (true/false) может быть передан из приложения PHP, - чтобы определить, необходимо ли отображать секцию -*} -{section name=customer loop=$custid show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$custid[customer]}<br /> -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -1 id: 1000<br /> -2 id: 1001<br /> -3 id: 1002<br /> - -the section was shown. -]]> - </screen> - </example> - </sect2> - - <sect2 id="section.property.total"> - <title>total</title> - <para> - total используется для отображения количества итераций, через которые - пройдет эта секция. Это свойство может быть использовано как внутри, так - и вне секции. - </para> - <example> - <title>свойство {section} total</title> - <programlisting> -<![CDATA[ -{section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br /> -{/section} - - There were {$smarty.section.customer.total} customers shown above. -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -0 id: 1000<br /> -2 id: 1002<br /> -4 id: 1004<br /> - -There were 3 customers shown above. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.function.foreach">{foreach}</link> - и - <link linkend="language.variables.smarty.loops">$smarty.section</link>. - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-builtin-functions/language-function-strip.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.strip"> - <title>{strip}</title> - <para> - Часто вебдизайнеры сталкиваются с проблемой, что пробелы и переносы - строк влияют на отображение HTML в броузере ("фишки" броузера), то - есть может понадобится склеить все тэги в шаблоне вместе, чтобы получить - желаемый результат. Но в результате получается нечитаемый или - трудноредактируемый шаблон. - </para> - <para> - В выводимом тексте, заключенном между тэгами {strip} и {/strip}, - удаляются повторные пробелы и переносы строк, перед отображением. - Так вы можете сохранив шаблон читаемым не волноваться насчет - лишних пробелов. - </para> - <note> - <title>Техническое Замечание</title> - <para> - {strip}{/strip} не влияет на содержимое переменных шаблона. - Для этих целей используйте <link linkend="language.modifier.strip">модификатор strip</link>. - </para> - </note> - <example> - <title>тэги {strip}</title> - <programlisting> -<![CDATA[ -{* следующее будет выведено в виде одной строки *} -{strip} -<table border='0'> - <tr> - <td> - <a href="{$url}"> - <font color="red">This is a test</font> - </a> - </td> - </tr> -</table> -{/strip} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<table border='0'><tr><td><a href="http://...snipped...</a></td></tr></table> -]]> - </screen> - </example> - <para> - Заметьте, что в данном примере все строки начинаются и заканчиваются HTML - тэгами. Учтите, что все строки склеиваются вместе. Если в начале или в - конце строки присутствует обычный текст, то вы можете не получить - желаемый результат. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-combining-modifiers.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2212 Maintainer: freespace Status: ready --> -<chapter id="language.combining.modifiers"> - <title>Комбинирование модификаторов</title> - <para> - Можно применять любое количество модификаторов к переменной. Они будут - применяться в порядке их упоминания слева направо. Модификаторы должны - быть разделены символом <literal>|</literal> (вертикальная черта). - </para> - <example> - <title>Комбинирование модификаторов</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Капля никотина убивает лошадь, хомячка разрывает на куски.'); - -?> -]]> - </programlisting> - <para> - Содержимое шаблона: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -Капля никотина убивает лошадь, хомячка разрывает на куски. -К А П Л Я Н И К О Т И Н А ...вырезано... В А Е Т Н А К У С К И . -к а п л я н и к о т и н а ...вырезано... х о м я ч к а... -к а п л я н и к о т и н а у б и в а е т л о ш а д ь . . . -к а п л я н и к о т и н. . . -]]> - </screen> - </example> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2320 Maintainer: freespace Status: ready --> -<chapter id="language.custom.functions"> - <title>Пользовательские Функции</title> - <para> - Smarty поставляется с несколькими пользовательскими - функциями, которые вы можете использовать в шаблонах. - </para> - -&designers.language-custom-functions.language-function-assign; -&designers.language-custom-functions.language-function-counter; -&designers.language-custom-functions.language-function-cycle; -&designers.language-custom-functions.language-function-debug; -&designers.language-custom-functions.language-function-eval; -&designers.language-custom-functions.language-function-fetch; -&designers.language-custom-functions.language-function-html-checkboxes; -&designers.language-custom-functions.language-function-html-image; -&designers.language-custom-functions.language-function-html-options; -&designers.language-custom-functions.language-function-html-radios; -&designers.language-custom-functions.language-function-html-select-date; -&designers.language-custom-functions.language-function-html-select-time; -&designers.language-custom-functions.language-function-html-table; -&designers.language-custom-functions.language-function-mailto; -&designers.language-custom-functions.language-function-math; -&designers.language-custom-functions.language-function-popup; -&designers.language-custom-functions.language-function-popup-init; -&designers.language-custom-functions.language-function-textformat; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-assign.xml
Deleted
@@ -1,158 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.assign"> - <title>{assign}</title> - <para> - {assign} используется для установки значения переменной - <emphasis role="bold">в процессе выполнения шаблона</emphasis>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, значение которой будет - устанавливаться</entry> - </row> - <row> - <entry>value</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Устанавливаемое значение</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{assign}</title> - <programlisting> -<![CDATA[ -{assign var="name" value="Bob"} - -Значение $name - {$name}. -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -Значение $name - Bob. -]]> - </screen> - </example> - - <example> - <title>{assign} и арифметика</title> - <para>В этом сложном примере переменные должны заключаться в обратные кавычки</para> - <programlisting> -<![CDATA[ -{assign var=running_total value=`$running_total+$some_array[loop].some_value`} -]]> - </programlisting> - </example> - - <example> - <title>Доступ к переменным {assign} из PHP-скрипта.</title> - <para> - Чтобы получить доступ к переменным {assign} из PHP-скрипта, используйте функцию - <link linkend="api.get.template.vars">get_template_vars()</link>. - Обратите внимание, что переменные доступны только во время и после - выполнения шаблона, как видно из следующего примера: - </para> - <programlisting> -<![CDATA[ -{* index.tpl *} -{assign var="foo" value="Smarty"} -]]> - </programlisting> - <programlisting role="php"> -<![CDATA[ -<?php - -// это не выведет ничего, ведь шаблон ещё не был выполнен -echo $smarty->get_template_vars('foo'); - -// получаем шаблон в переменную-пустышку -$dead = $smarty->fetch('index.tpl'); - -// это выведет 'smarty', так как шаблон уже выполнен -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// это выведет 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - </programlisting> - </example> - - <para> - Следующие функции также могут <emphasis>опционально</emphasis> - назначать переменные шаблона. - </para> - - <para> - <link linkend="language.function.capture">{capture}</link>, - <link linkend="language.function.include">{include}</link>, - <link linkend="language.function.include.php">{include_php}</link>, - <link linkend="language.function.insert">{insert}</link>, - <link linkend="language.function.counter">{counter}</link>, - <link linkend="language.function.cycle">{cycle}</link>, - <link linkend="language.function.eval">{eval}</link>, - <link linkend="language.function.fetch">{fetch}</link>, - <link linkend="language.function.math">{math}</link>, - <link linkend="language.function.textformat">{textformat}</link> - </para> - - <para> - См. также - <link linkend="api.assign">assign()</link> - и - <link linkend="api.get.template.vars">get_template_vars()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-counter.xml
Deleted
@@ -1,124 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.counter"> - <title>{counter}</title> - <para> - {counter} используется для вывода счетчика. {counter} запоминает значение - счетчика на каждой итерации. Вы можете настроить значение, интервал - и направление счета, а так же определить, следует ли печатать это значение. - Вы можете использовать несколько счетчиков одновременно, назначив каждому - уникальное имя. Если вы явно не указываете имени, используется имя 'default'. - </para> - <para> - Если вы укажете специальный атрибут "assign", вывод счетчика будет назначен - соответствующей переменной шаблона вместо печати в шаблон. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Имя счетчика</entry> - </row> - <row> - <entry>start</entry> - <entry>number</entry> - <entry>Нет</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Изначальное число, с которого начинается счет</entry> - </row> - <row> - <entry>skip</entry> - <entry>number</entry> - <entry>Нет</entry> - <entry><emphasis>1</emphasis></entry> - <entry>Интервал увеличения счетчика</entry> - </row> - <row> - <entry>direction</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>up</emphasis></entry> - <entry>Направление счета (up/down)</entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Печатать ли значение счетчика</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной шаблона для сохранения значения счетчика</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{counter}</title> - <programlisting> -<![CDATA[ -{* инициализируем счетчик *} -{counter start=0 skip=2}<br /> -{counter}<br /> -{counter}<br /> -{counter}<br /> -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -0<br /> -2<br /> -4<br /> -6<br /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-cycle.xml
Deleted
@@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.cycle"> - <title>{cycle}</title> - <para> - {cycle} is used to cycle though a set of values. This makes it easy - to alternate for example between two or more colors in a table, or cycle - through an array of values. - </para> - <para> - {cycle} используется для прохода через множество значений. - С его помощью можно легко реализовать чередование двух или более цветов в - таблице или пройтись циклом по массиву. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>default</emphasis></entry> - <entry>Название цикла</entry> - </row> - <row> - <entry>values</entry> - <entry>mixed</entry> - <entry>Да</entry> - <entry><emphasis>N/A</emphasis></entry> - <entry> - Значения, по которым будет производиться цикл. - Либо список, разделеный запятыми (либо другим указанным разделителем), - либо массив значений. - </entry> - </row> - <row> - <entry>print</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Выводить значение, или нет</entry> - </row> - <row> - <entry>advance</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>true</emphasis></entry> - <entry>Переключаться или нет на следующее значение</entry> - </row> - <row> - <entry>delimiter</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>,</emphasis></entry> - <entry>Разделитель, используемый в атрибуте values.</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которой будет присвоен вывод тэга</entry> - </row> - <row> - <entry>reset</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Цикл будет установлен в начальное значение и не увеличен</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Можно проходить через несколько множеств значений одновременно, - указав атрибут name. Имена должны быть уникальными. - </para> - <para> - Можно не отображать данный элемент, установив атрибут print в - false. Удобно для пропуска значения, без его вывода. - </para> - <para> - Атрибут advance используется для повтора значения. Если - установлен в true, то при следующем вызове {cycle} - будет выведено то же значение. - </para> - <para> - Если указан специальный атрибут "assign", то вывод {cycle} - присваивается переменной, вместо отображения. - </para> - - <example> - <title>{cycle}</title> - <programlisting> -<![CDATA[ -{section name=rows loop=$data} -<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}"> - <td>{$data[rows]}</td> -</tr> -{/section} -]]> - </programlisting> - <screen> -<![CDATA[ -<tr bgcolor="#eeeeee"> - <td>1</td> -</tr> -<tr bgcolor="#d0d0d0"> - <td>2</td> -</tr> -<tr bgcolor="#eeeeee"> - <td>3</td> -</tr> -]]> - </screen> - </example> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-debug.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.debug"> - <title>{debug}</title> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>output</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>javascript</emphasis></entry> - <entry>Тип вывода (html или javascript)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - {debug} выводит консоль отладки. Это работает независимо от - значения опции <link linkend="chapter.debugging.console">debug</link>. - Так как этот тэг обрабатывается в процесе выполнения, то возможно - вывести только <link linkend="api.assign">присвоенные</link> переменные, - но не используемые шаблоны. - Но вы видите все переменные, доступные в области видимости текущего - шаблона. - </para> - <para> - См. также - <link linkend="chapter.debugging.console">Отладочная консоль</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-eval.xml
Deleted
@@ -1,150 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.eval"> - <title>{eval}</title> - <para> - {eval} используется для обработки переменной, как шаблона. - Можно использовать для таких вещей, как хранение шаблонных - тэгов/переменных в переменной или в файлах конфигруации. - </para> - <para> - Если указан специальный атрибут "assign", то вывод тэга eval - присваивается переменной, вместо отображения. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>var</entry> - <entry>mixed</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Переменная (или строка) для обработки</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которой будет присвоен вывод</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Техническое Замечание</title> - <para> - Переменные шаблоны обрабатываются так же, как и обычные шаблоны. - Они подвластны тем же правилам и ограничениям безопасности. - </para> - </note> - - <note> - <title>Техническое Замечание</title> - <para> - Переменные шаблоны компилируются при каждом вызове, скомпилированные версии - не сохраняются! - Однако, если <link linkend="caching">кэширование</link> включено, - вывод будет кэширован вместе с остальной частью шаблона. - </para> - </note> - <example> - <title>{eval}</title> - <programlisting> -<![CDATA[ -#setup.conf -#---------- -emphstart = <strong> -emphend = </strong> -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{config_load file='setup.conf'} -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign='state_error'} -{$state_error} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a <strong>city</strong>. -You must supply a <strong>state</strong>. -]]> - </screen> - </example> - - <example> - <title>Другой пример использования {eval}</title> - <para> - Отображает имя сервера (заглавными буквами) и IP-адрес. - Переменная $str так же может быть результатом запроса к БД. - </para> - <programlisting role="php"> -<![CDATA[ -// php script -$str = 'The server name is {$smarty.server.SERVER_NAME|upper} ' - .'at {$smarty.server.SERVER_ADDR}'; -$smarty->assign('foo',$str); -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ - {eval var=$foo} -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-fetch.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.fetch"> - <title>{fetch}</title> - <para> - fetch используется для отображения содержимого локальных файлов, - http- или ftp-страниц. - Если имя файла начинается с "http://", то веб-страница будет получена и - выведена. - Если имя файла начинается с "ftp://", то файл будет получен с ftp-сервера и - выведен. Для локальных файлов должен быть указан абсолютный путь, - либо путь относительно выполняемого PHP-файла. - </para> - <para> - Если указать специалньый атрибут "assign", то вывод функции {fetch} - будет присвоен переменной шаблона, вместо отображения. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>файл, http или ftp сайт для отображния</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Имя переменной, которой будет присвоен вывод</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Техническое Замечание</title> - <para> - HTTP переадресация не поддерживается. Убедитесь, что указываете - завершающие слэши, где это необходимо. - </para> - </note> - <note> - <title>Техническое Замечание</title> - <para> - Если включён режим <link linkend="variable.security">$security</link> - и указан файл из локальной файловой системы, то файл обработается лишь в - том случае, если он находятся в одной из указаных - <link linkend="variable.secure.dir">безопасных папках</link>. - </para> - </note> - <example> - <title>Пример {fetch}</title> - <programlisting> -<![CDATA[ -{* включаем javascript в шаблон *} -{fetch file='/export/httpd/www.example.com/docs/navbar.js'} - -{* Добавляем немного прогноза погоды с сервера погоды *} -{fetch file='http://www.myweather.com/68502/'} - -{* новостную ленту берем с ftp сервера *} -{fetch file='ftp://user:password@ftp.example.com/path/to/currentheadlines.txt'} -{* как в предыдущем примере, но с переменными *} -{fetch file="ftp://`$user`:`$password`@`$server`/`$path`"} - -{* присваиваем полученный файл переменной *} -{fetch file='http://www.myweather.com/68502/' assign='weather'} -{if $weather ne ''} - <div id="weather">{$weather}</div> -{/if} -]]> - </programlisting> - </example> - - <para> - См. также - <link linkend="language.function.capture">{capture}</link>, - <link linkend="language.function.eval">{eval}</link>, - <link linkend="language.function.assign">{assign}</link> - и - <link linkend="api.fetch">fetch()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-checkboxes.xml
Deleted
@@ -1,212 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.checkboxes"> - <title>{html_checkboxes}</title> - <para> - {html_checkboxes} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая создает группу флажков в HTML по указанной информации. - Также она обеспечивает отметку флажков по умолчанию. - Параметры values и output являются обязательными, если не указан атрибут - options. Весь вывод идет в формате XHTML. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>checkbox</emphasis></entry> - <entry>название списка флажков</entry> - </row> - <row> - <entry>values</entry> - <entry>array</entry> - <entry>Да, если не указан атрибут options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Массив значений для флажков</entry> - </row> - <row> - <entry>output</entry> - <entry>array</entry> - <entry>Да, если не указан атрибут options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>массив названий флажков</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>выбранный флажок(флажки)</entry> - </row> - <row> - <entry>options</entry> - <entry>associative array</entry> - <entry>Да, если не указаны атрибуты values и output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Ассоциативнй массив значений и названий</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>строка разделяющая каждый флажок</entry> - </row> - <row> - <entry>labels</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>true</emphasis></entry> - <entry>добавляет <label>-тэги к выводу</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>сохранить тэги флажков в массив вместо вывода</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <input>. - </para> - <example> - <title>{html_checkboxes}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - шаблон: - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" values=$cust_ids output=$cust_names - selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - или где PHP код: - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') -); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - шаблон: - </para> - <programlisting> -<![CDATA[ -{html_checkboxes name="id" options=$cust_checkboxes selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - оба примера выведут: - </para> - <screen> -<![CDATA[ -<label><input type="checkbox" name="id[]" value="1000" />Joe Schmoe</label><br /> -<label><input type="checkbox" name="id[]" value="1001" checked="checked" />Jack Smith</label><br /> -<label><input type="checkbox" name="id[]" value="1002" />Jane Johnson</label><br /> -<label><input type="checkbox" name="id[]" value="1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title> - Пример с базой данных (к примеру, PEAR или ADODB): - </title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from types order by type'; -$smarty->assign('types',$db->getAssoc($sql)); - -$sql = 'select * from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> -<programlisting> -<![CDATA[ -{html_checkboxes name="type" options=$types selected=$contact.type_id separator="<br />"} -]]> -</programlisting> - </example> - <para> - См. также - <link linkend="language.function.html.radios">{html_radios}</link> - и - <link linkend="language.function.html.options">{html_options}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-image.xml
Deleted
@@ -1,158 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.image"> - <title>{html_image}</title> - <para> - {html_image} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая создает HTML-тэги для изображений. Высота и ширина автоматически - вычислаются из файла изображения, если они не указаны явно. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>file</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>название/путь к изображению</entry> - </row> - <row> - <entry>height</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>реальная высота изображения</emphasis></entry> - <entry>высота изображения</entry> - </row> - <row> - <entry>width</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>реальная ширина изображения</emphasis></entry> - <entry>ширина изображения</entry> - </row> - <row> - <entry>basedir</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>корень веб сервера</emphasis></entry> - <entry>папка, от которой указаны относительные пути</entry> - </row> - <row> - <entry>alt</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>""</emphasis></entry> - <entry>альтернативное описание изображения</entry> - </row> - <row> - <entry>href</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>значение href, куда ссылается картинка</entry> - </row> - <row> - <entry>path_prefix</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>префикс пути результата</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - basedir - базовая папка для относительных путей. Если не указана, - то используется корень веб сервер - (<link linkend="language.variables.smarty">переменная окружения</link> DOCUMENT_ROOT). - Если <link linkend="variable.security">$security</link> включено, то путь к - файлу изображения должен быть в пределах безопасной директории. - </para> - <para> - Атрибут link указывает, куда ссылается изображение. Атрибут - link устанавливает значение атрибута href тэга А. Если указан - атрибут link, то изображение окружается выражениями <a - href="LINKVALUE"> и <a>. - </para> - <para> - <parameter>path_prefix</parameter> - это необязательный префикс, который - вы можете добавить к пути результата - Это удобно в случае, если вы хотите передать другое серверное имя для - изображения. - </para> - <para> - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <input>. - </para> - <note> - <title>Техническое Замечание</title> - <para> - {html_image} требует обращение к диску для чтения изображения - и вычисления его размеров. Если не используется - <link linkend="caching">кэширование</link> шаблонов, - то тэг {html_image} лучше не использовать, а вставлять статичные тэги - изображений для достижения оптимального быстродействия. - </para> - </note> - <example> - <title>Пример работы html_image</title> - <programlisting> -<![CDATA[ -index.tpl: -------------------- -{html_image file='pumpkin.jpg'} -{html_image file='/path/from/docroot/pumpkin.jpg'} -{html_image file='../path/relative/to/currdir/pumpkin.jpg'} -]]> - </programlisting> - <para> - Возможный результат обработки шаблона: - </para> - <screen> -<![CDATA[ -<img src="pumpkin.jpg" alt="" width="44" height="68" /> -<img src="/path/from/docroot/pumpkin.jpg" alt="" width="44" height="68" /> -<img src="../path/relative/to/currdir/pumpkin.jpg" alt="" width="44" height="68" /> -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-options.xml
Deleted
@@ -1,210 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.options"> - <title>{html_options}</title> - <para>{html_options} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая создает группу HTML-тэгов option по указанной информации. - Также она обеспечивает выбор элемента по умолчанию. - Параметры values и output являются обязательными, если не указан атрибут - options. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>values</entry> - <entry>массив</entry> - <entry>Да, если не указан атрибут options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>массив значений для выпадающего списка</entry> - </row> - <row> - <entry>output</entry> - <entry>массив</entry> - <entry>Да, если не указан атрибут options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>массив названий для выпадающего списка</entry> - </row> - <row> - <entry>selected</entry> - <entry>string/array</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>Выбранный элемент(ы)</entry> - </row> - <row> - <entry>options</entry> - <entry>ассоциативный массив</entry> - <entry>Да, если не указаны атрибуты values и output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ассоциативный массив значений и названий</entry> - </row> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>Название выпадающего списка</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Если переданное значение - массив, оно будет принято за HTML-тэг <optgroup> - и отображено в виде групп. В элементе <optgroup> поддерживается рекурсия. - Весь вывод совместим с XHTML. - </para> - <para> - Если указан необязательный параметр <emphasis>name</emphasis>, список будет - окружен тэгом <select name="groupname"></select>. - В противном случае будут сгенерированы лишь элементы <option>. - </para> - <para> - Все параметры, которые не указаны выше, выводятся в виде - пар name/value в тэге <select>. Если необязательный - параметр <emphasis>name</emphasis> не указан, они игнорируются. - </para> - <example> - <title>{html_options}</title> - <para> - <emphasis role="bold">Пример №1:</emphasis> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -<select name="customer_id"> - {html_options values=$cust_ids output=$cust_names selected=$customer_id} -</select> -]]> - </programlisting> - <para> - <emphasis role="bold">Пример №2:</emphasis> - </para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_options', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ - {html_options name=customer_id options=$cust_options selected=$customer_id} -]]> - </programlisting> - <para> - Результат выполнения обоих примеров будет следующим: - </para> - <screen> -<![CDATA[ -<select name="customer_id"> - <option label="Joe Schmoe" value="1000">Joe Schmoe</option> - <option label="Jack Smith" value="1001" selected="selected">Jack Smith</option> - <option label="Jane Johnson" value="1002">Jane Johnson</option> - <option label="Charlie Brown" value="1003">Charlie Brown</option> -</select> -]]> - </screen> - </example> - <example> - <title>{html_options} - Пример с базой данных (к примеру, PEAR или ADODB):</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -<select name="type_id"> - <option value='null'>-- none --</option> - {html_options options=$contact_types selected=$contact.type_id} -</select> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.function.html.checkboxes">{html_checkboxes}</link> - и - <link linkend="language.function.html.radios">{html_radios}</link> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-radios.xml
Deleted
@@ -1,208 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.radios"> - <title>{html_radios}</title> -<para>{html_radios} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая создает группу радиокнопок в HTML по указанной информации. - Также она обеспечивает выбор радиокнопки по умолчанию. - Параметры values и output являются обязательными, если не указан атрибут - options. Весь вывод идет в формате XHTML. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>name</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>radio</emphasis></entry> - <entry>название элементов выбора</entry> - </row> - <row> - <entry>values</entry> - <entry>массив</entry> - <entry>Да, если не указан атрибут options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>массив значений элементов выбора</entry> - </row> - <row> - <entry>output</entry> - <entry>массив</entry> - <entry>Да, если не указан атрибут options</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>массив названий элементов выбора</entry> - </row> - <row> - <entry>checked</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>Значение выбранного элемента</entry> - </row> - <row> - <entry>options</entry> - <entry>ассоциативный массив</entry> - <entry>Да, если не указаны атрибуты values и output</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>ассоциативный массив значений и названий - элементов выбора</entry> - </row> - <row> - <entry>separator</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>текст, разделяющий элементы выбора</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>сохраняет тэги radio в массив, вместо вывода в шаблон</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <input>. - </para> - - <example> - <title>{html_radios} - пример №1</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{html_radios name='id' values=$cust_ids output=$cust_names - selected=$customer_id separator='<br />'} -]]> - </programlisting> - </example> - <example> - <title>{html_radios} - пример №2</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"} -]]> - </programlisting> - <para> - Оба примера выведут следующее: - </para> - <screen> -<![CDATA[ -<label for="id_1000"> -<input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br /> -<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br /> -<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br /> -<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie Brown</label><br /> -]]> - </screen> - </example> - <example> - <title>{html_radios} - пример с базой данных (к примеру, PEAR или ADODB):</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$sql = 'select type_id, types from contact_types order by type'; -$smarty->assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id ' - .'from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{html_radios name='contact_type_id' options=$contact_types - selected=$contact.contact_type_id separator='<br />'} -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.function.html.checkboxes">{html_checkboxes}</link> - и - <link linkend="language.function.html.options">{html_options}</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-select-date.xml
Deleted
@@ -1,375 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.select.date"> - <title>{html_select_date}</title> - <para> - {html_select_date} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая создает выпадающее меню для выбора даты. - Она может отображать поля для года, месяца и дня. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>Date_</entry> - <entry>префикс названий переменных</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp/ГГГГ-ММ-ДД</entry> - <entry>Нет</entry> - <entry> - текущее время в формате unix timestamp или ГГГГ-ММ-ДД - </entry> - <entry>используемое время</entry> - </row> - <row> - <entry>start_year</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>текущий год</entry> - <entry> - Начальный год в выпадающем списке. Либо указывается явно, либо - относительно текущего года (+/- N) - </entry> - </row> - <row> - <entry>end_year</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>аналогично start_year</entry> - <entry> - Конечный год в выпадающем списке. Либо указывается явно, либо - относительно текущего года (+/- N) - </entry> - </row> - <row> - <entry>display_days</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>выводить ли список дней</entry> - </row> - <row> - <entry>display_months</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>выводить ли список месяцев</entry> - </row> - <row> - <entry>display_years</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>выводить ли список лет</entry> - </row> - <row> - <entry>month_format</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>%B</entry> - <entry>Формат названия месяцев (strftime)</entry> - </row> - <row> - <entry>day_format</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>%02d</entry> - <entry>формат названия дней (sprintf)</entry> - </row> - <row> - <entry>day_value_format</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>%d</entry> - <entry>формат значения дней (sprintf)</entry> - </row> - <row> - <entry>year_as_text</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Выводить ли значение года текстом</entry> - </row> - <row> - <entry>reverse_years</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Выводить года в обратном порядке</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry> - название переменной (name), которая будет - содержать выбранные значения в виде массива: - name[Day], name[Year], name[Month]. - </entry> - </row> - <row> - <entry>day_size</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>Устанавливает атрибут size тэга select для дней</entry> - </row> - <row> - <entry>month_size</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>Устанавливает атрибут size тэга select для месяцев</entry> - </row> - <row> - <entry>year_size</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>Устанавливает атрибут size тэга select для лет</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry> - Устанавливает дополнительные атрибуты для всех тэгов - select/input - </entry> - </row> - <row> - <entry>day_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry> - Устанавливает дополнительные атрибуты тэгов select/input для - дней - </entry> - </row> - <row> - <entry>month_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry> - Устанавливает дополнительные атрибуты тэгов select/input для месяцев - </entry> - </row> - <row> - <entry>year_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry> - Устанавливает дополнительные атрибуты тэгов select/input для лет - </entry> - </row> - <row> - <entry>field_order</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>MDY</entry> - <entry>Порядок следования полей (МДГ)</entry> - </row> - <row> - <entry>field_separator</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>\n</entry> - <entry>текст, разделяющий поля</entry> - </row> - <row> - <entry>month_value_format</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>%m</entry> - <entry> - формат значения месяца (strftime). - По умолчанию - %m (номер месяца). - </entry> - </row> - <row> - <entry>year_empty</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry> - Если указан, первый пункт элемента для выбора года станет такой надписью - с пустым ("") значением. - Это удобно для создания надписей вроде "Пожалуйста, выберите год" в - качестве первого пункта выпадающего меню. - Обратите внимание, что вы можете использовать значения типа "-MM-DD" - для атрибута time, чтобы не выбирать год заранее. - </entry> - </row> - <row> - <entry>month_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - Если указан, первый пункт элемента для выбора месяца станет такой надписью - с пустым ("") значением. - Обратите внимание, что вы можете использовать значения типа "YYYY--DD" - для атрибута time, чтобы не выбирать месяц заранее. - </entry> - </row> - <row> - <entry>day_empty</entry> - <entry>string</entry> - <entry>No</entry> - <entry>null</entry> - <entry> - Если указан, первый пункт элемента для выбора дня станет такой надписью - с пустым ("") значением. - Обратите внимание, что вы можете использовать значения типа "YYY-MM-" - для атрибута time, чтобы не выбирать день заранее. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - <para> - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <select> для дня, - месяца и года. - </para> - <example> - <title>{html_select_date}</title> - <para>Шаблон:</para> - <programlisting> -<![CDATA[ -{html_select_date} -]]> - </programlisting> - <para> - Результат обработки шаблона: - </para> - <screen> -<![CDATA[ -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> - ..... snipped ..... -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> - ..... snipped ..... -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected="selected">13</option> -<option value="14">14</option> -<option value="15">15</option> - ..... snipped ..... -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2001" selected="selected">2001</option> -</select> -]]> - </screen> - </example> - - <example> - <title>{html_select_date}</title> - <programlisting> -<![CDATA[ -{* года начала и конца могут быть заданы относительно текущего года *} -{html_select_date prefix="StartDate" time=$time start_year="-5" - end_year="+1" display_days=false} -]]> - </programlisting> - <para> - Результатом обработки шаблона будет: (текущий год - 2000) - </para> - <screen> -<![CDATA[ -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected="selected">December</option> -</select> -<select name="StartDateYear"> -<option value="1995">1995</option> -<option value="1996">1996</option> -<option value="1997">1997</option> -<option value="1998">1998</option> -<option value="1999">1999</option> -<option value="2000" selected="selected">2000</option> -<option value="2001">2001</option> -</select> -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.function.html.select.time">{html_select_time}</link>, - <link linkend="language.modifier.date.format">date_format</link>, - <link linkend="language.variables.smarty.now">$smarty.now</link> - и - <link linkend="tips.dates">Советы относительно дат</link>. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-select-time.xml
Deleted
@@ -1,343 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.select.time"> - <title>{html_select_time}</title> - <para> - {html_select_time} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая создает выпадающее меню для выбора времени. - Она может отображать поля для часа, минуты, секунды и меридиана. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>prefix</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>Time_</entry> - <entry>префикс для имен переменных</entry> - </row> - <row> - <entry>time</entry> - <entry>timestamp</entry> - <entry>Нет</entry> - <entry>текущее время</entry> - <entry>какую дату/время использовать</entry> - </row> - <row> - <entry>display_hours</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>отображать ли часы</entry> - </row> - <row> - <entry>display_minutes</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>Отображать ли минуты</entry> - </row> - <row> - <entry>display_seconds</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>Отображать ли секунды</entry> - </row> - <row> - <entry>display_meridian</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>отображать ли меридиан (am/pm)</entry> - </row> - <row> - <entry>use_24_hours</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>использовать ли 24-часовой формат</entry> - </row> - <row> - <entry>minute_interval</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry>1</entry> - <entry>интервал пунктов выпадающего меню минут</entry> - </row> - <row> - <entry>second_interval</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry>1</entry> - <entry>интервал пунктов выпадающего меню секунд</entry> - </row> - <row> - <entry>field_array</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>n/a</entry> - <entry>присвоить значения массиву с таким именем</entry> - </row> - <row> - <entry>all_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>добавляет дополнительные атрибуты к тэгам select/input</entry> - </row> - <row> - <entry>hour_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>добавляет дополнительные атрибуты к тэгу select часа</entry> - </row> - <row> - <entry>minute_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>добавляет дополнительные атрибуты к тэгу select минуты</entry> - </row> - <row> - <entry>second_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>добавляет дополнительные атрибуты к тэгу select секунды</entry> - </row> - <row> - <entry>meridian_extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>null</entry> - <entry>добавляет дополнительные атрибуты к тэгу select меридиана</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - Атрибут time может иметь разные форматы. - Он может быть уникальной временной меткой (Unix timestamp), - строкой формата YYYYMMDDHHMMSS или любой другой строкой, - которую может обработать функция PHP - <ulink url="&url.php-manual;strtotime">strtotime()</ulink>. - </para> - <example> - <title>{html_select_time}</title> - <para>Шаблон:</para> - <programlisting> -<![CDATA[ -{html_select_time use_24_hours=true} -]]> - </programlisting> - <para> - Результат обработки шаблона: - </para> - <screen> -<![CDATA[ -<select name="Time_Hour"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09" selected>09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -</select> -<select name="Time_Minute"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20" selected>20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Second"> -<option value="00">00</option> -<option value="01">01</option> -<option value="02">02</option> -<option value="03">03</option> -<option value="04">04</option> -<option value="05">05</option> -<option value="06">06</option> -<option value="07">07</option> -<option value="08">08</option> -<option value="09">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13">13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23" selected>23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -<option value="32">32</option> -<option value="33">33</option> -<option value="34">34</option> -<option value="35">35</option> -<option value="36">36</option> -<option value="37">37</option> -<option value="38">38</option> -<option value="39">39</option> -<option value="40">40</option> -<option value="41">41</option> -<option value="42">42</option> -<option value="43">43</option> -<option value="44">44</option> -<option value="45">45</option> -<option value="46">46</option> -<option value="47">47</option> -<option value="48">48</option> -<option value="49">49</option> -<option value="50">50</option> -<option value="51">51</option> -<option value="52">52</option> -<option value="53">53</option> -<option value="54">54</option> -<option value="55">55</option> -<option value="56">56</option> -<option value="57">57</option> -<option value="58">58</option> -<option value="59">59</option> -</select> -<select name="Time_Meridian"> -<option value="am" selected>AM</option> -<option value="pm">PM</option> -</select> -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.variables.smarty.now">$smarty.now</link>, - <link linkend="language.function.html.select.date">{html_select_date}</link> - и - <link linkend="tips.dates">Советы относительно дат</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-html-table.xml
Deleted
@@ -1,232 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.html.table"> - <title>{html_table}</title> - <para> - {html_table} является - <link linkend="language.custom.functions">пользовательской функцией</link>, - которая распечатывает массив данных в HTML-тэг table. - Атрибут <emphasis>cols</emphasis> указывает, сколько в таблице будет колонок. - Атрибуты <emphasis>table_attr</emphasis>, <emphasis>tr_attr</emphasis> и - <emphasis>td_attr</emphasis> определяют атрибуты соответствующих элементов - таблицы - тэгов table, tr и td. Если параметры <emphasis>tr_attr</emphasis> - или <emphasis>td_attr</emphasis> являются массивами, их значения будут - использоваться циклически. <emphasis>trailpad</emphasis> - это значение, - помещаемое в пустые ячейки последней строки, если такие будут. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>loop</entry> - <entry>array</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>массив данных для обработки</entry> - </row> - <row> - <entry>cols</entry> - <entry>mixed</entry> - <entry>Нет</entry> - <entry><emphasis>3</emphasis></entry> - <entry> - количество колонок в таблице. Если этот атрибут не указан, но указан - атрибут rows, то количество колонок автоматически вычисляется исходя - из количества строк и количества элементов для отображения, чтобы как - раз уместить все элементы. Если оба параметра (и rows, и cols) опущены, - cols принимает значение по умолчанию, равное 3. - Если параметр является списком или массивом, кол-во колонок рассчитывается - исходя из кол-ва элементов в списке или массиве. - </entry> - </row> - <row> - <entry>rows</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>empty</emphasis></entry> - <entry> - количество строк в таблице. Если этот атрибут не указан, но указан - атрибут cols, то количество строк автоматически вычисляется исходя - из кооичества колонок и количества элементов для отображения, чтобы как - раз уместить все элементы. - </entry> - </row> - <row> - <entry>inner</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>cols</emphasis></entry> - <entry> - направление заполнения элементов таблицы из массива. - <emphasis>cols</emphasis> означает заполнение элементов колонки за колонкой. - <emphasis>rows</emphasis> означает заполнение элементов строка за строкой. - </entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry> - текст, используемый в качестве заголовка таблицы. - </entry> - </row> - <row> - <entry>table_attr</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>border="1"</emphasis></entry> - <entry>атрибуты для тэга table</entry> - </row> - <row> - <entry>th_attr</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>атрибуты для тэга th (значения массива отображаются циклично)</entry> - </row> - <row> - <entry>tr_attr</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>атрибуты для тэга tr (значения массива отображаются циклично)</entry> - </row> - <row> - <entry>td_attr</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>атрибуты для тэга td (значения массива отображаются циклично)</entry> - </row> - <row> - <entry>trailpad</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>&nbsp;</emphasis></entry> - <entry>значение для заполнения пустых ячеек последней строки (если такие есть)</entry> - </row> - <row> - <entry>hdir</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>right</emphasis></entry> - <entry> - направления заполнения каждой строки. доступные значения: - <emphasis>right</emphasis> (слева-направо) - и - <emphasis>left</emphasis> (справа-налево) - </entry> - </row> - <row> - <entry>vdir</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>down</emphasis></entry> - <entry> - направление заполнения каждой колонки. доступные значения: - <emphasis>down</emphasis> (сверху-вниз) - и - <emphasis>up</emphasis> (снизу-вверх) - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - - - <example> - <title>{html_table}</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ -<table border="1"> -<tbody> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</tbody> -</table> -<table border="0"> -<tbody> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td> </td><td> </td><td> </td></tr> -</tbody> -</table> -<table border="1"> -<thead> -<tr> -<th>first</th><th>second</th><th>third</th><th>fourth</th> -</tr> -</thead> -<tbody> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr> -</tbody> -</table> -]]> - </screen> - </example> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-mailto.xml
Deleted
@@ -1,179 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.mailto"> - <title>{mailto}</title> - <para> - {mailto} автоматически создает ссылки "mailto:" и опционально кодирует - их. Кодирование e-mail'ов на вашем сайте усложняет их обнаружение - автоматическими программами-анализаторами и является элементарным - способом защиты от спама. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>address</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>адрес e-mail</entry> - </row> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>название ссылки. По умолчанию: - адрес e-mail</entry> - </row> - <row> - <entry>encode</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>none</emphasis></entry> - <entry>Способ кодирования e-mail. - Может быть <literal>none</literal>, - <literal>hex</literal>, <literal>javascript</literal> или - <literal>javascript_charcode</literal>.</entry> - </row> - <row> - <entry>cc</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>адреса e-mail для точной копии. - Адреса разделяются запятыми.</entry> - </row> - <row> - <entry>bcc</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>адреса e-mail для "слепой" копии. - Адреса разделяются запятыми.</entry> - </row> - <row> - <entry>subject</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>тема письма.</entry> - </row> - <row> - <entry>newsgroups</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>в какие конференции передавать. - конференции разделяются запятыми.</entry> - </row> - <row> - <entry>followupto</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>адреса для дальнейшего перенаправления. - Адреса разделяются запятыми.</entry> - </row> - <row> - <entry>extra</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Дополнительный атрибуты, передаваемые в ссылку - такие как стили (style)</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Техническое Замечание</title> - <para> - javascript - скорее всего наиболее полная форма кодирования, - хотя вы так же можете использовать шестнадцатиричное - кодирование. К сожалению, javascript не поддерживает - кодирование русских символов. - </para> - </note> - <example> - <title>Примеры использования {mailto} и результаты их обработки</title> - <programlisting> -<![CDATA[ -{mailto address="me@example.com"} -<a href="mailto:me@example.com" >me@example.com</a> - -{mailto address="me@example.com" text="send me some mail"} -<a href="mailto:me@example.com" >send me some mail</a> - -{mailto address="me@example.com" encode="javascript"} -<script type="text/javascript" language="javascript"> - eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b')) -</script> - -{mailto address="me@example.com" encode="hex"} -<a href="mailto:%6d%65.. snipped..3%6f%6d">m&..snipped...#x6f;m</a> - -{mailto address="me@example.com" subject="Hello to you!"} -<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a> - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -<a href="mailto:me@example.com?cc=you@example.com%2Cthey@example.com" >me@example.com</a> - -{mailto address="me@example.com" extra='class="email"'} -<a href="mailto:me@example.com" class="email">me@example.com</a> - -{mailto address="me@example.com" encode="javascript_charcode"} -<script type="text/javascript" language="javascript"> -<!-- -{document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))} -//--> -</script> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.modifier.escape">escape</link>, - <link linkend="tips.obfuscating.email">Сокрытие E-mail адреса</link> - и - <link linkend="language.function.textformat">{textformat}</link> - - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-math.xml
Deleted
@@ -1,189 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.math"> - <title>{math}</title> - <para> - {math} позволяет дизайнерам шаблонов проводить математические вычисления - в шаблоне. Любые числовые переменные шаблона могут быть использованы в - уравнениях, и результат будет выведен на месте этого тега. - Переменные, используемые в уравнении, передаются в виде параметров, - которые могут быть переменными шаблона или статическими значениями. - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, pi, pow, - rand, round, sin, sqrt, srans и tan являются доступными операторами. - Обратитесь к документации PHP для получения дополнительной информации - по этим математическим функциям. - </para> - <para> - Если вы указываете специальный параметр "assign", результат выполнения - функции {math} будет присвоен переменной шаблона вместо вывода в шаблон. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>equation</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>уравнение для выполнения</entry> - </row> - <row> - <entry>format</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>формат результата (sprintf)</entry> - </row> - <row> - <entry>var</entry> - <entry>numeric</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>значение переменной уравнения</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>имя переменной шаблона для сохранения результата</entry> - </row> - <row> - <entry>[var ...]</entry> - <entry>numeric</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>значение переменной уравнения</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <note> - <title>Техническое Замечание</title> - <para> - {math} - это очень ресурсоёмкая функция из-за использования ею функции PHP - <ulink url="&url.php-manual;eval">eval()</ulink>. - Выполнение математических операций в PHP намного эффективнее, так что - по возможности используйте PHP для математических рассчетов и - <link linkend="api.assign">присваивайте</link> результат шаблону. - При любых обстоятельствах, избегайте повторяющихся вызовов функции {math}, - например внутри циклов - <link linkend="language.function.section">{section}</link>. - </para> - </note> - <example> - <title>{math}</title> - <para> - <emphasis role="bold">Пример №1:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $height=4, $width=5 *} - - {math equation="x + y" x=$height y=$width} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - 9 -]]> - </screen> - <para> - <emphasis role="bold">Пример №2:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - - {math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - 100 -]]> - </screen> - <para> - <emphasis role="bold">Пример №3:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* вы можете использовать скобки *} - - {math equation="(( x + y ) / z )" x=2 y=10 z=2} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - 6 -]]> - </screen> - <para> - <emphasis role="bold">Пример №4:</emphasis> - </para> - <programlisting> -<![CDATA[ - {* вы можете указать формат sprintf в параметре format *} - - {math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - ]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - 9.44 -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-popup-init.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.popup.init"> - <title>{popup_init}</title> - <para> - <link linkend="language.function.popup">{popup}</link> - - это функция для интеграции - <ulink url="&url.overLib;">overLib</ulink>, библиотеки, которая - используется для отображения всплывающих окон. Они используются для - контекстно-чувствительной информации, такой как окна справки и всплывающие - подсказки. {popup_init} должна быть вызвана <emphasis>только один раз</emphasis>, - желательно в тэге <head> в пределах каждой страницы, на которой вы - собираетесь использовать функцию - <link linkend="language.function.popup">{popup}</link>. - Путь может быть задан относительно обрабатываемого скрипта или в виде полного - адреса с доменом (но не относительно файла шаблона). - </para> - <para> - <ulink url="&url.overLib;">overLib</ulink> - написана и поддерживается Эриком Босрупом (Erik Bosrup) и её домашняя страница находится по - адресу <ulink url="&url.overLib;">&url.overLib;</ulink>. - </para> - - <example> - <title>{popup_init}</title> - <programlisting> -<![CDATA[ -<head> -{* popup_init должна быть вызвана один раз в начале страницы *} -{popup_init src='javascripts/overlib/overlib.js'} - -{* пример с полным адресом, включая домен *} -{popup_init src='http://www.example.com/my_js_libs/overlib/overlib.js'} -</head> - -// результат выполнения первого примера -<head> -<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> -<script type="text/javascript" language="JavaScript" src="javascripts/overlib/overlib.js"></script> -</head> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-popup.xml
Deleted
@@ -1,449 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.popup"> - <title>{popup}</title> - <para> - {popup} используется для создания высплывающих окон при помощи javascript. - Для обеспечения работы этой функции, предварительно ДОЛЖНА быть вызвана - функция <link linkend="language.function.popup.init">{popup_init}</link>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>text</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>текст/html для отображения во всплывающем окне</entry> - </row> - <row> - <entry>trigger</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>onMouseOver</emphasis></entry> - <entry> - Какое событие используется для активации всплывающего окна. - Может быть onMouseOver или onClick. - </entry> - </row> - <row> - <entry>sticky</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Всплывающее окно закрывается кликом</entry> - </row> - <row> - <entry>caption</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает заголовок окна</entry> - </row> - <row> - <entry>fgcolor</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>цвет всплывающего окна</entry> - </row> - <row> - <entry>bgcolor</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>цвет рамки всплывающего окна</entry> - </row> - <row> - <entry>textcolor</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает цвет текста внутри всплывающего окна</entry> - </row> - <row> - <entry>capcolor</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает цвет заголовка всплывающего окна</entry> - </row> - <row> - <entry>closecolor</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает цвет надписи "закрыть"</entry> - </row> - <row> - <entry>textfont</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает шрифт для главного текста</entry> - </row> - <row> - <entry>captionfont</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает шрифт дла заголовка</entry> - </row> - <row> - <entry>closefont</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает шрифт надписи "Закрыть"</entry> - </row> - <row> - <entry>textsize</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает размер главного текста</entry> - </row> - <row> - <entry>captionsize</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает размер заголовка</entry> - </row> - <row> - <entry>closesize</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает размер надписи "Закрыть"</entry> - </row> - <row> - <entry>width</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает ширину всплывающего окна</entry> - </row> - <row> - <entry>height</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает высоту всплывающего окна</entry> - </row> - <row> - <entry>left</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>заставляет всплывающее окно появляться слева от курсора мыши</entry> - </row> - <row> - <entry>right</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>заставляет всплывающее окно появляться справа от курсора мыши</entry> - </row> - <row> - <entry>center</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>заставляет всплывающее окно появляться по центру курсора мыши</entry> - </row> - <row> - <entry>above</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry> - Заставляет всплывающее окно появляться сверху от курсора. - Внимание: работает только если установлен атрибут height. - </entry> - </row> - <row> - <entry>below</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>заставляет всплывающее окно появляться снизу от курсора мыши</entry> - </row> - <row> - <entry>border</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>делает рамку вокрут всплывающего окна тоньше или толще</entry> - </row> - <row> - <entry>offsetx</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>как далеко от курсора будет отображаться всплывающее окно, - по горизонтали</entry> - </row> - <row> - <entry>offsety</entry> - <entry>integer</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>как далеко от курсора будет отображаться всплывающее окно, - по вертикали</entry> - </row> - <row> - <entry>fgbackground</entry> - <entry>url к картинке</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>определяет картинку, которая будет использована вместо цвета для - содержимого всплывающего окна.</entry> - </row> - <row> - <entry>bgbackground</entry> - <entry>url к картинке</entry> - <entry>No</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>определяет картинку, которая будет использована вместо цвета для - рамки всплывающего окна. Внимание: вам следует установить bgcolor в "", - иначе цвет так же будет отображаться. Внимание: когда присутствует ссылка - "Закрыть", Netscape будет перерисовывать ячеки таблицы, из-за чего результат - может быть неверным</entry> - </row> - <row> - <entry>closetext</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает текст для надписи "Закрыть"</entry> - </row> - <row> - <entry>noclose</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>не отображать текст "Закрыть" для всплывающих окон с заголовком</entry> - </row> - <row> - <entry>status</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает текст в строку статуса браузера</entry> - </row> - <row> - <entry>autostatus</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает текст всплывающего окна в строку статуса браузера - Внимание: переназначает установку status</entry> - </row> - <row> - <entry>autostatuscap</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает текст заголовка всплывающего окна в строку статуса - браузера. - NOTE: переназначает установки status и autostatus</entry> - </row> - <row> - <entry>inarray</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>говорит overLib прочитать текст по этому индексу в - массиве ol_text, расположеном в overlib.js. Этот параметр - может быть использован вместо параметра text</entry> - </row> - <row> - <entry>caparray</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>говорит overLib и прочитать заголовок по этому индексу в - массиве ol_caps</entry> - </row> - <row> - <entry>capicon</entry> - <entry>url</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>отображает картинку перед заголовком всплывающего окна</entry> - </row> - <row> - <entry>snapx</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>прикрепляет всплывающее окно к каждому N-ому пикселю по горизонтали</entry> - </row> - <row> - <entry>snapy</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>прикрепляет всплывающее окно к каждому N-ому пикселю по вертикали</entry> - </row> - <row> - <entry>fixx</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>блокирует горизонтальное положение всплывающего окна. - Внимание: переназначает всё горизонтальное позиционирование</entry> - </row> - <row> - <entry>fixy</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>блокирует вертикальное положение всплывающего окна. - Внимание: переназначает всё вертикальное позиционирование</entry> - </row> - <row> - <entry>background</entry> - <entry>url</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>устанавливает картинку для использования вместо фона таблицы</entry> - </row> - <row> - <entry>padx</entry> - <entry>integer,integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>делает горизонтальный отступ фоновой картинки для размещения текста. - Внимание: это двойная команда</entry> - </row> - <row> - <entry>pady</entry> - <entry>integer,integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>делает вертикальный отступ фоновой картинки для размещения текста. - Внимание: это двойная команда</entry> - </row> - <row> - <entry>fullhtml</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>дает вам возможность полностью контролировать html поверх фоновой - картинки. HTML-код ожидается в атрибуте "text"</entry> - </row> - <row> - <entry>frame</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>контролирует всплывающее окно в другом фрейме. - См. домашнюю страницу overlib для дополнительной информации по этой - функции</entry> - </row> - <row> - <entry>function</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>вызывает указанную функцию javascript и отображает возвращенное - значение во всплывающем окне</entry> - </row> - <row> - <entry>delay</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>заставляет всплывающее окно вести себя как всплывающую подсказку. - Оно всплывет только после определенной задержки в миллисекундах.</entry> - </row> - <row> - <entry>hauto</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>автоматически определять, должна ли всплывающая подсказка быть - слева или справа от курсора мыши.</entry> - </row> - <row> - <entry>vauto</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>автоматически определять, должна ли всплывающая подсказка быть - выше или ниже курсора мыши.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{popup}</title> - <programlisting> -<![CDATA[ -{* popup_init должна быть вызвана один раз в начале страницы *} -{popup_init src='/javascripts/overlib.js'} - -{* создает ссылку со всплывающим окном, когда вы наводите на неё курсор *} -<a href="mypage.html" {popup text='This link takes you to my page!'}>mypage</a> - -{* вы можете использовать HTML, ссылки и т.д. в тексте *} -<a href="mypage.html" {popup sticky=true caption='mypage contents' -text="<ul><li>links</li><li>pages</li><li>images</li></ul>" -snapx=10 snapy=10 trigger='onClick'}>mypage</a> - -{* всплывающее окно над ячейкой таблицы *} -<tr><td {popup caption='Part details' text=$part_long_description}>{$part_number}</td></tr> -]]> - </programlisting> - </example> - <para> - Другой хороший пример можно найти на в описании тэга - <link linkend="language.function.capture">{capture}</link>. - </para> - <para> - См. также - <link linkend="language.function.popup.init">{popup_init}</link> - и - <ulink url="&url.overLib;">overLib</ulink>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-custom-functions/language-function-textformat.xml
Deleted
@@ -1,301 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.function.textformat"> - <title>{textformat}</title> - <para> - {textformat} - это - <link linkend="plugins.block.functions">блоковая функция</link>, - используемая для форматирования текста. Проще говоря, она убирает - лишние пробелы и спецсимволы, а так же форматирует параграфы добавляя - разрывы строк и отступы. - </para> - <para> - Вы можете указать параметры явно, либо использовать предустановленный - стиль. - На данный момент, единственным таким стилем является "email". - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Имя атрибута</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>style</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>предустановленный стиль</entry> - </row> - <row> - <entry>indent</entry> - <entry>number</entry> - <entry>Нет</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Количество символов для отступа на каждой строке</entry> - </row> - <row> - <entry>indent_first</entry> - <entry>number</entry> - <entry>Нет</entry> - <entry><emphasis>0</emphasis></entry> - <entry>Количество символов для отступа на первой строке</entry> - </row> - <row> - <entry>indent_char</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>(один пробел)</emphasis></entry> - <entry>Символ (или набор символов), при помощи которых будет - осуществляться отступ</entry> - </row> - <row> - <entry>wrap</entry> - <entry>number</entry> - <entry>Нет</entry> - <entry><emphasis>80</emphasis></entry> - <entry>Максимальное количество символов, после которого будет вставлен - перенос строки</entry> - </row> - <row> - <entry>wrap_char</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>\n</emphasis></entry> - <entry>Символ (или набор символов), при помощи которых будет - осуществляться перенос строки</entry> - </row> - <row> - <entry>wrap_cut</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry><emphasis>false</emphasis></entry> - <entry>Если true, перенос строки будет разбивать строку на любом символе, - а не только на границе слов</entry> - </row> - <row> - <entry>assign</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>переменная шаблона для присвоения результата работы функции</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>{textformat}</title> - <programlisting> -<![CDATA[ - {textformat wrap=40} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. - This is foo. This is foo. This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat wrap=40 indent=4 indent_first=4} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. -]]> - </screen> - <programlisting> -<![CDATA[ - {textformat style="email"} - - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - bar foo bar foo foo. - - {/textformat} - -]]> - </programlisting> - <para> - Результат выполнения данного примера: - </para> - <screen> -<![CDATA[ - - This is foo. This is foo. This is foo. This is foo. This is foo. This is - foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo - foo. - -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.function.strip">{strip}</link> - и - <link linkend="language.modifier.wordwrap">{wordwrap}</link>. - </para> - -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers.xml
Deleted
@@ -1,174 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2591 Maintainer: freespace Status: ready --> -<chapter id="language.modifiers"> - <title>Модификаторы переменных</title> - <para> - Модификаторы переменных могут быть прмменены к - <link linkend="language.syntax.variables">переменным</link>, - <link linkend="language.custom.functions">пользовательским функциям</link> - или строкам. Для их применения надо после модифицируемого значения - указать символ <literal>|</literal> (вертикальная черта) и название модификатора. - Так же модификаторы могут принимать параметры, которые влияют на их поведение. - Эти параметры следуют за названием модификатора и разделяются - <literal>:</literal> (двоеточием). Кроме того, <emphasis>все функции PHP - могут быть использованы в качестве модификаторов</emphasis> (об этом дальше) - и модификаторы можно - <link linkend="language.combining.modifiers">комбинировать</link>. - </para> - <example> - <title>Примеры модификаторов</title> - <programlisting> -<![CDATA[ -{* применение модификатора к переменной *} -{$title|upper} - -{* модификатор с параметрами *} -{$title|truncate:40:'...'} - -{* применение модификатора к аргументу функции *} -{html_table loop=$myvar|upper} - -{* с параметрами *} -{html_table loop=$myvar|truncate:40:'...'} - -{* применение модификатора к строке *} -{'foobar'|upper} - -{* использование date_format для форматирования текущей даты *} -{$smarty.now|date_format:"%Y/%m/%d"} - -{* применение модификатора к функции *} -{mailto|upper address='smarty@example.com'} - -{* использование функции PHP str_repeat *} -{'='|str_repeat:80} - -{* функция PHP count *} -{$myArray|@count} - -{* функция PHP shuffle, применяемая к IP адресу сервера *} -{$smarty.server.SERVER_ADDR|shuffle} - -(* это приведет в верхний регистр букв и обрежет пробелы у всех элементов массива *} -<select name="name_id"> - {html_options output=$myArray|upper|truncate:20} -</select> -]]> - </programlisting> - </example> - - <itemizedlist> - <listitem> - <para> - Если модификатор применяется к переменной-массиву, то он будет применен к - каждому элементу массива. Если же требуется применить модификатор к массиву, - как к переменной, то необходимо перед именем модификатора указать символ - <literal>@</literal>. - - <note> - <title>Пример</title> - <para> - <literal>{$articleTitle|@count}</literal> - выведет количество елементов - в массиве <parameter>$articleTitle</parameter> используя стандартную - функцию PHP - <ulink url="&url.php-manual;count"><varname>count()</varname></ulink> - в качестве модификатора. - </para> - </note> - </para> - </listitem> - - <listitem> - <para> - Модификаторы автоматически загружаются из директории <link - linkend="variable.plugins.dir"><parameter>$plugins_dir</parameter></link> - или могут быть явно зарегистрированы при помощи функции - <link linkend="api.register.modifier"> - <varname>register_modifier()</varname></link>; - это удобно для использования функции как в PHP-коде, так и в шаблоне. - </para> - - <para> - Любая PHP-функция может быть использована в качестве модификатора. - Тем не менее, использование PHP-функций в качестве модификаторов - имеет две маленькие "ловушки": - <itemizedlist> - <listitem> - <para> - Во-первых, иногда порядок аргументов функции не самый удобный. - Форматирование <literal>$foo</literal> при помощи - <literal>{"%2.f"|sprintf:$float}</literal> - это рабочий, но - не совсем удобный вариант. - Больше подойдет <literal>{$float|string_format:"%2.f"}</literal>, - который предлагает дистрибутив Smarty). - </para> - </listitem> - - <listitem> - <para> - Во-вторых, в случае включения <link - linkend="variable.security">$security</link>, все PHP-функции, которые будут - использованы как модификаторы, должны быть объявлены "безопасными" - в элементе <literal>MODIFIER_FUNCS</literal> массива - <link linkend="variable.security.settings"> - <parameter>$security_settings</parameter></link>. - </para> - </listitem> - </itemizedlist> - </para> - </listitem> - </itemizedlist> - - <para> - См. также - <link linkend="api.register.modifier"> - <varname>register_modifier()</varname></link>, - <link linkend="language.combining.modifiers"> - Комбинирование модификаторов</link> и - <link linkend="plugins">Плагины - расширение функциональности Smarty</link>. - </para> - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-capitalize.xml
Deleted
@@ -1,95 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.modifier.capitalize"> - <title>capitalize</title> - <para> - Преобразовывает первые буквы каждого в переменной слова в заглавные. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Этот параметр определяет, распространяется ли действие - модификатора на слова с цифрами</entry> - </row> - </tbody> - </tgroup> - </informaltable> - <example> - <title>capitalize</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|capitalize} -{$articleTitle|capitalize:true} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -next x-men film, x3, delayed. -Next X-Men Film, x3, Delayed. -Next X-Men Film, X3, Delayed. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.lower">lower</link> - и - <link linkend="language.modifier.upper">upper</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-cat.xml
Deleted
@@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.modifier.cat"> - <title>cat</title> - <para> - Данная строка добавляется к модифицируемому значению переменной. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="cat" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>cat</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>пусто</emphasis></entry> - <entry>Данная строка добавляется к - модифицируемому значению.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>cat</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|cat:" yesterday."} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Psychics predict world didn't end yesterday. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-count-characters.xml
Deleted
@@ -1,96 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.modifier.count.characters"> - <title>count_characters</title> - <para> - Подсчитывает количество символов в переменной. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Определяет, учитывать ли пробелы при подсчете.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>count_characters</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Cold Wave Linked to Temperatures. -29 -33 -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.count.words">count_words</link>, - <link linkend="language.modifier.count.sentences">count_sentences</link> - и - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.modifier.count.paragraphs"> - <title>count_paragraphs</title> - <para> - Подсчитывает количество абзацев в переменной. - </para> - <example> - <title>count_paragraphs</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_paragraphs} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2 -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.count.characters">count_characters</link>, - <link linkend="language.modifier.count.sentences">count_sentences</link> - и - <link linkend="language.modifier.count.words">count_words</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-count-sentences.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.modifier.count.sentences"> - <title>count_sentences</title> - <para> - Подсчитывает количество предложений в переменной. - </para> - <example> - <title>count_sentences</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_sentences} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2 -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.count.characters">count_characters</link>, - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link> - и - <link linkend="language.modifier.count.words">count_words</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-count-words.xml
Deleted
@@ -1,64 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.modifier.count.words"> - <title>count_words</title> - <para> - Подсчитывает количество слов в переменной. - </para> - <example> - <title>count_words</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|count_words} -]]> - </programlisting> - <para> - Шаблон: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -7 -]]> - </screen> - </example> - <para> - See also <link linkend="language.modifier.count.characters">count_characters</link>, - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link> and - <link linkend="language.modifier.count.sentences">count_sentences</link>. - </para> - </sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-date-format.xml
Deleted
@@ -1,279 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.date.format"> - <title>date_format</title> - <para> - Форматирует дату согласно указанному формату - <ulink url="&url.php-manual;strftime">strftime()</ulink>. - Даты могут быть переданы Smarty в виде - <ulink url="&url.php-manual;function.time">временных меток</ulink> unix, - временных меток mysql или в виде любой строки, содержащей день, месяц и - год, которую может обработать функция - <ulink url="&url.php-manual;strtotime">strtotime()</ulink>. - Дизайнер могут использовать date_format для получения полного контроля - над форматированием даты. Если дата, переданная в - <command>date_format</command>, пуста и второй аргумент передан, он будет - использоваться в качестве даты для форматирования. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>%b %e, %Y</entry> - <entry>Это формат для обрабатываемой даты.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>n/a</entry> - <entry>Это дата по умолчанию, если входящее значение пустое.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <para> - <note> - <para> - Начиная со Smarty-2.6.10, числовые значения, передаваемые в date_format, - <emphasis>всегда</emphasis> рассматриваются как временная метка unix - (кроме временных меток mysql, см. ниже). - </para> - <para> - До Smarty-2.6.10, числовые строки, которые так же могли быть обработаны - функцией strtotime() в php (к примеру, "ГГГГММДД"), иногда - - в зависимости от конкретной реализации strtotime() - интерпретировались - как строки с датой, а не временные метки. - </para> - <para> - Единственное исключение - это временные метки mysql: Они так же - являются числовыми и состоят из 14 символов ("ГГГГММДДЧЧММСС"). - Временные метки mysql имеют более высокий приоритет, чем временные - метки unix. - </para> - </note> - </para> - <example> - <title>date_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$config['date'] = '%I:%M %p'; -$config['time'] = '%H:%M:%S'; -$smarty->assign('config',$config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - </programlisting> - <para> - Шаблон (использует <link linkend="language.variables.smarty.now">$smarty.now</link>): - </para> - <programlisting> -<![CDATA[ -{$smarty.now|date_format} -{$smarty.now|date_format:"%D"} -{$smarty.now|date_format:$config.date} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:$config.time} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Feb 6, 2001 -02/06/01 -02:33 pm -Feb 5, 2001 -Monday, February 5, 2001 -14:33:00 -]]> - </screen> - </example> - <para> - Конверсионные указатели <command>date_format</command>: - <itemizedlist> - <listitem><para> - %a - сокращенное название дня недели, в зависимости от текущей локали - </para></listitem> - <listitem><para> - %A - полное название дня недели, в зависимости от текущей локали - </para></listitem> - <listitem><para> - %b - сокращенное название месяца, в зависимости от текущей локали - </para></listitem> - <listitem><para> - %B - полное название месяца, в зависимости от текущей локали - </para></listitem> - <listitem><para> - %c - формат даты и времени по умолчанию для текущей локали - </para></listitem> - <listitem><para> - %C - номер века (год, деленный на 100, представленный в виде целого в промежутке от 00 до 99) - </para></listitem> - <listitem><para> - %d - день месяца в десятичном формате (от 01 до 31) - </para></listitem> - <listitem><para> - %D - синоним %m/%d/%y - </para></listitem> - <listitem><para> - %e - день месяца в десятичном формате без ведущего нуля (от 1 до 31) - </para></listitem> - <listitem><para> - %g - Week-based year within century [00,99] - </para></listitem> - <listitem><para> - %G - Week-based year, including the century [0000,9999] - </para></listitem> - <listitem><para> - %h - синоним %b - </para></listitem> - <listitem><para> - %H - часы по 24-часовым часам (от 00 до 23) - </para></listitem> - <listitem><para> - %I - часы по 12-часовым часам (от 01 до 12) - </para></listitem> - <listitem><para> - %j - день года (от 001 до 366) - </para></listitem> - <listitem><para> - %k - часы по 24-часовым часам без ведущего нуля (от 0 до 23) - </para></listitem> - <listitem><para> - %l - часы по 12-часовым часам без ведущего нуля (от 1 до 12) - </para></listitem> - <listitem><para> - %m - номер месяца (от 01 до 12) - </para></listitem> - <listitem><para> - %M - минуты - </para></listitem> - <listitem><para> - %n - символ новой строки - </para></listitem> - <listitem><para> - %p - `am' или `pm', в зависимости от заданного формата времени и текущей локали. - </para></listitem> - <listitem><para> - %r - time in a.m. and p.m. notation - </para></listitem> - <listitem><para> - %R - time in 24 hour notation - </para></listitem> - <listitem><para> - %S - секунды - </para></listitem> - <listitem><para> - %t - символ табуляции - </para></listitem> - <listitem><para> - %T - время в формате %H:%M:%S - </para></listitem> - <listitem><para> - %u - номер дня недели [1,7], где 1-ый день - понедельник - </para></listitem> - <listitem><para> - %U - номер недели в году, считая первое воскресенья года первым днем первой недели - </para></listitem> - <listitem><para> - %V - номер недели в году (по ISO 8601:1988) в диапазоне от 01 до 53, где первая неделя - та, у которой хотя бы 4 дня находятся в данном году. Понедельник считается - первым днем недели. - </para></listitem> - <listitem><para> - %w - номер дня недели, где 0 - воскресенье - </para></listitem> - <listitem><para> - %W - номер недели в году, считаю первый понедельник первым днем первой недели. - </para></listitem> - <listitem><para> - %x - предпочтительное представление даты для текущих настроек locale без времени - </para></listitem> - <listitem><para> - %X - предпочтительное представление времени для текущих настроек locale без даты - </para></listitem> - <listitem><para> - %y - год в виде десятичного числа без века (от 00 до 99) - </para></listitem> - <listitem><para> - %Y - год в виде десятичного числа включая век - </para></listitem> - <listitem><para> - %Z - часовой пояс или имя или сокращение - </para></listitem> - <listitem><para> - %% - буквальный символ `%' - </para></listitem> - </itemizedlist> - <note> - <title>Замечание для программистов</title> - <para> - <command>date_format</command> является обычной оберткой для функции - PHP <ulink url="&url.php-manual;strftime">strftime()</ulink>. - Вы можете располагать б<emphasis>о</emphasis>льш или меньшим количеством - доступных конверсионных указателей в зависимости от функции - <ulink url="&url.php-manual;strftime">strftime()</ulink> той системы, - где был скомпилирован PHP. Обратитесь к руководству вашей системы для - получения полного списка доступных указателей. - </para> - </note> - </para> - <para> - См. также - <link linkend="language.variables.smarty.now">$smarty.now</link>, - <ulink url="&url.php-manual;strftime">функция php strftime()</ulink>, - <link linkend="language.function.html.select.date">{html_select_date}</link> - и - <link linkend="tips.dates">даты</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> - - -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-default.xml
Deleted
@@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.default"> - <title>default</title> - <para> - Используется для установки значения по умолчанию для переменной. - Если переменная не установлена или является пустой строкой, указанное - значение по умолчанию будет подставлено вместо неё. - </para> - - <para> - <note> - <para> - Если директива error_reporting установлена в E_ALL, необъявленные переменные - всегда будут отображать ошибку в шаблоне. Эта функция полезна для замены - пустых значений или строк нулевой длинны. - </para> - </note> - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>empty</emphasis></entry> - <entry>Это значение по умолчанию для вывода, если переменная пуста.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>default</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email',''); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|default:'no title'} -{$myTitle|default:'no title'} -{$email|default:'No email address available'} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Dealers Will Hear Car Talk at Noon. -no title -No email address available -]]> - </screen> - </example> - <para> - См. также - <link linkend="tips.default.var.handling">Обработка переменных по умолчанию</link> - и - <link linkend="tips.blank.var.handling">Обработка пустых переменных</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-escape.xml
Deleted
@@ -1,148 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.escape"> - <title>escape</title> - <para> - Используется для кодирования / экранирования спецсимволов по алгоритмам - экранирования HTML, URL'ов, одиночных кавычек, hex-экранирования, - hex-сущностей, javascript и экранирования почтовых адресов. - По умолчанию активирован режим экранирования HTML. - </para> - - <informaltable frame="all"> - <tgroup cols="6"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="possible" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>Possible Values</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><literal>html</literal>,<literal>htmlall</literal>,<literal>url</literal>,<literal>urlpathinfo</literal>,<literal>quotes</literal>,<literal>hex</literal>,<literal>hexentity</literal>,<literal>javascript</literal>,<literal>mail</literal></entry> - <entry><literal>html</literal></entry> - <entry>формат экранирования</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><literal>ISO-8859-1</literal>, <literal>UTF-8</literal>, ... любая кодировка, поддерживаемая функцией <ulink url="&url.php-manual;htmlentities">htmlentities()</ulink> -</entry> - <entry><literal>ISO-8859-1</literal></entry> - <entry>Кодировка для экранирования, передаваемая в htmlentities() и т.д.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>escape</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|escape} -{$articleTitle|escape:'html'} {* экранирует & " ' < > *} -{$articleTitle|escape:'htmlall'} {* экранирует ВСЕ HTML-сущности *} -{$articleTitle|escape:'url'} -{$articleTitle|escape:'quotes'} -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> -{$EmailAddress|escape:'mail'} {* конвертирует e-mail в текст *} -{'mail@example.com'|escape:'mail'} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -'Stiff Opposition Expected to Casketless Funeral Plan' -%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27 -\'Stiff Opposition Expected to Casketless Funeral Plan\' -<a href="mailto:%62%6f%..snip..%65%74">bob..snip..et</a> -smarty [AT] example [DOT] com -mail [AT] example [DOT] com -]]> - </screen> - <para> - Обратите внимание, что родные функции PHP могут использоваться в качестве - модификаторов, так что следующие приёмы сработают - </para> - <screen> -<![CDATA[ -{* GET-переменная rewind передает текущий адрес *} -<a href="{$SCRIPT_NAME}?page=foo&rewind={$smarty.server.REQUEST_URI|urlencode}">click here</a> - ]]> - </screen> - <para> - Это очень полезно для e-mail'ов, но см. также - <link linkend="language.function.mailto">{mailto}</link> - </para> - <screen> -<![CDATA[ -{* email address mangled *} -<a href="mailto:{$EmailAddress|escape:'hex'}">{$EmailAddress|escape:'mail'}</a> -]]> - </screen> - </example> - - <para> - См. также - <link linkend="language.escaping">Предотвращение обработки Smarty</link>, - <link linkend="language.function.mailto">{mailto}</link> - и - <link linkend="tips.obfuscating.email">Сокрытие E-mail адреса</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-indent.xml
Deleted
@@ -1,129 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.indent"> - <title>indent</title> - <para> - Создает отступы в начале каждой строки, по умолчанию - 4 пробела. - В качестве необязательных аргументов можно указать количество повторений - символа и сам символ, который будет использоваться для создания отступов. - (используйте "\t" для табуляции). - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc" /> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry>4</entry> - <entry>Определяет количество повторений символа при создании отступа.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>(один пробел)</entry> - <entry>Символ, который используется при создании отступа.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>indent</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); - - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.strip">strip</link>, - <link linkend="language.modifier.wordwrap">wordwrap</link> - и - <link linkend="language.modifier.spacify">spacify</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-lower.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.lower"> - <title>lower</title> - <para> - Переводит строку в нижний регистр. Является эквивалентом функции PHP - <ulink url="&url.php-manual;strtolower">strtolower()</ulink>. - </para> - <example> - <title>lower</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|lower} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.upper">upper</link> - и - <link linkend="language.modifier.capitalize">capitalize</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-nl2br.xml
Deleted
@@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.nl2br"> - <title>nl2br</title> - <para> - Превращает каждый перевод строки в тэг <br /> в указанной переменной. - Это эквивалент функции PHP - <ulink url="&url.php-manual;nl2br">nl2br()</ulink>. - </para> - <example> - <title>nl2br</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle|nl2br} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Sun or rain expected<br />today, dark tonight -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.wordwrap">word_wrap</link>, - <link linkend="language.modifier.count.paragraphs">count_paragraphs</link> - и - <link linkend="language.modifier.count.sentences">count_sentences</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-regex-replace.xml
Deleted
@@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.regex.replace"> - <title>regex_replace</title> - <para> - Поиск и замена при помощи регулярного выражения в переменной. - Используйте синтаксис из руководства к функции PHP <ulink - url="&url.php-manual;preg_replace">preg_replace()</ulink>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Регулярное выражение для проведения замены.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Строка, на которую будет проведена замена.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>regex_replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{* заменяет каждый возврат каретки, табуляцию и перевод строки на пробел *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Infertility unlikely to -be passed on, experts say. -Infertility unlikely to be passed on, experts say. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.replace">replace</link> - и - <link linkend="language.modifier.escape">escape</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-replace.xml
Deleted
@@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.replace"> - <title>replace</title> - <para> - Простой поиск и замена в переменной. Это эквивалент функции PHP - <ulink url="&url.php-manual;str_replace">str_replace()</ulink>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Строка текста, которую следует заменить.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Yes</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Строка текста, на которую следует заменить.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>replace</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|replace:'Garden':'Vineyard'} -{$articleTitle|replace:' ':' '} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.regex.replace">regex_replace</link> - и - <link linkend="language.modifier.escape">escape</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-spacify.xml
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.spacify"> - <title>spacify</title> - <para> - spacify is a way to insert a space between every character of a variable. - You can optionally pass a different character (or string) to insert. - </para> - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry><emphasis>один пробел</emphasis></entry> - <entry>Это вставляется между каждым символом переменной.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>spacify</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} -]]> - </programlisting> - <para> - Результат: - </para> - <screen> -<![CDATA[ -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W .... вырезано .... s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ .... вырезано .... ^^e^^r^^t^^s^^ ^^S^^a^^y^^. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.wordwrap">wordwrap</link> - и - <link linkend="language.modifier.nl2br">nl2br</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-string-format.xml
Deleted
@@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.string.format"> - <title>string_format</title> - <para> - Этот модификатор используется для форматирования строк, таких как десятичные - числа и т.д. - Используйте синтаксис от - <ulink url="&url.php-manual;sprintf">sprintf()</ulink> для форматирования. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>string</entry> - <entry>Да</entry> - <entry><emphasis>n/a</emphasis></entry> - <entry>Формат для использования (sprintf).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>string_format</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('number', 23.5787446); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} -]]> - </programlisting> - <para> - This should output: - </para> - <screen> -<![CDATA[ -23.5787446 -23.58 -24 -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.date.format">date_format</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-strip-tags.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.strip.tags"> - <title>strip_tags</title> - <para> - Удаляет тэги разметки. Грубо говоря, всё, что находится между < и >, - включительно. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>bool</entry> - <entry>Нет</entry> - <entry>true</entry> - <entry>Определяет, будут тэги заменяться на ' ' или на ''</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>strip_tags</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind Woman Gets <font face=\"helvetica\">New -Kidney</font> from Dad she Hasn't Seen in <b>years</b>." - ); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip_tags} {* то же самое, что и {$articleTitle|strip_tags:true} *} -{$articleTitle|strip_tags:false} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-strip.xml
Deleted
@@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.strip"> - <title>strip</title> - <para> - Заменяет все повторяющиеся пробелы, переводы строк и символы табуляции - одним пробелом (или другой указанной строкой). - </para> - <note> - <title>Обратите внимание</title> - <para> - Если вы хотите обработать блоки текста в шаблоне аналогичным образом, - воспользуйтесь функцией <link - linkend="language.function.strip">{strip}</link>. - </para> - </note> - <example> - <title>strip</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:' '} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother of eight makes hole in one. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.function.strip">{strip}</link> - и - <link linkend="language.modifier.truncate">truncate</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-truncate.xml
Deleted
@@ -1,131 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.truncate"> - <title>truncate</title> - <para> - Обрезает переменную до определенной длинны, по умолчанию - 80 символов. - В качестве необязательного второго параметра, вы можете передать строку - текста, которая будет отображатся в конце обрезанной переменной. - Символы этой строки не включаются в общую длинну обрезаемой строки. - По умолчанию, truncate попытается обрезать строку в промежутке между словами. - Если вы хотите обрезать строку строго на указаной длинне, передайте в третий - необязательный параметр значение true. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry>80</entry> - <entry>Определяет максимальную длинну обрезаемой строки.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>...</entry> - <entry>Текстовая строка, которая заменяет обрезанный текст. Её длинна - НЕ включена в максимальную длинну обрезаемой строки.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Определяет, обрезать ли строку в промежутке между словами (false) - или строго на указаной длинне (true).</entry> - </row> - <row> - <entry>4</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Определяет, нужно ли обрезать строку в конце (false) или в - середине строки (true). Обратите внимание, что при включении этой - опции, промежутки между словами игнорируются.</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>truncate</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} -{$articleTitle|truncate:30:'..':true:true} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E... -Two Sisters Re..ckout Counter. -]]> - </screen> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-upper.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.upper"> - <title>upper</title> - <para> - Переводит строку в верхний регистр. Является эквивалентом функции PHP - <ulink url="&url.php-manual;strtoupper">strtoupper()</ulink>. - </para> - <example> - <title>upper</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} -{$articleTitle|upper} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE. -]]> - </screen> - </example> - <para> - См. также - <link linkend="language.modifier.lower">lower</link> - и - <link linkend="language.modifier.capitalize">capitalize</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-modifiers/language-modifier-wordwrap.xml
Deleted
@@ -1,144 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="language.modifier.wordwrap"> - <title>wordwrap</title> - <para> - <command>wordwrap</command> вставляет переводы строк на определенной ширине - колонки, по умолчанию - 80 символов. В качестве необязательного второго - аргумента вы можете передать текстовую строку, используемую в качестве - перевода строки (по умолчанию - символ перевода строки \n). - По умолчанию, wordwrap попытается вставить перевод строки в промежуток между - словами. Если вы хотите, чтобы строка обрывалась строго на определенной - длинне, передайте в третий необязательный параметр значение true. - Это эквивалент функции PHP <ulink - url="&url.php-manual;wordwrap">wordwrap()</ulink>. - </para> - - <informaltable frame="all"> - <tgroup cols="5"> - <colspec colname="param" align="center" /> - <colspec colname="type" align="center" /> - <colspec colname="required" align="center" /> - <colspec colname="default" align="center" /> - <colspec colname="desc"/> - <thead> - <row> - <entry>Позиция параметра</entry> - <entry>Тип</entry> - <entry>Обязателен</entry> - <entry>По умолчанию</entry> - <entry>Описание</entry> - </row> - </thead> - <tbody> - <row> - <entry>1</entry> - <entry>integer</entry> - <entry>Нет</entry> - <entry>80</entry> - <entry>Определяет количество колонок, после которых текст будет переведен - на новую строку.</entry> - </row> - <row> - <entry>2</entry> - <entry>string</entry> - <entry>Нет</entry> - <entry>\n</entry> - <entry>Эта строка используется в качестве символа перевода строки.</entry> - </row> - <row> - <entry>3</entry> - <entry>boolean</entry> - <entry>Нет</entry> - <entry>false</entry> - <entry>Определяет, переводить ли строку в промежутках между словами - (false), или строго на заданой длинне строки (true).</entry> - </row> - </tbody> - </tgroup> - </informaltable> - - <example> - <title>wordwrap</title> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty->assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - </programlisting> - <para> - Шаблон: - </para> - <programlisting> -<![CDATA[ -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br />\n"} - -{$articleTitle|wordwrap:30:"\n":true} -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br /> -from dad she hasn't seen in<br /> -years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. -]]> - </screen> - </example> - <para> - См. также <link linkend="language.modifier.nl2br">nl2br</link> - и - <link linkend="language.function.textformat">{textformat}</link>. - </para> - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-variables.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2715 Maintainer: freespace Status: ready --> -<chapter id="language.variables"> - <title>Переменные</title> - <para> - Smarty имеет несколько различных типов переменных. Он зависит от - символа, с которого начинается, или в какой заключена переменная. - </para> - <para> - Переменные в Smarty могут быть отображены или использованы как - <link linkend="language.syntax.functions">функции</link>, - <link linkend="language.syntax.attributes">аргументы</link>, - <link linkend="language.modifiers">модификаторы</link>, - внутри выражений условных операторов и т.д. Для - вывода значения переменной необходимо указать имя переменной - между <link linkend="variable.left.delimiter">разделителями</link>. - - <example> - <title>Пример использования переменных</title> - <programlisting> -<![CDATA[[ -{$Name} - -{$product.part_no} <b>{$product.description}</b> - -{$Contacts[row].Phone} - -<body bgcolor="{#bgcolor#}"> -]]> - </programlisting> - </example> - <note> - <title>Полезный совет</title> - <para> - При помощи - <link linkend="chapter.debugging.console">отладочной консоли</link> - можно легко просмотреть значения переменных Smarty. - </para> - </note> - </para> - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-variables/language-assigned-variables.xml
Deleted
@@ -1,197 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.assigned.variables"> - <title>Переменные, назначенные из PHP</title> - <para> - К переменным, которые были - <link linkend="api.assign">назначены</link> из PHP можно обратиться, - указав перед их именем знак доллара (<literal>$</literal>). - Переменные, назначенные внутри шаблона при помощи функции - <link linkend="language.function.assign">{assign}</link> - работают таким же образом. - </para> - <example> - <title>Назначенные переменные</title> - <para>PHP-скрипт</para> - <programlisting role="php"> -<![CDATA[ -<?php - -$smarty = new Smarty; - -$smarty->assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - </programlisting> - <para> - Содержимое index.tpl: - </para> - <programlisting> -<![CDATA[ -Hello {$firstname} {$lastname}, glad to see you can make it. -<br /> -{* это не сработает, потому что переменные чувствительны к регистру *} -This weeks meeting is in {$meetingplace}. -{* а это - сработает *} -This weeks meeting is in {$meetingPlace}. -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -Hello Doug Evans, glad to see you can make it. -<br /> -This weeks meeting is in . -This weeks meeting is in New York. -]]> - </screen> - </example> - <sect2 id="language.variables.assoc.arrays"> - <title>Ассоциативные массивы</title> - <para> - Вы можете также обращаться к ассоциативным массивам, которые - назначены из PHP, указав ключ после символа '.' (точка). - </para> - <example> - <title>Обращение к ассоциативному массиву</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Содержимое index.tpl: - </para> - <programlisting> -<![CDATA[ -{$Contacts.fax}<br /> -{$Contacts.email}<br /> -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}<br /> -{$Contacts.phone.cell}<br /> -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.array.indexes"> - <title>Индексы массивов</title> - <para> - Вы можете обращаться к массивам по их индексам примерно так же, - как и в самом PHP. - </para> - <example> - <title>Обращение к массиву по индексу</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Содержимое index.tpl: - </para> - <programlisting> -<![CDATA[ -{$Contacts[0]}<br /> -{$Contacts[1]}<br /> -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}<br /> -{$Contacts[2][1]}<br /> -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -555-222-9876<br /> -zaphod@slartibartfast.example.com<br /> -555-444-3333<br /> -555-111-1234<br /> -]]> - </screen> - </example> - </sect2> - <sect2 id="language.variables.objects"> - <title>Объекты</title> - <para> - К свойствам <link linkend="advanced.features.objects">объектов</link>, - назначенных из PHP, можно обратиться, указав имя свойства после символов - '->'. - </para> - <example> - <title>Обращение к свойствам объекта</title> - <programlisting> -<![CDATA[ -name: {$person->name}<br /> -email: {$person->email}<br /> -]]> - </programlisting> - <para> - Результат обработки: - </para> - <screen> -<![CDATA[ -name: Zaphod Beeblebrox<br /> -email: zaphod@slartibartfast.example.com<br /> -]]> - </screen> - </example> - </sect2> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-variables/language-config-variables.xml
Deleted
@@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.config.variables"> - <title>Переменные файлов конфигурации</title> - <para> - Для использования переменных, полученных из - <link linkend="config.files">конфигурационных файлов</link>, - необходимо заключить их имя между знаками # или через переменную - <link linkend="language.variables.smarty.config">$smarty.config</link>. - Для употребления их в качестве внедренныых переменных можно - использовать только второй способ. - </para> - <example> - <title>Переменные из файлов конфигурации</title> - <para> - foo.conf: - </para> - <programlisting> -<![CDATA[ -pageTitle = "This is mine" -bodyBgColor = "#eeeeee" -tableBorderSize = "3" -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" -]]> - - </programlisting> - - <para> - - index.tpl: - - </para> - - <programlisting> - -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - - </programlisting> - - <para> - - index.tpl: (альтернативный синтаксис) - - </para> - - <programlisting> - -<![CDATA[ -{config_load file="foo.conf"} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> -]]> - - </programlisting> - - <para> - результат выполнения обоих примеров: - - </para> - - <screen> - -<![CDATA[ -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> -<td>First</td> -<td>Last</td> -<td>Address</td> -</tr> -</table> -</body> -</html> -]]> - </screen> - </example> - <para> - Переменные из файлов конфигурации не могут быть использованы, - пока они не будут загружены. Эта процедура описана далее - в данном руководстве (<command>config_load</command>). - </para> - <para> - См. также - <link linkend="language.syntax.variables">Переменные</link> - и - <link linkend="language.variables.smarty">Зарезервированная переменная - $smarty</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/designers/language-variables/language-variables-smarty.xml
Deleted
@@ -1,207 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="language.variables.smarty"> - <title>Зарезервированная переменная {$smarty}</title> - <para> - Зарезервированная переменная {$smarty} может быть использована для получения - доступа к нескольким переменным окружения и запроса. Далее следует их полный - список. - </para> - <sect2 id="language.variables.smarty.request"> - <title>Переменные запроса</title> - <para> - <ulink url="&url.php-manual;reserved.variables">К переменным запроса</ulink>, - таким как $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV и $_SESSION - (см. <link linkend="variable.request.vars.order">$request_vars_order</link> - и <link - linkend="variable.request.use.auto.globals">$request_use_auto_globals</link> - ), можно получить доступ, как показано в следующем примере: - </para> - <example> - <title>Отображение переменных запроса</title> - <programlisting> -<![CDATA[ -{* отображение параметра page из URL ($_GET) http://www.example.com/index.php?page=foo *} -{$smarty.get.page} - -{* отображение параметра "page" из формы ($_POST['page']) *} -{$smarty.post.page} - -{* отображение значения cookie "username" ($_COOKIE['username']) *} -{$smarty.cookies.username} - -{* отображение серверной переменной "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} - -{* отображение переменной системного окружения "PATH" *} -{$smarty.env.PATH} - -{* отображение переменной сессии PHP "id" ($_SESSION['id']) *} -{$smarty.session.id} - -{* отображение переменной "username" из смешенных get/post/cookies/server/env *} -{$smarty.request.username} -]]> - </programlisting> - </example> - <note> - <para> - По историческим соображениям, доступ к переменной {$SCRIPT_NAME} можно - получить непосредственно, хотя предпочтительным способом является обращение - {$smarty.server.SCRIPT_NAME}. - </para> - <programlisting> -<![CDATA[ -<a href="{$SCRIPT_NAME}?page=smarty">click me</a> -<a href="{$smarty.server.SCRIPT_NAME}?page=smarty">click me</a> -]]> - </programlisting> - </note> - </sect2> - <sect2 id="language.variables.smarty.now"> - <title>{$smarty.now}</title> - <para> - Текущая <ulink url="&url.php-manual;function.time">временная метка</ulink> - содержится в переменной {$smarty.now}. Это значение отражает количество - секунд, которые прошли с момента наступления так называемой Эпохи - (1 января 1970 года). Её можно прямо передавать модификатору - <link linkend="language.modifier.date.format">date_format</link> - для отображения текущей даты/времени. Обратите внимание, - что time() вызывается при каджом обращении; к примеру, скрипт, работающий - три секунды и вызывающий $smarty.now в начале и в конце работы, покажет - разницу в три секунды. - </para> - <example> - <title>Использование {$smarty.now}</title> - <programlisting> -<![CDATA[ -{* использование модификатора date_format для отображения текущей даты/времени*} -{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} -]]> - </programlisting> - </example> - </sect2> - <sect2 id="language.variables.smarty.const"> - <title>{$smarty.const}</title> - <para> - Вы можете обращаться к константам PHP напрямую. См. также <link - linkend="smarty.constants">Константы Smarty</link> - </para> - <example> - <title>Использование {$smarty.const} для доступа к константам</title> - <programlisting role="php"> -<![CDATA[ -// константа определена в PHP -define('_MY_CONST_VAL','CHERRIES'); -]]> -</programlisting> -<programlisting> -<![CDATA[ -{* вывод константы PHP в шаблоне *} -{$smarty.const._MY_CONST_VAL} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="language.variables.smarty.capture"> - <title>{$smarty.capture}</title> - <para> - Результат обработки шаблона, сохраненный конструкцией <link - linkend="language.function.capture">{capture}..{/capture}</link>, - доступен при помощи переменной {$smarty.capture}. См. раздел о - <link linkend="language.function.capture">{capture}</link> - для получения примера. - </para> - </sect2> - - <sect2 id="language.variables.smarty.config"> - <title>{$smarty.config}</title> - <para> - Переменная {$smarty} может использоваться для обращения к загруженным <link - linkend="language.config.variables">конфигурационным переменным</link>. - {$smarty.config.foo} является синонимом {#foo#}. См. раздел о - <link linkend="language.function.config.load">{config_load}</link> - для получения примера. - </para> - </sect2> - - <sect2 id="language.variables.smarty.loops"> - <title>{$smarty.section}, {$smarty.foreach}</title> - <para> - Переменную {$smarty} можно использовать для обращения к свойствам циклов - <link linkend="language.function.section">{section}</link> и - <link linkend="language.function.foreach">{foreach}</link>. - Это очень полезные значения вроде .first, .index и т.д. - </para> - </sect2> - - <sect2 id="language.variables.smarty.template"> - <title>{$smarty.template}</title> - <para> - Возвращает имя текущего обрабатываемого шаблона. Этот пример показывает - container.tpl и включенные в него banner.tpl, оба имеют вызов - {$smarty.template} - </para> - <programlisting> -<![CDATA[ -<b>Main container is {$smarty.template}</b> -{include file='banner.tpl} -]]> - </programlisting> - <para> - результат обработки шаблона: - </para> -<programlisting> -<![CDATA[ -<b>Main page if container.tpl</b> -banner.tpl -]]> - </programlisting> - </sect2> - <sect2 id="language.variables.smarty.version"> - <title>{$smarty.version}</title> - <para> - Возвращает версию Smarty, с которой был скомпилирован шаблон. - </para> - <programlisting> -<![CDATA[ -<div id="footer">Powered by Smarty {$smarty.version}</div> -]]> - </programlisting> - </sect2> - <sect2 id="language.variables.smarty.ldelim"> - <title>{$smarty.ldelim}, {$smarty.rdelim}</title> - <para> - Эти переменные используются для отображения левого и правого ограничителей - - так же, как и <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>. - </para> - <para> - См. также - <link linkend="language.syntax.variables">Переменные</link> - и - <link linkend="language.config.variables">Конфигурационные переменные</link> - </para> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/getting-started.xml
Deleted
@@ -1,714 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2726 Maintainer: freespace Status: ready --> -<part id="getting.started"> - <title>Приступая к работе</title> - - <chapter id="what.is.smarty"> - <title>Что такое Smarty?</title> - <para> - Smarty - это компилирующий обработчик шаблонов для PHP. - Говоря более четко, он предоставляет один из инструментов, которые - позволяет добиться отделения прикладной логики и данных от - представления. Это очень удобно в ситуациях, когда программист и - верстальщик шаблона - различные люди. - </para> - - <para> - Например, скажем, вы создаете страницу, которая показывает газетную - статью. - </para> - <itemizedlist> - <listitem> - <para> - Название статьи, автор и сама статья - элементы, которые не - содержат никакой информации о том, как они будут представлены. Их - <link linkend="api.assign">передают</link> - в Smarty из приложения. - </para> - </listitem> - <listitem> - <para> - Затем верстальщик шаблона редактирует - шаблоны и использует комбинацию тэгов HTML и - <link linkend="language.basic.syntax">тэгов шаблона</link>, - чтобы отформатировать представление этих - <link linkend="language.syntax.variables">переменных</link>, - содержащих элементы типа таблиц HTML, фоновых цветов, размеров шрифта, - стилей, SVG и т.д.). - </para> - </listitem> - <listitem> - <para> - Однажды программист захочет изменить способ хранения статьи, то есть - внести изменения в логику приложения. - Это изменение не вызовет изменений в шаблонах. Содержание будет все еще - передаваться в шаблон таким же самым способом. - </para> - </listitem> - <listitem> - <para> - Аналогично, если верстальщик захочет полностью перепроектировать - шаблоны, это не потребует никаких изменений в прикладной логике. - </para> - </listitem> - <listitem> - <para> - Таким образом, программист может вносить изменения в прикладную логику - без необходимости изменения шаблонов, а дизайнер шаблонов может - вносить изменения в шаблоны без вреда для прикладной логики. - </para> - </listitem> - </itemizedlist> - - <para> - Одно из предназначений Smarty - это отделение логики приложения от - представления. - </para> - - <itemizedlist> - <listitem> - <para> - Конечно же, шаблоны могут содержать в себе логику, но - лишь при условии, что эта логика необходима для правильного представления - данных. Такие задачи, как - <link linkend="language.function.include">подключение</link> - других шаблонов, - <link linkend="language.function.cycle">чередующаяся</link> - окраска строчек в таблице, - <link linkend="language.modifier.upper">приведение букв к верхнему - регистру</link>, - <link linkend="language.function.foreach">циклический проход</link> - по массиву для его - <link linkend="api.display">отображения</link> и т.д. - всё это - примеры логики представления. - </para> - </listitem> - <listitem> - <para> - Тем не менее, не следует полагать, что Smarty заставляет вас разделять - прикладную логику и логику представления. - Smarty не видит разницы между этими вещами, так что переносить - прикладную логику в шаблоны вы можете на свой страх и риск. - </para> - </listitem> - <listitem> - <para> - Если же вы считаете, что в шаблоне <emphasis>вообще</emphasis> - не должно быть логики, вы можете ограничиться использованием чистого - текста и переменных. - </para> - </listitem> - </itemizedlist> - - <para> - Одна из уникальных возможностей Smarty - компилирование шаблонов. Это - означает, что Smarty читает файлы шаблонов и создает PHP-код на их основе. - Код создаётся один раз и потом только выполняется. Поэтому нет - необходимости в медленной обработке файл шаблона для каждого запроса. - Каждый шаблон может пользоваться всеми преимуществами таких компиляторов - PHP и кэшируюших решений, как - <ulink url="&url.e-accel;">eAccelerator</ulink>, - <ulink url="&url.ion-accel;">ionCube</ulink>, - <ulink url="&url.mmcache-accel;">mmCache</ulink>, - <ulink url="&url.zend;">Zend Accelerator</ulink> - и прочих. - </para> - <para> - <emphasis role="bold">Некоторые особенности Smarty:</emphasis> - </para> - <itemizedlist> - <listitem> - <para> - Он очень быстр. - </para> - </listitem> - <listitem> - <para> - Он эффективен, так как обработчик PHP делает за него грязную работу. - </para> - </listitem> - <listitem> - <para> - Никакой лишней обработки шаблонов, они компилируются только один раз. - </para> - </listitem> - <listitem> - <para> - <link linkend="variable.compile.check">Перекомпилируются</link> - только те шаблоны, которые изменились. - </para> - </listitem> - <listitem> - <para> - Вы можете легко создавать собственные пользовательские <link - linkend="language.custom.functions">функции</link> и - <link linkend="language.modifiers">модификаторы переменных</link>, - что делает язык шаблонов чрезвычайно расширяемым. - </para> - </listitem> - <listitem> - <para> - Настраиваемые - <link linkend="variable.left.delimiter">{разделители}</link> тэгов - шаблона, то есть вы можете использовать - <literal>{$foo}</literal>, <literal>{{$foo}}</literal>, - <literal><!--{$foo}--></literal> и т.д. - </para> - </listitem> - <listitem> - <para> - Конструкции - <link linkend="language.function.if"> - <literal>{if}..{elseif}..{else}..{/if}</literal></link> - передаются обработчику PHP, так что синтаксис выражения - <literal>{if...}</literal> может быть настолько простым или сложным, - насколько вам угодно. - </para> - </listitem> - <listitem> - <para> - Допустимо неограниченное вложение - <link linkend="language.function.section">секций</link>, - условий и т.д. - </para> - </listitem> - <listitem> - <para> - Существует возможность - <link linkend="language.function.php">включения PHP-кода</link> - прямо в ваш шаблон, однако обычно в этом нет необходимости - (и это не рекоммендуется), так как движок весьма гибок и - <link linkend="plugins">расширяем</link>. - </para> - </listitem> - <listitem> - <para> - Встроенный механизм <link linkend="caching">кэширования</link>. - </para> - </listitem> - <listitem> - <para> - Произвольные источники - <link linkend="template.resources">шаблонов</link>. - </para> - </listitem> - <listitem> - <para> - Пользовательские функции - <link linkend="section.template.cache.handler.func">кэширования</link>. - </para> - </listitem> - <listitem> - <para> - <link linkend="plugins">Компонентная</link> архитектура. - </para> - </listitem> - </itemizedlist> - </chapter> - - - - - - <chapter id="installation"> - <title>Установка</title> - - <sect1 id="installation.requirements"> - <title>Требования</title> - <para> - Для установки и работы Smarty необходим веб-сервер с установленным PHP - версии 4.0.6 или выше. - </para> - </sect1> - <sect1 id="installing.smarty.basic"> - <title>Базовая установка</title> - <para> - Скопируйте файлы Smarty, которые находятся в субдиректории - <filename class="directory">/libs/</filename> - дистрибутива. Редактировать эти PHP-файлы НЕ СЛЕДУЕТ. Они должны - использоваться всеми приложениями и изменяться только при обновлении - Smarty до новой версии. - </para> - <para> - В следующих примерах архив с исходным кодом Smarty был распакован в - <itemizedlist> - <listitem> - <para> - <filename class="directory">/usr/local/lib/Smarty-v.e.r/</filename> - для машин под *nix - </para> - </listitem> - <listitem> - <para> - и - <filename class="directory">c:\webroot\libs\Smarty-v.e.r\</filename> - для машин под Windows. - </para> - </listitem> - </itemizedlist> - </para> - - <example> - <title>Необходимые файлы библиотеки Smarty</title> - <screen> -<![CDATA[ -Smarty-v.e.r/ - libs/ - Smarty.class.php - Smarty_Compiler.class.php - Config_File.class.php - debug.tpl - internals/*.php (все файлы) - plugins/*.php (все файлы) -]]> - </screen> - </example> - <para> - Smarty использует <ulink url="&url.php-manual;define">константу</ulink> PHP - <link linkend="constant.smarty.dir"> - <constant>SMARTY_DIR</constant></link>, которая указывает - <emphasis role="bold">полный путь</emphasis> к директории - <filename>libs/</filename> из Smarty. - Обычно, если ваше приложение может - найти файл <filename>Smarty.class.php</filename>, то нет необходимости - устанавливать - <link linkend="constant.smarty.dir"><constant>SMARTY_DIR</constant></link> - - Smarty сам во всём разберётся. - Однако, если - <filename>Smarty.class.php</filename> не может - быть найден в вашем include_path или вы не указывали абсолютный путь к - нему в приложении, то вы должны определить - <constant>SMARTY_DIR</constant> вручную. - <constant>SMARTY_DIR</constant> <emphasis role="bold">должна включать - завершающий слэш</emphasis>. - </para> - - <informalexample> - <para> - Вот как следует создавать экземпляр объекта Smarty в ваших PHP-скриптах: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// Обратите внимание: в слове Smarty буква 'S' должна быть заглавной -require_once('Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </informalexample> - - <para> - Попробуйте выполнить вышеуказанный код. Если Вы получаете ошибку о том, - что <filename>Smarty.class.php</filename> не найден, попробуйте следующие - варианты действий: - </para> - - <example> - <title>Ручная установка константы SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// стиль *nix (не забывайте о заглавной 'S') -define('SMARTY_DIR', '/usr/local/lib/Smarty-v.e.r/libs/'); - -// стиль windows -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// пример хака для работы одновременно с *nix и windows -// предполагается, что Smarty находится в директории 'includes/' относительно текущего скрипта -define('SMARTY_DIR', str_replace("\\", "/", getcwd()).'/includes/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>Передача абсолютного пути к файлам библиотеки</title> - <programlisting role="php"> -<![CDATA[ -<?php -// стиль *nix (не забывайте о заглавной 'S') -require_once('/usr/local/lib/Smarty-v.e.r/libs/Smarty.class.php'); - -// стиль windows -require_once('c:/webroot/libs/Smarty-v.e.r/libs/Smarty.class.php'); - -$smarty = new Smarty(); -?> -]]> - </programlisting> - </example> - - <example> - <title>Добавление библиотеки в путь в файле <filename>php.ini</filename></title> - <programlisting role="php"> -<![CDATA[ -;;;;;;;;;;;;;;;;;;;;;;;;; -; Paths and Directories ; -;;;;;;;;;;;;;;;;;;;;;;;;; - -; *nix: "/path1:/path2" -include_path = ".:/usr/share/php:/usr/local/lib/Smarty-v.e.r/libs/" - -; Windows: "\path1;\path2" -include_path = ".;c:\php\includes;c:\webroot\libs\Smarty-v.e.r\libs\" -]]> - </programlisting> - </example> - - <example> - <title> - Дописывание include_path из PHP-скрипта используя - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> - </title> - <programlisting role="php"> -<![CDATA[ -<?php -// *nix -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'/usr/local/lib/Smarty-v.e.r/libs/'); - -// windows -ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'c:/webroot/lib/Smarty-v.e.r/libs/'); -?> -]]> - </programlisting> - </example> - - <para> - Теперь, когда все файлы находятся на своих местах, пришло время - установки директорий Smarty в вашем приложении. - </para> - <itemizedlist> - <listitem> - <para> - Smarty нужно четыре директории, которые по умолчанию называются - <filename class="directory">templates/</filename>, - <filename class="directory">templates_c/</filename>, - <filename class="directory">configs/</filename> и - <filename class="directory">cache/</filename> - </para> - </listitem> - <listitem> - <para> - Каждая из них определяется свойствами класса Smarty: - <link linkend="variable.template.dir"> - <varname>$template_dir</varname></link>, - <link linkend="variable.compile.dir"> - <varname>$compile_dir</varname></link>, - <link linkend="variable.config.dir"> - <varname>$config_dir</varname></link> и - <link linkend="variable.cache.dir"> - <varname>$cache_dir</varname></link> соответственно. - Настойчиво рекомендуется использовать разные наборы - этих директорий для каждого приложения, использующего Smarty. - </para> - </listitem> - </itemizedlist> - - <para> - В нашем примере мы будем устанавливать Smarty для некоторой гостевой - книги. Приложение было выбрано только для того, чтобы использовать его - имя в именах директорий. Вы можете использовать те же настройки с любым - другим приложением, просто меняя <literal>guestbook/</literal> - на имя вашего приложения. - </para> - - <example> - <title>Вот как выглядит файловая структура</title> - <screen> -<![CDATA[ -/usr/local/lib/Smarty-v.e.r/libs/ - Smarty.class.php - Smarty_Compiler.class.php - Config_File.class.php - debug.tpl - internals/*.php - plugins/*.php - -/web/www.example.com/ - guestbook/ - templates/ - index.tpl - templates_c/ - configs/ - cache/ - htdocs/ - index.php -]]> - </screen> - </example> - - <para> - Убедитесь, что вы знаете расположение корневой директории документов - вашего веб-сервера. В следующих примерах, корневой директорией документов - является <filename - class="directory">/web/www.example.com/guestbook/htdocs/</filename>. - Доступ к директориям Smarty происходит только из библиотеки Smarty и - никогда не происходит через веб-браузер. Поэтому, в целях безопасности - рекоммендуется располагать эти директории <emphasis>за пределами</emphasis> - корневой директории документов сервера, хотя это и не обязательно. - </para> - <para> - Вам понадобиться как минимум один файл внутри корневой директории - документов - это скрипт, вызываемый веб-браузером. Мы назовем наш скрипт - <filename>index.php</filename> и положим его в поддиректорию внутри - корневой директории документов <filename class="directory">/htdocs/</filename>. - </para> - - <para> - Smarty понадобятся <emphasis role="bold">права на запись</emphasis> - (пользователей Windows это не касается) в директории - <link linkend="variable.compile.dir"> - <parameter>$compile_dir</parameter></link> и - <link linkend="variable.cache.dir"> - <parameter>$cache_dir</parameter></link> - (<filename class="directory">templates_c/</filename> и - <filename class="directory">cache/</filename>), - так что убедитесь, что у веб-сервера есть эти права. - - <note> - <para> - Обычно это пользователь <quote>nobody</quote> и группа - <quote>nobody</quote>. Для пользователей OS X, пользователь по умолчанию - - это <quote>www</quote> и группа - <quote>www</quote>. - Если вы используете Apache, вы можете узнать используемые - имя пользователя и группу из файла <filename>httpd.conf</filename>. - </para> - </note> - </para> - - <example> - <title>Установка прав доступа к файлам и директориям</title> - <programlisting role="shell"> -<![CDATA[ -chown nobody:nobody /web/www.example.com/smarty/guestbook/templates_c/ -chmod 770 /web/www.example.com/smarty/guestbook/templates_c/ - -chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/ -chmod 770 /web/www.example.com/smarty/guestbook/cache/ -]]> - </programlisting> - </example> - - <note> - <title>Примечание</title> - <para> - <literal>chmod 770</literal> даёт достаточно жесткую защиту - - разрешает только пользователю - <quote>nobody</quote> и группе <quote>nobody</quote> доступ - на чтение и запись в эти директории. - Если вы хотите открыть доступ на чтение для всех (обычно для собственного - удобства при просмотре этих файлов), вы можете использовать значение - <literal>775</literal>. - </para> - </note> - - <para> - Нам необходимо создать файл <filename>index.tpl</filename>, - которы будет загружаться Smarty. - Он будет расположен в - <link linkend="variable.template.dir"> - <parameter>$template_dir</parameter></link>. - </para> - - <example> - <title>/web/www.example.com/guestbook/templates/index.tpl</title> - <screen> -<![CDATA[ -{* Smarty *} - -Привет, {$name}! Добро пожаловать в Smarty! -]]> - </screen> - </example> - - <note> - <title>Техническое замечание</title> - <para> - <literal>{* Smarty *}</literal> - это - <link linkend="language.syntax.comments">комментарий</link> шаблона. - Он не является обязательным, но его размещение в начале каждого шаблона - является хорошим тоном. Это позволяет проще различать файлы независимо - от их расширения. К примеру, текстовые редакторы могут узнавать этот - файл и включать особенную подсветку синтаксиса. - </para> - </note> - - <para> - Теперь давайте отредактируем <filename>index.php</filename>. - Мы создадим экземпляр Smarty, - <link linkend="api.assign">присвоим</link> значение переменной шаблона и - <link linkend="api.display">отобразим</link> файл - <filename>index.tpl</filename>. - </para> - - <example> - <title>/web/www.example.com/docs/guestbook/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require_once(SMARTY_DIR . 'Smarty.class.php'); - -$smarty = new Smarty(); - -$smarty->template_dir = '/web/www.example.com/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/guestbook/cache/'; - -$smarty->assign('name', 'Катруська'); - -//** раскомментируйте следующую строку для отображения отладочной консоли -//$smarty->debugging = true; - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <note> - <title>Примечание</title> - <para> - В нашем примере мы устанавливаем абсолютные пути ко всем директориям - Smarty. Если <filename - class="directory">/web/www.example.com/guestbook/</filename> - находится в include_path вашего PHP, то эти настройки не обязательны. - Тем не менее, более эффективным и (из опыта) менее глюкоопасным является - использование абсолютных путей. Это придаст уверенность в том, что Smarty - получает файлы из тех директорий, из которых вы хотите. - </para> - </note> - - <para> - Теперь перейдите к файлу <filename>index.php</filename> при помощи вашего - веб-браузера. Вы должны увидеть надпись - <emphasis>"Привет, Катруська! Добро пожаловать в Smarty!"</emphasis> - </para> - <para> - Вы закончили базовую установку Smarty! - </para> - </sect1> - <sect1 id="installing.smarty.extended"> - <title>Расширенная установка</title> - - <para> - Эта глава является продолжением <link - linkend="installing.smarty.basic">базовой установки</link>; пожалуйста, - сперва прочитайте её. - </para> - <para> - Немного более гибким способом установки Smarty является - <ulink url="&url.php-manual;ref.classobj">наследование класса</ulink> - и инициализация вашего собственного окружения Smarty. Таким образом, вместо - того, чтобы постоянно устанавливать пути директорий, присваивать одни и те - же переменные и т.д., мы можем всё это сделать в одном месте. - </para> - <para> - Давайте создадим новую директорию <filename - class="directory">/php/includes/guestbook/</filename>,а в ней - - новый файл, который назовем <filename>setup.php</filename>. По условиям - нашего примера, <filename class="directory">/php/includes</filename> - находится в <literal>include_path</literal>. Убедитесь, чтобы - то же самое было и у вас, или используетй абсолютные пути. - </para> - - <example> - <title>/php/includes/guestbook/setup.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// загружаем библиотеку Smarty -require('Smarty.class.php'); - -// Файл setup.php - это хорошее место для -// подключения библиотечных файлов вашего приложения, -// вы можете сделать это прямо здесь. Пример: -// require('guestbook/guestbook.lib.php'); - -class Smarty_GuestBook extends Smarty { - - function Smarty_GuestBook() - { - - // Конструктор класса. - // Он автоматически вызывается при создании нового экземпляра. - - $this->Smarty(); - - $this->template_dir = '/web/www.example.com/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - </programlisting> - </example> - - <para> - Теперь давайте изменим <filename>index.php</filename>, - чтобы он использовал <filename>setup.php</filename>: - </para> - - <example> - <title>/web/www.example.com/guestbook/htdocs/index.php</title> - <programlisting role="php"> -<![CDATA[ -<?php - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook(); - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - - <para> - Теперь вы видите, что создать экземпляр Smarty довольно просто - нужно лишь - использовать <literal>Smarty_GuestBook</literal>, который автоматически - инициализирует все настройки для нашего приложения. - </para> - - </sect1> - - </chapter> -</part> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/language-defs.ent
Deleted
@@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1602 Maintainer: freespace Status: ready --> - -<!ENTITY SMARTYManual "Руководство по Smarty"> -<!ENTITY SMARTYDesigners "Smarty для дизайнеров шаблонов"> -<!ENTITY SMARTYProgrammers "Smarty для программистов"> -<!ENTITY Appendixes "Приложения">
View file
Smarty-3.1.13.tar.gz/documentation/ru/language-snippets.ent
Deleted
@@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2723 Maintainer: freespace Status: ready --> - -<!ENTITY note.parameter.merge '<note> - <title>Техническое замечание</title> - <para> - Пераметр <parameter>merge</parameter> учитывает ключи массива, - поэтому если вы объединяете массивы с числовыми индексами, то они могут - наложиться друг на друга или привести к непоследовательному порядку ключей. - Результат отличается от действия функции PHP - <ulink url="&url.php-manual;array_merge"><varname>array_merge()</varname></ulink>, - которая заново нумерует элементы в массиве с числовоми ключами. - </para> -</note>'> - -<!ENTITY note.parameter.function '<note> - <title>Техническое замечание</title> - <para> - Если значение параметра <parameter>function</parameter> указано в виде - <literal>array(&$object, $method)</literal>, только один экземпляр - данного класса с данным методом <literal>$method</literal> может быть зарегистрирован. - В таком случае, в силу вступает последний зарегистрированный параметр - <parameter>function</parameter>. - </para> -</note>'> - -<!ENTITY parameter.compileid '<para> - В качестве необязательного третьего аргумента вы можете передать - <parameter>$compile_id</parameter>. - Это полезно в случае, если вы хотите - скомпилировать несколько различных версий одного шаблона, например - несколько версий одного шаблона на разных языках. - Другое применение - <parameter>$compile_id</parameter> можно найти, - если вы используете несколько - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>, - но только одну - <link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>. - Устанавливайте свой <parameter>compile_id</parameter> для каждой - <link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>, - иначе шаблоны с одинаковыми именами будут сохраняться поверх друг друга. - Также вы можете один раз указать - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>, - вместо того, чтобы каждый раз передавать его при вызове этой функции. -</para>'> - -<!ENTITY api.register.snippet '<para> - Callback-функция PHP может быть: - <itemizedlist> - <listitem> - <para> - Либо строкой, содержащей имя функции. - </para> - </listitem> - <listitem> - <para> - Либо массивом вида <literal>array(&$object, $method)</literal>, - где <literal>&$object</literal> - ссылка на объек, а - <literal>$method</literal> - строка, содержащая имя метода. - </para> - </listitem> - <listitem> - <para> - Либо массивом вида <literal>array($class, $method)</literal>, - где <literal>$class</literal> - строка, содержащая имя класса, а - <literal>$method</literal> - строка, содержащая имя метода этого класса. - </para> - </listitem> - </itemizedlist> -</para>'>
View file
Smarty-3.1.13.tar.gz/documentation/ru/livedocs.ent
Deleted
@@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2033 Maintainer: freespace Status: ready --> - -<!ENTITY livedocs.author 'Авторы:<br />'> -<!ENTITY livedocs.editors 'Редакторы:<br />'> -<!ENTITY livedocs.copyright 'Авторское право © %s by %s'> -<!ENTITY livedocs.published 'Опубликовано: %s'>
View file
Smarty-3.1.13.tar.gz/documentation/ru/make_chm_index.html
Deleted
@@ -1,39 +0,0 @@ -<HTML> -<!-- EN-Revision: 2138 Maintainer: freespace Status: ready --> -<!-- $Revision: 2761 $ --> -<HEAD> - <TITLE>Руководство Smarty</TITLE> - <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=UTF-8"> - <LINK REL="STYLESHEET" HREF="style.css"> -</HEAD> -<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> -<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> -<TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" -CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">Руководство Smarty</TH></TR><TR><TD -COLSPAN="3" ALIGN="center"> </TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> -<TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> - -<P><TABLE ALIGN="CENTER"> -<TR><TD ALIGN="CENTER"> -<H1 CLASS="title">Руководство Smarty</H1> -<DIV CLASS="author">Monte Ohrt</DIV> -<DIV CLASS="author">Andrei Zmievski</DIV> -<DIV CLASS="author">Sergei Suslenkov</DIV> -<DIV CLASS="author">George Miroshnikov</DIV> -</TD></TR></TABLE> -<BR><P ALIGN="CENTER">Этот файл был сгенерирован: [GENTIME]<BR> -Свежая версия этого руководства доступна по адресу -<A HREF="http://www.smarty.net/download-docs.php">http://www.smarty.net/download-docs.php</A>.</P> - -<BR><P CLASS="copyright" ALIGN="CENTER">Copyright © 2001 - 2005 New Digital Group, Inc.</P> - -</TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> -<TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" -CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> -<TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> -<TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> -<TR><TD COLSPAN="3"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD> -</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> -</BODY></HTML>
View file
Smarty-3.1.13.tar.gz/documentation/ru/preface.xml
Deleted
@@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2215 Maintainer: freespace Status: ready --> - <preface id="preface"> - <title>Предисловие</title> - <para> - Несомненно, один из наиболее часто задаваемых вопросов в списках - рассылки PHP - "Как мне сделать свои PHP-скрипты независимыми - от дизайна?". Хотя PHP называют "скриптовым языком, встраиваемым - в HTML", после написания нескольких проектов, в которых PHP и HTML - свободно перемешиваются, многие понимают, что отделение формы от - содержания - это Хорошая Вещь [TM]. Кроме того, во многих компаниях - должности дизайнера и программиста разделены между собой. Так - начинается поиск обработчика шаблонов... - </para> - <para> - Например, в нашей компании разработка приложения идёт таким образом: - после того, как готова вся проектная документация, дизайнер интерфейса - создаёт макеты и передаёт их программисту. Программист реализовывает - логику приложения на PHP и использует макеты интерфейса для создания - базовых шаблонов. Затем проект передаётся HTML-дизайнеру/верстальщику, - который доводит шаблоны до совершенства. Проект может несколько раз - переходить из этапа HTML-вёрстки к этапу программирования и обратно. - Таким образом, важно иметь хорошую поддержку шаблонов, потому что - программисты не хотят иметь дела с HTML и не хотят, чтобы HTML-дизайнеры - копались в PHP-коде. Дизайнерам нужна поддержка конфигурационных - файлов, динамических блоков и прочих интерфейсных нюансов, но они не - хотят иметь дела со сложностями языка программирования PHP. - </para> - <para> - Глядя на множество обработчиков шаблонов, доступных сегодня для PHP, - большинство из них предоставляет базовые возможности подстановки - переменных в шаблоны и имеет ограниченную поддержку динамических блоков. - Но нам требовалось нечто большее. Мы хотели, чтобы программисты - ВООБЩЕ не имели дела с HTML, но это было практически неизбежно. - К примеру, если дизайнер хотел, чтобы два фоновых цвета чередовались - при отображении динамических блоков, эту задачу необходимо было решать - вместе с программистом. Нам также требовалось, чтобы дизайнеры могли - использовать собственные конфигурационные файлы и вставлять переменные - из этих файлов в шаблоны. И так далее. - </para> - <para> - Мы начали написание спецификации для обработчика шаблонов ещё в - 1999 году. Когда мы закончили спецификацию, мы начали работать - над обработчиком шаблонов, написанным на Си, которому, как мы надеялись, - разрешат стать частью PHP. Мы не только наткнулись на множество - технических барьеров, но было и большое количество споров относительно - того, что должен и не должен делать обработчик шаблонов. Благодаря этому - опыту мы решили, что обработчик шаблонов должен быть написан на PHP - в виде класса, чтобы каждый мог использовать его так, как хочет. - Затем мы написали движок, который соответствовал этим требованиям - и <productname>SmartTemplate</productname> появился на свет - (примечание: этот класс никогда не был опубликован). - Это был класс, который делал практически всё, что нам требовалось: - обыкновенная подстановка переменных, поддержка подключения других - шаблонов, интеграция с конфигурационными файлами, встраивание - PHP-кода, ограниченная поддержка условий 'if' и улучшенная - поддержка вложенных динамических блоков. Всё это достигалось - использованием регулярных выражений и в итоге у нас получился код, - который, скажем так, не позволял вносить в себя какие-либо изменения. - Кроме того, он прилично тормозил в крупных приложениях из-за большого - количества парсинга и регулярных выражений, которые обрабатывались - при каждом запросе. Наибольшей проблемой с программистской точки - зрения была та работа, которую нужно было провести над PHP-скриптом - для настройки и обработки шаблонов и динамических блоков. - Как же мы можем упростить это? - </para> - <para> - Затем пришло видение того, что в последствии переросло в Smarty. - Мы знали, как быстр PHP-код, если его не перегружать обработкой шаблонов. - Мы также знали, как всеобъемлюще и непонятно может выглядить язык PHP - для среднестатистического дизайнера, и что это можно замаскировать - при помощи более простого синтаксиса шаблонов. А почему бы нам - не объединить две эти силы? Так и родился Smarty... :-) - </para> - </preface> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1672 Maintainer: freespace Status: ready --> -<chapter id="advanced.features"> - <title>Расширенные возможности</title> - &programmers.advanced-features.advanced-features-objects; - &programmers.advanced-features.advanced-features-prefilters; - &programmers.advanced-features.advanced-features-postfilters; - &programmers.advanced-features.advanced-features-outputfilters; - &programmers.advanced-features.section-template-cache-handler-func; - &programmers.advanced-features.template-resources; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features/advanced-features-objects.xml
Deleted
@@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="advanced.features.objects"> - <title>Объекты</title> - <para> - Smarty позволяет использовать в шаблонах - <ulink url="&url.php-manual;object">объекты</ulink> PHP. - Существуют два способа их вызова. Первый - - <link linkend="api.register.object">зарегистрировать объект</link> для - шаблона, затем вызвать его примерно так же, как и - <link linkend="language.custom.functions">пользовательские функции</link>. - Второй - <link linkend="api.assign">назначить</link> объект шаблону и использовать его, - как любую другую присвоенную переменную. Первый метод гораздо аккуратнее - и безопаснее, так как у зарегистрированного объекта можно ограничить - свойства и методы. Но, в тоже время, <emphasis role="bold">зарегистрированный объект - нельзя использовать в циклах, нельзя помещать в массив объектов</emphasis>, - и так далее. Выбор способа за вами, но используйте по - возможности первый, чтобы максимально упростить синтаксис шаблона. - </para> - <para> - В <link linkend="variable.security">безопасном режиме</link> - недоступны приватные методы и функции (имена которых начинаются с "_"). - Если существует и метод, и свойство с одинаковыми именами, - то будет использован метод. - </para> - <para> - Вы можете ограничить использование объекта только некоторыми - методами и свойствами. Для этого перечислите их в массиве и укажите - этот массив третьим параметром при регистрации объекта. - </para> - <para> - По умолчанию, параметры из шаблона передаются объекту точно так же, - как и - <link linkend="language.custom.functions">пользовательской функции</link>. - Первым параметром передаётся - ассоциативный массив, вторым - объект Smarty. Если вы хотите передавать - параметры по одному, как при традиционном обращении с объектами, установите - четвёртый параметр вызова в false. - </para> - <para> - Необязательный пятый параметр вступает в силу только в том случае, если - свойство <parameter>format</parameter> равно <literal>true</literal>. - Он содержит список методов, которые должны обрабатываться как блоки. - Это означает, что в шаблоне у методы будут иметь закрывающие тэги - (<literal>{foobar->meth2}...{/foobar->meth2}</literal>) и параметры - методов будут иметь такие же синопсисы, как и параметры для - <link linkend="plugins.block.functions">block-function-plugins</link>: - <parameter>$params</parameter>, - <parameter>$content</parameter>, - <parameter>&$smarty</parameter> - и - <parameter>&$repeat</parameter>. Кроме того, они ведут себя так же, как и - block-function-plugins. - </para> - <example> - <title>использование зарегистрированного или присвоенного объекта</title> - <programlisting role="php"> -<![CDATA[ -<?php -// сам объект - -class My_Object { - function meth1($params, &$smarty_obj) { - return 'this is my meth1'; - } -} - -$myobj = new My_Object; -// регистрация объекта (по ссылке) -$smarty->register_object('foobar',$myobj); -// если мы хотим ограничить доступ к определенным методам или свойствам, перечисляем их -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); -// если мы хотим использовать традиционный формат параметров объекта, передаем false -$smarty->register_object('foobar',$myobj,null,false); - -// Мы так же можем назначать объекты. Назначение идёт по ссылке, если это возможно. -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - А вот так можно получить доступ к объекту в index.tpl: - </para> - <programlisting> -<![CDATA[ -{* обращаемся к нашему зарегистрированному объекту *} -{foobar->meth1 p1='foo' p2=$bar} - -{* вывод объекта можно сохранить в переменную *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* обращаемся к нашему назначенному объекту *} -{$myobj->meth1('foo',$bar)} -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.register.object">register_object()</link> - и - <link linkend="api.assign">assign()</link> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features/advanced-features-outputfilters.xml
Deleted
@@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="advanced.features.outputfilters"> - <title>Фильтры вывода</title> - <para> - Когда шаблон выводится через - <link linkend="api.display">display()</link> или - <link linkend="api.fetch">fetch()</link>, результат может быть - пропущен через один или несколько фильтров вывода. Отличие их от - <link linkend="advanced.features.postfilters">постфильтров</link> - состоит в том, что постфильтры действуют на уже скомпилированный - шаблон, перед его записью на диск, в то время как фильтры вывода обрабатывают - шаблон в момент его исполнения. - </para> - - <para> - Фильтры вывода могут быть или - <link linkend="api.register.outputfilter">зарегистрированы</link> или - загружены из - <link linkend="variable.plugins.dir">папки плагинов</link> - с помощью - функции <link linkend="api.load.filter">load_filter()</link>, или - с помощью установки переменной - <link linkend="variable.autoload.filters">$autoload_filters</link>. - Smarty передаёт фильтру результат обработки шаблона в качестве первого - аргумента и предполагает, что функция вернёт результат своей работы. - </para> - <example> - <title>Использование фильтра вывода</title> - <programlisting role="php"> -<![CDATA[ -<?php -// код в вашем скрипте -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// регистрация фильтра вывода -$smarty->register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// теперь все адреса электронной почты в выводе шаблона будут -// обработаны несложной функцией защиты от спам-ботов -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.register.outputfilter">register_outpurfilter()</link>, - <link linkend="api.load.filter">load_filter()</link>, - <link linkend="variable.autoload.filters">$autoload_filters</link>, - <link linkend="advanced.features.postfilters">постфильтрі</link> - и - <link linkend="variable.plugins.dir">$plugins_dir</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features/advanced-features-postfilters.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="advanced.features.postfilters"> - <title>Постфильтры</title> - <para> - Постфильтры шаблона - это функции PHP, которые обрабатывают шаблон после его - компиляции. Постфильтры могут быть или - <link linkend="api.register.postfilter">зарегистрированы</link> - или загружены из - <link linkend="variable.plugins.dir">директории плагинов</link> - при помощи функции - <link linkend="api.load.filter">load_filter()</link>, или - с помощью установки переменной - <link linkend="variable.autoload.filters">$autoload_filters</link>. - Smarty передаёт фильтру скомпилированный код шаблона в качестве первого - аргумента и предполагает, что функция вернёт результат своей работы. - </para> - <example> - <title>использование постфильтра</title> - <programlisting role="php"> -<![CDATA[ -<?php -// код в вашем скрипте -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Создано при помощи Smarty! -->;\n\"; ?>\n".$tpl_source; -} - -// регистрация постфильтра -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Теперь скомпилированный шаблон Smarty index.tpl выглядит так: - </para> - <screen> -<![CDATA[ -<!-- Создано при помощи Smarty! --> -{* остальной код шаблона... *} -]]> - </screen> - </example> - <para> - См. также - <link linkend="api.register.postfilter">register_postfilter()</link>, - <link linkend="advanced.features.prefilters">префильтры</link> - и - <link linkend="api.load.filter">load_filter()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features/advanced-features-prefilters.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="advanced.features.prefilters"> - <title>Префильтры</title> - <para> - Префильтры шаблона - это функции PHP, которые обрабатывают шаблон перед его - компиляцией. Это удобно для удаления лишних комментариев и прочих ненужных - после компиляции данных. - </para> - <para> - Префильтры могут быть или - <link linkend="api.register.prefilter">заргистрированы</link> - или загружены из - <link linkend="variable.plugins.dir">директории плагинов</link> - с помощью функции - <link linkend="api.load.filter">load_filter()</link> или - с помощью установки переменной - <link linkend="variable.autoload.filters">$autoload_filters</link>. - </para> - <para> - Smarty передаёт фильтру исходный код шаблона в качестве первого аргумента - и предполагает, что функция вернёт результат своей работы. - </para> - <example> - <title>использование префильтра</title> - <para> - Этот пример удалит все комментарии из исходного текста шаблона. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -// код в вашем скрипте -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace('/<!--#.*-->/U','',$tpl_source); -} - -// регистрация префильтра -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.register.prefilter">register_prefilter()</link>, - <link linkend="advanced.features.postfilters">постфильтры</link> - и - <link linkend="api.load.filter">load_filter()</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features/section-template-cache-handler-func.xml
Deleted
@@ -1,159 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="section.template.cache.handler.func"> - <title>Управление кэшированием</title> - <para> - Вместо стандартного механизма кэширования, использующего файлы, - вы можете использовать свои функции для чтения, записи и очистки кэшированных шаблонов. - </para> - <para> - Добавьте в ваше приложение функцию, которую Smarty сможет использовать для - управления кэшем. Укажите её имя в переменной класса - <link linkend="variable.cache.handler.func">$cache_handler_func</link>. - Теперь Smarty будет использовать её для операций с кэшированным содержимым. - Первый параметр вашей функции - действие, принимает значения - 'read', 'write' или 'clear' (соответственно, 'прочитать', 'записать' - или 'очистить'). Вторым параметром передаётся объект smarty. Третьим - данные для - кэширования. - Третий параметр используется только при чтении и записи. При записи Smarty передаёт - через него кэшированный контент. При чтении предполагается, что через него - передаётся ссылка на переменную, в которую контент будет загружен. - При очистке значение третьего параметра не обрабатывается. - Четвёртый параметр - имя файла с шаблоном (используется при чтении/записи), - пятый - идентификатор кэша (опционально), шестой - идентификатор компиляции (опционально, - используется для построения разных кэшей для одного шаблона), - седьмой - срок годности кэша (опционально). - - Примечание: последний параметр ($exp_time) добавлен в Smarty 2.6.0. - </para> - <example> - <title>Применение MySQL в качестве хранилища кэшированных данных</title> - <programlisting> -<![CDATA[ -<?php -/* - -пример использования: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -код для MySQL таблицы: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // параметры подключения к базе данных - хост, логин, пароль, название базы - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - // установите в true для использования gzip компрессии кэшированных данных - $use_gzip = false; - - // создаём уникальный идентификатор кэша - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg('cache_handler: не могу подключиться к базе данных'); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // чтение кэша из базы - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: ошибка запроса.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // сохранение кэша в базе - - if($use_gzip && function_exists("gzcompress")) { - // сжимаем контент чтобы сэкономить место - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: ошибка запроса.'); - } - $return = $results; - break; - case 'clear': - // очистка кэша - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // clear them all - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query('delete from CACHE_PAGES where CacheID="'.$CacheID.'"'); - } - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: ошибка запроса.'); - } - $return = $results; - break; - default: - // ошибка, указан неизвестный метод - $smarty_obj->_trigger_error_msg('cache_handler: неизвестный метод "'.$action.'"'); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]></programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/advanced-features/template-resources.xml
Deleted
@@ -1,254 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="template.resources"> - <title>Ресурсы</title> - <para> - Шаблоны можно получать из самых разных источников. Когда вы - <link linkend="api.display">отображаете</link> или - <link linkend="api.fetch">вызываете</link> шаблон, - либо когда вы подключаете один шаблон к другому, вы указываете тип ресурса, - вместе с соответствующим путём и названием шаблона. - Если тип ресурса явно не задан, используется значения свойства - <link linkend="variable.default.resource.type">$default_resource_type</link>. - </para> - - <sect2 id="templates.from.template.dir"> - <title>Шаблоны из папки $template_dir</title> - <para> - Шаблоны, которые находятся в папке - <link linkend="variable.template.dir">$template_dir</link>, - не требуют при вызове указания - типа ресурса, хотя вы можете использовать префикс file: для сохранения - стиля. Для вызова просто укажите относительный от - <link linkend="variable.template.dir">$template_dir</link> - путь к шаблону. - </para> - <example> - <title>Вызов шаблона из папки $template_dir</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('index.tpl'); -$smarty->display('admin/menu.tpl'); -$smarty->display('file:admin/menu.tpl'); // тоже самое, что и строкой выше -?> - -{* код в шаблоне Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* тоже самое, что и строкой выше *} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="templates.from.any.dir"> - <title>Шаблоны из произвольной папки</title> - <para> - Для вызова шаблонов из папки вне - <link linkend="variable.template.dir">$template_dir</link> - необходимо использовать префикс file: с последующим указанием асболютного - пути и имени шаблона. - </para> - <example> - <title>Вызов шаблона из произвольной папки</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - А изнутри шаблона Smarty: - </para> - <programlisting> -<![CDATA[ -{include file="file:/usr/local/share/templates/navigation.tpl"} -]]> - </programlisting> - </example> - - <sect3 id="templates.windows.filepath"> - <title>Файловые пути в Windows</title> - <para> - Если вы работаете под Windows, то пути к файлам, как правило, - начинаются с буквы логического диска (например, C:). Не забудьте - указать префикс "file:" в начале пути, чтобы избежать конфликтов - имён и достичь необходимого результата. - </para> - <example> - <title>использование шаблонов с файловіми путями Windows</title> - <programlisting role="php"> -<![CDATA[ -<?php -// PHP скрипт -$smarty->display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - </programlisting> - <para> - А изнутри шаблона Smarty: - </para> - <programlisting> -<![CDATA[ -{include file="file:D:/usr/local/share/templates/navigation.tpl"} -]]> - </programlisting> - </example> - </sect3> - </sect2> - - <sect2 id="templates.from.elsewhere"> - <title>Шаблоны из прочих источников</title> - <para> - Вы можете вызывать шаблоны, используя любые доступные через PHP источники: - базы данных, сокеты, LDAP и так далее. - Для этого нужно написать соответствующий плагин ресурса и зарегистрировать - его в Smarty. - </para> - - <para> - Смотрите раздел <link linkend="plugins.resources">плагины ресурсов</link> - для более подробной информации о тех функциях, которые вы должны - предоставить. - </para> - - <note> - <para> - Обратите внимание на то, что вы не можете переопределить встроенный ресурс - <literal>file</literal>, но в ваших силах написать и зарегистрировать ресурс с - другим именем, который будет использовать другой способ вызова шаблонов из - файловой системы. - </para> - </note> - <example> - <title>Использование собственных ресурсов</title> - <programlisting role="php"> -<![CDATA[ -// код в вашем скрипте -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // обращаемся к базе, запрашиваем код шаблона, - // перегружаем его в $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // обращаемся к базе, запрашиваем поле $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // предполагаем, что наши шаблоны совершенно безопасны - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // не используется для шаблонов -} - -// регистрируем ресурс под именем "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// используем ресурс из PHP скрипта -$smarty->display("db:index.tpl"); -?> -]]> - </programlisting> - <para> - А изнутри шаблона Smarty: - </para> - <programlisting> -<![CDATA[ -{include file="db:/extras/navigation.tpl"} -]]> - </programlisting> - </example> - </sect2> - - <sect2 id="default.template.handler.function"> - <title>Функция для обработки шаблона по умолчанию</title> - <para> - Вы можете определить функцию, которая будет использована, - если шаблон не может быть вызван из соответствующего ресурса. - Это можно использовать, к примеру, для построения недостающего - шаблона на лету. - </para> - <example> - <title>использование функции для обработки шаблона по умолчанию</title> - <programlisting role="php"> -<![CDATA[ -<?php -// код в вашем скрипте - -function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) -{ - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - // создаём и записываем файл шаблона. - $template_source = "Это новый шаблон."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // не файл - return false; - } -} - -// определение обработчика -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - </programlisting> - </example> - </sect2> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2215 Maintainer: freespace Status: ready --> -<chapter id="api.functions"> - <title>Методы класса Smarty</title> - &programmers.api-functions.api-append; - &programmers.api-functions.api-append-by-ref; - &programmers.api-functions.api-assign; - &programmers.api-functions.api-assign-by-ref; - &programmers.api-functions.api-clear-all-assign; - &programmers.api-functions.api-clear-all-cache; - &programmers.api-functions.api-clear-assign; - &programmers.api-functions.api-clear-cache; - &programmers.api-functions.api-clear-compiled-tpl; - &programmers.api-functions.api-clear-config; - &programmers.api-functions.api-config-load; - &programmers.api-functions.api-display; - &programmers.api-functions.api-fetch; - &programmers.api-functions.api-get-config-vars; - &programmers.api-functions.api-get-registered-object; - &programmers.api-functions.api-get-template-vars; - &programmers.api-functions.api-is-cached; - &programmers.api-functions.api-load-filter; - &programmers.api-functions.api-register-block; - &programmers.api-functions.api-register-compiler-function; - &programmers.api-functions.api-register-function; - &programmers.api-functions.api-register-modifier; - &programmers.api-functions.api-register-object; - &programmers.api-functions.api-register-outputfilter; - &programmers.api-functions.api-register-postfilter; - &programmers.api-functions.api-register-prefilter; - &programmers.api-functions.api-register-resource; - &programmers.api-functions.api-trigger-error; - - &programmers.api-functions.api-template-exists; - &programmers.api-functions.api-unregister-block; - &programmers.api-functions.api-unregister-compiler-function; - &programmers.api-functions.api-unregister-function; - &programmers.api-functions.api-unregister-modifier; - &programmers.api-functions.api-unregister-object; - &programmers.api-functions.api-unregister-outputfilter; - &programmers.api-functions.api-unregister-postfilter; - &programmers.api-functions.api-unregister-prefilter; - &programmers.api-functions.api-unregister-resource; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-append-by-ref.xml
Deleted
@@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.append.by.ref"> - <refnamediv> - <refname>append_by_ref()</refname> - <refpurpose>добавляет значение по ссылке</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Используется для <link linkend="api.append">добавления</link> значений - в шаблон по ссылке. Если вы добавляете значение переменной по ссылке и это - значение изменяется в шаблоне, эти изменения будут отражены в начальной - переменной. Для <link linkend="advanced.features.objects">объектов</link>, - append_by_ref() также позволяет избежать внутреннего копирования добавляемого - объекта. - См. руководство PHP для более подробного описания работы передачи переменных - по ссылкам. - Если вы укажете необязательный третий аргумент, равный true, значение будет - совмещено с существующим массивом, вместо добавления. - </para> - ¬e.parameter.merge; - <example> - <title>append_by_ref</title> - <programlisting role="php"> -<![CDATA[ -<?php -// добавление пар ключ / значение -$smarty->append_by_ref('Name', $myname); -$smarty->append_by_ref('Address', $address); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.append">append()</link> - и - <link linkend="api.assign">assign()</link>. - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-append.xml
Deleted
@@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.append"> - <refnamediv> - <refname>append()</refname> - <refpurpose>добавляет элемент к назначенному массиву</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Если вы добавляете значение к строковому значению, последнее будет - предварительно преобразовано в массив. Вы можете явно передавать пары - ключей / значений, либо ассоциативный массив, содержащий пары - ключей / значений. - Если вы укажете необязательный третий аргумент, равный true, значение будет - совмещено с существующим массивом, вместо добавления. - </para> - ¬e.parameter.merge; - <example> - <title>append</title> - <programlisting role="php"> -<![CDATA[ -<?php -// передаем пары ключ / значение -$smarty->append("Name", "Fred"); -$smarty->append("Address", $address); - -// передаем ассоциативный массив -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - </programlisting> - </example> - <para>См. также - <link linkend="api.append.by.ref">append_by_ref()</link>, - <link linkend="api.assign">assign()</link> - и - <link linkend="api.get.template.vars">get_template_vars()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-assign-by-ref.xml
Deleted
@@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.assign.by.ref"> - <refnamediv> - <refname>assign_by_ref()</refname> - <refpurpose>назначает переменную по ссылке</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Используется для <link linkend="api.assign">назначения</link> переменных - шаблонуу по ссылке, вместо создания копии. - См. руководство PHP для более подробного описания работы передачи переменных - по ссылкам. - </para> - <note> - <title>Техническое Замечание</title> - <para> - Эта функция используется для назначения переменных шаблону по ссылке. - Если вы назначаете переменную по ссылке и значение этой переменной - изменяется в шаблоне, эти изменения будут отражены в начальной переменной. - Для <link linkend="advanced.features.objects">объектов</link>, - assign_by_ref() также позволяет избежать внутреннего копирования добавляемого - объекта. - См. руководство PHP для более подробного описания работы передачи переменных - по ссылкам. - </para> - </note> - <example> - <title>assign_by_ref()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// передача пар ключ / значение -$smarty->assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.assign">assign()</link>, - <link linkend="api.clear.all.assign">clear_all_assign()</link>, - <link linkend="api.append">append()</link> - и - <link linkend="language.function.assign">{assign}</link> - </para> - - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-assign.xml
Deleted
@@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.assign"> - <refnamediv> - <refname>assign()</refname> - <refpurpose>назначает значение шаблону</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Вы можете явно передавать пары ключей / значений, либо ассоциативный - массив, содержащий пары ключей / значений. - </para> - <example> - <title>assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// назначение пар ключ / значение -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// передача ассоциативного массива -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// передача строки из базы данных (напр. ADODB) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - </programlisting> - <para> - Обращаемся к переменным из шаблона - </para> - <programlisting> -<![CDATA[ -{* переменные чувствительны к регистру, как и в PHP *} -{$Name} -{$Address} -{$city} -{$state} - -{$contact.id}, {$contact.name},{$contact.email} -]]> - </programlisting> - </example> - <para> - Для более сложных назначений массивов см. - <link linkend="language.function.foreach">{foreach}</link> - и - <link linkend="language.function.section">{section}</link> - </para> - - <para> - См. также - <link linkend="api.assign.by.ref">assign_by_ref()</link>, - <link linkend="api.get.template.vars">get_template_vars()</link>, - <link linkend="api.clear.assign">clear_assign()</link>, - <link linkend="api.append">append()</link> - и - <link linkend="language.function.assign">{assign}</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-clear-all-assign.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.clear.all.assign"> - <refnamediv> - <refname>clear_all_assign()</refname> - <refpurpose>очищает список назначенных переменных</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <example> - <title>clear_all_assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// передача пар ключ / значение -$smarty->assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// выведет только что назначенные переменные -print_r($smarty->get_template_vars()); - -// очищаем список назначенных переменных -$smarty->clear_all_assign(); - -// не выведет ничего -print_r($smarty->get_template_vars()); - -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.clear.assign">clear_assign()</link>, - <link linkend="api.clear.config">clear_config()</link>, - <link linkend="api.assign">assign()</link> - и - <link linkend="api.append">append()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-clear-all-cache.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.clear.all.cache"> - <refnamediv> - <refname>clear_all_cache()</refname> - <refpurpose>полностью очищает кэш шаблонов</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - В качестве необязательного параметра, вы можете указать минимальный возраст - файлов кэша в секундах, прежде чем они будут очищены. - </para> - <example> - <title>clear_all_cache</title> - <programlisting role="php"> -<![CDATA[ -<?php -// очищает весь кэш -$smarty->clear_all_cache(); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.clear.cache">clear_cache()</link>, - <link linkend="api.is.cached">is_cached()</link> - и - <link linkend="caching">кэширование</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-clear-assign.xml
Deleted
@@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.clear.assign"> - <refnamediv> - <refname>clear_assign()</refname> - <refpurpose>очищает назначенную переменную</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Может принимать имя переменной, либо массив с именами переменных. - </para> - <example> - <title>clear_assign()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// очищает одну переменную -$smarty->clear_assign('Name'); - -// очищает несколько переменных -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.clear.all.assign">clear_all_assign()</link>, - <link linkend="api.clear.config">clear_config()</link>, - <link linkend="api.get.template.vars">get_template_vars()</link>, - <link linkend="api.assign">assign()</link> - и - <link linkend="api.append">append()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-clear-cache.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.clear.cache"> - <refnamediv> - <refname>clear_cache()</refname> - <refpurpose>очищает кэш определенного шаблона</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Если вы используете - <link linkend="caching.multiple.caches">множественное кэширование</link> - для шаблона, вы можете очистить определенный кэш, передавая - <parameter>cache_id</parameter> в качестве второго аргумента. - Также, вы можете педать - <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link> - в качестве третьего аргумента. - Вы можете <link linkend="caching.groups">"группировать"</link> шаблоны - вместе, чтобы их можно было удалять группой. - См. раздел <link linkend="caching">Кэширование</link> для получения - дополнительной информации. - В качестве необязательного четвертого аргумента вы можете передать минимальный - возраст файла кэша в секундах, прежде чем он будет очищен. - </para> - <example> - <title>clear_cache()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// очищает кэш шаблона -$smarty->clear_cache('index.tpl'); - -// очищает определенный идентификатор кэша для шаблонов со множественным кэшированием -$smarty->clear_cache('index.tpl', 'CACHEID'); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.clear.all.cache">clear_all_cache()</link> - и - <link linkend="caching">кэширование</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-clear-compiled-tpl.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.clear.compiled.tpl"> - <refnamediv> - <refname>clear_compiled_tpl()</refname> - <refpurpose>очищает скомпилированную версию указанного шаблона</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Очищает скомпилированную версию указанного шаблона, либо все скомпилированные - файлы, если конкретный файл не указан. - Если вы укажете аргумент - <link linkend="variable.compile.id">$compile_id</link>, будут очищены - только те скомпилированные версии, которые имеют такой идентификатор. - Если вы укажете аргумент exp_time, будут очищены только те скомпилированные - версии, которые будут старше этого кол-ва секунд. - По умолчанию очищаются все скомпилированные шаблоны, независимо от их - возраста. - Эта функция предназначена для продвинутого использования и для решения - обычных задачь необходимости в ней нет. - </para> - <example> - <title>clear_compiled_tpl()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// очищает скомпилированную версию определенного шаблона -$smarty->clear_compiled_tpl("index.tpl"); - -// очищает скомпилированные версии всех шаблонов -$smarty->clear_compiled_tpl(); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-clear-config.xml
Deleted
@@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.clear.config"> - <refnamediv> - <refname>clear_config()</refname> - <refpurpose>очищает назначенную конфигурационную переменную</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Очищает все назначенные - <link linkend="language.config.variables">конфигурационные переменные</link>. - Если указано имя переменной, только эта переменная будет очищена. - </para> - <example> - <title>clear_config()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// очищает все назначенные конфигурационные переменные -$smarty->clear_config(); - -// очищает одну конфигурационную переменную -$smarty->clear_config('foobar'); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.get.config.vars">get_config_vars()</link>, - <link linkend="language.config.variables">config variables</link>, - <link linkend="config.files">config files</link>, - <link linkend="language.function.config.load">{config_load}</link>, - <link linkend="api.config.load">config_load()</link> - и - <link linkend="api.clear.assign">clear_assign()</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-config-load.xml
Deleted
@@ -1,81 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.config.load"> - <refnamediv> - <refname>config_load()</refname> - <refpurpose>загружает данные из конфигурационного файла и назначает их шаблону</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция загружает данные из - <link linkend="config.files">конфигурационного файла</link> - и назначает их шаблону. Работает идентично функции шаблона - <link linkend="language.function.config.load">{config_load}</link>. - </para> - <note> - <title>Техническое Замечание</title> - <para> - Начиная с версии Smarty 2.4.0, присвоенные переменные шаблона сохраняются - между вызовами методов - <link linkend="api.fetch">fetch()</link> - и - <link linkend="api.display">display()</link>. - Конфигурационные переменные, загруженные через config_load(), всегда - находятся в глобальной зоне видимости. Конфигурационные файлы также - компилируются для более быстрой обработки, и учитывают настройки - <link linkend="variable.force.compile">$force_compile</link> - и - <link linkend="variable.compile.check">$compile_check</link>. - </para> - </note> - <example> - <title>config_load()</title> - <programlisting role="php"> -<![CDATA[ -<?php -// загружаем конфигурационные переменные и присваиваем их шаблону -$smarty->config_load('my.conf'); - -// загружаем секцию -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.function.config.load">{config_load}</link>, - <link linkend="api.get.config.vars">get_config_vars()</link>, - <link linkend="api.clear.config">clear_config()</link>, - и - <link linkend="language.config.variables">конфигурационные переменные</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-display.xml
Deleted
@@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.display"> - <refnamediv> - <refname>display()</refname> - <refpurpose>отображает шаблон</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter> - </methodparam> - </methodsynopsis> - <para> - Данная функция отображает шаблон, в отличие от - <link linkend="api.fetch">fetch()</link>. - В качестве первого аргумента следуедует указать доступный тип и путь к - <link linkend="template.resources">ресурсу шаблона</link>. - В качестве второго необязательного аргумета, вы можете передать идентификатор - кэша. - См. раздел - <link linkend="caching">Кэширование</link> - для получения дополнительной информации. - </para> - ¶meter.compileid; - <example> - <title>display()</title> - <programlisting role="php"> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; -$smarty->caching = true; - -// выполняем запрос к БД только в том случае, если кэш не существует -if(!$smarty->is_cached("index.tpl")) { - - // немного данных для примера - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// выводим результат -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - </example> - <para> - Используйте синтаксис <link - linkend="template.resources">ресурсов шаблона</link> для отображения файлов - за пределами директории - <link linkend="variable.template.dir">$template_dir</link>. - </para> - <example> - <title>Пример работы функции display() с ресурсами шаблона</title> - <programlisting role="php"> -<![CDATA[ -<?php -// абсолютный файловый путь -$smarty->display('/usr/local/include/templates/header.tpl'); - -// абсолютный файловый путь (тот же результат) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// абсолютный файловый путь под Windows (префикс "file:" ОБЯЗАТЕЛЕН) -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// использование ресурса шаблона с именем "db" -$smarty->display('db:header.tpl'); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="api.fetch">fetch()</link> - и - <link linkend="api.template.exists">template_exists()</link>. - </para> - </refsect1> -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-fetch.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.fetch"> - <refnamediv> - <refname>fetch</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Функция возвращает вывод шаблона вместо его отображения на экран. - Укажите верный тип <link - linkend="template.resources">ресурса шаблонов</link> - и путь. В качестве необязательного второго параметра можно передать - cache id. Смотрите раздел - <link linkend="caching">Кэширование</link> - для получения дополнительной информации. - </para> - ¶meter.compileid; - <para> - <example> - <title>fetch</title> - <programlisting role="php"> -<![CDATA[ -<?php -include("Smarty.class.php"); -$smarty = new Smarty; - -$smarty->caching = true; - -// обращаемся к БД только если отсутствует кэш -if(!$smarty->is_cached("index.tpl")) -{ - - // присваиваем некоторые значения - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" = > "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// перехватываем вывод -$output = $smarty->fetch("index.tpl"); - -// здесь выполняем какие-либо действия с $output - -echo $output; -?> -]]> - </programlisting> - </example> - </para> - <para> - См. также - <link linkend="api.display">display()</link> и - <link linkend="api.template.exists">template_exists</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-get-config-vars.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.get.config.vars"> - <refnamediv> - <refname>get_config_vars</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает значение переданной конфигурационной переменной. Если аргумент не передан, - то будет возвращен массив всех конфигурационных переменных. - </para> - <example> - <title>get_config_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// получаем загруженную конфигурационную переменную 'foo' -$foo = $smarty->get_config_vars('foo'); - -// получаем все загруженные конфигурационные переменные шаблона -$config_vars = $smarty->get_config_vars(); - -// смотрим, что у нас получилось -print_r($config_vars); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-get-registered-object.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.get.registered.object"> - <refnamediv> - <refname>get_registered_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает ссылку на зарегестрированный объект. Может быть полезно в случае - необходимости получения прямого доступа к - зарегестрированному объекту из пользовательской функции. - </para> - <example> - <title>get_registered_object</title> - <programlisting role="php"> -<![CDATA[ -<?php -function smarty_block_foo($params, &$smarty) { - if (isset[$params['object']]) { - // получаем ссылку на объект - $obj_ref =& $smarty->&get_registered_object($params['object']); - // теперь используем $obj_ref как ссылку на объект - } -} -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-get-template-vars.xml
Deleted
@@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.get.template.vars"> - <refnamediv> - <refname>get_template_vars</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает значение переменной. Если аргумент не передан, - будет возвращен массив всех назначенными переменными. - </para> - <example> - <title>get_template_vars</title> - <programlisting role="php"> -<![CDATA[ -<?php -// получаем назначенную переменную шаблона 'foo' -$foo = $smarty->get_template_vars('foo'); - -// получаем все назначенные переменные шаблона -$tpl_vars = $smarty->get_template_vars(); - -// поглядим, что из этого вышло -print_r($tpl_vars); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-is-cached.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.is.cached"> - <refnamediv> - <refname>is_cached</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает true если существует кэш для указанного шаблона. - Работает только в том случае, если значение <link - linkend="variable.caching">caching</link> установлено в true. - </para> - <example> - <title>is_cached</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl")) { - // обращаемся к БД, назначаем переменные -} - -$smarty->display("index.tpl"); -?> -]]> - </programlisting> - </example> - <para> - Также вы можете передавать cache id в качестве необязательного второго - параметра, если у вас используется множественное кэширование шаблона. - </para> - <para> - Также вы можете передавать compile id в качестве необязательного третьего параметра. - Если вы не передадите этот параметр, будет использован текущий - <link linkend="variable.compile.id">$compile_id</link>. - </para> - <para> - Если вы не хотите передавать cache id, но хотите передать compile - id, вы должны передать <literal>null</literal> в качестве cache id. - </para> - <example> - <title>is_cached при множественном кэшировании шаблона</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // обращаемся к БД, назначаем переменные -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - </programlisting> - </example> - - - <note> - <title>Техническое замечание</title> - <para> - Если <literal>is_cached</literal> возвращает true, при этом она загружает - кэшированный вывод и хранит его в памяти. Любые последующие вызовы - <link linkend="api.display">display()</link> или - <link linkend="api.fetch">fetch()</link> - будут возвращать этот хранимый в памяти вывод и не будут пытаться перезагрузить - файл кэша. Это предотвращает неприятную ситуацию, которая может возникнуть если - другой процесс очищает кэш между вызовами is_cached и - display в предыдущем примере. Это также означает, что - <link linkend="api.clear.cache">clear_cache()</link> - и другие изменения настроек кэширования могут не вступить в силу после того, как - <literal>is_cached</literal> вернула true. - </para> - </note> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-load-filter.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.load.filter"> - <refnamediv> - <refname>load_filter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция может быть использована для загрузки плагина фильтра. Первый аргумент - определяет тип загружаемого фильтра и может быть одним из следующих: - 'pre', 'post' или 'output'. Второй аргумент - определяет имя плагина фильтра, к примеру 'trim'. - </para> - <example> - <title>Загрузка плагинов фильтров</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->load_filter('pre', 'trim'); // загружаем префильтр под названием 'trim' -$smarty->load_filter('pre', 'datefooter'); // загружаем еще один префильтр - 'datefooter' -$smarty->load_filter('output', 'compress'); // загружаем фильтр вывода 'compress' -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-block.xml
Deleted
@@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.block"> - <refnamediv> - <refname>register_block</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Используйте для динамической регистрации плагинов - блоковых функций. В качестве аргументов передаются - имя блоковой функции и имя функции, реализующей ее. - </para> - <para> - Коллбек-функцией php <parameter>impl</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - <example> - <title>register_block</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // выполняем перевод $content - return $translation; - } -} -?> -]]> - </programlisting> - <para> - Содержимое шаблона: - </para> - <programlisting> -<![CDATA[ -{* шаблон *} -{translate lang="br"} -Hello, world! -{/translate} -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-compiler-function.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.compiler.function"> - <refnamediv> - <refname>register_compiler_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Используется для динамической регистрации плагина функции компилятора. - Передается наименование функции компилятора, далее имя функции, реализующей ее. - </para> - <para> - Коллбек-функцией php <parameter>impl</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-function.xml
Deleted
@@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Используется для динамической регистрации плагинов функций шаблона. - Передается наименование функции шаблона и имя функции, реализующей ее. - </para> - <para> - Функция обратного вызова PHP <parameter>impl</parameter> может быть - (a) строка, содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - <example> - <title>register_function</title> - <programlisting role="php"> -<![CDATA[ -$smarty->register_function("date_now", "print_current_date"); - -function print_current_date($params) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} - -// теперь вы можете использовать ее в Smarty чтобы вывести текущую дату: {date_now} -// или {date_now format="%Y/%m/%d"} чтобы задать формат. -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-modifier.xml
Deleted
@@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.modifier"> - <refnamediv> - <refname>register_modifier</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации плагина модификатора. В функцию - передаются имя модификатора и имя функции, реализующей его. - </para> - <para> - Коллбек-функцией php <parameter>impl</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - <example> - <title>register_modifier</title> - <programlisting role="php"> -<![CDATA[ -<?php -// вносим функцию PHP stripslashes в модификатор Smarty. - -$smarty->register_modifier("sslash"," stripslashes"); - -// теперь можно использовать {$var|sslash} чтобы вырезать слеши из переменной -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-object.xml
Deleted
@@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.register.object"> - <refnamediv> - <refname>register_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Функция регестрирует объект для использования в шаблоне. Обратитесь к - разделу <link linkend="advanced.features.objects">Объекты</link> - за примерами. - </para> - <para> - См. также - <link linkend="api.unregister.object">unregister_object</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-outputfilter.xml
Deleted
@@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации фильтров - вывода, чтобы управлять выводом шаблона перед тем, как он - будет отображен. Обратитесь к - <link linkend="advanced.features.outputfilters">фильтрам - вывода шаблонов</link> для получения дополнительной информации. - </para> - <para> - Коллбек-функцией php <parameter>function</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-postfilter.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации постфильтров, - в целях управления выводом шаблонов уже после их компиляции. - Обратитесь к <link linkend="advanced.features.postfilters">постфильтрам - шаблонов</link> для получения дополнительной информации. - </para> - <para> - Коллбек-функцией php <parameter>function</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-prefilter.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации префильтра, - в целях управления содержимым шаблона перед его компиляцией. - Обратитесь к <link linkend="advanced.features.prefilters">префильтрам - шаблонов</link> для получения дополнительной информации. - </para> - <para> - Коллбек-функцией php <parameter>function</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-register-resource.xml
Deleted
@@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Используйте эту функцию, чтобы динамически зарегистрировать - плагин ресурса в Smarty. Передается имя ресурса и массив php-функций. - Обратитесь к <link linkend="template.resources">ресурсам шаблонов</link> - для получениядополнительной информации. - </para> - <note> - <title>Техническое замечание</title> - <para> - Имя ресурса должно состоять минимум из двух букв. Однобуквенные - имена ресурсов будут игнорироваться и испольщоваться как часть файлового - пути, например $smarty->display('c:/path/to/index.tpl'); - </para> - </note> - <para> - Массив php-функций <parameter>resource_funcs</parameter> - должен содержать 4 или 5 элементов. - В случае четырех элементов, элементы являются - соответствующими коллбек-функциями: "source", - "timestamp", "secure" и "trusted" функции ресурса. - В случае пяти элементов, первый элемент должен быть - ссылкой на объект или имя класса, объект или класс которого - реализовывает ресурс, а 4 следующих элементов должны быть названиями методов, - реализующимх "source", "timestamp", "secure" и "trusted". - </para> - <example> - <title>register_resource</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-template-exists.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.template.exists"> - <refnamediv> - <refname>template_exists</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция проверяет, существует ли определенный шаблон. - Здесь можно указать путь к шаблону в файловой системе или - строку ресурса, соответствующую шаблону. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-trigger-error.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция может быть использована для вывода сообщения об - ошибке средствами Smarty. Параметр <parameter>level</parameter> - может быть равен одному из значений, используемых для PHP-функции - trigger_error(), т.е. E_USER_NOTICE, E_USER_WARNING, и др. - По умолчанию установлено значение E_USER_WARNING. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-block.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации плагина блоковой функции. - В качестве аргумента передается имя функции. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-compiler-function.xml
Deleted
@@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации - функции компиляции. В качестве аргумента передается - имя функции компиляции. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-function.xml
Deleted
@@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической деригистрации плагина функции шаблона. - В качестве аргумента передается имя функции шаблона. - </para> - <example> - <title>unregister_function</title> - <programlisting role="php"> -<![CDATA[ -<?php -// мы не хотим давать доступ дизайнеру шаблонов к системным файлам - -$smarty->unregister_function("fetch"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-modifier.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.modifier"> - <refnamediv> - <refname>unregister_modifier</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации - плагина модификатора. В качестве аргумента передается - имя модификатора. - </para> - <example> - <title>unregister_modifier</title> - <programlisting role="php"> -<![CDATA[ -<?php -// мы не хотим, чтобы дизайнер шаблонов очищал переменные от тэгов - -$smarty->unregister_modifier("strip_tags"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-object.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.unregister.object"> - <refnamediv> - <refname>unregister_object</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Используется для дерегистрации объекта. - </para> - <para> - См. также - <link linkend="api.register.object">register_object</link> и раздел - <link linkend="advanced.features.objects">Объекты</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-outputfilter.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации фильтра вывода. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-postfilter.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации постфильтра. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-prefilter.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте для динамической дерегистрации префильтра. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-functions/api-unregister-resource.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации - плагина ресурса. В качестве аргумента передается имя ресурса. - </para> - <example> - <title>unregister_resource</title> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->unregister_resource("db"); -?> -]]> - </programlisting> - </example> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables.xml
Deleted
@@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 2215 Maintainer: freespace Status: ready --> -<chapter id="api.variables"> - <title>Переменные класса Smarty</title> - &programmers.api-variables.variable-template-dir; - &programmers.api-variables.variable-compile-dir; - &programmers.api-variables.variable-config-dir; - &programmers.api-variables.variable-plugins-dir; - &programmers.api-variables.variable-debugging; - &programmers.api-variables.variable-debug-tpl; - &programmers.api-variables.variable-debugging-ctrl; - &programmers.api-variables.variable-autoload-filters; - &programmers.api-variables.variable-compile-check; - &programmers.api-variables.variable-force-compile; - &programmers.api-variables.variable-caching; - &programmers.api-variables.variable-cache-dir; - &programmers.api-variables.variable-cache-lifetime; - &programmers.api-variables.variable-cache-handler-func; - &programmers.api-variables.variable-cache-modified-check; - &programmers.api-variables.variable-config-overwrite; - &programmers.api-variables.variable-config-booleanize; - &programmers.api-variables.variable-config-read-hidden; - &programmers.api-variables.variable-config-fix-newlines; - &programmers.api-variables.variable-default-template-handler-func; - &programmers.api-variables.variable-php-handling; - &programmers.api-variables.variable-security; - &programmers.api-variables.variable-secure-dir; - &programmers.api-variables.variable-security-settings; - &programmers.api-variables.variable-trusted-dir; - &programmers.api-variables.variable-left-delimiter; - &programmers.api-variables.variable-right-delimiter; - &programmers.api-variables.variable-compiler-class; - &programmers.api-variables.variable-request-vars-order; - &programmers.api-variables.variable-request-use-auto-globals; - &programmers.api-variables.variable-error-reporting; - &programmers.api-variables.variable-compile-id; - &programmers.api-variables.variable-use-sub-dirs; - &programmers.api-variables.variable-default-modifiers; - &programmers.api-variables.variable-default-resource-type; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-autoload-filters.xml
Deleted
@@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.autoload.filters"> - <title>$autoload_filters</title> - <para> - При необходимости загрузки при каждом вызове шаблонов некоторого - количества фильтров, вы можете определить их, используя эту переменную, - и Smarty автоматически их загрузит. Переменная представляет из себя - ассоциативный массив, ключи в котором являются типами фильтров, а значения - - массивами имен фильтров. Например: - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - </programlisting> - </informalexample> - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-cache-dir.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.cache.dir"> - <title>$cache_dir</title> - <para> - Имя каталога, в котором хранится кэш шаблонов. По умолчанию - установлено в "./cache". Это означает, что поиск каталога с кэшем - будет производиться в том же каталоге, в котором выполняется - скрипт. Вы также можете использовать собственную функцию-обработчик - для управления файлами кэша, которая будет игнорировать этот параметр. - </para> - <note> - <title>Техническое замечание</title> - <para> - При установке этого параметра можно использовать как относительные, - так и абсолютные пути. Для создаваемых файлов include_path не используется. - </para> - </note> - <note> - <title>Техническое замечание</title> - <para> - Не рекомендуется помещать этот каталог внутри корневого каталога документов - веб-сервера. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-cache-handler-func.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.cache.handler.func"> - <title>$cache_handler_func</title> - <para> - Вы можете добавить собственную функцию для управления файлами кэша - вместо вызовов встроенного метода, используя $cache_dir. - За дополнительной информацией обратитесь к разделу - <link linkend="section.template.cache.handler.func">Управление - кэшированием</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-cache-lifetime.xml
Deleted
@@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.cache.lifetime"> - <title>$cache_lifetime</title> - <para> - Задает длительность времени в секундах, в течение которого кэш шаблона - будет актуальным. По истечении этого времени кэш будет регенерирован. - Переменная $caching должна быть установлена в "true" при использовании - $cache_lifetime. Значение переменной -1 задает неограниченное время - жизни кэша. Значение переменной 0 вызовет постоянную его регенерацию - (подходит только для тестирования, для отключения кэширования более - целесообразно устанавливать - <link linkend="variable.caching">$caching</link> = false.) - </para> - <para> - Если <link linkend="variable.force.compile">$force_compile</link> - активировано, файлы кэша каждый раз будут регенерироваться, - отключая таким образом кэширование. Вы можете очистить сразу все файлы кэша, - используя функцию <link linkend="api.clear.all.cache">clear_all_cache()</link>, - или в случае с конкретными файлами (группами) кэша - при помощи функции - <link linkend="api.clear.cache">clear_cache()</link>. - </para> - <note> - <title>Техническое замечание</title> - <para> - Если вы хотите назначить конкретным шаблонам собственное время жизни их кэша, - вы можете сделать это путем установки <link linkend="variable.caching">$caching - </link> = 2, затем установкой $cache_lifetime в нужное значение перед вызовом - display() или fetch(). - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-cache-modified-check.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.cache.modified.check"> - <title>$cache_modified_check</title> - <para> - Если установлено в true, Smarty будет учитывать If-Modified-Since - заголовок, посланный клиентом. Если время создания кэшированного - файла не изменилось с момента последнего посещения, то взамен его - содержимого будет послан заголовок "304 Not Modified". Это работает - только в случае, если кэшированное содержимое не содержит тэгов - <command>insert</command>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-caching.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.caching"> - <title>$caching</title> - <para> - Сообщает Smarty, будет или нет кэшироваться вывод шаблонов. По умолчанию - этот параметр установлен в 0, т.е. не активирован. Если ваши шаблоны - генерируют большие объемы кода, рекомендуется активировать кэширование - это - даст ощутимый прирост в производительности. Вы также можете использовать - множественный кэш шаблонов. Значение 1 или 2 активирует кэширование. - При задании значения 1, для определения времени жизни кэша используется - текущее значение переменной $cache_lifetime. Значение 2 задает Smarty - использовать значение cache_lifetime во время окончания генерации кэша. В - этом случае вы можете устанавливать cache_lifetime непосредственно перед - обработкой шаблона для осуществления гибкого контроля за истечением времени - жизни конкретного экземпляра кэша. См. также <link linkend="api.is.cached"> - is_cached</link>. - </para> - <para> - Если параметр $compile_check активирован, кэш будет обновляться в случае, - когда любой из шаблонов или конфигурационных файлов, являющихся частью - этого кэша, был изменен. Если активирован $force_compile, кэш будет - обновляться во всех случаях. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-compile-check.xml
Deleted
@@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.compile.check"> - <title>$compile_check</title> - <para> - При каждом вызове РНР-приложения Smarty проверяет, изменился или нет - текущий шаблон с момента последней компиляции. Если шаблон изменился, - он перекомпилируется. В случае, если шаблон еще не был скомпилирован, - его компиляция производится с игнорированием значения этого параметра. - По умолчанию эта переменная установлена в true. В момент, когда приложение - начнет работать в реальных условиях (шаблоны больше не будут изменяться), - этап проверки компиляции становится ненужным. В этом случае проверьте, чтобы - переменная $compile_check была установлена в "false" для достижения - максимальной производительности. Учтите, что если вы присвоите этой переменной - значение "false", и файл шаблона будет изменен, вы *НЕ* увидите изменений - в выводе шаблона до тех пор, пока шаблон не будет перекомпилирован. Если - caching и compile_check активированы, файлы кэша будут регенерированы при - обновлении связанных с ним шаблонов или конфигурационных файлов. См. - <link linkend="variable.force.compile">$force_compile</link> или - <link linkend="api.clear.compiled.tpl">clear_compiled_tpl</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-compile-dir.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.compile.dir"> - <title>$compile_dir</title> - <para> - Имя каталога, в котором хранятся компилированные шаблоны. По - умолчанию установлено в "./templates_c", т.е. поиск каталога с - компилированными шаблонами будет производиться в том же каталоге, - в котором выполняется скрипт. - </para> - <note> - <title>Техническое замечание</title> - <para> - При установке этого параметра можно использовать как относительные, - так и абсолютные пути. Для создаваемых файлов include_path не используется. - </para> - </note> - <note> - <title>Техническое замечание</title> - <para> - Не рекомендуется помещать этот каталог внутри корневого каталога документов - веб-сервера. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-compile-id.xml
Deleted
@@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="variable.compile.id"> - <title>$compile_id</title> - <para> - Постоянный идентификатор компиляции. Как альтернативу использованию одного - и того же compile_id при каждом вызове функции, вы можете самостоятельно - задавать этот идентификатор, и в этом случае будет безусловно автоматически - это значение. - </para> - <para> - С помощью compile_id вы можете обойти ограничение, из-за которого вы не - можете использовать один compile_dir для разных template_dir. - Если вы установите уникальный compile_id для каждого template_dir, Smarty - сможет различать компилированные шаблоны по их compile_id. - </para> - <para> - К примеру, если у вас есть префильтр, локализирующий ваш ваши шаблоны - (проще говоря, переводит части шаблонов на другой язык) во время - компиляции, то вам следует использовать текущий язык в качестве - compile_id и вы получите по набору скомпилированных шаблонов для - каждого используемого языка. - </para> - <para> - Другим примером может быть использование одной компиляционной директории - для нескольких доменов / нескольких vhost'ов, к примеру: - </para> - <example> - <title>compile_id</title> - <programlisting role="php"> -<![CDATA[ - $smarty->compile_id = $_SERVER['SERVER_NAME']; - $smarty->compile_dir = 'path/to/shared_compile_dir'; -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-compiler-class.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1672 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.compiler.class"> - <title>$compiler_class</title> - <para> - Задает имя класса-компилятора, который Smarty будет использовать - для компиляции шаблонов. По умолчанию это 'Smarty_Compiler'. Только - для продвинутых пользователей. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-config-booleanize.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.config.booleanize"> - <title>$config_booleanize</title> - <para> - Если установлено в true, значения параметров конфигурационных файлов - on/true/yes и off/false/no будут конвертированы в булевы значения автоматически. - В этом случае вы можете использовать в шаблоне конструкции, подобные этой: - {if #foobar#} ... {/if}. Если foobar равно on, true или yes, будет осуществлен - переход по условию {if}. По умолчанию равно true. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-config-dir.xml
Deleted
@@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.config.dir"> - <title>$config_dir</title> - <para> - Каталог для хранения конфигурационных файлов, используемых - в шаблонах. По умолчанию установлено в "./configs", т.е. поиск - каталога с конфигурационными файлами будет производиться в том - же каталоге, в котором выполняется скрипт. - </para> - <note> - <title>Техническое замечание</title> - <para> - Не рекомендуется помещать этот каталог внутри корневого каталога документов - веб-сервера. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-config-fix-newlines.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.config.fix.newlines"> - <title>$config_fix_newlines</title> - <para> - Если установлено в true, переводы строк в стиле mac и dos (\r и \r\n) - в конфигурационных файлах будут конвертированы в \n при синтаксическом - разборе. По умолчанию равно true. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-config-overwrite.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.config.overwrite"> - <title>$config_overwrite</title> - <para> - Если установлено в true, переменные, полученные из конфигурационных файлов, - будут перекрывать все остальные. В лбом случае, перемнные будут помещены в - массив. Это удобно, когда вы хотите хранить массив данных в конфигурационном - файле - просто задавайте каждый элемент много раз. По умолчанию true. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-config-read-hidden.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.config.read.hidden"> - <title>$config_read_hidden</title> - <para> - Если установлено в true, скрытые разделы (имеющие имя, начинающиеся с точки) - в конфигурационных файлах могут быть доступными из шаблонов. Как правило, - следует устанавливать значение этого параметра в false: в этом случае вы - можете хранить важные данные (например, параметры подключения к базе данных) - в конфигурационных файлах, не беспокоясь, что они будут загружены в шаблон. - По умолчанию false. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-debug-tpl.xml
Deleted
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.debug.tpl"> - <title>$debug_tpl</title> - <para> - Имя файла шаблона, используемого для панели отладки (debugging console). - По умолчанию это файл debug.tpl, расположенный в <link - linkend="constant.smarty.dir">SMARTY_DIR</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-debugging-ctrl.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.debugging.ctrl"> - <title>$debugging_ctrl</title> - <para> - Позволяет активировать режим отладки альтернативными путями. - Значение NONE запрещает использовать альтернативные методы. При - значении переменной URL, режим отладки будет активирован для данного - вызова скрипта в случае, если в QUERY_STRING будет обнаружено - ключевое слово SMARTY_DEBUG. Этот параметр игнорируется, если - $debugging установлено в true. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-debugging.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.debugging"> - <title>$debugging</title> - <para> - Активирует <link linkend="chapter.debugging.console">debugging - console</link> - порожденное при помощи javascript окно браузера, - содержащее информацию о подключенных шаблонах и загруженных - переменных для текущей страницы. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-default-modifiers.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.default.modifiers"> - <title>$default_modifiers</title> - <para> - Массив модификаторов, неявно применяемых ко всем переменным шаблона. - Например, для HTML-экранирования каждой переменной по умолчанию, используется - конструкция array('escape:"htmlall"'); Для исключения действия таких - модификаторов на какую-либо переменную, применяйте специальный "smarty" - модификатор с параметром "nodefaults", например {$var|smarty:nodefaults}. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-default-resource-type.xml
Deleted
@@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.default.resource.type"> - <title>$default_resource_type</title> - <para> - Это свойство говорит Smarty, какой тип ресурсов использовать по умолчанию. - Значением этого свойства по умолчанию является 'file', так что - $smarty->display('index.tpl'); и $smarty->display('file:index.tpl'); - имеют одинаковый смысл. Обратитесь к главе <link - linkend="template.resources">ресурсы</link> для дополнительной информации. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-default-template-handler-func.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1672 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.default.template.handler.func"> - <title>$default_template_handler_func</title> - <para> - Функция, вызываемая в случае, если шаблон не был получен из - своего источника. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-error-reporting.xml
Deleted
@@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="variable.error.reporting"> - <title>$error_reporting</title> - <para> - Если это свойство имеет ненулевое значние, то оно используется - в качестве значения error_reporting внутри - <link linkend="api.display">display()</link> и - <link linkend="api.fetch">fetch()</link>. - При включенном режиме <link - linkend="chapter.debugging.console">отладки</link> это значение - игнорируется и уровень обработки ошибок не меняется. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-force-compile.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.force.compile"> - <title>$force_compile</title> - <para> - Указывает Smarty (пере)компилировать шаблоны при каждом вызове. - Этот параметр перекрывает действие $compile_check и по умолчанию - не активирован. Действие параметра удобно использовать в процессе - разработки и отладки, однако никогда не используйте его в условиях - реальной эксплуатации: если кэширование активировано, файл(ы) кэша - будут каждый раз перезаписываться. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-left-delimiter.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="variable.left.delimiter"> - <title>$left_delimiter</title> - <para> - Левый разделитель, используемый в языке шаблонов. - По умолчанию равно "{". - </para> - <para> - См. также - <link linkend="variable.right.delimiter">$right_delimiter</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-php-handling.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.php.handling"> - <title>$php_handling</title> - <para> - Этот параметр говорит Smarty, как обращаться с PHP-кодом, встроенным в - шаблоны. Существует четыре возможных значения, значением по умолчанию является - SMARTY_PHP_PASSTHRU. Обратите внимание, что это НЕ влияет на PHP-код - внутри тэгов <link linkend="language.function.php">{php}{/php}</link> - в шаблоне. - </para> - <itemizedlist> - <listitem><para>SMARTY_PHP_PASSTHRU - Smarty показывает тэги без обработки.</para></listitem> - <listitem><para>SMARTY_PHP_QUOTE - Smarty превращает спецсимволы тэгов в HTML-сущности.</para></listitem> - <listitem><para>SMARTY_PHP_REMOVE - Smarty удаляет тэги из шалона.</para></listitem> - <listitem><para>SMARTY_PHP_ALLOW - Smarty будет выполнять тэги как PHP-код.</para></listitem> - </itemizedlist> - <note> - <para> - Встраивать PHP-код в шаблоны весьма не рекоммендуется. - Вместо этого, используется <link linkend="language.custom.functions">пользовательские функции</link> или - <link linkend="language.modifiers">модификаторы</link>. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-plugins-dir.xml
Deleted
@@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="variable.plugins.dir"> - <title>$plugins_dir</title> - <para> - Это директория (или директории), в которых Smarty будет искать - необходимые ему плагины. По умолчанию это поддиректория "plugins" - директории SMARTY_DIR. Если вы укажете относительный путь, Smarty - будет в первую очередь искать относительно SMARTY_DIR, затем - оносительно текущей рабочей директории (cwd, current working - directory), а затем относительно каждой директории в PHP-директиве - include_path. Если $plugins_dir является массивом директорий, - Smarty будет искать ваш плагин в каждой директории плагинов - в том порядке, в котором они указаны. - </para> - <note> - <title>Техническое замечание</title> - <para> - Для улучшения производительности, не нужно настраивать plugins_dir для использования - include_path. Используйте абсолютные пути или относительные пути от - SMARTY_DIR или текущей рабочей директории. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-request-use-auto-globals.xml
Deleted
@@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="variable.request.use.auto.globals"> - <title>$request_use_auto_globals</title> - <para> - Определяет должен ли Smarty использовать $HTTP_*_VARS[] - ($request_use_auto_globals=false - значением по умолчанию) или - $_*[] ($request_use_auto_globals=true). Это влияет на поведение шаблонов, - которые используют {$smarty.request.*}, {$smarty.get.*} и т.д. - Внимание: если вы установите $request_use_auto_globals в true, <link - linkend="variable.request.vars.order">variable.request.vars.order - </link> не учитывается, а вместо него используется значение - <literal>gpc_order</literal> из настроек php. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-request-vars-order.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.request.vars.order"> - <title>$request_vars_order</title> - <para> - Порядок, в котором будут регистрироваться переменные запроса, - наподобие variables_order из php.ini - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-right-delimiter.xml
Deleted
@@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="variable.right.delimiter"> - <title>$right_delimiter</title> - <para> - Правый разделитель, используемый в языке шаблонов. - По умолчанию равно "}". - </para> - <para> - См. также - <link linkend="variable.left.delimiter">$left_delimiter</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-secure-dir.xml
Deleted
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.secure.dir"> - <title>$secure_dir</title> - <para> - Это массив всех локальных директори, которые считаются безопасными. - {include} и {fetch} используют этот параметр при влюченном безопасном режиме. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-security-settings.xml
Deleted
@@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<sect1 id="variable.security.settings"> - <title>$security_settings</title> - <para> - Это используется для изменения или указания настроек безопасности - когда безопасносить (security) включена. Допустимые значения: - </para> - <itemizedlist> - <listitem><para>PHP_HANDLING - true/false. Если установлено в true, параметр - $php_handling не проверяется на безопасность.</para></listitem> - <listitem><para>IF_FUNCS - Это массив имён PHP-функций, разрешенных - к использованию в условиях IF.</para></listitem> - <listitem><para>INCLUDE_ANY - true/false. Если установлено в true, любой - шаблон может быть подключен из файловой системы, независимо от списка - $secure_dir.</para></listitem> - <listitem><para>PHP_TAGS - true/false. Если установлено в true, тэги - {php}{/php} разрешены к использованию в шаблонах.</para></listitem> - <listitem><para>MODIFIER_FUNCS - Это массив имён PHP-функций, разрешенных - к использованию в качестве модификаторов переменных.</para></listitem> - <listitem><para>ALLOW_CONSTANTS - true/false. Если установлено в true, - разрешается использование констант вида {$smarty.const.name}. - По умолчанию равно "false" из соображений безопасности.</para></listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-security.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.security"> - <title>$security</title> - <para> - $security true/false, по умолчанию false. Безопасность (security) - полезна в ситуациях, когда ваши шаблоны редактируют лица, - не заслуживающе вашего доверия (например, через ftp) и вы хотите - сократить риски взлома системы с помощью языка шаблонов. - Включение безопасного режима накладывает следующие ограничения - на язык шаблонов, если только они не изменяются параметром $security_settings: - </para> - <itemizedlist> - <listitem><para>Если $php_handling установлен в SMARTY_PHP_ALLOW, это - неявно меняет его на SMARTY_PHP_PASSTHRU</para></listitem> - <listitem><para>PHP-функции запрещены в условиях IF, - кроме тех, которые указаны в $security_settings</para></listitem> - <listitem><para>Шаблоны могут быть подключены только из директорий, - перечисленных в массиве $secure_dir</para></listitem> - <listitem><para>Локальные файлы могут быть прочитаны при помощи {fetch} - только из директорий, перечисленных в массиве $secure_dir</para></listitem> - <listitem><para>Тэги {php}{/php} запрещены</para></listitem> - <listitem><para>PHP-функции запрещено использовать в виде модификаторов, - кроме тех, которые указаны в $security_settings</para></listitem> - </itemizedlist> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-template-dir.xml
Deleted
@@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.template.dir"> - <title>$template_dir</title> - <para> - Это название директории шаблонов по умолчанию. Если вы не - передадите тип ресурса во время подключения файлов, они будут - искаться здесь. Значение по умолчанию - "./templates", а это значит, что - движок будет искать шаблоны в поддиректории templates той директории, в которой - выполняется php-скрипт. - </para> - <note> - <title>Техническое замечание</title> - <para> - Не рекоммендуется размещать эту директорию в пределах - корневой директории веб-сервера. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-trusted-dir.xml
Deleted
@@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.trusted.dir"> - <title>$trusted_dir</title> - <para> - $trusted_dir используется только при включенном параметре $security. Это массив - всех директорий, которые считаются надёжными. Надёжные директории - это директории, - в которых вы храните свои php-скрипты, которые включаются прямо в шаблоны при помощи - директивы <link linkend="language.function.include.php">{include_php}</link>. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/api-variables/variable-use-sub-dirs.xml
Deleted
@@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> - <sect1 id="variable.use.sub.dirs"> - <title>$use_sub_dirs</title> - <para> - Установите это в false если ваше окружение PHP не разрешает создание директорий - от имени Smarty. Поддиректории более эффективны, так что используйте их, - если можете. - </para> - <note> - <title>Техническое замечание</title> - <para> - Начиная с версии Smarty 2.6.2, значением по умолчанию для <varname>use_sub_dirs</varname> является false. - </para> - </note> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> \ No newline at end of file
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/caching
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/caching.xml
Deleted
@@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<chapter id="caching"> - <title>Кэширование</title> - <para> - Кэширование используется для ускорения вызовов <link - linkend="api.display">display()</link> или <link - linkend="api.fetch">fetch()</link> при помощи сохранения результатов - их работы в файл. Если доступна кэшированная версия вызова, она отображается - вместо повторной обработки шаблона. Кэширование может значительно ускорить - работу, особенно в случае длительно обрабатываемых шаблонов. - Так как результат работы методов <link - linkend="api.display">display()</link> или <link - linkend="api.fetch">fetch()</link> кэшируется, один файл кэша вполне может - состоять из нескольких файлов шаблонов, конфигурационных файлов и т.д. - </para> - <para> - Так как шаблоны динамичны, очень важно быть осторожным относительно того, - что вы кэшируете и на какой период. Например, если вы отображаете главную - страницу вашего сайта, которая меняет своё содержимое достаточно редко, - хорошей идеей может быть кэширование этой страницы на час и более. - С другой стороны, если вы отображаете страницу с картой погоды, которая - обновляется ежеминутно, смысла в кэшировании этой страницы нет. - </para> - &programmers.caching.caching-setting-up; - &programmers.caching.caching-multiple-caches; - &programmers.caching.caching-groups; - &programmers.caching.caching-cacheable; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/caching/caching-cacheable.xml
Deleted
@@ -1,142 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> - <sect1 id="caching.cacheable"> - <title>Управление кэшированием результатов работы плагинов</title> - <para> - Начиная с плагинов Smarty-2.6.0, кэшируемость плагинов может быть объявлена - во время их регистрации. Третий аргумент у register_block, - register_compiler_function и register_function называется - <parameter>$cacheable</parameter> и имеет значение по умолчанию true, - что соответствует поведению плагинов Smarty версии ранее 2.6.0 - </para> - - <para> - Если плагин регистрируется с $cacheable=false, плагин вызывается - каждый раз, когда страница отображается, даже если сама страница - кэширована. Поведение плагина немного похоже на функцию - <link linkend="plugins.inserts">insert</link>. - </para> - - <para> - В отличие от <link linkend="language.function.insert">{insert}</link>, - атрибуты плагина не кэшируются по умолчанию. Они могут быть - объявлены как кэшируемые при помощи четвертого параметра - - <parameter>$cache_attrs</parameter>. <parameter>$cache_attrs</parameter> - это массив имен атрибутов, которые должны кэшироваться, чтобы - функция плагина брала значение в том виде, в котором оно было в момент - помещения страницы в кэш, каждый раз, когда страница запрашивается из кэша. - </para> - - <example> - <title>Предотвращение кэширования результата работы плагина</title> - <programlisting role="php"> -<![CDATA[ -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // извлекаем $obj из БД и присваиваем... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Шаблон index.tpl: - </para> - <programlisting> -<![CDATA[ -Оставшееся время: {remaining endtime=$obj->endtime} -]]> - </programlisting> - <para> - Количество секунд до endtime объекта $obj изменяется при каждом - обновлении страницы, даже если страница кэширована. Так как - атрибут endtime кэширован, объект извлекается из базы данных в тот момент, - когда страница помещается в кэш, но не во время последующих запросов - к странице. - </para> - </example> - - <example> - <title>Предотвращение кэширования части страницы</title> - <programlisting role="php"> -<![CDATA[ -index.php: - -<?php -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - </programlisting> - <para> - Шаблон index.tpl: - </para> - <programlisting> -<![CDATA[ -Страница кэширована: {"0"|date_format:"%D %H:%M:%S"} - -{dynamic} - -Текущее время: {"0"|date_format:"%D %H:%M:%S"} - -... выполняем разные действия ... - -{/dynamic} -]]> - </programlisting> - </example> - - <para> - Во время обновления страницы вы заметите, что даты отличаются. - Одна является "динамической", другая - "статической". Вы можете поместить - в конструкцию {dynamic}...{/dynamic} любой код и быть уверенным, - что он не будет помещён в кэш вместе с остальной частью страницы. - </para> - - </sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/caching/caching-groups.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="caching.groups"> - <title>Групповое кэширование</title> - <para> - Вы можете сделать группировку более продуманной, используя групповые значения cache_id. - В таком случае, каждая подгруппа отделяется знаком вертикальной черты "|" в - значении cache_id. Возможно создавать любое количество подгрупп. - </para> - <para> - Вы можете представить себе группы кэширования в виде иерархии каталогов. - К примеру, группа кэширования "a|b|c" соответствует структуре каталогов - "/a/b/c/". clear_cache(null,"a|b|c") - это всё равно, что удалить файлы из - "/a/b/c/*". clear_cache(null,"a|b") соответствует удалению файлов - "/a/b/*". Если вы укажете compile_id, например - clear_cache(null,"a|b","foo"), он добавляется в конец группы кэширования: - "/a/b/c/foo/". Если вы укажете имя шаблона, например - clear_cache("foo.tpl","a|b|c"), то Smarty попытается удалить - "/a/b/c/foo.tpl". Вы НЕ можете удалить определенный шаблон из - нескольких групп кэширования, наподобие "/a/b/*/foo.tpl" - группы кэширования - работают ТОЛЬКО слева направо. Вам нужно будет сгруппировать шаблоны - под единой иерархией групп кэширования, чтобы иметь возможность очистить - их как группу. - </para> - <para> - Групповое кэширование не следует путать с иерархией директорий шаблонов. - Групповое кэширование не имеет представления о том, как структурированы - ваши шаблоны. К примеру, если структура ваших шаблонов выглядит как - "themes/blue/index.tpl" и вы хотите иметь возможность очистить все файлы кэша - для темы "blue", вам нужно создать такую структуру групп кэширования, которая - бы повторяла файловую структуру ваших шаблонов, например - display("themes/blue/index.tpl","themes|blue"), а затем очистить их вот так: - clear_cache(null,"themes|blue"). - </para> - <example> - <title>Группы в cache_id</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// Удалить все кэшированные копии подгруппы "sports|basketball" -$smarty->clear_cache(null,"sports|basketball"); - -// Удалить все кэшированные копии группы "sports", -// включая "sports|basketball", или "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports|basketball"); -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/caching/caching-multiple-caches.xml
Deleted
@@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="caching.multiple.caches"> - <title>Множественное кэширование страниц</title> - <para> - Вы можете создавать несколько кэшированных копий для одного вызова функции display() или - fetch(). Предположим, что по вызову display('index.tpl') должны отображаться данные, - содержимое которых зависит от определенных условий, и вы хотите иметь несколько вариантов - соответствующих кэшированных копий. Для этого необходимо передать в функцию идентификатор - кэша (cache_id) в качестве второго параметра. - </para> - <example> - <title>Вызов display() с идентификатором кэша</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -]]> - </programlisting> - </example> - <para> - В примере мы передали переменную $my_cache_id в функцию display() - в качестве cache_id. Для каждого уникального значения $my_cache_id будет создана - кэшированная копия вывода index.tpl. Здесь, значение "article_id" было передано в скрипт - через URL, присвоено переменной $my_cache_id и использовано как cache_id. - </para> - <note> - <title>Техническое замечание</title> - <para> - Будьте очень осторожными при передаче значений от клиента (браузера) - в Smarty (как и в любое PHP-приложение). Хотя приведенный пример - фактического использования article_id прямо из URL выглядит нормально, - он может иметь неприятные последствия. Значение cache_id используется для - создания директории в файловой системе, поэтому, если пользователь решит - передать крайне большое значение article_id или написать скрипт, - который посылает случайные article_id с огромной частотой, это может вызвать - проблемы на уровне сервера. Поэтому вам необходимо в обязательном порядке - проверять данные из форм, перед тем как использовать их. В нашем случае, - мы заранее знаем, что значение article_id имеет длину в 10 символов, состоит - только из букв и цифр, а так же должно являться реальным - идентификатором в базе данных. Все это необходимо проверить! - </para> - </note> - <para> - Имейте ввиду, что тоже самое значение cache_id необходимо использовать - как второй параметр - в функциях <link linkend="api.is.cached">is_cached()</link> и - <link linkend="api.clear.cache">clear_cache()</link>, если вы хотите применить - их к конкретному кэшу. - </para> - <example> - <title>Передача cache_id в is_cached()</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // Кэша нет, поэтому присваиваем значение переменным. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -]]> - </programlisting> - </example> - <para> - Вы можете удалить все кэшированные копии с конкретным cache_id, передав null в качестве - первого параметра clear_cache(). - </para> - <example> - <title>Удаление всех кэшированных копий с конкретным cache_id</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// удаляем все кэшированные копии со значением "sports" в качестве cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -]]> - </programlisting> - </example> - <para> - Таким образом, вы можете группировать ваши кэшированные копии, назначая им - одинаковые cache_id. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/caching/caching-setting-up.xml
Deleted
@@ -1,184 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="caching.setting.up"> - <title>Настройка кэширования</title> - <para> - Прежде всего, кэширование необходимо активировать. Это можно сделать, - установив <link linkend="variable.caching">$caching</link> = true (или 1). - </para> - <example> - <title>Включение кэширования</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$smarty->display('index.tpl'); -]]> - </programlisting> - </example> - <para> - При включенном кэшировании, вызываемая функция display('index.tpl') интерпретирует - шаблон как обычно, но также сохраняет копию вывода в файл (кэшированую копию) - в <link linkend="variable.cache.dir">$cache_dir</link>. - При следующем вызове display('index.tpl'), вместо повторной интерпретации шаблона, - будет использована кешированая копия. - </para> - <note> - <title>Техническое замечание</title> - <para> - Файлы в директории $cache_dir имеют те же имена, что и соответствующие - шаблоны. Их имена оканчиваются расширением ".php", но на самом деле они не являются - выполняемыми php-скриптами. Не редактируйте эти файлы! - </para> - </note> - <para> - Каждая кэшированая страничка существует на протяжении определенного времени, - указанного в <link linkend="variable.cache.lifetime">$cache_lifetime</link>. - Значение по умолчанию равно 3600 секундам или 1 часу. После того, как это время - истекает, кэш обновляется. Существует возможность присвоить каждой - кэшированой страничке собственное время жизни, установив $caching = 2. - Смотрите документацию <link linkend="variable.cache.lifetime">$cache_lifetime</link> - для получения подробных сведений. - </para> - <example> - <title>Установка собственного cache_lifetime для кэшированой копии</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // Срок действия только для этой копии - -// устанавливаем cache_lifetime для index.tpl в 5 минут -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// устанавливаем cache_lifetime для home.tpl в 1 час -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// Примечание: следующая $cache_lifetime настройка не будет работать, когда $caching = 2. -// Срок жизни кэша для home.tpl уже был установлен -// в 1 час, и Smarty больше не будет обращать внимание на значение $cache_lifetime. -// Время жизни кэша home.tpl по прежнему будет истекать по прошествию одного часа. -$smarty->cache_lifetime = 30; // 30 секунд -$smarty->display('home.tpl'); -]]> - </programlisting> - </example> - <para> - Если включен параметр <link linkend="variable.compile.check">$compile_check</link>, - то каждый файл шаблона и конфигурации, связанный с файлом кэша, проверяется на - наличие изменений. Если один из этих файлов был модифицирован с тех пор, как - кэш был создан, кэш немедленно обновляется. Это незначительно повышает нагрузку, - поэтому, для оптимальной производительности оставьте значение $compile_check - равным false. - </para> - <example> - <title>Включение $compile_check</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -]]> - </programlisting> - </example> - <para> - Если <link linkend="variable.force.compile">$force_compile</link> - активирован, файлы кэша всегда будут обновляться. Это средство можно - использовать для отключения кэширования во время отладки. - $force_compile обычно используется только в целях отладки, так как более - правильным способом отключения кеширования является установка - <link linkend="variable.caching">$caching</link> = false (или 0). - </para> - <para> - Функция <link linkend="api.is.cached">is_cached()</link> может быть - использована для определения, имеется ли у шаблона работоспособный кэш. - Если у вас есть кэшированый шаблон, которому необходимо, например, - получить выборку из базы данных, вы можете использовать эту функцию, - чтобы пропустить процесс обращения к базе. - </para> - <example> - <title>Использование is_cached()</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // Кэш отсутствует, значит присваеваем значения переменным. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -]]> - </programlisting> - </example> - <para> - Вы можете сделать так, чтобы часть страницы оставалась динамической, даже - если страница кэшируется, при помощи встроенной функции <link - linkend="language.function.insert">insert</link>. Например, - кэшироваться может вся страница, за исключением баннера. - Используя функцию insert для баннера, вы можете сохранять - этот элемент динамичным, внутри кэшированой странички. Смотрите - документацию по <link linkend="language.function.insert">insert</link> для - получения подробностей и примеров. - </para> - <para> - Очистить все файлы кэша можно при помощи функции - <link linkend="api.clear.all.cache">clear_all_cache()</link>, а - конкретный файл кэша (или группу) - вызвав - <link linkend="api.clear.cache">clear_cache()</link> функцию. - </para> - <example> - <title>Очистка кэша</title> - <programlisting> -<![CDATA[ -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// очищаем все файлы кэша -$smarty->clear_all_cache(); - -// очищаем только кэш шаблона index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins.xml
Deleted
@@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1672 Maintainer: freespace Status: ready --> -<chapter id="plugins"> - <title>Плагины - расширение функциональности Smarty</title> - <para> - Архитектура версии 2.0 позволяет внедрять плагины, которыми являются - практически все настраиваемые элементы функционала Smarty. Сюда входят: - <itemizedlist spacing="compact"> - <listitem><simpara>функции</simpara></listitem> - <listitem><simpara>модификаторы</simpara></listitem> - <listitem><simpara>блоковые функции</simpara></listitem> - <listitem><simpara>функции компилятора</simpara></listitem> - <listitem><simpara>префильтры</simpara></listitem> - <listitem><simpara>постфильтры</simpara></listitem> - <listitem><simpara>фильтры вывода</simpara></listitem> - <listitem><simpara>ресурсы</simpara></listitem> - <listitem><simpara>вставки</simpara></listitem> - </itemizedlist> - За исключением ресурсов, в целях обратной совместимости с - предыдущими версиями, сохранена возможность регистрации функций - посредством register_* API. - Если вы не используете API, а вместо этого модифицируете свойства - <literal>$custom_funcs</literal>, <literal>$custom_mods</literal> и - некоторые другие напрямую, тогда вам придется подогнать ваши скрипты под - использование API или преобразовать добавленную вами функциональность в - плагины. - </para> - &programmers.plugins.plugins-howto; - &programmers.plugins.plugins-naming-conventions; - &programmers.plugins.plugins-writing; - &programmers.plugins.plugins-functions; - &programmers.plugins.plugins-modifiers; - &programmers.plugins.plugins-block-functions; - &programmers.plugins.plugins-compiler-functions; - &programmers.plugins.plugins-prefilters-postfilters; - &programmers.plugins.plugins-outputfilters; - &programmers.plugins.plugins-resources; - &programmers.plugins.plugins-inserts; -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-block-functions.xml
Deleted
@@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.block.functions"> - <title>Блоковые функции</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>mixed <parameter>$content</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - <paramdef>boolean <parameter>&$repeat</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Блоковые функции выглядят следующим образом: {func} .. {/func}. Другими словами, - они заключены в определенном блоке шаблона и оперируют содержимым этого блока. - Блоковые функции имеют приоритет перед пользовательскими функциями, имеющими то же имя, - поэтому, вы не сможете использовать одновременно свои функции вида {func} и - блоковые функции {func} .. {/func}. - </para> - <para> - Smarty вызывает ваши функции дважды: - первый раз при открытии тэга и второй раз при закрытии тэга. - </para> - <para> - Только открывающий тэг блоковой функции может иметь атрибуты. Все - атрибуты, переданные в функцию из шаблона сохраняются - в <parameter>$params</parameter> в виде ассоциативного массива. Вы можете - получить прямой доступ к их значениям: - <varname>$params['start']</varname> или использовать - <varname>extract($params)</varname> для импорта. - Атрибуты, переданные в открывающем тэге доступны для вашей функции - до обработки закрывающего тэга включительно. - </para> - <para> - Значение переменной <parameter>$content</parameter> зависит от того, - вызывается ли ваша функция для открывающего тэга или вызов происходит при закрытии тэга. - В случае с открывающим тэгом, это значение будет равно <literal>null</literal>, а в случае - закрывающего тэга, значение будет равно содержимому блока в шаблоне. - Заметьте, что этот блок шаблона уже будет обработан - Smarty и на выводе вы получите результат обработки, а не - исходный код шаблона. - </para> - - <para> - Параметр <parameter>&$repeat</parameter> передается по - ссылке в функцию и дает ей возможность контролировать - количество отображений блока. - По умолчанию <parameter>$repeat</parameter> равен <literal>true</literal> - во время первого вызова блоковой функции (открывающий тэг блока) - и <literal>false</literal> при всех последующих вызовах блоковой функции - (закрывающий тэг блока). - Каждый раз, когда ваша функция возвращает параметр <parameter>&$repeat</parameter> - равный <literal>true</literal>, содержимое между - {func} .. {/func} обрабатывается и ваша функция вновь вызывается, причем новое содержимое - блока передается в параметре <parameter>$content</parameter>. - </para> - - <para> - Если вы используете вложенные блоковые функции, есть возможность определять родительские - блоковые функции. Достаточно получить значение переменной - <varname>$smarty->_tag_stack</varname>. Затем останется только применить var_dump() - для нее и структура будет видна. - </para> - <para> - Смотрите также: - <link linkend="api.register.block">register_block()</link>, - <link linkend="api.unregister.block">unregister_block()</link>. - </para> - <example> - <title>Блоковая функция</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: block.translate.php - * Тип: block - * Имя: translate - * Назначение: перевести блок (кусок) текста - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, &$smarty) -{ - if ($content) { - $lang = $params['lang']; - // здесь выполнить интеллектуальный перевод строки $content - echo $translation; - } -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-compiler-functions.xml
Deleted
@@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.compiler.functions"> - <title>Функции компилятора</title> - <para> - Функции компилятора, как вы наверное догадались, вызываются - только в процессе компиляции шаблона. Они могут быть полезными - для вставки кода PHP или чувствительного ко времени статического - контента в шаблон. Если одновременно зарегестрированы две - одноименные функции - пользовательская и компилятора, то приоритет - будет у функции компилятора. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$tag_arg</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Функция компилятора имеет два параметра: строку аргументов тэга - - чаще всего это все, что следует от наименования функции до правого - разделителя, и объект Smarty. Функция должна возвращать PHP-код - для вствки в скомпилированный шаблон. - </para> - <para> - Смотрите также - <link linkend="api.register.compiler.function">register_compiler_function()</link>, - <link linkend="api.unregister.compiler.function">unregister_compiler_function()</link>. - </para> - <example> - <title>Простой пример функции компилятора</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* -* Smarty plugin -* ------------------------------------------------------------- -* Файл: compiler.tplheader.php -* Тип: compiler -* Имя: tplheader -* Назначение: вывести заголовок, содержащий имя исходного файла и -* время, когда он был скомпилирован. -* ------------------------------------------------------------- -*/ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ -return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]></programlisting> - <para> - Эта функция может быть вызвана из шаблона следующим образом: - </para> - <programlisting> -<![CDATA[ -{* Функция выполняется только при компиляции шаблона *} -{tplheader} -]]> - </programlisting> - <para> - Результирующий код PHP в скомпилированном шаблоне будет выглядеть примерно так: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-functions.xml
Deleted
@@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.functions"> - <title>Функции шаблона</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Все атрибуты, передаваемые в функции шаблона из самого шаблона, - хранятся в <parameter>$params</parameter> в виде ассоциативного массива. - Получить доступ к его значениям можно напрямую: - <varname>$params['start']</varname> или используя - <varname>extract($params)</varname> для импорта в таблицу. - </para> - <para> - Вывод (возвращаемое значение) функции будет подставлен в место расположения - тэга функции в шаблоне (функция <function>fetch</function> например). - В качестве альтернативы, функция может выполнять какие либо действия - без какого-либо вывода (<function>assign</function> функция). - </para> - <para> - Если функция должна присвоить(assign) значения некоторым переменным в шаблоне или - использовать иные возможности Smarty, то можно работать с объектом - <parameter>$smarty</parameter> как обычно. - </para> - <para> - См. также: - <link linkend="api.register.function">register_function()</link>, - <link linkend="api.unregister.function">unregister_function()</link>. - </para> - <para> - <example> - <title>Функция-плагин с выводом</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Да', - 'Нет', - 'Никоим образом', - 'Перспектива так себе...', - 'Спросите позже', - 'Все может быть'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> -]]> - </programlisting> - </example> - </para> - <para> - которая может быть использована в шаблоне следующим образом: - </para> - <programlisting> -<![CDATA[ -Вопрос: Мы когда-нибудь найдем время для отпуска? -Ответ: {eightball}. -]]> - </programlisting> - <para> - <example> - <title>Функция-плагин без вывода</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - extract($params); - - if (empty($var)) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($var, $value); -} -?> -]]> - </programlisting> - </example> - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-howto.xml
Deleted
@@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 1685 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.howto"> - <title>Как работают плагины</title> - <para> - Плагины загружаются только по необходимости. Только те модификаторы, - функции, ресурсы и т.д., которые используются в шаблоне, будут - загружены. К тому же, каждый плагин загружается только один раз, - даже если у вас есть несколько экземпляров Smarty, работающих - в пределах одного запроса. - </para> - <para> - Пре/постфильтры и фильтры вывода заслуживают отдельного упоминания. - Так как они не упоминаются в шаблонах, они должны быть зарегистрированы - и загружены неявно через API-функции ещё до обработки шаблона. - Порядок выполнения нескольких фильтров одного типа зависит от - порядка, в котором они регистрировались или загружались. - </para> - <para> - <link linkend="variable.plugins.dir">Директория плагинов</link> - может быть строкой, содержащей путь, или массивом, содержащим - множество путей. Чтобы установить плагин, просто поместите его - в одну из этих директорий и Smarty автоматически будет его использовать. - </para> -</sect1> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-inserts.xml
Deleted
@@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.inserts"> - <title>Вставки</title> - <para> - Плагины вставок используются для исполнения функций, вызываемых тэгом - <link linkend="language.function.insert"><command>insert</command></link> - в шаблоне. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> - <paramdef>array <parameter>$params</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Первый параметр функции представляет собой ассоциативный массив атрибутов, - переданых для вставки. Доступ к этим значениям можно получить как напрямую: - т.е. <varname>$params['start']</varname> так и используя - <varname>extract($params)</varname> для импорта. - </para> - <para> - Функция вставки возвращает результат, которым будет - заменен тэг <command>insert</command> в шаблоне. - </para> - <example> - <title>Плагин вставки</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: insert.time.php - * Тип: time - * Имя: time - * Назначение: Вставка текущей даты/времени в определенном формате - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-modifiers.xml
Deleted
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.modifiers"> - <title>Модификаторы</title> - <para> - Модификаторы - это маленькие функции, которые воздействуют на переменные в - шаблоне перед тем, как те будут выведены на экран или использованы в ином контексте. - Для каждой переменной шаблона, одновременно могут быть использованы несколько модификаторов. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>smarty_modifier_<replaceable>name</replaceable></function></funcdef> - <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>[mixed <parameter>$param1</parameter>, ...]</paramdef> - </funcprototype> - </funcsynopsis> - <para> - Первый параметр плагина-модификатора это значение в отношении которого - модификатор будет применен. Остальные параметры могут быть - произвольными, в зависимости от операций, которые они осуществляют. - </para> - <para> - Модификатор должен возвращать результат, полученный в процессе своего выполнения. - </para> - <para> - Смотрите также: - <link linkend="api.register.modifier">register_modifier()</link>, - <link linkend="api.unregister.modifier">unregister_modifier()</link>. - </para> - <example> - <title>Простой плагин-модификатор</title> - <para> - Этот плагин в своей основе является аналогом одной из PHP-функций. Он - не имеет никаких дополнительных параметров. - </para> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: modifier.capitalize.php - * Тип: modifier - * Имя: capitalize - * Назначение: Сделать первую букву каждого слова в - * строке прописной - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> -]]> - </programlisting> - </example> - <example> - <title>Более сложный модификатор</title> - <programlisting role="php"> - <![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: modifier.truncate.php - * Тип: modifier - * Имя: truncate - * Назначение: Урезать строку до определенной длины, - * при необходимости обрезать слово на половине и присоеденить строку $etc. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-naming-conventions.xml
Deleted
@@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.naming.conventions"> - <title>Соглашение об именах</title> - <para> - При присвоении имен файлам и функциям плагинов, необходимо придерживаться определенных - правил, чтобы Smarty находил и мог использовать эти плагины. - </para> - <para> - Имена файлов плагинов должны формироваться по следующей схеме: - <blockquote> - <para> - <filename> - <replaceable>type</replaceable>.<replaceable>name</replaceable>.php - </filename> - </para> - </blockquote> - </para> - <para> - Где <literal>type (тип)</literal> это один из следующих типов плагинов: - <itemizedlist spacing="compact"> - <listitem><simpara>function</simpara></listitem> - <listitem><simpara>modifier</simpara></listitem> - <listitem><simpara>block</simpara></listitem> - <listitem><simpara>compiler</simpara></listitem> - <listitem><simpara>prefilter</simpara></listitem> - <listitem><simpara>postfilter</simpara></listitem> - <listitem><simpara>outputfilter</simpara></listitem> - <listitem><simpara>resource</simpara></listitem> - <listitem><simpara>insert</simpara></listitem> - </itemizedlist> - </para> - <para> - и <literal>name (имя)</literal> соответствует правилам наименования идентификаторов в PHP - (только буквы, цифры и знак подчеркивания). - </para> - <para> - Несколько примеров: <literal>function.html_select_date.php</literal>, - <literal>resource.db.php</literal>, - <literal>modifier.spacify.php</literal>. - </para> - <para> - Функции, находящиеся внутри файлов плагинов, должны именоваться следующим образом: - <blockquote> - <para> - <function>smarty_<replaceable>type</replaceable>_<replaceable>name</replaceable></function> - </para> - </blockquote> - </para> - <para> - Значения <literal>type</literal> и <literal>name</literal> те же, что прежде. - </para> - <para> - Smarty выдаст сообщение об ошибке, если необходимый файл плагина - не будет найден, или файл плагина, а так же функция плагина - будут названы неправильно. - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-outputfilters.xml
Deleted
@@ -1,67 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.outputfilters"> - <title>Фильтры вывода</title> - <para> - Плагины фильтров вывода оперирут выходным кодом шаблона после того, как - шаблон был загружен и обработан, но перед его выводом в браузер. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$template_output</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Первый параметр функции фильтра вывода - это выходной код шаблона - который должен быть обработан, а второй параметр - это - экземпляр объекта Smarty, вызвавший этот плагин. Плагин предназначен для обработки - и возврата результата. - </para> - <example> - <title>Плагин фильтра вывода</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: outputfilter.protect_email.php - * Тип: outputfilter - * Имя: protect_email - * Назначение: Конвертировать символ @ в адресах email в %40 для - * простейшей защиты от спамботов. - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-prefilters-postfilters.xml
Deleted
@@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.prefilters.postfilters"> - <title>Префильтры/Постфильтры</title> - <para> - Концепция плагинов префильтров и постфильтров очень проста; они - отличаются местом исполнения, или, точнее, временем их исполнения. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Префильтры используются для обработки исходного кода шаблона непосредственно - перед компиляцией. Первый параметр функции префильтра - это - исходный код шаблона, который, возможно, уже изменен другими префильтрами. - Такой плагин возвращает модифицированый исходный код. Заметьте, что - этот исходный код нигде не сохраняется, он используется только для компиляции. - </para> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> - <paramdef>string <parameter>$compiled</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Постфильтры используются для обработки скомпилированного вывода шаблона - (по сути - PHP-кода) сразу по завершению компиляции, но перед сохранением - откомпилированного шаблона в файловой системе. Первым параметром - функции постфильтра является скомпилированный код шаблона, возможно - уже модифицированый другими постфильтрами. Плагин возвращает - модифицированную версию этого кода. - </para> - <example> - <title>Плагин префильтра</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: prefilter.pre01.php - * Тип: prefilter - * Имя: pre01 - * Назначение: Перевести все тэги html в нижний регистр. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>;]+>!e', 'strtolower("$1")', $source); - } - ?> -]]> - </programlisting> - </example> - <para></para> - <example> - <title>Плагин постфильтра</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: postfilter.post01.php - * Тип: postfilter - * Имя: post01 - * Назначение: Вывести код, перечисляющий все текущие - * переменные шаблона. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-resources.xml
Deleted
@@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.resources"> - <title>Ресурсы</title> - <para> - Плагины ресурсов описывают источники данных, из которых берется исходный - код шаблона или компоненты PHP-скрипта для Smarty. Вот примеры ресурсов: - базы данных, LDAP, разделяемая память (shared memory), сокеты, и прочее. - </para> - - <para> - Необходимо 4 функции для того, чтобы зарегестрировать - каждый тип ресурса. Каждая такая функция получает запрашиваемый ресурс в качестве - первого параметра и объект Smarty как последний параметр. - Остальные параметры зависят от функции. - </para> - - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>string <parameter>&$source</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>int <parameter>&$timestamp</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - <funcprototype> - <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> - <paramdef>string <parameter>$rsrc_name</parameter></paramdef> - <paramdef>object <parameter>&$smarty</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - Первая функция получает ресурс. Ее первый - параметр, это переменная, переданная по ссылке. В нее будет сохранен результат. - Функция вернет <literal>true</literal> если - сможет удачно получить ресурс и - <literal>false</literal> в ином случае. - </para> - - <para> - Вторая функция получает время последней модификации - запрошенного ресурса (в виде UNIX timestamp). Второй параметр - представляет собой переменную, переданную по ссылке, в которой и будет сохранено время. - Функция вернет <literal>true</literal> если - timestamp будет определен в правильной форме, и <literal>false</literal> - в ином случае. - </para> - - <para> - Третья функция возвращает <literal>true</literal> или - <literal>false</literal> в зависимости от того, является ли - запрашиваемый ресурс безопасным. Эта функция используется только для ресурсов шаблона, но - в любом случае должна быть определена. - </para> - - <para> - Четвертая функция возвращает <literal>true</literal> или - <literal>false</literal> в зависимости от того, заслуживает ли запрашиваемый ресурс доверия - (is trusted) или нет. Эта функция используется только для компонентов PHP-скрипта, - запрошенных тэгом <command>include_php</command> или - <command>insert</command> с <structfield>src</structfield> - атрибутом. Тем не менее, она должна объявляться даже для ресурсов шаблона. - </para> - <para> - Смотрите также: - <link linkend="api.register.resource">register_resource()</link>, - <link linkend="api.unregister.resource">unregister_resource()</link>. - </para> - <example> - <title>Плагин ресурса</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * Файл: resource.db.php - * Тип: resource - * Имя: db - * Назначение: Получает шаблон из базы данных - * ------------------------------------------------------------- - */ - function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // выполняем обращение к базе данных для получения шаблона - // и занесения полученного результата в в $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // выполняем обращение к базе данных для присвоения значения $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // предполагаем, что шаблоны безопасны - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // не используется для шаблонов -} -?> -]]> - </programlisting> - </example> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/plugins/plugins-writing.xml
Deleted
@@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<sect1 id="plugins.writing"> - <title>Написание плагинов</title> - <para> - Smarty может подгружать плагины автоматически из - файловой системы или регистрировать их во время выполнения - (at runtime) посредством одной из register_* API функций. - Их также можно дерегистрировать, используя unregister_* API функции. - </para> - <para> - Плагинам, которые регистрируются во время выполнения, - могут присваиваться имена не соответствующие правилам соглашения об именах. - </para> - <para> - Если плагин зависит от некоторых функций другого плагина - (как в некоторых случаях с плагинами, поставляемыми вместе со Smarty), то - такой плагин можно загрузить следующим образом: - </para> - <programlisting role="php"> -<![CDATA[ -<?php -require_once $smarty->_get_plugin_filepath('function', 'html_options'); -?> -]]> - </programlisting> - <para> - Важно знать, что объект Smarty всегда передаётся в плагин последним параметром - (за двумя исключениями: модификатором объект Smarty вообще не передаётся, а - блоки получают <parameter>&$repeat</parameter> следом за объектом Smarty - в целях обратной совместимости с ранними версиями Smarty). - </para> -</sect1> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/ru/programmers/smarty-constants.xml
Deleted
@@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 2761 $ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<chapter id="smarty.constants"> - <title>Константы</title> - - <sect1 id="constant.smarty.dir"> - <title>SMARTY_DIR</title> - <para> - Эта константа должна содержать <emphasis role="bold">полный путь</emphasis> - к файлам класса Smarty. - Если константа не определена, Smarty будет пытаться определить путь - самостоятельно. При определении данной константы, - <emphasis role="bold">слэш в конце строки обязателен</emphasis>. - </para> - <example> - <title>SMARTY_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php -// устанавливает путь к директории Smarty в стиле *nix -define('SMARTY_DIR', '/usr/local/lib/php/Smarty/libs/'); - -// путь к директории Smarty в стиле windows -define('SMARTY_DIR', 'c:/webroot/libs/Smarty/libs/'); - -// подключаем класс Smarty - обратите внимание на заглавную 'S' -require_once(SMARTY_DIR . 'Smarty.class.php'); -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.variables.smarty.const">$smarty.const</link> - и - <link linkend="variable.php.handling">константы $php_handling</link> - </para> - </sect1> - - <sect1 id="constant.smarty.core.dir"> - <title>SMARTY_CORE_DIR</title> - <para> - Это полный путь к файлам ядра (core) Smarty. - Если он не установлен, Smarty будет использовать значение по умолчанию - - путь к поддиректории <emphasis>internals/</emphasis> директории - <link linkend="constant.smarty.dir">SMARTY_DIR</link>. - Если константа определена, путь должен заканчиваться слэшем. - Используйте эту константу, когда вручную подключаете любой из - core.* файлов. - </para> - <example> - <title>SMARTY_CORE_DIR</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// загружаем core.get_microtime.php -require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); - -?> -]]> - </programlisting> - </example> - <para> - См. также - <link linkend="language.variables.smarty.const">$smarty.const</link> - </para> - </sect1> -</chapter> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 --->
View file
Smarty-3.1.13.tar.gz/documentation/scripts
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/scripts/..htmlweb
Deleted
-(directory)
View file
Smarty-3.1.13.tar.gz/documentation/scripts/makeweb.php
Deleted
@@ -1,45 +0,0 @@ -<?php - -// make website templates from HTML pages -// open the current directory - -$langdir = dirname(__FILE__).'/../'.$argv[1]; -$webdir = !empty($argv[2]) ? dirname(__FILE__).'/../'.$argv[2] : dirname(__FILE__).'/../htmlweb'; - -if(empty($argv[1])) - die("usage: {$argv[0]} [manual-dir]\n"); -if(!is_dir($langdir)) - die("manual dir ({$langdir})) must exist\n"); - -if(!is_dir($webdir)) - mkdir($webdir)||die("unable to make dir ({$webdir})\n"); - -$dhandle = new RecursiveDirectoryIterator($langdir); - -foreach (new RecursiveIteratorIterator($dhandle) as $fpath) { - if(substr($fpath,-4)=='.tpl') { - $content = file_get_contents($fpath); - $fname = basename($fpath); - preg_match('!<title>(.*?)</title>!s',$content,$match); - $title = $match[1]; - preg_match('!<body[^>]*>(.*?)</body>!s',$content,$match); - $body = $match[1]; - $body = str_replace(array('{','}','@@LDELIM@@','@@RDELIM@@'),array('@@LDELIM@@','@@RDELIM@@','{ldelim}','{rdelim}'),$body); - $title = str_replace(array('{','}','@@LDELIM@@','@@RDELIM@@'),array('@@LDELIM@@','@@RDELIM@@','{ldelim}','{rdelim}'),$title); - $description = $title; - $keywords = preg_replace(array('![^\w\s]+!','!\s+!'),array(' ',', '),strtolower(trim($title))); - // fix link filenames, remove .tpl - //$body = preg_replace('!href="(.*)\.tpl(#.*)?"!','href="$1$2"',$body); - $template = "{extends file='layout.tpl'}\n"; - $template .= "{block name=title}@TITLE@{/block}\n"; - $template .= "{block name=description}@DESCRIPTION@{/block}\n"; - $template .= "{block name=keywords}@KEYWORDS@{/block}\n"; - $template .= "{block name=main_content}@BODY@{/block}\n"; - $template = str_replace(array('@TITLE@','@BODY@','@DESCRIPTION@','@KEYWORDS@'),array($title,$body,$description,$keywords),$template); - if(!is_dir($webdir)) - mkdir($webdir,0755,true); - file_put_contents($webdir.'/'.$fname,$template); - } -} - -?>
View file
Smarty-3.1.13.tar.gz/documentation/scripts/revcheck.php
Deleted
@@ -1,1062 +0,0 @@ -<?php -/* - +----------------------------------------------------------------------+ - | PHP Version 5 | - +----------------------------------------------------------------------+ - | Copyright (c) 1997-2004 The PHP Group | - +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, | - | that is bundled with this package in the file LICENSE, and is | - | available through the world-wide-web at the following url: | - | http://www.php.net/license/3_0.txt. | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Authors: Thomas Schöfbeck <tom@php.net> | - | Gabor Hojtsy <goba@php.net> | - | Mark Kronsbein <mk@php.net> | - | Jan Fabry <cheezy@php.net> - +----------------------------------------------------------------------+ -*/ -if ($argc < 2 || $argc > 3) { -?> - -Check the revision of translated files against -the actual english xml files, and print statistics - - Usage: - <?php echo $argv[0]; ?> <language-code> [<maintainer>] [><revcheck.html>] - - <language-code> must be a valid language code used - in the repository - - If you specify <maintainer>, the script only checks - the files maintained by the person you add here - - If you specify ><revcheck.html>, the output is an html file. - - Read more about Revision comments and related - functionality in the PHP Documentation Howto: - http://php.net/manual/howto/translation-revtrack.html - - Authors: Thomas Schöfbeck <tom@php.net> - Gabor Hojtsy <goba@php.net> - Mark Kronsbein <mk@php.net> - Jan Fabry <cheezy@php.net> - -<?php - exit; -} - -// Long runtime -set_time_limit(0); - -// disable E_NOTICE -error_reporting(E_ALL ^ E_NOTICE); - -// A file is criticaly "outdated' if -define("ALERT_REV", 10); // translation is 10 or more revisions behind the en one -define("ALERT_SIZE", 3); // translation is 3 or more kB smaller than the en one -define("ALERT_DATE", -30); // translation is 30 or more days older than the en one - -// Revision marks used to flag files -define("REV_UPTODATE", 1); // actual file -define("REV_NOREV", 2); // file with revision comment without revision -define("REV_CRITICAL", 3); // criticaly old / small / outdated -define("REV_OLD", 4); // outdated file -define("REV_NOTAG", 5); // file without revision comment -define("REV_NOTRANS", 6); // file without translation - -define("REV_CREDIT", 7); // only used in translators list -define("REV_WIP", 8); // only used in translators list - -// Colors used to mark files by status (colors for the above types) -$CSS = array( - REV_UPTODATE => "act", - REV_NOREV => "norev", - REV_CRITICAL => "crit", - REV_OLD => "old", - REV_NOTAG => "wip", - REV_NOTRANS => "wip", - REV_CREDIT => "wip", - REV_WIP => "wip", -); - -// Option for the link to cvs.php.net: -define('CVS_OPT', '&view=patch'); -define('CVS_OPT_NOWS', '&view=diff&diff_format=h'); - -// Initializing variables from parameters -$LANG = $argv[1]; -if ($argc == 3) { - $MAINT = $argv[2]; -} else { - $MAINT = ""; -} - -// Main directory of the PHP documentation (depends on the -// sapi used). We do need the trailing slash! -if ("cli" === php_sapi_name()) { - if (isset($PHPDOCDIR) && is_dir($PHPDOCDIR)) - $DOCDIR = $PHPDOCDIR."/"; - else - $DOCDIR = "./"; -} else - $DOCDIR = "../"; - -// ========================================================================= -// Functions to get revision info and credits from a file -// ========================================================================= - -// Grabs the revision tag and stores credits from the file given -function get_tags($file, $val = "en-rev") -{ - // Read the first 500 chars. The comment should be at - // the begining of the file - $fp = @fopen($file, "r") or die ("Unable to read $file."); - $line = fread($fp, 500); - fclose($fp); - - // Check for English CVS revision tag (. is for $ in the preg!), - // Return if this was needed (it should be there) - if ($val == "en-rev") { - preg_match("/<!-- .Revision: (\d+) . -->/", $line, $match); - return $match[1]; - } - - // Handle credits (only if no maintainer is specified) - if ($val == "\\S*") { - - global $files_by_maint; - - // Find credits info, let more credits then one, - // using commas as list separator - if (preg_match("'<!--\s*CREDITS:\s*(.+)\s*-->'U", $line, $match_credit)) { - - // Explode with commas a separators - $credits = explode(",", $match_credit[1]); - - // Store all elements - foreach ($credits as $num => $credit) { - $files_by_maint[trim($credit)][REV_CREDIT]++; - } - - } - } - - // No match before the preg - $match = array(); - - // Check for the translations "revision tag" - preg_match ("/<!--\s*EN-Revision:\s*(\d+)\s*Maintainer:\s*(" - . $val . ")\s*Status:\s*(.+)\s*-->/U", - $line, - $match - ); - - // The tag with revision number is not found so search - // for n/a revision comment (comment where revision is not known) - if (count($match) == 0) { - preg_match ("'<!--\s*EN-Revision:\s*(n/a)\s*Maintainer:\s*(" - . $val . ")\s*Status:\s*(.+)\s*-->'U", - $line, - $match - ); - } - - // Return with found revision info (number, maint, status) - return $match; - -} // get_tags() function end - - -// ========================================================================= -// Functions to check file status in translated directory, and store info -// ========================================================================= - -// Checks a file, and gather status info -function get_file_status($file) -{ - // The information is contained in these global arrays and vars - global $DOCDIR, $LANG, $MAINT, $files_by_mark, $files_by_maint; - global $file_sizes_by_mark; - global $missing_files, $missing_tags, $using_rev; - - // Transform english file name to translated file name - $trans_file = preg_replace("'^".$DOCDIR."en/'", $DOCDIR.$LANG."/", $file); - - // If we cannot find the file, we push it into the missing files list - if (!@file_exists($trans_file)) { - $files_by_mark[REV_NOTRANS]++; - $trans_name = substr($trans_file, strlen($DOCDIR) + strlen($LANG) + 1); - $size = intval(filesize($file)/1024); - $missing_files[$trans_name] = array( $size ); - $file_sizes_by_mark[REV_NOTRANS] += $size; - // compute en-tags just if they're needed in the WIP-Table - if($using_rev) { - $missing_files[$trans_name][] = get_tags($file); - } - return FALSE; - } - - // No specific maintainer, check for a revision tag - if (empty($MAINT)) { - $trans_tag = get_tags($trans_file, "\\S*"); - } - // If we need to check for a specific translator - else { - // Get translated files tag, with maintainer - $trans_tag = get_tags($trans_file, $MAINT); - - // If this is a file belonging to another - // maintainer, than we would not like to - // deal with it anymore - if (count($trans_tag) == 0) { - $trans_tag = get_tags($trans_file, "\\S*"); - // We found a tag for another maintainer - if (count($trans_tag) > 0) { - return FALSE; - } - } - } - - // Compute sizes and diffs - $en_size = intval(filesize($file) / 1024); - $trans_size = intval(filesize($trans_file) / 1024); - $size_diff = intval($en_size) - intval($trans_size); - - // If we found no revision tag, then collect this - // file in the missing tags list - if (count($trans_tag) == 0) { - $files_by_mark[REV_NOTAG]++; - $file_sizes_by_mark[REV_NOTAG] += $en_size; - $missing_tags[] = array(substr($trans_file, strlen($DOCDIR)), $en_size, $trans_size, $size_diff); - return FALSE; - } - - // Distribute values in separate vars for further processing - list(, $this_rev, $this_maint, $this_status) = $trans_tag; - - // Get English file revision - $en_rev = get_tags($file); - - // If we have a numeric revision number (not n/a), compute rev. diff - if (is_numeric($this_rev)) { - $rev_diff = intval($en_rev) - intval($this_rev); - $trans_rev = $this_rev; - } else { - // If we have no numeric revision, make all revision - // columns hold the rev from the translated file - $rev_diff = $trans_rev = $this_rev; - } - - // If the file is up-to-date - if ($rev_diff === 0) { - // Store file by status and maintainer - $files_by_mark[REV_UPTODATE]++; - $files_by_maint[$this_maint][REV_UPTODATE]++; - $file_sizes_by_mark[REV_UPTODATE] += $en_size; - - return FALSE; - } - - // Compute times and diffs - $en_date = intval((time() - filemtime($file)) / 86400); - $trans_date = intval((time() - filemtime($trans_file)) / 86400); - $date_diff = $en_date - $trans_date; - - // Make decision on file category by revision, date and size - if ($rev_diff >= ALERT_REV || $size_diff >= ALERT_SIZE || $date_diff <= ALERT_DATE) { - $status_mark = REV_CRITICAL; - } elseif ($rev_diff === "n/a") { - $status_mark = REV_NOREV; - } else { - $status_mark = REV_OLD; - } - - // Store files by status, and by maintainer too - $files_by_mark[$status_mark]++; - $files_by_maint[$this_maint][$status_mark]++; - $file_sizes_by_mark[$status_mark] += $en_size; - - return array( - "full_name" => $file, - "short_name" => basename($trans_file), - "revision" => array($en_rev, $trans_rev, $rev_diff), - "size" => array($en_size, $trans_size, $size_diff), - "date" => array($en_date, $trans_date, $date_diff), - "maintainer" => $this_maint, - "status" => $this_status, - "mark" => $status_mark - ); - -} // get_file_status() function end - -// ========================================================================= -// A function to check directory status in translated directory -// ========================================================================= - -// Check the status of files in a diretory of smarty/doc XML files -// The English directory is passed to this function to check -function get_dir_status($dir) -{ - - // Collect files and diretcories in these arrays - $directories = array(); - $files = array(); - - // Open the directory - $handle = @opendir($dir); - - // Walk through all names in the directory - while ($file = @readdir($handle)) { - - // If we found a file with one or two point as a name, - // or a CVS directory, skip the file - if (preg_match("/^\.{1,2}/",$file) || $file == 'CVS') - continue; - - // Collect files and directories - if (is_dir($dir.$file)) { $directories[] = $file; } - else { $files[] = $file; } - - } - - // Close the directory - @closedir($handle); - - // Sort files and directories - sort($directories); - sort($files); - - // Go through files first - $dir_status = array(); - foreach ($files as $file) { - // If the file status is OK, append the status info - if ($file_status = get_file_status($dir.$file)) { - $dir_status[] = $file_status; - } - } - - // Then go through subdirectories, merging all the info - // coming from subdirs to one array - foreach ($directories as $file) { - $dir_status = array_merge( - $dir_status, - get_dir_status($dir.$file.'/') - ); - } - - // Return with collected file info in - // this dir and subdirectories [if any] - return $dir_status; - -} // get_dir_status() function end - - -// Check for files removed in the EN tree, but still living in the translation -function get_old_files($dir) -{ - - global $DOCDIR, $LANG; - - // Collect files and diretcories in these arrays - $directories = array(); - $files = array(); - - $special_files = array( - // french - 'LISEZ_MOI.txt', - 'TRADUCTIONS.txt', - 'Translators', - 'translation.xml' - - // todo: add all missing languages - ); - - // Open the directory - $handle = @opendir($dir); - - // Walk through all names in the directory - while ($file = @readdir($handle)) { - - // If we found a file with one or two point as a name, - // or a CVS directory, skip the file - if (preg_match("/^\.{1,2}/", $file) || $file == 'CVS') - continue; - - // skip this files - if (in_array($file, $special_files)) { - continue; - } - - // Collect files and directories - if (is_dir($dir.$file)) { - $directories[] = $file; - } else { - $files[] = $file; - } - - } - - // Close the directory - @closedir($handle); - - // Sort files and directories - sort($directories); - sort($files); - - // Go through files first - $old_files_status = array(); - foreach ($files as $file) { - - $en_dir = preg_replace("'^".$DOCDIR.$LANG."/'", $DOCDIR."en/", $dir); - - if (!@file_exists($en_dir.$file) ) { - $old_files_status[$dir.$file] = array(0=>intval(filesize($dir.$file)/1024)); - } - - } - - // Then go through subdirectories, merging all the info - // coming from subdirs to one array - foreach ($directories as $file) { - $old_files_status = array_merge( - $old_files_status, - get_old_files($dir.$file.'/') - ); - } - - return $old_files_status; - -} // get_old_files() function end - - -// ========================================================================= -// Functions to read in the translation.xml file and process contents -// ========================================================================= - -// Get a multidimensional array with tag attributes -function parse_attr_string ($tags_attrs) -{ - $tag_attrs_processed = array(); - - // Go through the tag attributes - foreach($tags_attrs as $attrib_list) { - - // Get attr name and values - preg_match_all("!(.+)=\\s*([\"'])\\s*(.+)\\2!U", $attrib_list, $attribs); - - // Assign all attributes to one associative array - $attrib_array = array(); - foreach ($attribs[1] as $num => $attrname) { - $attrib_array[trim($attrname)] = trim($attribs[3][$num]); - } - - // Collect in order of tags received - $tag_attrs_processed[] = $attrib_array; - - } - - // Retrun with collected attributes - return $tag_attrs_processed; - -} // parse_attr_string() end - -// Parse the translation.xml file for -// translation related meta information -function parse_translation($DOCDIR, $LANG, $MAINT) -{ - global $files_by_mark; - - // Path to find translation.xml file, set default values, - // in case we can't find the translation file - $translation_xml = $DOCDIR.$LANG."/translation.xml"; - $output_charset = 'UTF-8'; - $translation = array( - "intro" => "", - "persons" => array(), - "files" => array(), - "allfiles" => array(), - ); - - // Check for file availability, return with default - // values, if we cannot find the file - if (!@file_exists($translation_xml)) { - return array($output_charset, $translation); - } - - // Else go on, and load in the file, replacing all - // space type chars with one space - $txml = join("", file($translation_xml)); - $txml = preg_replace("/\\s+/", " ", $txml); - - // Get intro text (different for a persons info and - // for a whole group info page) - if (empty($MAINT)) { - preg_match("!<intro>(.+)</intro>!s", $txml, $match); - $translation["intro"] = trim($match[1]); - } else { - $translation["intro"] = "Personal Statistics for ".$MAINT; - } - - // Get encoding for the output, from the translation.xml - // file encoding (should be the same as the used encoding - // in HTML) - preg_match("!<\?xml(.+)\?>!U", $txml, $match); - $xmlinfo = parse_attr_string($match); - $output_charset = $xmlinfo[1]["encoding"]; - - // Get persons list preg pattern, only check for a specific - // maintainer, if the users asked for it - if (empty($MAINT)) { - $pattern = "!<person(.+)/\\s?>!U"; - } else { - $pattern = "!<person([^<]+nick=\"".$MAINT."\".+)/\\s?>!U"; - } - - // Find all persons matching the pattern - preg_match_all($pattern, $txml, $matches); - $translation['persons'] = parse_attr_string($matches[1]); - - // Get list of work in progress files - if (empty($MAINT)) { - - // Get all wip files - preg_match_all("!<file(.+)/\\s?>!U", $txml, $matches); - $translation['files'] = parse_attr_string($matches[1]); - - // Provide info about number of WIP files - $files_by_mark[REV_WIP] += count($translation['files']); - - } else { - - // Only check for a specific maintainer, if we were asked to - preg_match_all("!<file([^<]+person=\"".$MAINT."\".+)/\\s?>!U", $txml, $matches); - $translation['files'] = parse_attr_string($matches[1]); - - // Other maintainers wip files need to be cleared from - // available files list in the future, so store that info too. - preg_match_all("!<file(.+)/\\s?>!U", $txml, $matches); - $translation['allfiles'] = parse_attr_string($matches[1]); - - // Provide info about number of WIP files - $files_by_mark[REV_WIP] += count($translation['allfiles']); - - } - - // Return with collected info in two vars - return array($output_charset, $translation); - -} // parse_translation() function end() - -// ========================================================================= -// Start of the program execution -// ========================================================================= - -// Check for directory validity -if (!@is_dir($DOCDIR . $LANG)) { - die("The $LANG language code is not valid"); -} - -// Parse translation.xml file for more information -list($charset, $translation) = parse_translation($DOCDIR, $LANG, $MAINT); - -// Add WIP files to maintainers file count and figure out, -// if we need to use optional date and revision columns -$using_date = FALSE; $using_rev = FALSE; -foreach ($translation["files"] as $num => $fileinfo) { - $files_by_maint[$fileinfo["person"]][REV_WIP]++; - if (isset($fileinfo["date"])) { $using_date = TRUE; } - if (isset($fileinfo["revision"])) { $using_rev = TRUE; } -} - -// Get all files status -$files_status = get_dir_status($DOCDIR."en/"); - -// Get all old files in <lang> directory -$old_files = get_old_files($DOCDIR.$LANG."/"); - -$navbar = "<p class=c><a href=\"#intro\">Introduction</a> | " . - "<a href=\"#translators\">Translators</a> | " . - "<a href=\"#filesummary\">File summary by type</a> | " . - "<a href=\"#files\">Files</a> | "; -if (count($translation["files"]) != 0) - $navbar .= "<a href=\"#wip\">Work in progress</a> | "; -$navbar .= "<a href=\"#misstags\">Missing revision numbers</a> | " . - "<a href=\"#missfiles\">Untranslated files</a> | " . - "<a href=\"#oldfiles\">Old files</a></p>\n"; - - -// Figure out generation date -$date = date("r"); - -// ========================================================================= -// Start of HTML page -// ========================================================================= - -print <<<END_OF_MULTILINE -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> -<html> -<head> -<title>Smarty Manual Revision-check</title> -<meta http-equiv="Content-Type" content="text/html; charset={$charset}"> -<style type="text/css"> -<!-- -h2,td,a,p,a.ref,th { font-family:Arial,Helvetica,sans-serif; font-size:14px; } -h2,th,a.ref { color:#FFFFFF; } -td,a,p { color:#000000; } -h2 { font-size:28px; } -th { font-weight:bold; } -.blue { background-color:#666699; } -.act { background-color:#68D888; } -.norev { background-color:#f4a460; } -.old { background-color:#eee8aa; } -.crit { background-color:#ff6347; } -.wip { background-color:#dcdcdc; } -.r { text-align:right } -.rb { text-align:right; font-weight:bold; } -.c { text-align:center } -body { margin:0px 0px 0px 0px; background-color:#F0F0F0; } -//--> -</style> -</head> -<body> -<table width="100%" border="0" cellspacing="0" bgcolor="#666699"> -<tr><td> -<table width="100%" border="0" cellspacing="1" bgcolor="#9999CC"> -<tr><td><h2 class=c>Status of the translated Smarty Manual</h2><p class=c style="font-size:12px;">Generated: {$date} / Language: $LANG<br></p></td></tr> -</table> -</td></tr> -</table> -END_OF_MULTILINE; - -print ($navbar); - -// ========================================================================= -// Intro block goes here -// ========================================================================= - -// If we have an introduction text, print it out, with an anchor -if (!empty($translation["intro"])) { - print '<a name="intro"></a>'; - print '<table width="800" align="center"><tr><td class=c>' . - $translation['intro'] . '</td></tr></table>'; -} - -// ========================================================================= -// Translators table goes here -// ========================================================================= - -// If person list available (valid translation.xml file in lang), print out -// the person list, with respect to the maintainer parameter specified -if (!empty($translation["persons"])) { - -print <<<END_OF_MULTILINE -<a name="translators"></a> -<table width="820" border="0" cellpadding="4" cellspacing="1" align="center"> -<tr class=blue> -<th rowspan=2>Translator's name</th> -<th rowspan=2>Contact email</th> -<th rowspan=2>Nick</th> -<th rowspan=2>C<br>V<br>S</th> -<th colspan=7>Files maintained</th> -</tr> -<tr> -<th class="{$CSS[REV_CREDIT]}" style="color:#000000">cre-<br>dits</th> -<th class="{$CSS[REV_UPTODATE]}" style="color:#000000">upto-<br>date</th> -<th class="{$CSS[REV_OLD]}" style="color:#000000">old</th> -<th class="{$CSS[REV_CRITICAL]}" style="color:#000000">cri-<br>tical</th> -<th class="{$CSS[REV_NOREV]}" style="color:#000000">no<br>rev</th> -<th class="{$CSS[REV_WIP]}" style="color:#000000">wip</th> -<th class="blue">sum</th> -</tr> -END_OF_MULTILINE; - - // ' Please leave this comment here - - // We will collect the maintainers by nick here - $maint_by_nick = array(); - - // Print out a line for each maintainer (with respect to - // maintainer setting provided in command line) - foreach($translation["persons"] as $num => $person) { - - // Do not print out this person, if a - // specific maintainer info is asked for - if (!empty($MAINT) && $person["nick"] != $MAINT) { - continue; - } - - // Put maintaner number into associative array - // [Used in further tables for referencing] - $maint_by_nick[$person["nick"]] = $num; - - // Decide on the CVS text and the color of the line - if ($person["cvs"] === "yes") { - $cvsu = "x"; - $col = "old"; - } else { - $cvsu = " "; - $col = "wip"; - } - - // Try to do some antispam actions - $person["email"] = str_replace( - "@", - "<small>:at:</small>", - $person["email"] - ); - - // Get file info for this person - if (isset($files_by_maint[$person["nick"]])) { - $pi = $files_by_maint[$person["nick"]]; - } else { - $pi = array(); - } - - print("<tr class=$col>" . - "<td><a name=\"maint$num\">$person[name]</a></td>" . - "<td>$person[email]</td>" . - "<td>$person[nick]</td>" . - "<td class=c>$cvsu</td>" . - "<td class=c>" . $pi[REV_CREDIT] . "</td>" . - "<td class=c>" . $pi[REV_UPTODATE] . "</td>" . - "<td class=c>" . $pi[REV_OLD] . "</td>" . - "<td class=c>" . $pi[REV_CRITICAL] . "</td>" . - "<td class=c>" . $pi[REV_NOREV] . "</td>" . - "<td class=c>" . $pi[REV_WIP] . "</td>" . - "<th class=blue>" . array_sum($pi) . "</th>" . - "</tr>\n"); - } - - print "</table>\n<p> </p>\n"; -} - -// ========================================================================= -// Files summary table goes here -// ========================================================================= - -// Do not print out file summary table, if we are printing out a page -// for only one maintainer (his personal summary is in the table above) -if (empty($MAINT)) { - - print <<<END_OF_MULTILINE -<a name="filesummary"></a> -<table width="450" border="0" cellpadding="4" cellspacing="1" align="center"> -<tr class=blue> -<th>File status type</th> -<th>Number of files</th> -<th>Percent of files</th> -<th>Size of files (kB)</th> -<th>Percent of size</th> -</tr> -END_OF_MULTILINE; - - $files_sum = array_sum($files_by_mark); - $file_sizes_sum = array_sum($file_sizes_by_mark); - - $file_types = array( - array (REV_UPTODATE, "Up to date files"), - array (REV_OLD, "Old files"), - array (REV_CRITICAL, "Critical files"), - array (REV_WIP, "Work in progress"), - array (REV_NOREV, "Files without revision number"), - array (REV_NOTAG, "Files without revision tag"), - array (REV_NOTRANS, "Files available for translation") - ); - - foreach ($file_types as $num => $type) { - print "<tr class=".$CSS[$type[0]].">". - "<td>".$type[1]."</td>". - "<td class=c>".intval($files_by_mark[$type[0]])."</td>". - "<td class=c>".number_format($files_by_mark[$type[0]] * 100 / $files_sum, 2 ). - "%</td>". - "<td class=c>".intval($file_sizes_by_mark[$type[0]])."</td>". - "<td class=c>".number_format($file_sizes_by_mark[$type[0]] * 100 / $file_sizes_sum, 2). - "%</td></tr>\n"; - } - - print "<tr class=blue><th>Files total</th><th>$files_sum</th><th>100%</th><th>$file_sizes_sum</th><th>100%</th></tr>\n". - "</table>\n<p> </p>\n"; - -} - -print ($navbar."<p> </p>\n"); - - -// ========================================================================= -// Files table goes here -// ========================================================================= - -if (count($files_status) != 0) { - -print <<<END_OF_MULTILINE -<a name="files"></a> -<table width="820" border="0" cellpadding="4" cellspacing="1" align="center"> -<tr class=blue> -<th rowspan=2>Translated file</th> -<th colspan=3>Revision</th> -<th colspan=3>Size in kB</th> -<th colspan=3>Age in days</th> -<th rowspan=2>Maintainer</th> -<th rowspan=2>Status</th> -</tr> -<tr class=blue> -<th>en</th> -<th>$LANG</th> -<th>diff</th> -<th>en</th> -<th>$LANG</th> -<th>diff</th> -<th>en</th> -<th>$LANG</th> -<th>diff</th> -</tr> -END_OF_MULTILINE; - - // This was the previous directory [first] - $prev_dir = $new_dir = $DOCDIR."en"; - - // Go through all files collected - foreach ($files_status as $num => $file) { - - // Make the maintainer a link, if we have that maintainer in the list - if (isset($maint_by_nick[$file["maintainer"]])) { - $file["maintainer"] = '<a href="#maint' . $maint_by_nick[$file["maintainer"]] . - '">' . $file["maintainer"] . '</a>'; - } - - // If we have a 'numeric' revision diff and it is not zero, - // make a link to the CVS repository's diff script - if ($file["revision"][2] != "n/a" && $file["revision"][2] !== 0) { - $url = 'http://code.google.com/p/smarty-php/source/diff?' - . 'old=' . $file['revision'][1] . '&' - . 'r=' . $file['revision'][0] . '&' - . 'format=side&' - . 'path=' . urlencode('/trunk/' . preg_replace("'^".$DOCDIR."'", 'documentation/', $file['full_name'])); - - $file['short_name'] = '<a href="' . $url . '">'. $file["short_name"] . '</a>'; - } - - // Guess the new directory from the full name of the file - $new_dir = dirname($file["full_name"]); - - // If this is a new directory, put out old dir lines - if ($new_dir != $prev_dir && isset($lines)) { - echo $prev_diplay_dir; - echo " ($line_number)</th></tr>"; - echo $lines; - - $lines = ''; - $line_number = 0; - - // Store the new actual directory - $prev_dir = $new_dir; - } - // Drop out the unneeded parts from the dirname... - $display_dir = str_replace($DOCDIR."en/", "", dirname($file["full_name"])); - $prev_diplay_dir = "<tr class=blue><th colspan=12>$display_dir"; - - // Save the line for the current file (get file name shorter) - $lines .= "<tr class={$CSS[$file['mark']]}><td>{$file['short_name']}</td>". - "<td> {$file['revision'][0]}</td>" . - "<td> {$file['revision'][1]}</td>". - "<td class=rb>{$file['revision'][2]} </td>". - "<td class=r>{$file['size'][0]} </td>". - "<td class=r>{$file['size'][1]} </td>". - "<td class=rb>{$file['size'][2]} </td>". - "<td class=r>{$file['date'][0]} </td>". - "<td class=r>{$file['date'][1]} </td>". - "<td class=rb>{$file['date'][2]} </td>". - "<td class=c>{$file['maintainer']}</td>". - "<td class=c>".trim($file['status'])."</td></tr>\n"; - $line_number++; - - } - - // echo the last dir and $lines - echo "$prev_diplay_dir ($line_number)</th></tr>"; - echo $lines; - - print("</table>\n<p> </p>\n$navbar<p> </p>\n"); - -} - - -// ========================================================================= -// Work in progress table goes here -// ========================================================================= - -// If work-in-progress list is available (valid translation.xml file in lang) -if (count($translation["files"]) != 0) { - - // Print out files table header - print "<a name=\"wip\"></a>\n" . - "<table width=\"820\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\" align=\"center\">\n" . - "<tr class=blue>". - "<th>Work in progress files</th>". - "<th>Translator</th>". - "<th>Type</th>"; - - // Print out date and revision columns if needed - if ($using_date) { - print '<th>Date</th>'; - } - if ($using_rev) { - print '<th>CO-Revision</th>' . - '<th>EN-Revision</th>'; - } - print "</tr>\n"; - - // Go through files, and print out lines for them - foreach($translation["files"] as $num => $finfo) { - - // If we have a valid maintainer, link to the summary - if (isset($maint_by_nick[$finfo["person"]])) { - $finfo["person"] = '<a href="#maint' . $maint_by_nick[$finfo["person"]] . - '">' . $finfo["person"] . '</a>'; - } - - // Print out the line with the first columns - print "<tr class=wip><td>$finfo[name]</td>" . - "<td>$finfo[person]</td><td>$finfo[type]</td>"; - - // If we need the date column, print it out - if ($using_date) { - print "<td>$finfo[date]</td>"; - } - - // If we need the revision column, print it out - if ($using_rev) { - print "<td>$finfo[revision]</td><td>" . - $missing_files[$finfo["name"]][1] . - "</td>"; - } - - // End the line - print "</tr>\n"; - - // Collect files in WIP list - $wip_files[$finfo["name"]] = TRUE; - } - - print "</table>\n<p> </p>\n$navbar<p> </p>\n"; - -} - -// Files translated, but without a revision comment -$count = count($missing_tags); -if ($count > 0) { - print "<a name=\"misstags\"></a>" . - "<table width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\n". - "<tr class=blue><th rowspan=2>Files without Revision-comment ($count files):</th>". - "<th colspan=3>Sizes in kB</th></tr>\n". - "<tr class=blue><th>en</th><th>$LANG</th><th>diff</th></tr>\n"; - foreach($missing_tags as $val) { - // Shorten the filename (we have directory headers) - $short_file = basename($val[0]); - - // Guess the new directory from the full name of the file - $new_dir = dirname($val[0]); - - // If this is a new directory, put out dir headline - if ($new_dir != $prev_dir) { - - // Print out directory header - print "<tr class=blue><th colspan=4>$new_dir</th></tr>\n"; - - // Store the new actual directory - $prev_dir = $new_dir; - } - print "<tr class=wip><td>$short_file</td><td class=r>$val[1]</td>". - "<td class=r>$val[2]</td><td class=r>$val[3]</td></tr>\n"; - } - print "</table>\n<p> </p>\n$navbar<p> </p>\n"; -} - -// Merge all work in progress files collected -$wip_files = array_merge( - $translation["files"], // Files for this translator - $translation["allfiles"] // Files for all the translators -); - -// Delete wip entires from available files list -foreach ($wip_files as $file) { - if (isset($missing_files[$file['name']])) { - unset($missing_files[$file['name']]); - } -} - -// Files not translated and not "wip" -$count = count($missing_files); -if ($count > 0) { - print "<a name=\"missfiles\"></a>" . - "<table width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\n" . - "<tr class=blue><th><a name=\"avail\" class=\"ref\">" . - " Available for translation</a> ($count files):</th><th>kB</th></tr>\n"; - foreach($missing_files as $file => $info) { - // Shorten the filename (we have directory headers) - $short_file = basename($file); - - // Guess the new directory from the full name of the file - $new_dir = dirname($file); - - // If this is a new directory, put out dir headline - if ($new_dir != $prev_dir) { - - // Print out directory header if not "." - print "<tr class=blue><th colspan=2>$new_dir</th></tr>\n"; - - // Store the new actual directory - $prev_dir = $new_dir; - } - - print "<tr class=wip><td><a href=\"http://code.google.com/p/smarty-php/source/browse/trunk/docs/en/$file\">$short_file</a></td>" . - "<td class=r>$info[0]</td></tr>\n"; - } - print "</table>\n<p> </p>\n$navbar<p> </p>\n"; - -} - -// Files not in EN tree -$count = count($old_files); -if ($count > 0) { - print "<a name=\"oldfiles\"></a>" . - "<table width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\">\n" . - "<tr class=blue><th><a name=\"notEn\" class=\"ref\">" . - " Not in EN Tree</a> ($count files):</th><th>kB</th></tr>\n"; - - foreach($old_files as $file => $info) { - // Shorten the filename (we have directory headers) - $short_file = basename($file); - - // Guess the new directory from the full name of the file - $new_dir = dirname($file); - - // If this is a new directory, put out dir headline - if ($new_dir != $prev_dir) { - - // Print out directory header if not "." - print "<tr class=blue><th colspan=2>$new_dir</th></tr>\n"; - - // Store the new actual directory - $prev_dir = $new_dir; - } - - print "<tr class=wip><td>$short_file</td>" . - "<td class=r>$info[0]</td></tr>\n"; - } - print "</table>\n<p> </p>\n$navbar<p> </p>\n"; - - - - -} - - -// All OK, end the file -print "</body>\n</html>\n"; - -?>
View file
Smarty-3.1.13.tar.gz/libs
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/libs/Smarty.class.php
Added
@@ -0,0 +1,1528 @@ +<?php +/** + * Project: Smarty: the PHP compiling template engine + * File: Smarty.class.php + * SVN: $Id: Smarty.class.php 4694 2013-01-13 21:13:14Z uwe.tews@googlemail.com $ + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * For questions, help, comments, discussion, etc., please join the + * Smarty mailing list. Send a blank e-mail to + * smarty-discussion-subscribe@googlegroups.com + * + * @link http://www.smarty.net/ + * @copyright 2008 New Digital Group, Inc. + * @author Monte Ohrt <monte at ohrt dot com> + * @author Uwe Tews + * @author Rodney Rehm + * @package Smarty + * @version 3.1.13 + */ + +/** + * define shorthand directory separator constant + */ +if (!defined('DS')) { + define('DS', DIRECTORY_SEPARATOR); +} + +/** + * set SMARTY_DIR to absolute path to Smarty library files. + * Sets SMARTY_DIR only if user application has not already defined it. + */ +if (!defined('SMARTY_DIR')) { + define('SMARTY_DIR', dirname(__FILE__) . DS); +} + +/** + * set SMARTY_SYSPLUGINS_DIR to absolute path to Smarty internal plugins. + * Sets SMARTY_SYSPLUGINS_DIR only if user application has not already defined it. + */ +if (!defined('SMARTY_SYSPLUGINS_DIR')) { + define('SMARTY_SYSPLUGINS_DIR', SMARTY_DIR . 'sysplugins' . DS); +} +if (!defined('SMARTY_PLUGINS_DIR')) { + define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DS); +} +if (!defined('SMARTY_MBSTRING')) { + define('SMARTY_MBSTRING', function_exists('mb_split')); +} +if (!defined('SMARTY_RESOURCE_CHAR_SET')) { + // UTF-8 can only be done properly when mbstring is available! + /** + * @deprecated in favor of Smarty::$_CHARSET + */ + define('SMARTY_RESOURCE_CHAR_SET', SMARTY_MBSTRING ? 'UTF-8' : 'ISO-8859-1'); +} +if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) { + /** + * @deprecated in favor of Smarty::$_DATE_FORMAT + */ + define('SMARTY_RESOURCE_DATE_FORMAT', '%b %e, %Y'); +} + +/** + * register the class autoloader + */ +if (!defined('SMARTY_SPL_AUTOLOAD')) { + define('SMARTY_SPL_AUTOLOAD', 0); +} + +if (SMARTY_SPL_AUTOLOAD && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false) { + $registeredAutoLoadFunctions = spl_autoload_functions(); + if (!isset($registeredAutoLoadFunctions['spl_autoload'])) { + spl_autoload_register(); + } +} else { + spl_autoload_register('smartyAutoload'); +} + +/** + * Load always needed external class files + */ +include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_data.php'; +include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_templatebase.php'; +include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_template.php'; +include_once SMARTY_SYSPLUGINS_DIR.'smarty_resource.php'; +include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_resource_file.php'; +include_once SMARTY_SYSPLUGINS_DIR.'smarty_cacheresource.php'; +include_once SMARTY_SYSPLUGINS_DIR.'smarty_internal_cacheresource_file.php'; + +/** + * This is the main Smarty class + * @package Smarty + */ +class Smarty extends Smarty_Internal_TemplateBase { + + /**#@+ + * constant definitions + */ + + /** + * smarty version + */ + const SMARTY_VERSION = 'Smarty-3.1.13'; + + /** + * define variable scopes + */ + const SCOPE_LOCAL = 0; + const SCOPE_PARENT = 1; + const SCOPE_ROOT = 2; + const SCOPE_GLOBAL = 3; + /** + * define caching modes + */ + const CACHING_OFF = 0; + const CACHING_LIFETIME_CURRENT = 1; + const CACHING_LIFETIME_SAVED = 2; + /** + * define compile check modes + */ + const COMPILECHECK_OFF = 0; + const COMPILECHECK_ON = 1; + const COMPILECHECK_CACHEMISS = 2; + /** + * modes for handling of "<?php ... ?>" tags in templates. + */ + const PHP_PASSTHRU = 0; //-> print tags as plain text + const PHP_QUOTE = 1; //-> escape tags as entities + const PHP_REMOVE = 2; //-> escape tags as entities + const PHP_ALLOW = 3; //-> escape tags as entities + /** + * filter types + */ + const FILTER_POST = 'post'; + const FILTER_PRE = 'pre'; + const FILTER_OUTPUT = 'output'; + const FILTER_VARIABLE = 'variable'; + /** + * plugin types + */ + const PLUGIN_FUNCTION = 'function'; + const PLUGIN_BLOCK = 'block'; + const PLUGIN_COMPILER = 'compiler'; + const PLUGIN_MODIFIER = 'modifier'; + const PLUGIN_MODIFIERCOMPILER = 'modifiercompiler'; + + /**#@-*/ + + /** + * assigned global tpl vars + */ + public static $global_tpl_vars = array(); + + /** + * error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors() + */ + public static $_previous_error_handler = null; + /** + * contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors() + */ + public static $_muted_directories = array(); + /** + * Flag denoting if Multibyte String functions are available + */ + public static $_MBSTRING = SMARTY_MBSTRING; + /** + * The character set to adhere to (e.g. "UTF-8") + */ + public static $_CHARSET = SMARTY_RESOURCE_CHAR_SET; + /** + * The date format to be used internally + * (accepts date() and strftime()) + */ + public static $_DATE_FORMAT = SMARTY_RESOURCE_DATE_FORMAT; + /** + * Flag denoting if PCRE should run in UTF-8 mode + */ + public static $_UTF8_MODIFIER = 'u'; + + /** + * Flag denoting if operating system is windows + */ + public static $_IS_WINDOWS = false; + + /**#@+ + * variables + */ + + /** + * auto literal on delimiters with whitspace + * @var boolean + */ + public $auto_literal = true; + /** + * display error on not assigned variables + * @var boolean + */ + public $error_unassigned = false; + /** + * look up relative filepaths in include_path + * @var boolean + */ + public $use_include_path = false; + /** + * template directory + * @var array + */ + private $template_dir = array(); + /** + * joined template directory string used in cache keys + * @var string + */ + public $joined_template_dir = null; + /** + * joined config directory string used in cache keys + * @var string + */ + public $joined_config_dir = null; + /** + * default template handler + * @var callable + */ + public $default_template_handler_func = null; + /** + * default config handler + * @var callable + */ + public $default_config_handler_func = null; + /** + * default plugin handler + * @var callable + */ + public $default_plugin_handler_func = null; + /** + * compile directory + * @var string + */ + private $compile_dir = null; + /** + * plugins directory + * @var array + */ + private $plugins_dir = array(); + /** + * cache directory + * @var string + */ + private $cache_dir = null; + /** + * config directory + * @var array + */ + private $config_dir = array(); + /** + * force template compiling? + * @var boolean + */ + public $force_compile = false; + /** + * check template for modifications? + * @var boolean + */ + public $compile_check = true; + /** + * use sub dirs for compiled/cached files? + * @var boolean + */ + public $use_sub_dirs = false; + /** + * allow ambiguous resources (that are made unique by the resource handler) + * @var boolean + */ + public $allow_ambiguous_resources = false; + /** + * caching enabled + * @var boolean + */ + public $caching = false; + /** + * merge compiled includes + * @var boolean + */ + public $merge_compiled_includes = false; + /** + * cache lifetime in seconds + * @var integer + */ + public $cache_lifetime = 3600; + /** + * force cache file creation + * @var boolean + */ + public $force_cache = false; + /** + * Set this if you want different sets of cache files for the same + * templates. + * + * @var string + */ + public $cache_id = null; + /** + * Set this if you want different sets of compiled files for the same + * templates. + * + * @var string + */ + public $compile_id = null; + /** + * template left-delimiter + * @var string + */ + public $left_delimiter = "{"; + /** + * template right-delimiter + * @var string + */ + public $right_delimiter = "}"; + /**#@+ + * security + */ + /** + * class name + * + * This should be instance of Smarty_Security. + * + * @var string + * @see Smarty_Security + */ + public $security_class = 'Smarty_Security'; + /** + * implementation of security class + * + * @var Smarty_Security + */ + public $security_policy = null; + /** + * controls handling of PHP-blocks + * + * @var integer + */ + public $php_handling = self::PHP_PASSTHRU; + /** + * controls if the php template file resource is allowed + * + * @var bool + */ + public $allow_php_templates = false; + /** + * Should compiled-templates be prevented from being called directly? + * + * {@internal + * Currently used by Smarty_Internal_Template only. + * }} + * + * @var boolean + */ + public $direct_access_security = true; + /**#@-*/ + /** + * debug mode + * + * Setting this to true enables the debug-console. + * + * @var boolean + */ + public $debugging = false; + /** + * This determines if debugging is enable-able from the browser. + * <ul> + * <li>NONE => no debugging control allowed</li> + * <li>URL => enable debugging when SMARTY_DEBUG is found in the URL.</li> + * </ul> + * @var string + */ + public $debugging_ctrl = 'NONE'; + /** + * Name of debugging URL-param. + * + * Only used when $debugging_ctrl is set to 'URL'. + * The name of the URL-parameter that activates debugging. + * + * @var type + */ + public $smarty_debug_id = 'SMARTY_DEBUG'; + /** + * Path of debug template. + * @var string + */ + public $debug_tpl = null; + /** + * When set, smarty uses this value as error_reporting-level. + * @var int + */ + public $error_reporting = null; + /** + * Internal flag for getTags() + * @var boolean + */ + public $get_used_tags = false; + + /**#@+ + * config var settings + */ + + /** + * Controls whether variables with the same name overwrite each other. + * @var boolean + */ + public $config_overwrite = true; + /** + * Controls whether config values of on/true/yes and off/false/no get converted to boolean. + * @var boolean + */ + public $config_booleanize = true; + /** + * Controls whether hidden config sections/vars are read from the file. + * @var boolean + */ + public $config_read_hidden = false; + + /**#@-*/ + + /**#@+ + * resource locking + */ + + /** + * locking concurrent compiles + * @var boolean + */ + public $compile_locking = true; + /** + * Controls whether cache resources should emply locking mechanism + * @var boolean + */ + public $cache_locking = false; + /** + * seconds to wait for acquiring a lock before ignoring the write lock + * @var float + */ + public $locking_timeout = 10; + + /**#@-*/ + + /** + * global template functions + * @var array + */ + public $template_functions = array(); + /** + * resource type used if none given + * + * Must be an valid key of $registered_resources. + * @var string + */ + public $default_resource_type = 'file'; + /** + * caching type + * + * Must be an element of $cache_resource_types. + * + * @var string + */ + public $caching_type = 'file'; + /** + * internal config properties + * @var array + */ + public $properties = array(); + /** + * config type + * @var string + */ + public $default_config_type = 'file'; + /** + * cached template objects + * @var array + */ + public $template_objects = array(); + /** + * check If-Modified-Since headers + * @var boolean + */ + public $cache_modified_check = false; + /** + * registered plugins + * @var array + */ + public $registered_plugins = array(); + /** + * plugin search order + * @var array + */ + public $plugin_search_order = array('function', 'block', 'compiler', 'class'); + /** + * registered objects + * @var array + */ + public $registered_objects = array(); + /** + * registered classes + * @var array + */ + public $registered_classes = array(); + /** + * registered filters + * @var array + */ + public $registered_filters = array(); + /** + * registered resources + * @var array + */ + public $registered_resources = array(); + /** + * resource handler cache + * @var array + */ + public $_resource_handlers = array(); + /** + * registered cache resources + * @var array + */ + public $registered_cache_resources = array(); + /** + * cache resource handler cache + * @var array + */ + public $_cacheresource_handlers = array(); + /** + * autoload filter + * @var array + */ + public $autoload_filters = array(); + /** + * default modifier + * @var array + */ + public $default_modifiers = array(); + /** + * autoescape variable output + * @var boolean + */ + public $escape_html = false; + /** + * global internal smarty vars + * @var array + */ + public static $_smarty_vars = array(); + /** + * start time for execution time calculation + * @var int + */ + public $start_time = 0; + /** + * default file permissions + * @var int + */ + public $_file_perms = 0644; + /** + * default dir permissions + * @var int + */ + public $_dir_perms = 0771; + /** + * block tag hierarchy + * @var array + */ + public $_tag_stack = array(); + /** + * self pointer to Smarty object + * @var Smarty + */ + public $smarty; + /** + * required by the compiler for BC + * @var string + */ + public $_current_file = null; + /** + * internal flag to enable parser debugging + * @var bool + */ + public $_parserdebug = false; + /** + * Saved parameter of merged templates during compilation + * + * @var array + */ + public $merged_templates_func = array(); + /**#@-*/ + + /** + * Initialize new Smarty object + * + */ + public function __construct() + { + // selfpointer needed by some other class methods + $this->smarty = $this; + if (is_callable('mb_internal_encoding')) { + mb_internal_encoding(Smarty::$_CHARSET); + } + $this->start_time = microtime(true); + // set default dirs + $this->setTemplateDir('.' . DS . 'templates' . DS) + ->setCompileDir('.' . DS . 'templates_c' . DS) + ->setPluginsDir(SMARTY_PLUGINS_DIR) + ->setCacheDir('.' . DS . 'cache' . DS) + ->setConfigDir('.' . DS . 'configs' . DS); + + $this->debug_tpl = 'file:' . dirname(__FILE__) . '/debug.tpl'; + if (isset($_SERVER['SCRIPT_NAME'])) { + $this->assignGlobal('SCRIPT_NAME', $_SERVER['SCRIPT_NAME']); + } + } + + + /** + * Class destructor + */ + public function __destruct() + { + // intentionally left blank + } + + /** + * <<magic>> set selfpointer on cloned object + */ + public function __clone() + { + $this->smarty = $this; + } + + + /** + * <<magic>> Generic getter. + * + * Calls the appropriate getter function. + * Issues an E_USER_NOTICE if no valid getter is found. + * + * @param string $name property name + * @return mixed + */ + public function __get($name) + { + $allowed = array( + 'template_dir' => 'getTemplateDir', + 'config_dir' => 'getConfigDir', + 'plugins_dir' => 'getPluginsDir', + 'compile_dir' => 'getCompileDir', + 'cache_dir' => 'getCacheDir', + ); + + if (isset($allowed[$name])) { + return $this->{$allowed[$name]}(); + } else { + trigger_error('Undefined property: '. get_class($this) .'::$'. $name, E_USER_NOTICE); + } + } + + /** + * <<magic>> Generic setter. + * + * Calls the appropriate setter function. + * Issues an E_USER_NOTICE if no valid setter is found. + * + * @param string $name property name + * @param mixed $value parameter passed to setter + */ + public function __set($name, $value) + { + $allowed = array( + 'template_dir' => 'setTemplateDir', + 'config_dir' => 'setConfigDir', + 'plugins_dir' => 'setPluginsDir', + 'compile_dir' => 'setCompileDir', + 'cache_dir' => 'setCacheDir', + ); + + if (isset($allowed[$name])) { + $this->{$allowed[$name]}($value); + } else { + trigger_error('Undefined property: ' . get_class($this) . '::$' . $name, E_USER_NOTICE); + } + } + + /** + * Check if a template resource exists + * + * @param string $resource_name template name + * @return boolean status + */ + public function templateExists($resource_name) + { + // create template object + $save = $this->template_objects; + $tpl = new $this->template_class($resource_name, $this); + // check if it does exists + $result = $tpl->source->exists; + $this->template_objects = $save; + return $result; + } + + /** + * Returns a single or all global variables + * + * @param object $smarty + * @param string $varname variable name or null + * @return string variable value or or array of variables + */ + public function getGlobal($varname = null) + { + if (isset($varname)) { + if (isset(self::$global_tpl_vars[$varname])) { + return self::$global_tpl_vars[$varname]->value; + } else { + return ''; + } + } else { + $_result = array(); + foreach (self::$global_tpl_vars AS $key => $var) { + $_result[$key] = $var->value; + } + return $_result; + } + } + + /** + * Empty cache folder + * + * @param integer $exp_time expiration time + * @param string $type resource type + * @return integer number of cache files deleted + */ + function clearAllCache($exp_time = null, $type = null) + { + // load cache resource and call clearAll + $_cache_resource = Smarty_CacheResource::load($this, $type); + Smarty_CacheResource::invalidLoadedCache($this); + return $_cache_resource->clearAll($this, $exp_time); + } + + /** + * Empty cache for a specific template + * + * @param string $template_name template name + * @param string $cache_id cache id + * @param string $compile_id compile id + * @param integer $exp_time expiration time + * @param string $type resource type + * @return integer number of cache files deleted + */ + public function clearCache($template_name, $cache_id = null, $compile_id = null, $exp_time = null, $type = null) + { + // load cache resource and call clear + $_cache_resource = Smarty_CacheResource::load($this, $type); + Smarty_CacheResource::invalidLoadedCache($this); + return $_cache_resource->clear($this, $template_name, $cache_id, $compile_id, $exp_time); + } + + /** + * Loads security class and enables security + * + * @param string|Smarty_Security $security_class if a string is used, it must be class-name + * @return Smarty current Smarty instance for chaining + * @throws SmartyException when an invalid class name is provided + */ + public function enableSecurity($security_class = null) + { + if ($security_class instanceof Smarty_Security) { + $this->security_policy = $security_class; + return $this; + } elseif (is_object($security_class)) { + throw new SmartyException("Class '" . get_class($security_class) . "' must extend Smarty_Security."); + } + if ($security_class == null) { + $security_class = $this->security_class; + } + if (!class_exists($security_class)) { + throw new SmartyException("Security class '$security_class' is not defined"); + } elseif ($security_class !== 'Smarty_Security' && !is_subclass_of($security_class, 'Smarty_Security')) { + throw new SmartyException("Class '$security_class' must extend Smarty_Security."); + } else { + $this->security_policy = new $security_class($this); + } + + return $this; + } + + /** + * Disable security + * @return Smarty current Smarty instance for chaining + */ + public function disableSecurity() + { + $this->security_policy = null; + + return $this; + } + + /** + * Set template directory + * + * @param string|array $template_dir directory(s) of template sources + * @return Smarty current Smarty instance for chaining + */ + public function setTemplateDir($template_dir) + { + $this->template_dir = array(); + foreach ((array) $template_dir as $k => $v) { + $this->template_dir[$k] = rtrim($v, '/\\') . DS; + } + + $this->joined_template_dir = join(DIRECTORY_SEPARATOR, $this->template_dir); + return $this; + } + + /** + * Add template directory(s) + * + * @param string|array $template_dir directory(s) of template sources + * @param string $key of the array element to assign the template dir to + * @return Smarty current Smarty instance for chaining + * @throws SmartyException when the given template directory is not valid + */ + public function addTemplateDir($template_dir, $key=null) + { + // make sure we're dealing with an array + $this->template_dir = (array) $this->template_dir; + + if (is_array($template_dir)) { + foreach ($template_dir as $k => $v) { + if (is_int($k)) { + // indexes are not merged but appended + $this->template_dir[] = rtrim($v, '/\\') . DS; + } else { + // string indexes are overridden + $this->template_dir[$k] = rtrim($v, '/\\') . DS; + } + } + } elseif ($key !== null) { + // override directory at specified index + $this->template_dir[$key] = rtrim($template_dir, '/\\') . DS; + } else { + // append new directory + $this->template_dir[] = rtrim($template_dir, '/\\') . DS; + } + $this->joined_template_dir = join(DIRECTORY_SEPARATOR, $this->template_dir); + return $this; + } + + /** + * Get template directories + * + * @param mixed index of directory to get, null to get all + * @return array|string list of template directories, or directory of $index + */ + public function getTemplateDir($index=null) + { + if ($index !== null) { + return isset($this->template_dir[$index]) ? $this->template_dir[$index] : null; + } + + return (array)$this->template_dir; + } + + /** + * Set config directory + * + * @param string|array $template_dir directory(s) of configuration sources + * @return Smarty current Smarty instance for chaining + */ + public function setConfigDir($config_dir) + { + $this->config_dir = array(); + foreach ((array) $config_dir as $k => $v) { + $this->config_dir[$k] = rtrim($v, '/\\') . DS; + } + + $this->joined_config_dir = join(DIRECTORY_SEPARATOR, $this->config_dir); + return $this; + } + + /** + * Add config directory(s) + * + * @param string|array $config_dir directory(s) of config sources + * @param string key of the array element to assign the config dir to + * @return Smarty current Smarty instance for chaining + */ + public function addConfigDir($config_dir, $key=null) + { + // make sure we're dealing with an array + $this->config_dir = (array) $this->config_dir; + + if (is_array($config_dir)) { + foreach ($config_dir as $k => $v) { + if (is_int($k)) { + // indexes are not merged but appended + $this->config_dir[] = rtrim($v, '/\\') . DS; + } else { + // string indexes are overridden + $this->config_dir[$k] = rtrim($v, '/\\') . DS; + } + } + } elseif( $key !== null ) { + // override directory at specified index + $this->config_dir[$key] = rtrim($config_dir, '/\\') . DS; + } else { + // append new directory + $this->config_dir[] = rtrim($config_dir, '/\\') . DS; + } + + $this->joined_config_dir = join(DIRECTORY_SEPARATOR, $this->config_dir); + return $this; + } + + /** + * Get config directory + * + * @param mixed index of directory to get, null to get all + * @return array|string configuration directory + */ + public function getConfigDir($index=null) + { + if ($index !== null) { + return isset($this->config_dir[$index]) ? $this->config_dir[$index] : null; + } + + return (array)$this->config_dir; + } + + /** + * Set plugins directory + * + * @param string|array $plugins_dir directory(s) of plugins + * @return Smarty current Smarty instance for chaining + */ + public function setPluginsDir($plugins_dir) + { + $this->plugins_dir = array(); + foreach ((array)$plugins_dir as $k => $v) { + $this->plugins_dir[$k] = rtrim($v, '/\\') . DS; + } + + return $this; + } + + /** + * Adds directory of plugin files + * + * @param object $smarty + * @param string $ |array $ plugins folder + * @return Smarty current Smarty instance for chaining + */ + public function addPluginsDir($plugins_dir) + { + // make sure we're dealing with an array + $this->plugins_dir = (array) $this->plugins_dir; + + if (is_array($plugins_dir)) { + foreach ($plugins_dir as $k => $v) { + if (is_int($k)) { + // indexes are not merged but appended + $this->plugins_dir[] = rtrim($v, '/\\') . DS; + } else { + // string indexes are overridden + $this->plugins_dir[$k] = rtrim($v, '/\\') . DS; + } + } + } else { + // append new directory + $this->plugins_dir[] = rtrim($plugins_dir, '/\\') . DS; + } + + $this->plugins_dir = array_unique($this->plugins_dir); + return $this; + } + + /** + * Get plugin directories + * + * @return array list of plugin directories + */ + public function getPluginsDir() + { + return (array)$this->plugins_dir; + } + + /** + * Set compile directory + * + * @param string $compile_dir directory to store compiled templates in + * @return Smarty current Smarty instance for chaining + */ + public function setCompileDir($compile_dir) + { + $this->compile_dir = rtrim($compile_dir, '/\\') . DS; + if (!isset(Smarty::$_muted_directories[$this->compile_dir])) { + Smarty::$_muted_directories[$this->compile_dir] = null; + } + return $this; + } + + /** + * Get compiled directory + * + * @return string path to compiled templates + */ + public function getCompileDir() + { + return $this->compile_dir; + } + + /** + * Set cache directory + * + * @param string $cache_dir directory to store cached templates in + * @return Smarty current Smarty instance for chaining + */ + public function setCacheDir($cache_dir) + { + $this->cache_dir = rtrim($cache_dir, '/\\') . DS; + if (!isset(Smarty::$_muted_directories[$this->cache_dir])) { + Smarty::$_muted_directories[$this->cache_dir] = null; + } + return $this; + } + + /** + * Get cache directory + * + * @return string path of cache directory + */ + public function getCacheDir() + { + return $this->cache_dir; + } + + /** + * Set default modifiers + * + * @param array|string $modifiers modifier or list of modifiers to set + * @return Smarty current Smarty instance for chaining + */ + public function setDefaultModifiers($modifiers) + { + $this->default_modifiers = (array) $modifiers; + return $this; + } + + /** + * Add default modifiers + * + * @param array|string $modifiers modifier or list of modifiers to add + * @return Smarty current Smarty instance for chaining + */ + public function addDefaultModifiers($modifiers) + { + if (is_array($modifiers)) { + $this->default_modifiers = array_merge($this->default_modifiers, $modifiers); + } else { + $this->default_modifiers[] = $modifiers; + } + + return $this; + } + + /** + * Get default modifiers + * + * @return array list of default modifiers + */ + public function getDefaultModifiers() + { + return $this->default_modifiers; + } + + + /** + * Set autoload filters + * + * @param array $filters filters to load automatically + * @param string $type "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types + * @return Smarty current Smarty instance for chaining + */ + public function setAutoloadFilters($filters, $type=null) + { + if ($type !== null) { + $this->autoload_filters[$type] = (array) $filters; + } else { + $this->autoload_filters = (array) $filters; + } + + return $this; + } + + /** + * Add autoload filters + * + * @param array $filters filters to load automatically + * @param string $type "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types + * @return Smarty current Smarty instance for chaining + */ + public function addAutoloadFilters($filters, $type=null) + { + if ($type !== null) { + if (!empty($this->autoload_filters[$type])) { + $this->autoload_filters[$type] = array_merge($this->autoload_filters[$type], (array) $filters); + } else { + $this->autoload_filters[$type] = (array) $filters; + } + } else { + foreach ((array) $filters as $key => $value) { + if (!empty($this->autoload_filters[$key])) { + $this->autoload_filters[$key] = array_merge($this->autoload_filters[$key], (array) $value); + } else { + $this->autoload_filters[$key] = (array) $value; + } + } + } + + return $this; + } + + /** + * Get autoload filters + * + * @param string $type type of filter to get autoloads for. Defaults to all autoload filters + * @return array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified + */ + public function getAutoloadFilters($type=null) + { + if ($type !== null) { + return isset($this->autoload_filters[$type]) ? $this->autoload_filters[$type] : array(); + } + + return $this->autoload_filters; + } + + /** + * return name of debugging template + * + * @return string + */ + public function getDebugTemplate() + { + return $this->debug_tpl; + } + + /** + * set the debug template + * + * @param string $tpl_name + * @return Smarty current Smarty instance for chaining + * @throws SmartyException if file is not readable + */ + public function setDebugTemplate($tpl_name) + { + if (!is_readable($tpl_name)) { + throw new SmartyException("Unknown file '{$tpl_name}'"); + } + $this->debug_tpl = $tpl_name; + + return $this; + } + + /** + * creates a template object + * + * @param string $template the resource handle of the template file + * @param mixed $cache_id cache id to be used with this template + * @param mixed $compile_id compile id to be used with this template + * @param object $parent next higher level of Smarty variables + * @param boolean $do_clone flag is Smarty object shall be cloned + * @return object template object + */ + public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null, $do_clone = true) + { + if (!empty($cache_id) && (is_object($cache_id) || is_array($cache_id))) { + $parent = $cache_id; + $cache_id = null; + } + if (!empty($parent) && is_array($parent)) { + $data = $parent; + $parent = null; + } else { + $data = null; + } + // default to cache_id and compile_id of Smarty object + $cache_id = $cache_id === null ? $this->cache_id : $cache_id; + $compile_id = $compile_id === null ? $this->compile_id : $compile_id; + // already in template cache? + if ($this->allow_ambiguous_resources) { + $_templateId = Smarty_Resource::getUniqueTemplateName($this, $template) . $cache_id . $compile_id; + } else { + $_templateId = $this->joined_template_dir . '#' . $template . $cache_id . $compile_id; + } + if (isset($_templateId[150])) { + $_templateId = sha1($_templateId); + } + if ($do_clone) { + if (isset($this->template_objects[$_templateId])) { + // return cached template object + $tpl = clone $this->template_objects[$_templateId]; + $tpl->smarty = clone $tpl->smarty; + $tpl->parent = $parent; + $tpl->tpl_vars = array(); + $tpl->config_vars = array(); + } else { + $tpl = new $this->template_class($template, clone $this, $parent, $cache_id, $compile_id); + } + } else { + if (isset($this->template_objects[$_templateId])) { + // return cached template object + $tpl = $this->template_objects[$_templateId]; + $tpl->parent = $parent; + $tpl->tpl_vars = array(); + $tpl->config_vars = array(); + } else { + $tpl = new $this->template_class($template, $this, $parent, $cache_id, $compile_id); + } + } + // fill data if present + if (!empty($data) && is_array($data)) { + // set up variable values + foreach ($data as $_key => $_val) { + $tpl->tpl_vars[$_key] = new Smarty_variable($_val); + } + } + return $tpl; + } + + + /** + * Takes unknown classes and loads plugin files for them + * class name format: Smarty_PluginType_PluginName + * plugin filename format: plugintype.pluginname.php + * + * @param string $plugin_name class plugin name to load + * @param bool $check check if already loaded + * @return string |boolean filepath of loaded file or false + */ + public function loadPlugin($plugin_name, $check = true) + { + // if function or class exists, exit silently (already loaded) + if ($check && (is_callable($plugin_name) || class_exists($plugin_name, false))) { + return true; + } + // Plugin name is expected to be: Smarty_[Type]_[Name] + $_name_parts = explode('_', $plugin_name, 3); + // class name must have three parts to be valid plugin + // count($_name_parts) < 3 === !isset($_name_parts[2]) + if (!isset($_name_parts[2]) || strtolower($_name_parts[0]) !== 'smarty') { + throw new SmartyException("plugin {$plugin_name} is not a valid name format"); + return false; + } + // if type is "internal", get plugin from sysplugins + if (strtolower($_name_parts[1]) == 'internal') { + $file = SMARTY_SYSPLUGINS_DIR . strtolower($plugin_name) . '.php'; + if (file_exists($file)) { + require_once($file); + return $file; + } else { + return false; + } + } + // plugin filename is expected to be: [type].[name].php + $_plugin_filename = "{$_name_parts[1]}.{$_name_parts[2]}.php"; + + $_stream_resolve_include_path = function_exists('stream_resolve_include_path'); + + // loop through plugin dirs and find the plugin + foreach($this->getPluginsDir() as $_plugin_dir) { + $names = array( + $_plugin_dir . $_plugin_filename, + $_plugin_dir . strtolower($_plugin_filename), + ); + foreach ($names as $file) { + if (file_exists($file)) { + require_once($file); + return $file; + } + if ($this->use_include_path && !preg_match('/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/', $_plugin_dir)) { + // try PHP include_path + if ($_stream_resolve_include_path) { + $file = stream_resolve_include_path($file); + } else { + $file = Smarty_Internal_Get_Include_Path::getIncludePath($file); + } + + if ($file !== false) { + require_once($file); + return $file; + } + } + } + } + // no plugin loaded + return false; + } + + /** + * Compile all template files + * + * @param string $extension file extension + * @param bool $force_compile force all to recompile + * @param int $time_limit + * @param int $max_errors + * @return integer number of template files recompiled + */ + public function compileAllTemplates($extention = '.tpl', $force_compile = false, $time_limit = 0, $max_errors = null) + { + return Smarty_Internal_Utility::compileAllTemplates($extention, $force_compile, $time_limit, $max_errors, $this); + } + + /** + * Compile all config files + * + * @param string $extension file extension + * @param bool $force_compile force all to recompile + * @param int $time_limit + * @param int $max_errors + * @return integer number of template files recompiled + */ + public function compileAllConfig($extention = '.conf', $force_compile = false, $time_limit = 0, $max_errors = null) + { + return Smarty_Internal_Utility::compileAllConfig($extention, $force_compile, $time_limit, $max_errors, $this); + } + + /** + * Delete compiled template file + * + * @param string $resource_name template name + * @param string $compile_id compile id + * @param integer $exp_time expiration time + * @return integer number of template files deleted + */ + public function clearCompiledTemplate($resource_name = null, $compile_id = null, $exp_time = null) + { + return Smarty_Internal_Utility::clearCompiledTemplate($resource_name, $compile_id, $exp_time, $this); + } + + + /** + * Return array of tag/attributes of all tags used by an template + * + * @param object $templae template object + * @return array of tag/attributes + */ + public function getTags(Smarty_Internal_Template $template) + { + return Smarty_Internal_Utility::getTags($template); + } + + /** + * Run installation test + * + * @param array $errors Array to write errors into, rather than outputting them + * @return boolean true if setup is fine, false if something is wrong + */ + public function testInstall(&$errors=null) + { + return Smarty_Internal_Utility::testInstall($this, $errors); + } + + /** + * Error Handler to mute expected messages + * + * @link http://php.net/set_error_handler + * @param integer $errno Error level + * @return boolean + */ + public static function mutingErrorHandler($errno, $errstr, $errfile, $errline, $errcontext) + { + $_is_muted_directory = false; + + // add the SMARTY_DIR to the list of muted directories + if (!isset(Smarty::$_muted_directories[SMARTY_DIR])) { + $smarty_dir = realpath(SMARTY_DIR); + if ($smarty_dir !== false) { + Smarty::$_muted_directories[SMARTY_DIR] = array( + 'file' => $smarty_dir, + 'length' => strlen($smarty_dir), + ); + } + } + + // walk the muted directories and test against $errfile + foreach (Smarty::$_muted_directories as $key => &$dir) { + if (!$dir) { + // resolve directory and length for speedy comparisons + $file = realpath($key); + if ($file === false) { + // this directory does not exist, remove and skip it + unset(Smarty::$_muted_directories[$key]); + continue; + } + $dir = array( + 'file' => $file, + 'length' => strlen($file), + ); + } + if (!strncmp($errfile, $dir['file'], $dir['length'])) { + $_is_muted_directory = true; + break; + } + } + + // pass to next error handler if this error did not occur inside SMARTY_DIR + // or the error was within smarty but masked to be ignored + if (!$_is_muted_directory || ($errno && $errno & error_reporting())) { + if (Smarty::$_previous_error_handler) { + return call_user_func(Smarty::$_previous_error_handler, $errno, $errstr, $errfile, $errline, $errcontext); + } else { + return false; + } + } + } + + /** + * Enable error handler to mute expected messages + * + * @return void + */ + public static function muteExpectedErrors() + { + /* + error muting is done because some people implemented custom error_handlers using + http://php.net/set_error_handler and for some reason did not understand the following paragraph: + + It is important to remember that the standard PHP error handler is completely bypassed for the + error types specified by error_types unless the callback function returns FALSE. + error_reporting() settings will have no effect and your error handler will be called regardless - + however you are still able to read the current value of error_reporting and act appropriately. + Of particular note is that this value will be 0 if the statement that caused the error was + prepended by the @ error-control operator. + + Smarty deliberately uses @filemtime() over file_exists() and filemtime() in some places. Reasons include + - @filemtime() is almost twice as fast as using an additional file_exists() + - between file_exists() and filemtime() a possible race condition is opened, + which does not exist using the simple @filemtime() approach. + */ + $error_handler = array('Smarty', 'mutingErrorHandler'); + $previous = set_error_handler($error_handler); + + // avoid dead loops + if ($previous !== $error_handler) { + Smarty::$_previous_error_handler = $previous; + } + } + + /** + * Disable error handler muting expected messages + * + * @return void + */ + public static function unmuteExpectedErrors() + { + restore_error_handler(); + } +} + +// Check if we're running on windows +Smarty::$_IS_WINDOWS = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; + +// let PCRE (preg_*) treat strings as ISO-8859-1 if we're not dealing with UTF-8 +if (Smarty::$_CHARSET !== 'UTF-8') { + Smarty::$_UTF8_MODIFIER = ''; +} + +/** + * Smarty exception class + * @package Smarty + */ +class SmartyException extends Exception { + public static $escape = true; + public function __construct($message) { + $this->message = self::$escape ? htmlentities($message) : $message; + } +} + +/** + * Smarty compiler exception class + * @package Smarty + */ +class SmartyCompilerException extends SmartyException { +} + +/** + * Autoloader + */ +function smartyAutoload($class) +{ + $_class = strtolower($class); + $_classes = array( + 'smarty_config_source' => true, + 'smarty_config_compiled' => true, + 'smarty_security' => true, + 'smarty_cacheresource' => true, + 'smarty_cacheresource_custom' => true, + 'smarty_cacheresource_keyvaluestore' => true, + 'smarty_resource' => true, + 'smarty_resource_custom' => true, + 'smarty_resource_uncompiled' => true, + 'smarty_resource_recompiled' => true, + ); + + if (!strncmp($_class, 'smarty_internal_', 16) || isset($_classes[$_class])) { + include SMARTY_SYSPLUGINS_DIR . $_class . '.php'; + } +} + +?>
View file
Smarty-3.1.13.tar.gz/libs/SmartyBC.class.php
Changed
(renamed from distribution/libs/SmartyBC.class.php)
View file
Smarty-3.1.13.tar.gz/libs/debug.tpl
Changed
(renamed from distribution/libs/debug.tpl)
View file
Smarty-3.1.13.tar.gz/libs/plugins
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/libs/plugins/block.textformat.php
Changed
(renamed from distribution/libs/plugins/block.textformat.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.counter.php
Changed
(renamed from distribution/libs/plugins/function.counter.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.cycle.php
Changed
(renamed from distribution/libs/plugins/function.cycle.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.fetch.php
Changed
(renamed from distribution/libs/plugins/function.fetch.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_checkboxes.php
Changed
(renamed from distribution/libs/plugins/function.html_checkboxes.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_image.php
Changed
(renamed from distribution/libs/plugins/function.html_image.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_options.php
Changed
(renamed from distribution/libs/plugins/function.html_options.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_radios.php
Changed
(renamed from distribution/libs/plugins/function.html_radios.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_select_date.php
Changed
(renamed from distribution/libs/plugins/function.html_select_date.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_select_time.php
Changed
(renamed from distribution/libs/plugins/function.html_select_time.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.html_table.php
Changed
(renamed from distribution/libs/plugins/function.html_table.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.mailto.php
Changed
(renamed from distribution/libs/plugins/function.mailto.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/function.math.php
Changed
(renamed from distribution/libs/plugins/function.math.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.capitalize.php
Changed
(renamed from distribution/libs/plugins/modifier.capitalize.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.date_format.php
Changed
(renamed from distribution/libs/plugins/modifier.date_format.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.debug_print_var.php
Changed
(renamed from distribution/libs/plugins/modifier.debug_print_var.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.escape.php
Changed
(renamed from distribution/libs/plugins/modifier.escape.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.regex_replace.php
Changed
(renamed from distribution/libs/plugins/modifier.regex_replace.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.replace.php
Changed
(renamed from distribution/libs/plugins/modifier.replace.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.spacify.php
Changed
(renamed from distribution/libs/plugins/modifier.spacify.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifier.truncate.php
Changed
(renamed from distribution/libs/plugins/modifier.truncate.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.cat.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.cat.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.count_characters.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.count_characters.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.count_paragraphs.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.count_paragraphs.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.count_sentences.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.count_sentences.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.count_words.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.count_words.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.default.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.default.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.escape.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.escape.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.from_charset.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.from_charset.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.indent.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.indent.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.lower.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.lower.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.noprint.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.noprint.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.string_format.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.string_format.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.strip.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.strip.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.strip_tags.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.strip_tags.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.to_charset.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.to_charset.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.unescape.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.unescape.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.upper.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.upper.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/modifiercompiler.wordwrap.php
Changed
(renamed from distribution/libs/plugins/modifiercompiler.wordwrap.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/outputfilter.trimwhitespace.php
Changed
(renamed from distribution/libs/plugins/outputfilter.trimwhitespace.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/shared.escape_special_chars.php
Changed
(renamed from distribution/libs/plugins/shared.escape_special_chars.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/shared.literal_compiler_param.php
Changed
(renamed from distribution/libs/plugins/shared.literal_compiler_param.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/shared.make_timestamp.php
Changed
(renamed from distribution/libs/plugins/shared.make_timestamp.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/shared.mb_str_replace.php
Changed
(renamed from distribution/libs/plugins/shared.mb_str_replace.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/shared.mb_unicode.php
Changed
(renamed from distribution/libs/plugins/shared.mb_unicode.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/shared.mb_wordwrap.php
Changed
(renamed from distribution/libs/plugins/shared.mb_wordwrap.php)
View file
Smarty-3.1.13.tar.gz/libs/plugins/variablefilter.htmlspecialchars.php
Changed
(renamed from distribution/libs/plugins/variablefilter.htmlspecialchars.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins
Added
+(directory)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_cacheresource.php
Changed
(renamed from distribution/libs/sysplugins/smarty_cacheresource.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_cacheresource_custom.php
Changed
(renamed from distribution/libs/sysplugins/smarty_cacheresource_custom.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_cacheresource_keyvaluestore.php
Changed
(renamed from distribution/libs/sysplugins/smarty_cacheresource_keyvaluestore.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_config_source.php
Changed
(renamed from distribution/libs/sysplugins/smarty_config_source.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_cacheresource_file.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_cacheresource_file.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_append.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_append.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_assign.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_assign.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_block.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_block.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_break.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_break.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_call.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_call.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_capture.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_capture.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_config_load.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_config_load.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_continue.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_continue.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_debug.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_debug.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_eval.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_eval.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_extends.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_extends.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_for.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_for.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_foreach.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_foreach.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_function.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_function.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_if.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_if.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_include.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_include.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_include_php.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_include_php.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_insert.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_insert.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_ldelim.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_ldelim.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_nocache.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_nocache.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_block_plugin.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_block_plugin.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_function_plugin.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_function_plugin.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_modifier.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_modifier.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_object_block_function.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_object_block_function.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_object_function.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_object_function.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_print_expression.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_print_expression.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_registered_block.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_registered_block.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_registered_function.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_registered_function.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_private_special_variable.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_private_special_variable.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_rdelim.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_rdelim.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_section.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_section.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_setfilter.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_setfilter.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compile_while.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compile_while.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_compilebase.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_compilebase.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_config.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_config.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_config_file_compiler.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_config_file_compiler.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_configfilelexer.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_configfilelexer.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_configfileparser.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_configfileparser.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_data.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_data.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_debug.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_debug.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_filter_handler.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_filter_handler.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_function_call_handler.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_function_call_handler.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_get_include_path.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_get_include_path.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_nocache_insert.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_nocache_insert.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_parsetree.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_parsetree.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_eval.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_eval.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_extends.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_extends.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_file.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_file.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_php.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_php.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_registered.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_registered.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_stream.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_stream.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_resource_string.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_resource_string.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_smartytemplatecompiler.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_smartytemplatecompiler.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_template.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_template.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_templatebase.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_templatebase.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_templatecompilerbase.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_templatecompilerbase.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_templatelexer.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_templatelexer.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_templateparser.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_templateparser.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_utility.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_utility.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_internal_write_file.php
Changed
(renamed from distribution/libs/sysplugins/smarty_internal_write_file.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_resource.php
Changed
(renamed from distribution/libs/sysplugins/smarty_resource.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_resource_custom.php
Changed
(renamed from distribution/libs/sysplugins/smarty_resource_custom.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_resource_recompiled.php
Changed
(renamed from distribution/libs/sysplugins/smarty_resource_recompiled.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_resource_uncompiled.php
Changed
(renamed from distribution/libs/sysplugins/smarty_resource_uncompiled.php)
View file
Smarty-3.1.13.tar.gz/libs/sysplugins/smarty_security.php
Changed
(renamed from distribution/libs/sysplugins/smarty_security.php)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.